Unverified Commit 8fa0009c authored by Maxime Lefrançois's avatar Maxime Lefrançois
Browse files

closes #18

parent a7d390bc
Loading
Loading
Loading
Loading
Loading
+9 −136
Original line number Diff line number Diff line
@@ -10,8 +10,7 @@
@prefix time: <http://www.w3.org/2006/time#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix vann:    <http://purl.org/vocab/vann/>.
@prefix geosp: <http://www.opengis.net/ont/geosparql#> .
@prefix wgs84: <http://www.w3.org/2003/01/geo/wgs84_pos#> .
@prefix geo: <http://www.opengis.net/ont/geosparql#> .

@base <https://saref.etsi.org/saref4agri/> .

@@ -49,45 +48,9 @@ dcterms:contributor rdf:type owl:AnnotationProperty .
###  http://purl.org/dc/terms/created
dcterms:created rdf:type owl:AnnotationProperty .

wgs84:SpatialThing a owl:Class .
foaf:Organization a owl:Class ; rdfs:isDefinedBy foaf: .
foaf:Person a owl:Class ; rdfs:isDefinedBy foaf: .

###  http://www.w3.org/2003/01/geo/wgs84_pos#alt
wgs84:alt rdf:type owl:DatatypeProperty ;
  rdfs:comment "The WGS84 altitude of a SpatialThing (decimal meters above the local reference ellipsoid)."@en ;
  rdfs:label "altitude"@en ;
  rdfs:domain wgs84:SpatialThing .


###  http://www.w3.org/2003/01/geo/wgs84_pos#lat
wgs84:lat rdf:type owl:DatatypeProperty ;
  rdfs:comment "The WGS84 latitude of a SpatialThing (decimal degrees)."@en ;
  rdfs:label "latitude"@en ;
  rdfs:domain wgs84:SpatialThing .


###  http://www.w3.org/2003/01/geo/wgs84_pos#location
wgs84: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:label "location"@en ;
  rdfs:subPropertyOf foaf:based_near .


###  http://www.w3.org/2003/01/geo/wgs84_pos#long
wgs84:long rdf:type owl:ObjectProperty ;
  rdfs:comment "The WGS84 longitude of a SpatialThing (decimal degrees)."@en ;
  rdfs:label "longitude"@en ;
  rdfs:domain wgs84:SpatialThing .


###  http://xmlns.com/foaf/0.1/based_near
foaf:based_near rdf:type owl:ObjectProperty .

@@ -100,36 +63,6 @@ foaf:based_near rdf:type owl:ObjectProperty .
<http://purl.obolibrary.org/obo/TAXRANK_1000000> rdf:type owl:ObjectProperty ;
  rdfs:label "has taxon rank"@en .


###  http://www.opengis.net/ont/geosparql#hasGeometry
geosp:hasGeometry rdf:type owl:ObjectProperty ;
  rdfs:domain geosp:Feature ;
  rdfs:range geosp:Geometry ;
  rdfs:comment "A spatial representation for a given feature."@en ;
  rdfs:isDefinedBy <http://www.opengis.net/ont/geosparql#> ;
  rdfs:label "has geometry"@en .


###  http://www.opengis.net/ont/geosparql#sfContains
geosp:sfContains rdf:type owl:ObjectProperty ;
  rdfs:domain geosp:SpatialObject ;
  rdfs:range geosp:SpatialObject ;
  rdfs:comment "Exists if the subject SpatialObject spatially contains the object SpatialObject. DE-9IM: T*****FF*"@en ;
  rdfs:isDefinedBy <http://www.opengis.net/ont/geosparql> ,
                     <http://www.opengis.net/spec/geosparql/1.0> ;
  rdfs:label "contains"@en .


###  http://www.opengis.net/ont/geosparql#sfWithin
geosp:sfWithin rdf:type owl:ObjectProperty ;
  rdfs:domain geosp:SpatialObject ;
  rdfs:range geosp:SpatialObject ;
  rdfs:comment "Exists if the subject SpatialObject is spatially within the object SpatialObject. DE-9IM: T*F**F***"@en ;
  rdfs:isDefinedBy <http://www.opengis.net/ont/geosparql> ,
                   <http://www.opengis.net/spec/geosparql/1.0> ;
  rdfs:label "within"@en .


###  http://www.w3.org/ns/sosa/hosts
sosa:hosts rdf:type owl:ObjectProperty ;
      owl:inverseOf sosa:isHostedBy ;
@@ -189,7 +122,7 @@ foaf:member rdf:type owl:ObjectProperty ;
s4agri:contains rdf:type owl:ObjectProperty ;
  rdfs:comment "A relation to express that one object includes another object."@en ;
  rdfs:label "contains"@en ;
  rdfs:subPropertyOf geosp:sfContains ;
  rdfs:subPropertyOf geo:sfContains ;
  owl:inverseOf s4agri:isContainedIn .


@@ -307,66 +240,6 @@ s4agri:hasPlantDate rdf:type owl:DatatypeProperty ;
<http://purl.obolibrary.org/obo/TAXRANK_0000000> rdf:type owl:Class ;
  rdfs:label "Taxon rank"@en .


###  http://www.opengis.net/ont/geosparql#Feature
geosp:Feature rdf:type owl:Class ;
  rdfs:subClassOf geosp:SpatialObject ,
    [ rdf:type owl:Restriction ;
      owl:onProperty geosp:hasGeometry ;
      owl:allValuesFrom geosp:Geometry
    ] ;
      owl:disjointWith geosp: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 <http://www.opengis.net/ont/geosparql> ,
                  <http://www.opengis.net/ont/gml> ;
  rdfs:label "Feature"@en .


###  http://www.opengis.net/ont/geosparql#Geometry
geosp:Geometry rdf:type owl:Class ;
  rdfs:subClassOf geosp: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 <http://www.opengis.net/ont/geosparql> ;
  rdfs:label "Geometry"@en .


###  http://www.opengis.net/ont/geosparql#SpatialObject
geosp:SpatialObject rdf:type owl:Class ;
  rdfs:subClassOf [ rdf:type owl:Restriction ;
      owl:onProperty geosp:hasGeometry ;
      owl:allValuesFrom geosp:Geometry
    ] ,
    [ rdf:type owl:Restriction ;
      owl:onProperty geosp:sfContains ;
      owl:allValuesFrom geosp:SpatialObject
    ] ,
    [ rdf:type owl:Restriction ;
      owl:onProperty geosp:sfWithin ;
      owl:allValuesFrom geosp:SpatialObject
    ] ,
    [ rdf:type owl:Restriction ;
      owl:onProperty wgs84:location ;
      owl:allValuesFrom wgs84:Point
    ] ;
  rdfs:comment "The class spatial-object represents everything that can have a spatial representation. It is superclass of feature and geometry."@en ;
  rdfs:isDefinedBy <http://www.opengis.net/ont/geosparql> ;
  rdfs:label "SpatialObject"@en .


###  http://www.w3.org/2003/01/geo/wgs84_pos#Point
wgs84:Point rdf:type owl:Class ;
  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."@en ;
  rdfs:isDefinedBy <http://www.w3.org/2003/01/geo/wgs84_pos#> ;
  rdfs:label "Point"@en .

###  http://www.w3.org/ns/sosa/Platform
sosa:Platform rdf:type owl:Class ;
  rdfs:comment "A Platform is an entity that hosts other entities, particularly Sensors, Actuators, Samplers, and other Platforms (definition taken from http://www.w3.org/ns/sosa/Platform)"@en ;
@@ -401,7 +274,7 @@ s4agri:Animal rdf:type owl:Class ;
    ] ,
    [ rdf:type owl:Restriction ;
      owl:onProperty s4agri:isLocatedIn ;
      owl:someValuesFrom geosp:Feature
      owl:someValuesFrom geo:Feature
    ] ,
    [ rdf:type owl:Restriction ;
      owl:onProperty s4agri:isMemberOf ;
@@ -435,7 +308,7 @@ s4agri:AnimalGroup rdf:type owl:Class ;
    ] ,
    [ rdf:type owl:Restriction ;
      owl:onProperty s4agri:isLocatedIn ;
      owl:someValuesFrom geosp:Feature
      owl:someValuesFrom geo:Feature
    ]  ;
  rdfs:comment "A collection of one or multiple animals."@en ;
  rdfs:label "Animal Group"@en .
@@ -443,7 +316,7 @@ s4agri:AnimalGroup rdf:type owl:Class ;

###  https://saref.etsi.org/saref4agri/Building
s4agri:Building rdf:type owl:Class ;
  rdfs:subClassOf geosp:Feature ,
  rdfs:subClassOf geo:Feature ,
    [ rdf:type owl:Restriction ;
      owl:onProperty s4agri:contains ;
      owl:someValuesFrom s4agri:BuildingSpace
@@ -454,7 +327,7 @@ s4agri:Building rdf:type owl:Class ;

###  https://saref.etsi.org/saref4agri/BuildingSpace
s4agri:BuildingSpace rdf:type owl:Class ;
  rdfs:subClassOf geosp:Feature ;
  rdfs:subClassOf geo:Feature ;
  rdfs:comment "An entity used to define the physical spaces of the building. A building space contains devices or building objects."@en ;
  rdfs:label "Building space"@en .

@@ -495,7 +368,7 @@ s4agri:Deployment rdf:type owl:Class ;
    ] ,
    [ rdf:type owl:Restriction ;
      owl:onProperty s4agri:isDeployedAtSpace ;
      owl:someValuesFrom geosp:SpatialObject
      owl:someValuesFrom geo:SpatialObject
    ] ;
  rdfs:comment "The scenario, including temporal and spatial information, in which the systems and devices are installed."@en ;
  rdfs:label "Deployment"@en .
@@ -510,7 +383,7 @@ s4agri:EatingActivitySensor rdf:type owl:Class ;

###  https://saref.etsi.org/saref4agri/Farm
s4agri:Farm rdf:type owl:Class ;
  rdfs:subClassOf geosp:Feature ,
  rdfs:subClassOf geo:Feature ,
    [ rdf:type owl:Restriction ;
      owl:onProperty s4agri:contains ;
      owl:someValuesFrom s4agri:Building
@@ -561,7 +434,7 @@ s4agri:MovementActivitySensor rdf:type owl:Class ;

###  https://saref.etsi.org/saref4agri/Parcel
s4agri:Parcel rdf:type owl:Class ;
  rdfs:subClassOf geosp:Feature ,
  rdfs:subClassOf geo:Feature ,
    [ rdf:type owl:Restriction ;
      owl:onProperty s4agri:contains ;
      owl:someValuesFrom s4agri:Crop