@twin.org/standards-w3c-odrl 0.0.1-next.47 → 0.0.1-next.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +977 -578
- package/dist/esm/index.mjs +977 -578
- package/dist/types/models/odrlContextType.d.ts +1 -1
- package/docs/changelog.md +30 -0
- package/docs/reference/interfaces/IOdrlAction.md +1 -1
- package/docs/reference/interfaces/IOdrlAgreement.md +1 -1
- package/docs/reference/interfaces/IOdrlAsset.md +1 -1
- package/docs/reference/interfaces/IOdrlAssetCollection.md +1 -1
- package/docs/reference/interfaces/IOdrlConstraint.md +2 -2
- package/docs/reference/interfaces/IOdrlDuty.md +1 -1
- package/docs/reference/interfaces/IOdrlLogicalConstraint.md +1 -1
- package/docs/reference/interfaces/IOdrlOffer.md +1 -1
- package/docs/reference/interfaces/IOdrlParty.md +1 -1
- package/docs/reference/interfaces/IOdrlPartyCollection.md +1 -1
- package/docs/reference/interfaces/IOdrlPermission.md +1 -1
- package/docs/reference/interfaces/IOdrlPolicy.md +1 -1
- package/docs/reference/interfaces/IOdrlProhibition.md +1 -1
- package/docs/reference/interfaces/IOdrlRule.md +1 -1
- package/docs/reference/interfaces/IOdrlSet.md +1 -1
- package/docs/reference/type-aliases/OdrlContextType.md +1 -1
- package/package.json +3 -3
package/dist/cjs/index.cjs
CHANGED
|
@@ -97,6 +97,9 @@ const OdrlTypes = {
|
|
|
97
97
|
PolicyMetadata: "PolicyMetadata"
|
|
98
98
|
};
|
|
99
99
|
|
|
100
|
+
var $schema$g = "https://json-schema.org/draft/2020-12/schema";
|
|
101
|
+
var $id$g = "https://schema.twindev.org/odrl/OdrlAction";
|
|
102
|
+
var description$g = "Interface for ODRL Actions.";
|
|
100
103
|
var type$f = "object";
|
|
101
104
|
var properties$f = {
|
|
102
105
|
"@context": {
|
|
@@ -116,9 +119,12 @@ var properties$f = {
|
|
|
116
119
|
},
|
|
117
120
|
{
|
|
118
121
|
type: "array",
|
|
119
|
-
items:
|
|
120
|
-
|
|
121
|
-
|
|
122
|
+
items: false,
|
|
123
|
+
prefixItems: [
|
|
124
|
+
{
|
|
125
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
126
|
+
}
|
|
127
|
+
]
|
|
122
128
|
}
|
|
123
129
|
]
|
|
124
130
|
},
|
|
@@ -129,9 +135,12 @@ var properties$f = {
|
|
|
129
135
|
},
|
|
130
136
|
{
|
|
131
137
|
type: "array",
|
|
132
|
-
items:
|
|
133
|
-
|
|
134
|
-
|
|
138
|
+
items: false,
|
|
139
|
+
prefixItems: [
|
|
140
|
+
{
|
|
141
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
142
|
+
}
|
|
143
|
+
]
|
|
135
144
|
}
|
|
136
145
|
]
|
|
137
146
|
},
|
|
@@ -142,9 +151,12 @@ var properties$f = {
|
|
|
142
151
|
},
|
|
143
152
|
{
|
|
144
153
|
type: "array",
|
|
145
|
-
items:
|
|
146
|
-
|
|
147
|
-
|
|
154
|
+
items: false,
|
|
155
|
+
prefixItems: [
|
|
156
|
+
{
|
|
157
|
+
type: "string"
|
|
158
|
+
}
|
|
159
|
+
]
|
|
148
160
|
}
|
|
149
161
|
]
|
|
150
162
|
},
|
|
@@ -180,16 +192,19 @@ var properties$f = {
|
|
|
180
192
|
},
|
|
181
193
|
{
|
|
182
194
|
type: "array",
|
|
183
|
-
items:
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
195
|
+
items: false,
|
|
196
|
+
prefixItems: [
|
|
197
|
+
{
|
|
198
|
+
anyOf: [
|
|
199
|
+
{
|
|
200
|
+
$ref: "https://schema.twindev.org/odrl/OdrlConstraint"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
$ref: "https://schema.twindev.org/odrl/OdrlLogicalConstraint"
|
|
204
|
+
}
|
|
205
|
+
]
|
|
206
|
+
}
|
|
207
|
+
]
|
|
193
208
|
}
|
|
194
209
|
],
|
|
195
210
|
description: "Refinements applied to the action."
|
|
@@ -200,10 +215,13 @@ var properties$f = {
|
|
|
200
215
|
},
|
|
201
216
|
implies: {
|
|
202
217
|
type: "array",
|
|
203
|
-
items:
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
218
|
+
items: false,
|
|
219
|
+
description: "References to actions this action implies.",
|
|
220
|
+
prefixItems: [
|
|
221
|
+
{
|
|
222
|
+
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
223
|
+
}
|
|
224
|
+
]
|
|
207
225
|
}
|
|
208
226
|
};
|
|
209
227
|
var additionalProperties$f = {
|
|
@@ -231,14 +249,18 @@ var additionalProperties$f = {
|
|
|
231
249
|
}
|
|
232
250
|
]
|
|
233
251
|
};
|
|
234
|
-
var description$g = "Interface for ODRL Actions.";
|
|
235
252
|
var OdrlActionSchema = {
|
|
253
|
+
$schema: $schema$g,
|
|
254
|
+
$id: $id$g,
|
|
255
|
+
description: description$g,
|
|
236
256
|
type: type$f,
|
|
237
257
|
properties: properties$f,
|
|
238
|
-
additionalProperties: additionalProperties$f
|
|
239
|
-
description: description$g
|
|
258
|
+
additionalProperties: additionalProperties$f
|
|
240
259
|
};
|
|
241
260
|
|
|
261
|
+
var $schema$f = "https://json-schema.org/draft/2020-12/schema";
|
|
262
|
+
var $id$f = "https://schema.twindev.org/odrl/OdrlAgreement";
|
|
263
|
+
var description$f = "Interface representing an ODRL Agreement. An Agreement requires both an assigner and assignee (both agreeing parties).";
|
|
242
264
|
var type$e = "object";
|
|
243
265
|
var properties$e = {
|
|
244
266
|
"@context": {
|
|
@@ -252,9 +274,12 @@ var properties$e = {
|
|
|
252
274
|
},
|
|
253
275
|
{
|
|
254
276
|
type: "array",
|
|
255
|
-
items:
|
|
256
|
-
|
|
257
|
-
|
|
277
|
+
items: false,
|
|
278
|
+
prefixItems: [
|
|
279
|
+
{
|
|
280
|
+
type: "string"
|
|
281
|
+
}
|
|
282
|
+
]
|
|
258
283
|
}
|
|
259
284
|
]
|
|
260
285
|
},
|
|
@@ -268,9 +293,12 @@ var properties$e = {
|
|
|
268
293
|
},
|
|
269
294
|
{
|
|
270
295
|
type: "array",
|
|
271
|
-
items:
|
|
272
|
-
|
|
273
|
-
|
|
296
|
+
items: false,
|
|
297
|
+
prefixItems: [
|
|
298
|
+
{
|
|
299
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
300
|
+
}
|
|
301
|
+
]
|
|
274
302
|
}
|
|
275
303
|
]
|
|
276
304
|
},
|
|
@@ -281,9 +309,12 @@ var properties$e = {
|
|
|
281
309
|
},
|
|
282
310
|
{
|
|
283
311
|
type: "array",
|
|
284
|
-
items:
|
|
285
|
-
|
|
286
|
-
|
|
312
|
+
items: false,
|
|
313
|
+
prefixItems: [
|
|
314
|
+
{
|
|
315
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
316
|
+
}
|
|
317
|
+
]
|
|
287
318
|
}
|
|
288
319
|
]
|
|
289
320
|
},
|
|
@@ -312,9 +343,12 @@ var properties$e = {
|
|
|
312
343
|
},
|
|
313
344
|
{
|
|
314
345
|
type: "array",
|
|
315
|
-
items:
|
|
316
|
-
|
|
317
|
-
|
|
346
|
+
items: false,
|
|
347
|
+
prefixItems: [
|
|
348
|
+
{
|
|
349
|
+
type: "string"
|
|
350
|
+
}
|
|
351
|
+
]
|
|
318
352
|
}
|
|
319
353
|
],
|
|
320
354
|
description: "The profile(s) this policy conforms to. IRIs identifying the ODRL Profile(s)."
|
|
@@ -351,16 +385,19 @@ var properties$e = {
|
|
|
351
385
|
},
|
|
352
386
|
{
|
|
353
387
|
type: "array",
|
|
354
|
-
items:
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
388
|
+
items: false,
|
|
389
|
+
prefixItems: [
|
|
390
|
+
{
|
|
391
|
+
anyOf: [
|
|
392
|
+
{
|
|
393
|
+
type: "string"
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAsset"
|
|
397
|
+
}
|
|
398
|
+
]
|
|
399
|
+
}
|
|
400
|
+
]
|
|
364
401
|
}
|
|
365
402
|
],
|
|
366
403
|
description: "The target asset for the rule."
|
|
@@ -375,16 +412,19 @@ var properties$e = {
|
|
|
375
412
|
},
|
|
376
413
|
{
|
|
377
414
|
type: "array",
|
|
378
|
-
items:
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
415
|
+
items: false,
|
|
416
|
+
prefixItems: [
|
|
417
|
+
{
|
|
418
|
+
anyOf: [
|
|
419
|
+
{
|
|
420
|
+
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAction"
|
|
424
|
+
}
|
|
425
|
+
]
|
|
426
|
+
}
|
|
427
|
+
]
|
|
388
428
|
}
|
|
389
429
|
],
|
|
390
430
|
description: "The action associated with the rule."
|
|
@@ -396,9 +436,12 @@ var properties$e = {
|
|
|
396
436
|
},
|
|
397
437
|
{
|
|
398
438
|
type: "array",
|
|
399
|
-
items:
|
|
400
|
-
|
|
401
|
-
|
|
439
|
+
items: false,
|
|
440
|
+
prefixItems: [
|
|
441
|
+
{
|
|
442
|
+
type: "string"
|
|
443
|
+
}
|
|
444
|
+
]
|
|
402
445
|
}
|
|
403
446
|
],
|
|
404
447
|
description: "The parent policy(ies) this policy inherits from. IRIs identifying the parent Policy(ies)."
|
|
@@ -409,24 +452,33 @@ var properties$e = {
|
|
|
409
452
|
},
|
|
410
453
|
permission: {
|
|
411
454
|
type: "array",
|
|
412
|
-
items:
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
455
|
+
items: false,
|
|
456
|
+
description: "The permissions in the policy. At least one of permission, prohibition, or obligation must be present.",
|
|
457
|
+
prefixItems: [
|
|
458
|
+
{
|
|
459
|
+
$ref: "https://schema.twindev.org/odrl/OdrlPermission"
|
|
460
|
+
}
|
|
461
|
+
]
|
|
416
462
|
},
|
|
417
463
|
prohibition: {
|
|
418
464
|
type: "array",
|
|
419
|
-
items:
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
465
|
+
items: false,
|
|
466
|
+
description: "The prohibitions in the policy. At least one of permission, prohibition, or obligation must be present.",
|
|
467
|
+
prefixItems: [
|
|
468
|
+
{
|
|
469
|
+
$ref: "https://schema.twindev.org/odrl/OdrlProhibition"
|
|
470
|
+
}
|
|
471
|
+
]
|
|
423
472
|
},
|
|
424
473
|
obligation: {
|
|
425
474
|
type: "array",
|
|
426
|
-
items:
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
475
|
+
items: false,
|
|
476
|
+
description: "The obligations in the policy. At least one of permission, prohibition, or obligation must be present.",
|
|
477
|
+
prefixItems: [
|
|
478
|
+
{
|
|
479
|
+
$ref: "https://schema.twindev.org/odrl/OdrlDuty"
|
|
480
|
+
}
|
|
481
|
+
]
|
|
430
482
|
}
|
|
431
483
|
};
|
|
432
484
|
var required$6 = [
|
|
@@ -461,15 +513,19 @@ var additionalProperties$e = {
|
|
|
461
513
|
}
|
|
462
514
|
]
|
|
463
515
|
};
|
|
464
|
-
var description$f = "Interface representing an ODRL Agreement. An Agreement requires both an assigner and assignee (both agreeing parties).";
|
|
465
516
|
var OdrlAgreementSchema = {
|
|
517
|
+
$schema: $schema$f,
|
|
518
|
+
$id: $id$f,
|
|
519
|
+
description: description$f,
|
|
466
520
|
type: type$e,
|
|
467
521
|
properties: properties$e,
|
|
468
522
|
required: required$6,
|
|
469
|
-
additionalProperties: additionalProperties$e
|
|
470
|
-
description: description$f
|
|
523
|
+
additionalProperties: additionalProperties$e
|
|
471
524
|
};
|
|
472
525
|
|
|
526
|
+
var $schema$e = "https://json-schema.org/draft/2020-12/schema";
|
|
527
|
+
var $id$e = "https://schema.twindev.org/odrl/OdrlAsset";
|
|
528
|
+
var description$e = "Interface for ODRL Assets.";
|
|
473
529
|
var type$d = "object";
|
|
474
530
|
var properties$d = {
|
|
475
531
|
"@context": {
|
|
@@ -482,9 +538,12 @@ var properties$d = {
|
|
|
482
538
|
},
|
|
483
539
|
{
|
|
484
540
|
type: "array",
|
|
485
|
-
items:
|
|
486
|
-
|
|
487
|
-
|
|
541
|
+
items: false,
|
|
542
|
+
prefixItems: [
|
|
543
|
+
{
|
|
544
|
+
type: "string"
|
|
545
|
+
}
|
|
546
|
+
]
|
|
488
547
|
}
|
|
489
548
|
]
|
|
490
549
|
},
|
|
@@ -498,9 +557,12 @@ var properties$d = {
|
|
|
498
557
|
},
|
|
499
558
|
{
|
|
500
559
|
type: "array",
|
|
501
|
-
items:
|
|
502
|
-
|
|
503
|
-
|
|
560
|
+
items: false,
|
|
561
|
+
prefixItems: [
|
|
562
|
+
{
|
|
563
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
564
|
+
}
|
|
565
|
+
]
|
|
504
566
|
}
|
|
505
567
|
]
|
|
506
568
|
},
|
|
@@ -511,9 +573,12 @@ var properties$d = {
|
|
|
511
573
|
},
|
|
512
574
|
{
|
|
513
575
|
type: "array",
|
|
514
|
-
items:
|
|
515
|
-
|
|
516
|
-
|
|
576
|
+
items: false,
|
|
577
|
+
prefixItems: [
|
|
578
|
+
{
|
|
579
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
580
|
+
}
|
|
581
|
+
]
|
|
517
582
|
}
|
|
518
583
|
]
|
|
519
584
|
},
|
|
@@ -575,14 +640,18 @@ var additionalProperties$d = {
|
|
|
575
640
|
}
|
|
576
641
|
]
|
|
577
642
|
};
|
|
578
|
-
var description$e = "Interface for ODRL Assets.";
|
|
579
643
|
var OdrlAssetSchema = {
|
|
644
|
+
$schema: $schema$e,
|
|
645
|
+
$id: $id$e,
|
|
646
|
+
description: description$e,
|
|
580
647
|
type: type$d,
|
|
581
648
|
properties: properties$d,
|
|
582
|
-
additionalProperties: additionalProperties$d
|
|
583
|
-
description: description$e
|
|
649
|
+
additionalProperties: additionalProperties$d
|
|
584
650
|
};
|
|
585
651
|
|
|
652
|
+
var $schema$d = "https://json-schema.org/draft/2020-12/schema";
|
|
653
|
+
var $id$d = "https://schema.twindev.org/odrl/OdrlAssetCollection";
|
|
654
|
+
var description$d = "Interface for ODRL Asset Collections. An AssetCollection is a single resource representing a set of member resources, where all members of the set will be the subject of the Rule.";
|
|
586
655
|
var type$c = "object";
|
|
587
656
|
var properties$c = {
|
|
588
657
|
"@context": {
|
|
@@ -595,9 +664,12 @@ var properties$c = {
|
|
|
595
664
|
},
|
|
596
665
|
{
|
|
597
666
|
type: "array",
|
|
598
|
-
items:
|
|
599
|
-
|
|
600
|
-
|
|
667
|
+
items: false,
|
|
668
|
+
prefixItems: [
|
|
669
|
+
{
|
|
670
|
+
type: "string"
|
|
671
|
+
}
|
|
672
|
+
]
|
|
601
673
|
}
|
|
602
674
|
]
|
|
603
675
|
},
|
|
@@ -611,9 +683,12 @@ var properties$c = {
|
|
|
611
683
|
},
|
|
612
684
|
{
|
|
613
685
|
type: "array",
|
|
614
|
-
items:
|
|
615
|
-
|
|
616
|
-
|
|
686
|
+
items: false,
|
|
687
|
+
prefixItems: [
|
|
688
|
+
{
|
|
689
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
690
|
+
}
|
|
691
|
+
]
|
|
617
692
|
}
|
|
618
693
|
]
|
|
619
694
|
},
|
|
@@ -624,9 +699,12 @@ var properties$c = {
|
|
|
624
699
|
},
|
|
625
700
|
{
|
|
626
701
|
type: "array",
|
|
627
|
-
items:
|
|
628
|
-
|
|
629
|
-
|
|
702
|
+
items: false,
|
|
703
|
+
prefixItems: [
|
|
704
|
+
{
|
|
705
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
706
|
+
}
|
|
707
|
+
]
|
|
630
708
|
}
|
|
631
709
|
]
|
|
632
710
|
},
|
|
@@ -668,10 +746,13 @@ var properties$c = {
|
|
|
668
746
|
},
|
|
669
747
|
refinement: {
|
|
670
748
|
type: "array",
|
|
671
|
-
items:
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
749
|
+
items: false,
|
|
750
|
+
description: "Refinements applied to the asset collection. Used to specify the refinement context under which to identify individual Asset(s) of the complete collection. The refinement applies to the characteristics of each member of the collection (not the resource as a whole).",
|
|
751
|
+
prefixItems: [
|
|
752
|
+
{
|
|
753
|
+
$ref: "https://schema.twindev.org/odrl/OdrlConstraint"
|
|
754
|
+
}
|
|
755
|
+
]
|
|
675
756
|
}
|
|
676
757
|
};
|
|
677
758
|
var required$5 = [
|
|
@@ -702,15 +783,19 @@ var additionalProperties$c = {
|
|
|
702
783
|
}
|
|
703
784
|
]
|
|
704
785
|
};
|
|
705
|
-
var description$d = "Interface for ODRL Asset Collections. An AssetCollection is a single resource representing a set of member resources, where all members of the set will be the subject of the Rule.";
|
|
706
786
|
var OdrlAssetCollectionSchema = {
|
|
787
|
+
$schema: $schema$d,
|
|
788
|
+
$id: $id$d,
|
|
789
|
+
description: description$d,
|
|
707
790
|
type: type$c,
|
|
708
791
|
properties: properties$c,
|
|
709
792
|
required: required$5,
|
|
710
|
-
additionalProperties: additionalProperties$c
|
|
711
|
-
description: description$d
|
|
793
|
+
additionalProperties: additionalProperties$c
|
|
712
794
|
};
|
|
713
795
|
|
|
796
|
+
var $schema$c = "https://json-schema.org/draft/2020-12/schema";
|
|
797
|
+
var $id$c = "https://schema.twindev.org/odrl/OdrlConstraint";
|
|
798
|
+
var description$c = "Interface for ODRL Constraints.";
|
|
714
799
|
var type$b = "object";
|
|
715
800
|
var properties$b = {
|
|
716
801
|
"@context": {
|
|
@@ -723,9 +808,12 @@ var properties$b = {
|
|
|
723
808
|
},
|
|
724
809
|
{
|
|
725
810
|
type: "array",
|
|
726
|
-
items:
|
|
727
|
-
|
|
728
|
-
|
|
811
|
+
items: false,
|
|
812
|
+
prefixItems: [
|
|
813
|
+
{
|
|
814
|
+
type: "string"
|
|
815
|
+
}
|
|
816
|
+
]
|
|
729
817
|
}
|
|
730
818
|
]
|
|
731
819
|
},
|
|
@@ -739,9 +827,12 @@ var properties$b = {
|
|
|
739
827
|
},
|
|
740
828
|
{
|
|
741
829
|
type: "array",
|
|
742
|
-
items:
|
|
743
|
-
|
|
744
|
-
|
|
830
|
+
items: false,
|
|
831
|
+
prefixItems: [
|
|
832
|
+
{
|
|
833
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
834
|
+
}
|
|
835
|
+
]
|
|
745
836
|
}
|
|
746
837
|
]
|
|
747
838
|
},
|
|
@@ -752,9 +843,12 @@ var properties$b = {
|
|
|
752
843
|
},
|
|
753
844
|
{
|
|
754
845
|
type: "array",
|
|
755
|
-
items:
|
|
756
|
-
|
|
757
|
-
|
|
846
|
+
items: false,
|
|
847
|
+
prefixItems: [
|
|
848
|
+
{
|
|
849
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
850
|
+
}
|
|
851
|
+
]
|
|
758
852
|
}
|
|
759
853
|
]
|
|
760
854
|
},
|
|
@@ -765,9 +859,12 @@ var properties$b = {
|
|
|
765
859
|
},
|
|
766
860
|
{
|
|
767
861
|
type: "array",
|
|
768
|
-
items:
|
|
769
|
-
|
|
770
|
-
|
|
862
|
+
items: false,
|
|
863
|
+
prefixItems: [
|
|
864
|
+
{
|
|
865
|
+
type: "string"
|
|
866
|
+
}
|
|
867
|
+
]
|
|
771
868
|
}
|
|
772
869
|
]
|
|
773
870
|
},
|
|
@@ -880,37 +977,31 @@ var additionalProperties$b = {
|
|
|
880
977
|
}
|
|
881
978
|
]
|
|
882
979
|
};
|
|
883
|
-
var description$c = "Interface for ODRL Constraints.";
|
|
884
980
|
var OdrlConstraintSchema = {
|
|
981
|
+
$schema: $schema$c,
|
|
982
|
+
$id: $id$c,
|
|
983
|
+
description: description$c,
|
|
885
984
|
type: type$b,
|
|
886
985
|
properties: properties$b,
|
|
887
986
|
required: required$4,
|
|
888
|
-
additionalProperties: additionalProperties$b
|
|
889
|
-
description: description$c
|
|
987
|
+
additionalProperties: additionalProperties$b
|
|
890
988
|
};
|
|
891
989
|
|
|
990
|
+
var $schema$b = "https://json-schema.org/draft/2020-12/schema";
|
|
991
|
+
var $id$b = "https://schema.twindev.org/odrl/OdrlContextType";
|
|
992
|
+
var description$b = "The ODRL JSON-LD context type.";
|
|
892
993
|
var anyOf = [
|
|
893
994
|
{
|
|
894
995
|
type: "string",
|
|
895
996
|
"const": "https://www.w3.org/ns/odrl/2/"
|
|
896
997
|
},
|
|
897
|
-
{
|
|
898
|
-
type: "array",
|
|
899
|
-
minItems: 1,
|
|
900
|
-
items: [
|
|
901
|
-
{
|
|
902
|
-
type: "string",
|
|
903
|
-
"const": "https://www.w3.org/ns/odrl/2/"
|
|
904
|
-
}
|
|
905
|
-
],
|
|
906
|
-
additionalItems: {
|
|
907
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
908
|
-
}
|
|
909
|
-
},
|
|
910
998
|
{
|
|
911
999
|
type: "array",
|
|
912
1000
|
minItems: 2,
|
|
913
|
-
items:
|
|
1001
|
+
items: {
|
|
1002
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
1003
|
+
},
|
|
1004
|
+
prefixItems: [
|
|
914
1005
|
{
|
|
915
1006
|
type: "string",
|
|
916
1007
|
"const": "https://www.w3.org/ns/odrl/2/"
|
|
@@ -918,15 +1009,15 @@ var anyOf = [
|
|
|
918
1009
|
{
|
|
919
1010
|
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
920
1011
|
}
|
|
921
|
-
]
|
|
922
|
-
additionalItems: {
|
|
923
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
924
|
-
}
|
|
1012
|
+
]
|
|
925
1013
|
},
|
|
926
1014
|
{
|
|
927
1015
|
type: "array",
|
|
928
1016
|
minItems: 2,
|
|
929
|
-
items:
|
|
1017
|
+
items: {
|
|
1018
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
1019
|
+
},
|
|
1020
|
+
prefixItems: [
|
|
930
1021
|
{
|
|
931
1022
|
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
932
1023
|
},
|
|
@@ -934,18 +1025,19 @@ var anyOf = [
|
|
|
934
1025
|
type: "string",
|
|
935
1026
|
"const": "https://www.w3.org/ns/odrl/2/"
|
|
936
1027
|
}
|
|
937
|
-
]
|
|
938
|
-
additionalItems: {
|
|
939
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
940
|
-
}
|
|
1028
|
+
]
|
|
941
1029
|
}
|
|
942
1030
|
];
|
|
943
|
-
var description$b = "The ODRL JSON-LD context type.";
|
|
944
1031
|
var OdrlContextTypeSchema = {
|
|
945
|
-
|
|
946
|
-
|
|
1032
|
+
$schema: $schema$b,
|
|
1033
|
+
$id: $id$b,
|
|
1034
|
+
description: description$b,
|
|
1035
|
+
anyOf: anyOf
|
|
947
1036
|
};
|
|
948
1037
|
|
|
1038
|
+
var $schema$a = "https://json-schema.org/draft/2020-12/schema";
|
|
1039
|
+
var $id$a = "https://schema.twindev.org/odrl/OdrlDuty";
|
|
1040
|
+
var description$a = "Interface for Duty Rules. A Duty is the obligation to exercise an action, with all refinements satisfied. A Duty is fulfilled if all constraints are satisfied and if its action has been exercised.";
|
|
949
1041
|
var type$a = "object";
|
|
950
1042
|
var properties$a = {
|
|
951
1043
|
"@context": {
|
|
@@ -958,9 +1050,12 @@ var properties$a = {
|
|
|
958
1050
|
},
|
|
959
1051
|
{
|
|
960
1052
|
type: "array",
|
|
961
|
-
items:
|
|
962
|
-
|
|
963
|
-
|
|
1053
|
+
items: false,
|
|
1054
|
+
prefixItems: [
|
|
1055
|
+
{
|
|
1056
|
+
type: "string"
|
|
1057
|
+
}
|
|
1058
|
+
]
|
|
964
1059
|
}
|
|
965
1060
|
]
|
|
966
1061
|
},
|
|
@@ -974,9 +1069,12 @@ var properties$a = {
|
|
|
974
1069
|
},
|
|
975
1070
|
{
|
|
976
1071
|
type: "array",
|
|
977
|
-
items:
|
|
978
|
-
|
|
979
|
-
|
|
1072
|
+
items: false,
|
|
1073
|
+
prefixItems: [
|
|
1074
|
+
{
|
|
1075
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
1076
|
+
}
|
|
1077
|
+
]
|
|
980
1078
|
}
|
|
981
1079
|
]
|
|
982
1080
|
},
|
|
@@ -987,9 +1085,12 @@ var properties$a = {
|
|
|
987
1085
|
},
|
|
988
1086
|
{
|
|
989
1087
|
type: "array",
|
|
990
|
-
items:
|
|
991
|
-
|
|
992
|
-
|
|
1088
|
+
items: false,
|
|
1089
|
+
prefixItems: [
|
|
1090
|
+
{
|
|
1091
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
1092
|
+
}
|
|
1093
|
+
]
|
|
993
1094
|
}
|
|
994
1095
|
]
|
|
995
1096
|
},
|
|
@@ -1000,9 +1101,12 @@ var properties$a = {
|
|
|
1000
1101
|
},
|
|
1001
1102
|
{
|
|
1002
1103
|
type: "array",
|
|
1003
|
-
items:
|
|
1004
|
-
|
|
1005
|
-
|
|
1104
|
+
items: false,
|
|
1105
|
+
prefixItems: [
|
|
1106
|
+
{
|
|
1107
|
+
type: "string"
|
|
1108
|
+
}
|
|
1109
|
+
]
|
|
1006
1110
|
}
|
|
1007
1111
|
]
|
|
1008
1112
|
},
|
|
@@ -1029,16 +1133,19 @@ var properties$a = {
|
|
|
1029
1133
|
},
|
|
1030
1134
|
{
|
|
1031
1135
|
type: "array",
|
|
1032
|
-
items:
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1136
|
+
items: false,
|
|
1137
|
+
prefixItems: [
|
|
1138
|
+
{
|
|
1139
|
+
anyOf: [
|
|
1140
|
+
{
|
|
1141
|
+
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
1142
|
+
},
|
|
1143
|
+
{
|
|
1144
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAction"
|
|
1145
|
+
}
|
|
1146
|
+
]
|
|
1147
|
+
}
|
|
1148
|
+
]
|
|
1042
1149
|
}
|
|
1043
1150
|
],
|
|
1044
1151
|
description: "The action associated with the rule."
|
|
@@ -1053,16 +1160,19 @@ var properties$a = {
|
|
|
1053
1160
|
},
|
|
1054
1161
|
{
|
|
1055
1162
|
type: "array",
|
|
1056
|
-
items:
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1163
|
+
items: false,
|
|
1164
|
+
prefixItems: [
|
|
1165
|
+
{
|
|
1166
|
+
anyOf: [
|
|
1167
|
+
{
|
|
1168
|
+
type: "string"
|
|
1169
|
+
},
|
|
1170
|
+
{
|
|
1171
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAsset"
|
|
1172
|
+
}
|
|
1173
|
+
]
|
|
1174
|
+
}
|
|
1175
|
+
]
|
|
1066
1176
|
}
|
|
1067
1177
|
],
|
|
1068
1178
|
description: "The target asset for the rule."
|
|
@@ -1091,10 +1201,13 @@ var properties$a = {
|
|
|
1091
1201
|
},
|
|
1092
1202
|
constraint: {
|
|
1093
1203
|
type: "array",
|
|
1094
|
-
items:
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1204
|
+
items: false,
|
|
1205
|
+
description: "Constraints applied to the rule.",
|
|
1206
|
+
prefixItems: [
|
|
1207
|
+
{
|
|
1208
|
+
$ref: "https://schema.twindev.org/odrl/OdrlConstraint"
|
|
1209
|
+
}
|
|
1210
|
+
]
|
|
1098
1211
|
},
|
|
1099
1212
|
summary: {
|
|
1100
1213
|
type: "string",
|
|
@@ -1110,17 +1223,23 @@ var properties$a = {
|
|
|
1110
1223
|
},
|
|
1111
1224
|
consequence: {
|
|
1112
1225
|
type: "array",
|
|
1113
|
-
items:
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1226
|
+
items: false,
|
|
1227
|
+
description: "The consequences if the duty is not fulfilled. Only applicable when the Duty is referenced by a Rule with duty or obligation properties.",
|
|
1228
|
+
prefixItems: [
|
|
1229
|
+
{
|
|
1230
|
+
$ref: "https://schema.twindev.org/odrl/OdrlDuty"
|
|
1231
|
+
}
|
|
1232
|
+
]
|
|
1117
1233
|
},
|
|
1118
1234
|
remedy: {
|
|
1119
1235
|
type: "array",
|
|
1120
|
-
items:
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1236
|
+
items: false,
|
|
1237
|
+
description: "The remedies that may be fulfilled to cure the violation.",
|
|
1238
|
+
prefixItems: [
|
|
1239
|
+
{
|
|
1240
|
+
$ref: "https://schema.twindev.org/odrl/OdrlDuty"
|
|
1241
|
+
}
|
|
1242
|
+
]
|
|
1124
1243
|
},
|
|
1125
1244
|
compensatedParty: {
|
|
1126
1245
|
type: "string",
|
|
@@ -1152,14 +1271,18 @@ var additionalProperties$a = {
|
|
|
1152
1271
|
}
|
|
1153
1272
|
]
|
|
1154
1273
|
};
|
|
1155
|
-
var description$a = "Interface for Duty Rules. A Duty is the obligation to exercise an action, with all refinements satisfied. A Duty is fulfilled if all constraints are satisfied and if its action has been exercised.";
|
|
1156
1274
|
var OdrlDutySchema = {
|
|
1275
|
+
$schema: $schema$a,
|
|
1276
|
+
$id: $id$a,
|
|
1277
|
+
description: description$a,
|
|
1157
1278
|
type: type$a,
|
|
1158
1279
|
properties: properties$a,
|
|
1159
|
-
additionalProperties: additionalProperties$a
|
|
1160
|
-
description: description$a
|
|
1280
|
+
additionalProperties: additionalProperties$a
|
|
1161
1281
|
};
|
|
1162
1282
|
|
|
1283
|
+
var $schema$9 = "https://json-schema.org/draft/2020-12/schema";
|
|
1284
|
+
var $id$9 = "https://schema.twindev.org/odrl/OdrlLogicalConstraint";
|
|
1285
|
+
var description$9 = "Interface for ODRL Logical Constraints. A Logical Constraint compares two or more existing Constraints by one logical operator. If the comparison returns a logical match, then the Logical Constraint is satisfied.";
|
|
1163
1286
|
var type$9 = "object";
|
|
1164
1287
|
var properties$9 = {
|
|
1165
1288
|
"@context": {
|
|
@@ -1172,9 +1295,12 @@ var properties$9 = {
|
|
|
1172
1295
|
},
|
|
1173
1296
|
{
|
|
1174
1297
|
type: "array",
|
|
1175
|
-
items:
|
|
1176
|
-
|
|
1177
|
-
|
|
1298
|
+
items: false,
|
|
1299
|
+
prefixItems: [
|
|
1300
|
+
{
|
|
1301
|
+
type: "string"
|
|
1302
|
+
}
|
|
1303
|
+
]
|
|
1178
1304
|
}
|
|
1179
1305
|
]
|
|
1180
1306
|
},
|
|
@@ -1188,9 +1314,12 @@ var properties$9 = {
|
|
|
1188
1314
|
},
|
|
1189
1315
|
{
|
|
1190
1316
|
type: "array",
|
|
1191
|
-
items:
|
|
1192
|
-
|
|
1193
|
-
|
|
1317
|
+
items: false,
|
|
1318
|
+
prefixItems: [
|
|
1319
|
+
{
|
|
1320
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
1321
|
+
}
|
|
1322
|
+
]
|
|
1194
1323
|
}
|
|
1195
1324
|
]
|
|
1196
1325
|
},
|
|
@@ -1201,9 +1330,12 @@ var properties$9 = {
|
|
|
1201
1330
|
},
|
|
1202
1331
|
{
|
|
1203
1332
|
type: "array",
|
|
1204
|
-
items:
|
|
1205
|
-
|
|
1206
|
-
|
|
1333
|
+
items: false,
|
|
1334
|
+
prefixItems: [
|
|
1335
|
+
{
|
|
1336
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
1337
|
+
}
|
|
1338
|
+
]
|
|
1207
1339
|
}
|
|
1208
1340
|
]
|
|
1209
1341
|
},
|
|
@@ -1214,9 +1346,12 @@ var properties$9 = {
|
|
|
1214
1346
|
},
|
|
1215
1347
|
{
|
|
1216
1348
|
type: "array",
|
|
1217
|
-
items:
|
|
1218
|
-
|
|
1219
|
-
|
|
1349
|
+
items: false,
|
|
1350
|
+
prefixItems: [
|
|
1351
|
+
{
|
|
1352
|
+
type: "string"
|
|
1353
|
+
}
|
|
1354
|
+
]
|
|
1220
1355
|
}
|
|
1221
1356
|
]
|
|
1222
1357
|
},
|
|
@@ -1238,18 +1373,21 @@ var properties$9 = {
|
|
|
1238
1373
|
properties: {
|
|
1239
1374
|
"@list": {
|
|
1240
1375
|
type: "array",
|
|
1241
|
-
items:
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
"
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1376
|
+
items: false,
|
|
1377
|
+
prefixItems: [
|
|
1378
|
+
{
|
|
1379
|
+
type: "object",
|
|
1380
|
+
properties: {
|
|
1381
|
+
"@id": {
|
|
1382
|
+
type: "string"
|
|
1383
|
+
}
|
|
1384
|
+
},
|
|
1385
|
+
required: [
|
|
1386
|
+
"@id"
|
|
1387
|
+
],
|
|
1388
|
+
additionalProperties: false
|
|
1389
|
+
}
|
|
1390
|
+
]
|
|
1253
1391
|
}
|
|
1254
1392
|
},
|
|
1255
1393
|
required: [
|
|
@@ -1263,18 +1401,21 @@ var properties$9 = {
|
|
|
1263
1401
|
properties: {
|
|
1264
1402
|
"@list": {
|
|
1265
1403
|
type: "array",
|
|
1266
|
-
items:
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
"
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1404
|
+
items: false,
|
|
1405
|
+
prefixItems: [
|
|
1406
|
+
{
|
|
1407
|
+
type: "object",
|
|
1408
|
+
properties: {
|
|
1409
|
+
"@id": {
|
|
1410
|
+
type: "string"
|
|
1411
|
+
}
|
|
1412
|
+
},
|
|
1413
|
+
required: [
|
|
1414
|
+
"@id"
|
|
1415
|
+
],
|
|
1416
|
+
additionalProperties: false
|
|
1417
|
+
}
|
|
1418
|
+
]
|
|
1278
1419
|
}
|
|
1279
1420
|
},
|
|
1280
1421
|
required: [
|
|
@@ -1288,18 +1429,21 @@ var properties$9 = {
|
|
|
1288
1429
|
properties: {
|
|
1289
1430
|
"@list": {
|
|
1290
1431
|
type: "array",
|
|
1291
|
-
items:
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
"
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1432
|
+
items: false,
|
|
1433
|
+
prefixItems: [
|
|
1434
|
+
{
|
|
1435
|
+
type: "object",
|
|
1436
|
+
properties: {
|
|
1437
|
+
"@id": {
|
|
1438
|
+
type: "string"
|
|
1439
|
+
}
|
|
1440
|
+
},
|
|
1441
|
+
required: [
|
|
1442
|
+
"@id"
|
|
1443
|
+
],
|
|
1444
|
+
additionalProperties: false
|
|
1445
|
+
}
|
|
1446
|
+
]
|
|
1303
1447
|
}
|
|
1304
1448
|
},
|
|
1305
1449
|
required: [
|
|
@@ -1313,18 +1457,21 @@ var properties$9 = {
|
|
|
1313
1457
|
properties: {
|
|
1314
1458
|
"@list": {
|
|
1315
1459
|
type: "array",
|
|
1316
|
-
items:
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
"
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1460
|
+
items: false,
|
|
1461
|
+
prefixItems: [
|
|
1462
|
+
{
|
|
1463
|
+
type: "object",
|
|
1464
|
+
properties: {
|
|
1465
|
+
"@id": {
|
|
1466
|
+
type: "string"
|
|
1467
|
+
}
|
|
1468
|
+
},
|
|
1469
|
+
required: [
|
|
1470
|
+
"@id"
|
|
1471
|
+
],
|
|
1472
|
+
additionalProperties: false
|
|
1473
|
+
}
|
|
1474
|
+
]
|
|
1328
1475
|
}
|
|
1329
1476
|
},
|
|
1330
1477
|
required: [
|
|
@@ -1359,14 +1506,18 @@ var additionalProperties$9 = {
|
|
|
1359
1506
|
}
|
|
1360
1507
|
]
|
|
1361
1508
|
};
|
|
1362
|
-
var description$9 = "Interface for ODRL Logical Constraints. A Logical Constraint compares two or more existing Constraints by one logical operator. If the comparison returns a logical match, then the Logical Constraint is satisfied.";
|
|
1363
1509
|
var OdrlLogicalConstraintSchema = {
|
|
1510
|
+
$schema: $schema$9,
|
|
1511
|
+
$id: $id$9,
|
|
1512
|
+
description: description$9,
|
|
1364
1513
|
type: type$9,
|
|
1365
1514
|
properties: properties$9,
|
|
1366
|
-
additionalProperties: additionalProperties$9
|
|
1367
|
-
description: description$9
|
|
1515
|
+
additionalProperties: additionalProperties$9
|
|
1368
1516
|
};
|
|
1369
1517
|
|
|
1518
|
+
var $schema$8 = "https://json-schema.org/draft/2020-12/schema";
|
|
1519
|
+
var $id$8 = "https://schema.twindev.org/odrl/OdrlOffer";
|
|
1520
|
+
var description$8 = "Interface representing an ODRL Offer. An Offer requires an assigner (the party making the offer).";
|
|
1370
1521
|
var type$8 = "object";
|
|
1371
1522
|
var properties$8 = {
|
|
1372
1523
|
"@context": {
|
|
@@ -1380,9 +1531,12 @@ var properties$8 = {
|
|
|
1380
1531
|
},
|
|
1381
1532
|
{
|
|
1382
1533
|
type: "array",
|
|
1383
|
-
items:
|
|
1384
|
-
|
|
1385
|
-
|
|
1534
|
+
items: false,
|
|
1535
|
+
prefixItems: [
|
|
1536
|
+
{
|
|
1537
|
+
type: "string"
|
|
1538
|
+
}
|
|
1539
|
+
]
|
|
1386
1540
|
}
|
|
1387
1541
|
]
|
|
1388
1542
|
},
|
|
@@ -1396,9 +1550,12 @@ var properties$8 = {
|
|
|
1396
1550
|
},
|
|
1397
1551
|
{
|
|
1398
1552
|
type: "array",
|
|
1399
|
-
items:
|
|
1400
|
-
|
|
1401
|
-
|
|
1553
|
+
items: false,
|
|
1554
|
+
prefixItems: [
|
|
1555
|
+
{
|
|
1556
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
1557
|
+
}
|
|
1558
|
+
]
|
|
1402
1559
|
}
|
|
1403
1560
|
]
|
|
1404
1561
|
},
|
|
@@ -1409,9 +1566,12 @@ var properties$8 = {
|
|
|
1409
1566
|
},
|
|
1410
1567
|
{
|
|
1411
1568
|
type: "array",
|
|
1412
|
-
items:
|
|
1413
|
-
|
|
1414
|
-
|
|
1569
|
+
items: false,
|
|
1570
|
+
prefixItems: [
|
|
1571
|
+
{
|
|
1572
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
1573
|
+
}
|
|
1574
|
+
]
|
|
1415
1575
|
}
|
|
1416
1576
|
]
|
|
1417
1577
|
},
|
|
@@ -1440,9 +1600,12 @@ var properties$8 = {
|
|
|
1440
1600
|
},
|
|
1441
1601
|
{
|
|
1442
1602
|
type: "array",
|
|
1443
|
-
items:
|
|
1444
|
-
|
|
1445
|
-
|
|
1603
|
+
items: false,
|
|
1604
|
+
prefixItems: [
|
|
1605
|
+
{
|
|
1606
|
+
type: "string"
|
|
1607
|
+
}
|
|
1608
|
+
]
|
|
1446
1609
|
}
|
|
1447
1610
|
],
|
|
1448
1611
|
description: "The profile(s) this policy conforms to. IRIs identifying the ODRL Profile(s)."
|
|
@@ -1479,16 +1642,19 @@ var properties$8 = {
|
|
|
1479
1642
|
},
|
|
1480
1643
|
{
|
|
1481
1644
|
type: "array",
|
|
1482
|
-
items:
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1645
|
+
items: false,
|
|
1646
|
+
prefixItems: [
|
|
1647
|
+
{
|
|
1648
|
+
anyOf: [
|
|
1649
|
+
{
|
|
1650
|
+
type: "string"
|
|
1651
|
+
},
|
|
1652
|
+
{
|
|
1653
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAsset"
|
|
1654
|
+
}
|
|
1655
|
+
]
|
|
1656
|
+
}
|
|
1657
|
+
]
|
|
1492
1658
|
}
|
|
1493
1659
|
],
|
|
1494
1660
|
description: "The target asset for the rule."
|
|
@@ -1503,16 +1669,19 @@ var properties$8 = {
|
|
|
1503
1669
|
},
|
|
1504
1670
|
{
|
|
1505
1671
|
type: "array",
|
|
1506
|
-
items:
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1672
|
+
items: false,
|
|
1673
|
+
prefixItems: [
|
|
1674
|
+
{
|
|
1675
|
+
anyOf: [
|
|
1676
|
+
{
|
|
1677
|
+
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
1678
|
+
},
|
|
1679
|
+
{
|
|
1680
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAction"
|
|
1681
|
+
}
|
|
1682
|
+
]
|
|
1683
|
+
}
|
|
1684
|
+
]
|
|
1516
1685
|
}
|
|
1517
1686
|
],
|
|
1518
1687
|
description: "The action associated with the rule."
|
|
@@ -1524,9 +1693,12 @@ var properties$8 = {
|
|
|
1524
1693
|
},
|
|
1525
1694
|
{
|
|
1526
1695
|
type: "array",
|
|
1527
|
-
items:
|
|
1528
|
-
|
|
1529
|
-
|
|
1696
|
+
items: false,
|
|
1697
|
+
prefixItems: [
|
|
1698
|
+
{
|
|
1699
|
+
type: "string"
|
|
1700
|
+
}
|
|
1701
|
+
]
|
|
1530
1702
|
}
|
|
1531
1703
|
],
|
|
1532
1704
|
description: "The parent policy(ies) this policy inherits from. IRIs identifying the parent Policy(ies)."
|
|
@@ -1537,24 +1709,33 @@ var properties$8 = {
|
|
|
1537
1709
|
},
|
|
1538
1710
|
permission: {
|
|
1539
1711
|
type: "array",
|
|
1540
|
-
items:
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1712
|
+
items: false,
|
|
1713
|
+
description: "The permissions in the policy. At least one of permission, prohibition, or obligation must be present.",
|
|
1714
|
+
prefixItems: [
|
|
1715
|
+
{
|
|
1716
|
+
$ref: "https://schema.twindev.org/odrl/OdrlPermission"
|
|
1717
|
+
}
|
|
1718
|
+
]
|
|
1544
1719
|
},
|
|
1545
1720
|
prohibition: {
|
|
1546
1721
|
type: "array",
|
|
1547
|
-
items:
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1722
|
+
items: false,
|
|
1723
|
+
description: "The prohibitions in the policy. At least one of permission, prohibition, or obligation must be present.",
|
|
1724
|
+
prefixItems: [
|
|
1725
|
+
{
|
|
1726
|
+
$ref: "https://schema.twindev.org/odrl/OdrlProhibition"
|
|
1727
|
+
}
|
|
1728
|
+
]
|
|
1551
1729
|
},
|
|
1552
1730
|
obligation: {
|
|
1553
1731
|
type: "array",
|
|
1554
|
-
items:
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1732
|
+
items: false,
|
|
1733
|
+
description: "The obligations in the policy. At least one of permission, prohibition, or obligation must be present.",
|
|
1734
|
+
prefixItems: [
|
|
1735
|
+
{
|
|
1736
|
+
$ref: "https://schema.twindev.org/odrl/OdrlDuty"
|
|
1737
|
+
}
|
|
1738
|
+
]
|
|
1558
1739
|
}
|
|
1559
1740
|
};
|
|
1560
1741
|
var required$3 = [
|
|
@@ -1588,15 +1769,19 @@ var additionalProperties$8 = {
|
|
|
1588
1769
|
}
|
|
1589
1770
|
]
|
|
1590
1771
|
};
|
|
1591
|
-
var description$8 = "Interface representing an ODRL Offer. An Offer requires an assigner (the party making the offer).";
|
|
1592
1772
|
var OdrlOfferSchema = {
|
|
1773
|
+
$schema: $schema$8,
|
|
1774
|
+
$id: $id$8,
|
|
1775
|
+
description: description$8,
|
|
1593
1776
|
type: type$8,
|
|
1594
1777
|
properties: properties$8,
|
|
1595
1778
|
required: required$3,
|
|
1596
|
-
additionalProperties: additionalProperties$8
|
|
1597
|
-
description: description$8
|
|
1779
|
+
additionalProperties: additionalProperties$8
|
|
1598
1780
|
};
|
|
1599
1781
|
|
|
1782
|
+
var $schema$7 = "https://json-schema.org/draft/2020-12/schema";
|
|
1783
|
+
var $id$7 = "https://schema.twindev.org/odrl/OdrlParty";
|
|
1784
|
+
var description$7 = "Interface for ODRL Parties.";
|
|
1600
1785
|
var type$7 = "object";
|
|
1601
1786
|
var properties$7 = {
|
|
1602
1787
|
"@context": {
|
|
@@ -1609,9 +1794,12 @@ var properties$7 = {
|
|
|
1609
1794
|
},
|
|
1610
1795
|
{
|
|
1611
1796
|
type: "array",
|
|
1612
|
-
items:
|
|
1613
|
-
|
|
1614
|
-
|
|
1797
|
+
items: false,
|
|
1798
|
+
prefixItems: [
|
|
1799
|
+
{
|
|
1800
|
+
type: "string"
|
|
1801
|
+
}
|
|
1802
|
+
]
|
|
1615
1803
|
}
|
|
1616
1804
|
]
|
|
1617
1805
|
},
|
|
@@ -1625,9 +1813,12 @@ var properties$7 = {
|
|
|
1625
1813
|
},
|
|
1626
1814
|
{
|
|
1627
1815
|
type: "array",
|
|
1628
|
-
items:
|
|
1629
|
-
|
|
1630
|
-
|
|
1816
|
+
items: false,
|
|
1817
|
+
prefixItems: [
|
|
1818
|
+
{
|
|
1819
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
1820
|
+
}
|
|
1821
|
+
]
|
|
1631
1822
|
}
|
|
1632
1823
|
]
|
|
1633
1824
|
},
|
|
@@ -1638,9 +1829,12 @@ var properties$7 = {
|
|
|
1638
1829
|
},
|
|
1639
1830
|
{
|
|
1640
1831
|
type: "array",
|
|
1641
|
-
items:
|
|
1642
|
-
|
|
1643
|
-
|
|
1832
|
+
items: false,
|
|
1833
|
+
prefixItems: [
|
|
1834
|
+
{
|
|
1835
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
1836
|
+
}
|
|
1837
|
+
]
|
|
1644
1838
|
}
|
|
1645
1839
|
]
|
|
1646
1840
|
},
|
|
@@ -1651,9 +1845,12 @@ var properties$7 = {
|
|
|
1651
1845
|
},
|
|
1652
1846
|
{
|
|
1653
1847
|
type: "array",
|
|
1654
|
-
items:
|
|
1655
|
-
|
|
1656
|
-
|
|
1848
|
+
items: false,
|
|
1849
|
+
prefixItems: [
|
|
1850
|
+
{
|
|
1851
|
+
type: "string"
|
|
1852
|
+
}
|
|
1853
|
+
]
|
|
1657
1854
|
}
|
|
1658
1855
|
],
|
|
1659
1856
|
description: "The type of the party. Can be used to specify additional type information (e.g., \"Party\", \"vcard:Organization\", \"vcard:Individual\")."
|
|
@@ -1716,14 +1913,18 @@ var additionalProperties$7 = {
|
|
|
1716
1913
|
}
|
|
1717
1914
|
]
|
|
1718
1915
|
};
|
|
1719
|
-
var description$7 = "Interface for ODRL Parties.";
|
|
1720
1916
|
var OdrlPartySchema = {
|
|
1917
|
+
$schema: $schema$7,
|
|
1918
|
+
$id: $id$7,
|
|
1919
|
+
description: description$7,
|
|
1721
1920
|
type: type$7,
|
|
1722
1921
|
properties: properties$7,
|
|
1723
|
-
additionalProperties: additionalProperties$7
|
|
1724
|
-
description: description$7
|
|
1922
|
+
additionalProperties: additionalProperties$7
|
|
1725
1923
|
};
|
|
1726
1924
|
|
|
1925
|
+
var $schema$6 = "https://json-schema.org/draft/2020-12/schema";
|
|
1926
|
+
var $id$6 = "https://schema.twindev.org/odrl/OdrlPartyCollection";
|
|
1927
|
+
var description$6 = "Interface for ODRL Party Collections. A PartyCollection identifies a collection of entities and is a subclass of Party.";
|
|
1727
1928
|
var type$6 = "object";
|
|
1728
1929
|
var properties$6 = {
|
|
1729
1930
|
"@context": {
|
|
@@ -1736,9 +1937,12 @@ var properties$6 = {
|
|
|
1736
1937
|
},
|
|
1737
1938
|
{
|
|
1738
1939
|
type: "array",
|
|
1739
|
-
items:
|
|
1740
|
-
|
|
1741
|
-
|
|
1940
|
+
items: false,
|
|
1941
|
+
prefixItems: [
|
|
1942
|
+
{
|
|
1943
|
+
type: "string"
|
|
1944
|
+
}
|
|
1945
|
+
]
|
|
1742
1946
|
}
|
|
1743
1947
|
]
|
|
1744
1948
|
},
|
|
@@ -1752,9 +1956,12 @@ var properties$6 = {
|
|
|
1752
1956
|
},
|
|
1753
1957
|
{
|
|
1754
1958
|
type: "array",
|
|
1755
|
-
items:
|
|
1756
|
-
|
|
1757
|
-
|
|
1959
|
+
items: false,
|
|
1960
|
+
prefixItems: [
|
|
1961
|
+
{
|
|
1962
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
1963
|
+
}
|
|
1964
|
+
]
|
|
1758
1965
|
}
|
|
1759
1966
|
]
|
|
1760
1967
|
},
|
|
@@ -1765,9 +1972,12 @@ var properties$6 = {
|
|
|
1765
1972
|
},
|
|
1766
1973
|
{
|
|
1767
1974
|
type: "array",
|
|
1768
|
-
items:
|
|
1769
|
-
|
|
1770
|
-
|
|
1975
|
+
items: false,
|
|
1976
|
+
prefixItems: [
|
|
1977
|
+
{
|
|
1978
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
1979
|
+
}
|
|
1980
|
+
]
|
|
1771
1981
|
}
|
|
1772
1982
|
]
|
|
1773
1983
|
},
|
|
@@ -1778,9 +1988,12 @@ var properties$6 = {
|
|
|
1778
1988
|
},
|
|
1779
1989
|
{
|
|
1780
1990
|
type: "array",
|
|
1781
|
-
items:
|
|
1782
|
-
|
|
1783
|
-
|
|
1991
|
+
items: false,
|
|
1992
|
+
prefixItems: [
|
|
1993
|
+
{
|
|
1994
|
+
type: "string"
|
|
1995
|
+
}
|
|
1996
|
+
]
|
|
1784
1997
|
}
|
|
1785
1998
|
],
|
|
1786
1999
|
description: "The type of the party. Can be used to specify additional type information (e.g., \"Party\", \"vcard:Organization\", \"vcard:Individual\")."
|
|
@@ -1823,10 +2036,13 @@ var properties$6 = {
|
|
|
1823
2036
|
},
|
|
1824
2037
|
refinement: {
|
|
1825
2038
|
type: "array",
|
|
1826
|
-
items:
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
2039
|
+
items: false,
|
|
2040
|
+
description: "Refinements applied to the party collection. Used to specify constraints that apply to all members of the collection.",
|
|
2041
|
+
prefixItems: [
|
|
2042
|
+
{
|
|
2043
|
+
$ref: "https://schema.twindev.org/odrl/OdrlConstraint"
|
|
2044
|
+
}
|
|
2045
|
+
]
|
|
1830
2046
|
}
|
|
1831
2047
|
};
|
|
1832
2048
|
var required$2 = [
|
|
@@ -1857,15 +2073,19 @@ var additionalProperties$6 = {
|
|
|
1857
2073
|
}
|
|
1858
2074
|
]
|
|
1859
2075
|
};
|
|
1860
|
-
var description$6 = "Interface for ODRL Party Collections. A PartyCollection identifies a collection of entities and is a subclass of Party.";
|
|
1861
2076
|
var OdrlPartyCollectionSchema = {
|
|
2077
|
+
$schema: $schema$6,
|
|
2078
|
+
$id: $id$6,
|
|
2079
|
+
description: description$6,
|
|
1862
2080
|
type: type$6,
|
|
1863
2081
|
properties: properties$6,
|
|
1864
2082
|
required: required$2,
|
|
1865
|
-
additionalProperties: additionalProperties$6
|
|
1866
|
-
description: description$6
|
|
2083
|
+
additionalProperties: additionalProperties$6
|
|
1867
2084
|
};
|
|
1868
2085
|
|
|
2086
|
+
var $schema$5 = "https://json-schema.org/draft/2020-12/schema";
|
|
2087
|
+
var $id$5 = "https://schema.twindev.org/odrl/OdrlPermission";
|
|
2088
|
+
var description$5 = "Interface for Permission Rules. A Permission allows an action to be exercised on an Asset if all constraints are satisfied and if all duties are fulfilled.";
|
|
1869
2089
|
var type$5 = "object";
|
|
1870
2090
|
var properties$5 = {
|
|
1871
2091
|
"@context": {
|
|
@@ -1878,9 +2098,12 @@ var properties$5 = {
|
|
|
1878
2098
|
},
|
|
1879
2099
|
{
|
|
1880
2100
|
type: "array",
|
|
1881
|
-
items:
|
|
1882
|
-
|
|
1883
|
-
|
|
2101
|
+
items: false,
|
|
2102
|
+
prefixItems: [
|
|
2103
|
+
{
|
|
2104
|
+
type: "string"
|
|
2105
|
+
}
|
|
2106
|
+
]
|
|
1884
2107
|
}
|
|
1885
2108
|
]
|
|
1886
2109
|
},
|
|
@@ -1894,9 +2117,12 @@ var properties$5 = {
|
|
|
1894
2117
|
},
|
|
1895
2118
|
{
|
|
1896
2119
|
type: "array",
|
|
1897
|
-
items:
|
|
1898
|
-
|
|
1899
|
-
|
|
2120
|
+
items: false,
|
|
2121
|
+
prefixItems: [
|
|
2122
|
+
{
|
|
2123
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
2124
|
+
}
|
|
2125
|
+
]
|
|
1900
2126
|
}
|
|
1901
2127
|
]
|
|
1902
2128
|
},
|
|
@@ -1907,9 +2133,12 @@ var properties$5 = {
|
|
|
1907
2133
|
},
|
|
1908
2134
|
{
|
|
1909
2135
|
type: "array",
|
|
1910
|
-
items:
|
|
1911
|
-
|
|
1912
|
-
|
|
2136
|
+
items: false,
|
|
2137
|
+
prefixItems: [
|
|
2138
|
+
{
|
|
2139
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
2140
|
+
}
|
|
2141
|
+
]
|
|
1913
2142
|
}
|
|
1914
2143
|
]
|
|
1915
2144
|
},
|
|
@@ -1920,9 +2149,12 @@ var properties$5 = {
|
|
|
1920
2149
|
},
|
|
1921
2150
|
{
|
|
1922
2151
|
type: "array",
|
|
1923
|
-
items:
|
|
1924
|
-
|
|
1925
|
-
|
|
2152
|
+
items: false,
|
|
2153
|
+
prefixItems: [
|
|
2154
|
+
{
|
|
2155
|
+
type: "string"
|
|
2156
|
+
}
|
|
2157
|
+
]
|
|
1926
2158
|
}
|
|
1927
2159
|
]
|
|
1928
2160
|
},
|
|
@@ -1949,16 +2181,19 @@ var properties$5 = {
|
|
|
1949
2181
|
},
|
|
1950
2182
|
{
|
|
1951
2183
|
type: "array",
|
|
1952
|
-
items:
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
2184
|
+
items: false,
|
|
2185
|
+
prefixItems: [
|
|
2186
|
+
{
|
|
2187
|
+
anyOf: [
|
|
2188
|
+
{
|
|
2189
|
+
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
2190
|
+
},
|
|
2191
|
+
{
|
|
2192
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAction"
|
|
2193
|
+
}
|
|
2194
|
+
]
|
|
2195
|
+
}
|
|
2196
|
+
]
|
|
1962
2197
|
}
|
|
1963
2198
|
],
|
|
1964
2199
|
description: "The action associated with the rule."
|
|
@@ -1973,16 +2208,19 @@ var properties$5 = {
|
|
|
1973
2208
|
},
|
|
1974
2209
|
{
|
|
1975
2210
|
type: "array",
|
|
1976
|
-
items:
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
2211
|
+
items: false,
|
|
2212
|
+
prefixItems: [
|
|
2213
|
+
{
|
|
2214
|
+
anyOf: [
|
|
2215
|
+
{
|
|
2216
|
+
type: "string"
|
|
2217
|
+
},
|
|
2218
|
+
{
|
|
2219
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAsset"
|
|
2220
|
+
}
|
|
2221
|
+
]
|
|
2222
|
+
}
|
|
2223
|
+
]
|
|
1986
2224
|
}
|
|
1987
2225
|
],
|
|
1988
2226
|
description: "The target asset for the rule."
|
|
@@ -2011,10 +2249,13 @@ var properties$5 = {
|
|
|
2011
2249
|
},
|
|
2012
2250
|
constraint: {
|
|
2013
2251
|
type: "array",
|
|
2014
|
-
items:
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2252
|
+
items: false,
|
|
2253
|
+
description: "Constraints applied to the rule.",
|
|
2254
|
+
prefixItems: [
|
|
2255
|
+
{
|
|
2256
|
+
$ref: "https://schema.twindev.org/odrl/OdrlConstraint"
|
|
2257
|
+
}
|
|
2258
|
+
]
|
|
2018
2259
|
},
|
|
2019
2260
|
summary: {
|
|
2020
2261
|
type: "string",
|
|
@@ -2022,10 +2263,13 @@ var properties$5 = {
|
|
|
2022
2263
|
},
|
|
2023
2264
|
duty: {
|
|
2024
2265
|
type: "array",
|
|
2025
|
-
items:
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2266
|
+
items: false,
|
|
2267
|
+
description: "The duties that must be fulfilled before the permission can be exercised. A Permission MAY have none, one, or more duty property values.",
|
|
2268
|
+
prefixItems: [
|
|
2269
|
+
{
|
|
2270
|
+
$ref: "https://schema.twindev.org/odrl/OdrlDuty"
|
|
2271
|
+
}
|
|
2272
|
+
]
|
|
2029
2273
|
}
|
|
2030
2274
|
};
|
|
2031
2275
|
var additionalProperties$5 = {
|
|
@@ -2053,14 +2297,18 @@ var additionalProperties$5 = {
|
|
|
2053
2297
|
}
|
|
2054
2298
|
]
|
|
2055
2299
|
};
|
|
2056
|
-
var description$5 = "Interface for Permission Rules. A Permission allows an action to be exercised on an Asset if all constraints are satisfied and if all duties are fulfilled.";
|
|
2057
2300
|
var OdrlPermissionSchema = {
|
|
2301
|
+
$schema: $schema$5,
|
|
2302
|
+
$id: $id$5,
|
|
2303
|
+
description: description$5,
|
|
2058
2304
|
type: type$5,
|
|
2059
2305
|
properties: properties$5,
|
|
2060
|
-
additionalProperties: additionalProperties$5
|
|
2061
|
-
description: description$5
|
|
2306
|
+
additionalProperties: additionalProperties$5
|
|
2062
2307
|
};
|
|
2063
2308
|
|
|
2309
|
+
var $schema$4 = "https://json-schema.org/draft/2020-12/schema";
|
|
2310
|
+
var $id$4 = "https://schema.twindev.org/odrl/OdrlPolicy";
|
|
2311
|
+
var description$4 = "Interface representing an ODRL Policy.";
|
|
2064
2312
|
var type$4 = "object";
|
|
2065
2313
|
var properties$4 = {
|
|
2066
2314
|
"@context": {
|
|
@@ -2068,10 +2316,23 @@ var properties$4 = {
|
|
|
2068
2316
|
description: "The context for the policy. Must include \"https://www.w3.org/ns/odrl.jsonld\""
|
|
2069
2317
|
},
|
|
2070
2318
|
"@id": {
|
|
2071
|
-
|
|
2319
|
+
anyOf: [
|
|
2320
|
+
{
|
|
2321
|
+
type: "string"
|
|
2322
|
+
},
|
|
2323
|
+
{
|
|
2324
|
+
type: "array",
|
|
2325
|
+
items: false,
|
|
2326
|
+
prefixItems: [
|
|
2327
|
+
{
|
|
2328
|
+
type: "string"
|
|
2329
|
+
}
|
|
2330
|
+
]
|
|
2331
|
+
}
|
|
2332
|
+
]
|
|
2072
2333
|
},
|
|
2073
2334
|
"@included": {
|
|
2074
|
-
$ref: "https://schema.twindev.org/json-ld/
|
|
2335
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
2075
2336
|
},
|
|
2076
2337
|
"@graph": {
|
|
2077
2338
|
anyOf: [
|
|
@@ -2080,9 +2341,12 @@ var properties$4 = {
|
|
|
2080
2341
|
},
|
|
2081
2342
|
{
|
|
2082
2343
|
type: "array",
|
|
2083
|
-
items:
|
|
2084
|
-
|
|
2085
|
-
|
|
2344
|
+
items: false,
|
|
2345
|
+
prefixItems: [
|
|
2346
|
+
{
|
|
2347
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
2348
|
+
}
|
|
2349
|
+
]
|
|
2086
2350
|
}
|
|
2087
2351
|
]
|
|
2088
2352
|
},
|
|
@@ -2093,9 +2357,12 @@ var properties$4 = {
|
|
|
2093
2357
|
},
|
|
2094
2358
|
{
|
|
2095
2359
|
type: "array",
|
|
2096
|
-
items:
|
|
2097
|
-
|
|
2098
|
-
|
|
2360
|
+
items: false,
|
|
2361
|
+
prefixItems: [
|
|
2362
|
+
{
|
|
2363
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
2364
|
+
}
|
|
2365
|
+
]
|
|
2099
2366
|
}
|
|
2100
2367
|
]
|
|
2101
2368
|
},
|
|
@@ -2106,11 +2373,11 @@ var properties$4 = {
|
|
|
2106
2373
|
"@reverse": {
|
|
2107
2374
|
type: "object",
|
|
2108
2375
|
additionalProperties: {
|
|
2109
|
-
|
|
2376
|
+
type: "string"
|
|
2110
2377
|
}
|
|
2111
2378
|
},
|
|
2112
2379
|
"@index": {
|
|
2113
|
-
|
|
2380
|
+
type: "string"
|
|
2114
2381
|
},
|
|
2115
2382
|
uid: {
|
|
2116
2383
|
type: "string",
|
|
@@ -2123,9 +2390,12 @@ var properties$4 = {
|
|
|
2123
2390
|
},
|
|
2124
2391
|
{
|
|
2125
2392
|
type: "array",
|
|
2126
|
-
items:
|
|
2127
|
-
|
|
2128
|
-
|
|
2393
|
+
items: false,
|
|
2394
|
+
prefixItems: [
|
|
2395
|
+
{
|
|
2396
|
+
type: "string"
|
|
2397
|
+
}
|
|
2398
|
+
]
|
|
2129
2399
|
}
|
|
2130
2400
|
],
|
|
2131
2401
|
description: "The profile(s) this policy conforms to. IRIs identifying the ODRL Profile(s)."
|
|
@@ -2162,16 +2432,19 @@ var properties$4 = {
|
|
|
2162
2432
|
},
|
|
2163
2433
|
{
|
|
2164
2434
|
type: "array",
|
|
2165
|
-
items:
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2435
|
+
items: false,
|
|
2436
|
+
prefixItems: [
|
|
2437
|
+
{
|
|
2438
|
+
anyOf: [
|
|
2439
|
+
{
|
|
2440
|
+
type: "string"
|
|
2441
|
+
},
|
|
2442
|
+
{
|
|
2443
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAsset"
|
|
2444
|
+
}
|
|
2445
|
+
]
|
|
2446
|
+
}
|
|
2447
|
+
]
|
|
2175
2448
|
}
|
|
2176
2449
|
],
|
|
2177
2450
|
description: "The target asset for the rule."
|
|
@@ -2186,16 +2459,19 @@ var properties$4 = {
|
|
|
2186
2459
|
},
|
|
2187
2460
|
{
|
|
2188
2461
|
type: "array",
|
|
2189
|
-
items:
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2462
|
+
items: false,
|
|
2463
|
+
prefixItems: [
|
|
2464
|
+
{
|
|
2465
|
+
anyOf: [
|
|
2466
|
+
{
|
|
2467
|
+
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
2468
|
+
},
|
|
2469
|
+
{
|
|
2470
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAction"
|
|
2471
|
+
}
|
|
2472
|
+
]
|
|
2473
|
+
}
|
|
2474
|
+
]
|
|
2199
2475
|
}
|
|
2200
2476
|
],
|
|
2201
2477
|
description: "The action associated with the rule."
|
|
@@ -2207,9 +2483,12 @@ var properties$4 = {
|
|
|
2207
2483
|
},
|
|
2208
2484
|
{
|
|
2209
2485
|
type: "array",
|
|
2210
|
-
items:
|
|
2211
|
-
|
|
2212
|
-
|
|
2486
|
+
items: false,
|
|
2487
|
+
prefixItems: [
|
|
2488
|
+
{
|
|
2489
|
+
type: "string"
|
|
2490
|
+
}
|
|
2491
|
+
]
|
|
2213
2492
|
}
|
|
2214
2493
|
],
|
|
2215
2494
|
description: "The parent policy(ies) this policy inherits from. IRIs identifying the parent Policy(ies)."
|
|
@@ -2220,24 +2499,33 @@ var properties$4 = {
|
|
|
2220
2499
|
},
|
|
2221
2500
|
permission: {
|
|
2222
2501
|
type: "array",
|
|
2223
|
-
items:
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2502
|
+
items: false,
|
|
2503
|
+
description: "The permissions in the policy. At least one of permission, prohibition, or obligation must be present.",
|
|
2504
|
+
prefixItems: [
|
|
2505
|
+
{
|
|
2506
|
+
$ref: "https://schema.twindev.org/odrl/OdrlPermission"
|
|
2507
|
+
}
|
|
2508
|
+
]
|
|
2227
2509
|
},
|
|
2228
2510
|
prohibition: {
|
|
2229
2511
|
type: "array",
|
|
2230
|
-
items:
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2512
|
+
items: false,
|
|
2513
|
+
description: "The prohibitions in the policy. At least one of permission, prohibition, or obligation must be present.",
|
|
2514
|
+
prefixItems: [
|
|
2515
|
+
{
|
|
2516
|
+
$ref: "https://schema.twindev.org/odrl/OdrlProhibition"
|
|
2517
|
+
}
|
|
2518
|
+
]
|
|
2234
2519
|
},
|
|
2235
2520
|
obligation: {
|
|
2236
2521
|
type: "array",
|
|
2237
|
-
items:
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2522
|
+
items: false,
|
|
2523
|
+
description: "The obligations in the policy. At least one of permission, prohibition, or obligation must be present.",
|
|
2524
|
+
prefixItems: [
|
|
2525
|
+
{
|
|
2526
|
+
$ref: "https://schema.twindev.org/odrl/OdrlDuty"
|
|
2527
|
+
}
|
|
2528
|
+
]
|
|
2241
2529
|
}
|
|
2242
2530
|
};
|
|
2243
2531
|
var required$1 = [
|
|
@@ -2270,15 +2558,19 @@ var additionalProperties$4 = {
|
|
|
2270
2558
|
}
|
|
2271
2559
|
]
|
|
2272
2560
|
};
|
|
2273
|
-
var description$4 = "Interface representing an ODRL Policy.";
|
|
2274
2561
|
var OdrlPolicySchema = {
|
|
2562
|
+
$schema: $schema$4,
|
|
2563
|
+
$id: $id$4,
|
|
2564
|
+
description: description$4,
|
|
2275
2565
|
type: type$4,
|
|
2276
2566
|
properties: properties$4,
|
|
2277
2567
|
required: required$1,
|
|
2278
|
-
additionalProperties: additionalProperties$4
|
|
2279
|
-
description: description$4
|
|
2568
|
+
additionalProperties: additionalProperties$4
|
|
2280
2569
|
};
|
|
2281
2570
|
|
|
2571
|
+
var $schema$3 = "https://json-schema.org/draft/2020-12/schema";
|
|
2572
|
+
var $id$3 = "https://schema.twindev.org/odrl/OdrlPolicyMetadata";
|
|
2573
|
+
var description$3 = "Interface for ODRL Policy Metadata using Dublin Core terms. While these aren't explicitly defined in the ODRL spec, they are valid and useful metadata properties that follow Dublin Core standards.";
|
|
2282
2574
|
var type$3 = "object";
|
|
2283
2575
|
var properties$3 = {
|
|
2284
2576
|
"dc:creator": {
|
|
@@ -2288,9 +2580,12 @@ var properties$3 = {
|
|
|
2288
2580
|
},
|
|
2289
2581
|
{
|
|
2290
2582
|
type: "array",
|
|
2291
|
-
items:
|
|
2292
|
-
|
|
2293
|
-
|
|
2583
|
+
items: false,
|
|
2584
|
+
prefixItems: [
|
|
2585
|
+
{
|
|
2586
|
+
type: "string"
|
|
2587
|
+
}
|
|
2588
|
+
]
|
|
2294
2589
|
}
|
|
2295
2590
|
],
|
|
2296
2591
|
description: "The individual, agent, or organisation that authored the Policy. Note: String values may not be normalized and should not be used for direct comparison."
|
|
@@ -2302,9 +2597,12 @@ var properties$3 = {
|
|
|
2302
2597
|
},
|
|
2303
2598
|
{
|
|
2304
2599
|
type: "array",
|
|
2305
|
-
items:
|
|
2306
|
-
|
|
2307
|
-
|
|
2600
|
+
items: false,
|
|
2601
|
+
prefixItems: [
|
|
2602
|
+
{
|
|
2603
|
+
type: "string"
|
|
2604
|
+
}
|
|
2605
|
+
]
|
|
2308
2606
|
}
|
|
2309
2607
|
],
|
|
2310
2608
|
description: "A human-readable representation or summary of the Policy. Note: String values may not be normalized and should not be used for direct comparison."
|
|
@@ -2328,9 +2626,12 @@ var properties$3 = {
|
|
|
2328
2626
|
},
|
|
2329
2627
|
{
|
|
2330
2628
|
type: "array",
|
|
2331
|
-
items:
|
|
2332
|
-
|
|
2333
|
-
|
|
2629
|
+
items: false,
|
|
2630
|
+
prefixItems: [
|
|
2631
|
+
{
|
|
2632
|
+
type: "string"
|
|
2633
|
+
}
|
|
2634
|
+
]
|
|
2334
2635
|
}
|
|
2335
2636
|
],
|
|
2336
2637
|
description: "The subject of the Policy. Note: String values may not be normalized and should not be used for direct comparison."
|
|
@@ -2397,14 +2698,18 @@ var properties$3 = {
|
|
|
2397
2698
|
}
|
|
2398
2699
|
};
|
|
2399
2700
|
var additionalProperties$3 = false;
|
|
2400
|
-
var description$3 = "Interface for ODRL Policy Metadata using Dublin Core terms. While these aren't explicitly defined in the ODRL spec, they are valid and useful metadata properties that follow Dublin Core standards.";
|
|
2401
2701
|
var OdrlPolicyMetadataSchema = {
|
|
2702
|
+
$schema: $schema$3,
|
|
2703
|
+
$id: $id$3,
|
|
2704
|
+
description: description$3,
|
|
2402
2705
|
type: type$3,
|
|
2403
2706
|
properties: properties$3,
|
|
2404
|
-
additionalProperties: additionalProperties$3
|
|
2405
|
-
description: description$3
|
|
2707
|
+
additionalProperties: additionalProperties$3
|
|
2406
2708
|
};
|
|
2407
2709
|
|
|
2710
|
+
var $schema$2 = "https://json-schema.org/draft/2020-12/schema";
|
|
2711
|
+
var $id$2 = "https://schema.twindev.org/odrl/OdrlProhibition";
|
|
2712
|
+
var description$2 = "Interface for Prohibition Rules.";
|
|
2408
2713
|
var type$2 = "object";
|
|
2409
2714
|
var properties$2 = {
|
|
2410
2715
|
"@context": {
|
|
@@ -2417,9 +2722,12 @@ var properties$2 = {
|
|
|
2417
2722
|
},
|
|
2418
2723
|
{
|
|
2419
2724
|
type: "array",
|
|
2420
|
-
items:
|
|
2421
|
-
|
|
2422
|
-
|
|
2725
|
+
items: false,
|
|
2726
|
+
prefixItems: [
|
|
2727
|
+
{
|
|
2728
|
+
type: "string"
|
|
2729
|
+
}
|
|
2730
|
+
]
|
|
2423
2731
|
}
|
|
2424
2732
|
]
|
|
2425
2733
|
},
|
|
@@ -2433,9 +2741,12 @@ var properties$2 = {
|
|
|
2433
2741
|
},
|
|
2434
2742
|
{
|
|
2435
2743
|
type: "array",
|
|
2436
|
-
items:
|
|
2437
|
-
|
|
2438
|
-
|
|
2744
|
+
items: false,
|
|
2745
|
+
prefixItems: [
|
|
2746
|
+
{
|
|
2747
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
2748
|
+
}
|
|
2749
|
+
]
|
|
2439
2750
|
}
|
|
2440
2751
|
]
|
|
2441
2752
|
},
|
|
@@ -2446,9 +2757,12 @@ var properties$2 = {
|
|
|
2446
2757
|
},
|
|
2447
2758
|
{
|
|
2448
2759
|
type: "array",
|
|
2449
|
-
items:
|
|
2450
|
-
|
|
2451
|
-
|
|
2760
|
+
items: false,
|
|
2761
|
+
prefixItems: [
|
|
2762
|
+
{
|
|
2763
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
2764
|
+
}
|
|
2765
|
+
]
|
|
2452
2766
|
}
|
|
2453
2767
|
]
|
|
2454
2768
|
},
|
|
@@ -2459,9 +2773,12 @@ var properties$2 = {
|
|
|
2459
2773
|
},
|
|
2460
2774
|
{
|
|
2461
2775
|
type: "array",
|
|
2462
|
-
items:
|
|
2463
|
-
|
|
2464
|
-
|
|
2776
|
+
items: false,
|
|
2777
|
+
prefixItems: [
|
|
2778
|
+
{
|
|
2779
|
+
type: "string"
|
|
2780
|
+
}
|
|
2781
|
+
]
|
|
2465
2782
|
}
|
|
2466
2783
|
]
|
|
2467
2784
|
},
|
|
@@ -2488,16 +2805,19 @@ var properties$2 = {
|
|
|
2488
2805
|
},
|
|
2489
2806
|
{
|
|
2490
2807
|
type: "array",
|
|
2491
|
-
items:
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2808
|
+
items: false,
|
|
2809
|
+
prefixItems: [
|
|
2810
|
+
{
|
|
2811
|
+
anyOf: [
|
|
2812
|
+
{
|
|
2813
|
+
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
2814
|
+
},
|
|
2815
|
+
{
|
|
2816
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAction"
|
|
2817
|
+
}
|
|
2818
|
+
]
|
|
2819
|
+
}
|
|
2820
|
+
]
|
|
2501
2821
|
}
|
|
2502
2822
|
],
|
|
2503
2823
|
description: "The action associated with the rule."
|
|
@@ -2512,16 +2832,19 @@ var properties$2 = {
|
|
|
2512
2832
|
},
|
|
2513
2833
|
{
|
|
2514
2834
|
type: "array",
|
|
2515
|
-
items:
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2835
|
+
items: false,
|
|
2836
|
+
prefixItems: [
|
|
2837
|
+
{
|
|
2838
|
+
anyOf: [
|
|
2839
|
+
{
|
|
2840
|
+
type: "string"
|
|
2841
|
+
},
|
|
2842
|
+
{
|
|
2843
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAsset"
|
|
2844
|
+
}
|
|
2845
|
+
]
|
|
2846
|
+
}
|
|
2847
|
+
]
|
|
2525
2848
|
}
|
|
2526
2849
|
],
|
|
2527
2850
|
description: "The target asset for the rule."
|
|
@@ -2550,10 +2873,13 @@ var properties$2 = {
|
|
|
2550
2873
|
},
|
|
2551
2874
|
constraint: {
|
|
2552
2875
|
type: "array",
|
|
2553
|
-
items:
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2876
|
+
items: false,
|
|
2877
|
+
description: "Constraints applied to the rule.",
|
|
2878
|
+
prefixItems: [
|
|
2879
|
+
{
|
|
2880
|
+
$ref: "https://schema.twindev.org/odrl/OdrlConstraint"
|
|
2881
|
+
}
|
|
2882
|
+
]
|
|
2557
2883
|
},
|
|
2558
2884
|
summary: {
|
|
2559
2885
|
type: "string",
|
|
@@ -2561,10 +2887,13 @@ var properties$2 = {
|
|
|
2561
2887
|
},
|
|
2562
2888
|
remedy: {
|
|
2563
2889
|
type: "array",
|
|
2564
|
-
items:
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2890
|
+
items: false,
|
|
2891
|
+
description: "The remedies that must be fulfilled if prohibition is violated.",
|
|
2892
|
+
prefixItems: [
|
|
2893
|
+
{
|
|
2894
|
+
$ref: "https://schema.twindev.org/odrl/OdrlDuty"
|
|
2895
|
+
}
|
|
2896
|
+
]
|
|
2568
2897
|
}
|
|
2569
2898
|
};
|
|
2570
2899
|
var additionalProperties$2 = {
|
|
@@ -2592,14 +2921,18 @@ var additionalProperties$2 = {
|
|
|
2592
2921
|
}
|
|
2593
2922
|
]
|
|
2594
2923
|
};
|
|
2595
|
-
var description$2 = "Interface for Prohibition Rules.";
|
|
2596
2924
|
var OdrlProhibitionSchema = {
|
|
2925
|
+
$schema: $schema$2,
|
|
2926
|
+
$id: $id$2,
|
|
2927
|
+
description: description$2,
|
|
2597
2928
|
type: type$2,
|
|
2598
2929
|
properties: properties$2,
|
|
2599
|
-
additionalProperties: additionalProperties$2
|
|
2600
|
-
description: description$2
|
|
2930
|
+
additionalProperties: additionalProperties$2
|
|
2601
2931
|
};
|
|
2602
2932
|
|
|
2933
|
+
var $schema$1 = "https://json-schema.org/draft/2020-12/schema";
|
|
2934
|
+
var $id$1 = "https://schema.twindev.org/odrl/OdrlRule";
|
|
2935
|
+
var description$1 = "Base interface for ODRL Rules.";
|
|
2603
2936
|
var type$1 = "object";
|
|
2604
2937
|
var properties$1 = {
|
|
2605
2938
|
"@context": {
|
|
@@ -2612,9 +2945,12 @@ var properties$1 = {
|
|
|
2612
2945
|
},
|
|
2613
2946
|
{
|
|
2614
2947
|
type: "array",
|
|
2615
|
-
items:
|
|
2616
|
-
|
|
2617
|
-
|
|
2948
|
+
items: false,
|
|
2949
|
+
prefixItems: [
|
|
2950
|
+
{
|
|
2951
|
+
type: "string"
|
|
2952
|
+
}
|
|
2953
|
+
]
|
|
2618
2954
|
}
|
|
2619
2955
|
]
|
|
2620
2956
|
},
|
|
@@ -2628,9 +2964,12 @@ var properties$1 = {
|
|
|
2628
2964
|
},
|
|
2629
2965
|
{
|
|
2630
2966
|
type: "array",
|
|
2631
|
-
items:
|
|
2632
|
-
|
|
2633
|
-
|
|
2967
|
+
items: false,
|
|
2968
|
+
prefixItems: [
|
|
2969
|
+
{
|
|
2970
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
2971
|
+
}
|
|
2972
|
+
]
|
|
2634
2973
|
}
|
|
2635
2974
|
]
|
|
2636
2975
|
},
|
|
@@ -2641,9 +2980,12 @@ var properties$1 = {
|
|
|
2641
2980
|
},
|
|
2642
2981
|
{
|
|
2643
2982
|
type: "array",
|
|
2644
|
-
items:
|
|
2645
|
-
|
|
2646
|
-
|
|
2983
|
+
items: false,
|
|
2984
|
+
prefixItems: [
|
|
2985
|
+
{
|
|
2986
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
2987
|
+
}
|
|
2988
|
+
]
|
|
2647
2989
|
}
|
|
2648
2990
|
]
|
|
2649
2991
|
},
|
|
@@ -2654,9 +2996,12 @@ var properties$1 = {
|
|
|
2654
2996
|
},
|
|
2655
2997
|
{
|
|
2656
2998
|
type: "array",
|
|
2657
|
-
items:
|
|
2658
|
-
|
|
2659
|
-
|
|
2999
|
+
items: false,
|
|
3000
|
+
prefixItems: [
|
|
3001
|
+
{
|
|
3002
|
+
type: "string"
|
|
3003
|
+
}
|
|
3004
|
+
]
|
|
2660
3005
|
}
|
|
2661
3006
|
]
|
|
2662
3007
|
},
|
|
@@ -2683,16 +3028,19 @@ var properties$1 = {
|
|
|
2683
3028
|
},
|
|
2684
3029
|
{
|
|
2685
3030
|
type: "array",
|
|
2686
|
-
items:
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
3031
|
+
items: false,
|
|
3032
|
+
prefixItems: [
|
|
3033
|
+
{
|
|
3034
|
+
anyOf: [
|
|
3035
|
+
{
|
|
3036
|
+
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
3037
|
+
},
|
|
3038
|
+
{
|
|
3039
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAction"
|
|
3040
|
+
}
|
|
3041
|
+
]
|
|
3042
|
+
}
|
|
3043
|
+
]
|
|
2696
3044
|
}
|
|
2697
3045
|
],
|
|
2698
3046
|
description: "The action associated with the rule."
|
|
@@ -2707,16 +3055,19 @@ var properties$1 = {
|
|
|
2707
3055
|
},
|
|
2708
3056
|
{
|
|
2709
3057
|
type: "array",
|
|
2710
|
-
items:
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
3058
|
+
items: false,
|
|
3059
|
+
prefixItems: [
|
|
3060
|
+
{
|
|
3061
|
+
anyOf: [
|
|
3062
|
+
{
|
|
3063
|
+
type: "string"
|
|
3064
|
+
},
|
|
3065
|
+
{
|
|
3066
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAsset"
|
|
3067
|
+
}
|
|
3068
|
+
]
|
|
3069
|
+
}
|
|
3070
|
+
]
|
|
2720
3071
|
}
|
|
2721
3072
|
],
|
|
2722
3073
|
description: "The target asset for the rule."
|
|
@@ -2745,10 +3096,13 @@ var properties$1 = {
|
|
|
2745
3096
|
},
|
|
2746
3097
|
constraint: {
|
|
2747
3098
|
type: "array",
|
|
2748
|
-
items:
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
3099
|
+
items: false,
|
|
3100
|
+
description: "Constraints applied to the rule.",
|
|
3101
|
+
prefixItems: [
|
|
3102
|
+
{
|
|
3103
|
+
$ref: "https://schema.twindev.org/odrl/OdrlConstraint"
|
|
3104
|
+
}
|
|
3105
|
+
]
|
|
2752
3106
|
},
|
|
2753
3107
|
summary: {
|
|
2754
3108
|
type: "string",
|
|
@@ -2780,14 +3134,18 @@ var additionalProperties$1 = {
|
|
|
2780
3134
|
}
|
|
2781
3135
|
]
|
|
2782
3136
|
};
|
|
2783
|
-
var description$1 = "Base interface for ODRL Rules.";
|
|
2784
3137
|
var OdrlRuleSchema = {
|
|
3138
|
+
$schema: $schema$1,
|
|
3139
|
+
$id: $id$1,
|
|
3140
|
+
description: description$1,
|
|
2785
3141
|
type: type$1,
|
|
2786
3142
|
properties: properties$1,
|
|
2787
|
-
additionalProperties: additionalProperties$1
|
|
2788
|
-
description: description$1
|
|
3143
|
+
additionalProperties: additionalProperties$1
|
|
2789
3144
|
};
|
|
2790
3145
|
|
|
3146
|
+
var $schema = "https://json-schema.org/draft/2020-12/schema";
|
|
3147
|
+
var $id = "https://schema.twindev.org/odrl/OdrlSet";
|
|
3148
|
+
var description = "Interface representing an ODRL Set. A Set is a basic policy type with no specific party requirements.";
|
|
2791
3149
|
var type = "object";
|
|
2792
3150
|
var properties = {
|
|
2793
3151
|
"@context": {
|
|
@@ -2795,10 +3153,23 @@ var properties = {
|
|
|
2795
3153
|
description: "The context for the policy. Must include \"https://www.w3.org/ns/odrl.jsonld\""
|
|
2796
3154
|
},
|
|
2797
3155
|
"@id": {
|
|
2798
|
-
|
|
3156
|
+
anyOf: [
|
|
3157
|
+
{
|
|
3158
|
+
type: "string"
|
|
3159
|
+
},
|
|
3160
|
+
{
|
|
3161
|
+
type: "array",
|
|
3162
|
+
items: false,
|
|
3163
|
+
prefixItems: [
|
|
3164
|
+
{
|
|
3165
|
+
type: "string"
|
|
3166
|
+
}
|
|
3167
|
+
]
|
|
3168
|
+
}
|
|
3169
|
+
]
|
|
2799
3170
|
},
|
|
2800
3171
|
"@included": {
|
|
2801
|
-
$ref: "https://schema.twindev.org/json-ld/
|
|
3172
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
2802
3173
|
},
|
|
2803
3174
|
"@graph": {
|
|
2804
3175
|
anyOf: [
|
|
@@ -2807,9 +3178,12 @@ var properties = {
|
|
|
2807
3178
|
},
|
|
2808
3179
|
{
|
|
2809
3180
|
type: "array",
|
|
2810
|
-
items:
|
|
2811
|
-
|
|
2812
|
-
|
|
3181
|
+
items: false,
|
|
3182
|
+
prefixItems: [
|
|
3183
|
+
{
|
|
3184
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
3185
|
+
}
|
|
3186
|
+
]
|
|
2813
3187
|
}
|
|
2814
3188
|
]
|
|
2815
3189
|
},
|
|
@@ -2820,9 +3194,12 @@ var properties = {
|
|
|
2820
3194
|
},
|
|
2821
3195
|
{
|
|
2822
3196
|
type: "array",
|
|
2823
|
-
items:
|
|
2824
|
-
|
|
2825
|
-
|
|
3197
|
+
items: false,
|
|
3198
|
+
prefixItems: [
|
|
3199
|
+
{
|
|
3200
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
3201
|
+
}
|
|
3202
|
+
]
|
|
2826
3203
|
}
|
|
2827
3204
|
]
|
|
2828
3205
|
},
|
|
@@ -2834,11 +3211,11 @@ var properties = {
|
|
|
2834
3211
|
"@reverse": {
|
|
2835
3212
|
type: "object",
|
|
2836
3213
|
additionalProperties: {
|
|
2837
|
-
|
|
3214
|
+
type: "string"
|
|
2838
3215
|
}
|
|
2839
3216
|
},
|
|
2840
3217
|
"@index": {
|
|
2841
|
-
|
|
3218
|
+
type: "string"
|
|
2842
3219
|
},
|
|
2843
3220
|
uid: {
|
|
2844
3221
|
type: "string",
|
|
@@ -2851,9 +3228,12 @@ var properties = {
|
|
|
2851
3228
|
},
|
|
2852
3229
|
{
|
|
2853
3230
|
type: "array",
|
|
2854
|
-
items:
|
|
2855
|
-
|
|
2856
|
-
|
|
3231
|
+
items: false,
|
|
3232
|
+
prefixItems: [
|
|
3233
|
+
{
|
|
3234
|
+
type: "string"
|
|
3235
|
+
}
|
|
3236
|
+
]
|
|
2857
3237
|
}
|
|
2858
3238
|
],
|
|
2859
3239
|
description: "The profile(s) this policy conforms to. IRIs identifying the ODRL Profile(s)."
|
|
@@ -2890,16 +3270,19 @@ var properties = {
|
|
|
2890
3270
|
},
|
|
2891
3271
|
{
|
|
2892
3272
|
type: "array",
|
|
2893
|
-
items:
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
3273
|
+
items: false,
|
|
3274
|
+
prefixItems: [
|
|
3275
|
+
{
|
|
3276
|
+
anyOf: [
|
|
3277
|
+
{
|
|
3278
|
+
type: "string"
|
|
3279
|
+
},
|
|
3280
|
+
{
|
|
3281
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAsset"
|
|
3282
|
+
}
|
|
3283
|
+
]
|
|
3284
|
+
}
|
|
3285
|
+
]
|
|
2903
3286
|
}
|
|
2904
3287
|
],
|
|
2905
3288
|
description: "The target asset for the rule."
|
|
@@ -2914,16 +3297,19 @@ var properties = {
|
|
|
2914
3297
|
},
|
|
2915
3298
|
{
|
|
2916
3299
|
type: "array",
|
|
2917
|
-
items:
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
3300
|
+
items: false,
|
|
3301
|
+
prefixItems: [
|
|
3302
|
+
{
|
|
3303
|
+
anyOf: [
|
|
3304
|
+
{
|
|
3305
|
+
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
3306
|
+
},
|
|
3307
|
+
{
|
|
3308
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAction"
|
|
3309
|
+
}
|
|
3310
|
+
]
|
|
3311
|
+
}
|
|
3312
|
+
]
|
|
2927
3313
|
}
|
|
2928
3314
|
],
|
|
2929
3315
|
description: "The action associated with the rule."
|
|
@@ -2935,9 +3321,12 @@ var properties = {
|
|
|
2935
3321
|
},
|
|
2936
3322
|
{
|
|
2937
3323
|
type: "array",
|
|
2938
|
-
items:
|
|
2939
|
-
|
|
2940
|
-
|
|
3324
|
+
items: false,
|
|
3325
|
+
prefixItems: [
|
|
3326
|
+
{
|
|
3327
|
+
type: "string"
|
|
3328
|
+
}
|
|
3329
|
+
]
|
|
2941
3330
|
}
|
|
2942
3331
|
],
|
|
2943
3332
|
description: "The parent policy(ies) this policy inherits from. IRIs identifying the parent Policy(ies)."
|
|
@@ -2948,24 +3337,33 @@ var properties = {
|
|
|
2948
3337
|
},
|
|
2949
3338
|
permission: {
|
|
2950
3339
|
type: "array",
|
|
2951
|
-
items:
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
3340
|
+
items: false,
|
|
3341
|
+
description: "The permissions in the policy. At least one of permission, prohibition, or obligation must be present.",
|
|
3342
|
+
prefixItems: [
|
|
3343
|
+
{
|
|
3344
|
+
$ref: "https://schema.twindev.org/odrl/OdrlPermission"
|
|
3345
|
+
}
|
|
3346
|
+
]
|
|
2955
3347
|
},
|
|
2956
3348
|
prohibition: {
|
|
2957
3349
|
type: "array",
|
|
2958
|
-
items:
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
3350
|
+
items: false,
|
|
3351
|
+
description: "The prohibitions in the policy. At least one of permission, prohibition, or obligation must be present.",
|
|
3352
|
+
prefixItems: [
|
|
3353
|
+
{
|
|
3354
|
+
$ref: "https://schema.twindev.org/odrl/OdrlProhibition"
|
|
3355
|
+
}
|
|
3356
|
+
]
|
|
2962
3357
|
},
|
|
2963
3358
|
obligation: {
|
|
2964
3359
|
type: "array",
|
|
2965
|
-
items:
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
3360
|
+
items: false,
|
|
3361
|
+
description: "The obligations in the policy. At least one of permission, prohibition, or obligation must be present.",
|
|
3362
|
+
prefixItems: [
|
|
3363
|
+
{
|
|
3364
|
+
$ref: "https://schema.twindev.org/odrl/OdrlDuty"
|
|
3365
|
+
}
|
|
3366
|
+
]
|
|
2969
3367
|
}
|
|
2970
3368
|
};
|
|
2971
3369
|
var required = [
|
|
@@ -2998,13 +3396,14 @@ var additionalProperties = {
|
|
|
2998
3396
|
}
|
|
2999
3397
|
]
|
|
3000
3398
|
};
|
|
3001
|
-
var description = "Interface representing an ODRL Set. A Set is a basic policy type with no specific party requirements.";
|
|
3002
3399
|
var OdrlSetSchema = {
|
|
3400
|
+
$schema: $schema,
|
|
3401
|
+
$id: $id,
|
|
3402
|
+
description: description,
|
|
3003
3403
|
type: type,
|
|
3004
3404
|
properties: properties,
|
|
3005
3405
|
required: required,
|
|
3006
|
-
additionalProperties: additionalProperties
|
|
3007
|
-
description: description
|
|
3406
|
+
additionalProperties: additionalProperties
|
|
3008
3407
|
};
|
|
3009
3408
|
|
|
3010
3409
|
// Copyright 2024 IOTA Stiftung.
|