{% 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']) %}
{% else %}
{% 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']) %}
{% else %}
{% endif %}
{% endif %}
View
{% if this.graph.value(rdflib.URIRef(item.source), ns.whyis.hasFileID) %}
Download
{% endif %}
{% endfor %}
{% endfor %}