{# NOTICE #} {# This software was produced for the U.S. Government under contract FA8702-22-C-0001, #} {# and is subject to the Rights in Data-General Clause 52.227-14, Alt. IV (DEC 2007) #} {# ©2021 The MITRE Corporation. All Rights Reserved. #} {% extends "html-multi/base.html" %} {% import "html-multi/browser/shacl_macros.html" as shacl %} {% block navbar %} {% include "html-multi/navbar.html" %} {% endblock navbar %} {% block sidebar %} {% set thispage=main_entity.qname %} {% include "html-multi/sidebar.html" %} {% endblock sidebar %} {% block bodycontent %} {% if main_entity_type == "class" %} {% set each = main_entity %} {# each is a OntoClass object #} {# path to this class #} {% set thispage="classinfo" %} {% include "html-multi/breadcrumbs.html" %} {# name of this class, with "leaf node" if it has no children #}

{{each.title}} {% if not each.children() %} leaf node {% endif %}


{# horizontal rule #} {# Tree diagram #}
{# URI panel #}

URI

{{each.uri}}
{# Label panel #} {% if each.bestLabel() %}

Label

{{each.bestLabel()}}
{% endif %} {# Description panel #} {% if each.bestDescription() %}

Description

{{each.bestDescription()|linebreaks|default("--")}}
{% endif %} {# See also panel #} {% include "shared/seealso_panel.html" %} {# Superclasses panel #} {% if each.ancestors() %}

Superclasses ({{each.ancestors()|length}})

{% if each.ancestors() %} {% for s in each.ancestors() %}
  • {{s.title}}
  • {% endfor %} {% else %}
  • owl:Thing
  • {% endif %}
    {% endif %} {# Shapes panel #} {% if each.all_shapes %}

    Shapes ({{each.all_shapes|length}})

    {% for s in each.all_shapes %}
  • {{s.title}}
  • {% endfor %}
    {% endif %} {# Instances panel #} {% if each.instances%}

    Instances ({{each.instances|length}})

    {% for s in each.instances%}
  • {{s.title}}
  • {% endfor %}
    {% endif %} {# Usage panel #} {% if each.domain_of_inferred %}

    Usage

    Instances of {{each.title}} can have the following properties:

    {% for group in each.domain_of_inferred %} {% for k,v in group.items() %} {% if v %} {% for prop in v %} {% endfor %} {% endif %} {% endfor %} {% endfor %}
    PROPERTYTYPEDESCRIPTIONRANGE
    From class {{k.title}}
    {{prop.title}} {{prop.rdftype_qname}} {{prop.bestDescription()|default("--")}} {% set ranges = prop.ranges or prop.ranges_inferred %} {% if ranges %} {% for range in ranges %} {% if not range.ext_model %} {{range.title}} {% else %} {{range.title}} {% endif %} {% endfor %} {% else %} owl:Thing {% endif %}
    {% endif %} {# Property Shapes: the constraints of the shapes of this class and its ancestors #} {% if each.shacl_constraints %}

    Property Shapes

    By the associated SHACL property shapes, instances of {{each.title}} can have the following properties:

    {{ shacl.constraints_table(each.shacl_constraints, with_property_info=True) }}
    {% endif %} {# Implementation panel #}

    Implementation

    {% if pygments_code %} {{pygments_code|safe}} {% else %}
    {{each.rdf_source()|linebreaks}}
    {% endif %}
    {% endif %} {% endblock bodycontent %}