{% extends "base_vue.html" %} {% from "_macros.html" import render_resource_link, render_rdfa_resource_link, get_label, facts_panel, summary_panel, content %} {% block title %}{{get_label(this.description())}}{% endblock %} {% block content %} {% set attributes = this | include("attributes") | fromjson %} {% set incoming = this | include("incoming") | fromjson %} {% set outgoing = this | include("outgoing") | fromjson %}
{{attributes.label}}
{% if attributes.type | length > 0 %}
{% for type in attributes.type %}{{type.label}}{% if not loop.last %}, {% endif %} {% endfor %}
{% endif %}
{% if attributes.thumbnail %} {{attributes.label}} {% endif %}
{% for desc in attributes.description %}
{{desc.label}}:
{{desc.value}}
{% endfor %}
Identifier
{{ attributes['@id']}}
{% for attribute in attributes.attributes %}
{{attribute.label}}
{% for value in attribute['values'] %}
{{ value.value}} {% if value.unit_label %}{{value.unit_label}}{% endif %}
{% endfor %} {% endfor %}
{% for link_name, items in outgoing | groupby("link_label") %}

{{link_name.title() }}

{% for item in items %}
{{item.target_label}}
{% if this.graph.value(rdflib.URIRef(item.target), ns.foaf.depiction) %} {% set depiction = this.graph.value(rdflib.URIRef(item.target), ns.foaf.depiction) %} {% if depiction.startswith(config['LOD_PREFIX']) %} {{item.target_label}} {% else %} {{item.target_label}} {% endif %} {% endif %}
View {% if this.graph.value(rdflib.URIRef(item.target), ns.whyis.hasFileID) %} Download {% endif %}
{% endfor %}
{% endfor %} {% for link_name, items in incoming | groupby("link_label") %}

{% if link_name.lower().endswith(" of") %} {{link_name[:-3].title()}} {% else %} {{link_name.title()}} Of {% endif %}

{% for item in items %}
{{item.source_label}}
{% if this.graph.value(rdflib.URIRef(item.source), ns.foaf.depiction) %} {% set depiction = this.graph.value(rdflib.URIRef(item.source), ns.foaf.depiction) %} {% if depiction.startswith(config['LOD_PREFIX']) %} {{item.source_label}} {% else %} {{item.source_label}} {% endif %} {% endif %}
View {% if this.graph.value(rdflib.URIRef(item.source), ns.whyis.hasFileID) %} Download {% endif %}
{% endfor %}
{% endfor %}
{% endblock %}