From c76d6e97031f4bb5c417b0e3048229bcc74e32ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mari=CC=81a?= Date: Wed, 24 Jul 2024 12:48:58 +0200 Subject: [PATCH 01/10] Removed disjoint between entities from other ontologies. Closes #15 --- ontology/saref4city.ttl | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/ontology/saref4city.ttl b/ontology/saref4city.ttl index 5f6fc29..15f7179 100644 --- a/ontology/saref4city.ttl +++ b/ontology/saref4city.ttl @@ -383,7 +383,6 @@ cpsv:PublicService a owl:Class ; geo:Feature a owl:Class ; rdfs:subClassOf geo:SpatialObject ; - owl:disjointWith geo:Geometry ; rdfs:comment "This class represents the top-level feature type. This class is equivalent to GFI_Feature defined in ISO 19156:2011, and it is superclass of all feature types."@en ; rdfs:isDefinedBy ; rdfs:label "Feature"@en . @@ -757,12 +756,7 @@ saref:Measurement a owl:Class ; [ a owl:Restriction ; owl:onProperty saref:hasValue ; owl:cardinality "1"^^xsd:nonNegativeInteger ] . -# -saref:Measurement owl:disjointWith saref:Property , saref:UnitOfMeasure ; - rdfs:comment "Represents the measured value made over a property. It is also linked to the unit of measure in which the value is expressed and the timestamp of the measurement."@en ; - rdfs:isDefinedBy ; - rdfs:label "Measurement"@en . -# + # https://saref.etsi.org/core/Property saref:Property a owl:Class ; @@ -782,11 +776,7 @@ saref:Property a owl:Class ; owl:onProperty saref:relatesToMeasurement ; owl:allValuesFrom saref:Measurement ] . -saref:Property owl:disjointWith saref:UnitOfMeasure ; - rdfs:comment "An aspect of an entity that can be observable by a sensor."@en , "Anything that can be sensed, measured or controlled in households, common public buildings or offices. We propose here a list of properties that are relevant for the purpose of SAREF, but this list can be extended."^^xsd:string ; - rdfs:isDefinedBy ; - rdfs:label "Property"@en . -# + # https://saref.etsi.org/core/Sensor saref:Sensor a owl:Class ; -- GitLab From a962695fb84cf69ad34d94c5608191788d401866 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mari=CC=81a?= Date: Thu, 25 Jul 2024 09:00:59 +0200 Subject: [PATCH 02/10] Remove SAREF core definitions and update SAREF core import. Closes #14 --- ontology/saref4city.ttl | 208 +--------------------------------------- 1 file changed, 2 insertions(+), 206 deletions(-) diff --git a/ontology/saref4city.ttl b/ontology/saref4city.ttl index 15f7179..6200faf 100644 --- a/ontology/saref4city.ttl +++ b/ontology/saref4city.ttl @@ -18,9 +18,9 @@ owl:versionIRI ; dcterms:title "SAREF extension for Smart City"@en ; owl:versionInfo "v1.1.2" ; - owl:imports ; + owl:imports ; dcterms:issued "2020-06-05"^^xsd:date ; - dcterms:modified "2020-06-05"^^xsd:date ; + dcterms:modified "2024-07-25"^^xsd:date ; dcterms:creator ; dcterms:license ; dcterms:creator ; @@ -208,71 +208,9 @@ s4city:takesPlaceAtFacility a owl:ObjectProperty ; s4city:takesPlaceAtTime a owl:ObjectProperty ; rdfs:comment "takes place at time"@en ; rdfs:label "takes place at time"@en . -# -# https://saref.etsi.org/core/controlsProperty - -saref:controlsProperty a owl:ObjectProperty ; - rdfs:comment "controls property"@en ; - rdfs:label "controls property"@en . - -# -# https://saref.etsi.org/core/hasProperty - -saref:hasProperty a owl:ObjectProperty ; - owl:inverseOf saref:isPropertyOf ; - rdfs:label "has property"@en . -# -# https://saref.etsi.org/core/isControlledByDevice - -saref:isControlledByDevice a owl:ObjectProperty ; - rdfs:isDefinedBy ; - rdfs:label "is controlled by device"@en . -# -# https://saref.etsi.org/core/isMeasuredByDevice - -saref:isMeasuredByDevice a owl:ObjectProperty ; - rdfs:isDefinedBy ; - rdfs:label "is measured by device"@en . -# -# https://saref.etsi.org/core/isMeasuredIn - -saref:isMeasuredIn a owl:ObjectProperty ; - rdfs:isDefinedBy ; - rdfs:label "is measured in"@en . -# -# https://saref.etsi.org/core/isPropertyOf -saref:isPropertyOf a owl:ObjectProperty ; - rdfs:label "is property of"@en . -# -# https://saref.etsi.org/core/makesMeasurement -saref:makesMeasurement a owl:ObjectProperty ; - owl:inverseOf saref:measurementMadeBy ; - rdfs:isDefinedBy ; - rdfs:label "makes measurement"@en . -# -# https://saref.etsi.org/core/measurementMadeBy -saref:measurementMadeBy a owl:ObjectProperty . -# -# https://saref.etsi.org/core/measuresProperty - -saref:measuresProperty a owl:ObjectProperty ; - rdfs:isDefinedBy ; - rdfs:label "measures property"@en . -# -# https://saref.etsi.org/core/relatesToMeasurement - -saref:relatesToMeasurement a owl:ObjectProperty ; - rdfs:isDefinedBy ; - rdfs:label "relates to measurement"@en . -# -# https://saref.etsi.org/core/relatesToProperty - -saref:relatesToProperty a owl:ObjectProperty ; - rdfs:isDefinedBy ; - rdfs:label "relates to property"@en . # http://www.w3.org/2003/01/geo/wgs84_pos#location @@ -313,30 +251,7 @@ s4city:hasLastUpdateDate a owl:DatatypeProperty ; rdfs:comment "has last update date"@en ; rdfs:label "has last update date"@en . # -# https://saref.etsi.org/core/hasDescription - -# saref:hasDescription a owl:DatatypeProperty ; -# rdfs:isDefinedBy ; -# rdfs:label "has description"@en . -# -# https://saref.etsi.org/core/hasName -# saref:hasName a owl:DatatypeProperty ; -# rdfs:isDefinedBy ; -# rdfs:label "has name"@en . -# -# https://saref.etsi.org/core/hasTimestamp - -# saref:hasTimestamp a owl:DatatypeProperty ; -# rdfs:isDefinedBy ; -# rdfs:label "has timestamp"@en . -# -# https://saref.etsi.org/core/hasValue - -# saref:hasValue a owl:DatatypeProperty ; -# rdfs:isDefinedBy ; -# rdfs:label "has value"@en . -# http://www.w3.org/2003/01/geo/wgs84_pos#alt wgs84:SpatialThing a owl:Class . @@ -673,122 +588,3 @@ s4city:PublicService a owl:Class ; s4city:PublicService rdfs:comment "Public service is a service which is provided by government either directly (through the public sector) or by financing provision of services. (Definition taken from Wikipedia)"@en ; rdfs:label "Public service"@en ; rdfs:seeAlso . -# -# https://saref.etsi.org/core/Actuator - -saref:Actuator a owl:Class ; - rdfs:subClassOf saref:Device ; - rdfs:comment "A device responsible for moving or controlling a mechanism or system"@en ; - rdfs:isDefinedBy ; - rdfs:label "Actuator"@en . -# -# https://saref.etsi.org/core/Device - -saref:Device a owl:Class ; - rdfs:subClassOf geo:Feature , - [ a owl:Restriction ; - owl:onProperty saref:controlsProperty ; - owl:allValuesFrom saref:Property ] , - - [ a owl:Restriction ; - owl:onProperty saref:makesMeasurement ; - owl:allValuesFrom saref:Measurement ] , - - [ a owl:Restriction ; - owl:onProperty saref:measuresProperty ; - owl:allValuesFrom saref:Property ] . - - # [ a owl:Restriction ; - # owl:onProperty saref:hasDescription ; - # owl:maxCardinality "1"^^xsd:nonNegativeInteger ] . - -saref:Device rdfs:comment "A tangible object designed to accomplish a particular task in households, common public buildings or offices. In order to accomplish this task, the device performs one or more functions. For example, a washing machine is designed to wash (task) and to accomplish this task it performs a start and stop function. Devices can be structured in categories (subclasses) that reflect the different domain in which a device is used, e.g., smart appliances domain (subclass FunctionRelated) vs. building domain (subclass BuildingRelated) vs. smart grid domain (subclass EnergyRelated). New categories can be defined,if needed, to reflect other differences, for example different points of view, such as the point of view of the device's user vs. the point of view of the device's manufacturer. We propose a list of devices that are relevant for the purpose of SAREF, but this list can be extended."^^xsd:string ; - rdfs:label "Device"^^xsd:string . -# -# https://saref.etsi.org/core/FeatureOfInterest - -saref:FeatureOfInterest a owl:Class ; - rdfs:subClassOf [ a owl:Restriction ; - owl:onProperty s4city:hasKPI ; - owl:allValuesFrom s4city:KeyPerformanceIndicator ] , - - [ a owl:Restriction ; - owl:onProperty saref:hasProperty ; - owl:allValuesFrom saref:Property ] , - - [ a owl:Restriction ; - owl:onProperty saref:hasMeasurement ; - owl:allValuesFrom saref:Measurement ] . -# -# https://saref.etsi.org/core/Measurement - -saref:Measurement a owl:Class ; - rdfs:subClassOf [ a owl:Restriction ; - owl:onProperty saref:isMeasurementOf ; - owl:allValuesFrom saref:FeatureOfInterest ] , - - [ a owl:Restriction ; - owl:onProperty saref:isMeasuredIn ; - owl:allValuesFrom saref:UnitOfMeasure ] , - - [ a owl:Restriction ; - owl:onProperty saref:measurementMadeBy ; - owl:allValuesFrom saref:Device ] , - - [ a owl:Restriction ; - owl:onProperty saref:relatesToProperty ; - owl:allValuesFrom saref:Property ] , - - [ a owl:Restriction ; - owl:onProperty saref:isMeasuredIn ; - owl:qualifiedCardinality "1"^^xsd:nonNegativeInteger ; - owl:onClass saref:UnitOfMeasure ] , - - [ a owl:Restriction ; - owl:onProperty saref:relatesToProperty ; - owl:qualifiedCardinality "1"^^xsd:nonNegativeInteger ; - owl:onClass saref:Property ] , - - [ a owl:Restriction ; - owl:onProperty saref:hasTimestamp ; - owl:allValuesFrom xsd:dateTime ] , - - [ a owl:Restriction ; - owl:onProperty saref:hasValue ; - owl:cardinality "1"^^xsd:nonNegativeInteger ] . - -# https://saref.etsi.org/core/Property - -saref:Property a owl:Class ; - rdfs:subClassOf [ a owl:Restriction ; - owl:onProperty saref:isControlledByDevice ; - owl:allValuesFrom saref:Device ] , - - [ a owl:Restriction ; - owl:onProperty saref:isMeasuredByDevice ; - owl:allValuesFrom saref:Device ] , - - [ a owl:Restriction ; - owl:onProperty saref:isPropertyOf ; - owl:allValuesFrom saref:FeatureOfInterest ] , - - [ a owl:Restriction ; - owl:onProperty saref:relatesToMeasurement ; - owl:allValuesFrom saref:Measurement ] . - - -# https://saref.etsi.org/core/Sensor - -saref:Sensor a owl:Class ; - rdfs:subClassOf saref:Device ; - rdfs:comment """A device that detects and responds to events or changes in the physical environment such as light, motion, or temperature changes. -A device that has category saref:Sensor and performs a saref:SensingFunction."""@en ; - rdfs:isDefinedBy ; - rdfs:label "Sensor"@en . -# -# https://saref.etsi.org/core/UnitOfMeasure - -saref:UnitOfMeasure a owl:Class ; - rdfs:comment "The unit of measure is a standard for measurement of a quantity, such as a Property. For example, Power is a property and Watt is a unit of power that represents a definite predetermined power: when we say 10 Watt, we actually mean 10 times the definite predetermined power called \"watt\". Our definition is based on the definition of unit of measure in the Ontology of units of Measure (OM). We propose here a list of some units of measure that are relevant for the purpose of the Smart Appliances ontology, but this list can be extended."@en ; - rdfs:isDefinedBy ; - rdfs:label "Unit of measure"@en . -- GitLab From 939f1d7c573639820b23d0c14520ea043c687053 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mari=CC=81a?= Date: Thu, 25 Jul 2024 09:56:32 +0200 Subject: [PATCH 03/10] Remove W3C Basic Geo Vocabulary elements. The prefix geo was not changes as it was already fixed. Closes #17 --- ontology/saref4city.ttl | 39 --------------------------------------- 1 file changed, 39 deletions(-) diff --git a/ontology/saref4city.ttl b/ontology/saref4city.ttl index 6200faf..7f235c6 100644 --- a/ontology/saref4city.ttl +++ b/ontology/saref4city.ttl @@ -1,5 +1,4 @@ @prefix : . -@prefix wgs84: . @prefix owl: . @prefix rdf: . @prefix xml: . @@ -213,12 +212,6 @@ s4city:takesPlaceAtTime a owl:ObjectProperty ; -# http://www.w3.org/2003/01/geo/wgs84_pos#location - -wgs84:location a owl:ObjectProperty ; - rdfs:comment "The relation between something and the point, or other geometrical thing in space, where it is. For example, the realtionship between a radio tower and a Point with a given lat and long. Or a relationship between a park and its outline as a closed arc of points, or a road and its location as a arc (a sequence of points). Clearly in practice there will be limit to the accuracy of any such statement, but one would expect an accuracy appropriate for the size of the object and uses such as mapping ." ; - rdfs:label "location" . -# # # @@ -253,26 +246,7 @@ s4city:hasLastUpdateDate a owl:DatatypeProperty ; # -wgs84:SpatialThing a owl:Class . - -wgs84:alt a owl:DatatypeProperty ; - rdfs:comment "The WGS84 altitude of a SpatialThing (decimal meters above the local reference ellipsoid)." ; - rdfs:label "altitude" ; - rdfs:domain wgs84:SpatialThing . -# -# http://www.w3.org/2003/01/geo/wgs84_pos#lat - -wgs84:lat a owl:DatatypeProperty ; - rdfs:comment "The WGS84 latitude of a SpatialThing (decimal degrees)." ; - rdfs:label "latitude" ; - rdfs:domain wgs84:SpatialThing . -# -# http://www.w3.org/2003/01/geo/wgs84_pos#long -wgs84:long a owl:DatatypeProperty ; - rdfs:comment "The WGS84 longitude of a SpatialThing (decimal degrees)." ; - rdfs:label "longitude" ; - rdfs:domain wgs84:SpatialThing . # # # @@ -317,20 +291,7 @@ geo:SpatialObject a owl:Class ; rdfs:isDefinedBy ; rdfs:label "SpatialObject"@en . # -# http://www.w3.org/2003/01/geo/wgs84_pos#Point - -wgs84:Point a owl:Class ; - rdfs:subClassOf geo:Geometry ; - rdfs:comment """ -Uniquely identified by lat/long/alt. i.e. - -spaciallyIntersects(P1, P2) :- lat(P1, LAT), long(P1, LONG), alt(P1, ALT), - lat(P2, LAT), long(P2, LONG), alt(P2, ALT). -sameThing(P1, P2) :- type(P1, Point), type(P2, Point), spaciallyIntersects(P1, P2). - """ , "A point, typically described using a coordinate system relative to Earth, such as WGS84." ; - rdfs:isDefinedBy ; - rdfs:label "Point"@en . # # http://www.w3.org/2004/02/skos/core#Concept -- GitLab From 2b62fc821e090be47abec6c8a7f5a5406b533ad0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mari=CC=81a?= Date: Thu, 25 Jul 2024 10:25:29 +0200 Subject: [PATCH 04/10] Added domain and ranges for clear cases. Also modified comments for those properties. Closes #11 --- ontology/saref4city.ttl | 1066 +++++++++++++++++++-------------------- 1 file changed, 529 insertions(+), 537 deletions(-) diff --git a/ontology/saref4city.ttl b/ontology/saref4city.ttl index 7f235c6..8311a3b 100644 --- a/ontology/saref4city.ttl +++ b/ontology/saref4city.ttl @@ -1,4 +1,5 @@ @prefix : . +@prefix geo: . @prefix owl: . @prefix rdf: . @prefix xml: . @@ -8,544 +9,535 @@ @prefix rdfs: . @prefix time: . @prefix vann: . -@prefix geo: . @prefix saref: . @prefix s4city: . @prefix dcterms: . +@base . + + rdf:type owl:Ontology ; + owl:versionIRI ; + owl:imports ; + dcterms:creator , + , + ; + dcterms:description "This ontology extends the SAREF ontology for the Smart City domain. This work has been developed in the context of the STF 534 (https://portal.etsi.org/STF/STFs/STFHomePages/STF534.aspx), which was established with the goal to create three SAREF extensions, one of them for the Smart City domain."@en ; + dcterms:issued "2020-06-05"^^xsd:date ; + dcterms:license ; + dcterms:modified "2024-07-25"^^xsd:date ; + dcterms:publisher ; + dcterms:source ; + dcterms:title "SAREF extension for Smart City"@en ; + vann:preferredNamespacePrefix "s4city" ; + vann:preferredNamespaceUri "https://saref.etsi.org/saref4city/" ; + rdfs:comment """Information about changes compared to version 1.1.1: + - Updated namespaces for compatibility with SAREF v3."""@en ; + rdfs:seeAlso ; + owl:versionInfo "v1.1.2" . + +################################################################# +# Annotation properties +################################################################# + +### http://purl.org/dc/terms/contributor +dcterms:contributor rdf:type owl:AnnotationProperty . + + +### http://purl.org/dc/terms/creator +dcterms:creator rdf:type owl:AnnotationProperty . + + +### http://purl.org/dc/terms/description +dcterms:description rdf:type owl:AnnotationProperty . + + +### http://purl.org/dc/terms/issued +dcterms:issued rdf:type owl:AnnotationProperty . + + +### http://purl.org/dc/terms/license +dcterms:license rdf:type owl:AnnotationProperty . + + +### http://purl.org/dc/terms/modified +dcterms:modified rdf:type owl:AnnotationProperty . + + +### http://purl.org/dc/terms/publisher +dcterms:publisher rdf:type owl:AnnotationProperty . + + +### http://purl.org/dc/terms/source +dcterms:source rdf:type owl:AnnotationProperty . + + +### http://purl.org/dc/terms/title +dcterms:title rdf:type owl:AnnotationProperty . + + +### http://purl.org/vocab/vann/preferredNamespacePrefix +vann:preferredNamespacePrefix rdf:type owl:AnnotationProperty . + + +### http://purl.org/vocab/vann/preferredNamespaceUri +vann:preferredNamespaceUri rdf:type owl:AnnotationProperty . + + +################################################################# +# Object Properties +################################################################# + +### http://purl.org/vocab/cpsv#physicallyAvailableAt +cpsv:physicallyAvailableAt rdf:type owl:ObjectProperty ; + rdfs:comment "A physical location at which a user may interact with the Public Service."@en ; + rdfs:isDefinedBy cpsv: ; + rdfs:label "physically available at"@en . + + +### http://purl.org/vocab/cpsv#provides +cpsv:provides rdf:type owl:ObjectProperty ; + rdfs:comment "The provides property links an Agent to a Public Service for which it is responsible. Whether it provides the service directly or outsources it is not relevant, the Agent that provides the service is the one that is ultimately responsible for its provision."@en ; + rdfs:isDefinedBy cpsv: ; + rdfs:label "provides"@en . + + +### http://purl.org/vocab/cpsv#uses +cpsv:uses rdf:type owl:ObjectProperty ; + rdfs:comment "The uses property links an Agent to a Public Service in which it plays the specific role of user, meaning that it provides the input and receives the output but does not play any direct role in providing the service. This will typically be an individual citizen or an outside organisation."@en ; + rdfs:isDefinedBy cpsv: ; + rdfs:label "uses"@en . + + +### http://www.opengis.net/ont/geosparql#hasGeometry +geo:hasGeometry rdf:type owl:ObjectProperty ; + rdfs:comment "A spatial representation for a given feature."@en ; + rdfs:isDefinedBy geo: ; + rdfs:label "has geometry"@en . + + +### http://www.opengis.net/ont/geosparql#sfContains +geo:sfContains rdf:type owl:ObjectProperty ; + rdfs:comment "Exists if the subject SpatialObject spatially contains the object SpatialObject. DE-9IM: T*****FF*"@en ; + rdfs:isDefinedBy ; + rdfs:label "contains"@en . + + +### http://www.opengis.net/ont/geosparql#sfWithin +geo:sfWithin rdf:type owl:ObjectProperty ; + rdfs:comment "Exists if the subject SpatialObject is spatially within the object SpatialObject. DE-9IM: T*F**F***"@en ; + rdfs:isDefinedBy ; + rdfs:label "within"@en . + + +### https://saref.etsi.org/saref4city/assesses +s4city:assesses rdf:type owl:ObjectProperty ; + rdfs:comment "assesses"@en ; + rdfs:label "assesses"@en . + + +### https://saref.etsi.org/saref4city/hasAccesibility +s4city:hasAccesibility rdf:type owl:ObjectProperty ; + rdfs:comment "has accesibility"@en ; + rdfs:label "has accesibility"@en . + + +### https://saref.etsi.org/saref4city/hasCalculationPeriod +s4city:hasCalculationPeriod rdf:type owl:ObjectProperty ; + rdfs:domain s4city:KeyPerformanceIndicator ; + rdfs:range time:TemporalDuration ; + rdfs:comment "has calculation period"@en ; + rdfs:label "has calculation period"@en . + + +### https://saref.etsi.org/saref4city/hasKPI +s4city:hasKPI rdf:type owl:ObjectProperty ; + owl:inverseOf s4city:isKPIOf ; + rdfs:domain saref:FeatureOfInterest ; + rdfs:range s4city:KeyPerformanceIndicator ; + rdfs:comment "Relation between a feature of interes and Key Performance Indicators"@en ; + rdfs:label "has key performance indicator"@en . + + +### https://saref.etsi.org/saref4city/involvesFacility +s4city:involvesFacility rdf:type owl:ObjectProperty ; + rdfs:domain s4city:PublicService ; + rdfs:range s4city:Facility ; + rdfs:comment "Relation between public services and the facilities involved"@en ; + rdfs:label "involves facility"@en . + + +### https://saref.etsi.org/saref4city/isAssessedBy +s4city:isAssessedBy rdf:type owl:ObjectProperty ; + rdfs:comment "is assessed by"@en ; + rdfs:label "is assessed by"@en . + + +### https://saref.etsi.org/saref4city/isAvailableInLanguage +s4city:isAvailableInLanguage rdf:type owl:ObjectProperty ; + rdfs:domain s4city:PublicService ; + rdfs:range dcterms:LinguisticSystem ; + rdfs:comment "Relation between a public service and the languages it is available in."@en ; + rdfs:label "is available in language"@en . + + +### https://saref.etsi.org/saref4city/isDerivedFrom +s4city:isDerivedFrom rdf:type owl:ObjectProperty ; + rdfs:comment "is derived from"@en ; + rdfs:label "is derived from"@en . + + +### https://saref.etsi.org/saref4city/isKPIOf +s4city:isKPIOf rdf:type owl:ObjectProperty ; + rdfs:domain s4city:KeyPerformanceIndicator ; + rdfs:range saref:FeatureOfInterest ; + rdfs:comment "is key performance indicator of"@en ; + rdfs:label "is key performance indicator of"@en . + + +### https://saref.etsi.org/saref4city/isOrganizedBy +s4city:isOrganizedBy rdf:type owl:ObjectProperty ; + rdfs:comment "is organized by"@en ; + rdfs:label "is organized by"@en . + + +### https://saref.etsi.org/saref4city/isSubEventOf +s4city:isSubEventOf rdf:type owl:ObjectProperty ; + rdfs:domain s4city:Event ; + rdfs:range s4city:Event ; + rdfs:comment "Relation between an event and a more general event it is part of."@en ; + rdfs:label "is subevent of"@en . + + +### https://saref.etsi.org/saref4city/quantifiesKPI +s4city:quantifiesKPI rdf:type owl:ObjectProperty ; + rdfs:range s4city:KeyPerformanceIndicator ; + rdfs:comment "quantifies KPI"@en ; + rdfs:label "quantifies KPI"@en . + + +### https://saref.etsi.org/saref4city/refersToFeature +s4city:refersToFeature rdf:type owl:ObjectProperty ; + rdfs:domain s4city:KeyPerformanceIndicatorAssessment ; + rdfs:range geo:Feature ; + rdfs:comment "Relation between a KPI assessment and the geographical feature it refers to"@en ; + rdfs:label "refers to feature"@en . + + +### https://saref.etsi.org/saref4city/refersToTime +s4city:refersToTime rdf:type owl:ObjectProperty ; + rdfs:range time:TemporalEntity ; + rdfs:comment "refers to time"@en ; + rdfs:label "refers to time"@en . + + +### https://saref.etsi.org/saref4city/takesPlaceAtFacility +s4city:takesPlaceAtFacility rdf:type owl:ObjectProperty ; + rdfs:domain s4city:Event ; + rdfs:range s4city:Facility ; + rdfs:comment "Relation between an event and the facilities it takes place at."@en ; + rdfs:label "takes place at facility"@en . + + +### https://saref.etsi.org/saref4city/takesPlaceAtTime +s4city:takesPlaceAtTime rdf:type owl:ObjectProperty ; + rdfs:domain s4city:Event ; + rdfs:range time:TemporalEntity ; + rdfs:comment "Relation between an event and the tiem when it takes place."@en ; + rdfs:label "takes place at time"@en . + + +################################################################# +# Data properties +################################################################# + +### https://saref.etsi.org/saref4city/hasCreationDate +s4city:hasCreationDate rdf:type owl:DatatypeProperty ; + rdfs:range xsd:dateTime ; + rdfs:comment "has creation date"@en ; + rdfs:label "has creation date"@en . + + +### https://saref.etsi.org/saref4city/hasExpirationDate +s4city:hasExpirationDate rdf:type owl:DatatypeProperty ; + rdfs:range xsd:dateTime ; + rdfs:comment "has expiration date"@en ; + rdfs:label "has expiration date"@en . + + +### https://saref.etsi.org/saref4city/hasLastUpdateDate +s4city:hasLastUpdateDate rdf:type owl:DatatypeProperty ; + rdfs:range xsd:dateTime ; + rdfs:comment "has last update date"@en ; + rdfs:label "has last update date"@en . + + +################################################################# +# Classes +################################################################# + +### http://purl.org/dc/terms/LinguisticSystem +dcterms:LinguisticSystem rdf:type owl:Class . + + +### http://purl.org/vocab/cpsv#PublicService +cpsv:PublicService rdf:type owl:Class ; + rdfs:comment "This class represents the service itself. A public service is the capacity to carry out a procedure and exists whether it is used or not. It is a set of deeds and acts performed by or on behalf of a public agency for the benefit of a citizen, a business or another public agency."@en ; + rdfs:isDefinedBy cpsv: ; + rdfs:label "Public Service"@en . + + +### http://www.opengis.net/ont/geosparql#Feature +geo:Feature rdf:type owl:Class ; + rdfs:subClassOf geo:SpatialObject ; + rdfs:comment "This class represents the top-level feature type. This class is equivalent to GFI_Feature defined in ISO 19156:2011, and it is superclass of all feature types."@en ; + rdfs:isDefinedBy ; + rdfs:label "Feature"@en . + + +### http://www.opengis.net/ont/geosparql#Geometry +geo:Geometry rdf:type owl:Class ; + rdfs:subClassOf geo:SpatialObject ; + rdfs:comment "The class represents the top-level geometry type. This class is equivalent to the UML class GM_Object defined in ISO 19107, and it is superclass of all geometry types."@en ; + rdfs:isDefinedBy ; + rdfs:label "Geometry"@en . + + +### http://www.opengis.net/ont/geosparql#SpatialObject +geo:SpatialObject rdf:type owl:Class ; + rdfs:comment "The class spatial-object represents everything that can have a spatial representation. It is superclass of feature and geometry."@en ; + rdfs:isDefinedBy ; + rdfs:label "SpatialObject"@en . + + +### http://www.w3.org/2004/02/skos/core#Concept + rdf:type owl:Class ; + rdfs:isDefinedBy . + + +### http://www.w3.org/2006/time#Instant +time:Instant rdf:type owl:Class ; + rdfs:subClassOf time:TemporalEntity ; + rdfs:comment "A temporal entity with zero extent or duration"@en ; + rdfs:isDefinedBy time: ; + rdfs:label "Instant"@en . + + +### http://www.w3.org/2006/time#Interval +time:Interval rdf:type owl:Class ; + rdfs:subClassOf time:TemporalEntity ; + rdfs:isDefinedBy time: ; + rdfs:label "A temporal entity with an extent or duration"@en , + "Time interval"@en . + + +### http://www.w3.org/2006/time#TemporalDuration +time:TemporalDuration rdf:type owl:Class . + + +### http://www.w3.org/2006/time#TemporalEntity +time:TemporalEntity rdf:type owl:Class ; + rdfs:comment "A temporal interval or instant."@en ; + rdfs:isDefinedBy time: ; + rdfs:label "Temporal entity"@en . + + +### http://www.w3.org/ns/org#Organization + rdf:type owl:Class ; + rdfs:subClassOf ; + rdfs:isDefinedBy ; + rdfs:label "Organization"@en . + - a owl:Ontology ; - owl:versionIRI ; - dcterms:title "SAREF extension for Smart City"@en ; - owl:versionInfo "v1.1.2" ; - owl:imports ; - dcterms:issued "2020-06-05"^^xsd:date ; - dcterms:modified "2024-07-25"^^xsd:date ; - dcterms:creator ; - dcterms:license ; - dcterms:creator ; - dcterms:creator ; - dcterms:publisher ; - dcterms:source ; - rdfs:seeAlso ; - vann:preferredNamespacePrefix "s4city" ; - vann:preferredNamespaceUri "https://saref.etsi.org/saref4city/" ; - dcterms:description "This ontology extends the SAREF ontology for the Smart City domain. This work has been developed in the context of the STF 534 (https://portal.etsi.org/STF/STFs/STFHomePages/STF534.aspx), which was established with the goal to create three SAREF extensions, one of them for the Smart City domain."@en ; - rdfs:comment """Information about changes compared to version 1.1.1: - - Updated namespaces for compatibility with SAREF v3."""@en . -# -# -# ################################################################# -# # -# # Annotation properties -# # -# ################################################################# -# -# - -dcterms:license a owl:AnnotationProperty . -dcterms:publisher a owl:AnnotationProperty . -dcterms:source a owl:AnnotationProperty . -dcterms:issued a owl:AnnotationProperty . -dcterms:modified a owl:AnnotationProperty . -dcterms:contributor a owl:AnnotationProperty . -dcterms:creator a owl:AnnotationProperty . -dcterms:description a owl:AnnotationProperty . -dcterms:title a owl:AnnotationProperty . -vann:preferredNamespacePrefix a owl:AnnotationProperty . -vann:preferredNamespaceUri a owl:AnnotationProperty . - - -time:TemporalDuration a owl:Class . - - -# -# -# -# -# ################################################################# -# # -# # Object Properties -# # -# ################################################################# -# -# -# http://purl.org/vocab/cpsv#physicallyAvailableAt - -cpsv:physicallyAvailableAt a owl:ObjectProperty ; - rdfs:comment "A physical location at which a user may interact with the Public Service."@en ; - rdfs:isDefinedBy ; - rdfs:label "physically available at"@en . -# -# http://purl.org/vocab/cpsv#provides - -cpsv:provides a owl:ObjectProperty ; - rdfs:comment "The provides property links an Agent to a Public Service for which it is responsible. Whether it provides the service directly or outsources it is not relevant, the Agent that provides the service is the one that is ultimately responsible for its provision."@en ; - rdfs:isDefinedBy ; - rdfs:label "provides"@en . -# -# http://purl.org/vocab/cpsv#uses - -cpsv:uses a owl:ObjectProperty ; - rdfs:comment "The uses property links an Agent to a Public Service in which it plays the specific role of user, meaning that it provides the input and receives the output but does not play any direct role in providing the service. This will typically be an individual citizen or an outside organisation."@en ; - rdfs:isDefinedBy ; - rdfs:label "uses"@en . -# -# http://www.opengis.net/ont/geosparql#hasGeometry - -geo:hasGeometry a owl:ObjectProperty ; - rdfs:comment "A spatial representation for a given feature."@en ; - rdfs:isDefinedBy ; - rdfs:label "has geometry"@en . -# -# http://www.opengis.net/ont/geosparql#sfContains - -geo:sfContains a owl:ObjectProperty ; - rdfs:comment "Exists if the subject SpatialObject spatially contains the object SpatialObject. DE-9IM: T*****FF*"@en ; - rdfs:isDefinedBy ; - rdfs:label "contains"@en . -# -# http://www.opengis.net/ont/geosparql#sfWithin - -geo:sfWithin a owl:ObjectProperty ; - rdfs:comment "Exists if the subject SpatialObject is spatially within the object SpatialObject. DE-9IM: T*F**F***"@en ; - rdfs:isDefinedBy ; - rdfs:label "within"@en . -# -# https://saref.etsi.org/saref4city/assesses - -s4city:assesses a owl:ObjectProperty ; - rdfs:comment "assesses"@en ; - rdfs:label "assesses"@en . -# -# https://saref.etsi.org/saref4city/hasAccesibility - -s4city:hasAccesibility a owl:ObjectProperty ; - rdfs:comment "has accesibility"@en ; - rdfs:label "has accesibility"@en . -# -# https://saref.etsi.org/saref4city/hasCalculationPeriod - -s4city:hasCalculationPeriod a owl:ObjectProperty ; - rdfs:comment "has calculation period"@en ; - rdfs:label "has calculation period"@en . -# -# https://saref.etsi.org/saref4city/hasKPI - -s4city:hasKPI a owl:ObjectProperty ; - owl:inverseOf s4city:isKPIOf ; - rdfs:comment "has key performance indicator"@en ; - rdfs:label "has key performance indicator"@en . -# -# https://saref.etsi.org/saref4city/involvesFacility - -s4city:involvesFacility a owl:ObjectProperty ; - rdfs:comment "involves facility"@en ; - rdfs:label "involves facility"@en . -# -# https://saref.etsi.org/saref4city/isAssessedBy - -s4city:isAssessedBy a owl:ObjectProperty ; - rdfs:comment "is assessed by"@en ; - rdfs:label "is assessed by"@en . -# -# https://saref.etsi.org/saref4city/isAvailableInLanguage - -s4city:isAvailableInLanguage a owl:ObjectProperty ; - rdfs:comment "is available in language"@en ; - rdfs:label "is available in language"@en . -# -# https://saref.etsi.org/saref4city/isDerivedFrom - -s4city:isDerivedFrom a owl:ObjectProperty ; - rdfs:comment "is derived from"@en ; - rdfs:label "is derived from"@en . -# -# https://saref.etsi.org/saref4city/isKPIOf - -s4city:isKPIOf a owl:ObjectProperty ; - rdfs:comment "is key performance indicator of"@en ; - rdfs:label "is key performance indicator of"@en . -# -# https://saref.etsi.org/saref4city/isOrganizedBy - -s4city:isOrganizedBy a owl:ObjectProperty ; - rdfs:comment "is organized by"@en ; - rdfs:label "is organized by"@en . -# -# https://saref.etsi.org/saref4city/isSubEventOf - -s4city:isSubEventOf a owl:ObjectProperty ; - rdfs:comment "is subevent of"@en ; - rdfs:label "is subevent of"@en . -# -# https://saref.etsi.org/saref4city/quantifiesKPI - -s4city:quantifiesKPI a owl:ObjectProperty ; - rdfs:comment "quantifies KPI"@en ; - rdfs:label "quantifies KPI"@en . -# -# https://saref.etsi.org/saref4city/refersToFeature - -s4city:refersToFeature a owl:ObjectProperty ; - rdfs:comment "Relation between a KPI assessment and the geographical feature it refers to"@en ; - rdfs:label "refers to feature"@en . -# -# https://saref.etsi.org/saref4city/refersToTime - -s4city:refersToTime a owl:ObjectProperty ; - rdfs:comment "refers to time"@en ; - rdfs:label "refers to time"@en . -# -# https://saref.etsi.org/saref4city/takesPlaceAtFacility - -s4city:takesPlaceAtFacility a owl:ObjectProperty ; - rdfs:comment "takes place at facility"@en ; - rdfs:label "takes place at facility"@en . -# -# https://saref.etsi.org/saref4city/takesPlaceAtTime - -s4city:takesPlaceAtTime a owl:ObjectProperty ; - rdfs:comment "takes place at time"@en ; - rdfs:label "takes place at time"@en . - - - - - - -# -# -# -# ################################################################# -# # -# # Data properties -# # -# ################################################################# -# -# -# https://saref.etsi.org/saref4city/hasCreationDate - -s4city:hasCreationDate a owl:DatatypeProperty ; - rdfs:range xsd:dateTime ; - rdfs:comment "has creation date"@en ; - rdfs:label "has creation date"@en . -# -# https://saref.etsi.org/saref4city/hasExpirationDate - -s4city:hasExpirationDate a owl:DatatypeProperty ; - rdfs:range xsd:dateTime ; - rdfs:comment "has expiration date"@en ; - rdfs:label "has expiration date"@en . -# -# https://saref.etsi.org/saref4city/hasLastUpdateDate - -s4city:hasLastUpdateDate a owl:DatatypeProperty ; - rdfs:range xsd:dateTime ; - rdfs:comment "has last update date"@en ; - rdfs:label "has last update date"@en . -# - - - -# -# -# -# ################################################################# -# # -# # Classes -# # -# ################################################################# -# -# -# http://purl.org/dc/terms/LinguisticSystem - -dcterms:LinguisticSystem a owl:Class . -# -# http://purl.org/vocab/cpsv#PublicService - -cpsv:PublicService a owl:Class ; - rdfs:comment "This class represents the service itself. A public service is the capacity to carry out a procedure and exists whether it is used or not. It is a set of deeds and acts performed by or on behalf of a public agency for the benefit of a citizen, a business or another public agency."@en ; - rdfs:isDefinedBy ; - rdfs:label "Public Service"@en . -# -# http://www.opengis.net/ont/geosparql#Feature - -geo:Feature a owl:Class ; - rdfs:subClassOf geo:SpatialObject ; - rdfs:comment "This class represents the top-level feature type. This class is equivalent to GFI_Feature defined in ISO 19156:2011, and it is superclass of all feature types."@en ; - rdfs:isDefinedBy ; - rdfs:label "Feature"@en . -# -# http://www.opengis.net/ont/geosparql#Geometry - -geo:Geometry a owl:Class ; - rdfs:subClassOf geo:SpatialObject ; - rdfs:comment "The class represents the top-level geometry type. This class is equivalent to the UML class GM_Object defined in ISO 19107, and it is superclass of all geometry types."@en ; - rdfs:isDefinedBy ; - rdfs:label "Geometry"@en . -# -# http://www.opengis.net/ont/geosparql#SpatialObject - -geo:SpatialObject a owl:Class ; - rdfs:comment "The class spatial-object represents everything that can have a spatial representation. It is superclass of feature and geometry."@en ; - rdfs:isDefinedBy ; - rdfs:label "SpatialObject"@en . -# - -# -# http://www.w3.org/2004/02/skos/core#Concept - - a owl:Class ; - rdfs:isDefinedBy . -# -# http://www.w3.org/2006/time#Instant - -time:Instant a owl:Class ; - rdfs:subClassOf time:TemporalEntity ; - rdfs:comment "A temporal entity with zero extent or duration"@en ; - rdfs:isDefinedBy ; - rdfs:label "Instant"@en . -# -# http://www.w3.org/2006/time#Interval - -time:Interval a owl:Class ; - rdfs:subClassOf time:TemporalEntity ; - rdfs:isDefinedBy ; - rdfs:label "A temporal entity with an extent or duration"@en , "Time interval"@en . -# -# http://www.w3.org/2006/time#TemporalEntity - -time:TemporalEntity a owl:Class ; - rdfs:comment "A temporal interval or instant."@en ; - rdfs:isDefinedBy ; - rdfs:label "Temporal entity"@en . -# -# http://www.w3.org/ns/org#Organization - - a owl:Class ; - rdfs:subClassOf ; - rdfs:isDefinedBy ; - rdfs:label "Organization"@en . -# -# http://xmlns.com/foaf/0.1/Agent - - a owl:Class ; - rdfs:isDefinedBy ; - rdfs:label "Agent"@en . -# -# http://xmlns.com/foaf/0.1/Person - - a owl:Class ; - rdfs:subClassOf ; - rdfs:isDefinedBy ; - rdfs:label "Person"@en . -# -# https://saref.etsi.org/saref4city/AdministrativeArea - -s4city:AdministrativeArea a owl:Class ; - rdfs:subClassOf geo:Feature ; - rdfs:comment "An administrative division, unit, entity, area or region, also referred to as a subnational entity, constituent unit, or country subdivision, is a portion of a country or other region delineated for the purpose of administration. (https://en.wikipedia.org/wiki/Administrative_division)"@en ; - rdfs:label "Administrative area"@en . -# -# https://saref.etsi.org/saref4city/Agent - -s4city:Agent a owl:Class ; - rdfs:subClassOf , - [ a owl:Restriction ; - owl:onProperty cpsv:provides ; - owl:allValuesFrom s4city:PublicService - ] , - - [ a owl:Restriction ; - owl:onProperty cpsv:uses ; - owl:allValuesFrom s4city:PublicService ] . - -s4city:Agent rdfs:comment "An agent making an action in the context of a city. An agent could be a person, software, etc."@en ; - rdfs:label "Agent"@en . -# -# https://saref.etsi.org/saref4city/City - -s4city:City a owl:Class ; - rdfs:subClassOf s4city:AdministrativeArea ; - rdfs:comment "A city is a large human settlement. A city is distinguished from other human settlements by its relatively great size, but also by its functions and its special symbolic status, which may be conferred by a central authority. (https://en.wikipedia.org/wiki/City)"@en ; - rdfs:label "City"@en . -# -# https://saref.etsi.org/saref4city/CityObject - -s4city:CityObject a owl:Class ; - rdfs:subClassOf geo:Feature ; - rdfs:comment "Generic class for describing city objects."@en ; - rdfs:label "City object"@en . -# -# https://saref.etsi.org/saref4city/Country - -s4city:Country a owl:Class ; - rdfs:subClassOf s4city:AdministrativeArea ; - rdfs:comment "A country is a region that is identified as a distinct national entity in political geography. (https://en.wikipedia.org/wiki/Country)"@en ; - rdfs:label "Country"@en . -# -# https://saref.etsi.org/saref4city/District - -s4city:District a owl:Class ; - rdfs:subClassOf s4city:AdministrativeArea ; - rdfs:comment "A district is a type of administrative division that, in some countries, is managed by local government. Across the world, areas known as \"districts\" vary greatly in size, spanning regions or counties, several municipalities, subdivisions of municipalities, school district, or political district. (https://en.wikipedia.org/wiki/District)"@en ; - rdfs:label "District"@en . -# -# https://saref.etsi.org/saref4city/Event - -s4city:Event a owl:Class ; - rdfs:subClassOf [ a owl:Restriction ; - owl:onProperty s4city:hasAccesibility ; - owl:allValuesFrom ] , - - [ a owl:Restriction ; - owl:onProperty s4city:isOrganizedBy ; - owl:allValuesFrom s4city:Agent ] , - - [ a owl:Restriction ; - owl:onProperty s4city:isSubEventOf ; - owl:allValuesFrom s4city:Event ] , - - [ a owl:Restriction ; - owl:onProperty s4city:takesPlaceAtFacility ; - owl:allValuesFrom s4city:Facility ] , - - [ a owl:Restriction ; - owl:onProperty s4city:takesPlaceAtTime ; - owl:allValuesFrom time:TemporalEntity ] . - - # [ a owl:Restriction ; - # owl:onProperty saref:hasName ; - # owl:allValuesFrom rdfs:Literal ]. - -s4city:Event rdfs:comment "Temporary and scheduled event, like a festival or competition. (Definition taken from Wikidata)"@en ; - rdfs:label "Event"@en ; - rdfs:seeAlso . -# -# https://saref.etsi.org/saref4city/Facility - -s4city:Facility a owl:Class ; - rdfs:subClassOf geo:Feature ; - rdfs:comment "A place, amenity, or piece of equipment provided for a particular purpose. (Definition taken from https://en.oxforddictionaries.com/definition/facility)"@en ; - rdfs:label "Facility"@en . -# -# https://saref.etsi.org/saref4city/KeyPerformanceIndicator - -s4city:KeyPerformanceIndicator a owl:Class ; - rdfs:subClassOf [ a owl:Restriction ; - owl:onProperty s4city:hasCalculationPeriod ; - owl:allValuesFrom time:TemporalDuration ] , - - [ a owl:Restriction ; - owl:onProperty s4city:isKPIOf ; - owl:allValuesFrom saref:FeatureOfInterest ] . - - # [ a owl:Restriction ; - # owl:onProperty saref:hasDescription ; - # owl:allValuesFrom rdfs:Literal ] , - - # [ a owl:Restriction ; - # owl:onProperty saref:hasName ; - # owl:allValuesFrom rdfs:Literal ] . - - -s4city:KeyPerformanceIndicator rdfs:comment "A Key Performance Indicator (KPI) is a type of performance measurement. KPIs evaluate the success of an organization or of a particular activity in which it engages. (Definition taken from FIWARE)"@en ; - rdfs:label "Key Performance Indicator"@en ; - rdfs:seeAlso . -# -# https://saref.etsi.org/saref4city/KeyPerformanceIndicatorAssessment - -s4city:KeyPerformanceIndicatorAssessment a owl:Class ; - rdfs:subClassOf [ a owl:Restriction ; - owl:onProperty s4city:assesses ; - owl:allValuesFrom saref:FeatureOfInterest ] , - - [ a owl:Restriction ; - owl:onProperty s4city:isAssessedBy ; - owl:allValuesFrom s4city:Agent ] , - - [ a owl:Restriction ; - owl:onProperty s4city:isDerivedFrom ; - owl:allValuesFrom saref:Measurement ] , - - [ a owl:Restriction ; - owl:onProperty s4city:quantifiesKPI ; - owl:allValuesFrom s4city:KeyPerformanceIndicator ] , - - [ a owl:Restriction ; - owl:onProperty s4city:refersToTime ; - owl:allValuesFrom time:TemporalEntity ] , - - [ a owl:Restriction ; - owl:onProperty saref:isMeasuredIn ; - owl:allValuesFrom saref:UnitOfMeasure ] , - - [ a owl:Restriction ; - owl:onProperty s4city:hasCreationDate ; - owl:allValuesFrom xsd:dateTime ] , - - [ a owl:Restriction ; - owl:onProperty s4city:hasExpirationDate ; - owl:allValuesFrom xsd:dateTime ] , - - [ a owl:Restriction ; - owl:onProperty s4city:hasLastUpdateDate ; - owl:allValuesFrom xsd:dateTime ] , - - # [ a owl:Restriction ; - # owl:onProperty saref:hasDescription ; - # owl:allValuesFrom rdfs:Literal ] , - - # [ a owl:Restriction ; - # owl:onProperty saref:hasName ; - # owl:allValuesFrom rdfs:Literal ] , - - [ a owl:Restriction ; - owl:onProperty saref:hasValue ; - owl:cardinality "1"^^xsd:nonNegativeInteger ] . - -s4city:KeyPerformanceIndicatorAssessment rdfs:comment "A Key Performance Indicator assessment represents the assessment of a KPI calculated by a given agent in a given time."@en ; - rdfs:label "Key performance indicator assessment"@en . -# -# https://saref.etsi.org/saref4city/Neighbourhood - -s4city:Neighbourhood a owl:Class ; - rdfs:subClassOf s4city:AdministrativeArea ; - rdfs:comment "A neighbourhood (British English), or neighborhood (American English; see spelling differences), is a geographically localised community within a larger city, town, suburb or rural area. (https://en.wikipedia.org/wiki/Neighbourhood)"@en ; - rdfs:label "Neighbourhood"@en . -# -# https://saref.etsi.org/saref4city/PublicAdministration - -s4city:PublicAdministration a owl:Class ; - rdfs:subClassOf ; - rdfs:comment "Public leadership of public affairs directly responsible for executive action. (Definition taken from wikidata)"@en ; - rdfs:label "Public administration"@en ; - rdfs:seeAlso . -# -# https://saref.etsi.org/saref4city/PublicService - -s4city:PublicService a owl:Class ; - rdfs:subClassOf cpsv:PublicService , - [ a owl:Restriction ; - owl:onProperty cpsv:physicallyAvailableAt ; - owl:allValuesFrom s4city:AdministrativeArea ] , - - [ a owl:Restriction ; - owl:onProperty s4city:involvesFacility ; - owl:allValuesFrom s4city:Facility ] , - - [ a owl:Restriction ; - owl:onProperty s4city:isAvailableInLanguage ; - owl:allValuesFrom dcterms:LinguisticSystem ] . - - # [ a owl:Restriction ; - # owl:onProperty saref:hasDescription ; - # owl:allValuesFrom rdfs:Literal ] , - - # [ a owl:Restriction ; - # owl:onProperty saref:hasName ; - # owl:allValuesFrom rdfs:Literal ] . - -s4city:PublicService rdfs:comment "Public service is a service which is provided by government either directly (through the public sector) or by financing provision of services. (Definition taken from Wikipedia)"@en ; - rdfs:label "Public service"@en ; - rdfs:seeAlso . +### http://xmlns.com/foaf/0.1/Agent + rdf:type owl:Class ; + rdfs:isDefinedBy ; + rdfs:label "Agent"@en . + + +### http://xmlns.com/foaf/0.1/Person + rdf:type owl:Class ; + rdfs:subClassOf ; + rdfs:isDefinedBy ; + rdfs:label "Person"@en . + + +### https://saref.etsi.org/saref4city/AdministrativeArea +s4city:AdministrativeArea rdf:type owl:Class ; + rdfs:subClassOf geo:Feature ; + rdfs:comment "An administrative division, unit, entity, area or region, also referred to as a subnational entity, constituent unit, or country subdivision, is a portion of a country or other region delineated for the purpose of administration. (https://en.wikipedia.org/wiki/Administrative_division)"@en ; + rdfs:label "Administrative area"@en . + + +### https://saref.etsi.org/saref4city/Agent +s4city:Agent rdf:type owl:Class ; + rdfs:subClassOf , + [ rdf:type owl:Restriction ; + owl:onProperty cpsv:provides ; + owl:allValuesFrom s4city:PublicService + ] , + [ rdf:type owl:Restriction ; + owl:onProperty cpsv:uses ; + owl:allValuesFrom s4city:PublicService + ] ; + rdfs:comment "An agent making an action in the context of a city. An agent could be a person, software, etc."@en ; + rdfs:label "Agent"@en . + + +### https://saref.etsi.org/saref4city/City +s4city:City rdf:type owl:Class ; + rdfs:subClassOf s4city:AdministrativeArea ; + rdfs:comment "A city is a large human settlement. A city is distinguished from other human settlements by its relatively great size, but also by its functions and its special symbolic status, which may be conferred by a central authority. (https://en.wikipedia.org/wiki/City)"@en ; + rdfs:label "City"@en . + + +### https://saref.etsi.org/saref4city/CityObject +s4city:CityObject rdf:type owl:Class ; + rdfs:subClassOf geo:Feature ; + rdfs:comment "Generic class for describing city objects."@en ; + rdfs:label "City object"@en . + + +### https://saref.etsi.org/saref4city/Country +s4city:Country rdf:type owl:Class ; + rdfs:subClassOf s4city:AdministrativeArea ; + rdfs:comment "A country is a region that is identified as a distinct national entity in political geography. (https://en.wikipedia.org/wiki/Country)"@en ; + rdfs:label "Country"@en . + + +### https://saref.etsi.org/saref4city/District +s4city:District rdf:type owl:Class ; + rdfs:subClassOf s4city:AdministrativeArea ; + rdfs:comment "A district is a type of administrative division that, in some countries, is managed by local government. Across the world, areas known as \"districts\" vary greatly in size, spanning regions or counties, several municipalities, subdivisions of municipalities, school district, or political district. (https://en.wikipedia.org/wiki/District)"@en ; + rdfs:label "District"@en . + + +### https://saref.etsi.org/saref4city/Event +s4city:Event rdf:type owl:Class ; + rdfs:subClassOf [ rdf:type owl:Restriction ; + owl:onProperty s4city:hasAccesibility ; + owl:allValuesFrom + ] , + [ rdf:type owl:Restriction ; + owl:onProperty s4city:isOrganizedBy ; + owl:allValuesFrom s4city:Agent + ] , + [ rdf:type owl:Restriction ; + owl:onProperty s4city:isSubEventOf ; + owl:allValuesFrom s4city:Event + ] , + [ rdf:type owl:Restriction ; + owl:onProperty s4city:takesPlaceAtFacility ; + owl:allValuesFrom s4city:Facility + ] , + [ rdf:type owl:Restriction ; + owl:onProperty s4city:takesPlaceAtTime ; + owl:allValuesFrom time:TemporalEntity + ] ; + rdfs:comment "Temporary and scheduled event, like a festival or competition. (Definition taken from Wikidata)"@en ; + rdfs:label "Event"@en ; + rdfs:seeAlso . + + +### https://saref.etsi.org/saref4city/Facility +s4city:Facility rdf:type owl:Class ; + rdfs:subClassOf geo:Feature ; + rdfs:comment "A place, amenity, or piece of equipment provided for a particular purpose. (Definition taken from https://en.oxforddictionaries.com/definition/facility)"@en ; + rdfs:label "Facility"@en . + + +### https://saref.etsi.org/saref4city/KeyPerformanceIndicator +s4city:KeyPerformanceIndicator rdf:type owl:Class ; + rdfs:subClassOf [ rdf:type owl:Restriction ; + owl:onProperty s4city:hasCalculationPeriod ; + owl:allValuesFrom time:TemporalDuration + ] , + [ rdf:type owl:Restriction ; + owl:onProperty s4city:isKPIOf ; + owl:allValuesFrom saref:FeatureOfInterest + ] ; + rdfs:comment "A Key Performance Indicator (KPI) is a type of performance measurement. KPIs evaluate the success of an organization or of a particular activity in which it engages. (Definition taken from FIWARE)"@en ; + rdfs:label "Key Performance Indicator"@en ; + rdfs:seeAlso . + + +### https://saref.etsi.org/saref4city/KeyPerformanceIndicatorAssessment +s4city:KeyPerformanceIndicatorAssessment rdf:type owl:Class ; + rdfs:subClassOf [ rdf:type owl:Restriction ; + owl:onProperty saref:isMeasuredIn ; + owl:allValuesFrom saref:UnitOfMeasure + ] , + [ rdf:type owl:Restriction ; + owl:onProperty s4city:assesses ; + owl:allValuesFrom saref:FeatureOfInterest + ] , + [ rdf:type owl:Restriction ; + owl:onProperty s4city:isAssessedBy ; + owl:allValuesFrom s4city:Agent + ] , + [ rdf:type owl:Restriction ; + owl:onProperty s4city:isDerivedFrom ; + owl:allValuesFrom saref:Measurement + ] , + [ rdf:type owl:Restriction ; + owl:onProperty s4city:quantifiesKPI ; + owl:allValuesFrom s4city:KeyPerformanceIndicator + ] , + [ rdf:type owl:Restriction ; + owl:onProperty s4city:refersToTime ; + owl:allValuesFrom time:TemporalEntity + ] , + [ rdf:type owl:Restriction ; + owl:onProperty s4city:hasCreationDate ; + owl:allValuesFrom xsd:dateTime + ] , + [ rdf:type owl:Restriction ; + owl:onProperty s4city:hasExpirationDate ; + owl:allValuesFrom xsd:dateTime + ] , + [ rdf:type owl:Restriction ; + owl:onProperty s4city:hasLastUpdateDate ; + owl:allValuesFrom xsd:dateTime + ] , + [ rdf:type owl:Restriction ; + owl:onProperty saref:hasValue ; + owl:cardinality "1"^^xsd:nonNegativeInteger + ] ; + rdfs:comment "A Key Performance Indicator assessment represents the assessment of a KPI calculated by a given agent in a given time."@en ; + rdfs:label "Key performance indicator assessment"@en . + + +### https://saref.etsi.org/saref4city/Neighbourhood +s4city:Neighbourhood rdf:type owl:Class ; + rdfs:subClassOf s4city:AdministrativeArea ; + rdfs:comment "A neighbourhood (British English), or neighborhood (American English; see spelling differences), is a geographically localised community within a larger city, town, suburb or rural area. (https://en.wikipedia.org/wiki/Neighbourhood)"@en ; + rdfs:label "Neighbourhood"@en . + + +### https://saref.etsi.org/saref4city/PublicAdministration +s4city:PublicAdministration rdf:type owl:Class ; + rdfs:subClassOf ; + rdfs:comment "Public leadership of public affairs directly responsible for executive action. (Definition taken from wikidata)"@en ; + rdfs:label "Public administration"@en ; + rdfs:seeAlso . + + +### https://saref.etsi.org/saref4city/PublicService +s4city:PublicService rdf:type owl:Class ; + rdfs:subClassOf cpsv:PublicService , + [ rdf:type owl:Restriction ; + owl:onProperty cpsv:physicallyAvailableAt ; + owl:allValuesFrom s4city:AdministrativeArea + ] , + [ rdf:type owl:Restriction ; + owl:onProperty s4city:involvesFacility ; + owl:allValuesFrom s4city:Facility + ] , + [ rdf:type owl:Restriction ; + owl:onProperty s4city:isAvailableInLanguage ; + owl:allValuesFrom dcterms:LinguisticSystem + ] ; + rdfs:comment "Public service is a service which is provided by government either directly (through the public sector) or by financing provision of services. (Definition taken from Wikipedia)"@en ; + rdfs:label "Public service"@en ; + rdfs:seeAlso . + + +### Generated by the OWL API (version 4.5.26.2023-07-17T20:34:13Z) https://github.com/owlcs/owlapi -- GitLab From 7bc7a87a8560ce00091a73317c93ddcda8ccaab9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mari=CC=81a?= Date: Thu, 25 Jul 2024 10:54:04 +0200 Subject: [PATCH 05/10] Remove unused classes time:Instant, and time:Interval, change hasCalculationPeriod from object to datatype property and set domain as xsd:duration. closes #16 --- ontology/saref4city.ttl | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/ontology/saref4city.ttl b/ontology/saref4city.ttl index 8311a3b..20e8efb 100644 --- a/ontology/saref4city.ttl +++ b/ontology/saref4city.ttl @@ -141,9 +141,9 @@ s4city:hasAccesibility rdf:type owl:ObjectProperty ; ### https://saref.etsi.org/saref4city/hasCalculationPeriod -s4city:hasCalculationPeriod rdf:type owl:ObjectProperty ; +s4city:hasCalculationPeriod rdf:type owl:DatatypeProperty ; rdfs:domain s4city:KeyPerformanceIndicator ; - rdfs:range time:TemporalDuration ; + rdfs:range xsd:duration ; rdfs:comment "has calculation period"@en ; rdfs:label "has calculation period"@en . @@ -313,22 +313,6 @@ geo:SpatialObject rdf:type owl:Class ; rdfs:isDefinedBy . -### http://www.w3.org/2006/time#Instant -time:Instant rdf:type owl:Class ; - rdfs:subClassOf time:TemporalEntity ; - rdfs:comment "A temporal entity with zero extent or duration"@en ; - rdfs:isDefinedBy time: ; - rdfs:label "Instant"@en . - - -### http://www.w3.org/2006/time#Interval -time:Interval rdf:type owl:Class ; - rdfs:subClassOf time:TemporalEntity ; - rdfs:isDefinedBy time: ; - rdfs:label "A temporal entity with an extent or duration"@en , - "Time interval"@en . - - ### http://www.w3.org/2006/time#TemporalDuration time:TemporalDuration rdf:type owl:Class . @@ -448,7 +432,7 @@ s4city:Facility rdf:type owl:Class ; s4city:KeyPerformanceIndicator rdf:type owl:Class ; rdfs:subClassOf [ rdf:type owl:Restriction ; owl:onProperty s4city:hasCalculationPeriod ; - owl:allValuesFrom time:TemporalDuration + owl:allValuesFrom xsd:duration ] , [ rdf:type owl:Restriction ; owl:onProperty s4city:isKPIOf ; -- GitLab From 868ab2b109a64405258d22cae86be74d6e2c794b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mari=CC=81a?= Date: Thu, 25 Jul 2024 11:00:17 +0200 Subject: [PATCH 06/10] subclass of skos:Concept created and added as range of s4city:hasAccessibility. Closes #19 --- ontology/saref4city.ttl | 48 ++++++++++++++++++++++++++--------------- 1 file changed, 31 insertions(+), 17 deletions(-) diff --git a/ontology/saref4city.ttl b/ontology/saref4city.ttl index 20e8efb..788bf29 100644 --- a/ontology/saref4city.ttl +++ b/ontology/saref4city.ttl @@ -82,6 +82,14 @@ vann:preferredNamespacePrefix rdf:type owl:AnnotationProperty . vann:preferredNamespaceUri rdf:type owl:AnnotationProperty . +################################################################# +# Datatypes +################################################################# + +### http://www.w3.org/2001/XMLSchema#duration +xsd:duration rdf:type rdfs:Datatype . + + ################################################################# # Object Properties ################################################################# @@ -134,18 +142,11 @@ s4city:assesses rdf:type owl:ObjectProperty ; rdfs:label "assesses"@en . -### https://saref.etsi.org/saref4city/hasAccesibility -s4city:hasAccesibility rdf:type owl:ObjectProperty ; - rdfs:comment "has accesibility"@en ; - rdfs:label "has accesibility"@en . - - -### https://saref.etsi.org/saref4city/hasCalculationPeriod -s4city:hasCalculationPeriod rdf:type owl:DatatypeProperty ; - rdfs:domain s4city:KeyPerformanceIndicator ; - rdfs:range xsd:duration ; - rdfs:comment "has calculation period"@en ; - rdfs:label "has calculation period"@en . +### https://saref.etsi.org/saref4city/hasAccessibility +s4city:hasAccessibility rdf:type owl:ObjectProperty ; + rdfs:range s4city:AccessibilityConcept ; + rdfs:comment "relation between an event and the accesility modes provided"@en ; + rdfs:label "has accessibility"@en . ### https://saref.etsi.org/saref4city/hasKPI @@ -249,6 +250,14 @@ s4city:takesPlaceAtTime rdf:type owl:ObjectProperty ; # Data properties ################################################################# +### https://saref.etsi.org/saref4city/hasCalculationPeriod +s4city:hasCalculationPeriod rdf:type owl:DatatypeProperty ; + rdfs:domain s4city:KeyPerformanceIndicator ; + rdfs:range xsd:duration ; + rdfs:comment "has calculation period"@en ; + rdfs:label "has calculation period"@en . + + ### https://saref.etsi.org/saref4city/hasCreationDate s4city:hasCreationDate rdf:type owl:DatatypeProperty ; rdfs:range xsd:dateTime ; @@ -344,6 +353,11 @@ time:TemporalEntity rdf:type owl:Class ; rdfs:label "Person"@en . +### https://saref.etsi.org/saref4city/AccessibilityConcept +s4city:AccessibilityConcept rdf:type owl:Class ; + rdfs:subClassOf . + + ### https://saref.etsi.org/saref4city/AdministrativeArea s4city:AdministrativeArea rdf:type owl:Class ; rdfs:subClassOf geo:Feature ; @@ -397,7 +411,7 @@ s4city:District rdf:type owl:Class ; ### https://saref.etsi.org/saref4city/Event s4city:Event rdf:type owl:Class ; rdfs:subClassOf [ rdf:type owl:Restriction ; - owl:onProperty s4city:hasAccesibility ; + owl:onProperty s4city:hasAccessibility ; owl:allValuesFrom ] , [ rdf:type owl:Restriction ; @@ -431,12 +445,12 @@ s4city:Facility rdf:type owl:Class ; ### https://saref.etsi.org/saref4city/KeyPerformanceIndicator s4city:KeyPerformanceIndicator rdf:type owl:Class ; rdfs:subClassOf [ rdf:type owl:Restriction ; - owl:onProperty s4city:hasCalculationPeriod ; - owl:allValuesFrom xsd:duration - ] , - [ rdf:type owl:Restriction ; owl:onProperty s4city:isKPIOf ; owl:allValuesFrom saref:FeatureOfInterest + ] , + [ rdf:type owl:Restriction ; + owl:onProperty s4city:hasCalculationPeriod ; + owl:allValuesFrom xsd:duration ] ; rdfs:comment "A Key Performance Indicator (KPI) is a type of performance measurement. KPIs evaluate the success of an organization or of a particular activity in which it engages. (Definition taken from FIWARE)"@en ; rdfs:label "Key Performance Indicator"@en ; -- GitLab From 5f4056857586f136c53d72f540962601853a7a07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mari=CC=81a?= Date: Thu, 25 Jul 2024 11:24:54 +0200 Subject: [PATCH 07/10] Added meaningful comments. Closes #18 --- ontology/saref4city.ttl | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/ontology/saref4city.ttl b/ontology/saref4city.ttl index 788bf29..9c3291d 100644 --- a/ontology/saref4city.ttl +++ b/ontology/saref4city.ttl @@ -138,7 +138,7 @@ geo:sfWithin rdf:type owl:ObjectProperty ; ### https://saref.etsi.org/saref4city/assesses s4city:assesses rdf:type owl:ObjectProperty ; - rdfs:comment "assesses"@en ; + rdfs:comment "Relation between a Key Performance Indicator and the feature of interest being assessed"@en ; rdfs:label "assesses"@en . @@ -168,7 +168,7 @@ s4city:involvesFacility rdf:type owl:ObjectProperty ; ### https://saref.etsi.org/saref4city/isAssessedBy s4city:isAssessedBy rdf:type owl:ObjectProperty ; - rdfs:comment "is assessed by"@en ; + rdfs:comment "Relation between a Key Performance Indicator assessment and the agent perfoming the assessment"@en ; rdfs:label "is assessed by"@en . @@ -182,7 +182,7 @@ s4city:isAvailableInLanguage rdf:type owl:ObjectProperty ; ### https://saref.etsi.org/saref4city/isDerivedFrom s4city:isDerivedFrom rdf:type owl:ObjectProperty ; - rdfs:comment "is derived from"@en ; + rdfs:comment "Relation between a Key Performance Indicator Assessmente and te observations used to calculate it"@en ; rdfs:label "is derived from"@en . @@ -211,7 +211,7 @@ s4city:isSubEventOf rdf:type owl:ObjectProperty ; ### https://saref.etsi.org/saref4city/quantifiesKPI s4city:quantifiesKPI rdf:type owl:ObjectProperty ; rdfs:range s4city:KeyPerformanceIndicator ; - rdfs:comment "quantifies KPI"@en ; + rdfs:comment "Relation between a Key Performance Indicator Assessment and the genral Key Performance Indicator being assessed"@en ; rdfs:label "quantifies KPI"@en . @@ -226,7 +226,7 @@ s4city:refersToFeature rdf:type owl:ObjectProperty ; ### https://saref.etsi.org/saref4city/refersToTime s4city:refersToTime rdf:type owl:ObjectProperty ; rdfs:range time:TemporalEntity ; - rdfs:comment "refers to time"@en ; + rdfs:comment "Relation between a KPI assessment and the tempral entity it refers to"@en ; rdfs:label "refers to time"@en . @@ -254,28 +254,28 @@ s4city:takesPlaceAtTime rdf:type owl:ObjectProperty ; s4city:hasCalculationPeriod rdf:type owl:DatatypeProperty ; rdfs:domain s4city:KeyPerformanceIndicator ; rdfs:range xsd:duration ; - rdfs:comment "has calculation period"@en ; + rdfs:comment "Relation between a KPI and the temporal period it refers to"@en ; rdfs:label "has calculation period"@en . ### https://saref.etsi.org/saref4city/hasCreationDate s4city:hasCreationDate rdf:type owl:DatatypeProperty ; rdfs:range xsd:dateTime ; - rdfs:comment "has creation date"@en ; + rdfs:comment "Creation date of a KPI assessment"@en ; rdfs:label "has creation date"@en . ### https://saref.etsi.org/saref4city/hasExpirationDate s4city:hasExpirationDate rdf:type owl:DatatypeProperty ; rdfs:range xsd:dateTime ; - rdfs:comment "has expiration date"@en ; + rdfs:comment "Expiration date of a KPI assessment"@en ; rdfs:label "has expiration date"@en . ### https://saref.etsi.org/saref4city/hasLastUpdateDate s4city:hasLastUpdateDate rdf:type owl:DatatypeProperty ; rdfs:range xsd:dateTime ; - rdfs:comment "has last update date"@en ; + rdfs:comment "Las update of a KPI assessment"@en ; rdfs:label "has last update date"@en . @@ -473,7 +473,7 @@ s4city:KeyPerformanceIndicatorAssessment rdf:type owl:Class ; ] , [ rdf:type owl:Restriction ; owl:onProperty s4city:isDerivedFrom ; - owl:allValuesFrom saref:Measurement + owl:allValuesFrom saref:Observation ] , [ rdf:type owl:Restriction ; owl:onProperty s4city:quantifiesKPI ; @@ -537,5 +537,3 @@ s4city:PublicService rdf:type owl:Class ; rdfs:label "Public service"@en ; rdfs:seeAlso . - -### Generated by the OWL API (version 4.5.26.2023-07-17T20:34:13Z) https://github.com/owlcs/owlapi -- GitLab From c0701d8c8b5ea0e0623b748d5d06615846051c9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mari=CC=81a?= Date: Thu, 25 Jul 2024 11:28:46 +0200 Subject: [PATCH 08/10] Added comment for AccessibilityConcept. Remove time:Duration and update version info. --- ontology/saref4city.ttl | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/ontology/saref4city.ttl b/ontology/saref4city.ttl index 9c3291d..1560fcf 100644 --- a/ontology/saref4city.ttl +++ b/ontology/saref4city.ttl @@ -32,7 +32,7 @@ rdfs:comment """Information about changes compared to version 1.1.1: - Updated namespaces for compatibility with SAREF v3."""@en ; rdfs:seeAlso ; - owl:versionInfo "v1.1.2" . + owl:versionInfo "v2.1.1" . ################################################################# # Annotation properties @@ -322,10 +322,6 @@ geo:SpatialObject rdf:type owl:Class ; rdfs:isDefinedBy . -### http://www.w3.org/2006/time#TemporalDuration -time:TemporalDuration rdf:type owl:Class . - - ### http://www.w3.org/2006/time#TemporalEntity time:TemporalEntity rdf:type owl:Class ; rdfs:comment "A temporal interval or instant."@en ; @@ -355,7 +351,9 @@ time:TemporalEntity rdf:type owl:Class ; ### https://saref.etsi.org/saref4city/AccessibilityConcept s4city:AccessibilityConcept rdf:type owl:Class ; - rdfs:subClassOf . + rdfs:subClassOf ; + rdfs:comment "SKOS concept to list accessibility modes." ; + rdfs:label "Accessibility concept" . ### https://saref.etsi.org/saref4city/AdministrativeArea @@ -537,3 +535,4 @@ s4city:PublicService rdf:type owl:Class ; rdfs:label "Public service"@en ; rdfs:seeAlso . + -- GitLab From 00b28fe618e0c4733e8b80ae3554965c87910c51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mari=CC=81a?= Date: Thu, 25 Jul 2024 16:31:01 +0200 Subject: [PATCH 09/10] Added overview diagram. Added missing properties hasName and hasDescription. Remove some local restrictions as domain and range was added. Closes #7 --- documentation/diagrams/saref4city.xml | 429 ++++++++++++++++++++++++++ ontology/saref4city.ttl | 84 +++-- 2 files changed, 468 insertions(+), 45 deletions(-) create mode 100644 documentation/diagrams/saref4city.xml diff --git a/documentation/diagrams/saref4city.xml b/documentation/diagrams/saref4city.xml new file mode 100644 index 0000000..c63ceed --- /dev/null +++ b/documentation/diagrams/saref4city.xml @@ -0,0 +1,429 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ontology/saref4city.ttl b/ontology/saref4city.ttl index 1560fcf..7b71685 100644 --- a/ontology/saref4city.ttl +++ b/ontology/saref4city.ttl @@ -1,4 +1,5 @@ @prefix : . +@prefix dc: . @prefix geo: . @prefix owl: . @prefix rdf: . @@ -11,27 +12,27 @@ @prefix vann: . @prefix saref: . @prefix s4city: . -@prefix dcterms: . @base . rdf:type owl:Ontology ; - owl:versionIRI ; + owl:versionIRI ; owl:imports ; - dcterms:creator , - , - ; - dcterms:description "This ontology extends the SAREF ontology for the Smart City domain. This work has been developed in the context of the STF 534 (https://portal.etsi.org/STF/STFs/STFHomePages/STF534.aspx), which was established with the goal to create three SAREF extensions, one of them for the Smart City domain."@en ; - dcterms:issued "2020-06-05"^^xsd:date ; - dcterms:license ; - dcterms:modified "2024-07-25"^^xsd:date ; - dcterms:publisher ; - dcterms:source ; - dcterms:title "SAREF extension for Smart City"@en ; + dc:creator , + , + ; + dc:description "This ontology extends the SAREF ontology for the Smart City domain. This work has been developed in the context of the STF 534 (https://portal.etsi.org/STF/STFs/STFHomePages/STF534.aspx), which was established with the goal to create three SAREF extensions, one of them for the Smart City domain."@en ; + dc:issued "2020-06-05"^^xsd:date ; + dc:license ; + dc:modified "2024-07-25"^^xsd:date ; + dc:publisher ; + dc:source ; + dc:title "SAREF extension for Smart City"@en ; vann:preferredNamespacePrefix "s4city" ; vann:preferredNamespaceUri "https://saref.etsi.org/saref4city/" ; rdfs:comment """Information about changes compared to version 1.1.1: - Updated namespaces for compatibility with SAREF v3."""@en ; rdfs:seeAlso ; + owl:priorVersion ; owl:versionInfo "v2.1.1" . ################################################################# @@ -39,39 +40,39 @@ ################################################################# ### http://purl.org/dc/terms/contributor -dcterms:contributor rdf:type owl:AnnotationProperty . +dc:contributor rdf:type owl:AnnotationProperty . ### http://purl.org/dc/terms/creator -dcterms:creator rdf:type owl:AnnotationProperty . +dc:creator rdf:type owl:AnnotationProperty . ### http://purl.org/dc/terms/description -dcterms:description rdf:type owl:AnnotationProperty . +dc:description rdf:type owl:AnnotationProperty . ### http://purl.org/dc/terms/issued -dcterms:issued rdf:type owl:AnnotationProperty . +dc:issued rdf:type owl:AnnotationProperty . ### http://purl.org/dc/terms/license -dcterms:license rdf:type owl:AnnotationProperty . +dc:license rdf:type owl:AnnotationProperty . ### http://purl.org/dc/terms/modified -dcterms:modified rdf:type owl:AnnotationProperty . +dc:modified rdf:type owl:AnnotationProperty . ### http://purl.org/dc/terms/publisher -dcterms:publisher rdf:type owl:AnnotationProperty . +dc:publisher rdf:type owl:AnnotationProperty . ### http://purl.org/dc/terms/source -dcterms:source rdf:type owl:AnnotationProperty . +dc:source rdf:type owl:AnnotationProperty . ### http://purl.org/dc/terms/title -dcterms:title rdf:type owl:AnnotationProperty . +dc:title rdf:type owl:AnnotationProperty . ### http://purl.org/vocab/vann/preferredNamespacePrefix @@ -144,6 +145,7 @@ s4city:assesses rdf:type owl:ObjectProperty ; ### https://saref.etsi.org/saref4city/hasAccessibility s4city:hasAccessibility rdf:type owl:ObjectProperty ; + rdfs:domain s4city:Event ; rdfs:range s4city:AccessibilityConcept ; rdfs:comment "relation between an event and the accesility modes provided"@en ; rdfs:label "has accessibility"@en . @@ -175,7 +177,7 @@ s4city:isAssessedBy rdf:type owl:ObjectProperty ; ### https://saref.etsi.org/saref4city/isAvailableInLanguage s4city:isAvailableInLanguage rdf:type owl:ObjectProperty ; rdfs:domain s4city:PublicService ; - rdfs:range dcterms:LinguisticSystem ; + rdfs:range dc:LinguisticSystem ; rdfs:comment "Relation between a public service and the languages it is available in."@en ; rdfs:label "is available in language"@en . @@ -252,7 +254,6 @@ s4city:takesPlaceAtTime rdf:type owl:ObjectProperty ; ### https://saref.etsi.org/saref4city/hasCalculationPeriod s4city:hasCalculationPeriod rdf:type owl:DatatypeProperty ; - rdfs:domain s4city:KeyPerformanceIndicator ; rdfs:range xsd:duration ; rdfs:comment "Relation between a KPI and the temporal period it refers to"@en ; rdfs:label "has calculation period"@en . @@ -265,6 +266,13 @@ s4city:hasCreationDate rdf:type owl:DatatypeProperty ; rdfs:label "has creation date"@en . +### https://saref.etsi.org/saref4city/hasDescription +s4city:hasDescription rdf:type owl:DatatypeProperty ; + rdfs:range rdfs:Literal ; + rdfs:label "Description of an entity like a KPI or KPI assessment" , + "has description" . + + ### https://saref.etsi.org/saref4city/hasExpirationDate s4city:hasExpirationDate rdf:type owl:DatatypeProperty ; rdfs:range xsd:dateTime ; @@ -279,12 +287,19 @@ s4city:hasLastUpdateDate rdf:type owl:DatatypeProperty ; rdfs:label "has last update date"@en . +### https://saref.etsi.org/saref4city/hasName +s4city:hasName rdf:type owl:DatatypeProperty ; + rdfs:range rdfs:Literal ; + rdfs:comment "Name of an entity like a KPI or KPI assessment" ; + rdfs:label "has name" . + + ################################################################# # Classes ################################################################# ### http://purl.org/dc/terms/LinguisticSystem -dcterms:LinguisticSystem rdf:type owl:Class . +dc:LinguisticSystem rdf:type owl:Class . ### http://purl.org/vocab/cpsv#PublicService @@ -409,24 +424,8 @@ s4city:District rdf:type owl:Class ; ### https://saref.etsi.org/saref4city/Event s4city:Event rdf:type owl:Class ; rdfs:subClassOf [ rdf:type owl:Restriction ; - owl:onProperty s4city:hasAccessibility ; - owl:allValuesFrom - ] , - [ rdf:type owl:Restriction ; owl:onProperty s4city:isOrganizedBy ; owl:allValuesFrom s4city:Agent - ] , - [ rdf:type owl:Restriction ; - owl:onProperty s4city:isSubEventOf ; - owl:allValuesFrom s4city:Event - ] , - [ rdf:type owl:Restriction ; - owl:onProperty s4city:takesPlaceAtFacility ; - owl:allValuesFrom s4city:Facility - ] , - [ rdf:type owl:Restriction ; - owl:onProperty s4city:takesPlaceAtTime ; - owl:allValuesFrom time:TemporalEntity ] ; rdfs:comment "Temporary and scheduled event, like a festival or competition. (Definition taken from Wikidata)"@en ; rdfs:label "Event"@en ; @@ -526,13 +525,8 @@ s4city:PublicService rdf:type owl:Class ; [ rdf:type owl:Restriction ; owl:onProperty s4city:involvesFacility ; owl:allValuesFrom s4city:Facility - ] , - [ rdf:type owl:Restriction ; - owl:onProperty s4city:isAvailableInLanguage ; - owl:allValuesFrom dcterms:LinguisticSystem ] ; rdfs:comment "Public service is a service which is provided by government either directly (through the public sector) or by financing provision of services. (Definition taken from Wikipedia)"@en ; rdfs:label "Public service"@en ; rdfs:seeAlso . - -- GitLab From 696b89fd250d3a3eaffe9c62d6398bf945f59690 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mari=CC=81a?= Date: Fri, 26 Jul 2024 09:53:16 +0200 Subject: [PATCH 10/10] added sf:Point, sf:Geometry and original GeoSPARQL domain and ranges. --- documentation/diagrams/saref4city.xml | 262 ++++++++++++++------------ ontology/saref4city.ttl | 33 +++- 2 files changed, 172 insertions(+), 123 deletions(-) diff --git a/documentation/diagrams/saref4city.xml b/documentation/diagrams/saref4city.xml index c63ceed..16c97d6 100644 --- a/documentation/diagrams/saref4city.xml +++ b/documentation/diagrams/saref4city.xml @@ -1,47 +1,47 @@ - + - + - + - + - - + + - + - - + + - + - + - + - - + + @@ -50,123 +50,123 @@ - + - - + + - - + + - + - + - + - + - + - + - + - + - + - + - + - + - + - - + + - + - + - - + + - + - + - - + + - + - - + + - + - - + + - + - + - + - - + + @@ -176,40 +176,40 @@ - - + + - - + + - - + + - - + + - - + + - - - + + + @@ -220,11 +220,11 @@ - - + + - - + + @@ -235,8 +235,8 @@ - - + + @@ -246,79 +246,79 @@ - - + + - - + + - - + + - - + + - + - + - - + + - + - + - - + + - - + + - - + + - - + + - - + + - - + + @@ -328,11 +328,11 @@ - - + + - - + + @@ -351,14 +351,14 @@ - - + + - - + + @@ -367,21 +367,21 @@ - + - - + + - + - - + + - - - + + + @@ -390,15 +390,15 @@ - + - - + + - - - - + + + + @@ -407,6 +407,24 @@ + + + + + + + + + + + + + + + + + + diff --git a/ontology/saref4city.ttl b/ontology/saref4city.ttl index 7b71685..24b2e2c 100644 --- a/ontology/saref4city.ttl +++ b/ontology/saref4city.ttl @@ -23,7 +23,7 @@ dc:description "This ontology extends the SAREF ontology for the Smart City domain. This work has been developed in the context of the STF 534 (https://portal.etsi.org/STF/STFs/STFHomePages/STF534.aspx), which was established with the goal to create three SAREF extensions, one of them for the Smart City domain."@en ; dc:issued "2020-06-05"^^xsd:date ; dc:license ; - dc:modified "2024-07-25"^^xsd:date ; + dc:modified "2024-07-26"^^xsd:date ; dc:publisher ; dc:source ; dc:title "SAREF extension for Smart City"@en ; @@ -118,6 +118,8 @@ cpsv:uses rdf:type owl:ObjectProperty ; ### http://www.opengis.net/ont/geosparql#hasGeometry geo:hasGeometry rdf:type owl:ObjectProperty ; + rdfs:domain geo:Feature ; + rdfs:range geo:SpatialObject ; rdfs:comment "A spatial representation for a given feature."@en ; rdfs:isDefinedBy geo: ; rdfs:label "has geometry"@en . @@ -125,6 +127,8 @@ geo:hasGeometry rdf:type owl:ObjectProperty ; ### http://www.opengis.net/ont/geosparql#sfContains geo:sfContains rdf:type owl:ObjectProperty ; + rdfs:domain geo:SpatialObject ; + rdfs:range geo:SpatialObject ; rdfs:comment "Exists if the subject SpatialObject spatially contains the object SpatialObject. DE-9IM: T*****FF*"@en ; rdfs:isDefinedBy ; rdfs:label "contains"@en . @@ -132,6 +136,8 @@ geo:sfContains rdf:type owl:ObjectProperty ; ### http://www.opengis.net/ont/geosparql#sfWithin geo:sfWithin rdf:type owl:ObjectProperty ; + rdfs:domain geo:SpatialObject ; + rdfs:range geo:SpatialObject ; rdfs:comment "Exists if the subject SpatialObject is spatially within the object SpatialObject. DE-9IM: T*F**F***"@en ; rdfs:isDefinedBy ; rdfs:label "within"@en . @@ -332,6 +338,30 @@ geo:SpatialObject rdf:type owl:Class ; rdfs:label "SpatialObject"@en . +### http://www.opengis.net/ont/sf#Geometry + rdf:type owl:Class ; + rdfs:subClassOf geo:Geometry ; + rdfs:comment """\"\"\"Geometry is the root class of the hierarchy. + +The instantiable subclasses of Geometry are restricted to 0, 1 and 2-dimensional geometric objects that exist in 2, 3 or 4-dimensional coordinate space (R2, R3 or R4). Geometry values in R2 have points with coordinate values for x and y. Geometry values in R3 have points with coordinate values for x, y and z or for x, y and m. Geometry values in R4 have points with coordinate values for x, y, z and m. + +The interpretation of the coordinates is subject to the coordinate reference systems associated to the point. All coordinates within a geometry object should be in the same coordinate reference systems. Each coordinate shall be unambiguously associated to a coordinate reference system either directly or through its containing geometry. The z coordinate of a point is typically, but not necessarily, represents altitude or elevation. The m coordinate represents a measurement. + +All Geometry classes described in this specification are defined so that instances of Geometry are topologically closed, i.e. all represented geometries include their boundary as point sets. This does not affect their representation, and open versions of the same classes may be used in other circumstances, such as topological representations.\"\"\"e"""@en ; + rdfs:isDefinedBy ; + rdfs:label "Geometry" . + + +### http://www.opengis.net/ont/sf#Point + rdf:type owl:Class ; + rdfs:subClassOf ; + rdfs:comment """\"\"\"A Point is a 0-dimensional geometric object and represents a single location in coordinate space. +A Point has an x-coordinate value, a y-coordinate value. If called for by the associated Spatial Reference System, it may also have coordinate values for z and m. +The boundary of a Point is the empty set.\"\"\""""@en ; + rdfs:isDefinedBy ; + rdfs:label "Point" . + + ### http://www.w3.org/2004/02/skos/core#Concept rdf:type owl:Class ; rdfs:isDefinedBy . @@ -530,3 +560,4 @@ s4city:PublicService rdf:type owl:Class ; rdfs:label "Public service"@en ; rdfs:seeAlso . + -- GitLab