Skip to content

Commit

Permalink
Merge pull request #217 from w3c/214-namespace-in-examples-from-ssn-t…
Browse files Browse the repository at this point in the history
…o-sosa

Changed namespace for terms in all examples from ssn: to sosa:
  • Loading branch information
rob-metalinkage authored Apr 10, 2024
2 parents e028136 + 8b00f3a commit e282aa2
Show file tree
Hide file tree
Showing 27 changed files with 168 additions and 188 deletions.
5 changes: 2 additions & 3 deletions ssn/rdf/examples/2017ex10.ttl
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix time: <http://www.w3.org/2006/time#>.
@prefix sosa: <http://www.w3.org/ns/sosa/> .
@prefix ssn: <http://www.w3.org/ns/ssn/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix qudt: <http://qudt.org/schema/qudt/> .
@prefix unit: <http://qudt.org/vocab/unit/> .
Expand Down Expand Up @@ -73,7 +72,7 @@
# SSN allows to explicitly say that <window/104#state> is a property of <window>

<window> rdf:type sosa:FeatureOfInterest ;
ssn:hasProperty <window/104#state> .
sosa:hasProperty <window/104#state> .

<window/104#state> rdf:type sosa:ActuatableProperty ;
sosa:isActedOnBy <actuation/188> .
Expand All @@ -84,7 +83,7 @@

<windowCloser/987> rdf:type sosa:Actuator ;
sosa:madeActuation <actuation/188> ;
ssn:forProperty <window/104#state> .
sosa:forProperty <window/104#state> .


# Actuation #188 acted on the state of window #104 and returned 'true'.
Expand Down
13 changes: 6 additions & 7 deletions ssn/rdf/examples/2017ex12.ttl
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix sosa: <http://www.w3.org/ns/sosa/> .
@prefix ssn: <http://www.w3.org/ns/ssn/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix qudt: <http://qudt.org/schema/qudt/> .
@prefix unit: <http://qudt.org/vocab/unit/> .
Expand Down Expand Up @@ -29,11 +28,11 @@

<tree/124> rdf:type sosa:FeatureOfInterest ;
rdfs:label "tree #124"@en ;
ssn:hasProperty <tree/124#height> .
sosa:hasProperty <tree/124#height> .

<tree/124#height> rdf:type sosa:ObservableProperty , ssn:Property ;
<tree/124#height> rdf:type sosa:ObservableProperty , sosa:Property ;
rdfs:label "the height of tree #124"@en ;
ssn:isPropertyOf <tree/124> .
sosa:isPropertyOf <tree/124> .

# rangefinder #30 made observation #1088 of the height of tree #125.

Expand All @@ -50,8 +49,8 @@

<tree/125> rdf:type sosa:FeatureOfInterest ;
rdfs:label "tree #125"@en ;
ssn:hasProperty <tree/125#height> .
sosa:hasProperty <tree/125#height> .

<tree/125#height> rdf:type sosa:ObservableProperty , ssn:Property ;
<tree/125#height> rdf:type sosa:ObservableProperty , sosa:Property ;
rdfs:label "the height of tree #125"@en ;
ssn:isPropertyOf <tree/124> .
sosa:isPropertyOf <tree/124> .
4 changes: 2 additions & 2 deletions ssn/rdf/examples/2017ex13.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<tree/124> rdf:type sosa:FeatureOfInterest ;
rdfs:label "tree #124"@en .

<tree/124#height> rdf:type sosa:ObservableProperty , ssn:Property ;
<tree/124#height> rdf:type sosa:ObservableProperty , sosa:Property ;
rdfs:label "the height of tree #124"@en .

# rangefinder #30 made observation #1088 of the height of tree #125.
Expand All @@ -44,5 +44,5 @@
<tree/125> rdf:type sosa:FeatureOfInterest ;
rdfs:label "tree #125"@en .

<tree/125#height> rdf:type sosa:ObservableProperty , ssn:Property ;
<tree/125#height> rdf:type sosa:ObservableProperty , sosa:Property ;
rdfs:label "the height of tree #125"@en .
5 changes: 2 additions & 3 deletions ssn/rdf/examples/2017ex14.ttl
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix sosa: <http://www.w3.org/ns/sosa/> .
@prefix ssn: <http://www.w3.org/ns/ssn/> .
@prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix qudt: <http://qudt.org/schema/qudt/> .
Expand All @@ -27,7 +26,7 @@
geo:alt 12.75 ;
sosa:isSampleOf <earth> .

<VCAB-DP1-BP-40#groundDisplacementSpeed> rdf:type sosa:ObservableProperty , ssn:Property ;
<VCAB-DP1-BP-40#groundDisplacementSpeed> rdf:type sosa:ObservableProperty , sosa:Property ;
rdfs:label "the ground displacement speed at location of VCAB-DP1-BP-40"@en ;
sosa:isObservedBy <VCAB-DP1-BP-40> .

Expand All @@ -43,4 +42,4 @@

# using SSN one can explicitly state that <VCAB-DP1-BP-40#groundDisplacementSpeed> is the property of <VCAB-DP1-BP-40#location> .

<VCAB-DP1-BP-40#location> ssn:hasProperty <VCAB-DP1-BP-40#groundDisplacementSpeed> .
<VCAB-DP1-BP-40#location> sosa:hasProperty <VCAB-DP1-BP-40#groundDisplacementSpeed> .
2 changes: 1 addition & 1 deletion ssn/rdf/examples/2017ex15.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
geo:alt 12.75 ;
sosa:isSampleOf <earth> .

<VCAB-DP1-BP-40#groundDisplacementSpeed> rdf:type sosa:ObservableProperty , ssn:Property ;
<VCAB-DP1-BP-40#groundDisplacementSpeed> rdf:type sosa:ObservableProperty , sosa:Property ;
rdfs:label "the ground displacement speed at location of VCAB-DP1-BP-40"@en ;
sosa:isObservedBy <VCAB-DP1-BP-40> .

Expand Down
15 changes: 7 additions & 8 deletions ssn/rdf/examples/2017ex17.ttl
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix sosa: <http://www.w3.org/ns/sosa/> .
@prefix ssn: <http://www.w3.org/ns/ssn/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@base <http://example.org/data/> .

Expand All @@ -15,27 +14,27 @@

<windSensor/14> rdf:type sosa:Sensor ;
sosa:madeObservation <observation/147> , <observation/148> ;
ssn:detects <observation/147#spinningCupsMovement> , <observation/148#spinningCupsMovement> .
sosa:detects <observation/147#spinningCupsMovement> , <observation/148#spinningCupsMovement> .

# observation #147 was originated by the movement of the spinning cups of sensor #14.
# the result of observations #147 and #148 is using some custom datatype that encodes the unit of measure.

<observation/147> rdf:type sosa:Observation ;
sosa:observedProperty <location/4687#windSpeed> ;
sosa:madeBySensor <windSensor/14> ;
ssn:wasOriginatedBy <observation/147#spinningCupsMovement> ;
sosa:wasOriginatedBy <observation/147#spinningCupsMovement> ;
sosa:resultTime "2017-04-12T12:00:00Z"^^xsd:dateTime ;
sosa:hasSimpleResult "47 km/h"^^<speed> .

<observation/147#spinningCupsMovement> rdf:type ssn:Stimulus ;
ssn:isProxyFor <location/4687#windSpeed> .
<observation/147#spinningCupsMovement> rdf:type sosa:Stimulus ;
sosa:isProxyFor <location/4687#windSpeed> .

<observation/148> rdf:type sosa:Observation ;
sosa:observedProperty <location/4687#windSpeed> ;
sosa:madeBySensor <windSensor/14> ;
ssn:wasOriginatedBy <observation/148#spinningCupsMovement> ;
sosa:wasOriginatedBy <observation/148#spinningCupsMovement> ;
sosa:resultTime "2017-04-12T12:01:00Z"^^xsd:dateTime ;
sosa:hasSimpleResult "43 km/h"^^<speed> .

<observation/148#spinningCupsMovement> rdf:type ssn:Stimulus ;
ssn:isProxyFor <location/4687#windSpeed> .
<observation/148#spinningCupsMovement> rdf:type sosa:Stimulus ;
sosa:isProxyFor <location/4687#windSpeed> .
3 changes: 1 addition & 2 deletions ssn/rdf/examples/2017ex19.ttl
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix time: <http://www.w3.org/2006/time#>.
@prefix sosa: <http://www.w3.org/ns/sosa/> .
@prefix ssn: <http://www.w3.org/ns/ssn/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>.
@base <http://example.org/data/> .
Expand Down Expand Up @@ -32,4 +31,4 @@

# using SSN one can explicitly state that <iceCore/12#CO2> is the property of <iceCore/12> .

<iceCore/12#CO2> ssn:isPropertyOf <iceCore/12> .
<iceCore/12#CO2> sosa:isPropertyOf <iceCore/12> .
27 changes: 13 additions & 14 deletions ssn/rdf/examples/2017ex21.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

@prefix ex: <http://example.org/> .
@prefix sosa: <http://www.w3.org/ns/sosa/> .
@prefix ssn: <http://www.w3.org/ns/ssn/> .
@prefix ssn-system: <http://www.w3.org/ns/ssn/systems/> .

@prefix rdfp: <https://w3id.org/rdfp/>.
Expand All @@ -16,33 +15,33 @@


<DHT22#Procedure> a sosa:Procedure ;
ssn:hasOutput <DHT22#output> .
sosa:hasOutput <DHT22#output> .

<DHT22#output> a ssn:Output , rdfp:GraphDescription ;
<DHT22#output> a sosa:Output , rdfp:GraphDescription ;
rdfs:comment "The output is a RDF Graph that describes both the temperature and the humidity. It can be validated by a SHACL shapes graph."@en ;
rdfp:presentedBy [
a rdfp:GraphDescription ;
rdfp:validationRule <shacl_shapes_graph> ;
] .


<DHT22/4578> a ssn:System ;
<DHT22/4578> a sosa:System ;
rdfs:comment "DHT22 sensor #4578 contains a humidity and a temperature sensor."@en ;
rdfs:seeAlso <https://www.sparkfun.com/datasheets/Sensors/Temperature/DHT22.pdf> ;
ssn:hasSubSystem <DHT22/4578#TemperatureSensor>, <DHT22/4578#HumiditySensor> .
sosa:hasSubSystem <DHT22/4578#TemperatureSensor>, <DHT22/4578#HumiditySensor> .



<DHT22/4578#TemperatureSensor> a sosa:Sensor , ssn:System ;
<DHT22/4578#TemperatureSensor> a sosa:Sensor , sosa:System ;
rdfs:comment "The embedded temperature sensor, a specific instance of temperature sensor."@en ;
ssn-system:hasOperatingRange <DHT22/4578#TemperatureSensorOperatingRange> ;
ssn-system:hasSystemCapability <DHT22/4578#TemperatureSensorCapability> ;
ssn:implements <DHT22#Procedure> .
sosa:implements <DHT22#Procedure> .

<DHT22/4578#HumiditySensor> a sosa:Sensor , ssn:System ;
<DHT22/4578#HumiditySensor> a sosa:Sensor , sosa:System ;
rdfs:comment "The embedded humidity sensor, a specific instance of humidity sensor."@en ;
ssn-system:hasOperatingRange <DHT22/4578#HumiditySensorOperatingRange> ;
ssn:implements <DHT22#Procedure> .
sosa:implements <DHT22#Procedure> .



Expand Down Expand Up @@ -70,29 +69,29 @@



<DHT22/4578#TemperatureSensorCapability> a ssn:Property , ssn-system:SystemCapability , schema:PropertyValue ;
<DHT22/4578#TemperatureSensorCapability> a sosa:Property , ssn-system:SystemCapability , schema:PropertyValue ;
rdfs:comment "The capabilities of the temperature sensor in normal temperature and humidity conditions." ;
ssn-system:inCondition <NormalTemperatureCondition> , <NormalHumidityCondition> ;
ssn-system:hasSystemProperty <DHT22/4578#TemperatureSensorAccuracy> , <DHT22/4578#TemperatureSensorSensitivity> , <DHT22/4578#TemperatureSensorRepeatability> , <DHT22/4578#TemperatureSensorFrequency> .

<DHT22/4578#TemperatureSensorAccuracy> a ssn:Property , ssn-system:Accuracy , schema:PropertyValue ;
<DHT22/4578#TemperatureSensorAccuracy> a sosa:Property , ssn-system:Accuracy , schema:PropertyValue ;
rdfs:comment "The accuracy of the temperature sensor is +-0.5 °C in normal temperature and humidity conditions."@en ;
schema:minValue -0.5 ;
schema:maxValue 0.5 ;
schema:unitCode unit:DegreeCelsius .

<DHT22/4578#TemperatureSensorSensitivity> a ssn:Property , ssn-system:Sensitivity , ssn-system:Resolution , schema:PropertyValue ;
<DHT22/4578#TemperatureSensorSensitivity> a sosa:Property , ssn-system:Sensitivity , ssn-system:Resolution , schema:PropertyValue ;
rdfs:comment "The sensitivity and resolution of the temperature sensor is 0.1 °C in normal temperature and humidity conditions."@en ;
schema:value 0.1 ;
schema:unitCode unit:DegreeCelsius .

<DHT22/4578#TemperatureSensorPrecision> a ssn:Property , ssn-system:Precision , schema:PropertyValue ;
<DHT22/4578#TemperatureSensorPrecision> a sosa:Property , ssn-system:Precision , schema:PropertyValue ;
rdfs:comment "The precision (= repeatability) of the temperature sensor is +-0.2 °C in normal temperature and humidity conditions."@en ;
schema:minValue 0.2 ;
schema:maxValue 0.2 ;
schema:unitCode unit:DegreeCelsius .

<DHT22/4578#TemperatureSensorFrequency> a ssn:Property , ssn-system:Frequency , schema:PropertyValue ;
<DHT22/4578#TemperatureSensorFrequency> a sosa:Property , ssn-system:Frequency , schema:PropertyValue ;
rdfs:comment "The smallest possible time between one observation and the next is 2 s on average."@en ;
schema:value 2 ;
schema:unitCode unit:Second .
Expand Down
1 change: 0 additions & 1 deletion ssn/rdf/examples/2017ex22.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
@prefix schema: <http://schema.org/>.

@prefix sosa: <http://www.w3.org/ns/sosa/> .
@prefix ssn: <http://www.w3.org/ns/ssn/> .
@prefix ssn-system: <http://www.w3.org/ns/ssn/systems/> .

@prefix rdfp: <https://w3id.org/rdfp/>.
Expand Down
35 changes: 17 additions & 18 deletions ssn/rdf/examples/2017ex23.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
@prefix schema: <http://schema.org/>.

@prefix sosa: <http://www.w3.org/ns/sosa/> .
@prefix ssn: <http://www.w3.org/ns/ssn/> .
@prefix ssn-system: <http://www.w3.org/ns/ssn/systems/> .

@base <http://example.org/data/> .
Expand Down Expand Up @@ -41,50 +40,50 @@



<PCBBoard1> a ssn:System , sosa:Platform ;
<PCBBoard1> a sosa:System , sosa:Platform ;
rdfs:label "PCB Board 1"@en ;
rdfs:comment "PCB Board 1 hosts DHT22 temperature and humidity sensor #4578 permanently, one can say it has it as one of its subsystems."@en ;
sosa:hosts <DHT22/4578> ;
ssn:hasSubSystem <DHT22/4578> .
sosa:hasSubSystem <DHT22/4578> .

<DHT22/4578> a ssn:System ;
<DHT22/4578> a sosa:System ;
rdfs:label "DHT22 sensor #4578"@en ;
sosa:isHostedBy <PCBBoard1> .


<PCBBoard2> a ssn:System , sosa:Platform ;
<PCBBoard2> a sosa:System , sosa:Platform ;
rdfs:label "PCB Board 2"@en ;
rdfs:comment "PCB Board 2 hosts DHT22 temperature and humidity sensor #4579 permanently, one can say it has it as one of its subsystems."@en ;
sosa:hosts <DHT22/4578> ;
ssn:hasSubSystem <DHT22/4578> .
sosa:hasSubSystem <DHT22/4578> .

<DHT22/4579> a ssn:System ;
<DHT22/4579> a sosa:System ;
rdfs:label "DHT22 sensor #4579."@en ;
sosa:isHostedBy <PCBBoard2> .


<PCBBoard3> a ssn:System , sosa:Platform ;
<PCBBoard3> a sosa:System , sosa:Platform ;
rdfs:label "PCB Board 3"@en ;
rdfs:comment "PCB Board 3 hosts DHT22 temperature and humidity sensor #4580 permanently, one can say it has it as one of its subsystems."@en ;
sosa:hosts <DHT22/4578> ;
ssn:hasSubSystem <DHT22/4578> .
sosa:hasSubSystem <DHT22/4578> .

<DHT22/4580> a ssn:System ;
<DHT22/4580> a sosa:System ;
rdfs:label "DHT22 sensor #4580."@en ;
sosa:isHostedBy <PCBBoard3> .




<Room245Deployment> a ssn:Deployment ;
<Room245Deployment> a sosa:Deployment ;
rdfs:comment "Deployment of PCB Board 3 on the south wall of room #245 for the purpose of observing the temperature and humidity of room #245."@en ;
ssn:deployedOnPlatform <Room245/south> ;
ssn:deployedSystem <PCBBoard3> ;
ssn:forProperty <Room245#temperature> , <Room245#humidity> .
sosa:deployedOnPlatform <Room245/south> ;
sosa:deployedSystem <PCBBoard3> ;
sosa:forProperty <Room245#temperature> , <Room245#humidity> .


<Room145Deployment> a ssn:Deployment ;
<Room145Deployment> a sosa:Deployment ;
rdfs:comment "Deployment of PCB Board 1 and 2 on the east and south wall of room #145, respectively, for the purpose of observing the temperature and humidity of room #145."@en ;
ssn:deployedOnPlatform <Room245/east> , <Room245/south> ;
ssn:deployedSystem <PCBBoard1> , <PCBBoard2> ;
ssn:forProperty <Room145#temperature> , <Room145#humidity> .
sosa:deployedOnPlatform <Room245/east> , <Room245/south> ;
sosa:deployedSystem <PCBBoard1> , <PCBBoard2> ;
sosa:forProperty <Room145#temperature> , <Room145#humidity> .
Loading

0 comments on commit e282aa2

Please sign in to comment.