{% extends "base_vue.html" %} {% from "elements/upload.html" import vue_upload_button_tab_modal %} {% 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 %}
Add Attribute Add a new attribute fact.
Add Link Link another entity.
Add Type Specify additional type, subclass, or superclass
{% 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") %}

{{link_name.title()}} Of

{% 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 %}
{% if this.description().value(ns.whyis.hasFileID) %} {{ this | excel_to_tabulator(this.description().value(ns.whyis.hasFileID)) | safe }} {% endif %}
{% endblock %}