From 3e44a492e569b25596a3c0ac677f441fdef3c62a Mon Sep 17 00:00:00 2001 From: vcharpenay Date: Thu, 28 Nov 2019 11:02:03 +0100 Subject: [PATCH] updated alignment tables in TD onto doc --- ontology/td-sdo.ttl | 16 +++ ontology/td.html | 227 ++++++++++++++------------------------ ontology/td.template.html | 227 ++++++++++++++------------------------ 3 files changed, 182 insertions(+), 288 deletions(-) create mode 100644 ontology/td-sdo.ttl diff --git a/ontology/td-sdo.ttl b/ontology/td-sdo.ttl new file mode 100644 index 000000000..6bf5513f4 --- /dev/null +++ b/ontology/td-sdo.ttl @@ -0,0 +1,16 @@ +@prefix owl: . +@prefix rdfs: . +@prefix td: . +@prefix schema: . + +<> a owl:Ontology ; + rdfs:comment "Alignment of the TD ontology with schema.org actions" ; + owl:imports td:, schema: . + +td:InteractionAffordance rdfs:subClassOf schema:Action, [ + a owl:Restriction ; + owl:onProperty schema:actionStatus ; + owl:hasValue schema:PotentialActionStatus + ] . + +td:hasInteractionAffordance rdfs:subPropertyOf schema:potentialAction . \ No newline at end of file diff --git a/ontology/td.html b/ontology/td.html index 65d63178b..d6f2ee365 100644 --- a/ontology/td.html +++ b/ontology/td.html @@ -29,6 +29,11 @@ shortName: "wot-td-ontology" }; + @@ -129,20 +134,14 @@

Alignments

The TD ontology shares commonalities with other WoT-related vocabularies, in particular with SOSA [[vocab-ssn]] and schema.org. - Alignments between these vocabularies are provided here. -

- -

- Alignments are definde as rules of the form "if P, then T", - where P is a SPARQL basic graph pattern and T a SPARQL - template. + Alignments between these vocabularies are provided in a human-readable way in the following.

SOSA

- All alignments with SOSA are available here: + All alignments with SOSA are also available here in OWL: td-sosa.ttl.

@@ -153,109 +152,71 @@

SOSA

- - + + @@ -266,79 +227,49 @@

SOSA

IfThenSub-ClassSuper-Class
-
-?thing a td:Thing .
-
+ td:Thing
-
-?thing a [
-    a owl:Class ;
-    owl:unionOf (
-        sosa:Sensor
-        sosa:Actuator
-        sosa:Platform
-        sosa:FeatureOfInterest
-    )
-] .
-
+ sosa:Sensor or
+ sosa:Actuator or
+ sosa:Platform or
+ sosa:FeatureOfInterest
-
-?thing a td:Thing,
-         sosa:FeatureOfInterest .
-
+ td:Thing and
+ sosa:FeatureOfInterest
-
-?thing ssn:hasProperty [
-    sosa:isObservedBy [
-        a [
-            a owl:Class ;
-            owl:unionOf (
-                sosa:Sensor
-                sosa:Actuator
-            )
-        ]
-    ]
-] .
-
+ ssn:hasProperty some (
+ (sosa:isObservedBy some sosa:Sensor) or
+ (sosa:isActedOnBy some sosa:Actuator)
+ )
-
-?thing a td:Thing, sosa:Sensor .
-
+ td:Thing and
+ sosa:Sensor
-
-?thing sosa:observes [
-    a sosa:ObservableProperty
-] .
-
+ sosa:observes some
+ sosa:ObservableProperty
-
-?thing a td:Thing, sosa:Actuator .
-
+ td:Thing and
+ sosa:Actuator
-
-?thing sosa:actsOnProperty [
-    a sosa:ActuatableProperty
-] .
-
+ sosa:actsOnProperty some
+ sosa:ActuatableProperty
-
-?thing a td:Thing, sosa:Platform .
-
+ td:Thing and
+ sosa:Platform
-
-_:sensor rdfs:subClassOf sosa:Sensor, [
-    a owl:Restriction ;
-    owl:onProperty sosa:observes ;
-    owl:someValuesFrom sosa:ObservableProperty
-] .
-
-_:actuator rdfs:subClassOf sosa:Actuator, [
-    a owl:Restriction ;
-    owl:onProperty sosa:actsOnProperty ;
-    owl:someValuesFrom sosa:ActuatableProperty
-] .
-
-?thing sosa:hosts [
-    a [
-        a owl:Class ;
-        owl:unionOf ( _:sensor, _:actuator )
-    ]
-] .
-
+ sosa:hosts some (
+ (
+ sosa:Sensor and
+ sosa:observes some
+ sosa:ObservableProperty
+ ) or (
+ sosa:Actuator and
+ sosa:actsOnProperty some
+ sosa:ActuatableProperty
+ )
+ )
- - + + @@ -348,38 +279,46 @@

SOSA

Schema.org

+

+ The alignments with schema.org's actions are also available here in OWL: + td-sdo.ttl. +

+
IfThenSub-ClassSuper-Class
-
-?a a td:PropertyAffordance ;
-    td:hasForm ?form .
-?form hyperm:forOperationType
-    "readproperty" .
-
+ td:PropertyAffordance and
+ td:hasForm some
+ hctl:hasOperationType value
+ hctl:readProperty
-
-?a a [
-    a owl:Restriction ;
-    owl:onProperty ssn:forProperty ;
-    owl:someValuesFrom sosa:ObservableProperty
-] .
-
+ ssn:forProperty some sosa:ObservableProperty
-
-?a a td:PropertyAffordance ;
-    td:hasForm ?form .
-?form hyperm:forOperationType
-    "writeproperty" .
-
+ td:PropertyAffordance and
+ td:hasForm some
+ hctl:hasOperationType value
+ hctl:writeProperty
-
-?a a [
-    a owl:Restriction ;
-    owl:onProperty ssn:forProperty ;
-    owl:someValuesFrom sosa:ActuatableProperty
-] .
-
+ ssn:forProperty some sosa:ActuatableProperty
-
-?a a td:ActionAffordance .
-
+ td:ActionAffordance
-
-?a a [
-    a owl:Restriction ;
-    owl:onProperty ssn:forProperty ;
-    owl:someValuesFrom sosa:ActuatableProperty
-] .
-
+ ssn:forProperty some
+ sosa:ActuatableProperty
-
-?a a td:EventAffordance .
-
+ td:EventAffordance
-
-?a a [
-    a owl:Restriction ;
-    owl:onProperty ssn:forProperty ;
-    owl:someValuesFrom sosa:ObservableProperty
-] .
-
+ ssn:forProperty some
+ sosa:ObservableProperty
- - + + + +
IfThenSub-ClassSuper-Class
-
-?a a td:InteractionAffordance .
-
+ td:InteractionAffordance
-
-?a a schema:Action ;
-   schema:actionStatus
-       schema:PotentialActionStatus .
-
+ schema:Action and
+ schema:actionStatus value + schema:PotentialActionStatus
+ + + + + + + + + diff --git a/ontology/td.template.html b/ontology/td.template.html index 2f50315df..ab8edf1a6 100644 --- a/ontology/td.template.html +++ b/ontology/td.template.html @@ -29,6 +29,11 @@ shortName: "wot-td-ontology" }; + @@ -99,20 +104,14 @@

Alignments

The TD ontology shares commonalities with other WoT-related vocabularies, in particular with SOSA [[vocab-ssn]] and schema.org. - Alignments between these vocabularies are provided here. -

- -

- Alignments are definde as rules of the form "if P, then T", - where P is a SPARQL basic graph pattern and T a SPARQL - template. + Alignments between these vocabularies are provided in a human-readable way in the following.

SOSA

- All alignments with SOSA are available here: + All alignments with SOSA are also available here in OWL: td-sosa.ttl.

@@ -123,109 +122,71 @@

SOSA

Sub-PropertySuper-Property
-
-?thing td:hasInteractionAffordance ?a .
-
+ td:hasInteractionAffordance
-
-?thing schema:potentialAction ?a .
-
+ schema:potentialAction
- - + + @@ -236,79 +197,49 @@

SOSA

IfThenSub-ClassSuper-Class
-
-?thing a td:Thing .
-
+ td:Thing
-
-?thing a [
-    a owl:Class ;
-    owl:unionOf (
-        sosa:Sensor
-        sosa:Actuator
-        sosa:Platform
-        sosa:FeatureOfInterest
-    )
-] .
-
+ sosa:Sensor or
+ sosa:Actuator or
+ sosa:Platform or
+ sosa:FeatureOfInterest
-
-?thing a td:Thing,
-         sosa:FeatureOfInterest .
-
+ td:Thing and
+ sosa:FeatureOfInterest
-
-?thing ssn:hasProperty [
-    sosa:isObservedBy [
-        a [
-            a owl:Class ;
-            owl:unionOf (
-                sosa:Sensor
-                sosa:Actuator
-            )
-        ]
-    ]
-] .
-
+ ssn:hasProperty some (
+ (sosa:isObservedBy some sosa:Sensor) or
+ (sosa:isActedOnBy some sosa:Actuator)
+ )
-
-?thing a td:Thing, sosa:Sensor .
-
+ td:Thing and
+ sosa:Sensor
-
-?thing sosa:observes [
-    a sosa:ObservableProperty
-] .
-
+ sosa:observes some
+ sosa:ObservableProperty
-
-?thing a td:Thing, sosa:Actuator .
-
+ td:Thing and
+ sosa:Actuator
-
-?thing sosa:actsOnProperty [
-    a sosa:ActuatableProperty
-] .
-
+ sosa:actsOnProperty some
+ sosa:ActuatableProperty
-
-?thing a td:Thing, sosa:Platform .
-
+ td:Thing and
+ sosa:Platform
-
-_:sensor rdfs:subClassOf sosa:Sensor, [
-    a owl:Restriction ;
-    owl:onProperty sosa:observes ;
-    owl:someValuesFrom sosa:ObservableProperty
-] .
-
-_:actuator rdfs:subClassOf sosa:Actuator, [
-    a owl:Restriction ;
-    owl:onProperty sosa:actsOnProperty ;
-    owl:someValuesFrom sosa:ActuatableProperty
-] .
-
-?thing sosa:hosts [
-    a [
-        a owl:Class ;
-        owl:unionOf ( _:sensor, _:actuator )
-    ]
-] .
-
+ sosa:hosts some (
+ (
+ sosa:Sensor and
+ sosa:observes some
+ sosa:ObservableProperty
+ ) or (
+ sosa:Actuator and
+ sosa:actsOnProperty some
+ sosa:ActuatableProperty
+ )
+ )
- - + + @@ -318,38 +249,46 @@

SOSA

Schema.org

+

+ The alignments with schema.org's actions are also available here in OWL: + td-sdo.ttl. +

+
IfThenSub-ClassSuper-Class
-
-?a a td:PropertyAffordance ;
-    td:hasForm ?form .
-?form hyperm:forOperationType
-    "readproperty" .
-
+ td:PropertyAffordance and
+ td:hasForm some
+ hctl:hasOperationType value
+ hctl:readProperty
-
-?a a [
-    a owl:Restriction ;
-    owl:onProperty ssn:forProperty ;
-    owl:someValuesFrom sosa:ObservableProperty
-] .
-
+ ssn:forProperty some sosa:ObservableProperty
-
-?a a td:PropertyAffordance ;
-    td:hasForm ?form .
-?form hyperm:forOperationType
-    "writeproperty" .
-
+ td:PropertyAffordance and
+ td:hasForm some
+ hctl:hasOperationType value
+ hctl:writeProperty
-
-?a a [
-    a owl:Restriction ;
-    owl:onProperty ssn:forProperty ;
-    owl:someValuesFrom sosa:ActuatableProperty
-] .
-
+ ssn:forProperty some sosa:ActuatableProperty
-
-?a a td:ActionAffordance .
-
+ td:ActionAffordance
-
-?a a [
-    a owl:Restriction ;
-    owl:onProperty ssn:forProperty ;
-    owl:someValuesFrom sosa:ActuatableProperty
-] .
-
+ ssn:forProperty some
+ sosa:ActuatableProperty
-
-?a a td:EventAffordance .
-
+ td:EventAffordance
-
-?a a [
-    a owl:Restriction ;
-    owl:onProperty ssn:forProperty ;
-    owl:someValuesFrom sosa:ObservableProperty
-] .
-
+ ssn:forProperty some
+ sosa:ObservableProperty
- - + + + +
IfThenSub-ClassSuper-Class
-
-?a a td:InteractionAffordance .
-
+ td:InteractionAffordance
-
-?a a schema:Action ;
-   schema:actionStatus
-       schema:PotentialActionStatus .
-
+ schema:Action and
+ schema:actionStatus value + schema:PotentialActionStatus
+ + + + + + + + +
Sub-PropertySuper-Property
-
-?thing td:hasInteractionAffordance ?a .
-
+ td:hasInteractionAffordance
-
-?thing schema:potentialAction ?a .
-
+ schema:potentialAction