{% extends "base.html" %} {% 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 %}{{this.value(ns.RDFS.label)}}{% endblock %} {% block subtitle %}Class{% endblock %} {% block content %}

Super Classes

Super class definitions also apply to this class.

Definitions

{% for def in this[ns.hbgd.hasDefinition] %} {% if def[ns.RDF.type:ns.hbgd.PreferredDefinition] %} {{ render_definition(def) }} {% endif %} {% endfor %}
{% for def in this[ns.hbgd.hasDefinition] %} {% if not def[ns.RDF.type:ns.hbgd.PreferredDefinition] %} {{ render_definition(def) }} {% endif %} {% endfor %}

Details

{{this.identifier}}

Term
{{this.value(ns.RDFS.label)}}
{% if this.value(ns.skos.altLabel) %}
Alternate Labels
{% for term in this[ns.skos.altLabel] %}

{{term}}

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

{{subClass.value(ns.RDFS.label)}} {% if not subClass[ns.RDF.type:ns.hbgd.HBGDkiConcept] %} {% endif %} {% if subClass.value(ns.skos.definition) %} {{subClass.value(ns.skos.definition)}} {% endif %}

{% endfor %}
{% endif %}
Prioritized Questions
{% for question in this[ns.hbgd.raisedBy] %} {% if question[ns.RDF.type:ns.hbgd.PrioritizedQuestion] %}

{{question.value(ns.RDFS.label)}}

{% endif %} {% endfor %}
Sub-Questions
{% for question in this[ns.hbgd.raisedBy] %} {% if question[ns.RDF.type:ns.hbgd.SubQuestion] %}

{{question.value(ns.RDFS.label)}}

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

{{concept.value(ns.skos.prefLabel) or concept.identifier}}

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

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

{% endfor %}
{% endif %} {% if this.value[ns.prov.wasAttributedTo] %} {% set attrib = this.value(ns.prov.wasAttributedTo) %}
Attributed to
{{attrib.value(ns.RDFS.label) or attrib.value(ns.dc.identifier) or attrib.identifier}}
{%endif%}

Commentary

{%endblock%}