{# 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 == "shape" %} {% set each = main_entity %} {# each is a OntoShape object #} {# path to this shape #} {% set thispage="shapeinfo" %} {% include "html-multi/breadcrumbs.html" %} {# name of this shape, 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 %} {# 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 %} {# Targets panel: what the shape applies to. A class not defined in this graph (eg the DCAT-AP shapes target DCAT's classes) is shown in italics, without a link #} {% if each.targets %}

Targets ({{each.targets|length}})

    {% for kind, t in each.targets %}
  • {{ shacl.term(t) }} {{kind}}
  • {% endfor %}
{% endif %} {# Used by panel: for a property shape, the node shapes that use it #} {% if each.used_by %}

Used By ({{each.used_by|length}})

    {% for t in each.used_by %}
  • {{ shacl.term(t) }}
  • {% endfor %}
{% endif %} {# Node constraints panel: constraints on the focus node itself, eg sh:closed #} {% if each.node_constraints %}

Node Constraints

{{ shacl.constraint_list(each.node_constraints) }}
{% endif %} {# Property constraints panel: the shape's own property shapes (or, for a property shape, the shape itself), see ontospy/core/shacl_helper.py #} {% if each.shacl_constraints %}

Property Constraints ({{each.shacl_constraints|length}})

{% if each.targets %}

Focus nodes of this shape ({% for kind, t in each.targets %}{{ shacl.term(t) }}{% if not loop.last %}, {% endif %}{% endfor %}) can have the following properties:

{% endif %}
{{ shacl.constraints_table(each.shacl_constraints) }}
{% endif %} {# Implementation panel #}

Implementation

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