{# The hidden divs of the D3 visualizations: one per ontology, class, property, concept and individual, copied into the side panel by showpanel(id) (shared/js_sidepanel.html). They show what the html-multi page of the same entity shows, in a compact form (backlog #26). A link to an entity with no div of its own (eg owl:Thing, or a class defined elsewhere) is turned into plain text when the panel opens. #} {# a link that opens an entity in the panel #} {% macro plink(s, css="class") -%} {{s.title|default(s)}} {%- endmacro %} {# a list of entities, separated by | #} {% macro plinks(items, css="class") -%} {% for s in items %}{{ plink(s, css) }}{% if not loop.last %} | {% endif %}{% endfor %} {%- endmacro %} {# the URI, label, description and rdfs:seeAlso of an entity #} {% macro basics(each) -%}

URI: {{each.uri}}

{% if each.bestLabel() %}

Label: {{each.bestLabel()|capfirst}}

{% endif %} {% if each.bestDescription() %}

Description: {{each.bestDescription()|linebreaks}}

{% endif %} {% if each.seeAlso() %}

See also: {% for x in each.seeAlso() %}{% if x is url %}{{x}}{% else %}{{x}}{% endif %}{% if not loop.last %} | {% endif %}{% endfor %}

{% endif %} {%- endmacro %} {# the Turtle source #} {% macro implementation(each) -%}
Implementation:
{{each.rdf_source()|escape}}
{%- endmacro %} {# CLASSES #} {% for each in classes %} {% endfor %} {# PROPERTIES #} {% for each in properties %} {% endfor %} {# SKOS CONCEPTS #} {% for each in skosConcepts %} {% endfor %} {# INDIVIDUALS #} {% for each in individuals %} {% endfor %}