# baseURI: http://example.org/om-20
# imports: http://example.org/geosparql
# imports: http://qudt.org/2.0/schema/qudt
# imports: http://www.w3.org/2006/time
# imports: http://www.w3.org/ns/prov-o#
# imports: http://www.w3.org/ns/sosa/sampling
# imports: http://www.w3.org/ns/ssn/

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix examples: <http://example.org/www.w3.org/ns/sosa/examples#> .
@prefix geosparql: <http://www.opengis.net/ont/geosparql#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix qudt: <http://qudt.org/schema/qudt/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sampling: <http://www.w3.org/ns/sosa/sampling/> .
@prefix sf: <http://www.opengis.net/ont/sf#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix sosa: <http://www.w3.org/ns/sosa/> .
@prefix time: <http://www.w3.org/2006/time#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/om-20>
  rdf:type owl:Ontology ;
  dcterms:created "2017-06-06"^^xsd:date ;
  dcterms:creator <http://people.csiro.au/Simon-Cox> ;
  dcterms:modified "2017-06-07" ;
  rdfs:comment "SOSA/SSN examples matching the ones found in Annex C of OMXML 2.0" ;
  rdfs:seeAlso <http://portal.opengeospatial.org/files/?artifact_id=41510> ;
  owl:imports <http://example.org/geosparql> ;
  owl:imports <http://qudt.org/2.0/schema/qudt> ;
  owl:imports <http://www.w3.org/2006/time> ;
  owl:imports <http://www.w3.org/ns/prov-o#> ;
  owl:imports sosa:sampling ;
  owl:imports <http://www.w3.org/ns/ssn/> ;
.
examples:COTest3
  rdf:type sosa:Observation ;
  rdfs:comment "Complex Observation test instance" ;
  sosa:hasFeatureOfInterest <http://www.ga.gov.au/bin/gazd01?rec=293604> ;
  sosa:hasResult examples:a1 ;
  sosa:observedProperty <http://sweet.jpl.nasa.gov/2.0/atmo.owl#Weather> ;
  sosa:phenomenonTime examples:ot1t-3 ;
  sosa:resultTime "2005-01-11T17:22:25.00+10:00"^^xsd:dateTime ;
  sosa:usedProcedure <http://www.example.org/register/process/weatherStation3> ;
.
examples:CV123476
  rdf:type sosa:Result ;
  rdfs:comment "Result details not provided - need an RDF element for a 1-D coverage" ;
.
examples:CV12415
  rdf:type sosa:Result ;
  rdfs:comment "Result details not provided - need an RDF element for a 1-D coverage" ;
.
examples:DA1412412
  rdf:type sosa:Result ;
  rdfs:comment "Result details not provided - need an RDF element for a 1-D coverage" ;
.
examples:DA3464
  rdf:type sosa:Result ;
  rdfs:comment "Result details not provided - need an RDF element for an array and headers" ;
.
examples:DC756254
  rdf:type sosa:Result ;
  rdfs:comment "Result details not provided - need an RDF element for a set of geometry-value pairs" ;
.
examples:O35235
  rdf:type sosa:Observation ;
  rdfs:label "Weather Data" ;
  sosa:hasFeatureOfInterest <http://www.ga.gov.au/bin/gazd01?rec=293604> ;
  sosa:hasResult examples:DA3464 ;
  sosa:observedProperty <http://example.org/weather1.xml> ;
  sosa:phenomenonTime examples:TP2523 ;
  sosa:resultTime "2007-04-01T03:40:00.000-06:00"^^xsd:dateTime ;
  sosa:usedProcedure <urn:vast:sensor:weatherStation> ;
.
examples:OPTest1
  rdf:type sosa:Observation ;
  rdfs:comment "Observation instance with remote result" ;
  rdfs:label "Observation Pointer 1" ;
  skos:editorialNote "Procedure/sensor unknown so omitted in RDF representation" ;
  sosa:hasFeatureOfInterest <http://my.example.org/wfs%26request=getFeature%26;featureid=789002> ;
  sosa:hasResult <http://my.example.org/results%3f798002%26property=RH> ;
  sosa:observedProperty <urn:example:RelativeHumidity> ;
  sosa:phenomenonTime examples:op1t ;
  sosa:resultTime "2005-01-11T18:22:25.00+10:00"^^xsd:dateTime ;
.
examples:T13411414
  rdf:type time:Instant ;
  time:inXSDDateTimeStamp "2007-06-06T14:20:30.00+08:00"^^xsd:dateTimeStamp ;
.
examples:T3247149
  rdf:type time:Instant ;
  time:inXSDDateTimeStamp "2007-06-06T17:20:30.00+08:00"^^xsd:dateTimeStamp ;
.
examples:T9897
  rdf:type time:Instant ;
  time:inXSDDateTimeStamp "2007-06-06T14:20:30.00+08:00"^^xsd:dateTimeStamp ;
.
examples:TP2523
  rdf:type time:ProperInterval ;
  time:hasBeginning [
      rdf:type time:Instant ;
      time:inXSDDateTimeStamp "2007-04-01T00:00:00.000-06:00"^^xsd:dateTimeStamp ;
    ] ;
  time:hasEnd [
      rdf:type time:Instant ;
      time:inXSDDateTimeStamp "2007-04-01T03:40:00.000-06:00"^^xsd:dateTimeStamp ;
    ] ;
.
examples:a1
  rdf:type sosa:Result ;
  rdfs:comment "Result details not provided - need an RDF element for an array" ;
.
examples:b1
  rdf:type sosa:Sample ;
  geosparql:hasGeometry examples:pr1_ls1 ;
  geosparql:hasGeometry [
      rdf:type sf:Polygon ;
      geosparql:asWKT "<urn:ogc:def:crs:EPSG:6.8:4283> Polygon(-30.711 134.196 , -30.711 134.205 , -30.702 134.205 , -30.702 134.196 )"^^geosparql:wktLiteral ;
    ] ;
  rdfs:comment "Geology borehole Encoded as a SamplingCurve With three logs encoded as the results of relatedObservations" ;
  rdfs:label "b1" ;
  skos:editorialNote "Bounding box encoded as Polygon" ;
  skos:editorialNote "relatedObservation encoded using sosa:isFeatureOfInterestOf" ;
  sosa:isFeatureOfInterestOf examples:b1_lith1 ;
  sosa:isFeatureOfInterestOf examples:b1_ms1 ;
  sosa:isFeatureOfInterestOf examples:b1_p1 ;
  sosa:isSampleOf <http://my.geology.custodian.org/unit/g345> ;
.
examples:b1_lith1
  rdf:type sosa:Observation ;
  rdfs:comment "Lithology log Result is encoded using OGC Discrete Coverage/interleaved pattern" ;
  skos:editorialNote "No result shown - requires a 1-D coverage encoding" ;
  sosa:hasFeatureOfInterest examples:b1 ;
  sosa:hasResult examples:CV12415 ;
  sosa:madeBySensor <http://www.csiro.au/people/ps205.html> ;
  sosa:observedProperty <urn:ogc:def:phenomenon:CGI:2007:lithology> ;
  sosa:phenomenonTime examples:T3247149 ;
  sosa:resultTime "2007-06-06T17:20:30.00+08:00"^^xsd:dateTime ;
.
examples:b1_ms1
  rdf:type sosa:Observation ;
  rdfs:comment "Magnetic susceptibility log Result is encoded using SWE Common \"DataArray\" element, which embeds values in a text string" ;
  sosa:hasFeatureOfInterest examples:b1 ;
  sosa:hasResult examples:DA1412412 ;
  sosa:observedProperty <urn:ogc:def:phenomenon:CGI:2007:MagneticSusceptibility> ;
  sosa:phenomenonTime examples:T13411414 ;
  sosa:usedProcedure <http://www.geophysics.org/MS34> ;
.
examples:b1_p1
  rdf:type sosa:Observation ;
  rdfs:comment "Porosity log Result is encoded using OGC Discrete Point Coverage/interleaved pattern" ;
  sosa:hasFeatureOfInterest examples:b1 ;
  sosa:hasResult examples:CV123476 ;
  sosa:observedProperty <http://sweet.jpl.nasa.gov/ontology/property.owl#Porosity> ;
  sosa:phenomenonTime examples:T9897 ;
  sosa:resultTime "2007-06-06T14:20:30.00+08:00"^^xsd:dateTime ;
  sosa:usedProcedure <http://www.geophysics.org/PO34> ;
.
examples:foi
  rdf:type owl:Thing ;
  geosparql:hasGeometry [
      rdf:type sf:Polygon ;
      geosparql:asWKT "<urn:ogc:def:crs:EPSG:6.3:62836405> Polygon(-90 -180 , -90 180 , 90 180 , 90 -180 )"^^geosparql:wktLiteral ;
    ] ;
  rdfs:comment "This collection contains a sampling curve plus some associated stations" ;
  rdfs:member examples:ot2s ;
  rdfs:member examples:st1 ;
  rdfs:member examples:st2 ;
  rdfs:member examples:st3 ;
  rdfs:member examples:st4 ;
  skos:editorialNote "Bounding box encoded as Polygon" ;
  skos:editorialNote "Collection encoded as a owl:Thing" ;
.
examples:obsTest1
  rdf:type sosa:Observation ;
  rdfs:comment "Observation test instance: fruit mass" ;
  rdfs:label "Observation test 1" ;
  skos:editorialNote "Contextual information (ambient temperature) not shown - no RDF available" ;
  sosa:hasFeatureOfInterest <http://wfs.example.org?request=getFeature&amp;featureid=fruit37f> ;
  sosa:hasResult [
      rdf:type qudt:QuantityValue ;
      rdf:type sosa:Result ;
      qudt:numericValue "0.28"^^<http://www.linkedmodel.org/schema/dtype#numericUnion> ;
      qudt:unit <http://qudt.org/vocab/unit#Kilogram> ;
      skos:editorialNote "Use qudt:QuantityValue for sosa:Result" ;
    ] ;
  sosa:madeBySensor <http://www.example.org/register/process/scales34.xml> ;
  sosa:observedProperty <http://sweet.jpl.nasa.gov/2.0/phys.owl#Mass> ;
  sosa:phenomenonTime examples:ot1t ;
  sosa:resultTime "2005-01-11T16:22:25.00+10:00"^^xsd:dateTimeStamp ;
.
examples:obsTest1s
  rdf:type sosa:Observation ;
  rdfs:comment "Spatial observation test instance: water level" ;
  rdfs:label "Spatial observation test 1" ;
.
examples:obsTest2
  rdf:type sosa:Observation ;
  rdfs:comment "Observation test instance: fruit identification" ;
  rdfs:label "Observation test 2" ;
  sosa:hasFeatureOfInterest <http://wfs.example.org?request=getFeature&amp;featureid=fruit37f> ;
  sosa:hasResult <http://en.wikipedia.org/wiki/List_of_fruits#Banana> ;
  sosa:madeBySensor <http://www.example.org/party/individual/abc123> ;
  sosa:observedProperty <http://sweet.jpl.nasa.gov/2.0/biol.owl#Species> ;
  sosa:phenomenonTime examples:ot2t ;
  sosa:resultTime "2005-01-11T17:22:25.00+10:00"^^xsd:dateTime ;
  sosa:usedProcedure <http://www.example.org/party/role/field_worker> ;
.
examples:obsTest4
  rdf:type sosa:Observation ;
  rdfs:comment "Observation test instance - multi-element featureOfInterest" ;
  rdfs:label "Multi-element 1" ;
  sosa:hasFeatureOfInterest <http://wfs.example.org?request=getFeature&#38;featureid=stc1> ;
  sosa:hasResult examples:DC756254 ;
  sosa:madeBySensor <urn:ogc:object:feature:Sensor:NASA:xyz345> ;
  sosa:observedProperty <http://sweet.jpl.nasa.gov/2.0/physRadiation.owl#Radiance> ;
  sosa:phenomenonTime examples:ots1t ;
  sosa:resultTime "2005-06-17"^^xsd:date ;
.
examples:op1t
  rdf:type time:ProperInterval ;
  time:hasBeginning [
      rdf:type time:Instant ;
      time:inXSDDateTimeStamp "2005-01-11T17:22:25.00+10:00"^^xsd:dateTimeStamp ;
    ] ;
  time:hasEnd [
      rdf:type time:Instant ;
      time:inXSDDateTimeStamp "2005-01-11T18:22:25.00+10:00"^^xsd:dateTimeStamp ;
    ] ;
.
examples:ot1t
  rdf:type time:Instant ;
  time:inXSDDateTimeStamp "2005-01-11T16:22:25.00+10:00"^^xsd:dateTimeStamp ;
.
examples:ot1t-3
  rdf:type time:Instant ;
  time:inXSDDateTimeStamp "2005-01-11T17:22:25.00+10:00"^^xsd:dateTimeStamp ;
.
examples:ot2s
  rdf:type sosa:Sample ;
  geosparql:hasGeometry examples:pr1_ls1 ;
  rdfs:label "8903" ;
  sosa:isSampleOf <http://wfs.flakey.org?request=getFeature&amp;featureid=tract470> ;
  sampling:hasSampleRelationship [
      rdf:type sampling:SampleRelationship ;
      sampling:natureOfRelationship <urn:example:station> ;
      sampling:relatedSample examples:st1 ;
    ] ;
  sampling:hasSampleRelationship [
      rdf:type sampling:SampleRelationship ;
      sampling:natureOfRelationship <urn:example:station> ;
      sampling:relatedSample examples:st2 ;
    ] ;
  sampling:hasSampleRelationship [
      rdf:type sampling:SampleRelationship ;
      sampling:natureOfRelationship <urn:example:station> ;
      sampling:relatedSample examples:st3 ;
    ] ;
  sampling:hasSampleRelationship [
      rdf:type sampling:SampleRelationship ;
      sampling:natureOfRelationship <urn:example:station> ;
      sampling:relatedSample examples:st4 ;
    ] ;
.
examples:ot2t
  rdf:type time:Instant ;
  time:inXSDDateTimeStamp "2005-01-11T17:22:25.00+10:00"^^xsd:dateTimeStamp ;
.
examples:ots1t
  rdf:type time:Instant ;
  time:inXSDDate "2005-06-17"^^xsd:date ;
.
examples:pr1
  rdf:type sosa:Sample ;
  geosparql:hasGeometry examples:pr1_ls1 ;
  geosparql:hasGeometry [
      rdf:type sf:Polygon ;
      geosparql:asWKT "<urn:ogc:def:crs:EPSG:6.8:4283> Polygon(-30.711 134.196 , -30.711 134.205 , -30.702 134.205 , -30.702 134.196 )"^^geosparql:wktLiteral ;
    ] ;
  rdfs:comment "Geology traverse" ;
  rdfs:comment """elevation and position obtained using
					http://my.geology.example.org/procedures/survey/position/GPS4""" ;
  rdfs:label "pr1" ;
  skos:editorialNote "Bounding box encoded as Polygon" ;
  skos:editorialNote "Positional accuracy not encoded" ;
  sosa:isSampleOf <http://my.geology.example.org/unit/g345> ;
.
examples:pr1_ls1
  rdf:type sf:LineString ;
  geosparql:asWKT "<urn:ogc:def:crs:EPSG:6.8:4347> LineString(-30.711 134.205 321. , -30.710 134.204 315. , -30.709 134.203 303. , -30.708 134.201 296. , -30.706 134.196 272. , -30.703 134.197 271. , -30.702 134.199 280.  )"^^geosparql:wktLiteral ;
.
examples:pr1_s2
  rdf:type sosa:Sample ;
  <http://schema.org/material> <http://www.opengis.net/def/material/OGC-OM/2.0/rock> ;
  geosparql:hasGeometry [
      rdf:type sf:Point ;
      geosparql:asWKT "<http://www.opengis.net/def/crs/EPSG/0/4347> Point(-30.706 134.196 272.)"^^geosparql:wktLiteral ;
    ] ;
  rdfs:comment "Rock sample collected on traverse" ;
  rdfs:label "pr1_s2" ;
  prov:generatedAtTime "2007-01-29T12:19:55.00+09:00"^^xsd:dateTime ;
  sosa:isSampleOf <http://my.geology.example.org/unit/g345> ;
  sampling:hasSampleRelationship [
      rdf:type sampling:SampleRelationship ;
      sampling:natureOfRelationship <http://www/example/org/sampling/parentSpecimen> ;
      sampling:relatedSample <http://my.geology.example.org/projects/2007/pr1_s1> ;
    ] ;
  sosa:usedProcedure <http://geochemistry.example.org/splits/biased/density/greaterThan/2.9> ;
.
examples:st1
  rdf:type sosa:Sample ;
  geosparql:hasGeometry [
      rdf:type sf:Point ;
      geosparql:asWKT "<urn:ogc:def:crs:EPSG:6.8:4283> Point(-30.702 134.199 299.)"^^geosparql:wktLiteral ;
    ] ;
  sosa:isSampleOf <http://wfs.flakey.org?request=getFeature&amp;featureid=tract470> ;
.
examples:st2
  rdf:type sosa:Sample ;
  geosparql:hasGeometry [
      rdf:type sf:Point ;
      geosparql:asWKT "<urn:ogc:def:crs:EPSG:6.8:4283> Point(-30.710 134.204 315.)"^^geosparql:wktLiteral ;
    ] ;
  sosa:isSampleOf <http://wfs.flakey.org?request=getFeature&amp;featureid=tract470> ;
.
examples:st2-h
  rdf:type sosa:Sample ;
  geosparql:hasGeometry [
      rdf:type sf:Point ;
      geosparql:asWKT "<urn:ogc:def:crs:EPSG:6.8:4283> Point(-30.711 134.205)"^^geosparql:wktLiteral ;
    ] ;
  rdfs:comment "Hydrology sampling station" ;
  rdfs:label "st2" ;
  rdfs:seeAlso <http://my.hydrology.example.org/chemistry/2007/rtg78n> ;
  skos:editorialNote "Use rdfs:seeAlso for relatedObservation " ;
  sosa:isSampleOf <http://my.hydrology.example.org/catchments/Potamos> ;
  sampling:hasSampleRelationship [
      rdf:type sampling:SampleRelationship ;
      sampling:natureOfRelationship <http://www.example.org/complex/member> ;
      sampling:relatedSample <http://my.example.org/wfs?request=getFeature;featureid=coll32> ;
    ] ;
.
examples:st3
  rdf:type sosa:Sample ;
  geosparql:hasGeometry [
      rdf:type sf:Point ;
      geosparql:asWKT "<urn:ogc:def:crs:EPSG:6.8:4283> Point(-30.709 134.203 303.)"^^geosparql:wktLiteral ;
    ] ;
  sosa:isSampleOf <http://wfs.flakey.org?request=getFeature&amp;featureid=tract470> ;
.
examples:st4
  rdf:type sosa:Sample ;
  geosparql:hasGeometry [
      rdf:type sf:Point ;
      geosparql:asWKT "<urn:ogc:def:crs:EPSG:6.8:4283> Point(-30.708 134.201 296.)"^^geosparql:wktLiteral ;
    ] ;
  sosa:isSampleOf <http://wfs.flakey.org?request=getFeature&amp;featureid=tract470> ;
.
