{% extends "easydata/index.html" %} {% load url from future %} {% load i18n %} {% block menu-superior %}
  • {% trans "Home" %}
  • {% trans "Namespace" %}
  • {% trans "Visibility" %}
  • {% endblock %} {% block contenido-plantilla %}

    {% trans "Configured Models" %}

    {% blocktrans %}Below you can see a list of models which are available to use in your templates, or you can publish their associated URLs, to share their information. With the available models, appears information about the URLs assigned.{% endblocktrans %}

    {% for mod in modelos %} {% empty %} {% endfor %}
    {% trans "Model" %} {% trans "Entity Mapped" %} {% trans "Single URL" %} {% trans "Full URL" %}
    {{ mod.modelo.nombre }} {{ mod.modelo.entidad }} {{ mod.modelo.generate_url_without_instance }} {{ mod.modelo.generate_full_url }}
    {% trans "There isn't any model full configured" %}

    {% blocktrans %}The word "pk" in bold in the Single URLs, represent the primary key of each entity of the model. You have to replace it by the entity's primary key that you want to publish the data.{% endblocktrans %}

    {% trans "Example" %}

    {% blocktrans %}This section shows an example of how can you use the URLs showed before, to access to the model's information of a concrete model instance.{% endblocktrans %}

    {% if example_model %}

    {% blocktrans with nombre_model=example_model.nombre nombre_entidad=example_model.entidad primary=elem.pk %}You have mapped the model {{ nombre_model }} with the entity {{ nombre_entidad }}. This model has an instance with the primary key "{{ primary }}", and the url by which we can access to the information of this model instance is:{% endblocktrans %}

    {{ url }}

    {% blocktrans %}A valid url to access to the information of all instances of the model, for example in RDF/Ntriples format is:{% endblocktrans %}

    easydata/publish/model/{{ example_model.aplicacion }}/{{ example_model.entidad.nombre }}-{{ example_model.nombre }}.nt
    {% else %}

    {% blocktrans %}You don't have any model mapped with an entity, the models don't have data or the models are not visible, and is impossible to show you an example with real data. We suppose that exist a model called People, with an instance of People with the primary key "1", and this model is mapped with the entity Person. The url to access to the information of the People with the primary key "1" is:{% endblocktrans %}

    /easydata/publish/instance/aplicacion/Person-People/1.xml
    {% endif %} {% endblock %}