@prefix adms:    <http://www.w3.org/ns/adms#> .
@prefix dcat:    <http://www.w3.org/ns/dcat#> .
@prefix dct:     <http://purl.org/dc/terms/> .
@prefix eira:    <http://data.europa.eu/dr8/> .
@prefix elap:    <http://data.europa.eu/2sa/elap/> .
@prefix owl:     <http://www.w3.org/2002/07/owl#> .
@prefix rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
@prefix skos:    <http://www.w3.org/2004/02/skos/core#> .
@prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .

# =====================================================================
#  European Library of Architecture Principles (ELAP) — ontology (T-Box)
#
#  ELAP itself (dcat:Catalog) and its principles are the A-Box.
#  Code lists (SKOS) are published separately in elap-codelists.ttl.
#  Validation rules are published separately in elap-shapes.ttl.
#
#  Mapping from ELAP 3.1.0 (properties replaced in this model):
#    dct:description (x3)       -> elap:statement / elap:rationale / elap:implications
#    dct:relation (EIRA IRI)    -> elap:associatedABB
#    dct:relation (literal)     -> elap:relatedContent (skos:Concept)
#    rdfs:comment               -> elap:aboutSource
#    elap:Category (literal)    -> elap:category (skos:Concept)
#    dcat:theme (literal)       -> dcat:theme (skos:Concept, IoP layer)
#    influence*/paGovernance    -> same properties, skos:Concept values
#    dct: namespace "terms#"    -> "terms/" (correct Dublin Core namespace)
# =====================================================================

<http://data.europa.eu/2sa/elap/ontology>
    a owl:Ontology ;
    dct:title "European Library of Architecture Principles (ELAP) ontology"@en ;
    dct:description "Conceptual model (T-Box) of ELAP. ELAP is published as a dcat:Catalog whose members are architecture principles, modelled as a specialisation of dcat:Resource."@en ;
    owl:versionInfo "1.0.0" ;
    owl:versionIRI <http://data.europa.eu/2sa/elap/ontology/1.0.0> ;
    dct:modified "2026-11-19"^^xsd:date ;
    skos:changeNote "1.0.0: ELAP 3.1.0 properties replaced by dedicated properties (statement, rationale, implications, aboutSource, associatedABB, relatedContent, category); each replacement documented with skos:changeNote; aboutSource no longer a sub-property of rdfs:comment."@en ;
    rdfs:seeAlso <https://www.w3.org/TR/vocab-dcat-3/> .

# ---------------------------------------------------------------------
#  Classes
# ---------------------------------------------------------------------

elap:Principle
    a owl:Class ;
    rdfs:subClassOf dcat:Resource ;
    rdfs:label "Architecture Principle"@en ;
    skos:definition "A qualitative statement of intent that should be met by the architecture of a digital public service, catalogued in ELAP with its statement, rationale and implications."@en ;
    skos:scopeNote "Specialises dcat:Resource following the DCAT 3 extension pattern for catalogues of resources other than datasets and data services. Principles are individuals (A-Box), not classes."@en ;
    skos:changeNote "In ELAP 3.1.0 principles were also typed owl:Class (punning). They are individuals only."@en ;
    rdfs:isDefinedBy <http://data.europa.eu/2sa/elap/ontology> .

# Reused classes (documented here for the conceptual model, not redefined)
#   dcat:Catalog               — ELAP itself (one instance per published library)
#   dcat:Resource              — superclass of elap:Principle
#   dct:BibliographicResource  — a source a principle is derived from
#   skos:ConceptScheme / skos:Concept — controlled vocabularies (elap-codelists.ttl)

# ---------------------------------------------------------------------
#  Catalogue-level properties
# ---------------------------------------------------------------------

elap:principle
    a owl:ObjectProperty ;
    rdfs:subPropertyOf dcat:resource ;
    rdfs:domain dcat:Catalog ;
    rdfs:range elap:Principle ;
    rdfs:label "principle"@en ;
    skos:definition "An architecture principle listed in the library."@en ;
    skos:scopeNote "Specific sub-property of dcat:resource, as DCAT 3 recommends when available."@en ;
    rdfs:isDefinedBy <http://data.europa.eu/2sa/elap/ontology> .

# Reused on the catalogue: dct:title, dct:description, dcat:version,
# dct:issued, dct:modified, dct:publisher, dct:license,
# dcat:themeTaxonomy (-> IoP layer scheme), dcat:previousVersion, adms:versionNotes.

# ---------------------------------------------------------------------
#  Principle — textual properties (replace the 3 x dct:description)
# ---------------------------------------------------------------------

elap:statement
    a owl:DatatypeProperty , owl:FunctionalProperty ;
    rdfs:subPropertyOf dct:description ;
    rdfs:domain elap:Principle ;
    rdfs:range rdf:langString ;
    rdfs:label "statement"@en ;
    skos:definition "A brief statement that helps to detect and identify the purpose of the principle."@en ;
    skos:changeNote "Replaces the first of the three dct:description values used in ELAP 3.1.0."@en ;
    rdfs:isDefinedBy <http://data.europa.eu/2sa/elap/ontology> .

elap:rationale
    a owl:DatatypeProperty , owl:FunctionalProperty ;
    rdfs:subPropertyOf dct:description ;
    rdfs:domain elap:Principle ;
    rdfs:range rdf:langString ;
    rdfs:label "rationale"@en ;
    skos:definition "Text describing the business benefits of adhering to the principle."@en ;
    skos:changeNote "Replaces the second of the three dct:description values used in ELAP 3.1.0."@en ;
    rdfs:isDefinedBy <http://data.europa.eu/2sa/elap/ontology> .

elap:implications
    a owl:DatatypeProperty , owl:FunctionalProperty ;
    rdfs:subPropertyOf dct:description ;
    rdfs:domain elap:Principle ;
    rdfs:range rdf:langString ;
    rdfs:label "implications"@en ;
    skos:definition "Text describing the requirements for both business and technical aspects of applying the principle."@en ;
    skos:changeNote "Replaces the third of the three dct:description values used in ELAP 3.1.0."@en ;
    rdfs:isDefinedBy <http://data.europa.eu/2sa/elap/ontology> .

elap:aboutSource
    a owl:DatatypeProperty ;
    rdfs:domain elap:Principle ;
    rdfs:range rdf:langString ;
    rdfs:label "about source"@en ;
    skos:definition "References, examples or descriptions clarifying how the source supports the principle."@en ;
    skos:scopeNote "Kept on the principle, not on the source: the same source is cited by several principles with different explanations."@en ;
    skos:changeNote "Replaces rdfs:comment as used in ELAP 3.1.0."@en ;
    rdfs:isDefinedBy <http://data.europa.eu/2sa/elap/ontology> .

# Reused on the principle:
#   dct:title   (1..1)  principle name
#   eira:scope  (1..1)  extent to which the principle is valid (free text)
#   dct:source  (1..*)  -> dct:BibliographicResource (the URL is the source IRI; dct:title on it)

# ---------------------------------------------------------------------
#  Principle — classification properties (values are skos:Concepts)
# ---------------------------------------------------------------------

elap:category
    a owl:ObjectProperty , owl:FunctionalProperty ;
    rdfs:domain elap:Principle ;
    rdfs:range skos:Concept ;
    rdfs:label "category"@en ;
    skos:definition "Digital public service category of the principle (governance, implementation or strategy), conforming to ITIL."@en ;
    skos:changeNote "Replaces elap:Category (literal value) used in ELAP 3.1.0."@en ;
    rdfs:seeAlso <http://data.europa.eu/2sa/elap/codelist/category> ;
    rdfs:isDefinedBy <http://data.europa.eu/2sa/elap/ontology> .

# dcat:theme is reused for the IoP layer (Legal, Organisational, Semantic,
# Technical); values from <http://data.europa.eu/2sa/elap/codelist/iop-layer>.
# In ELAP 3.1.0 dcat:theme carried literals; it now takes skos:Concepts.

elap:paGovernance
    a owl:ObjectProperty , owl:FunctionalProperty ;
    rdfs:domain elap:Principle ;
    rdfs:range skos:Concept ;
    rdfs:label "PA governance"@en ;
    skos:definition "Public administration governance paradigm the principle relates to: New Public Management, New Public Governance, New Weberian State, or Common to all."@en ;
    skos:changeNote "Value type changed from literal (ELAP 3.1.0) to skos:Concept."@en ;
    rdfs:seeAlso <http://data.europa.eu/2sa/elap/codelist/pa-governance> ;
    rdfs:isDefinedBy <http://data.europa.eu/2sa/elap/ontology> .

elap:influenceInDPSLifecycle
    a owl:ObjectProperty , owl:FunctionalProperty ;
    rdfs:domain elap:Principle ;
    rdfs:range skos:Concept ;
    rdfs:label "influence in DPS implementation life-cycle"@en ;
    skos:definition "Whether the principle is an obligation (legal requirement) or a desire across the whole life-cycle of the digital public service."@en ;
    skos:changeNote "Value type changed from literal (ELAP 3.1.0) to skos:Concept."@en ;
    rdfs:seeAlso <http://data.europa.eu/2sa/elap/codelist/influence> ;
    rdfs:isDefinedBy <http://data.europa.eu/2sa/elap/ontology> .

elap:influenceInDPSAttribute
    a owl:ObjectProperty , owl:FunctionalProperty ;
    rdfs:domain elap:Principle ;
    rdfs:range skos:Concept ;
    rdfs:label "influence in implemented DPS attribute"@en ;
    skos:definition "Whether the principle is an obligation, a desire, or not applicable for specific attributes or features of the implemented digital public service."@en ;
    skos:changeNote "Value type changed from literal (ELAP 3.1.0) to skos:Concept."@en ;
    rdfs:seeAlso <http://data.europa.eu/2sa/elap/codelist/influence> ;
    rdfs:isDefinedBy <http://data.europa.eu/2sa/elap/ontology> .

# ---------------------------------------------------------------------
#  Principle — relations (replace the mixed dct:relation)
# ---------------------------------------------------------------------

elap:associatedABB
    a owl:ObjectProperty ;
    rdfs:subPropertyOf dct:relation ;
    rdfs:domain elap:Principle ;
    rdfs:label "associated ABB"@en ;
    skos:definition "EIRA Architecture Building Block associated with the principle, identified by its EIRA PURI."@en ;
    skos:scopeNote "No range is asserted: EIRA ABBs are classes in the EIRA ontology, so the link is an OWL 2 punning reference to the ABB IRI."@en ;
    skos:changeNote "Replaces dct:relation values that were EIRA IRIs in ELAP 3.1.0."@en ;
    rdfs:isDefinedBy <http://data.europa.eu/2sa/elap/ontology> .

elap:relatedContent
    a owl:ObjectProperty ;
    rdfs:subPropertyOf dct:relation ;
    rdfs:domain elap:Principle ;
    rdfs:range skos:Concept ;
    rdfs:label "related content"@en ;
    skos:definition "Interoperability content area (per interoperability layer, governance or functional) the principle relates to."@en ;
    skos:changeNote "Replaces dct:relation values that were literals (\"... Content\") in ELAP 3.1.0."@en ;
    rdfs:seeAlso <http://data.europa.eu/2sa/elap/codelist/content-type> ;
    rdfs:isDefinedBy <http://data.europa.eu/2sa/elap/ontology> .

