From f637e622c8d5baf0777651a53faf847743e4a437 Mon Sep 17 00:00:00 2001 From: Maxime Date: Tue, 30 Apr 2024 10:32:55 +0200 Subject: [PATCH 1/3] closes #15 --- ontology/saref4envi.ttl | 42 +++-------------------------------------- 1 file changed, 3 insertions(+), 39 deletions(-) diff --git a/ontology/saref4envi.ttl b/ontology/saref4envi.ttl index 91f8900..189d81b 100644 --- a/ontology/saref4envi.ttl +++ b/ontology/saref4envi.ttl @@ -1,5 +1,4 @@ @prefix : . -@prefix geo: . @prefix owl: . @prefix rdf: . @prefix xml: . @@ -10,6 +9,7 @@ @prefix s4envi: . @prefix saref: . @prefix dcterms: . +@prefix geo: . @base . rdf:type owl:Ontology ; @@ -74,12 +74,6 @@ vann:preferredNamespaceUri rdf:type owl:AnnotationProperty . # Object Properties ################################################################# -### http://www.w3.org/2003/01/geo/wgs84_pos#location -geo:location rdf:type 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 ."@en ; - rdfs:isDefinedBy geo: ; - rdfs:label "location"@en . - ### https://saref.etsi.org/core/isMeasuredIn saref:isMeasuredIn rdf:type owl:ObjectProperty ; @@ -338,28 +332,6 @@ saref:hasValue rdf:type owl:DatatypeProperty ; # Classes ################################################################# -### http://www.w3.org/2003/01/geo/wgs84_pos#Point -geo:Point rdf:type owl:Class ; - rdfs:comment "A point, typically described using a coordinate system relative to Earth, such as WGS84. Uniquely identified by lat/long/alt. i.e. spaciallyIntersects(P1, P2) :- lat(P1, LAT), long(P1, LONG), alt(P1, ALT), at(P2, LAT), long(P2, LONG), alt(P2, ALT). sameThing(P1, P2) :- type(P1, Point), type(P2, Point), spaciallyIntersects(P1, P2)."@en ; - rdfs:isDefinedBy geo: ; - rdfs:label "Point"@en . - - -### http://www.w3.org/2003/01/geo/wgs84_pos#SpatialThing -geo:SpatialThing rdf:type owl:Class ; - owl:disjointWith saref:Measurement , - saref:Service , - :Color , - :CommunicationInterface , - :CommunicationProtocol , - :CompassDirection , - :DigitalRepresentation , - :Geometry ; - rdfs:comment "Anything with spatial extent, i.e. size, shape, or position. e.g. people, places, bowling balls, as well as abstract areas like cubes."@en ; - rdfs:isDefinedBy geo: ; - rdfs:label "Spatial thing"@en . - - ### http://www.w3.org/2006/time#TemporalUnit time:TemporalUnit rdf:type owl:Class ; rdfs:subClassOf saref:UnitOfMeasure ; @@ -732,11 +704,7 @@ saref:UnitOfMeasure rdf:type owl:Class ; ### https://saref.etsi.org/saref4envi/LightPoint :LightPoint rdf:type owl:Class ; - rdfs:subClassOf geo:Point , - [ rdf:type owl:Restriction ; - owl:onProperty geo:location ; - owl:allValuesFrom geo:SpatialThing - ] , + rdfs:subClassOf saref:FeatureOfInterest , geo:Feature , [ rdf:type owl:Restriction ; owl:onProperty :projectsLight ; owl:allValuesFrom :Light @@ -781,11 +749,7 @@ saref:UnitOfMeasure rdf:type owl:Class ; ### https://saref.etsi.org/saref4envi/PhysicalObject :PhysicalObject rdf:type owl:Class ; - rdfs:subClassOf geo:SpatialThing , - [ rdf:type owl:Restriction ; - owl:onProperty geo:location ; - owl:allValuesFrom geo:SpatialThing - ] , + rdfs:subClassOf saref:FeatureOfInterest , geo:Feature , [ rdf:type owl:Restriction ; owl:onProperty :contains ; owl:allValuesFrom :PhysicalObject -- GitLab From 5a5e233bba06218c692a7d055aee789d85301905 Mon Sep 17 00:00:00 2001 From: Maxime Date: Fri, 31 May 2024 13:11:33 +0200 Subject: [PATCH 2/3] clean up syntax --- ontology/saref4envi.ttl | 90 ++++++++++++++--------------------------- 1 file changed, 30 insertions(+), 60 deletions(-) diff --git a/ontology/saref4envi.ttl b/ontology/saref4envi.ttl index 7da0858..7086de0 100644 --- a/ontology/saref4envi.ttl +++ b/ontology/saref4envi.ttl @@ -13,26 +13,26 @@ @base . rdf:type owl:Ontology ; - owl:versionIRI ; - dcterms:description "This ontology extends the SAREF ontology for the environment domain, specifically for the light pollution domain, including concepts like photometers, light, etc."@en ; - dcterms:publisher ; - dcterms:title "SAREF extension for environment"@en ; - dcterms:issued "2024-10-31"^^xsd:date ; - dcterms:modified "2024-03-06"^^xsd:date ; - dcterms:creator ; - dcterms:creator ; - dcterms:contributor ; - dcterms:license ; - vann:preferredNamespacePrefix "s4envi" ; - vann:preferredNamespaceUri "https://saref.etsi.org/saref4envi/" ; - rdfs:comment """Information about changes compared to version 1.1.2: - - See https://saref.etsi.org/sources/saref4envi/-/milestones/1"""@en ; - rdfs:comment """Information about changes compared to version 1.1.1: - - Updated namespaces for compatibility with SAREF v3."""@en ; - owl:imports ; # should be v4.1.1 in the future. - dcterms:source ; - rdfs:seeAlso ; - owl:versionInfo "v2.1.1" . + owl:versionIRI ; + dcterms:description "This ontology extends the SAREF ontology for the environment domain, specifically for the light pollution domain, including concepts like photometers, light, etc."@en ; + dcterms:publisher ; + dcterms:title "SAREF extension for environment"@en ; + dcterms:issued "2024-10-31"^^xsd:date ; + dcterms:modified "2024-03-06"^^xsd:date ; + dcterms:creator ; + dcterms:creator ; + dcterms:contributor ; + dcterms:license ; + vann:preferredNamespacePrefix "s4envi" ; + vann:preferredNamespaceUri "https://saref.etsi.org/saref4envi/" ; + rdfs:comment """Information about changes compared to version 1.1.2: +- See https://saref.etsi.org/sources/saref4envi/-/milestones/1"""@en ; + rdfs:comment """Information about changes compared to version 1.1.1: +- Updated namespaces for compatibility with SAREF v3."""@en ; + owl:imports ; # should be v4.1.1 in the future. +dcterms:source ; +rdfs:seeAlso ; + owl:versionInfo "v2.1.1" . ################################################################# # Annotation properties @@ -41,32 +41,12 @@ dcterms:issued rdf:type owl:AnnotationProperty . dcterms:modified rdf:type owl:AnnotationProperty . dcterms:source rdf:type owl:AnnotationProperty . - -### http://purl.org/dc/elements/1.1/description dcterms:description rdf:type owl:AnnotationProperty . - - -### http://purl.org/dc/elements/1.1/publisher dcterms:publisher rdf:type owl:AnnotationProperty . - - -### http://purl.org/dc/elements/1.1/title dcterms:title rdf:type owl:AnnotationProperty . - - -### http://purl.org/dc/terms/creator dcterms:creator rdf:type owl:AnnotationProperty . - - -### http://purl.org/dc/terms/license dcterms:license 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 . @@ -90,8 +70,7 @@ vann:preferredNamespaceUri rdf:type owl:AnnotationProperty . ### https://saref.etsi.org/saref4envi/hasDigitalRepresentation -:hasDigitalRepresentation rdf:type owl:ObjectProperty , - owl:InverseFunctionalProperty ; +:hasDigitalRepresentation rdf:type owl:ObjectProperty , owl:InverseFunctionalProperty ; rdfs:comment "A relation between a physical object and the digital representation in which it is encapsulated."@en ; rdfs:label "has digital representation"@en . @@ -121,15 +100,13 @@ vann:preferredNamespaceUri rdf:type owl:AnnotationProperty . ### https://saref.etsi.org/saref4envi/isAccesibleThrough -:isAccesibleThrough rdf:type owl:ObjectProperty , - owl:FunctionalProperty ; +:isAccesibleThrough rdf:type owl:ObjectProperty , owl:FunctionalProperty ; rdfs:comment "The relation between a digital representation and the service which it is accesible through."@en ; rdfs:label "is accesible through"@en . ### https://saref.etsi.org/saref4envi/isComponentOf -:isComponentOf rdf:type owl:ObjectProperty , - owl:TransitiveProperty ; +:isComponentOf rdf:type owl:ObjectProperty , owl:TransitiveProperty ; rdfs:comment "A relation between a system and the system it belongs to as a component."@en ; rdfs:label "is component of"@en . @@ -170,16 +147,14 @@ vann:preferredNamespaceUri rdf:type owl:AnnotationProperty . ### https://saref.etsi.org/saref4envi/hasFlash -:hasFlash rdf:type owl:DatatypeProperty , - owl:FunctionalProperty ; +:hasFlash rdf:type owl:DatatypeProperty , owl:FunctionalProperty ; rdfs:range xsd:boolean ; rdfs:comment "A relationship stating whether a light has flash."@en ; rdfs:label "has flash"@en . ### https://saref.etsi.org/saref4envi/hasProjectionAngle -:hasProjectionAngle rdf:type owl:DatatypeProperty , - owl:FunctionalProperty ; +:hasProjectionAngle rdf:type owl:DatatypeProperty , owl:FunctionalProperty ; rdfs:range xsd:float ; rdfs:comment "A relationship defining the projection angle of an entity (e.g., a light)."@en ; rdfs:label "has projection angle"@en . @@ -193,8 +168,7 @@ vann:preferredNamespaceUri rdf:type owl:AnnotationProperty . ### https://saref.etsi.org/saref4envi/hasShield -:hasShield rdf:type owl:DatatypeProperty , - owl:FunctionalProperty ; +:hasShield rdf:type owl:DatatypeProperty , owl:FunctionalProperty ; rdfs:range xsd:boolean ; rdfs:comment "A relationship stating whether a lamppost has a shield."@en ; rdfs:label "has shield"@en . @@ -208,8 +182,7 @@ vann:preferredNamespaceUri rdf:type owl:AnnotationProperty . ### https://saref.etsi.org/saref4envi/hasVersion -:hasVersion rdf:type owl:DatatypeProperty , - owl:FunctionalProperty ; +:hasVersion rdf:type owl:DatatypeProperty , owl:FunctionalProperty ; rdfs:range xsd:string ; rdfs:comment "A relationship defining the version of a certain entity (e.g., a device)"@en ; rdfs:label "has version"@en . @@ -457,15 +430,13 @@ vann:preferredNamespaceUri rdf:type owl:AnnotationProperty . ### https://saref.etsi.org/saref4envi/Frequency -:Frequency rdf:type owl:NamedIndividual , - saref:Property ; +:Frequency rdf:type owl:NamedIndividual , saref:Property ; rdfs:comment "An individual representing the property frequency."@en ; rdfs:label "Frequency"@en . ### https://saref.etsi.org/saref4envi/Height -:Height rdf:type owl:NamedIndividual , - saref:Property ; +:Height rdf:type owl:NamedIndividual , saref:Property ; rdfs:comment "An individual representing the property height."@en ; rdfs:label "Height"@en . @@ -506,8 +477,7 @@ vann:preferredNamespaceUri rdf:type owl:AnnotationProperty . ### https://saref.etsi.org/saref4envi/Period -:Period rdf:type owl:NamedIndividual , - saref:Property ; +:Period rdf:type owl:NamedIndividual , saref:Property ; rdfs:comment "An individual representing the property period."@en ; rdfs:label "Period"@en . -- GitLab From 050fe518aec130bed971944d36f6b9cd7b336576 Mon Sep 17 00:00:00 2001 From: Maxime Date: Fri, 31 May 2024 13:11:40 +0200 Subject: [PATCH 3/3] clean up syntax --- ontology/saref4envi.ttl | 702 ++++++++++++++++++---------------------- 1 file changed, 321 insertions(+), 381 deletions(-) diff --git a/ontology/saref4envi.ttl b/ontology/saref4envi.ttl index 7086de0..1d9d269 100644 --- a/ontology/saref4envi.ttl +++ b/ontology/saref4envi.ttl @@ -12,7 +12,7 @@ @prefix geo: . @base . - rdf:type owl:Ontology ; + a owl:Ontology ; owl:versionIRI ; dcterms:description "This ontology extends the SAREF ontology for the environment domain, specifically for the light pollution domain, including concepts like photometers, light, etc."@en ; dcterms:publisher ; @@ -38,16 +38,16 @@ rdfs:seeAlso