{% extends "base.html" %} {% from "_macros.html" import render_resource_link, render_rdfa_resource_link, get_label, facts_panel, summary_panel, content %} {% macro render_reference(ref) %} {{ref.value(ns.dc.creator)}}. {{ref.value(ns.dc.title)}}, {{ref.value(ns.dc.bibliographicCitation)}} {% for also in ref[ns.RDFS.seeAlso] %} {% if also[ns.RDF.type:ns.hbgd.PubMedCentralArticle] %} {% elif also[ns.RDF.type:ns.hbgd.PubMedArticle] %} {% endif %} {% endfor %} {% endmacro %} {% macro render_definition(def) %}

{{def.value(ns.prov.value)}}

Status
{% for type in def[ns.RDF.type] %} {% if type[ns.RDFS.subClassOf:ns.sio.definition] %}
{{type.value(ns.RDFS.label)}}
{% endif %} {% endfor %}
{% if def.value(ns.skos.editorialNote) %}
Editorial Notes
{% for note in def[ns.skos.editorialNote] %}

{{note}}

{% endfor %}
{% endif %} {% if def.value(ns.skos.example) %}
Appears in
{% for ex in def[ns.skos.example] %} {% if ex.value(ns.dc.title) %}

{{render_reference(ex)}}

{% endif %} {% endfor %}
{% endif %} {% if def.value(ns.RDFS.isDefinedBy) %}
Definition Source
{% for defsource in def[ns.RDFS.isDefinedBy] %}

{{defsource.value(ns.RDFS.label) or defsource.identifier}}

{% endfor %}
{% endif %} {% if def.value(ns.RDFS.seeAlso) %}
See also
{% for quoted in def[ns.RDFS.seeAlso] %}

{{quoted.value(ns.RDFS.label) or quoted.identifier}}

{% endfor %}
{% endif %} {% if def.value(ns.prov.wasAttributedTo) %}
Attributed To
{% for attrib in def[ns.prov.wasAttributedTo] %}

{{attrib.value(ns.RDFS.label) or attrib.identifier}}

{% endfor %}
{% endif %}
{% endmacro %} {% block title %}{{get_label(this.description())}}{% endblock %} {% block subtitle %}Class{% endblock %} {% block content %}
{{ summary_panel(this.description()) }} {{ content(this.description()) }}

Super Classes

Super class definitions also apply to this class.

    {% for superClass in this.description()[ns.RDFS.subClassOf] %}
  • {{render_resource_link(superClass)}} {% if superClass.value(ns.skos.definition) %} {{lang_filter(superClass[ns.skos.definition])}} {% endif %}
  • {% endfor %}

Details

{{this.identifier}}

Term
{{get_label(this.description())}}
{% if lang_filter(this.description()[ns.skos.altLabel]) %}
Alternate Labels
{% for term in lang_filter(this.description()[ns.skos.altLabel]) %}

{{term}}

{% endfor %}
{% endif %} {% if this.description().graph.value(predicate=ns.RDFS.subClassOf, object=this.description().identifier) %}
Sub Classes
{% for subClass in this.description().subjects(ns.RDFS.subClassOf) %}

{{render_resource_link(subClass)}} {% if subClass.value(ns.skos.definition) %} {{subClass.value(ns.skos.definition)}} {% endif %}

{% endfor %}
{% endif %} {% if this.description().value(ns.cmo.hasPrimaryConcept) %}
Terminology Reference
{% for concept in this.description()[ns.cmo.hasPrimaryConcept] %}

{{render_resource_link(concept)}}

{% endfor %}
{% endif %} {% if this.description().value(ns.owl.equivalentClass) %}
Equivalent To
{% for concept in this.description()[ns.owl.equivalentClass] %}

{{render_resource_link(concept)}}

{% endfor %}
{% endif %} {% if this.description().value[ns.prov.wasAttributedTo] %} {% set attrib = this.description().value(ns.prov.wasAttributedTo) %}
Attributed to
{{render_resource_link(concept)}}
{%endif%}
add
{%endblock%}