@twin.org/standards-w3c-odrl 0.0.1-next.46 → 0.0.1-next.48
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 +1123 -724
- package/dist/esm/index.mjs +1123 -724
- 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,41 +97,50 @@ 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": {
|
|
103
|
-
$ref: "https://schema.twindev.org/
|
|
106
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
|
|
104
107
|
},
|
|
105
108
|
"@id": {
|
|
106
109
|
type: "string",
|
|
107
110
|
description: "Direct action identifier. Used in simple action references."
|
|
108
111
|
},
|
|
109
112
|
"@included": {
|
|
110
|
-
$ref: "https://schema.twindev.org/
|
|
113
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
111
114
|
},
|
|
112
115
|
"@graph": {
|
|
113
116
|
anyOf: [
|
|
114
117
|
{
|
|
115
|
-
$ref: "https://schema.twindev.org/
|
|
118
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
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
|
},
|
|
125
131
|
"@nest": {
|
|
126
132
|
anyOf: [
|
|
127
133
|
{
|
|
128
|
-
$ref: "https://schema.twindev.org/
|
|
134
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
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,45 +215,52 @@ 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 = {
|
|
210
228
|
anyOf: [
|
|
211
229
|
{
|
|
212
|
-
$ref: "https://schema.twindev.org/
|
|
230
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
213
231
|
},
|
|
214
232
|
{
|
|
215
|
-
$ref: "https://schema.twindev.org/
|
|
233
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
216
234
|
},
|
|
217
235
|
{
|
|
218
|
-
$ref: "https://schema.twindev.org/
|
|
236
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
219
237
|
},
|
|
220
238
|
{
|
|
221
|
-
$ref: "https://schema.twindev.org/
|
|
239
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
222
240
|
},
|
|
223
241
|
{
|
|
224
|
-
$ref: "https://schema.twindev.org/
|
|
242
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
225
243
|
},
|
|
226
244
|
{
|
|
227
|
-
$ref: "https://schema.twindev.org/
|
|
245
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
228
246
|
},
|
|
229
247
|
{
|
|
230
248
|
type: "array"
|
|
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,38 +274,47 @@ 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
|
},
|
|
261
286
|
"@included": {
|
|
262
|
-
$ref: "https://schema.twindev.org/
|
|
287
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
263
288
|
},
|
|
264
289
|
"@graph": {
|
|
265
290
|
anyOf: [
|
|
266
291
|
{
|
|
267
|
-
$ref: "https://schema.twindev.org/
|
|
292
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
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
|
},
|
|
277
305
|
"@nest": {
|
|
278
306
|
anyOf: [
|
|
279
307
|
{
|
|
280
|
-
$ref: "https://schema.twindev.org/
|
|
308
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
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 = [
|
|
@@ -439,41 +491,45 @@ var required$6 = [
|
|
|
439
491
|
var additionalProperties$e = {
|
|
440
492
|
anyOf: [
|
|
441
493
|
{
|
|
442
|
-
$ref: "https://schema.twindev.org/
|
|
494
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
443
495
|
},
|
|
444
496
|
{
|
|
445
|
-
$ref: "https://schema.twindev.org/
|
|
497
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
446
498
|
},
|
|
447
499
|
{
|
|
448
|
-
$ref: "https://schema.twindev.org/
|
|
500
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
449
501
|
},
|
|
450
502
|
{
|
|
451
|
-
$ref: "https://schema.twindev.org/
|
|
503
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
452
504
|
},
|
|
453
505
|
{
|
|
454
|
-
$ref: "https://schema.twindev.org/
|
|
506
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
455
507
|
},
|
|
456
508
|
{
|
|
457
|
-
$ref: "https://schema.twindev.org/
|
|
509
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
458
510
|
},
|
|
459
511
|
{
|
|
460
512
|
type: "array"
|
|
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": {
|
|
476
|
-
$ref: "https://schema.twindev.org/
|
|
532
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
|
|
477
533
|
},
|
|
478
534
|
"@id": {
|
|
479
535
|
anyOf: [
|
|
@@ -482,38 +538,47 @@ 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
|
},
|
|
491
550
|
"@included": {
|
|
492
|
-
$ref: "https://schema.twindev.org/
|
|
551
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
493
552
|
},
|
|
494
553
|
"@graph": {
|
|
495
554
|
anyOf: [
|
|
496
555
|
{
|
|
497
|
-
$ref: "https://schema.twindev.org/
|
|
556
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
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
|
},
|
|
507
569
|
"@nest": {
|
|
508
570
|
anyOf: [
|
|
509
571
|
{
|
|
510
|
-
$ref: "https://schema.twindev.org/
|
|
572
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
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
|
},
|
|
@@ -553,40 +618,44 @@ var properties$d = {
|
|
|
553
618
|
var additionalProperties$d = {
|
|
554
619
|
anyOf: [
|
|
555
620
|
{
|
|
556
|
-
$ref: "https://schema.twindev.org/
|
|
621
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
557
622
|
},
|
|
558
623
|
{
|
|
559
|
-
$ref: "https://schema.twindev.org/
|
|
624
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
560
625
|
},
|
|
561
626
|
{
|
|
562
|
-
$ref: "https://schema.twindev.org/
|
|
627
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
563
628
|
},
|
|
564
629
|
{
|
|
565
|
-
$ref: "https://schema.twindev.org/
|
|
630
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
566
631
|
},
|
|
567
632
|
{
|
|
568
|
-
$ref: "https://schema.twindev.org/
|
|
633
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
569
634
|
},
|
|
570
635
|
{
|
|
571
|
-
$ref: "https://schema.twindev.org/
|
|
636
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
572
637
|
},
|
|
573
638
|
{
|
|
574
639
|
type: "array"
|
|
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": {
|
|
589
|
-
$ref: "https://schema.twindev.org/
|
|
658
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
|
|
590
659
|
},
|
|
591
660
|
"@id": {
|
|
592
661
|
anyOf: [
|
|
@@ -595,38 +664,47 @@ 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
|
},
|
|
604
676
|
"@included": {
|
|
605
|
-
$ref: "https://schema.twindev.org/
|
|
677
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
606
678
|
},
|
|
607
679
|
"@graph": {
|
|
608
680
|
anyOf: [
|
|
609
681
|
{
|
|
610
|
-
$ref: "https://schema.twindev.org/
|
|
682
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
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
|
},
|
|
620
695
|
"@nest": {
|
|
621
696
|
anyOf: [
|
|
622
697
|
{
|
|
623
|
-
$ref: "https://schema.twindev.org/
|
|
698
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
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 = [
|
|
@@ -680,41 +761,45 @@ var required$5 = [
|
|
|
680
761
|
var additionalProperties$c = {
|
|
681
762
|
anyOf: [
|
|
682
763
|
{
|
|
683
|
-
$ref: "https://schema.twindev.org/
|
|
764
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
684
765
|
},
|
|
685
766
|
{
|
|
686
|
-
$ref: "https://schema.twindev.org/
|
|
767
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
687
768
|
},
|
|
688
769
|
{
|
|
689
|
-
$ref: "https://schema.twindev.org/
|
|
770
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
690
771
|
},
|
|
691
772
|
{
|
|
692
|
-
$ref: "https://schema.twindev.org/
|
|
773
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
693
774
|
},
|
|
694
775
|
{
|
|
695
|
-
$ref: "https://schema.twindev.org/
|
|
776
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
696
777
|
},
|
|
697
778
|
{
|
|
698
|
-
$ref: "https://schema.twindev.org/
|
|
779
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
699
780
|
},
|
|
700
781
|
{
|
|
701
782
|
type: "array"
|
|
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": {
|
|
717
|
-
$ref: "https://schema.twindev.org/
|
|
802
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
|
|
718
803
|
},
|
|
719
804
|
"@id": {
|
|
720
805
|
anyOf: [
|
|
@@ -723,38 +808,47 @@ 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
|
},
|
|
732
820
|
"@included": {
|
|
733
|
-
$ref: "https://schema.twindev.org/
|
|
821
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
734
822
|
},
|
|
735
823
|
"@graph": {
|
|
736
824
|
anyOf: [
|
|
737
825
|
{
|
|
738
|
-
$ref: "https://schema.twindev.org/
|
|
826
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
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
|
},
|
|
748
839
|
"@nest": {
|
|
749
840
|
anyOf: [
|
|
750
841
|
{
|
|
751
|
-
$ref: "https://schema.twindev.org/
|
|
842
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
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
|
},
|
|
@@ -858,98 +955,93 @@ var required$4 = [
|
|
|
858
955
|
var additionalProperties$b = {
|
|
859
956
|
anyOf: [
|
|
860
957
|
{
|
|
861
|
-
$ref: "https://schema.twindev.org/
|
|
958
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
862
959
|
},
|
|
863
960
|
{
|
|
864
|
-
$ref: "https://schema.twindev.org/
|
|
961
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
865
962
|
},
|
|
866
963
|
{
|
|
867
|
-
$ref: "https://schema.twindev.org/
|
|
964
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
868
965
|
},
|
|
869
966
|
{
|
|
870
|
-
$ref: "https://schema.twindev.org/
|
|
967
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
871
968
|
},
|
|
872
969
|
{
|
|
873
|
-
$ref: "https://schema.twindev.org/
|
|
970
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
874
971
|
},
|
|
875
972
|
{
|
|
876
|
-
$ref: "https://schema.twindev.org/
|
|
973
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
877
974
|
},
|
|
878
975
|
{
|
|
879
976
|
type: "array"
|
|
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/odrl/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/"
|
|
917
1008
|
},
|
|
918
1009
|
{
|
|
919
|
-
$ref: "https://schema.twindev.org/
|
|
1010
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
920
1011
|
}
|
|
921
|
-
]
|
|
922
|
-
additionalItems: {
|
|
923
|
-
$ref: "https://schema.twindev.org/odrl/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
|
-
$ref: "https://schema.twindev.org/
|
|
1022
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
932
1023
|
},
|
|
933
1024
|
{
|
|
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/odrl/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": {
|
|
952
|
-
$ref: "https://schema.twindev.org/
|
|
1044
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
|
|
953
1045
|
},
|
|
954
1046
|
"@id": {
|
|
955
1047
|
anyOf: [
|
|
@@ -958,38 +1050,47 @@ 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
|
},
|
|
967
1062
|
"@included": {
|
|
968
|
-
$ref: "https://schema.twindev.org/
|
|
1063
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
969
1064
|
},
|
|
970
1065
|
"@graph": {
|
|
971
1066
|
anyOf: [
|
|
972
1067
|
{
|
|
973
|
-
$ref: "https://schema.twindev.org/
|
|
1068
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
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
|
},
|
|
983
1081
|
"@nest": {
|
|
984
1082
|
anyOf: [
|
|
985
1083
|
{
|
|
986
|
-
$ref: "https://schema.twindev.org/
|
|
1084
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
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",
|
|
@@ -1130,40 +1249,44 @@ var properties$a = {
|
|
|
1130
1249
|
var additionalProperties$a = {
|
|
1131
1250
|
anyOf: [
|
|
1132
1251
|
{
|
|
1133
|
-
$ref: "https://schema.twindev.org/
|
|
1252
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
1134
1253
|
},
|
|
1135
1254
|
{
|
|
1136
|
-
$ref: "https://schema.twindev.org/
|
|
1255
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
1137
1256
|
},
|
|
1138
1257
|
{
|
|
1139
|
-
$ref: "https://schema.twindev.org/
|
|
1258
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
1140
1259
|
},
|
|
1141
1260
|
{
|
|
1142
|
-
$ref: "https://schema.twindev.org/
|
|
1261
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
1143
1262
|
},
|
|
1144
1263
|
{
|
|
1145
|
-
$ref: "https://schema.twindev.org/
|
|
1264
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
1146
1265
|
},
|
|
1147
1266
|
{
|
|
1148
|
-
$ref: "https://schema.twindev.org/
|
|
1267
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
1149
1268
|
},
|
|
1150
1269
|
{
|
|
1151
1270
|
type: "array"
|
|
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": {
|
|
1166
|
-
$ref: "https://schema.twindev.org/
|
|
1289
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
|
|
1167
1290
|
},
|
|
1168
1291
|
"@id": {
|
|
1169
1292
|
anyOf: [
|
|
@@ -1172,38 +1295,47 @@ 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
|
},
|
|
1181
1307
|
"@included": {
|
|
1182
|
-
$ref: "https://schema.twindev.org/
|
|
1308
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
1183
1309
|
},
|
|
1184
1310
|
"@graph": {
|
|
1185
1311
|
anyOf: [
|
|
1186
1312
|
{
|
|
1187
|
-
$ref: "https://schema.twindev.org/
|
|
1313
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
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
|
},
|
|
1197
1326
|
"@nest": {
|
|
1198
1327
|
anyOf: [
|
|
1199
1328
|
{
|
|
1200
|
-
$ref: "https://schema.twindev.org/
|
|
1329
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
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: [
|
|
@@ -1337,36 +1484,40 @@ var properties$9 = {
|
|
|
1337
1484
|
var additionalProperties$9 = {
|
|
1338
1485
|
anyOf: [
|
|
1339
1486
|
{
|
|
1340
|
-
$ref: "https://schema.twindev.org/
|
|
1487
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
1341
1488
|
},
|
|
1342
1489
|
{
|
|
1343
|
-
$ref: "https://schema.twindev.org/
|
|
1490
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
1344
1491
|
},
|
|
1345
1492
|
{
|
|
1346
|
-
$ref: "https://schema.twindev.org/
|
|
1493
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
1347
1494
|
},
|
|
1348
1495
|
{
|
|
1349
|
-
$ref: "https://schema.twindev.org/
|
|
1496
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
1350
1497
|
},
|
|
1351
1498
|
{
|
|
1352
|
-
$ref: "https://schema.twindev.org/
|
|
1499
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
1353
1500
|
},
|
|
1354
1501
|
{
|
|
1355
|
-
$ref: "https://schema.twindev.org/
|
|
1502
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
1356
1503
|
},
|
|
1357
1504
|
{
|
|
1358
1505
|
type: "array"
|
|
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,38 +1531,47 @@ 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
|
},
|
|
1389
1543
|
"@included": {
|
|
1390
|
-
$ref: "https://schema.twindev.org/
|
|
1544
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
1391
1545
|
},
|
|
1392
1546
|
"@graph": {
|
|
1393
1547
|
anyOf: [
|
|
1394
1548
|
{
|
|
1395
|
-
$ref: "https://schema.twindev.org/
|
|
1549
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
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
|
},
|
|
1405
1562
|
"@nest": {
|
|
1406
1563
|
anyOf: [
|
|
1407
1564
|
{
|
|
1408
|
-
$ref: "https://schema.twindev.org/
|
|
1565
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
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 = [
|
|
@@ -1566,41 +1747,45 @@ var required$3 = [
|
|
|
1566
1747
|
var additionalProperties$8 = {
|
|
1567
1748
|
anyOf: [
|
|
1568
1749
|
{
|
|
1569
|
-
$ref: "https://schema.twindev.org/
|
|
1750
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
1570
1751
|
},
|
|
1571
1752
|
{
|
|
1572
|
-
$ref: "https://schema.twindev.org/
|
|
1753
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
1573
1754
|
},
|
|
1574
1755
|
{
|
|
1575
|
-
$ref: "https://schema.twindev.org/
|
|
1756
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
1576
1757
|
},
|
|
1577
1758
|
{
|
|
1578
|
-
$ref: "https://schema.twindev.org/
|
|
1759
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
1579
1760
|
},
|
|
1580
1761
|
{
|
|
1581
|
-
$ref: "https://schema.twindev.org/
|
|
1762
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
1582
1763
|
},
|
|
1583
1764
|
{
|
|
1584
|
-
$ref: "https://schema.twindev.org/
|
|
1765
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
1585
1766
|
},
|
|
1586
1767
|
{
|
|
1587
1768
|
type: "array"
|
|
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": {
|
|
1603
|
-
$ref: "https://schema.twindev.org/
|
|
1788
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
|
|
1604
1789
|
},
|
|
1605
1790
|
"@id": {
|
|
1606
1791
|
anyOf: [
|
|
@@ -1609,38 +1794,47 @@ 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
|
},
|
|
1618
1806
|
"@included": {
|
|
1619
|
-
$ref: "https://schema.twindev.org/
|
|
1807
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
1620
1808
|
},
|
|
1621
1809
|
"@graph": {
|
|
1622
1810
|
anyOf: [
|
|
1623
1811
|
{
|
|
1624
|
-
$ref: "https://schema.twindev.org/
|
|
1812
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
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
|
},
|
|
1634
1825
|
"@nest": {
|
|
1635
1826
|
anyOf: [
|
|
1636
1827
|
{
|
|
1637
|
-
$ref: "https://schema.twindev.org/
|
|
1828
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
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\")."
|
|
@@ -1694,40 +1891,44 @@ var properties$7 = {
|
|
|
1694
1891
|
var additionalProperties$7 = {
|
|
1695
1892
|
anyOf: [
|
|
1696
1893
|
{
|
|
1697
|
-
$ref: "https://schema.twindev.org/
|
|
1894
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
1698
1895
|
},
|
|
1699
1896
|
{
|
|
1700
|
-
$ref: "https://schema.twindev.org/
|
|
1897
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
1701
1898
|
},
|
|
1702
1899
|
{
|
|
1703
|
-
$ref: "https://schema.twindev.org/
|
|
1900
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
1704
1901
|
},
|
|
1705
1902
|
{
|
|
1706
|
-
$ref: "https://schema.twindev.org/
|
|
1903
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
1707
1904
|
},
|
|
1708
1905
|
{
|
|
1709
|
-
$ref: "https://schema.twindev.org/
|
|
1906
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
1710
1907
|
},
|
|
1711
1908
|
{
|
|
1712
|
-
$ref: "https://schema.twindev.org/
|
|
1909
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
1713
1910
|
},
|
|
1714
1911
|
{
|
|
1715
1912
|
type: "array"
|
|
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": {
|
|
1730
|
-
$ref: "https://schema.twindev.org/
|
|
1931
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
|
|
1731
1932
|
},
|
|
1732
1933
|
"@id": {
|
|
1733
1934
|
anyOf: [
|
|
@@ -1736,38 +1937,47 @@ 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
|
},
|
|
1745
1949
|
"@included": {
|
|
1746
|
-
$ref: "https://schema.twindev.org/
|
|
1950
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
1747
1951
|
},
|
|
1748
1952
|
"@graph": {
|
|
1749
1953
|
anyOf: [
|
|
1750
1954
|
{
|
|
1751
|
-
$ref: "https://schema.twindev.org/
|
|
1955
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
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
|
},
|
|
1761
1968
|
"@nest": {
|
|
1762
1969
|
anyOf: [
|
|
1763
1970
|
{
|
|
1764
|
-
$ref: "https://schema.twindev.org/
|
|
1971
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
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 = [
|
|
@@ -1835,41 +2051,45 @@ var required$2 = [
|
|
|
1835
2051
|
var additionalProperties$6 = {
|
|
1836
2052
|
anyOf: [
|
|
1837
2053
|
{
|
|
1838
|
-
$ref: "https://schema.twindev.org/
|
|
2054
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
1839
2055
|
},
|
|
1840
2056
|
{
|
|
1841
|
-
$ref: "https://schema.twindev.org/
|
|
2057
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
1842
2058
|
},
|
|
1843
2059
|
{
|
|
1844
|
-
$ref: "https://schema.twindev.org/
|
|
2060
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
1845
2061
|
},
|
|
1846
2062
|
{
|
|
1847
|
-
$ref: "https://schema.twindev.org/
|
|
2063
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
1848
2064
|
},
|
|
1849
2065
|
{
|
|
1850
|
-
$ref: "https://schema.twindev.org/
|
|
2066
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
1851
2067
|
},
|
|
1852
2068
|
{
|
|
1853
|
-
$ref: "https://schema.twindev.org/
|
|
2069
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
1854
2070
|
},
|
|
1855
2071
|
{
|
|
1856
2072
|
type: "array"
|
|
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": {
|
|
1872
|
-
$ref: "https://schema.twindev.org/
|
|
2092
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
|
|
1873
2093
|
},
|
|
1874
2094
|
"@id": {
|
|
1875
2095
|
anyOf: [
|
|
@@ -1878,38 +2098,47 @@ 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
|
},
|
|
1887
2110
|
"@included": {
|
|
1888
|
-
$ref: "https://schema.twindev.org/
|
|
2111
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
1889
2112
|
},
|
|
1890
2113
|
"@graph": {
|
|
1891
2114
|
anyOf: [
|
|
1892
2115
|
{
|
|
1893
|
-
$ref: "https://schema.twindev.org/
|
|
2116
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
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
|
},
|
|
1903
2129
|
"@nest": {
|
|
1904
2130
|
anyOf: [
|
|
1905
2131
|
{
|
|
1906
|
-
$ref: "https://schema.twindev.org/
|
|
2132
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
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,45 +2263,52 @@ 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 = {
|
|
2032
2276
|
anyOf: [
|
|
2033
2277
|
{
|
|
2034
|
-
$ref: "https://schema.twindev.org/
|
|
2278
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
2035
2279
|
},
|
|
2036
2280
|
{
|
|
2037
|
-
$ref: "https://schema.twindev.org/
|
|
2281
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
2038
2282
|
},
|
|
2039
2283
|
{
|
|
2040
|
-
$ref: "https://schema.twindev.org/
|
|
2284
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
2041
2285
|
},
|
|
2042
2286
|
{
|
|
2043
|
-
$ref: "https://schema.twindev.org/
|
|
2287
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
2044
2288
|
},
|
|
2045
2289
|
{
|
|
2046
|
-
$ref: "https://schema.twindev.org/
|
|
2290
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
2047
2291
|
},
|
|
2048
2292
|
{
|
|
2049
|
-
$ref: "https://schema.twindev.org/
|
|
2293
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
2050
2294
|
},
|
|
2051
2295
|
{
|
|
2052
2296
|
type: "array"
|
|
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,34 +2316,53 @@ 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/
|
|
2335
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
2075
2336
|
},
|
|
2076
2337
|
"@graph": {
|
|
2077
2338
|
anyOf: [
|
|
2078
2339
|
{
|
|
2079
|
-
$ref: "https://schema.twindev.org/
|
|
2340
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
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
|
},
|
|
2089
2353
|
"@nest": {
|
|
2090
2354
|
anyOf: [
|
|
2091
2355
|
{
|
|
2092
|
-
$ref: "https://schema.twindev.org/
|
|
2356
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
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 = [
|
|
@@ -2248,37 +2536,41 @@ var required$1 = [
|
|
|
2248
2536
|
var additionalProperties$4 = {
|
|
2249
2537
|
anyOf: [
|
|
2250
2538
|
{
|
|
2251
|
-
$ref: "https://schema.twindev.org/
|
|
2539
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
2252
2540
|
},
|
|
2253
2541
|
{
|
|
2254
|
-
$ref: "https://schema.twindev.org/
|
|
2542
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
2255
2543
|
},
|
|
2256
2544
|
{
|
|
2257
|
-
$ref: "https://schema.twindev.org/
|
|
2545
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
2258
2546
|
},
|
|
2259
2547
|
{
|
|
2260
|
-
$ref: "https://schema.twindev.org/
|
|
2548
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
2261
2549
|
},
|
|
2262
2550
|
{
|
|
2263
|
-
$ref: "https://schema.twindev.org/
|
|
2551
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
2264
2552
|
},
|
|
2265
2553
|
{
|
|
2266
|
-
$ref: "https://schema.twindev.org/
|
|
2554
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
2267
2555
|
},
|
|
2268
2556
|
{
|
|
2269
2557
|
type: "array"
|
|
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,18 +2698,22 @@ 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": {
|
|
2411
|
-
$ref: "https://schema.twindev.org/
|
|
2716
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
|
|
2412
2717
|
},
|
|
2413
2718
|
"@id": {
|
|
2414
2719
|
anyOf: [
|
|
@@ -2417,38 +2722,47 @@ 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
|
},
|
|
2426
2734
|
"@included": {
|
|
2427
|
-
$ref: "https://schema.twindev.org/
|
|
2735
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
2428
2736
|
},
|
|
2429
2737
|
"@graph": {
|
|
2430
2738
|
anyOf: [
|
|
2431
2739
|
{
|
|
2432
|
-
$ref: "https://schema.twindev.org/
|
|
2740
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
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
|
},
|
|
2442
2753
|
"@nest": {
|
|
2443
2754
|
anyOf: [
|
|
2444
2755
|
{
|
|
2445
|
-
$ref: "https://schema.twindev.org/
|
|
2756
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
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,49 +2887,56 @@ 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 = {
|
|
2571
2900
|
anyOf: [
|
|
2572
2901
|
{
|
|
2573
|
-
$ref: "https://schema.twindev.org/
|
|
2902
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
2574
2903
|
},
|
|
2575
2904
|
{
|
|
2576
|
-
$ref: "https://schema.twindev.org/
|
|
2905
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
2577
2906
|
},
|
|
2578
2907
|
{
|
|
2579
|
-
$ref: "https://schema.twindev.org/
|
|
2908
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
2580
2909
|
},
|
|
2581
2910
|
{
|
|
2582
|
-
$ref: "https://schema.twindev.org/
|
|
2911
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
2583
2912
|
},
|
|
2584
2913
|
{
|
|
2585
|
-
$ref: "https://schema.twindev.org/
|
|
2914
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
2586
2915
|
},
|
|
2587
2916
|
{
|
|
2588
|
-
$ref: "https://schema.twindev.org/
|
|
2917
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
2589
2918
|
},
|
|
2590
2919
|
{
|
|
2591
2920
|
type: "array"
|
|
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": {
|
|
2606
|
-
$ref: "https://schema.twindev.org/
|
|
2939
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
|
|
2607
2940
|
},
|
|
2608
2941
|
"@id": {
|
|
2609
2942
|
anyOf: [
|
|
@@ -2612,38 +2945,47 @@ 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
|
},
|
|
2621
2957
|
"@included": {
|
|
2622
|
-
$ref: "https://schema.twindev.org/
|
|
2958
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
2623
2959
|
},
|
|
2624
2960
|
"@graph": {
|
|
2625
2961
|
anyOf: [
|
|
2626
2962
|
{
|
|
2627
|
-
$ref: "https://schema.twindev.org/
|
|
2963
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
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
|
},
|
|
2637
2976
|
"@nest": {
|
|
2638
2977
|
anyOf: [
|
|
2639
2978
|
{
|
|
2640
|
-
$ref: "https://schema.twindev.org/
|
|
2979
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
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",
|
|
@@ -2758,36 +3112,40 @@ var properties$1 = {
|
|
|
2758
3112
|
var additionalProperties$1 = {
|
|
2759
3113
|
anyOf: [
|
|
2760
3114
|
{
|
|
2761
|
-
$ref: "https://schema.twindev.org/
|
|
3115
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
2762
3116
|
},
|
|
2763
3117
|
{
|
|
2764
|
-
$ref: "https://schema.twindev.org/
|
|
3118
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
2765
3119
|
},
|
|
2766
3120
|
{
|
|
2767
|
-
$ref: "https://schema.twindev.org/
|
|
3121
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
2768
3122
|
},
|
|
2769
3123
|
{
|
|
2770
|
-
$ref: "https://schema.twindev.org/
|
|
3124
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
2771
3125
|
},
|
|
2772
3126
|
{
|
|
2773
|
-
$ref: "https://schema.twindev.org/
|
|
3127
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
2774
3128
|
},
|
|
2775
3129
|
{
|
|
2776
|
-
$ref: "https://schema.twindev.org/
|
|
3130
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
2777
3131
|
},
|
|
2778
3132
|
{
|
|
2779
3133
|
type: "array"
|
|
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,34 +3153,53 @@ 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/
|
|
3172
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
2802
3173
|
},
|
|
2803
3174
|
"@graph": {
|
|
2804
3175
|
anyOf: [
|
|
2805
3176
|
{
|
|
2806
|
-
$ref: "https://schema.twindev.org/
|
|
3177
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
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
|
},
|
|
2816
3190
|
"@nest": {
|
|
2817
3191
|
anyOf: [
|
|
2818
3192
|
{
|
|
2819
|
-
$ref: "https://schema.twindev.org/
|
|
3193
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
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 = [
|
|
@@ -2976,35 +3374,36 @@ var required = [
|
|
|
2976
3374
|
var additionalProperties = {
|
|
2977
3375
|
anyOf: [
|
|
2978
3376
|
{
|
|
2979
|
-
$ref: "https://schema.twindev.org/
|
|
3377
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
2980
3378
|
},
|
|
2981
3379
|
{
|
|
2982
|
-
$ref: "https://schema.twindev.org/
|
|
3380
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
2983
3381
|
},
|
|
2984
3382
|
{
|
|
2985
|
-
$ref: "https://schema.twindev.org/
|
|
3383
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
2986
3384
|
},
|
|
2987
3385
|
{
|
|
2988
|
-
$ref: "https://schema.twindev.org/
|
|
3386
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
2989
3387
|
},
|
|
2990
3388
|
{
|
|
2991
|
-
$ref: "https://schema.twindev.org/
|
|
3389
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
2992
3390
|
},
|
|
2993
3391
|
{
|
|
2994
|
-
$ref: "https://schema.twindev.org/
|
|
3392
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
2995
3393
|
},
|
|
2996
3394
|
{
|
|
2997
3395
|
type: "array"
|
|
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.
|