/
wot-security.ttl
499 lines (302 loc) · 32.2 KB
/
wot-security.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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
@prefix : <http://www.w3.org/ns/td/security#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix vs: <http://www.w3.org/2003/06/sw-vocab-status/ns#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix vann: <http://purl.org/vocab/vann/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
<http://www.w3.org/ns/wot-security#> rdf:type owl:Ontology ;
dc:title "Security mechanisms for the Web of Things"@en ;
vann:preferredNamespacePrefix "wotsec" ;
vann:preferredNamespaceUri "http://www.w3.org/ns/wot-security#" ;
owl:versionInfo "0.0.1" ;
dcterms:license <http://purl.org/NET/rdflicense/cc-by4.0> ;
dcterms:creator <mailto:michael.mccool@intel.com> ;
dcterms:contributor <mailto:victor.charpenay@siemens.com> .
#################################################################
#
# Data properties
#
#################################################################
### http://www.w3.org/ns/wot-security#alg
<http://www.w3.org/ns/wot-security#alg> rdf:type owl:DatatypeProperty ;
rdfs:label "alg" ;
rdfs:comment "Encoding, encryption, or digest algorithm (one of MD5, ES256, or ES512-256)."@en ;
rdfs:range xsd:string .
### http://www.w3.org/ns/wot-security#authorization
<http://www.w3.org/ns/wot-security#authorization> rdf:type owl:DatatypeProperty ;
rdfs:label "authorization" ;
rdfs:comment "URI of the authorization server."@en ;
rdfs:range xsd:anyURI .
### http://www.w3.org/ns/wot-security#description
<http://www.w3.org/ns/wot-security#description> rdf:type owl:DatatypeProperty .
### http://www.w3.org/ns/wot-security#flow
<http://www.w3.org/ns/wot-security#flow> rdf:type owl:DatatypeProperty ;
rdfs:label "flow" ;
rdfs:comment "Authorization flow (one of implicit, password, client, or code)"@en ;
rdfs:range xsd:string .
### http://www.w3.org/ns/wot-security#format
<http://www.w3.org/ns/wot-security#format> rdf:type owl:DatatypeProperty ;
rdfs:label "format" ;
rdfs:comment "Specifies format of security authentication information (one of jwt, jwe, or jws)."@en ;
rdfs:range xsd:string .
### http://www.w3.org/ns/wot-security#identity
<http://www.w3.org/ns/wot-security#identity> rdf:type owl:DatatypeProperty ;
rdfs:label "identity" ;
rdfs:comment "Pre-shared key identity" ;
rdfs:range xsd:string .
### http://www.w3.org/ns/wot-security#in
<http://www.w3.org/ns/wot-security#in> rdf:type owl:DatatypeProperty ;
rdfs:label "in" ;
rdfs:comment "Specifies the location of security authentication information (one of header, query, body, or cookie)."@en ;
rdfs:range xsd:string .
### http://www.w3.org/ns/wot-security#name
<http://www.w3.org/ns/wot-security#name> rdf:type owl:DatatypeProperty ;
rdfs:label "name" ;
rdfs:comment "Name for query, header, or cookie parameters." ;
rdfs:range xsd:string .
### http://www.w3.org/ns/wot-security#proxy
<http://www.w3.org/ns/wot-security#proxy> rdf:type owl:DatatypeProperty ;
rdfs:label "proxy" ;
rdfs:comment "URI of the proxy server this security configuration provides access to. If not given, the corresponding security configuration is for the endpoint."@en ;
rdfs:range xsd:anyURI .
### http://www.w3.org/ns/wot-security#qop
<http://www.w3.org/ns/wot-security#qop> rdf:type owl:DatatypeProperty ;
rdfs:label "qop" ;
rdfs:comment "Quality of protection (one of auth or auth-int)." ;
rdfs:range xsd:string .
### http://www.w3.org/ns/wot-security#refresh
<http://www.w3.org/ns/wot-security#refresh> rdf:type owl:DatatypeProperty ;
rdfs:label "refresh" ;
rdfs:comment "URI of the refresh server"@en ;
rdfs:range xsd:anyURI .
### http://www.w3.org/ns/wot-security#scheme
<http://www.w3.org/ns/wot-security#scheme> rdf:type owl:DatatypeProperty ;
rdfs:label "scheme" ;
rdfs:comment "Identification of security mechanism being configured."@en ;
rdfs:range xsd:string .
### http://www.w3.org/ns/wot-security#scopes
<http://www.w3.org/ns/wot-security#scopes> rdf:type owl:DatatypeProperty ;
rdfs:label "scopes" ;
rdfs:comment "Set of authorization scope identifiers, provided as an array. These are provided in tokens returned by an authorization server and associated with forms in order to identify what resources a client may access and how."@en ;
rdfs:range xsd:string .
### http://www.w3.org/ns/wot-security#token
<http://www.w3.org/ns/wot-security#token> rdf:type owl:DatatypeProperty ;
rdfs:label "token" ;
rdfs:comment "URI of the token server."@en ;
rdfs:range xsd:anyURI .
#################################################################
#
# Classes
#
#################################################################
### http://www.w3.org/ns/wot-security#APIKeySecurityScheme
<http://www.w3.org/ns/wot-security#APIKeySecurityScheme> rdf:type owl:Class ;
rdfs:label "APIKeySecurityScheme" ;
owl:equivalentClass [ rdf:type owl:Restriction ;
owl:onProperty <http://www.w3.org/ns/wot-security#scheme> ;
owl:hasValue "apikey"
] ;
rdfs:subClassOf <http://www.w3.org/ns/wot-security#SecurityScheme> ,
[ rdf:type owl:Restriction ;
owl:onProperty <http://www.w3.org/ns/wot-security#name> ;
owl:allValuesFrom xsd:string
] ,
[ rdf:type owl:Restriction ;
owl:onProperty <http://www.w3.org/ns/wot-security#in> ;
owl:allValuesFrom xsd:string
] ;
rdfs:comment "API key authentication security configuration (\"scheme\": \"apikey\"). This is for the case where the access token is opaque and is not using a standard token format."@en .
### http://www.w3.org/ns/wot-security#BasicSecurityScheme
<http://www.w3.org/ns/wot-security#BasicSecurityScheme> rdf:type owl:Class ;
rdfs:label "BasicSecurityScheme" ;
owl:equivalentClass [ rdf:type owl:Restriction ;
owl:onProperty <http://www.w3.org/ns/wot-security#scheme> ;
owl:hasValue "basic"
] ;
rdfs:subClassOf <http://www.w3.org/ns/wot-security#SecurityScheme> ,
[ rdf:type owl:Restriction ;
owl:onProperty <http://www.w3.org/ns/wot-security#name> ;
owl:allValuesFrom xsd:string
] ,
[ rdf:type owl:Restriction ;
owl:onProperty <http://www.w3.org/ns/wot-security#in> ;
owl:allValuesFrom xsd:string
] ;
rdfs:comment "Basic authentication security configuration (\"scheme\": \"basic\"), using an unencrypted username and password. This scheme should be used with some other security mechanism providing confidentiality, for example, TLS."@en .
### http://www.w3.org/ns/wot-security#BearerSecurityScheme
<http://www.w3.org/ns/wot-security#BearerSecurityScheme> rdf:type owl:Class ;
rdfs:label "BearerSecurityScheme" ;
owl:equivalentClass [ rdf:type owl:Restriction ;
owl:onProperty <http://www.w3.org/ns/wot-security#scheme> ;
owl:hasValue "bearer"
] ;
rdfs:subClassOf <http://www.w3.org/ns/wot-security#SecurityScheme> ,
[ rdf:type owl:Restriction ;
owl:onProperty <http://www.w3.org/ns/wot-security#in> ;
owl:allValuesFrom xsd:string
] ,
[ rdf:type owl:Restriction ;
owl:onProperty <http://www.w3.org/ns/wot-security#authorization> ;
owl:allValuesFrom xsd:anyURI
] ,
[ rdf:type owl:Restriction ;
owl:onProperty <http://www.w3.org/ns/wot-security#format> ;
owl:allValuesFrom xsd:string
] ,
[ rdf:type owl:Restriction ;
owl:onProperty <http://www.w3.org/ns/wot-security#alg> ;
owl:allValuesFrom xsd:string
] ,
[ rdf:type owl:Restriction ;
owl:onProperty <http://www.w3.org/ns/wot-security#name> ;
owl:allValuesFrom xsd:string
] ;
rdfs:comment "Bearer token authentication security configuration (\"scheme\": \"bearer\"). This scheme is intended for situations where bearer tokens are used independently of OAuth2. If the oauth2 scheme is specified it is not generally necessary to specify this scheme as well as it is implied." .
### http://www.w3.org/ns/wot-security#CertSecurityScheme
<http://www.w3.org/ns/wot-security#CertSecurityScheme> rdf:type owl:Class ;
rdfs:label "CertSecurityScheme" ;
owl:equivalentClass [ rdf:type owl:Restriction ;
owl:onProperty <http://www.w3.org/ns/wot-security#scheme> ;
owl:hasValue "cert"
] ;
rdfs:subClassOf <http://www.w3.org/ns/wot-security#SecurityScheme> ,
[ rdf:type owl:Restriction ;
owl:onProperty <http://www.w3.org/ns/wot-security#identity> ;
owl:allValuesFrom xsd:string
] ;
rdfs:comment "Certificate-base asymmetric key security configuration (\"scheme\": \"cert\")." .
### http://www.w3.org/ns/wot-security#DigestSecurityScheme
<http://www.w3.org/ns/wot-security#DigestSecurityScheme> rdf:type owl:Class ;
rdfs:label "DigestSecurityScheme" ;
owl:equivalentClass [ rdf:type owl:Restriction ;
owl:onProperty <http://www.w3.org/ns/wot-security#scheme> ;
owl:hasValue "digest"
] ;
rdfs:subClassOf <http://www.w3.org/ns/wot-security#SecurityScheme> ,
[ rdf:type owl:Restriction ;
owl:onProperty <http://www.w3.org/ns/wot-security#qop> ;
owl:allValuesFrom xsd:string
] ,
[ rdf:type owl:Restriction ;
owl:onProperty <http://www.w3.org/ns/wot-security#name> ;
owl:allValuesFrom xsd:string
] ,
[ rdf:type owl:Restriction ;
owl:onProperty <http://www.w3.org/ns/wot-security#in> ;
owl:allValuesFrom xsd:string
] ;
rdfs:comment "Digest authentication security configuration (\"scheme\": \"digest\"). This scheme is similar to basic authentication but with added features to avoid man-in-the-middle attacks." .
### http://www.w3.org/ns/wot-security#NoSecurityScheme
<http://www.w3.org/ns/wot-security#NoSecurityScheme> rdf:type owl:Class ;
rdfs:label "NoSecurityScheme" ;
owl:equivalentClass [ rdf:type owl:Restriction ;
owl:onProperty <http://www.w3.org/ns/wot-security#scheme> ;
owl:hasValue "nosec"
] ;
rdfs:subClassOf <http://www.w3.org/ns/wot-security#SecurityScheme> ;
rdfs:comment "A security configuration corresponding to (\"scheme\": \"nosec\"), indicating there is no authentication or other mechanism required to access the resource."@en .
### http://www.w3.org/ns/wot-security#OAuth2SecurityScheme
<http://www.w3.org/ns/wot-security#OAuth2SecurityScheme> rdf:type owl:Class ;
rdfs:label "OAuth2SecurityScheme" ;
owl:equivalentClass [ rdf:type owl:Restriction ;
owl:onProperty <http://www.w3.org/ns/wot-security#scheme> ;
owl:hasValue "oauth2"
] ;
rdfs:subClassOf <http://www.w3.org/ns/wot-security#SecurityScheme> ,
[ rdf:type owl:Restriction ;
owl:onProperty <http://www.w3.org/ns/wot-security#authorization> ;
owl:allValuesFrom xsd:anyURI
] ,
[ rdf:type owl:Restriction ;
owl:onProperty <http://www.w3.org/ns/wot-security#scopes> ;
owl:allValuesFrom xsd:string
] ,
[ rdf:type owl:Restriction ;
owl:onProperty <http://www.w3.org/ns/wot-security#flow> ;
owl:allValuesFrom xsd:string
] ,
[ rdf:type owl:Restriction ;
owl:onProperty <http://www.w3.org/ns/wot-security#refresh> ;
owl:allValuesFrom xsd:anyURI
] ,
[ rdf:type owl:Restriction ;
owl:onProperty <http://www.w3.org/ns/wot-security#token> ;
owl:allValuesFrom xsd:anyURI
] ;
rdfs:comment "OAuth2 authentication security configuration (\"scheme\": \"oauth2\"). For the implicit flow the authorization and scopes are required. For the password and client flows both token and scopes are required. For the code flow authorization, token, and scopes are required."@en .
### http://www.w3.org/ns/wot-security#PSKSecurityScheme
<http://www.w3.org/ns/wot-security#PSKSecurityScheme> rdf:type owl:Class ;
rdfs:label "PSKSecurityScheme" ;
owl:equivalentClass [ rdf:type owl:Restriction ;
owl:onProperty <http://www.w3.org/ns/wot-security#scheme> ;
owl:hasValue "psk"
] ;
rdfs:subClassOf <http://www.w3.org/ns/wot-security#SecurityScheme> ,
[ rdf:type owl:Restriction ;
owl:onProperty <http://www.w3.org/ns/wot-security#identity> ;
owl:allValuesFrom xsd:string
] ;
rdfs:comment "Pre-shared key authentication security configuration (\"scheme\": \"psk\")." .
### http://www.w3.org/ns/wot-security#PoPSecurityScheme
<http://www.w3.org/ns/wot-security#PoPSecurityScheme> rdf:type owl:Class ;
rdfs:label "PoPSecurityScheme" ;
owl:equivalentClass [ rdf:type owl:Restriction ;
owl:onProperty <http://www.w3.org/ns/wot-security#scheme> ;
owl:hasValue "pop"
] ;
rdfs:subClassOf <http://www.w3.org/ns/wot-security#SecurityScheme> ,
[ rdf:type owl:Restriction ;
owl:onProperty <http://www.w3.org/ns/wot-security#format> ;
owl:allValuesFrom xsd:string
] ,
[ rdf:type owl:Restriction ;
owl:onProperty <http://www.w3.org/ns/wot-security#name> ;
owl:allValuesFrom xsd:string
] ,
[ rdf:type owl:Restriction ;
owl:onProperty <http://www.w3.org/ns/wot-security#alg> ;
owl:allValuesFrom xsd:string
] ,
[ rdf:type owl:Restriction ;
owl:onProperty <http://www.w3.org/ns/wot-security#authorization> ;
owl:allValuesFrom xsd:anyURI
] ,
[ rdf:type owl:Restriction ;
owl:onProperty <http://www.w3.org/ns/wot-security#in> ;
owl:allValuesFrom xsd:string
] ;
rdfs:comment "Proof-of-possession token authentication security configuration (\"scheme\": \"pop\")." .
### http://www.w3.org/ns/wot-security#PublicSecurityScheme
<http://www.w3.org/ns/wot-security#PublicSecurityScheme> rdf:type owl:Class ;
rdfs:label "PublicSecurityScheme" ;
owl:equivalentClass [ rdf:type owl:Restriction ;
owl:onProperty <http://www.w3.org/ns/wot-security#scheme> ;
owl:hasValue "public"
] ;
rdfs:subClassOf <http://www.w3.org/ns/wot-security#SecurityScheme> ,
[ rdf:type owl:Restriction ;
owl:onProperty <http://www.w3.org/ns/wot-security#identity> ;
owl:allValuesFrom xsd:string
] ;
rdfs:comment "Raw public key asymmetric key security configuration (\"scheme\": \"public\")." .
### http://www.w3.org/ns/wot-security#SecurityScheme
<http://www.w3.org/ns/wot-security#SecurityScheme> rdf:type owl:Class ;
rdfs:subClassOf [ rdf:type owl:Restriction ;
owl:onProperty <http://www.w3.org/ns/wot-security#scheme> ;
owl:allValuesFrom xsd:string
] ,
[ rdf:type owl:Restriction ;
owl:onProperty <http://www.w3.org/ns/wot-security#description> ;
owl:allValuesFrom xsd:string
] ,
[ rdf:type owl:Restriction ;
owl:onProperty <http://www.w3.org/ns/wot-security#proxy> ;
owl:allValuesFrom xsd:anyURI
] .
### Generated by the OWL API (version 3.4.2) http://owlapi.sourceforge.net