From f637e622c8d5baf0777651a53faf847743e4a437 Mon Sep 17 00:00:00 2001 From: Maxime Date: Tue, 30 Apr 2024 10:32:55 +0200 Subject: [PATCH 1/2] 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 0341bf02aaa9687bc7e6de80dcf6d82b250e1daa Mon Sep 17 00:00:00 2001 From: Maxime Date: Fri, 31 May 2024 12:42:40 +0200 Subject: [PATCH 2/2] closes #8: do not redefine SAREF Core classes --- ontology/saref4envi.ttl | 87 ----------------------------------------- 1 file changed, 87 deletions(-) diff --git a/ontology/saref4envi.ttl b/ontology/saref4envi.ttl index e220a50..3bbc836 100644 --- a/ontology/saref4envi.ttl +++ b/ontology/saref4envi.ttl @@ -89,14 +89,6 @@ vann:preferredNamespaceUri rdf:type owl:AnnotationProperty . rdfs:label "has color"@en . -### https://saref.etsi.org/saref4envi/hasComponent -:hasComponent rdf:type owl:ObjectProperty ; - owl:inverseOf :isComponentOf ; - rdf:type owl:TransitiveProperty ; - rdfs:comment "A relation between a system and the system in which it might be decomposed."@en ; - rdfs:label "has component"@en . - - ### https://saref.etsi.org/saref4envi/hasDigitalRepresentation :hasDigitalRepresentation rdf:type owl:ObjectProperty , owl:InverseFunctionalProperty ; @@ -142,13 +134,6 @@ vann:preferredNamespaceUri rdf:type owl:AnnotationProperty . rdfs:label "is component of"@en . -### https://saref.etsi.org/saref4envi/isConnectedTo -:isConnectedTo rdf:type owl:ObjectProperty , - owl:SymmetricProperty ; - rdfs:comment "A relation between a system and the system to which it is connected."@en ; - rdfs:label "is connected to"@en . - - ### https://saref.etsi.org/saref4envi/isProjectedFromHeight :isProjectedFromHeight rdf:type owl:ObjectProperty ; rdfs:comment "A relation between a light and the height measurement from which it is projected."@en ; @@ -183,13 +168,6 @@ vann:preferredNamespaceUri rdf:type owl:AnnotationProperty . # Data properties ################################################################# -### https://saref.etsi.org/saref4envi/hasCreationDate -:hasCreationDate rdf:type owl:DatatypeProperty , - owl:FunctionalProperty ; - rdfs:range xsd:dateTime ; - rdfs:comment "A relationship defining the creation date of an entity (e.g., a digital representation)."@en ; - rdfs:label "has creation date"@en . - ### https://saref.etsi.org/saref4envi/hasFlash :hasFlash rdf:type owl:DatatypeProperty , @@ -275,44 +253,6 @@ vann:preferredNamespaceUri rdf:type owl:AnnotationProperty . rdfs:label "Compass direction"@en . -### https://saref.etsi.org/saref4envi/Device -:Device rdf:type owl:Class ; - rdfs:subClassOf saref:Device , - :System , - [ rdf:type owl:Restriction ; - owl:onProperty :hasFrequencyMeasurement ; - owl:allValuesFrom :FrequencyMeasurement - ] , - [ rdf:type owl:Restriction ; - owl:onProperty :hasTransmissionPeriod ; - owl:allValuesFrom :PeriodMeasurement - ] , - [ rdf:type owl:Restriction ; - owl:onProperty saref:hasManufacturer ; - owl:allValuesFrom xsd:string - ] , - [ rdf:type owl:Restriction ; - owl:onProperty :hasRevisionNumber ; - owl:allValuesFrom xsd:string - ] , - [ rdf:type owl:Restriction ; - owl:onProperty :hasVersion ; - owl:allValuesFrom xsd:string - ] , - [ rdf:type owl:Restriction ; - owl:onProperty :hasRevisionNumber ; - owl:maxQualifiedCardinality "1"^^xsd:nonNegativeInteger ; - owl:onDataRange xsd:string - ] , - [ rdf:type owl:Restriction ; - owl:onProperty :hasVersion ; - owl:maxQualifiedCardinality "1"^^xsd:nonNegativeInteger ; - owl:onDataRange xsd:string - ] ; - rdfs:comment "A thing made or adapted for a particular purpose, especially a piece of mechanical or electronic equipment. For example ‘a measuring device’ (definition taken from https://en.oxforddictionaries.com/definition/device). In this ontology it refers to the devices for environmental purposes."@en ; - rdfs:label "Device"@en . - - ### https://saref.etsi.org/saref4envi/DigitalRepresentation :DigitalRepresentation rdf:type owl:Class ; rdfs:subClassOf [ rdf:type owl:Restriction ; @@ -502,33 +442,6 @@ vann:preferredNamespaceUri rdf:type owl:AnnotationProperty . rdfs:label "Photometer"@en . -### https://saref.etsi.org/saref4envi/System -:System rdf:type owl:Class ; - rdfs:subClassOf saref:FeatureOfInterest , geo:Feature , - [ rdf:type owl:Restriction ; - owl:onProperty :hasComponent ; - owl:allValuesFrom :System - ] , - [ rdf:type owl:Restriction ; - owl:onProperty :isComponentOf ; - owl:allValuesFrom :System - ] , - [ rdf:type owl:Restriction ; - owl:onProperty :isConnectedTo ; - owl:allValuesFrom :System - ] , - [ rdf:type owl:Restriction ; - owl:onProperty :usesCommunicationInterface ; - owl:allValuesFrom :CommunicationInterface - ] , - [ rdf:type owl:Restriction ; - owl:onProperty :usesCommunicationProtocol ; - owl:allValuesFrom :CommunicationProtocol - ] ; - rdfs:comment "A group of related hardware units or programs or both, especially when dedicated to a single application. (Definition taken from https://en.oxforddictionaries.com/definition/system)"@en ; - rdfs:label "System"@en . - - ### https://saref.etsi.org/saref4envi/TESS :TESS rdf:type owl:Class ; rdfs:subClassOf :Photometer ; -- GitLab