@prefix : <https://w3id.org/adiro/aec_common_symbols#> .
@prefix metadata: <https://w3id.org/adiro/aec_drawing_metadata#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix dcterms: <http://purl.org/dc/terms/> .

<https://w3id.org/adiro/aec_common_symbols> rdf:type owl:Ontology ;
    rdfs:label "AEC Common Symbols Ontology" ;
    rdfs:comment "Reusable symbols that appear across disciplines, such as dimensions, grids, levels, and reference symbols. Every symbol is a kind of drawing element from the drawing-metadata module. The discipline modules build on these shared symbols." ;
    dcterms:title "AEC Common Symbols Ontology" ;
    dcterms:description "Cross-discipline layout content. Generic symbol classes like dimensions, reference symbols, grids, etc. (mostly reusable non-domain symbols). All symbols are subclasses of DrawingElement from the drawing metadata ontology." ;
    dcterms:license <https://www.gnu.org/licenses/gpl-3.0.html> ;
    dcterms:creator "Buro Happold — Machine Learning R&D" ;
    dcterms:publisher "Buro Happold" ;
    owl:priorVersion <https://w3id.org/adiro/aec_common_symbols/1.0.0> ;
    owl:priorVersion <https://w3id.org/adiro/aec_common_symbols/2.0.0> ;
    owl:priorVersion <https://w3id.org/adiro/aec_common_symbols/3.0.0> ;
    owl:versionIRI <https://w3id.org/adiro/aec_common_symbols/3.0.1> ;
    owl:versionInfo "3.0.1" ;
    owl:imports <https://w3id.org/adiro/aec_drawing_metadata> .

#################################################################
#    Classes — Generic drawing symbols
#################################################################

:Dimension rdf:type owl:Class;
    rdfs:subClassOf metadata:DrawingElement;
    rdfs:label "Dimension";
    rdfs:comment "A dimension line or dimension annotation on a drawing, indicating measurements or distances.";
    metadata:labellableRoot "true"^^xsd:boolean.

:Grid rdf:type owl:Class;
    rdfs:subClassOf metadata:DrawingElement;
    rdfs:label "Grid";
    rdfs:comment "A grid line or grid system used for alignment and reference in architectural drawings.";
    metadata:labellableRoot "true"^^xsd:boolean.

#################################################################
#    Classes — UC-03 Reference Symbol (cross-sheet linking)
#################################################################

:ReferenceSymbol rdf:type owl:Class;
    rdfs:subClassOf metadata:DrawingElement;
    rdfs:label "ReferenceSymbol";
    rdfs:comment "A symbol drawn on a Layout that references another Layout (on the same or a different DrawingSheet). Replaces the earlier Callout class. Typical instances include Detail Markers, Section Markers, and Elevation Markers. The marker type is not modelled — it is derivable from the target Layout's LayoutContentType.";
    metadata:labellableRoot "true"^^xsd:boolean.

#################################################################
#    Object Properties — UC-03 Reference Symbol relations
#################################################################

:hasReferenceSymbol rdf:type owl:ObjectProperty ;
    rdfs:label "hasReferenceSymbol" ;
    rdfs:comment "A Layout contains one or more ReferenceSymbols. To navigate from a symbol back to the Layout it is drawn on, use the SPARQL inverse path ^csymbol:hasReferenceSymbol - ADIRO declares no named inverse properties and no owl:inverseOf axioms (see GitHub issue #21)." ;
    rdfs:subPropertyOf metadata:contains ;
    rdfs:domain metadata:Layout ;
    rdfs:range :ReferenceSymbol .

:referencesLayout rdf:type owl:ObjectProperty ;
    rdfs:label "referencesLayout" ;
    rdfs:comment "Target Layout — the Layout this ReferenceSymbol points to. The target is Layout-level, not DrawingSheet-level. To find the symbols pointing AT a Layout, use the SPARQL inverse path ^csymbol:referencesLayout - ADIRO declares no named inverse properties and no owl:inverseOf axioms (see GitHub issue #21)." ;
    rdfs:domain :ReferenceSymbol ;
    rdfs:range metadata:Layout .
