-
Notifications
You must be signed in to change notification settings - Fork 63
/
td-sosa.ttl
137 lines (125 loc) · 3.56 KB
/
td-sosa.ttl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix td: <https://www.w3.org/2019/wot/td#> .
@prefix hctl: <https://www.w3.org/2019/wot/hypermedia#> .
@prefix sosa: <http://www.w3.org/ns/sosa/> .
@prefix ssn: <http://www.w3.org/ns/ssn/> .
<> a owl:Ontology ;
rdfs:comment "Alignment of the TD ontology with SOSA/SSN" ;
owl:imports ssn:, td: .
# Alignment for class td:Thing
td:Thing
rdfs:subClassOf [
a owl:Class ;
owl:unionOf ( sosa:FeatureOfInterest sosa:Sensor sosa:Actuator sosa:Platform )
] .
[
a owl:Class ;
owl:unionOf ( td:Thing sosa:FeatureOfInterest )
]
rdfs:subClassOf [
a owl:Restriction ;
owl:onProperty ssn:hasProperty ;
owl:someValuesFrom [
a owl:Restriction ;
owl:onProperty sosa:isObservedBy ;
owl:someValuesFrom [
a owl:Class ;
owl:unionOf ( sosa:Sensor sosa:Actuator )
]
]
] .
[
a owl:Class ;
owl:unionOf ( td:Thing sosa:Sensor )
]
rdfs:subClassOf [
a owl:Restriction ;
owl:onProperty sosa:observes ;
owl:someValuesFrom sosa:ObservableProperty
] .
[
a owl:Class ;
owl:unionOf ( td:Thing sosa:Actuator )
]
rdfs:subClassOf [
a owl:Restriction ;
owl:onProperty sosa:actsOnProperty ;
owl:someValuesFrom sosa:ActuatableProperty
] .
[
a owl:Class ;
owl:unionOf ( td:Thing sosa:Platform )
]
rdfs:subClassOf [
a owl:Restriction ;
owl:onProperty sosa:hosts ;
owl:someValuesFrom [
a owl:Class ;
owl:unionOf (
[
a owl:Class ;
rdfs:subClassOf sosa:Sensor, [
a owl:Restriction ;
owl:onProperty sosa:observes ;
owl:someValuesFrom sosa:ObservableProperty
]
]
[
a owl:Class ;
rdfs:subClassOf sosa:Actuator, [
a owl:Restriction ;
owl:onProperty sosa:actsOnProperty ;
owl:someValuesFrom sosa:ActuatableProperty
]
]
)
]
] .
# Alignment for class td:InteractionAffordance and sub-classes
[
a owl:Class ;
rdfs:subClassOf td:PropertyAffordance, [
a owl:Restriction ;
owl:onProperty td:hasForm ;
owl:someValuesFrom [
a owl:Restriction ;
owl:onProperty hctl:hasOperationType ;
owl:hasValue td:readProperty
]
]
]
rdfs:subClassOf [
a owl:Restriction ;
owl:onProperty ssn:forProperty ;
owl:someValuesFrom ssn:ObservableProperty
] .
[
a owl:Class ;
rdfs:subClassOf td:PropertyAffordance, [
a owl:Restriction ;
owl:onProperty td:hasForm ;
owl:someValuesFrom [
a owl:Restriction ;
owl:onProperty hctl:hasOperationType ;
owl:hasValue td:writeProperty
]
]
]
rdfs:subClassOf [
a owl:Restriction ;
owl:onProperty ssn:forProperty ;
owl:someValuesFrom ssn:ActuatableProperty
] .
td:ActionAffordance
rdfs:subClassOf [
a owl:Restriction ;
owl:onProperty ssn:forProperty ;
owl:someValuesFrom ssn:ActuatableProperty
] .
td:EventAffordance
rdfs:subClassOf [
a owl:Restriction ;
owl:onProperty ssn:forProperty ;
owl:someValuesFrom ssn:ObservableProperty
] .