{% extends "base.html" %} {% block title %}{{ entity.name }}{% endblock %} {% block content %} {% set ce = entity.conceptual or {} %}

{{ entity.name }}

{% if entity.pattern %}{{ entity.pattern }}{% endif %} {% if ce.subject_area %}{{ ce.subject_area.name }}{% endif %} {% if entity.category %}{{ entity.category.role }} · {{ entity.category.category }}{% endif %}
{% if entity.definition %}

{{ entity.definition }}

{% elif ce.definition %}

{{ ce.definition }}

{% endif %} {% if ce.synonyms %}

Also known as: {{ ce.synonyms|join(", ") }}

{% endif %}

Neighbourhood (radius {{ radius }}, {{ neighbour_count }} related)

{% include "_erd.html" %}

Attributes

{% for a in entity.attributes %} {% endfor %}
NameTypeRoleNullKeysDefinition
{{ a.name }} {{ a.domain or "—" }} {% if a.enum_values %}enum{% endif %} {{ a.role }} {{ "yes" if a.nullable else "no" }} {% if a.role == "business_key" %}PK{% endif %} {% if a.ontology_iri %}◆{% endif %} {{ a.definition or "" }}
{% if entity.key_groups %}

Keys

{% endif %} {% if outgoing or incoming %}

Relationships

{% if outgoing %}

References (this → other)

{% for r in outgoing %} {% endfor %}
NameToCardinalityJoin
{{ r.name }} {{ r.to_entity }} {{ r.cardinality }} {{ r.from_cols }} → {{ r.to_cols }}
{% endif %} {% if incoming %}

Referenced by (other → this)

{% for r in incoming %} {% endfor %}
NameFromCardinalityJoin
{{ r.name }} {{ r.from_entity }} {{ r.cardinality }} {{ r.from_cols }} → {{ r.to_cols }}
{% endif %}
{% endif %} {% if ce.ontology_refs or (entity.attributes | selectattr('ontology_refs') | list) %}

Ontology alignment

{% if ce.ontology_refs %}

Entity

{% for r in ce.ontology_refs %} {% endfor %}
PredicateURILayerStatusConfidence
{{ r.predicate }}{{ r.uri }}{{ r.layer or "—" }} {{ r.status }} {{ "%.2f"|format(r.confidence) if r.confidence is not none else "—" }}
{% endif %} {% for a in entity.attributes if a.ontology_refs %}

{{ a.name }}

{% for r in a.ontology_refs %} {% endfor %}
PredicateURILayerStatusConfidence
{{ r.predicate }}{{ r.uri }}{{ r.layer or "—" }} {{ r.status }} {{ "%.2f"|format(r.confidence) if r.confidence is not none else "—" }}
{% endfor %}
{% endif %} {% if ce.stewardship or entity.udp %}

Governance

{% if ce.stewardship %}

Owner: {{ ce.stewardship.owner or "—" }} · Steward: {{ ce.stewardship.steward or "—" }}

{% endif %} {% if entity.udp %} {% for k, v in entity.udp.items() %}{% endfor %}
PropertyValue
{{ k }}{{ v }}
{% endif %}
{% endif %} {% if where_used %}

Where used

{% endif %} {% endblock %}