{# 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: the rows are built in the browser (custom/js/usage.js) from usage.js, written once next to the pages, rather than repeated on every class page (backlog #21); usage_groups are the ids of the classes whose properties the table lists #} {% if usage_groups %}

Usage

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

PROPERTYTYPEDESCRIPTIONRANGE
{% 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 %}