forked from w3c/wot-thing-description
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtd-validation.ttl
837 lines (806 loc) · 25.3 KB
/
td-validation.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
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
@prefix : <http://www.w3.org/ns/td-validation#> .
@prefix td: <https://www.w3.org/2019/td#> .
@prefix jsonschema: <https://www.w3.org/2019/json-schema#> .
@prefix wotsec: <https://www.w3.org/2019/wot-security#> .
@prefix lnk: <https://www.w3.org/2019/web-linking#> .
@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/> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
:ThingShape a sh:NodeShape ;
sh:targetClass td:Thing ;
sh:closed "false"^^xsd:boolean ;
sh:order "1"^^xsd:integer ;
sh:description
"""
<p>
<span class=\"rfc2119-assertion\" id=\"td-context-ns-thing-mandatory\">The mandatory
context definition of the string <code>"https://www.w3.org/2019/wot/td/v1"</code> MUST be
the first item in the <code>@context</code> array.</span>
<span class=\"rfc2119-assertion\" id=\"td-context-ns-thing-optional\">The mandatory
context definition MAY be followed by one or more context definitions as strings or
objects, and/or a default language definition as an object.</span>
</p>
<p>
<span class=\"rfc2119-assertion\" id=\"td-context-ns-thing-dereferenceable-url\">
As suggested in JSON-LD [[json-ld]] specification, if a context definition is
a string, it SHOULD be a dereferenceable URL.
</span>
<span class=\"rfc2119-assertion\" id=\"td-context-ns-thing-map-of-namespaces\">
Likewise, if a context definition is an object, it SHOULD be a map of namespaces,
in which keys are namespace prefixes.
</span>
<span class=\"rfc2119-assertion\" id=\"td-context-ns-thing-prefix\">Each optional
namespace specified in the <code>@context</code> array of a Thing MUST be bound
to an unique prefix.</span>
</p>
<p>
<span class=\"rfc2119-assertion\" id=\"td-context-default-language\">
In the <code>@context</code> array, the optional default language that is
used throughout a TD document is defined within an object as a member with
a key <code>@language</code> whose value MUST be a string representing a [[!BCP47]]
language code.</span>
</p>
<p id="meta-interactions-of-thing">Similar to <a href="#propertyaffordance" class="sec-ref">PropertyAffordance</a>,
<a href="#actionaffordance" class="sec-ref">ActionAffordance</a> and
<a href="#eventaffordance" class="sec-ref">EventAffordance</a> classes, all of which are
subclasses of <a href="#interactionaffordance" class="sec-ref">
InteractionAffordance</a>, the definition of Thing class also contains
the <code>forms</code> term.
<span class="rfc2119-assertion" id="td-op-for-thing">
When a <code>forms</code> term member is present in a Thing instance,
the value(s) in the <code>op</code> term member of the <code>forms</code> MUST be one or more of
<code>readallproperties</code>, <code>writeallproperties</code>,
<code>readmultipleproperties</code> or <code>writemultipleproperties</code>.
</span>
(See <a href="#td-forms-readall-example"> an example</a> for an usage of <code>form</code> in a Thing instance.)
</p>
<p>
For <code>readallproperties</code> operation's output,
<code>readmultipleproperties</code> operation's output,
<code>writeallproperties</code> operation's input and <code>writemultipleproperties</code>
operation's input, payloads are assigned an object type schema with its
properties equal to the Thing's <a href="#propertyaffordance">property affordances</a>.
For <code>readmultipleproperties</code> operation's input, payloads are
assigned a string array type schema with its items each equal to one of the names of
The Thing's <a href="#propertyaffordance">property affordances</a>.
</p>
"""^^rdf:HTML ;
sh:property [
sh:path td:name ;
sh:minCount 1 ;
sh:datatype xsd:string ;
sh:order "1"^^xsd:integer ;
] ;
sh:property [
sh:path td:description ;
sh:datatype xsd:string ;
sh:order "3"^^xsd:integer ;
] ;
sh:property [
sh:path td:descriptions ;
sh:class td:MultiLanguage ;
sh:order "4"^^xsd:integer ;
] ;
sh:property [
sh:path td:version ;
sh:class td:VersionInfo ;
sh:order "5"^^xsd:integer ;
] ;
sh:property [
sh:path td:created ;
sh:datatype xsd:dateTime ;
sh:order "6"^^xsd:integer ;
] ;
sh:property [
sh:path td:modified ;
sh:datatype xsd:dateTime ;
sh:order "7"^^xsd:integer ;
] ;
sh:property [
sh:path td:support ;
sh:datatype xsd:string ;
sh:order "8"^^xsd:integer ;
] ;
sh:property [
sh:path td:base ;
sh:datatype xsd:anyURI ;
sh:order "9"^^xsd:integer ;
] ;
sh:property [
sh:path td:properties ;
sh:class td:PropertyAffordance ;
sh:order "10"^^xsd:integer ;
] ;
sh:property [
sh:path td:actions ;
sh:class td:ActionAffordance ;
sh:order "11"^^xsd:integer ;
] ;
sh:property [
sh:path td:events ;
sh:class td:EventAffordance ;
sh:order "12"^^xsd:integer ;
] ;
sh:property [
sh:path td:links ;
sh:class lnk:Link ;
sh:order "13"^^xsd:integer ;
] ;
sh:property [
sh:path td:forms ;
sh:class lnk:Form ;
sh:order "14"^^xsd:integer ;
] ;
sh:property [
sh:path td:security ;
sh:minCount 1 ;
# sh:class wotsec:SecurityScheme ;
sh:datatype xsd:string ;
sh:order "15"^^xsd:integer ;
] ;
sh:property [
sh:path td:securityDefinitions ;
sh:minCount 1 ;
sh:class wotsec:SecurityScheme ;
sh:order "16"^^xsd:integer ;
].
:InteractionAffordanceShape a sh:NodeShape ;
sh:targetClass td:InteractionAffordance ;
sh:closed "false"^^xsd:boolean ;
sh:order "2"^^xsd:integer ;
sh:property [
sh:path td:title ;
sh:datatype xsd:string ;
sh:order "1"^^xsd:integer ;
] ;
sh:property [
sh:path td:titles ;
sh:class td:MultiLanguage ;
sh:order "2"^^xsd:integer ;
] ;
sh:property [
sh:path td:description ;
sh:datatype xsd:string ;
sh:order "3"^^xsd:integer ;
] ;
sh:property [
sh:path td:descriptions ;
sh:class td:MultiLanguage ;
sh:order "4"^^xsd:integer ;
] ;
sh:property [
sh:path td:forms ;
sh:minCount 1 ;
sh:class td:Form ;
sh:order "5"^^xsd:integer ;
] ;
sh:property [
sh:path td:uriVariables ;
sh:class td:DataSchema ;
sh:order "6"^^xsd:integer ;
] .
:PropertyShape a sh:NodeShape ;
sh:targetClass td:PropertyAffordance ;
sh:closed "false"^^xsd:boolean ;
sh:order "3"^^xsd:integer ;
sh:description
"""
<p><code>Property</code> class is a subclass of the class <a href="#interactionaffordance"
class="sec-ref">InteractionAffordance</a>.
<span class="rfc2119-assertion" id="td-op-for-property">
When a <code>forms</code> term member is present in a Property instance,
the value(s) in the <code>op</code> term member of the <code>forms</code> MUST be one or more of
<code>readproperty</code>, <code>writeproperty</code>, <code>observeproperty</code> or <code>unobserveproperty</code>.
</span>
</p>
<p class="note">
Property instances are also instances of the class
<a href="#dataschema" class="sec-ref">DataSchema</a>. Therefore,
it can contain the <code>type</code>, <code>unit</code>,
<code>readOnly</code> and <code>writeOnly</code> members, among
others.
</p>
<p>
<span class="rfc2119-assertion" id="td-op-for-property-readonly">
When the value of <code>readOnly</code> member is true in an instance of PropertyAffordance,
the value(s) in the <code>op</code> term member of the <code>forms</code>
MUST NOT contain <code>writeproperty</code>.
</span>
Similarly,
<span class="rfc2119-assertion" id="td-op-for-property-writeonly">
when the value of <code>writeOnly</code> member is true in an instance of PropertyAffordance,
the value(s) in the <code>op</code> term member of the <code>forms</code>
MUST NOT contain <code>readproperty</code>.
</span>
</p>
"""^^rdf:HTML ;
sh:property [
sh:path td:observable ;
sh:datatype xsd:boolean ;
] .
:ActionShape a sh:NodeShape ;
sh:targetClass td:ActionAffordance ;
sh:closed "false"^^xsd:boolean ;
sh:order "4"^^xsd:integer ;
sh:description
"""
<p>Action class is a subclass of the class <a href="#interactionaffordance"
class="sec-ref">InteractionAffordance</a>.
<span class="rfc2119-assertion" id="td-op-for-action">
When a <code>forms</code> term member is present in an Action instance,
the value in the <code>op</code> term member of the <code>forms</code> MUST be
<code>invokeaction</code>.
</span>
</p>
"""^^rdf:HTML ;
sh:property [
sh:path td:input ;
sh:class jsonschema:DataSchema ;
sh:order "1"^^xsd:integer ;
] ;
sh:property [
sh:path td:output ;
sh:class jsonschema:DataSchema ;
sh:order "2"^^xsd:integer ;
] ;
sh:property [
sh:path td:safe ;
sh:datatype xsd:boolean ;
sh:minCount 1 ;
sh:defaultValue "false"^^xsd:boolean ;
sh:order "3"^^xsd:integer ;
] ;
sh:property [
sh:path td:idempotent ;
sh:datatype xsd:boolean ;
sh:minCount 1 ;
sh:defaultValue "false"^^xsd:boolean ;
sh:order "4"^^xsd:integer ;
] .
:EventShape a sh:NodeShape ;
sh:targetClass td:EventAffordance ;
sh:closed "false"^^xsd:boolean ;
sh:order "5"^^xsd:integer ;
sh:description
"""
<p>Event class is a subclass of the class <a href="#interactionaffordance"
class="sec-ref">InteractionAffordance</a>.
<span class="rfc2119-assertion" id="td-op-for-event">
When a <code>forms</code> term member is present in an Event instance,
the value(s) in the <code>op</code> term member of the <code>forms</code> MUST be either or both of
<code>subscribeevent</code> or/and <code>unsubscribeevent</code>.
</span>
</p>
"""^^rdf:HTML ;
sh:property [
sh:path td:subscription ;
sh:class jsonschema:DataSchema ;
sh:order "1"^^xsd:integer ;
] ;
sh:property [
sh:path td:data ;
sh:class jsonschema:DataSchema ;
sh:order "2"^^xsd:integer ;
] ;
sh:property [
sh:path td:cancellation ;
sh:class jsonschema:DataSchema ;
sh:order "3"^^xsd:integer ;
] .
:FormShape a sh:NodeShape ;
sh:targetClass lnk:Form ;
sh:closed "false"^^xsd:boolean ;
sh:order "6"^^xsd:integer ;
sh:description
"""
<p>The list of possible operation types of a form is fixed. It only includes the
well-known types necessary to implement the WoT interaction model described in
[[WOT-ARCHITECTURE]]. Future versions of the standard may extend this list but
<span class=\"rfc2119-assertion\" id=\"well-known-operation-types-only\">
operations types SHOULD NOT be arbitrarily set by servients
</span>.
</p>
"""^^rdf:HTML ;
sh:description
"""
<p>Possible values for the <code>contentCoding</code> property can be found e.g. in
the <a href=\"https://www.iana.org/assignments/http-parameters/http-parameters.xhtml#content-coding\">
IANA HTTP content coding registry</a>.
</p>
"""^^rdf:HTML ;
sh:property [
sh:path lnk:hasTarget ;
sh:minCount 1 ;
sh:datatype xsd:anyURI ;
sh:order "1"^^xsd:integer ;
] ;
sh:property [
sh:path lnk:forContentType ;
sh:datatype xsd:string ;
sh:minCount 1 ;
sh:defaultValue "application/json"^^xsd:string ;
sh:order "2"^^xsd:integer ;
] ;
sh:property [
sh:path lnk:forContentCoding ;
sh:datatype xsd:string ;
sh:order "3"^^xsd:integer ;
] ;
sh:property [
sh:path lnk:returns ;
sh:class lnk:ExpectedResponse ;
sh:order "4"^^xsd:integer ;
] ;
sh:property [
sh:path lnk:forOperationType ;
sh:minCount 1 ;
sh:datatype xsd:string ;
sh:in (
"readproperty"
"writeproperty"
"observeproperty"
"unobserveproperty"
"invokeaction"
"subscribeevent"
"unsubscribeevent"
"readallproperties"
"writeallproperties"
"readmultipleproperties"
"writemultipleproperties"
);
sh:order "5"^^xsd:integer ;
] ;
sh:property [
sh:path lnk:forSubProtocol ;
sh:datatype xsd:string ;
sh:in (
"longpoll"
"websub"
"sse"
);
sh:order "6"^^xsd:integer ;
] ;
sh:property [
sh:path td:security ;
# sh:class wotsec:SecurityScheme ;
sh:datatype xsd:string ;
sh:order "7"^^xsd:integer ;
] ;
sh:property [
sh:path wotsec:scopes ;
sh:datatype xsd:string ;
sh:order "8"^^xsd:integer ;
] .
:LinkShape a sh:NodeShape ;
sh:targetClass lnk:Link ;
sh:closed "false"^^xsd:boolean ;
sh:order "7"^^xsd:integer ;
sh:property [
sh:path lnk:hasTarget ;
sh:minCount 1 ;
sh:datatype xsd:anyURI ;
sh:order "1"^^xsd:integer ;
] ;
sh:property [
sh:path lnk:hintsAtMediaType ;
sh:datatype xsd:string ;
sh:order "2"^^xsd:integer ;
] ;
sh:property [
sh:path lnk:hasRelationType ;
sh:datatype xsd:string ;
sh:order "3"^^xsd:integer ;
] ;
sh:property [
sh:path lnk:hasAnchor ;
sh:datatype xsd:anyURI ;
sh:order "4"^^xsd:integer ;
] .
:VersionInfoShape a sh:NodeShape ;
sh:targetClass td:VersionInfo ;
sh:closed "false"^^xsd:boolean ;
sh:order "8"^^xsd:integer ;
sh:property [
sh:path td:instance ;
sh:minCount 1 ;
sh:datatype xsd:string ;
] .
:ExpectedResponseShape a sh:NodeShape ;
sh:targetClass lnk:ExpectedResponse ;
sh:closed "false"^^xsd:boolean ;
sh:order "9"^^xsd:integer ;
sh:property [
sh:path lnk:forContentType ;
sh:datatype xsd:string ;
sh:minCount 1 ;
sh:defaultValue "application/json"^^xsd:string ;
] .
:MultiLanguageShape a sh:NodeShape ;
sh:targetClass td:MultiLanguage ;
sh:closed "false"^^xsd:boolean ;
sh:order "10"^^xsd:integer ;
sh:description
"""
<p>
<span class=\"rfc2119-assertion\" id=\"td-context-ns-multilanguage-content-negotiation\">
Note that in protocols such as HTTP that have an ability to negotiate content based on languages,
those terms (e.g. <code>description</code> and <code>title</code>) intended for carrying texts in a default language SHOULD be used instead of <code>MultiLanguage</code> container
when the texts are served as a result such negotiation.
</span>
</p>
"""^^rdf:HTML ;
sh:property [
] .
:SecuritySchemeShape a sh:NodeShape ;
sh:targetClass wotsec:SecurityScheme ;
sh:closed "false"^^xsd:boolean ;
sh:order "1"^^xsd:integer ;
sh:description
"""
"""^^rdf:HTML ;
sh:property [
sh:path wotsec:scheme ;
sh:minCount 1 ;
sh:datatype xsd:string ;
sh:in (
"nosec"
"basic"
"cert"
"digest"
"bearer"
"pop"
"psk"
"public"
"oauth2"
"apikey"
);
sh:order "1"^^xsd:integer ;
] ;
sh:property [
sh:path td:description ;
sh:datatype xsd:string ;
sh:order "2"^^xsd:integer ;
] ;
sh:property [
sh:path td:descriptions ;
sh:class td:MultiLanguage ;
sh:order "3"^^xsd:integer ;
] ;
sh:property [
sh:path wotsec:proxy ;
sh:datatype xsd:anyURI ;
sh:order "4"^^xsd:integer ;
] .
:NoSecuritySchemeShape a sh:NodeShape ;
sh:targetClass wotsec:NoSecurityScheme ;
sh:order "2"^^xsd:integer .
:BasicSecuritySchemeShape a sh:NodeShape ;
sh:targetClass wotsec:BasicSecurityScheme ;
sh:order "3"^^xsd:integer ;
sh:property [
sh:path wotsec:in ;
sh:datatype xsd:string ;
sh:minCount 1 ;
sh:defaultValue "header"^^xsd:string ;
sh:order "1"^^xsd:integer ;
] ;
sh:property [
sh:path wotsec:name ;
sh:datatype xsd:string ;
sh:order "2"^^xsd:integer ;
] .
:DigestSecuritySchemeShape a sh:NodeShape ;
sh:targetClass wotsec:DigestSecurityScheme ;
sh:order "4"^^xsd:integer ;
sh:property [
sh:path wotsec:qop ;
sh:datatype xsd:string ;
sh:minCount 1 ;
sh:defaultValue "auth"^^xsd:string ;
sh:order "1"^^xsd:integer ;
] ;
sh:property [
sh:path wotsec:in ;
sh:datatype xsd:string ;
sh:minCount 1 ;
sh:defaultValue "header"^^xsd:string ;
sh:order "2"^^xsd:integer ;
] ;
sh:property [
sh:path wotsec:name ;
sh:datatype xsd:string ;
sh:order "3"^^xsd:integer ;
] .
:APIKeySecuritySchemeShape a sh:NodeShape ;
sh:targetClass wotsec:APIKeySecurityScheme ;
sh:order "5"^^xsd:integer ;
sh:property [
sh:path wotsec:in ;
sh:datatype xsd:string ;
sh:minCount 1 ;
sh:defaultValue "query"^^xsd:string ;
sh:order "1"^^xsd:integer ;
] ;
sh:property [
sh:path wotsec:name ;
sh:datatype xsd:string ;
sh:order "2"^^xsd:integer ;
] .
:BearerSecuritySchemeShape a sh:NodeShape ;
sh:targetClass wotsec:BearerSecurityScheme ;
sh:order "6"^^xsd:integer ;
sh:property [
sh:path wotsec:authorization ;
sh:datatype xsd:anyURI ;
sh:order "1"^^xsd:integer ;
] ;
sh:property [
sh:path wotsec:alg ;
sh:datatype xsd:string ;
sh:minCount 1 ;
sh:defaultValue "ES256"^^xsd:string ;
sh:order "2"^^xsd:integer ;
] ;
sh:property [
sh:path wotsec:format ;
sh:datatype xsd:string ;
sh:minCount 1 ;
sh:defaultValue "jwt"^^xsd:string ;
sh:order "3"^^xsd:integer ;
] ;
sh:property [
sh:path wotsec:in ;
sh:datatype xsd:string ;
sh:minCount 1 ;
sh:defaultValue "header"^^xsd:string ;
sh:order "4"^^xsd:integer ;
] ;
sh:property [
sh:path wotsec:name ;
sh:datatype xsd:string ;
sh:order "5"^^xsd:integer ;
] .
:CertSecuritySchemeShape a sh:NodeShape ;
sh:targetClass wotsec:CertSecurityScheme ;
sh:order "7"^^xsd:integer ;
sh:property [
sh:path wotsec:identity ;
sh:datatype xsd:string ;
] .
:PSKSecuritySchemeShape a sh:NodeShape ;
sh:targetClass wotsec:PSKSecurityScheme ;
sh:order "8"^^xsd:integer ;
sh:property [
sh:path wotsec:identity ;
sh:datatype xsd:string ;
] .
:PublicSecuritySchemeShape a sh:NodeShape ;
sh:targetClass wotsec:PublicSecurityScheme ;
sh:order "9"^^xsd:integer ;
sh:property [
sh:path wotsec:identity ;
sh:datatype xsd:string ;
] .
:PoPSecuritySchemeShape a sh:NodeShape ;
sh:targetClass wotsec:PoPSecurityScheme ;
sh:order "10"^^xsd:integer ;
sh:property [
sh:path wotsec:authorization ;
sh:datatype xsd:anyURI ;
sh:order "1"^^xsd:integer ;
] ;
sh:property [
sh:path wotsec:alg ;
sh:datatype xsd:string ;
sh:minCount 1 ;
sh:defaultValue "ES256"^^xsd:string ;
sh:order "2"^^xsd:integer ;
] ;
sh:property [
sh:path wotsec:format ;
sh:datatype xsd:string ;
sh:minCount 1 ;
sh:defaultValue "jwt"^^xsd:string ;
sh:order "3"^^xsd:integer ;
] ;
sh:property [
sh:path wotsec:in ;
sh:datatype xsd:string ;
sh:minCount 1 ;
sh:defaultValue "header"^^xsd:string ;
sh:order "4"^^xsd:integer ;
] ;
sh:property [
sh:path wotsec:name ;
sh:datatype xsd:string ;
sh:order "5"^^xsd:integer ;
] .
:OAuth2SecuritySchemeShape a sh:NodeShape ;
sh:targetClass wotsec:OAuth2SecurityScheme ;
sh:order "11"^^xsd:integer ;
sh:property [
sh:path wotsec:authorization ;
sh:datatype xsd:anyURI ;
sh:order "1"^^xsd:integer ;
] ;
sh:property [
sh:path wotsec:token ;
sh:datatype xsd:anyURI ;
sh:order "2"^^xsd:integer ;
] ;
sh:property [
sh:path wotsec:refresh ;
sh:datatype xsd:anyURI ;
sh:order "3"^^xsd:integer ;
] ;
sh:property [
sh:path wotsec:scopes ;
sh:datatype xsd:string ;
sh:order "4"^^xsd:integer ;
] ;
sh:property [
sh:path wotsec:flow ;
sh:datatype xsd:string ;
sh:minCount 1 ;
sh:defaultValue "implicit"^^xsd:string ;
sh:order "5"^^xsd:integer ;
] .
:DataSchemaShape a sh:NodeShape ;
sh:targetClass jsonschema:DataSchema ;
sh:closed "false"^^xsd:boolean ;
sh:order "1"^^xsd:integer ;
sh:description
"""
"""^^rdf:HTML ;
sh:property [
sh:path td:title ;
sh:datatype xsd:string ;
sh:order "1"^^xsd:integer ;
] ;
sh:property [
sh:path td:titles ;
sh:class td:MultiLanguage ;
sh:order "2"^^xsd:integer ;
] ;
sh:property [
sh:path td:description ;
sh:datatype xsd:string ;
sh:order "3"^^xsd:integer ;
] ;
sh:property [
sh:path td:descriptions ;
sh:class td:MultiLanguage ;
sh:order "4"^^xsd:integer ;
] ;
sh:property [
sh:path jsonschema:type ;
sh:datatype xsd:string ;
sh:in (
"object"
"array"
"string"
"number"
"integer"
"boolean"
"null"
);
sh:order "5"^^xsd:integer ;
] ;
sh:property [
sh:path jsonschema:const ;
sh:order "6"^^xsd:integer ;
] ;
sh:property [
sh:path td:unit ;
sh:class xsd:string;
sh:order "7"^^xsd:integer ;
] ;
sh:property [
sh:path jsonschema:oneOf ;
sh:class jsonschema:DataSchema;
sh:order "8"^^xsd:integer ;
] ;
sh:property [
sh:path jsonschema:enum ;
sh:order "9"^^xsd:integer ;
] ;
sh:property [
sh:path jsonschema:readOnly ;
sh:datatype xsd:boolean ;
sh:defaultValue "false"^^xsd:boolean ;
sh:order "10"^^xsd:integer ;
] ;
sh:property [
sh:path jsonschema:writeOnly ;
sh:datatype xsd:boolean ;
sh:defaultValue "false"^^xsd:boolean ;
sh:order "11"^^xsd:integer ;
] ;
sh:property [
sh:path jsonschema:format ;
sh:datatype xsd:string ;
sh:defaultValue "false"^^xsd:boolean ;
sh:order "12"^^xsd:integer ;
] .
:ArraySchemaShape a sh:NodeShape ;
sh:targetClass jsonschema:ArraySchema ;
sh:closed "false"^^xsd:boolean ;
sh:order "2"^^xsd:integer ;
sh:property [
sh:path jsonschema:items ;
sh:class jsonschema:DataSchema ;
sh:order "1"^^xsd:integer ;
] ;
sh:property [
sh:path jsonschema:minItems ;
sh:datatype xsd:unsignedInt ;
sh:order "2"^^xsd:integer ;
] ;
sh:property [
sh:path jsonschema:maxItems ;
sh:datatype xsd:unsignedInt ;
sh:order "3"^^xsd:integer ;
] .
:BooleanSchemaShape a sh:NodeShape ;
sh:targetClass jsonschema:BooleanSchema ;
sh:closed "false"^^xsd:boolean ;
sh:order "3"^^xsd:integer .
:NumberSchemaShape a sh:NodeShape ;
sh:targetClass jsonschema:NumberSchema ;
sh:closed "false"^^xsd:boolean ;
sh:order "4"^^xsd:integer ;
sh:property [
sh:path jsonschema:minimum ;
sh:datatype xsd:double ;
sh:order "1"^^xsd:integer ;
] ;
sh:property [
sh:path jsonschema:maximum ;
sh:datatype xsd:double ;
sh:order "2"^^xsd:integer ;
] .
:IntegerSchemaShape a sh:NodeShape ;
sh:targetClass jsonschema:IntegerSchema ;
sh:closed "false"^^xsd:boolean ;
sh:order "5"^^xsd:integer ;
sh:property [
sh:path jsonschema:minimum ;
sh:datatype xsd:integer ;
sh:order "1"^^xsd:integer ;
] ;
sh:property [
sh:path jsonschema:maximum ;
sh:datatype xsd:integer ;
sh:order "2"^^xsd:integer ;
] .
:ObjectSchemaShape a sh:NodeShape ;
sh:targetClass jsonschema:ObjectSchema ;
sh:closed "false"^^xsd:boolean ;
sh:order "6"^^xsd:integer ;
sh:property [
sh:path jsonschema:properties ;
sh:class jsonschema:DataSchema ;
sh:order "1"^^xsd:integer ;
] ;
sh:property [
sh:path jsonschema:required ;
sh:datatype xsd:string ;
sh:order "2"^^xsd:integer ;
] .
:StringSchemaShape a sh:NodeShape ;
sh:targetClass jsonschema:StringSchema ;
sh:closed "false"^^xsd:boolean ;
sh:order "7"^^xsd:integer .
:NullSchemaShape a sh:NodeShape ;
sh:targetClass jsonschema:NullSchema ;
sh:closed "false"^^xsd:boolean ;
sh:order "8"^^xsd:integer .