@prefix bot: <https://w3id.org/bot#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix dqv: <http://www.w3.org/ns/dqv#> .
@prefix geo: <http://www.opengis.net/ont/geosparql#> .
@prefix giot: <https://www.geoiot.org/core#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix qudt: <http://qudt.org/schema/qudt/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix saref: <https://saref.etsi.org/core/> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix sosa: <http://www.w3.org/ns/sosa/> .
@prefix ssn: <http://www.w3.org/ns/ssn/> .
@prefix vann: <http://purl.org/vocab/vann/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<https://www.geoiot.org/core> a owl:Ontology ;
    dc:creator "Abdelrhman Rayis"^^xsd:string ;
    dc:title "GeoIoT-Core"^^xsd:string ;
    dcterms:created "2026-04-07"^^xsd:date ;
    dcterms:description """
        GeoIoT-Core is a lightweight bridging ontology for linking spatial entities,
        physical and virtual assets, sensing devices, and persistent observation streams
        across heterogeneous GIS, BIM, facilities-management, and IoT systems.

        The ontology intentionally reuses existing standards rather than replacing them:
        GeoSPARQL for geometry and topology, SOSA/SSN for observation semantics,
        BOT for built-environment structure. SAREF core, PROV-O and DQV are
        soft-aligned through targeted subClassOf/subPropertyOf axioms without
        being imported; QUDT is soft-aligned through giot:hasUnit (v1.2);
        SAREF4BLDG and OWL-Time are referenced via rdfs:seeAlso.

        Its distinctive contribution is the explicit bridge semantics for
        cross-system canonical identity reconciliation, asset-to-device monitoring,
        persistent stream-level representation, the physical-vs-virtual asset split,
        and stream-level provenance and quality attachment.
    """^^xsd:string ;
    dcterms:license <https://creativecommons.org/licenses/by/4.0/> ;
    dcterms:modified "2026-07-11"^^xsd:date ;
    vann:preferredNamespacePrefix "giot"^^xsd:string ;
    vann:preferredNamespaceUri "https://www.geoiot.org/core#"^^xsd:string ;
    rdfs:seeAlso <https://saref.etsi.org/core/v4.1.1/>,
        <https://saref.etsi.org/saref4bldg/v2.1.1/>,
        <https://www.w3.org/TR/owl-time/>,
        <https://www.w3.org/TR/prov-o/>,
        <https://www.w3.org/TR/vocab-dqv/> ;
    owl:imports <http://www.opengis.net/ont/geosparql>,
        sosa:,
        ssn:,
        <https://w3id.org/bot> ;
    owl:priorVersion <https://www.geoiot.org/core/1.1> ;
    owl:versionIRI <https://www.geoiot.org/core/1.2> ;
    owl:versionInfo "1.2"^^xsd:string .

giot:ActiveStatus a skos:Concept ;
    skos:definition "The stream is delivering observations within its expected update cadence."@en ;
    skos:inScheme giot:StreamStatusScheme ;
    skos:prefLabel "active"@en .

giot:Building a owl:Class ;
    rdfs:label "Building" ;
    rdfs:comment "A built structure within a site. Aligned with bot:Building." ;
    rdfs:subClassOf bot:Building,
        giot:SpatialEntity .

giot:OfflineStatus a skos:Concept ;
    skos:definition "The stream's source is known to be disconnected or decommissioned."@en ;
    skos:inScheme giot:StreamStatusScheme ;
    skos:prefLabel "offline"@en .

giot:Site a owl:Class ;
    rdfs:label "Site" ;
    rdfs:comment "A top-level geospatial site such as a campus, estate, district, or industrial facility. Aligned with bot:Site." ;
    rdfs:subClassOf bot:Site,
        giot:SpatialEntity .

giot:StaleStatus a skos:Concept ;
    skos:definition "The stream has not delivered observations within its expected update cadence."@en ;
    skos:inScheme giot:StreamStatusScheme ;
    skos:prefLabel "stale"@en .

giot:Zone a owl:Class ;
    rdfs:label "Zone" ;
    rdfs:comment "A functional or operational spatial subdivision such as a floor, room, hazard zone, or service area. Aligned with bot:Space." ;
    rdfs:subClassOf bot:Space,
        giot:SpatialEntity .

giot:canonicalIdValue a owl:DatatypeProperty ;
    rdfs:label "canonical ID value" ;
    rdfs:comment "The canonical identifier string assigned to the reconciled entity." ;
    rdfs:domain giot:CanonicalIdentity ;
    rdfs:range xsd:string .

giot:derivedFromStream a owl:ObjectProperty ;
    rdfs:label "derived from stream" ;
    rdfs:comment "Links a stream to an upstream stream from which it was derived. Aligned with prov:wasDerivedFrom. Supports CQ4." ;
    rdfs:domain giot:ObservationStream ;
    rdfs:range giot:ObservationStream ;
    rdfs:subPropertyOf prov:wasDerivedFrom .

giot:forObservableProperty a owl:ObjectProperty ;
    rdfs:label "for observable property" ;
    rdfs:comment "Associates a stream with the sosa:ObservableProperty it carries. Supports the CQ2 path from asset via device and stream to observable property." ;
    rdfs:domain giot:ObservationStream ;
    rdfs:range sosa:ObservableProperty .

giot:generatedByActivity a owl:ObjectProperty ;
    rdfs:label "generated by activity" ;
    rdfs:comment "A stream-level provenance shortcut aligned with prov:wasGeneratedBy. Supports CQ4." ;
    rdfs:domain giot:ObservationStream ;
    rdfs:range prov:Activity ;
    rdfs:subPropertyOf prov:wasGeneratedBy .

giot:hasCanonicalIdentity a owl:ObjectProperty ;
    rdfs:label "has canonical identity" ;
    rdfs:comment "Associates an entity with the canonical identity used for cross-system reconciliation. DESIGN NOTE (paper §5.1): intentionally cross-cutting and left without a narrow rdfs:domain, because spatial entities, assets, devices, and streams can all carry a canonical identity. Range is fixed to giot:CanonicalIdentity." ;
    rdfs:range giot:CanonicalIdentity .

giot:hasGeometry a owl:ObjectProperty ;
    rdfs:label "has geometry" ;
    rdfs:comment "Links a spatial entity to its GeoSPARQL geometry." ;
    rdfs:domain giot:SpatialEntity ;
    rdfs:range geo:Geometry ;
    rdfs:subPropertyOf geo:hasGeometry .

giot:hasObservation a owl:ObjectProperty ;
    rdfs:label "has observation" ;
    rdfs:comment "Links an observation stream to the individual sosa:Observation instances carried by that stream." ;
    rdfs:domain giot:ObservationStream ;
    rdfs:range sosa:Observation ;
    owl:inverseOf giot:observationInStream .

giot:hasObservationStream a owl:ObjectProperty ;
    rdfs:label "has observation stream" ;
    rdfs:comment "Links a device to a persistent observation stream. Together with giot:isMonitoredBy and giot:streamAboutAsset this closes the asset-device-stream path required by CQ2." ;
    rdfs:domain giot:IoTDevice ;
    rdfs:range giot:ObservationStream ;
    owl:inverseOf giot:streamProvidedBy .

giot:hasQualityAnnotation a owl:ObjectProperty ;
    rdfs:label "has quality annotation" ;
    rdfs:comment "Attaches a DQV-compatible quality annotation to an observation stream. GeoIoT-Core attaches quality at stream level by design; see paper §8." ;
    rdfs:domain giot:ObservationStream ;
    rdfs:range dqv:QualityAnnotation .

giot:hasSourceIdentifier a owl:ObjectProperty ;
    rdfs:label "has source identifier" ;
    rdfs:comment "Associates a canonical identity with one of its source-specific identifiers. Central to CQ3." ;
    rdfs:domain giot:CanonicalIdentity ;
    rdfs:range giot:SourceIdentifier .

giot:hasStatusRecord a owl:ObjectProperty ;
    rdfs:label "has status record" ;
    rdfs:comment "Links an observation stream to one of its time-indexed status records. Added in v1.2." ;
    rdfs:domain giot:ObservationStream ;
    rdfs:range giot:StatusRecord .

giot:hasStatusValue a owl:ObjectProperty ;
    rdfs:label "has status value" ;
    rdfs:comment "The controlled status value of a status record, drawn from giot:StreamStatusScheme. Added in v1.2." ;
    rdfs:domain giot:StatusRecord ;
    rdfs:range skos:Concept .

giot:hasUnit a owl:ObjectProperty ;
    rdfs:label "has unit" ;
    rdfs:comment "Associates an observation stream with the QUDT unit its values are expressed in. Soft alignment to QUDT (no import): values are expected from the QUDT unit vocabulary (http://qudt.org/vocab/unit/). Added in v1.2 to carry unit semantics (thesis Gap 2) at the core level, enabling unit-coherence checks before cross-stream comparison." ;
    rdfs:domain giot:ObservationStream ;
    rdfs:range qudt:Unit ;
    rdfs:seeAlso qudt: ;
    rdfs:subPropertyOf qudt:hasUnit .

giot:identifiedInSystem a owl:ObjectProperty ;
    rdfs:label "identified in system" ;
    rdfs:comment "Links a source identifier to the system that issued or owns it." ;
    rdfs:domain giot:SourceIdentifier ;
    rdfs:range giot:SourceSystem .

giot:identifierScheme a owl:DatatypeProperty ;
    rdfs:label "identifier scheme" ;
    rdfs:comment "The identifier scheme or field name used by the source system." ;
    rdfs:domain giot:SourceIdentifier ;
    rdfs:range xsd:string .

giot:identifierValue a owl:DatatypeProperty ;
    rdfs:label "identifier value" ;
    rdfs:comment "The literal identifier value used in a source system." ;
    rdfs:domain giot:SourceIdentifier ;
    rdfs:range xsd:string .

giot:isAdjacentTo a owl:ObjectProperty,
        owl:SymmetricProperty ;
    rdfs:label "is adjacent to" ;
    rdfs:comment "Expresses spatial adjacency between two spatial entities. Supports CQ6 (hazard-zone adjacency queries)." ;
    rdfs:domain giot:SpatialEntity ;
    rdfs:range giot:SpatialEntity .

giot:isLocatedIn a owl:ObjectProperty ;
    rdfs:label "is located in" ;
    rdfs:comment "Locates an entity within a broader spatial entity. DESIGN NOTE (paper §5.1): this property is intentionally declared without a narrow rdfs:domain because assets, devices, AND observation streams can all be located, and forcing a single domain would defeat the cross-cutting bridge role of GeoIoT-Core. Range is restricted to giot:SpatialEntity." ;
    rdfs:range giot:SpatialEntity .

giot:isMonitoredBy a owl:ObjectProperty ;
    rdfs:label "is monitored by" ;
    rdfs:comment "Links an asset to the device that monitors it. Core bridge property for CQ2 and CQ6." ;
    rdfs:domain giot:Asset ;
    rdfs:range giot:IoTDevice ;
    owl:inverseOf giot:monitorsAsset .

giot:observesProperty a owl:ObjectProperty ;
    rdfs:label "observes property" ;
    rdfs:comment "A device-level observable-property relation aligned with sosa:observes." ;
    rdfs:domain giot:IoTDevice ;
    rdfs:range sosa:ObservableProperty ;
    rdfs:subPropertyOf sosa:observes .

giot:providedBySystem a owl:ObjectProperty ;
    rdfs:label "provided by system" ;
    rdfs:comment "Links a source identifier or an observation stream to the source system that provided it. Deliberately declared without a narrow rdfs:domain because both identifiers and streams may carry this relation." ;
    rdfs:range giot:SourceSystem .

giot:qualityScore a owl:DatatypeProperty ;
    rdfs:label "quality score" ;
    rdfs:comment "A compact numeric quality score for a stream-level quality annotation. Supports the CQ5 threshold filter." ;
    rdfs:domain giot:QualityAnnotation ;
    rdfs:range xsd:decimal .

giot:shadows a owl:ObjectProperty ;
    rdfs:label "shadows" ;
    rdfs:comment "Links a virtual asset to the physical asset it shadows (acts as a digital proxy, twin, or modeled counterpart for). Introduced in v1.1 to make CQ7 natively answerable: 'which virtual assets shadow physical assets in the same building, and which observation streams are attached to each side of the pair'." ;
    rdfs:domain giot:VirtualAsset ;
    rdfs:range giot:PhysicalAsset ;
    owl:inverseOf giot:isShadowedBy .

giot:statusSince a owl:DatatypeProperty ;
    rdfs:label "status since" ;
    rdfs:comment "The instant from which this status record applies. Added in v1.2." ;
    rdfs:domain giot:StatusRecord ;
    rdfs:range xsd:dateTime .

giot:statusUntil a owl:DatatypeProperty ;
    rdfs:label "status until" ;
    rdfs:comment "The instant until which this status record applied; absent for the current record. Added in v1.2." ;
    rdfs:domain giot:StatusRecord ;
    rdfs:range xsd:dateTime .

giot:streamAboutAsset a owl:ObjectProperty ;
    rdfs:label "stream about asset" ;
    rdfs:comment "Associates a stream with the asset whose behaviour it captures. Allows a stream to be linked to an asset even when the device-asset relation is indirect." ;
    rdfs:domain giot:ObservationStream ;
    rdfs:range giot:Asset .

giot:streamStatus a owl:DatatypeProperty ;
    rdfs:label "stream status" ;
    rdfs:comment "Current-status convenience snapshot for a stream. Values SHOULD correspond to concepts in giot:StreamStatusScheme (active, stale, offline). For status tracking over time use giot:StatusRecord (v1.2). Supports CQ8." ;
    rdfs:domain giot:ObservationStream ;
    rdfs:range xsd:string .

giot:updateFrequency a owl:DatatypeProperty ;
    rdfs:label "update frequency" ;
    rdfs:comment "The nominal update frequency of an observation stream. Supports CQ8 (stream freshness filter)." ;
    rdfs:domain giot:ObservationStream ;
    rdfs:range xsd:duration .

giot:QualityAnnotation a owl:Class ;
    rdfs:label "Quality Annotation" ;
    rdfs:comment "A quality annotation attached at stream level, aligned with dqv:QualityAnnotation. GeoIoT-Core attaches DQV at the stream rather than the observation level; see paper §8 on the stream-level granularity tradeoff." ;
    rdfs:subClassOf dqv:QualityAnnotation .

giot:isShadowedBy a owl:ObjectProperty ;
    rdfs:label "is shadowed by" ;
    rdfs:comment "Inverse of giot:shadows; links a physical asset to the virtual asset that shadows it." ;
    rdfs:domain giot:PhysicalAsset ;
    rdfs:range giot:VirtualAsset .

giot:monitorsAsset a owl:ObjectProperty ;
    rdfs:label "monitors asset" ;
    rdfs:comment "Inverse of giot:isMonitoredBy." ;
    rdfs:domain giot:IoTDevice ;
    rdfs:range giot:Asset .

giot:observationInStream a owl:ObjectProperty ;
    rdfs:label "observation in stream" ;
    rdfs:comment "Inverse of giot:hasObservation." ;
    rdfs:domain sosa:Observation ;
    rdfs:range giot:ObservationStream .

giot:streamProvidedBy a owl:ObjectProperty ;
    rdfs:label "stream provided by" ;
    rdfs:comment "Inverse of giot:hasObservationStream." ;
    rdfs:domain giot:ObservationStream ;
    rdfs:range giot:IoTDevice .

giot:PhysicalAsset a owl:Class ;
    rdfs:label "Physical Asset" ;
    rdfs:comment "A tangible asset such as equipment, infrastructure, or built fabric." ;
    rdfs:subClassOf giot:Asset ;
    owl:disjointWith giot:VirtualAsset .

giot:SourceSystem a owl:Class ;
    rdfs:label "Source System" ;
    rdfs:comment "An external system that issues identifiers or provides stream data. Aligned with prov:SoftwareAgent so that stream- and identifier-level provenance can be expressed natively." ;
    rdfs:subClassOf prov:SoftwareAgent .

giot:CanonicalIdentity a owl:Class ;
    rdfs:label "Canonical Identity" ;
    rdfs:comment "A canonical identity record used to reconcile heterogeneous source identifiers referring to the same real-world entity across GIS, BIM, facilities, and IoT systems. Central to CQ3." .

giot:StreamStatusScheme a skos:ConceptScheme ;
    rdfs:label "Stream Status Scheme" ;
    rdfs:comment "Controlled vocabulary for observation-stream operational status. Added in v1.2 to replace free-string status values." ;
    skos:prefLabel "Stream Status Scheme"@en .

giot:VirtualAsset a owl:Class ;
    rdfs:label "Virtual Asset" ;
    rdfs:comment "A software-defined, remote, or modeled asset such as an API source, digital proxy, estimated entity, or a virtual shadow of a physical asset. Used together with giot:shadows to support CQ7." ;
    rdfs:subClassOf giot:Asset .

giot:SourceIdentifier a owl:Class ;
    rdfs:label "Source Identifier" ;
    rdfs:comment "A source-specific identifier originating from a GIS, BIM, facilities, or IoT system and attached to a canonical identity." .

giot:StatusRecord a owl:Class ;
    rdfs:label "Status Record" ;
    rdfs:comment "A time-indexed record of an observation stream's operational status, enabling stream status to be tracked over time rather than held as a single snapshot. Each record carries a status value from giot:StreamStatusScheme and an interval (statusSince, optionally statusUntil). Added in v1.2; extends CQ8 from a snapshot query to a history query." .

giot:Asset a owl:Class ;
    rdfs:label "Asset" ;
    rdfs:comment "A real-world operational entity that is observed, managed, or monitored. Aligned with sosa:FeatureOfInterest." ;
    rdfs:subClassOf sosa:FeatureOfInterest .

giot:IoTDevice a owl:Class ;
    rdfs:label "IoT Device" ;
    rdfs:comment "A sensing or telemetry-capable device. giot:IoTDevice is intentionally a thin convenience alias aligned with saref:Device and sosa:Sensor (paper §5.1). It is NOT claimed as a novelty contribution of GeoIoT-Core; its purpose is to make SAREF- and SOSA-modelled devices addressable through a single local identifier for the bridge-level properties defined in this ontology." ;
    rdfs:subClassOf sosa:Sensor,
        saref:Device .

giot:SpatialEntity a owl:Class ;
    rdfs:label "Spatial Entity" ;
    rdfs:comment "A geospatially grounded entity that can carry GeoSPARQL geometry and topology. Top-level spatial anchor for sites, buildings, and zones in GeoIoT-Core." ;
    rdfs:subClassOf geo:Feature .

giot:ObservationStream a owl:Class ;
    rdfs:label "Observation Stream" ;
    rdfs:comment """
        A persistent named stream of observations associated with a device, an
        observable property, and optionally an asset or spatial context. This is
        the main stream-level integration unit in GeoIoT-Core and the attachment
        point for stream-level provenance (PROV-O) and quality (DQV) metadata.
    """ ;
    rdfs:subClassOf prov:Entity .

