@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/esm/index.mjs
CHANGED
|
@@ -95,41 +95,50 @@ const OdrlTypes = {
|
|
|
95
95
|
PolicyMetadata: "PolicyMetadata"
|
|
96
96
|
};
|
|
97
97
|
|
|
98
|
+
var $schema$g = "https://json-schema.org/draft/2020-12/schema";
|
|
99
|
+
var $id$g = "https://schema.twindev.org/odrl/OdrlAction";
|
|
100
|
+
var description$g = "Interface for ODRL Actions.";
|
|
98
101
|
var type$f = "object";
|
|
99
102
|
var properties$f = {
|
|
100
103
|
"@context": {
|
|
101
|
-
$ref: "https://schema.twindev.org/
|
|
104
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
|
|
102
105
|
},
|
|
103
106
|
"@id": {
|
|
104
107
|
type: "string",
|
|
105
108
|
description: "Direct action identifier. Used in simple action references."
|
|
106
109
|
},
|
|
107
110
|
"@included": {
|
|
108
|
-
$ref: "https://schema.twindev.org/
|
|
111
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
109
112
|
},
|
|
110
113
|
"@graph": {
|
|
111
114
|
anyOf: [
|
|
112
115
|
{
|
|
113
|
-
$ref: "https://schema.twindev.org/
|
|
116
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
114
117
|
},
|
|
115
118
|
{
|
|
116
119
|
type: "array",
|
|
117
|
-
items:
|
|
118
|
-
|
|
119
|
-
|
|
120
|
+
items: false,
|
|
121
|
+
prefixItems: [
|
|
122
|
+
{
|
|
123
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
124
|
+
}
|
|
125
|
+
]
|
|
120
126
|
}
|
|
121
127
|
]
|
|
122
128
|
},
|
|
123
129
|
"@nest": {
|
|
124
130
|
anyOf: [
|
|
125
131
|
{
|
|
126
|
-
$ref: "https://schema.twindev.org/
|
|
132
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
127
133
|
},
|
|
128
134
|
{
|
|
129
135
|
type: "array",
|
|
130
|
-
items:
|
|
131
|
-
|
|
132
|
-
|
|
136
|
+
items: false,
|
|
137
|
+
prefixItems: [
|
|
138
|
+
{
|
|
139
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
140
|
+
}
|
|
141
|
+
]
|
|
133
142
|
}
|
|
134
143
|
]
|
|
135
144
|
},
|
|
@@ -140,9 +149,12 @@ var properties$f = {
|
|
|
140
149
|
},
|
|
141
150
|
{
|
|
142
151
|
type: "array",
|
|
143
|
-
items:
|
|
144
|
-
|
|
145
|
-
|
|
152
|
+
items: false,
|
|
153
|
+
prefixItems: [
|
|
154
|
+
{
|
|
155
|
+
type: "string"
|
|
156
|
+
}
|
|
157
|
+
]
|
|
146
158
|
}
|
|
147
159
|
]
|
|
148
160
|
},
|
|
@@ -178,16 +190,19 @@ var properties$f = {
|
|
|
178
190
|
},
|
|
179
191
|
{
|
|
180
192
|
type: "array",
|
|
181
|
-
items:
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
193
|
+
items: false,
|
|
194
|
+
prefixItems: [
|
|
195
|
+
{
|
|
196
|
+
anyOf: [
|
|
197
|
+
{
|
|
198
|
+
$ref: "https://schema.twindev.org/odrl/OdrlConstraint"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
$ref: "https://schema.twindev.org/odrl/OdrlLogicalConstraint"
|
|
202
|
+
}
|
|
203
|
+
]
|
|
204
|
+
}
|
|
205
|
+
]
|
|
191
206
|
}
|
|
192
207
|
],
|
|
193
208
|
description: "Refinements applied to the action."
|
|
@@ -198,45 +213,52 @@ var properties$f = {
|
|
|
198
213
|
},
|
|
199
214
|
implies: {
|
|
200
215
|
type: "array",
|
|
201
|
-
items:
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
216
|
+
items: false,
|
|
217
|
+
description: "References to actions this action implies.",
|
|
218
|
+
prefixItems: [
|
|
219
|
+
{
|
|
220
|
+
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
221
|
+
}
|
|
222
|
+
]
|
|
205
223
|
}
|
|
206
224
|
};
|
|
207
225
|
var additionalProperties$f = {
|
|
208
226
|
anyOf: [
|
|
209
227
|
{
|
|
210
|
-
$ref: "https://schema.twindev.org/
|
|
228
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
211
229
|
},
|
|
212
230
|
{
|
|
213
|
-
$ref: "https://schema.twindev.org/
|
|
231
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
214
232
|
},
|
|
215
233
|
{
|
|
216
|
-
$ref: "https://schema.twindev.org/
|
|
234
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
217
235
|
},
|
|
218
236
|
{
|
|
219
|
-
$ref: "https://schema.twindev.org/
|
|
237
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
220
238
|
},
|
|
221
239
|
{
|
|
222
|
-
$ref: "https://schema.twindev.org/
|
|
240
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
223
241
|
},
|
|
224
242
|
{
|
|
225
|
-
$ref: "https://schema.twindev.org/
|
|
243
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
226
244
|
},
|
|
227
245
|
{
|
|
228
246
|
type: "array"
|
|
229
247
|
}
|
|
230
248
|
]
|
|
231
249
|
};
|
|
232
|
-
var description$g = "Interface for ODRL Actions.";
|
|
233
250
|
var OdrlActionSchema = {
|
|
251
|
+
$schema: $schema$g,
|
|
252
|
+
$id: $id$g,
|
|
253
|
+
description: description$g,
|
|
234
254
|
type: type$f,
|
|
235
255
|
properties: properties$f,
|
|
236
|
-
additionalProperties: additionalProperties$f
|
|
237
|
-
description: description$g
|
|
256
|
+
additionalProperties: additionalProperties$f
|
|
238
257
|
};
|
|
239
258
|
|
|
259
|
+
var $schema$f = "https://json-schema.org/draft/2020-12/schema";
|
|
260
|
+
var $id$f = "https://schema.twindev.org/odrl/OdrlAgreement";
|
|
261
|
+
var description$f = "Interface representing an ODRL Agreement. An Agreement requires both an assigner and assignee (both agreeing parties).";
|
|
240
262
|
var type$e = "object";
|
|
241
263
|
var properties$e = {
|
|
242
264
|
"@context": {
|
|
@@ -250,38 +272,47 @@ var properties$e = {
|
|
|
250
272
|
},
|
|
251
273
|
{
|
|
252
274
|
type: "array",
|
|
253
|
-
items:
|
|
254
|
-
|
|
255
|
-
|
|
275
|
+
items: false,
|
|
276
|
+
prefixItems: [
|
|
277
|
+
{
|
|
278
|
+
type: "string"
|
|
279
|
+
}
|
|
280
|
+
]
|
|
256
281
|
}
|
|
257
282
|
]
|
|
258
283
|
},
|
|
259
284
|
"@included": {
|
|
260
|
-
$ref: "https://schema.twindev.org/
|
|
285
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
261
286
|
},
|
|
262
287
|
"@graph": {
|
|
263
288
|
anyOf: [
|
|
264
289
|
{
|
|
265
|
-
$ref: "https://schema.twindev.org/
|
|
290
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
266
291
|
},
|
|
267
292
|
{
|
|
268
293
|
type: "array",
|
|
269
|
-
items:
|
|
270
|
-
|
|
271
|
-
|
|
294
|
+
items: false,
|
|
295
|
+
prefixItems: [
|
|
296
|
+
{
|
|
297
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
298
|
+
}
|
|
299
|
+
]
|
|
272
300
|
}
|
|
273
301
|
]
|
|
274
302
|
},
|
|
275
303
|
"@nest": {
|
|
276
304
|
anyOf: [
|
|
277
305
|
{
|
|
278
|
-
$ref: "https://schema.twindev.org/
|
|
306
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
279
307
|
},
|
|
280
308
|
{
|
|
281
309
|
type: "array",
|
|
282
|
-
items:
|
|
283
|
-
|
|
284
|
-
|
|
310
|
+
items: false,
|
|
311
|
+
prefixItems: [
|
|
312
|
+
{
|
|
313
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
314
|
+
}
|
|
315
|
+
]
|
|
285
316
|
}
|
|
286
317
|
]
|
|
287
318
|
},
|
|
@@ -310,9 +341,12 @@ var properties$e = {
|
|
|
310
341
|
},
|
|
311
342
|
{
|
|
312
343
|
type: "array",
|
|
313
|
-
items:
|
|
314
|
-
|
|
315
|
-
|
|
344
|
+
items: false,
|
|
345
|
+
prefixItems: [
|
|
346
|
+
{
|
|
347
|
+
type: "string"
|
|
348
|
+
}
|
|
349
|
+
]
|
|
316
350
|
}
|
|
317
351
|
],
|
|
318
352
|
description: "The profile(s) this policy conforms to. IRIs identifying the ODRL Profile(s)."
|
|
@@ -349,16 +383,19 @@ var properties$e = {
|
|
|
349
383
|
},
|
|
350
384
|
{
|
|
351
385
|
type: "array",
|
|
352
|
-
items:
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
386
|
+
items: false,
|
|
387
|
+
prefixItems: [
|
|
388
|
+
{
|
|
389
|
+
anyOf: [
|
|
390
|
+
{
|
|
391
|
+
type: "string"
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAsset"
|
|
395
|
+
}
|
|
396
|
+
]
|
|
397
|
+
}
|
|
398
|
+
]
|
|
362
399
|
}
|
|
363
400
|
],
|
|
364
401
|
description: "The target asset for the rule."
|
|
@@ -373,16 +410,19 @@ var properties$e = {
|
|
|
373
410
|
},
|
|
374
411
|
{
|
|
375
412
|
type: "array",
|
|
376
|
-
items:
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
413
|
+
items: false,
|
|
414
|
+
prefixItems: [
|
|
415
|
+
{
|
|
416
|
+
anyOf: [
|
|
417
|
+
{
|
|
418
|
+
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAction"
|
|
422
|
+
}
|
|
423
|
+
]
|
|
424
|
+
}
|
|
425
|
+
]
|
|
386
426
|
}
|
|
387
427
|
],
|
|
388
428
|
description: "The action associated with the rule."
|
|
@@ -394,9 +434,12 @@ var properties$e = {
|
|
|
394
434
|
},
|
|
395
435
|
{
|
|
396
436
|
type: "array",
|
|
397
|
-
items:
|
|
398
|
-
|
|
399
|
-
|
|
437
|
+
items: false,
|
|
438
|
+
prefixItems: [
|
|
439
|
+
{
|
|
440
|
+
type: "string"
|
|
441
|
+
}
|
|
442
|
+
]
|
|
400
443
|
}
|
|
401
444
|
],
|
|
402
445
|
description: "The parent policy(ies) this policy inherits from. IRIs identifying the parent Policy(ies)."
|
|
@@ -407,24 +450,33 @@ var properties$e = {
|
|
|
407
450
|
},
|
|
408
451
|
permission: {
|
|
409
452
|
type: "array",
|
|
410
|
-
items:
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
453
|
+
items: false,
|
|
454
|
+
description: "The permissions in the policy. At least one of permission, prohibition, or obligation must be present.",
|
|
455
|
+
prefixItems: [
|
|
456
|
+
{
|
|
457
|
+
$ref: "https://schema.twindev.org/odrl/OdrlPermission"
|
|
458
|
+
}
|
|
459
|
+
]
|
|
414
460
|
},
|
|
415
461
|
prohibition: {
|
|
416
462
|
type: "array",
|
|
417
|
-
items:
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
463
|
+
items: false,
|
|
464
|
+
description: "The prohibitions in the policy. At least one of permission, prohibition, or obligation must be present.",
|
|
465
|
+
prefixItems: [
|
|
466
|
+
{
|
|
467
|
+
$ref: "https://schema.twindev.org/odrl/OdrlProhibition"
|
|
468
|
+
}
|
|
469
|
+
]
|
|
421
470
|
},
|
|
422
471
|
obligation: {
|
|
423
472
|
type: "array",
|
|
424
|
-
items:
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
473
|
+
items: false,
|
|
474
|
+
description: "The obligations in the policy. At least one of permission, prohibition, or obligation must be present.",
|
|
475
|
+
prefixItems: [
|
|
476
|
+
{
|
|
477
|
+
$ref: "https://schema.twindev.org/odrl/OdrlDuty"
|
|
478
|
+
}
|
|
479
|
+
]
|
|
428
480
|
}
|
|
429
481
|
};
|
|
430
482
|
var required$6 = [
|
|
@@ -437,41 +489,45 @@ var required$6 = [
|
|
|
437
489
|
var additionalProperties$e = {
|
|
438
490
|
anyOf: [
|
|
439
491
|
{
|
|
440
|
-
$ref: "https://schema.twindev.org/
|
|
492
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
441
493
|
},
|
|
442
494
|
{
|
|
443
|
-
$ref: "https://schema.twindev.org/
|
|
495
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
444
496
|
},
|
|
445
497
|
{
|
|
446
|
-
$ref: "https://schema.twindev.org/
|
|
498
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
447
499
|
},
|
|
448
500
|
{
|
|
449
|
-
$ref: "https://schema.twindev.org/
|
|
501
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
450
502
|
},
|
|
451
503
|
{
|
|
452
|
-
$ref: "https://schema.twindev.org/
|
|
504
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
453
505
|
},
|
|
454
506
|
{
|
|
455
|
-
$ref: "https://schema.twindev.org/
|
|
507
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
456
508
|
},
|
|
457
509
|
{
|
|
458
510
|
type: "array"
|
|
459
511
|
}
|
|
460
512
|
]
|
|
461
513
|
};
|
|
462
|
-
var description$f = "Interface representing an ODRL Agreement. An Agreement requires both an assigner and assignee (both agreeing parties).";
|
|
463
514
|
var OdrlAgreementSchema = {
|
|
515
|
+
$schema: $schema$f,
|
|
516
|
+
$id: $id$f,
|
|
517
|
+
description: description$f,
|
|
464
518
|
type: type$e,
|
|
465
519
|
properties: properties$e,
|
|
466
520
|
required: required$6,
|
|
467
|
-
additionalProperties: additionalProperties$e
|
|
468
|
-
description: description$f
|
|
521
|
+
additionalProperties: additionalProperties$e
|
|
469
522
|
};
|
|
470
523
|
|
|
524
|
+
var $schema$e = "https://json-schema.org/draft/2020-12/schema";
|
|
525
|
+
var $id$e = "https://schema.twindev.org/odrl/OdrlAsset";
|
|
526
|
+
var description$e = "Interface for ODRL Assets.";
|
|
471
527
|
var type$d = "object";
|
|
472
528
|
var properties$d = {
|
|
473
529
|
"@context": {
|
|
474
|
-
$ref: "https://schema.twindev.org/
|
|
530
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
|
|
475
531
|
},
|
|
476
532
|
"@id": {
|
|
477
533
|
anyOf: [
|
|
@@ -480,38 +536,47 @@ var properties$d = {
|
|
|
480
536
|
},
|
|
481
537
|
{
|
|
482
538
|
type: "array",
|
|
483
|
-
items:
|
|
484
|
-
|
|
485
|
-
|
|
539
|
+
items: false,
|
|
540
|
+
prefixItems: [
|
|
541
|
+
{
|
|
542
|
+
type: "string"
|
|
543
|
+
}
|
|
544
|
+
]
|
|
486
545
|
}
|
|
487
546
|
]
|
|
488
547
|
},
|
|
489
548
|
"@included": {
|
|
490
|
-
$ref: "https://schema.twindev.org/
|
|
549
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
491
550
|
},
|
|
492
551
|
"@graph": {
|
|
493
552
|
anyOf: [
|
|
494
553
|
{
|
|
495
|
-
$ref: "https://schema.twindev.org/
|
|
554
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
496
555
|
},
|
|
497
556
|
{
|
|
498
557
|
type: "array",
|
|
499
|
-
items:
|
|
500
|
-
|
|
501
|
-
|
|
558
|
+
items: false,
|
|
559
|
+
prefixItems: [
|
|
560
|
+
{
|
|
561
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
562
|
+
}
|
|
563
|
+
]
|
|
502
564
|
}
|
|
503
565
|
]
|
|
504
566
|
},
|
|
505
567
|
"@nest": {
|
|
506
568
|
anyOf: [
|
|
507
569
|
{
|
|
508
|
-
$ref: "https://schema.twindev.org/
|
|
570
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
509
571
|
},
|
|
510
572
|
{
|
|
511
573
|
type: "array",
|
|
512
|
-
items:
|
|
513
|
-
|
|
514
|
-
|
|
574
|
+
items: false,
|
|
575
|
+
prefixItems: [
|
|
576
|
+
{
|
|
577
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
578
|
+
}
|
|
579
|
+
]
|
|
515
580
|
}
|
|
516
581
|
]
|
|
517
582
|
},
|
|
@@ -551,40 +616,44 @@ var properties$d = {
|
|
|
551
616
|
var additionalProperties$d = {
|
|
552
617
|
anyOf: [
|
|
553
618
|
{
|
|
554
|
-
$ref: "https://schema.twindev.org/
|
|
619
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
555
620
|
},
|
|
556
621
|
{
|
|
557
|
-
$ref: "https://schema.twindev.org/
|
|
622
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
558
623
|
},
|
|
559
624
|
{
|
|
560
|
-
$ref: "https://schema.twindev.org/
|
|
625
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
561
626
|
},
|
|
562
627
|
{
|
|
563
|
-
$ref: "https://schema.twindev.org/
|
|
628
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
564
629
|
},
|
|
565
630
|
{
|
|
566
|
-
$ref: "https://schema.twindev.org/
|
|
631
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
567
632
|
},
|
|
568
633
|
{
|
|
569
|
-
$ref: "https://schema.twindev.org/
|
|
634
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
570
635
|
},
|
|
571
636
|
{
|
|
572
637
|
type: "array"
|
|
573
638
|
}
|
|
574
639
|
]
|
|
575
640
|
};
|
|
576
|
-
var description$e = "Interface for ODRL Assets.";
|
|
577
641
|
var OdrlAssetSchema = {
|
|
642
|
+
$schema: $schema$e,
|
|
643
|
+
$id: $id$e,
|
|
644
|
+
description: description$e,
|
|
578
645
|
type: type$d,
|
|
579
646
|
properties: properties$d,
|
|
580
|
-
additionalProperties: additionalProperties$d
|
|
581
|
-
description: description$e
|
|
647
|
+
additionalProperties: additionalProperties$d
|
|
582
648
|
};
|
|
583
649
|
|
|
650
|
+
var $schema$d = "https://json-schema.org/draft/2020-12/schema";
|
|
651
|
+
var $id$d = "https://schema.twindev.org/odrl/OdrlAssetCollection";
|
|
652
|
+
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.";
|
|
584
653
|
var type$c = "object";
|
|
585
654
|
var properties$c = {
|
|
586
655
|
"@context": {
|
|
587
|
-
$ref: "https://schema.twindev.org/
|
|
656
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
|
|
588
657
|
},
|
|
589
658
|
"@id": {
|
|
590
659
|
anyOf: [
|
|
@@ -593,38 +662,47 @@ var properties$c = {
|
|
|
593
662
|
},
|
|
594
663
|
{
|
|
595
664
|
type: "array",
|
|
596
|
-
items:
|
|
597
|
-
|
|
598
|
-
|
|
665
|
+
items: false,
|
|
666
|
+
prefixItems: [
|
|
667
|
+
{
|
|
668
|
+
type: "string"
|
|
669
|
+
}
|
|
670
|
+
]
|
|
599
671
|
}
|
|
600
672
|
]
|
|
601
673
|
},
|
|
602
674
|
"@included": {
|
|
603
|
-
$ref: "https://schema.twindev.org/
|
|
675
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
604
676
|
},
|
|
605
677
|
"@graph": {
|
|
606
678
|
anyOf: [
|
|
607
679
|
{
|
|
608
|
-
$ref: "https://schema.twindev.org/
|
|
680
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
609
681
|
},
|
|
610
682
|
{
|
|
611
683
|
type: "array",
|
|
612
|
-
items:
|
|
613
|
-
|
|
614
|
-
|
|
684
|
+
items: false,
|
|
685
|
+
prefixItems: [
|
|
686
|
+
{
|
|
687
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
688
|
+
}
|
|
689
|
+
]
|
|
615
690
|
}
|
|
616
691
|
]
|
|
617
692
|
},
|
|
618
693
|
"@nest": {
|
|
619
694
|
anyOf: [
|
|
620
695
|
{
|
|
621
|
-
$ref: "https://schema.twindev.org/
|
|
696
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
622
697
|
},
|
|
623
698
|
{
|
|
624
699
|
type: "array",
|
|
625
|
-
items:
|
|
626
|
-
|
|
627
|
-
|
|
700
|
+
items: false,
|
|
701
|
+
prefixItems: [
|
|
702
|
+
{
|
|
703
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
704
|
+
}
|
|
705
|
+
]
|
|
628
706
|
}
|
|
629
707
|
]
|
|
630
708
|
},
|
|
@@ -666,10 +744,13 @@ var properties$c = {
|
|
|
666
744
|
},
|
|
667
745
|
refinement: {
|
|
668
746
|
type: "array",
|
|
669
|
-
items:
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
747
|
+
items: false,
|
|
748
|
+
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).",
|
|
749
|
+
prefixItems: [
|
|
750
|
+
{
|
|
751
|
+
$ref: "https://schema.twindev.org/odrl/OdrlConstraint"
|
|
752
|
+
}
|
|
753
|
+
]
|
|
673
754
|
}
|
|
674
755
|
};
|
|
675
756
|
var required$5 = [
|
|
@@ -678,41 +759,45 @@ var required$5 = [
|
|
|
678
759
|
var additionalProperties$c = {
|
|
679
760
|
anyOf: [
|
|
680
761
|
{
|
|
681
|
-
$ref: "https://schema.twindev.org/
|
|
762
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
682
763
|
},
|
|
683
764
|
{
|
|
684
|
-
$ref: "https://schema.twindev.org/
|
|
765
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
685
766
|
},
|
|
686
767
|
{
|
|
687
|
-
$ref: "https://schema.twindev.org/
|
|
768
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
688
769
|
},
|
|
689
770
|
{
|
|
690
|
-
$ref: "https://schema.twindev.org/
|
|
771
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
691
772
|
},
|
|
692
773
|
{
|
|
693
|
-
$ref: "https://schema.twindev.org/
|
|
774
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
694
775
|
},
|
|
695
776
|
{
|
|
696
|
-
$ref: "https://schema.twindev.org/
|
|
777
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
697
778
|
},
|
|
698
779
|
{
|
|
699
780
|
type: "array"
|
|
700
781
|
}
|
|
701
782
|
]
|
|
702
783
|
};
|
|
703
|
-
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.";
|
|
704
784
|
var OdrlAssetCollectionSchema = {
|
|
785
|
+
$schema: $schema$d,
|
|
786
|
+
$id: $id$d,
|
|
787
|
+
description: description$d,
|
|
705
788
|
type: type$c,
|
|
706
789
|
properties: properties$c,
|
|
707
790
|
required: required$5,
|
|
708
|
-
additionalProperties: additionalProperties$c
|
|
709
|
-
description: description$d
|
|
791
|
+
additionalProperties: additionalProperties$c
|
|
710
792
|
};
|
|
711
793
|
|
|
794
|
+
var $schema$c = "https://json-schema.org/draft/2020-12/schema";
|
|
795
|
+
var $id$c = "https://schema.twindev.org/odrl/OdrlConstraint";
|
|
796
|
+
var description$c = "Interface for ODRL Constraints.";
|
|
712
797
|
var type$b = "object";
|
|
713
798
|
var properties$b = {
|
|
714
799
|
"@context": {
|
|
715
|
-
$ref: "https://schema.twindev.org/
|
|
800
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
|
|
716
801
|
},
|
|
717
802
|
"@id": {
|
|
718
803
|
anyOf: [
|
|
@@ -721,38 +806,47 @@ var properties$b = {
|
|
|
721
806
|
},
|
|
722
807
|
{
|
|
723
808
|
type: "array",
|
|
724
|
-
items:
|
|
725
|
-
|
|
726
|
-
|
|
809
|
+
items: false,
|
|
810
|
+
prefixItems: [
|
|
811
|
+
{
|
|
812
|
+
type: "string"
|
|
813
|
+
}
|
|
814
|
+
]
|
|
727
815
|
}
|
|
728
816
|
]
|
|
729
817
|
},
|
|
730
818
|
"@included": {
|
|
731
|
-
$ref: "https://schema.twindev.org/
|
|
819
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
732
820
|
},
|
|
733
821
|
"@graph": {
|
|
734
822
|
anyOf: [
|
|
735
823
|
{
|
|
736
|
-
$ref: "https://schema.twindev.org/
|
|
824
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
737
825
|
},
|
|
738
826
|
{
|
|
739
827
|
type: "array",
|
|
740
|
-
items:
|
|
741
|
-
|
|
742
|
-
|
|
828
|
+
items: false,
|
|
829
|
+
prefixItems: [
|
|
830
|
+
{
|
|
831
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
832
|
+
}
|
|
833
|
+
]
|
|
743
834
|
}
|
|
744
835
|
]
|
|
745
836
|
},
|
|
746
837
|
"@nest": {
|
|
747
838
|
anyOf: [
|
|
748
839
|
{
|
|
749
|
-
$ref: "https://schema.twindev.org/
|
|
840
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
750
841
|
},
|
|
751
842
|
{
|
|
752
843
|
type: "array",
|
|
753
|
-
items:
|
|
754
|
-
|
|
755
|
-
|
|
844
|
+
items: false,
|
|
845
|
+
prefixItems: [
|
|
846
|
+
{
|
|
847
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
848
|
+
}
|
|
849
|
+
]
|
|
756
850
|
}
|
|
757
851
|
]
|
|
758
852
|
},
|
|
@@ -763,9 +857,12 @@ var properties$b = {
|
|
|
763
857
|
},
|
|
764
858
|
{
|
|
765
859
|
type: "array",
|
|
766
|
-
items:
|
|
767
|
-
|
|
768
|
-
|
|
860
|
+
items: false,
|
|
861
|
+
prefixItems: [
|
|
862
|
+
{
|
|
863
|
+
type: "string"
|
|
864
|
+
}
|
|
865
|
+
]
|
|
769
866
|
}
|
|
770
867
|
]
|
|
771
868
|
},
|
|
@@ -856,98 +953,93 @@ var required$4 = [
|
|
|
856
953
|
var additionalProperties$b = {
|
|
857
954
|
anyOf: [
|
|
858
955
|
{
|
|
859
|
-
$ref: "https://schema.twindev.org/
|
|
956
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
860
957
|
},
|
|
861
958
|
{
|
|
862
|
-
$ref: "https://schema.twindev.org/
|
|
959
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
863
960
|
},
|
|
864
961
|
{
|
|
865
|
-
$ref: "https://schema.twindev.org/
|
|
962
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
866
963
|
},
|
|
867
964
|
{
|
|
868
|
-
$ref: "https://schema.twindev.org/
|
|
965
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
869
966
|
},
|
|
870
967
|
{
|
|
871
|
-
$ref: "https://schema.twindev.org/
|
|
968
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
872
969
|
},
|
|
873
970
|
{
|
|
874
|
-
$ref: "https://schema.twindev.org/
|
|
971
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
875
972
|
},
|
|
876
973
|
{
|
|
877
974
|
type: "array"
|
|
878
975
|
}
|
|
879
976
|
]
|
|
880
977
|
};
|
|
881
|
-
var description$c = "Interface for ODRL Constraints.";
|
|
882
978
|
var OdrlConstraintSchema = {
|
|
979
|
+
$schema: $schema$c,
|
|
980
|
+
$id: $id$c,
|
|
981
|
+
description: description$c,
|
|
883
982
|
type: type$b,
|
|
884
983
|
properties: properties$b,
|
|
885
984
|
required: required$4,
|
|
886
|
-
additionalProperties: additionalProperties$b
|
|
887
|
-
description: description$c
|
|
985
|
+
additionalProperties: additionalProperties$b
|
|
888
986
|
};
|
|
889
987
|
|
|
988
|
+
var $schema$b = "https://json-schema.org/draft/2020-12/schema";
|
|
989
|
+
var $id$b = "https://schema.twindev.org/odrl/OdrlContextType";
|
|
990
|
+
var description$b = "The ODRL JSON-LD context type.";
|
|
890
991
|
var anyOf = [
|
|
891
992
|
{
|
|
892
993
|
type: "string",
|
|
893
994
|
"const": "https://www.w3.org/ns/odrl/2/"
|
|
894
995
|
},
|
|
895
|
-
{
|
|
896
|
-
type: "array",
|
|
897
|
-
minItems: 1,
|
|
898
|
-
items: [
|
|
899
|
-
{
|
|
900
|
-
type: "string",
|
|
901
|
-
"const": "https://www.w3.org/ns/odrl/2/"
|
|
902
|
-
}
|
|
903
|
-
],
|
|
904
|
-
additionalItems: {
|
|
905
|
-
$ref: "https://schema.twindev.org/odrl/JsonLdContextDefinitionElement"
|
|
906
|
-
}
|
|
907
|
-
},
|
|
908
996
|
{
|
|
909
997
|
type: "array",
|
|
910
998
|
minItems: 2,
|
|
911
|
-
items:
|
|
999
|
+
items: {
|
|
1000
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
1001
|
+
},
|
|
1002
|
+
prefixItems: [
|
|
912
1003
|
{
|
|
913
1004
|
type: "string",
|
|
914
1005
|
"const": "https://www.w3.org/ns/odrl/2/"
|
|
915
1006
|
},
|
|
916
1007
|
{
|
|
917
|
-
$ref: "https://schema.twindev.org/
|
|
1008
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
918
1009
|
}
|
|
919
|
-
]
|
|
920
|
-
additionalItems: {
|
|
921
|
-
$ref: "https://schema.twindev.org/odrl/JsonLdContextDefinitionElement"
|
|
922
|
-
}
|
|
1010
|
+
]
|
|
923
1011
|
},
|
|
924
1012
|
{
|
|
925
1013
|
type: "array",
|
|
926
1014
|
minItems: 2,
|
|
927
|
-
items:
|
|
1015
|
+
items: {
|
|
1016
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
1017
|
+
},
|
|
1018
|
+
prefixItems: [
|
|
928
1019
|
{
|
|
929
|
-
$ref: "https://schema.twindev.org/
|
|
1020
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
930
1021
|
},
|
|
931
1022
|
{
|
|
932
1023
|
type: "string",
|
|
933
1024
|
"const": "https://www.w3.org/ns/odrl/2/"
|
|
934
1025
|
}
|
|
935
|
-
]
|
|
936
|
-
additionalItems: {
|
|
937
|
-
$ref: "https://schema.twindev.org/odrl/JsonLdContextDefinitionElement"
|
|
938
|
-
}
|
|
1026
|
+
]
|
|
939
1027
|
}
|
|
940
1028
|
];
|
|
941
|
-
var description$b = "The ODRL JSON-LD context type.";
|
|
942
1029
|
var OdrlContextTypeSchema = {
|
|
943
|
-
|
|
944
|
-
|
|
1030
|
+
$schema: $schema$b,
|
|
1031
|
+
$id: $id$b,
|
|
1032
|
+
description: description$b,
|
|
1033
|
+
anyOf: anyOf
|
|
945
1034
|
};
|
|
946
1035
|
|
|
1036
|
+
var $schema$a = "https://json-schema.org/draft/2020-12/schema";
|
|
1037
|
+
var $id$a = "https://schema.twindev.org/odrl/OdrlDuty";
|
|
1038
|
+
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.";
|
|
947
1039
|
var type$a = "object";
|
|
948
1040
|
var properties$a = {
|
|
949
1041
|
"@context": {
|
|
950
|
-
$ref: "https://schema.twindev.org/
|
|
1042
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
|
|
951
1043
|
},
|
|
952
1044
|
"@id": {
|
|
953
1045
|
anyOf: [
|
|
@@ -956,38 +1048,47 @@ var properties$a = {
|
|
|
956
1048
|
},
|
|
957
1049
|
{
|
|
958
1050
|
type: "array",
|
|
959
|
-
items:
|
|
960
|
-
|
|
961
|
-
|
|
1051
|
+
items: false,
|
|
1052
|
+
prefixItems: [
|
|
1053
|
+
{
|
|
1054
|
+
type: "string"
|
|
1055
|
+
}
|
|
1056
|
+
]
|
|
962
1057
|
}
|
|
963
1058
|
]
|
|
964
1059
|
},
|
|
965
1060
|
"@included": {
|
|
966
|
-
$ref: "https://schema.twindev.org/
|
|
1061
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
967
1062
|
},
|
|
968
1063
|
"@graph": {
|
|
969
1064
|
anyOf: [
|
|
970
1065
|
{
|
|
971
|
-
$ref: "https://schema.twindev.org/
|
|
1066
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
972
1067
|
},
|
|
973
1068
|
{
|
|
974
1069
|
type: "array",
|
|
975
|
-
items:
|
|
976
|
-
|
|
977
|
-
|
|
1070
|
+
items: false,
|
|
1071
|
+
prefixItems: [
|
|
1072
|
+
{
|
|
1073
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
1074
|
+
}
|
|
1075
|
+
]
|
|
978
1076
|
}
|
|
979
1077
|
]
|
|
980
1078
|
},
|
|
981
1079
|
"@nest": {
|
|
982
1080
|
anyOf: [
|
|
983
1081
|
{
|
|
984
|
-
$ref: "https://schema.twindev.org/
|
|
1082
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
985
1083
|
},
|
|
986
1084
|
{
|
|
987
1085
|
type: "array",
|
|
988
|
-
items:
|
|
989
|
-
|
|
990
|
-
|
|
1086
|
+
items: false,
|
|
1087
|
+
prefixItems: [
|
|
1088
|
+
{
|
|
1089
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
1090
|
+
}
|
|
1091
|
+
]
|
|
991
1092
|
}
|
|
992
1093
|
]
|
|
993
1094
|
},
|
|
@@ -998,9 +1099,12 @@ var properties$a = {
|
|
|
998
1099
|
},
|
|
999
1100
|
{
|
|
1000
1101
|
type: "array",
|
|
1001
|
-
items:
|
|
1002
|
-
|
|
1003
|
-
|
|
1102
|
+
items: false,
|
|
1103
|
+
prefixItems: [
|
|
1104
|
+
{
|
|
1105
|
+
type: "string"
|
|
1106
|
+
}
|
|
1107
|
+
]
|
|
1004
1108
|
}
|
|
1005
1109
|
]
|
|
1006
1110
|
},
|
|
@@ -1027,16 +1131,19 @@ var properties$a = {
|
|
|
1027
1131
|
},
|
|
1028
1132
|
{
|
|
1029
1133
|
type: "array",
|
|
1030
|
-
items:
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1134
|
+
items: false,
|
|
1135
|
+
prefixItems: [
|
|
1136
|
+
{
|
|
1137
|
+
anyOf: [
|
|
1138
|
+
{
|
|
1139
|
+
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
1140
|
+
},
|
|
1141
|
+
{
|
|
1142
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAction"
|
|
1143
|
+
}
|
|
1144
|
+
]
|
|
1145
|
+
}
|
|
1146
|
+
]
|
|
1040
1147
|
}
|
|
1041
1148
|
],
|
|
1042
1149
|
description: "The action associated with the rule."
|
|
@@ -1051,16 +1158,19 @@ var properties$a = {
|
|
|
1051
1158
|
},
|
|
1052
1159
|
{
|
|
1053
1160
|
type: "array",
|
|
1054
|
-
items:
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1161
|
+
items: false,
|
|
1162
|
+
prefixItems: [
|
|
1163
|
+
{
|
|
1164
|
+
anyOf: [
|
|
1165
|
+
{
|
|
1166
|
+
type: "string"
|
|
1167
|
+
},
|
|
1168
|
+
{
|
|
1169
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAsset"
|
|
1170
|
+
}
|
|
1171
|
+
]
|
|
1172
|
+
}
|
|
1173
|
+
]
|
|
1064
1174
|
}
|
|
1065
1175
|
],
|
|
1066
1176
|
description: "The target asset for the rule."
|
|
@@ -1089,10 +1199,13 @@ var properties$a = {
|
|
|
1089
1199
|
},
|
|
1090
1200
|
constraint: {
|
|
1091
1201
|
type: "array",
|
|
1092
|
-
items:
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1202
|
+
items: false,
|
|
1203
|
+
description: "Constraints applied to the rule.",
|
|
1204
|
+
prefixItems: [
|
|
1205
|
+
{
|
|
1206
|
+
$ref: "https://schema.twindev.org/odrl/OdrlConstraint"
|
|
1207
|
+
}
|
|
1208
|
+
]
|
|
1096
1209
|
},
|
|
1097
1210
|
summary: {
|
|
1098
1211
|
type: "string",
|
|
@@ -1108,17 +1221,23 @@ var properties$a = {
|
|
|
1108
1221
|
},
|
|
1109
1222
|
consequence: {
|
|
1110
1223
|
type: "array",
|
|
1111
|
-
items:
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1224
|
+
items: false,
|
|
1225
|
+
description: "The consequences if the duty is not fulfilled. Only applicable when the Duty is referenced by a Rule with duty or obligation properties.",
|
|
1226
|
+
prefixItems: [
|
|
1227
|
+
{
|
|
1228
|
+
$ref: "https://schema.twindev.org/odrl/OdrlDuty"
|
|
1229
|
+
}
|
|
1230
|
+
]
|
|
1115
1231
|
},
|
|
1116
1232
|
remedy: {
|
|
1117
1233
|
type: "array",
|
|
1118
|
-
items:
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1234
|
+
items: false,
|
|
1235
|
+
description: "The remedies that may be fulfilled to cure the violation.",
|
|
1236
|
+
prefixItems: [
|
|
1237
|
+
{
|
|
1238
|
+
$ref: "https://schema.twindev.org/odrl/OdrlDuty"
|
|
1239
|
+
}
|
|
1240
|
+
]
|
|
1122
1241
|
},
|
|
1123
1242
|
compensatedParty: {
|
|
1124
1243
|
type: "string",
|
|
@@ -1128,40 +1247,44 @@ var properties$a = {
|
|
|
1128
1247
|
var additionalProperties$a = {
|
|
1129
1248
|
anyOf: [
|
|
1130
1249
|
{
|
|
1131
|
-
$ref: "https://schema.twindev.org/
|
|
1250
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
1132
1251
|
},
|
|
1133
1252
|
{
|
|
1134
|
-
$ref: "https://schema.twindev.org/
|
|
1253
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
1135
1254
|
},
|
|
1136
1255
|
{
|
|
1137
|
-
$ref: "https://schema.twindev.org/
|
|
1256
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
1138
1257
|
},
|
|
1139
1258
|
{
|
|
1140
|
-
$ref: "https://schema.twindev.org/
|
|
1259
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
1141
1260
|
},
|
|
1142
1261
|
{
|
|
1143
|
-
$ref: "https://schema.twindev.org/
|
|
1262
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
1144
1263
|
},
|
|
1145
1264
|
{
|
|
1146
|
-
$ref: "https://schema.twindev.org/
|
|
1265
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
1147
1266
|
},
|
|
1148
1267
|
{
|
|
1149
1268
|
type: "array"
|
|
1150
1269
|
}
|
|
1151
1270
|
]
|
|
1152
1271
|
};
|
|
1153
|
-
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.";
|
|
1154
1272
|
var OdrlDutySchema = {
|
|
1273
|
+
$schema: $schema$a,
|
|
1274
|
+
$id: $id$a,
|
|
1275
|
+
description: description$a,
|
|
1155
1276
|
type: type$a,
|
|
1156
1277
|
properties: properties$a,
|
|
1157
|
-
additionalProperties: additionalProperties$a
|
|
1158
|
-
description: description$a
|
|
1278
|
+
additionalProperties: additionalProperties$a
|
|
1159
1279
|
};
|
|
1160
1280
|
|
|
1281
|
+
var $schema$9 = "https://json-schema.org/draft/2020-12/schema";
|
|
1282
|
+
var $id$9 = "https://schema.twindev.org/odrl/OdrlLogicalConstraint";
|
|
1283
|
+
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.";
|
|
1161
1284
|
var type$9 = "object";
|
|
1162
1285
|
var properties$9 = {
|
|
1163
1286
|
"@context": {
|
|
1164
|
-
$ref: "https://schema.twindev.org/
|
|
1287
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
|
|
1165
1288
|
},
|
|
1166
1289
|
"@id": {
|
|
1167
1290
|
anyOf: [
|
|
@@ -1170,38 +1293,47 @@ var properties$9 = {
|
|
|
1170
1293
|
},
|
|
1171
1294
|
{
|
|
1172
1295
|
type: "array",
|
|
1173
|
-
items:
|
|
1174
|
-
|
|
1175
|
-
|
|
1296
|
+
items: false,
|
|
1297
|
+
prefixItems: [
|
|
1298
|
+
{
|
|
1299
|
+
type: "string"
|
|
1300
|
+
}
|
|
1301
|
+
]
|
|
1176
1302
|
}
|
|
1177
1303
|
]
|
|
1178
1304
|
},
|
|
1179
1305
|
"@included": {
|
|
1180
|
-
$ref: "https://schema.twindev.org/
|
|
1306
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
1181
1307
|
},
|
|
1182
1308
|
"@graph": {
|
|
1183
1309
|
anyOf: [
|
|
1184
1310
|
{
|
|
1185
|
-
$ref: "https://schema.twindev.org/
|
|
1311
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
1186
1312
|
},
|
|
1187
1313
|
{
|
|
1188
1314
|
type: "array",
|
|
1189
|
-
items:
|
|
1190
|
-
|
|
1191
|
-
|
|
1315
|
+
items: false,
|
|
1316
|
+
prefixItems: [
|
|
1317
|
+
{
|
|
1318
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
1319
|
+
}
|
|
1320
|
+
]
|
|
1192
1321
|
}
|
|
1193
1322
|
]
|
|
1194
1323
|
},
|
|
1195
1324
|
"@nest": {
|
|
1196
1325
|
anyOf: [
|
|
1197
1326
|
{
|
|
1198
|
-
$ref: "https://schema.twindev.org/
|
|
1327
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
1199
1328
|
},
|
|
1200
1329
|
{
|
|
1201
1330
|
type: "array",
|
|
1202
|
-
items:
|
|
1203
|
-
|
|
1204
|
-
|
|
1331
|
+
items: false,
|
|
1332
|
+
prefixItems: [
|
|
1333
|
+
{
|
|
1334
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
1335
|
+
}
|
|
1336
|
+
]
|
|
1205
1337
|
}
|
|
1206
1338
|
]
|
|
1207
1339
|
},
|
|
@@ -1212,9 +1344,12 @@ var properties$9 = {
|
|
|
1212
1344
|
},
|
|
1213
1345
|
{
|
|
1214
1346
|
type: "array",
|
|
1215
|
-
items:
|
|
1216
|
-
|
|
1217
|
-
|
|
1347
|
+
items: false,
|
|
1348
|
+
prefixItems: [
|
|
1349
|
+
{
|
|
1350
|
+
type: "string"
|
|
1351
|
+
}
|
|
1352
|
+
]
|
|
1218
1353
|
}
|
|
1219
1354
|
]
|
|
1220
1355
|
},
|
|
@@ -1236,18 +1371,21 @@ var properties$9 = {
|
|
|
1236
1371
|
properties: {
|
|
1237
1372
|
"@list": {
|
|
1238
1373
|
type: "array",
|
|
1239
|
-
items:
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
"
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1374
|
+
items: false,
|
|
1375
|
+
prefixItems: [
|
|
1376
|
+
{
|
|
1377
|
+
type: "object",
|
|
1378
|
+
properties: {
|
|
1379
|
+
"@id": {
|
|
1380
|
+
type: "string"
|
|
1381
|
+
}
|
|
1382
|
+
},
|
|
1383
|
+
required: [
|
|
1384
|
+
"@id"
|
|
1385
|
+
],
|
|
1386
|
+
additionalProperties: false
|
|
1387
|
+
}
|
|
1388
|
+
]
|
|
1251
1389
|
}
|
|
1252
1390
|
},
|
|
1253
1391
|
required: [
|
|
@@ -1261,18 +1399,21 @@ var properties$9 = {
|
|
|
1261
1399
|
properties: {
|
|
1262
1400
|
"@list": {
|
|
1263
1401
|
type: "array",
|
|
1264
|
-
items:
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
"
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1402
|
+
items: false,
|
|
1403
|
+
prefixItems: [
|
|
1404
|
+
{
|
|
1405
|
+
type: "object",
|
|
1406
|
+
properties: {
|
|
1407
|
+
"@id": {
|
|
1408
|
+
type: "string"
|
|
1409
|
+
}
|
|
1410
|
+
},
|
|
1411
|
+
required: [
|
|
1412
|
+
"@id"
|
|
1413
|
+
],
|
|
1414
|
+
additionalProperties: false
|
|
1415
|
+
}
|
|
1416
|
+
]
|
|
1276
1417
|
}
|
|
1277
1418
|
},
|
|
1278
1419
|
required: [
|
|
@@ -1286,18 +1427,21 @@ var properties$9 = {
|
|
|
1286
1427
|
properties: {
|
|
1287
1428
|
"@list": {
|
|
1288
1429
|
type: "array",
|
|
1289
|
-
items:
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
"
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1430
|
+
items: false,
|
|
1431
|
+
prefixItems: [
|
|
1432
|
+
{
|
|
1433
|
+
type: "object",
|
|
1434
|
+
properties: {
|
|
1435
|
+
"@id": {
|
|
1436
|
+
type: "string"
|
|
1437
|
+
}
|
|
1438
|
+
},
|
|
1439
|
+
required: [
|
|
1440
|
+
"@id"
|
|
1441
|
+
],
|
|
1442
|
+
additionalProperties: false
|
|
1443
|
+
}
|
|
1444
|
+
]
|
|
1301
1445
|
}
|
|
1302
1446
|
},
|
|
1303
1447
|
required: [
|
|
@@ -1311,18 +1455,21 @@ var properties$9 = {
|
|
|
1311
1455
|
properties: {
|
|
1312
1456
|
"@list": {
|
|
1313
1457
|
type: "array",
|
|
1314
|
-
items:
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
"
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1458
|
+
items: false,
|
|
1459
|
+
prefixItems: [
|
|
1460
|
+
{
|
|
1461
|
+
type: "object",
|
|
1462
|
+
properties: {
|
|
1463
|
+
"@id": {
|
|
1464
|
+
type: "string"
|
|
1465
|
+
}
|
|
1466
|
+
},
|
|
1467
|
+
required: [
|
|
1468
|
+
"@id"
|
|
1469
|
+
],
|
|
1470
|
+
additionalProperties: false
|
|
1471
|
+
}
|
|
1472
|
+
]
|
|
1326
1473
|
}
|
|
1327
1474
|
},
|
|
1328
1475
|
required: [
|
|
@@ -1335,36 +1482,40 @@ var properties$9 = {
|
|
|
1335
1482
|
var additionalProperties$9 = {
|
|
1336
1483
|
anyOf: [
|
|
1337
1484
|
{
|
|
1338
|
-
$ref: "https://schema.twindev.org/
|
|
1485
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
1339
1486
|
},
|
|
1340
1487
|
{
|
|
1341
|
-
$ref: "https://schema.twindev.org/
|
|
1488
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
1342
1489
|
},
|
|
1343
1490
|
{
|
|
1344
|
-
$ref: "https://schema.twindev.org/
|
|
1491
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
1345
1492
|
},
|
|
1346
1493
|
{
|
|
1347
|
-
$ref: "https://schema.twindev.org/
|
|
1494
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
1348
1495
|
},
|
|
1349
1496
|
{
|
|
1350
|
-
$ref: "https://schema.twindev.org/
|
|
1497
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
1351
1498
|
},
|
|
1352
1499
|
{
|
|
1353
|
-
$ref: "https://schema.twindev.org/
|
|
1500
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
1354
1501
|
},
|
|
1355
1502
|
{
|
|
1356
1503
|
type: "array"
|
|
1357
1504
|
}
|
|
1358
1505
|
]
|
|
1359
1506
|
};
|
|
1360
|
-
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.";
|
|
1361
1507
|
var OdrlLogicalConstraintSchema = {
|
|
1508
|
+
$schema: $schema$9,
|
|
1509
|
+
$id: $id$9,
|
|
1510
|
+
description: description$9,
|
|
1362
1511
|
type: type$9,
|
|
1363
1512
|
properties: properties$9,
|
|
1364
|
-
additionalProperties: additionalProperties$9
|
|
1365
|
-
description: description$9
|
|
1513
|
+
additionalProperties: additionalProperties$9
|
|
1366
1514
|
};
|
|
1367
1515
|
|
|
1516
|
+
var $schema$8 = "https://json-schema.org/draft/2020-12/schema";
|
|
1517
|
+
var $id$8 = "https://schema.twindev.org/odrl/OdrlOffer";
|
|
1518
|
+
var description$8 = "Interface representing an ODRL Offer. An Offer requires an assigner (the party making the offer).";
|
|
1368
1519
|
var type$8 = "object";
|
|
1369
1520
|
var properties$8 = {
|
|
1370
1521
|
"@context": {
|
|
@@ -1378,38 +1529,47 @@ var properties$8 = {
|
|
|
1378
1529
|
},
|
|
1379
1530
|
{
|
|
1380
1531
|
type: "array",
|
|
1381
|
-
items:
|
|
1382
|
-
|
|
1383
|
-
|
|
1532
|
+
items: false,
|
|
1533
|
+
prefixItems: [
|
|
1534
|
+
{
|
|
1535
|
+
type: "string"
|
|
1536
|
+
}
|
|
1537
|
+
]
|
|
1384
1538
|
}
|
|
1385
1539
|
]
|
|
1386
1540
|
},
|
|
1387
1541
|
"@included": {
|
|
1388
|
-
$ref: "https://schema.twindev.org/
|
|
1542
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
1389
1543
|
},
|
|
1390
1544
|
"@graph": {
|
|
1391
1545
|
anyOf: [
|
|
1392
1546
|
{
|
|
1393
|
-
$ref: "https://schema.twindev.org/
|
|
1547
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
1394
1548
|
},
|
|
1395
1549
|
{
|
|
1396
1550
|
type: "array",
|
|
1397
|
-
items:
|
|
1398
|
-
|
|
1399
|
-
|
|
1551
|
+
items: false,
|
|
1552
|
+
prefixItems: [
|
|
1553
|
+
{
|
|
1554
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
1555
|
+
}
|
|
1556
|
+
]
|
|
1400
1557
|
}
|
|
1401
1558
|
]
|
|
1402
1559
|
},
|
|
1403
1560
|
"@nest": {
|
|
1404
1561
|
anyOf: [
|
|
1405
1562
|
{
|
|
1406
|
-
$ref: "https://schema.twindev.org/
|
|
1563
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
1407
1564
|
},
|
|
1408
1565
|
{
|
|
1409
1566
|
type: "array",
|
|
1410
|
-
items:
|
|
1411
|
-
|
|
1412
|
-
|
|
1567
|
+
items: false,
|
|
1568
|
+
prefixItems: [
|
|
1569
|
+
{
|
|
1570
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
1571
|
+
}
|
|
1572
|
+
]
|
|
1413
1573
|
}
|
|
1414
1574
|
]
|
|
1415
1575
|
},
|
|
@@ -1438,9 +1598,12 @@ var properties$8 = {
|
|
|
1438
1598
|
},
|
|
1439
1599
|
{
|
|
1440
1600
|
type: "array",
|
|
1441
|
-
items:
|
|
1442
|
-
|
|
1443
|
-
|
|
1601
|
+
items: false,
|
|
1602
|
+
prefixItems: [
|
|
1603
|
+
{
|
|
1604
|
+
type: "string"
|
|
1605
|
+
}
|
|
1606
|
+
]
|
|
1444
1607
|
}
|
|
1445
1608
|
],
|
|
1446
1609
|
description: "The profile(s) this policy conforms to. IRIs identifying the ODRL Profile(s)."
|
|
@@ -1477,16 +1640,19 @@ var properties$8 = {
|
|
|
1477
1640
|
},
|
|
1478
1641
|
{
|
|
1479
1642
|
type: "array",
|
|
1480
|
-
items:
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1643
|
+
items: false,
|
|
1644
|
+
prefixItems: [
|
|
1645
|
+
{
|
|
1646
|
+
anyOf: [
|
|
1647
|
+
{
|
|
1648
|
+
type: "string"
|
|
1649
|
+
},
|
|
1650
|
+
{
|
|
1651
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAsset"
|
|
1652
|
+
}
|
|
1653
|
+
]
|
|
1654
|
+
}
|
|
1655
|
+
]
|
|
1490
1656
|
}
|
|
1491
1657
|
],
|
|
1492
1658
|
description: "The target asset for the rule."
|
|
@@ -1501,16 +1667,19 @@ var properties$8 = {
|
|
|
1501
1667
|
},
|
|
1502
1668
|
{
|
|
1503
1669
|
type: "array",
|
|
1504
|
-
items:
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1670
|
+
items: false,
|
|
1671
|
+
prefixItems: [
|
|
1672
|
+
{
|
|
1673
|
+
anyOf: [
|
|
1674
|
+
{
|
|
1675
|
+
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
1676
|
+
},
|
|
1677
|
+
{
|
|
1678
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAction"
|
|
1679
|
+
}
|
|
1680
|
+
]
|
|
1681
|
+
}
|
|
1682
|
+
]
|
|
1514
1683
|
}
|
|
1515
1684
|
],
|
|
1516
1685
|
description: "The action associated with the rule."
|
|
@@ -1522,9 +1691,12 @@ var properties$8 = {
|
|
|
1522
1691
|
},
|
|
1523
1692
|
{
|
|
1524
1693
|
type: "array",
|
|
1525
|
-
items:
|
|
1526
|
-
|
|
1527
|
-
|
|
1694
|
+
items: false,
|
|
1695
|
+
prefixItems: [
|
|
1696
|
+
{
|
|
1697
|
+
type: "string"
|
|
1698
|
+
}
|
|
1699
|
+
]
|
|
1528
1700
|
}
|
|
1529
1701
|
],
|
|
1530
1702
|
description: "The parent policy(ies) this policy inherits from. IRIs identifying the parent Policy(ies)."
|
|
@@ -1535,24 +1707,33 @@ var properties$8 = {
|
|
|
1535
1707
|
},
|
|
1536
1708
|
permission: {
|
|
1537
1709
|
type: "array",
|
|
1538
|
-
items:
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1710
|
+
items: false,
|
|
1711
|
+
description: "The permissions in the policy. At least one of permission, prohibition, or obligation must be present.",
|
|
1712
|
+
prefixItems: [
|
|
1713
|
+
{
|
|
1714
|
+
$ref: "https://schema.twindev.org/odrl/OdrlPermission"
|
|
1715
|
+
}
|
|
1716
|
+
]
|
|
1542
1717
|
},
|
|
1543
1718
|
prohibition: {
|
|
1544
1719
|
type: "array",
|
|
1545
|
-
items:
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1720
|
+
items: false,
|
|
1721
|
+
description: "The prohibitions in the policy. At least one of permission, prohibition, or obligation must be present.",
|
|
1722
|
+
prefixItems: [
|
|
1723
|
+
{
|
|
1724
|
+
$ref: "https://schema.twindev.org/odrl/OdrlProhibition"
|
|
1725
|
+
}
|
|
1726
|
+
]
|
|
1549
1727
|
},
|
|
1550
1728
|
obligation: {
|
|
1551
1729
|
type: "array",
|
|
1552
|
-
items:
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1730
|
+
items: false,
|
|
1731
|
+
description: "The obligations in the policy. At least one of permission, prohibition, or obligation must be present.",
|
|
1732
|
+
prefixItems: [
|
|
1733
|
+
{
|
|
1734
|
+
$ref: "https://schema.twindev.org/odrl/OdrlDuty"
|
|
1735
|
+
}
|
|
1736
|
+
]
|
|
1556
1737
|
}
|
|
1557
1738
|
};
|
|
1558
1739
|
var required$3 = [
|
|
@@ -1564,41 +1745,45 @@ var required$3 = [
|
|
|
1564
1745
|
var additionalProperties$8 = {
|
|
1565
1746
|
anyOf: [
|
|
1566
1747
|
{
|
|
1567
|
-
$ref: "https://schema.twindev.org/
|
|
1748
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
1568
1749
|
},
|
|
1569
1750
|
{
|
|
1570
|
-
$ref: "https://schema.twindev.org/
|
|
1751
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
1571
1752
|
},
|
|
1572
1753
|
{
|
|
1573
|
-
$ref: "https://schema.twindev.org/
|
|
1754
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
1574
1755
|
},
|
|
1575
1756
|
{
|
|
1576
|
-
$ref: "https://schema.twindev.org/
|
|
1757
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
1577
1758
|
},
|
|
1578
1759
|
{
|
|
1579
|
-
$ref: "https://schema.twindev.org/
|
|
1760
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
1580
1761
|
},
|
|
1581
1762
|
{
|
|
1582
|
-
$ref: "https://schema.twindev.org/
|
|
1763
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
1583
1764
|
},
|
|
1584
1765
|
{
|
|
1585
1766
|
type: "array"
|
|
1586
1767
|
}
|
|
1587
1768
|
]
|
|
1588
1769
|
};
|
|
1589
|
-
var description$8 = "Interface representing an ODRL Offer. An Offer requires an assigner (the party making the offer).";
|
|
1590
1770
|
var OdrlOfferSchema = {
|
|
1771
|
+
$schema: $schema$8,
|
|
1772
|
+
$id: $id$8,
|
|
1773
|
+
description: description$8,
|
|
1591
1774
|
type: type$8,
|
|
1592
1775
|
properties: properties$8,
|
|
1593
1776
|
required: required$3,
|
|
1594
|
-
additionalProperties: additionalProperties$8
|
|
1595
|
-
description: description$8
|
|
1777
|
+
additionalProperties: additionalProperties$8
|
|
1596
1778
|
};
|
|
1597
1779
|
|
|
1780
|
+
var $schema$7 = "https://json-schema.org/draft/2020-12/schema";
|
|
1781
|
+
var $id$7 = "https://schema.twindev.org/odrl/OdrlParty";
|
|
1782
|
+
var description$7 = "Interface for ODRL Parties.";
|
|
1598
1783
|
var type$7 = "object";
|
|
1599
1784
|
var properties$7 = {
|
|
1600
1785
|
"@context": {
|
|
1601
|
-
$ref: "https://schema.twindev.org/
|
|
1786
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
|
|
1602
1787
|
},
|
|
1603
1788
|
"@id": {
|
|
1604
1789
|
anyOf: [
|
|
@@ -1607,38 +1792,47 @@ var properties$7 = {
|
|
|
1607
1792
|
},
|
|
1608
1793
|
{
|
|
1609
1794
|
type: "array",
|
|
1610
|
-
items:
|
|
1611
|
-
|
|
1612
|
-
|
|
1795
|
+
items: false,
|
|
1796
|
+
prefixItems: [
|
|
1797
|
+
{
|
|
1798
|
+
type: "string"
|
|
1799
|
+
}
|
|
1800
|
+
]
|
|
1613
1801
|
}
|
|
1614
1802
|
]
|
|
1615
1803
|
},
|
|
1616
1804
|
"@included": {
|
|
1617
|
-
$ref: "https://schema.twindev.org/
|
|
1805
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
1618
1806
|
},
|
|
1619
1807
|
"@graph": {
|
|
1620
1808
|
anyOf: [
|
|
1621
1809
|
{
|
|
1622
|
-
$ref: "https://schema.twindev.org/
|
|
1810
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
1623
1811
|
},
|
|
1624
1812
|
{
|
|
1625
1813
|
type: "array",
|
|
1626
|
-
items:
|
|
1627
|
-
|
|
1628
|
-
|
|
1814
|
+
items: false,
|
|
1815
|
+
prefixItems: [
|
|
1816
|
+
{
|
|
1817
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
1818
|
+
}
|
|
1819
|
+
]
|
|
1629
1820
|
}
|
|
1630
1821
|
]
|
|
1631
1822
|
},
|
|
1632
1823
|
"@nest": {
|
|
1633
1824
|
anyOf: [
|
|
1634
1825
|
{
|
|
1635
|
-
$ref: "https://schema.twindev.org/
|
|
1826
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
1636
1827
|
},
|
|
1637
1828
|
{
|
|
1638
1829
|
type: "array",
|
|
1639
|
-
items:
|
|
1640
|
-
|
|
1641
|
-
|
|
1830
|
+
items: false,
|
|
1831
|
+
prefixItems: [
|
|
1832
|
+
{
|
|
1833
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
1834
|
+
}
|
|
1835
|
+
]
|
|
1642
1836
|
}
|
|
1643
1837
|
]
|
|
1644
1838
|
},
|
|
@@ -1649,9 +1843,12 @@ var properties$7 = {
|
|
|
1649
1843
|
},
|
|
1650
1844
|
{
|
|
1651
1845
|
type: "array",
|
|
1652
|
-
items:
|
|
1653
|
-
|
|
1654
|
-
|
|
1846
|
+
items: false,
|
|
1847
|
+
prefixItems: [
|
|
1848
|
+
{
|
|
1849
|
+
type: "string"
|
|
1850
|
+
}
|
|
1851
|
+
]
|
|
1655
1852
|
}
|
|
1656
1853
|
],
|
|
1657
1854
|
description: "The type of the party. Can be used to specify additional type information (e.g., \"Party\", \"vcard:Organization\", \"vcard:Individual\")."
|
|
@@ -1692,40 +1889,44 @@ var properties$7 = {
|
|
|
1692
1889
|
var additionalProperties$7 = {
|
|
1693
1890
|
anyOf: [
|
|
1694
1891
|
{
|
|
1695
|
-
$ref: "https://schema.twindev.org/
|
|
1892
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
1696
1893
|
},
|
|
1697
1894
|
{
|
|
1698
|
-
$ref: "https://schema.twindev.org/
|
|
1895
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
1699
1896
|
},
|
|
1700
1897
|
{
|
|
1701
|
-
$ref: "https://schema.twindev.org/
|
|
1898
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
1702
1899
|
},
|
|
1703
1900
|
{
|
|
1704
|
-
$ref: "https://schema.twindev.org/
|
|
1901
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
1705
1902
|
},
|
|
1706
1903
|
{
|
|
1707
|
-
$ref: "https://schema.twindev.org/
|
|
1904
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
1708
1905
|
},
|
|
1709
1906
|
{
|
|
1710
|
-
$ref: "https://schema.twindev.org/
|
|
1907
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
1711
1908
|
},
|
|
1712
1909
|
{
|
|
1713
1910
|
type: "array"
|
|
1714
1911
|
}
|
|
1715
1912
|
]
|
|
1716
1913
|
};
|
|
1717
|
-
var description$7 = "Interface for ODRL Parties.";
|
|
1718
1914
|
var OdrlPartySchema = {
|
|
1915
|
+
$schema: $schema$7,
|
|
1916
|
+
$id: $id$7,
|
|
1917
|
+
description: description$7,
|
|
1719
1918
|
type: type$7,
|
|
1720
1919
|
properties: properties$7,
|
|
1721
|
-
additionalProperties: additionalProperties$7
|
|
1722
|
-
description: description$7
|
|
1920
|
+
additionalProperties: additionalProperties$7
|
|
1723
1921
|
};
|
|
1724
1922
|
|
|
1923
|
+
var $schema$6 = "https://json-schema.org/draft/2020-12/schema";
|
|
1924
|
+
var $id$6 = "https://schema.twindev.org/odrl/OdrlPartyCollection";
|
|
1925
|
+
var description$6 = "Interface for ODRL Party Collections. A PartyCollection identifies a collection of entities and is a subclass of Party.";
|
|
1725
1926
|
var type$6 = "object";
|
|
1726
1927
|
var properties$6 = {
|
|
1727
1928
|
"@context": {
|
|
1728
|
-
$ref: "https://schema.twindev.org/
|
|
1929
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
|
|
1729
1930
|
},
|
|
1730
1931
|
"@id": {
|
|
1731
1932
|
anyOf: [
|
|
@@ -1734,38 +1935,47 @@ var properties$6 = {
|
|
|
1734
1935
|
},
|
|
1735
1936
|
{
|
|
1736
1937
|
type: "array",
|
|
1737
|
-
items:
|
|
1738
|
-
|
|
1739
|
-
|
|
1938
|
+
items: false,
|
|
1939
|
+
prefixItems: [
|
|
1940
|
+
{
|
|
1941
|
+
type: "string"
|
|
1942
|
+
}
|
|
1943
|
+
]
|
|
1740
1944
|
}
|
|
1741
1945
|
]
|
|
1742
1946
|
},
|
|
1743
1947
|
"@included": {
|
|
1744
|
-
$ref: "https://schema.twindev.org/
|
|
1948
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
1745
1949
|
},
|
|
1746
1950
|
"@graph": {
|
|
1747
1951
|
anyOf: [
|
|
1748
1952
|
{
|
|
1749
|
-
$ref: "https://schema.twindev.org/
|
|
1953
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
1750
1954
|
},
|
|
1751
1955
|
{
|
|
1752
1956
|
type: "array",
|
|
1753
|
-
items:
|
|
1754
|
-
|
|
1755
|
-
|
|
1957
|
+
items: false,
|
|
1958
|
+
prefixItems: [
|
|
1959
|
+
{
|
|
1960
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
1961
|
+
}
|
|
1962
|
+
]
|
|
1756
1963
|
}
|
|
1757
1964
|
]
|
|
1758
1965
|
},
|
|
1759
1966
|
"@nest": {
|
|
1760
1967
|
anyOf: [
|
|
1761
1968
|
{
|
|
1762
|
-
$ref: "https://schema.twindev.org/
|
|
1969
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
1763
1970
|
},
|
|
1764
1971
|
{
|
|
1765
1972
|
type: "array",
|
|
1766
|
-
items:
|
|
1767
|
-
|
|
1768
|
-
|
|
1973
|
+
items: false,
|
|
1974
|
+
prefixItems: [
|
|
1975
|
+
{
|
|
1976
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
1977
|
+
}
|
|
1978
|
+
]
|
|
1769
1979
|
}
|
|
1770
1980
|
]
|
|
1771
1981
|
},
|
|
@@ -1776,9 +1986,12 @@ var properties$6 = {
|
|
|
1776
1986
|
},
|
|
1777
1987
|
{
|
|
1778
1988
|
type: "array",
|
|
1779
|
-
items:
|
|
1780
|
-
|
|
1781
|
-
|
|
1989
|
+
items: false,
|
|
1990
|
+
prefixItems: [
|
|
1991
|
+
{
|
|
1992
|
+
type: "string"
|
|
1993
|
+
}
|
|
1994
|
+
]
|
|
1782
1995
|
}
|
|
1783
1996
|
],
|
|
1784
1997
|
description: "The type of the party. Can be used to specify additional type information (e.g., \"Party\", \"vcard:Organization\", \"vcard:Individual\")."
|
|
@@ -1821,10 +2034,13 @@ var properties$6 = {
|
|
|
1821
2034
|
},
|
|
1822
2035
|
refinement: {
|
|
1823
2036
|
type: "array",
|
|
1824
|
-
items:
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
2037
|
+
items: false,
|
|
2038
|
+
description: "Refinements applied to the party collection. Used to specify constraints that apply to all members of the collection.",
|
|
2039
|
+
prefixItems: [
|
|
2040
|
+
{
|
|
2041
|
+
$ref: "https://schema.twindev.org/odrl/OdrlConstraint"
|
|
2042
|
+
}
|
|
2043
|
+
]
|
|
1828
2044
|
}
|
|
1829
2045
|
};
|
|
1830
2046
|
var required$2 = [
|
|
@@ -1833,41 +2049,45 @@ var required$2 = [
|
|
|
1833
2049
|
var additionalProperties$6 = {
|
|
1834
2050
|
anyOf: [
|
|
1835
2051
|
{
|
|
1836
|
-
$ref: "https://schema.twindev.org/
|
|
2052
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
1837
2053
|
},
|
|
1838
2054
|
{
|
|
1839
|
-
$ref: "https://schema.twindev.org/
|
|
2055
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
1840
2056
|
},
|
|
1841
2057
|
{
|
|
1842
|
-
$ref: "https://schema.twindev.org/
|
|
2058
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
1843
2059
|
},
|
|
1844
2060
|
{
|
|
1845
|
-
$ref: "https://schema.twindev.org/
|
|
2061
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
1846
2062
|
},
|
|
1847
2063
|
{
|
|
1848
|
-
$ref: "https://schema.twindev.org/
|
|
2064
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
1849
2065
|
},
|
|
1850
2066
|
{
|
|
1851
|
-
$ref: "https://schema.twindev.org/
|
|
2067
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
1852
2068
|
},
|
|
1853
2069
|
{
|
|
1854
2070
|
type: "array"
|
|
1855
2071
|
}
|
|
1856
2072
|
]
|
|
1857
2073
|
};
|
|
1858
|
-
var description$6 = "Interface for ODRL Party Collections. A PartyCollection identifies a collection of entities and is a subclass of Party.";
|
|
1859
2074
|
var OdrlPartyCollectionSchema = {
|
|
2075
|
+
$schema: $schema$6,
|
|
2076
|
+
$id: $id$6,
|
|
2077
|
+
description: description$6,
|
|
1860
2078
|
type: type$6,
|
|
1861
2079
|
properties: properties$6,
|
|
1862
2080
|
required: required$2,
|
|
1863
|
-
additionalProperties: additionalProperties$6
|
|
1864
|
-
description: description$6
|
|
2081
|
+
additionalProperties: additionalProperties$6
|
|
1865
2082
|
};
|
|
1866
2083
|
|
|
2084
|
+
var $schema$5 = "https://json-schema.org/draft/2020-12/schema";
|
|
2085
|
+
var $id$5 = "https://schema.twindev.org/odrl/OdrlPermission";
|
|
2086
|
+
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.";
|
|
1867
2087
|
var type$5 = "object";
|
|
1868
2088
|
var properties$5 = {
|
|
1869
2089
|
"@context": {
|
|
1870
|
-
$ref: "https://schema.twindev.org/
|
|
2090
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
|
|
1871
2091
|
},
|
|
1872
2092
|
"@id": {
|
|
1873
2093
|
anyOf: [
|
|
@@ -1876,38 +2096,47 @@ var properties$5 = {
|
|
|
1876
2096
|
},
|
|
1877
2097
|
{
|
|
1878
2098
|
type: "array",
|
|
1879
|
-
items:
|
|
1880
|
-
|
|
1881
|
-
|
|
2099
|
+
items: false,
|
|
2100
|
+
prefixItems: [
|
|
2101
|
+
{
|
|
2102
|
+
type: "string"
|
|
2103
|
+
}
|
|
2104
|
+
]
|
|
1882
2105
|
}
|
|
1883
2106
|
]
|
|
1884
2107
|
},
|
|
1885
2108
|
"@included": {
|
|
1886
|
-
$ref: "https://schema.twindev.org/
|
|
2109
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
1887
2110
|
},
|
|
1888
2111
|
"@graph": {
|
|
1889
2112
|
anyOf: [
|
|
1890
2113
|
{
|
|
1891
|
-
$ref: "https://schema.twindev.org/
|
|
2114
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
1892
2115
|
},
|
|
1893
2116
|
{
|
|
1894
2117
|
type: "array",
|
|
1895
|
-
items:
|
|
1896
|
-
|
|
1897
|
-
|
|
2118
|
+
items: false,
|
|
2119
|
+
prefixItems: [
|
|
2120
|
+
{
|
|
2121
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
2122
|
+
}
|
|
2123
|
+
]
|
|
1898
2124
|
}
|
|
1899
2125
|
]
|
|
1900
2126
|
},
|
|
1901
2127
|
"@nest": {
|
|
1902
2128
|
anyOf: [
|
|
1903
2129
|
{
|
|
1904
|
-
$ref: "https://schema.twindev.org/
|
|
2130
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
1905
2131
|
},
|
|
1906
2132
|
{
|
|
1907
2133
|
type: "array",
|
|
1908
|
-
items:
|
|
1909
|
-
|
|
1910
|
-
|
|
2134
|
+
items: false,
|
|
2135
|
+
prefixItems: [
|
|
2136
|
+
{
|
|
2137
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
2138
|
+
}
|
|
2139
|
+
]
|
|
1911
2140
|
}
|
|
1912
2141
|
]
|
|
1913
2142
|
},
|
|
@@ -1918,9 +2147,12 @@ var properties$5 = {
|
|
|
1918
2147
|
},
|
|
1919
2148
|
{
|
|
1920
2149
|
type: "array",
|
|
1921
|
-
items:
|
|
1922
|
-
|
|
1923
|
-
|
|
2150
|
+
items: false,
|
|
2151
|
+
prefixItems: [
|
|
2152
|
+
{
|
|
2153
|
+
type: "string"
|
|
2154
|
+
}
|
|
2155
|
+
]
|
|
1924
2156
|
}
|
|
1925
2157
|
]
|
|
1926
2158
|
},
|
|
@@ -1947,16 +2179,19 @@ var properties$5 = {
|
|
|
1947
2179
|
},
|
|
1948
2180
|
{
|
|
1949
2181
|
type: "array",
|
|
1950
|
-
items:
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
2182
|
+
items: false,
|
|
2183
|
+
prefixItems: [
|
|
2184
|
+
{
|
|
2185
|
+
anyOf: [
|
|
2186
|
+
{
|
|
2187
|
+
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
2188
|
+
},
|
|
2189
|
+
{
|
|
2190
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAction"
|
|
2191
|
+
}
|
|
2192
|
+
]
|
|
2193
|
+
}
|
|
2194
|
+
]
|
|
1960
2195
|
}
|
|
1961
2196
|
],
|
|
1962
2197
|
description: "The action associated with the rule."
|
|
@@ -1971,16 +2206,19 @@ var properties$5 = {
|
|
|
1971
2206
|
},
|
|
1972
2207
|
{
|
|
1973
2208
|
type: "array",
|
|
1974
|
-
items:
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
2209
|
+
items: false,
|
|
2210
|
+
prefixItems: [
|
|
2211
|
+
{
|
|
2212
|
+
anyOf: [
|
|
2213
|
+
{
|
|
2214
|
+
type: "string"
|
|
2215
|
+
},
|
|
2216
|
+
{
|
|
2217
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAsset"
|
|
2218
|
+
}
|
|
2219
|
+
]
|
|
2220
|
+
}
|
|
2221
|
+
]
|
|
1984
2222
|
}
|
|
1985
2223
|
],
|
|
1986
2224
|
description: "The target asset for the rule."
|
|
@@ -2009,10 +2247,13 @@ var properties$5 = {
|
|
|
2009
2247
|
},
|
|
2010
2248
|
constraint: {
|
|
2011
2249
|
type: "array",
|
|
2012
|
-
items:
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2250
|
+
items: false,
|
|
2251
|
+
description: "Constraints applied to the rule.",
|
|
2252
|
+
prefixItems: [
|
|
2253
|
+
{
|
|
2254
|
+
$ref: "https://schema.twindev.org/odrl/OdrlConstraint"
|
|
2255
|
+
}
|
|
2256
|
+
]
|
|
2016
2257
|
},
|
|
2017
2258
|
summary: {
|
|
2018
2259
|
type: "string",
|
|
@@ -2020,45 +2261,52 @@ var properties$5 = {
|
|
|
2020
2261
|
},
|
|
2021
2262
|
duty: {
|
|
2022
2263
|
type: "array",
|
|
2023
|
-
items:
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2264
|
+
items: false,
|
|
2265
|
+
description: "The duties that must be fulfilled before the permission can be exercised. A Permission MAY have none, one, or more duty property values.",
|
|
2266
|
+
prefixItems: [
|
|
2267
|
+
{
|
|
2268
|
+
$ref: "https://schema.twindev.org/odrl/OdrlDuty"
|
|
2269
|
+
}
|
|
2270
|
+
]
|
|
2027
2271
|
}
|
|
2028
2272
|
};
|
|
2029
2273
|
var additionalProperties$5 = {
|
|
2030
2274
|
anyOf: [
|
|
2031
2275
|
{
|
|
2032
|
-
$ref: "https://schema.twindev.org/
|
|
2276
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
2033
2277
|
},
|
|
2034
2278
|
{
|
|
2035
|
-
$ref: "https://schema.twindev.org/
|
|
2279
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
2036
2280
|
},
|
|
2037
2281
|
{
|
|
2038
|
-
$ref: "https://schema.twindev.org/
|
|
2282
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
2039
2283
|
},
|
|
2040
2284
|
{
|
|
2041
|
-
$ref: "https://schema.twindev.org/
|
|
2285
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
2042
2286
|
},
|
|
2043
2287
|
{
|
|
2044
|
-
$ref: "https://schema.twindev.org/
|
|
2288
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
2045
2289
|
},
|
|
2046
2290
|
{
|
|
2047
|
-
$ref: "https://schema.twindev.org/
|
|
2291
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
2048
2292
|
},
|
|
2049
2293
|
{
|
|
2050
2294
|
type: "array"
|
|
2051
2295
|
}
|
|
2052
2296
|
]
|
|
2053
2297
|
};
|
|
2054
|
-
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.";
|
|
2055
2298
|
var OdrlPermissionSchema = {
|
|
2299
|
+
$schema: $schema$5,
|
|
2300
|
+
$id: $id$5,
|
|
2301
|
+
description: description$5,
|
|
2056
2302
|
type: type$5,
|
|
2057
2303
|
properties: properties$5,
|
|
2058
|
-
additionalProperties: additionalProperties$5
|
|
2059
|
-
description: description$5
|
|
2304
|
+
additionalProperties: additionalProperties$5
|
|
2060
2305
|
};
|
|
2061
2306
|
|
|
2307
|
+
var $schema$4 = "https://json-schema.org/draft/2020-12/schema";
|
|
2308
|
+
var $id$4 = "https://schema.twindev.org/odrl/OdrlPolicy";
|
|
2309
|
+
var description$4 = "Interface representing an ODRL Policy.";
|
|
2062
2310
|
var type$4 = "object";
|
|
2063
2311
|
var properties$4 = {
|
|
2064
2312
|
"@context": {
|
|
@@ -2066,34 +2314,53 @@ var properties$4 = {
|
|
|
2066
2314
|
description: "The context for the policy. Must include \"https://www.w3.org/ns/odrl.jsonld\""
|
|
2067
2315
|
},
|
|
2068
2316
|
"@id": {
|
|
2069
|
-
|
|
2317
|
+
anyOf: [
|
|
2318
|
+
{
|
|
2319
|
+
type: "string"
|
|
2320
|
+
},
|
|
2321
|
+
{
|
|
2322
|
+
type: "array",
|
|
2323
|
+
items: false,
|
|
2324
|
+
prefixItems: [
|
|
2325
|
+
{
|
|
2326
|
+
type: "string"
|
|
2327
|
+
}
|
|
2328
|
+
]
|
|
2329
|
+
}
|
|
2330
|
+
]
|
|
2070
2331
|
},
|
|
2071
2332
|
"@included": {
|
|
2072
|
-
$ref: "https://schema.twindev.org/
|
|
2333
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
2073
2334
|
},
|
|
2074
2335
|
"@graph": {
|
|
2075
2336
|
anyOf: [
|
|
2076
2337
|
{
|
|
2077
|
-
$ref: "https://schema.twindev.org/
|
|
2338
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
2078
2339
|
},
|
|
2079
2340
|
{
|
|
2080
2341
|
type: "array",
|
|
2081
|
-
items:
|
|
2082
|
-
|
|
2083
|
-
|
|
2342
|
+
items: false,
|
|
2343
|
+
prefixItems: [
|
|
2344
|
+
{
|
|
2345
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
2346
|
+
}
|
|
2347
|
+
]
|
|
2084
2348
|
}
|
|
2085
2349
|
]
|
|
2086
2350
|
},
|
|
2087
2351
|
"@nest": {
|
|
2088
2352
|
anyOf: [
|
|
2089
2353
|
{
|
|
2090
|
-
$ref: "https://schema.twindev.org/
|
|
2354
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
2091
2355
|
},
|
|
2092
2356
|
{
|
|
2093
2357
|
type: "array",
|
|
2094
|
-
items:
|
|
2095
|
-
|
|
2096
|
-
|
|
2358
|
+
items: false,
|
|
2359
|
+
prefixItems: [
|
|
2360
|
+
{
|
|
2361
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
2362
|
+
}
|
|
2363
|
+
]
|
|
2097
2364
|
}
|
|
2098
2365
|
]
|
|
2099
2366
|
},
|
|
@@ -2104,11 +2371,11 @@ var properties$4 = {
|
|
|
2104
2371
|
"@reverse": {
|
|
2105
2372
|
type: "object",
|
|
2106
2373
|
additionalProperties: {
|
|
2107
|
-
|
|
2374
|
+
type: "string"
|
|
2108
2375
|
}
|
|
2109
2376
|
},
|
|
2110
2377
|
"@index": {
|
|
2111
|
-
|
|
2378
|
+
type: "string"
|
|
2112
2379
|
},
|
|
2113
2380
|
uid: {
|
|
2114
2381
|
type: "string",
|
|
@@ -2121,9 +2388,12 @@ var properties$4 = {
|
|
|
2121
2388
|
},
|
|
2122
2389
|
{
|
|
2123
2390
|
type: "array",
|
|
2124
|
-
items:
|
|
2125
|
-
|
|
2126
|
-
|
|
2391
|
+
items: false,
|
|
2392
|
+
prefixItems: [
|
|
2393
|
+
{
|
|
2394
|
+
type: "string"
|
|
2395
|
+
}
|
|
2396
|
+
]
|
|
2127
2397
|
}
|
|
2128
2398
|
],
|
|
2129
2399
|
description: "The profile(s) this policy conforms to. IRIs identifying the ODRL Profile(s)."
|
|
@@ -2160,16 +2430,19 @@ var properties$4 = {
|
|
|
2160
2430
|
},
|
|
2161
2431
|
{
|
|
2162
2432
|
type: "array",
|
|
2163
|
-
items:
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2433
|
+
items: false,
|
|
2434
|
+
prefixItems: [
|
|
2435
|
+
{
|
|
2436
|
+
anyOf: [
|
|
2437
|
+
{
|
|
2438
|
+
type: "string"
|
|
2439
|
+
},
|
|
2440
|
+
{
|
|
2441
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAsset"
|
|
2442
|
+
}
|
|
2443
|
+
]
|
|
2444
|
+
}
|
|
2445
|
+
]
|
|
2173
2446
|
}
|
|
2174
2447
|
],
|
|
2175
2448
|
description: "The target asset for the rule."
|
|
@@ -2184,16 +2457,19 @@ var properties$4 = {
|
|
|
2184
2457
|
},
|
|
2185
2458
|
{
|
|
2186
2459
|
type: "array",
|
|
2187
|
-
items:
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2460
|
+
items: false,
|
|
2461
|
+
prefixItems: [
|
|
2462
|
+
{
|
|
2463
|
+
anyOf: [
|
|
2464
|
+
{
|
|
2465
|
+
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
2466
|
+
},
|
|
2467
|
+
{
|
|
2468
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAction"
|
|
2469
|
+
}
|
|
2470
|
+
]
|
|
2471
|
+
}
|
|
2472
|
+
]
|
|
2197
2473
|
}
|
|
2198
2474
|
],
|
|
2199
2475
|
description: "The action associated with the rule."
|
|
@@ -2205,9 +2481,12 @@ var properties$4 = {
|
|
|
2205
2481
|
},
|
|
2206
2482
|
{
|
|
2207
2483
|
type: "array",
|
|
2208
|
-
items:
|
|
2209
|
-
|
|
2210
|
-
|
|
2484
|
+
items: false,
|
|
2485
|
+
prefixItems: [
|
|
2486
|
+
{
|
|
2487
|
+
type: "string"
|
|
2488
|
+
}
|
|
2489
|
+
]
|
|
2211
2490
|
}
|
|
2212
2491
|
],
|
|
2213
2492
|
description: "The parent policy(ies) this policy inherits from. IRIs identifying the parent Policy(ies)."
|
|
@@ -2218,24 +2497,33 @@ var properties$4 = {
|
|
|
2218
2497
|
},
|
|
2219
2498
|
permission: {
|
|
2220
2499
|
type: "array",
|
|
2221
|
-
items:
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2500
|
+
items: false,
|
|
2501
|
+
description: "The permissions in the policy. At least one of permission, prohibition, or obligation must be present.",
|
|
2502
|
+
prefixItems: [
|
|
2503
|
+
{
|
|
2504
|
+
$ref: "https://schema.twindev.org/odrl/OdrlPermission"
|
|
2505
|
+
}
|
|
2506
|
+
]
|
|
2225
2507
|
},
|
|
2226
2508
|
prohibition: {
|
|
2227
2509
|
type: "array",
|
|
2228
|
-
items:
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2510
|
+
items: false,
|
|
2511
|
+
description: "The prohibitions in the policy. At least one of permission, prohibition, or obligation must be present.",
|
|
2512
|
+
prefixItems: [
|
|
2513
|
+
{
|
|
2514
|
+
$ref: "https://schema.twindev.org/odrl/OdrlProhibition"
|
|
2515
|
+
}
|
|
2516
|
+
]
|
|
2232
2517
|
},
|
|
2233
2518
|
obligation: {
|
|
2234
2519
|
type: "array",
|
|
2235
|
-
items:
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2520
|
+
items: false,
|
|
2521
|
+
description: "The obligations in the policy. At least one of permission, prohibition, or obligation must be present.",
|
|
2522
|
+
prefixItems: [
|
|
2523
|
+
{
|
|
2524
|
+
$ref: "https://schema.twindev.org/odrl/OdrlDuty"
|
|
2525
|
+
}
|
|
2526
|
+
]
|
|
2239
2527
|
}
|
|
2240
2528
|
};
|
|
2241
2529
|
var required$1 = [
|
|
@@ -2246,37 +2534,41 @@ var required$1 = [
|
|
|
2246
2534
|
var additionalProperties$4 = {
|
|
2247
2535
|
anyOf: [
|
|
2248
2536
|
{
|
|
2249
|
-
$ref: "https://schema.twindev.org/
|
|
2537
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
2250
2538
|
},
|
|
2251
2539
|
{
|
|
2252
|
-
$ref: "https://schema.twindev.org/
|
|
2540
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
2253
2541
|
},
|
|
2254
2542
|
{
|
|
2255
|
-
$ref: "https://schema.twindev.org/
|
|
2543
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
2256
2544
|
},
|
|
2257
2545
|
{
|
|
2258
|
-
$ref: "https://schema.twindev.org/
|
|
2546
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
2259
2547
|
},
|
|
2260
2548
|
{
|
|
2261
|
-
$ref: "https://schema.twindev.org/
|
|
2549
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
2262
2550
|
},
|
|
2263
2551
|
{
|
|
2264
|
-
$ref: "https://schema.twindev.org/
|
|
2552
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
2265
2553
|
},
|
|
2266
2554
|
{
|
|
2267
2555
|
type: "array"
|
|
2268
2556
|
}
|
|
2269
2557
|
]
|
|
2270
2558
|
};
|
|
2271
|
-
var description$4 = "Interface representing an ODRL Policy.";
|
|
2272
2559
|
var OdrlPolicySchema = {
|
|
2560
|
+
$schema: $schema$4,
|
|
2561
|
+
$id: $id$4,
|
|
2562
|
+
description: description$4,
|
|
2273
2563
|
type: type$4,
|
|
2274
2564
|
properties: properties$4,
|
|
2275
2565
|
required: required$1,
|
|
2276
|
-
additionalProperties: additionalProperties$4
|
|
2277
|
-
description: description$4
|
|
2566
|
+
additionalProperties: additionalProperties$4
|
|
2278
2567
|
};
|
|
2279
2568
|
|
|
2569
|
+
var $schema$3 = "https://json-schema.org/draft/2020-12/schema";
|
|
2570
|
+
var $id$3 = "https://schema.twindev.org/odrl/OdrlPolicyMetadata";
|
|
2571
|
+
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.";
|
|
2280
2572
|
var type$3 = "object";
|
|
2281
2573
|
var properties$3 = {
|
|
2282
2574
|
"dc:creator": {
|
|
@@ -2286,9 +2578,12 @@ var properties$3 = {
|
|
|
2286
2578
|
},
|
|
2287
2579
|
{
|
|
2288
2580
|
type: "array",
|
|
2289
|
-
items:
|
|
2290
|
-
|
|
2291
|
-
|
|
2581
|
+
items: false,
|
|
2582
|
+
prefixItems: [
|
|
2583
|
+
{
|
|
2584
|
+
type: "string"
|
|
2585
|
+
}
|
|
2586
|
+
]
|
|
2292
2587
|
}
|
|
2293
2588
|
],
|
|
2294
2589
|
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."
|
|
@@ -2300,9 +2595,12 @@ var properties$3 = {
|
|
|
2300
2595
|
},
|
|
2301
2596
|
{
|
|
2302
2597
|
type: "array",
|
|
2303
|
-
items:
|
|
2304
|
-
|
|
2305
|
-
|
|
2598
|
+
items: false,
|
|
2599
|
+
prefixItems: [
|
|
2600
|
+
{
|
|
2601
|
+
type: "string"
|
|
2602
|
+
}
|
|
2603
|
+
]
|
|
2306
2604
|
}
|
|
2307
2605
|
],
|
|
2308
2606
|
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."
|
|
@@ -2326,9 +2624,12 @@ var properties$3 = {
|
|
|
2326
2624
|
},
|
|
2327
2625
|
{
|
|
2328
2626
|
type: "array",
|
|
2329
|
-
items:
|
|
2330
|
-
|
|
2331
|
-
|
|
2627
|
+
items: false,
|
|
2628
|
+
prefixItems: [
|
|
2629
|
+
{
|
|
2630
|
+
type: "string"
|
|
2631
|
+
}
|
|
2632
|
+
]
|
|
2332
2633
|
}
|
|
2333
2634
|
],
|
|
2334
2635
|
description: "The subject of the Policy. Note: String values may not be normalized and should not be used for direct comparison."
|
|
@@ -2395,18 +2696,22 @@ var properties$3 = {
|
|
|
2395
2696
|
}
|
|
2396
2697
|
};
|
|
2397
2698
|
var additionalProperties$3 = false;
|
|
2398
|
-
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.";
|
|
2399
2699
|
var OdrlPolicyMetadataSchema = {
|
|
2700
|
+
$schema: $schema$3,
|
|
2701
|
+
$id: $id$3,
|
|
2702
|
+
description: description$3,
|
|
2400
2703
|
type: type$3,
|
|
2401
2704
|
properties: properties$3,
|
|
2402
|
-
additionalProperties: additionalProperties$3
|
|
2403
|
-
description: description$3
|
|
2705
|
+
additionalProperties: additionalProperties$3
|
|
2404
2706
|
};
|
|
2405
2707
|
|
|
2708
|
+
var $schema$2 = "https://json-schema.org/draft/2020-12/schema";
|
|
2709
|
+
var $id$2 = "https://schema.twindev.org/odrl/OdrlProhibition";
|
|
2710
|
+
var description$2 = "Interface for Prohibition Rules.";
|
|
2406
2711
|
var type$2 = "object";
|
|
2407
2712
|
var properties$2 = {
|
|
2408
2713
|
"@context": {
|
|
2409
|
-
$ref: "https://schema.twindev.org/
|
|
2714
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
|
|
2410
2715
|
},
|
|
2411
2716
|
"@id": {
|
|
2412
2717
|
anyOf: [
|
|
@@ -2415,38 +2720,47 @@ var properties$2 = {
|
|
|
2415
2720
|
},
|
|
2416
2721
|
{
|
|
2417
2722
|
type: "array",
|
|
2418
|
-
items:
|
|
2419
|
-
|
|
2420
|
-
|
|
2723
|
+
items: false,
|
|
2724
|
+
prefixItems: [
|
|
2725
|
+
{
|
|
2726
|
+
type: "string"
|
|
2727
|
+
}
|
|
2728
|
+
]
|
|
2421
2729
|
}
|
|
2422
2730
|
]
|
|
2423
2731
|
},
|
|
2424
2732
|
"@included": {
|
|
2425
|
-
$ref: "https://schema.twindev.org/
|
|
2733
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
2426
2734
|
},
|
|
2427
2735
|
"@graph": {
|
|
2428
2736
|
anyOf: [
|
|
2429
2737
|
{
|
|
2430
|
-
$ref: "https://schema.twindev.org/
|
|
2738
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
2431
2739
|
},
|
|
2432
2740
|
{
|
|
2433
2741
|
type: "array",
|
|
2434
|
-
items:
|
|
2435
|
-
|
|
2436
|
-
|
|
2742
|
+
items: false,
|
|
2743
|
+
prefixItems: [
|
|
2744
|
+
{
|
|
2745
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
2746
|
+
}
|
|
2747
|
+
]
|
|
2437
2748
|
}
|
|
2438
2749
|
]
|
|
2439
2750
|
},
|
|
2440
2751
|
"@nest": {
|
|
2441
2752
|
anyOf: [
|
|
2442
2753
|
{
|
|
2443
|
-
$ref: "https://schema.twindev.org/
|
|
2754
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
2444
2755
|
},
|
|
2445
2756
|
{
|
|
2446
2757
|
type: "array",
|
|
2447
|
-
items:
|
|
2448
|
-
|
|
2449
|
-
|
|
2758
|
+
items: false,
|
|
2759
|
+
prefixItems: [
|
|
2760
|
+
{
|
|
2761
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
2762
|
+
}
|
|
2763
|
+
]
|
|
2450
2764
|
}
|
|
2451
2765
|
]
|
|
2452
2766
|
},
|
|
@@ -2457,9 +2771,12 @@ var properties$2 = {
|
|
|
2457
2771
|
},
|
|
2458
2772
|
{
|
|
2459
2773
|
type: "array",
|
|
2460
|
-
items:
|
|
2461
|
-
|
|
2462
|
-
|
|
2774
|
+
items: false,
|
|
2775
|
+
prefixItems: [
|
|
2776
|
+
{
|
|
2777
|
+
type: "string"
|
|
2778
|
+
}
|
|
2779
|
+
]
|
|
2463
2780
|
}
|
|
2464
2781
|
]
|
|
2465
2782
|
},
|
|
@@ -2486,16 +2803,19 @@ var properties$2 = {
|
|
|
2486
2803
|
},
|
|
2487
2804
|
{
|
|
2488
2805
|
type: "array",
|
|
2489
|
-
items:
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2806
|
+
items: false,
|
|
2807
|
+
prefixItems: [
|
|
2808
|
+
{
|
|
2809
|
+
anyOf: [
|
|
2810
|
+
{
|
|
2811
|
+
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
2812
|
+
},
|
|
2813
|
+
{
|
|
2814
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAction"
|
|
2815
|
+
}
|
|
2816
|
+
]
|
|
2817
|
+
}
|
|
2818
|
+
]
|
|
2499
2819
|
}
|
|
2500
2820
|
],
|
|
2501
2821
|
description: "The action associated with the rule."
|
|
@@ -2510,16 +2830,19 @@ var properties$2 = {
|
|
|
2510
2830
|
},
|
|
2511
2831
|
{
|
|
2512
2832
|
type: "array",
|
|
2513
|
-
items:
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2833
|
+
items: false,
|
|
2834
|
+
prefixItems: [
|
|
2835
|
+
{
|
|
2836
|
+
anyOf: [
|
|
2837
|
+
{
|
|
2838
|
+
type: "string"
|
|
2839
|
+
},
|
|
2840
|
+
{
|
|
2841
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAsset"
|
|
2842
|
+
}
|
|
2843
|
+
]
|
|
2844
|
+
}
|
|
2845
|
+
]
|
|
2523
2846
|
}
|
|
2524
2847
|
],
|
|
2525
2848
|
description: "The target asset for the rule."
|
|
@@ -2548,10 +2871,13 @@ var properties$2 = {
|
|
|
2548
2871
|
},
|
|
2549
2872
|
constraint: {
|
|
2550
2873
|
type: "array",
|
|
2551
|
-
items:
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2874
|
+
items: false,
|
|
2875
|
+
description: "Constraints applied to the rule.",
|
|
2876
|
+
prefixItems: [
|
|
2877
|
+
{
|
|
2878
|
+
$ref: "https://schema.twindev.org/odrl/OdrlConstraint"
|
|
2879
|
+
}
|
|
2880
|
+
]
|
|
2555
2881
|
},
|
|
2556
2882
|
summary: {
|
|
2557
2883
|
type: "string",
|
|
@@ -2559,49 +2885,56 @@ var properties$2 = {
|
|
|
2559
2885
|
},
|
|
2560
2886
|
remedy: {
|
|
2561
2887
|
type: "array",
|
|
2562
|
-
items:
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2888
|
+
items: false,
|
|
2889
|
+
description: "The remedies that must be fulfilled if prohibition is violated.",
|
|
2890
|
+
prefixItems: [
|
|
2891
|
+
{
|
|
2892
|
+
$ref: "https://schema.twindev.org/odrl/OdrlDuty"
|
|
2893
|
+
}
|
|
2894
|
+
]
|
|
2566
2895
|
}
|
|
2567
2896
|
};
|
|
2568
2897
|
var additionalProperties$2 = {
|
|
2569
2898
|
anyOf: [
|
|
2570
2899
|
{
|
|
2571
|
-
$ref: "https://schema.twindev.org/
|
|
2900
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
2572
2901
|
},
|
|
2573
2902
|
{
|
|
2574
|
-
$ref: "https://schema.twindev.org/
|
|
2903
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
2575
2904
|
},
|
|
2576
2905
|
{
|
|
2577
|
-
$ref: "https://schema.twindev.org/
|
|
2906
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
2578
2907
|
},
|
|
2579
2908
|
{
|
|
2580
|
-
$ref: "https://schema.twindev.org/
|
|
2909
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
2581
2910
|
},
|
|
2582
2911
|
{
|
|
2583
|
-
$ref: "https://schema.twindev.org/
|
|
2912
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
2584
2913
|
},
|
|
2585
2914
|
{
|
|
2586
|
-
$ref: "https://schema.twindev.org/
|
|
2915
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
2587
2916
|
},
|
|
2588
2917
|
{
|
|
2589
2918
|
type: "array"
|
|
2590
2919
|
}
|
|
2591
2920
|
]
|
|
2592
2921
|
};
|
|
2593
|
-
var description$2 = "Interface for Prohibition Rules.";
|
|
2594
2922
|
var OdrlProhibitionSchema = {
|
|
2923
|
+
$schema: $schema$2,
|
|
2924
|
+
$id: $id$2,
|
|
2925
|
+
description: description$2,
|
|
2595
2926
|
type: type$2,
|
|
2596
2927
|
properties: properties$2,
|
|
2597
|
-
additionalProperties: additionalProperties$2
|
|
2598
|
-
description: description$2
|
|
2928
|
+
additionalProperties: additionalProperties$2
|
|
2599
2929
|
};
|
|
2600
2930
|
|
|
2931
|
+
var $schema$1 = "https://json-schema.org/draft/2020-12/schema";
|
|
2932
|
+
var $id$1 = "https://schema.twindev.org/odrl/OdrlRule";
|
|
2933
|
+
var description$1 = "Base interface for ODRL Rules.";
|
|
2601
2934
|
var type$1 = "object";
|
|
2602
2935
|
var properties$1 = {
|
|
2603
2936
|
"@context": {
|
|
2604
|
-
$ref: "https://schema.twindev.org/
|
|
2937
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
|
|
2605
2938
|
},
|
|
2606
2939
|
"@id": {
|
|
2607
2940
|
anyOf: [
|
|
@@ -2610,38 +2943,47 @@ var properties$1 = {
|
|
|
2610
2943
|
},
|
|
2611
2944
|
{
|
|
2612
2945
|
type: "array",
|
|
2613
|
-
items:
|
|
2614
|
-
|
|
2615
|
-
|
|
2946
|
+
items: false,
|
|
2947
|
+
prefixItems: [
|
|
2948
|
+
{
|
|
2949
|
+
type: "string"
|
|
2950
|
+
}
|
|
2951
|
+
]
|
|
2616
2952
|
}
|
|
2617
2953
|
]
|
|
2618
2954
|
},
|
|
2619
2955
|
"@included": {
|
|
2620
|
-
$ref: "https://schema.twindev.org/
|
|
2956
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
2621
2957
|
},
|
|
2622
2958
|
"@graph": {
|
|
2623
2959
|
anyOf: [
|
|
2624
2960
|
{
|
|
2625
|
-
$ref: "https://schema.twindev.org/
|
|
2961
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
2626
2962
|
},
|
|
2627
2963
|
{
|
|
2628
2964
|
type: "array",
|
|
2629
|
-
items:
|
|
2630
|
-
|
|
2631
|
-
|
|
2965
|
+
items: false,
|
|
2966
|
+
prefixItems: [
|
|
2967
|
+
{
|
|
2968
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
2969
|
+
}
|
|
2970
|
+
]
|
|
2632
2971
|
}
|
|
2633
2972
|
]
|
|
2634
2973
|
},
|
|
2635
2974
|
"@nest": {
|
|
2636
2975
|
anyOf: [
|
|
2637
2976
|
{
|
|
2638
|
-
$ref: "https://schema.twindev.org/
|
|
2977
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
2639
2978
|
},
|
|
2640
2979
|
{
|
|
2641
2980
|
type: "array",
|
|
2642
|
-
items:
|
|
2643
|
-
|
|
2644
|
-
|
|
2981
|
+
items: false,
|
|
2982
|
+
prefixItems: [
|
|
2983
|
+
{
|
|
2984
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
2985
|
+
}
|
|
2986
|
+
]
|
|
2645
2987
|
}
|
|
2646
2988
|
]
|
|
2647
2989
|
},
|
|
@@ -2652,9 +2994,12 @@ var properties$1 = {
|
|
|
2652
2994
|
},
|
|
2653
2995
|
{
|
|
2654
2996
|
type: "array",
|
|
2655
|
-
items:
|
|
2656
|
-
|
|
2657
|
-
|
|
2997
|
+
items: false,
|
|
2998
|
+
prefixItems: [
|
|
2999
|
+
{
|
|
3000
|
+
type: "string"
|
|
3001
|
+
}
|
|
3002
|
+
]
|
|
2658
3003
|
}
|
|
2659
3004
|
]
|
|
2660
3005
|
},
|
|
@@ -2681,16 +3026,19 @@ var properties$1 = {
|
|
|
2681
3026
|
},
|
|
2682
3027
|
{
|
|
2683
3028
|
type: "array",
|
|
2684
|
-
items:
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
3029
|
+
items: false,
|
|
3030
|
+
prefixItems: [
|
|
3031
|
+
{
|
|
3032
|
+
anyOf: [
|
|
3033
|
+
{
|
|
3034
|
+
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
3035
|
+
},
|
|
3036
|
+
{
|
|
3037
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAction"
|
|
3038
|
+
}
|
|
3039
|
+
]
|
|
3040
|
+
}
|
|
3041
|
+
]
|
|
2694
3042
|
}
|
|
2695
3043
|
],
|
|
2696
3044
|
description: "The action associated with the rule."
|
|
@@ -2705,16 +3053,19 @@ var properties$1 = {
|
|
|
2705
3053
|
},
|
|
2706
3054
|
{
|
|
2707
3055
|
type: "array",
|
|
2708
|
-
items:
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
3056
|
+
items: false,
|
|
3057
|
+
prefixItems: [
|
|
3058
|
+
{
|
|
3059
|
+
anyOf: [
|
|
3060
|
+
{
|
|
3061
|
+
type: "string"
|
|
3062
|
+
},
|
|
3063
|
+
{
|
|
3064
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAsset"
|
|
3065
|
+
}
|
|
3066
|
+
]
|
|
3067
|
+
}
|
|
3068
|
+
]
|
|
2718
3069
|
}
|
|
2719
3070
|
],
|
|
2720
3071
|
description: "The target asset for the rule."
|
|
@@ -2743,10 +3094,13 @@ var properties$1 = {
|
|
|
2743
3094
|
},
|
|
2744
3095
|
constraint: {
|
|
2745
3096
|
type: "array",
|
|
2746
|
-
items:
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
3097
|
+
items: false,
|
|
3098
|
+
description: "Constraints applied to the rule.",
|
|
3099
|
+
prefixItems: [
|
|
3100
|
+
{
|
|
3101
|
+
$ref: "https://schema.twindev.org/odrl/OdrlConstraint"
|
|
3102
|
+
}
|
|
3103
|
+
]
|
|
2750
3104
|
},
|
|
2751
3105
|
summary: {
|
|
2752
3106
|
type: "string",
|
|
@@ -2756,36 +3110,40 @@ var properties$1 = {
|
|
|
2756
3110
|
var additionalProperties$1 = {
|
|
2757
3111
|
anyOf: [
|
|
2758
3112
|
{
|
|
2759
|
-
$ref: "https://schema.twindev.org/
|
|
3113
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
2760
3114
|
},
|
|
2761
3115
|
{
|
|
2762
|
-
$ref: "https://schema.twindev.org/
|
|
3116
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
2763
3117
|
},
|
|
2764
3118
|
{
|
|
2765
|
-
$ref: "https://schema.twindev.org/
|
|
3119
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
2766
3120
|
},
|
|
2767
3121
|
{
|
|
2768
|
-
$ref: "https://schema.twindev.org/
|
|
3122
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
2769
3123
|
},
|
|
2770
3124
|
{
|
|
2771
|
-
$ref: "https://schema.twindev.org/
|
|
3125
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
2772
3126
|
},
|
|
2773
3127
|
{
|
|
2774
|
-
$ref: "https://schema.twindev.org/
|
|
3128
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
2775
3129
|
},
|
|
2776
3130
|
{
|
|
2777
3131
|
type: "array"
|
|
2778
3132
|
}
|
|
2779
3133
|
]
|
|
2780
3134
|
};
|
|
2781
|
-
var description$1 = "Base interface for ODRL Rules.";
|
|
2782
3135
|
var OdrlRuleSchema = {
|
|
3136
|
+
$schema: $schema$1,
|
|
3137
|
+
$id: $id$1,
|
|
3138
|
+
description: description$1,
|
|
2783
3139
|
type: type$1,
|
|
2784
3140
|
properties: properties$1,
|
|
2785
|
-
additionalProperties: additionalProperties$1
|
|
2786
|
-
description: description$1
|
|
3141
|
+
additionalProperties: additionalProperties$1
|
|
2787
3142
|
};
|
|
2788
3143
|
|
|
3144
|
+
var $schema = "https://json-schema.org/draft/2020-12/schema";
|
|
3145
|
+
var $id = "https://schema.twindev.org/odrl/OdrlSet";
|
|
3146
|
+
var description = "Interface representing an ODRL Set. A Set is a basic policy type with no specific party requirements.";
|
|
2789
3147
|
var type = "object";
|
|
2790
3148
|
var properties = {
|
|
2791
3149
|
"@context": {
|
|
@@ -2793,34 +3151,53 @@ var properties = {
|
|
|
2793
3151
|
description: "The context for the policy. Must include \"https://www.w3.org/ns/odrl.jsonld\""
|
|
2794
3152
|
},
|
|
2795
3153
|
"@id": {
|
|
2796
|
-
|
|
3154
|
+
anyOf: [
|
|
3155
|
+
{
|
|
3156
|
+
type: "string"
|
|
3157
|
+
},
|
|
3158
|
+
{
|
|
3159
|
+
type: "array",
|
|
3160
|
+
items: false,
|
|
3161
|
+
prefixItems: [
|
|
3162
|
+
{
|
|
3163
|
+
type: "string"
|
|
3164
|
+
}
|
|
3165
|
+
]
|
|
3166
|
+
}
|
|
3167
|
+
]
|
|
2797
3168
|
},
|
|
2798
3169
|
"@included": {
|
|
2799
|
-
$ref: "https://schema.twindev.org/
|
|
3170
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
2800
3171
|
},
|
|
2801
3172
|
"@graph": {
|
|
2802
3173
|
anyOf: [
|
|
2803
3174
|
{
|
|
2804
|
-
$ref: "https://schema.twindev.org/
|
|
3175
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
2805
3176
|
},
|
|
2806
3177
|
{
|
|
2807
3178
|
type: "array",
|
|
2808
|
-
items:
|
|
2809
|
-
|
|
2810
|
-
|
|
3179
|
+
items: false,
|
|
3180
|
+
prefixItems: [
|
|
3181
|
+
{
|
|
3182
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
3183
|
+
}
|
|
3184
|
+
]
|
|
2811
3185
|
}
|
|
2812
3186
|
]
|
|
2813
3187
|
},
|
|
2814
3188
|
"@nest": {
|
|
2815
3189
|
anyOf: [
|
|
2816
3190
|
{
|
|
2817
|
-
$ref: "https://schema.twindev.org/
|
|
3191
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
2818
3192
|
},
|
|
2819
3193
|
{
|
|
2820
3194
|
type: "array",
|
|
2821
|
-
items:
|
|
2822
|
-
|
|
2823
|
-
|
|
3195
|
+
items: false,
|
|
3196
|
+
prefixItems: [
|
|
3197
|
+
{
|
|
3198
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
3199
|
+
}
|
|
3200
|
+
]
|
|
2824
3201
|
}
|
|
2825
3202
|
]
|
|
2826
3203
|
},
|
|
@@ -2832,11 +3209,11 @@ var properties = {
|
|
|
2832
3209
|
"@reverse": {
|
|
2833
3210
|
type: "object",
|
|
2834
3211
|
additionalProperties: {
|
|
2835
|
-
|
|
3212
|
+
type: "string"
|
|
2836
3213
|
}
|
|
2837
3214
|
},
|
|
2838
3215
|
"@index": {
|
|
2839
|
-
|
|
3216
|
+
type: "string"
|
|
2840
3217
|
},
|
|
2841
3218
|
uid: {
|
|
2842
3219
|
type: "string",
|
|
@@ -2849,9 +3226,12 @@ var properties = {
|
|
|
2849
3226
|
},
|
|
2850
3227
|
{
|
|
2851
3228
|
type: "array",
|
|
2852
|
-
items:
|
|
2853
|
-
|
|
2854
|
-
|
|
3229
|
+
items: false,
|
|
3230
|
+
prefixItems: [
|
|
3231
|
+
{
|
|
3232
|
+
type: "string"
|
|
3233
|
+
}
|
|
3234
|
+
]
|
|
2855
3235
|
}
|
|
2856
3236
|
],
|
|
2857
3237
|
description: "The profile(s) this policy conforms to. IRIs identifying the ODRL Profile(s)."
|
|
@@ -2888,16 +3268,19 @@ var properties = {
|
|
|
2888
3268
|
},
|
|
2889
3269
|
{
|
|
2890
3270
|
type: "array",
|
|
2891
|
-
items:
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
3271
|
+
items: false,
|
|
3272
|
+
prefixItems: [
|
|
3273
|
+
{
|
|
3274
|
+
anyOf: [
|
|
3275
|
+
{
|
|
3276
|
+
type: "string"
|
|
3277
|
+
},
|
|
3278
|
+
{
|
|
3279
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAsset"
|
|
3280
|
+
}
|
|
3281
|
+
]
|
|
3282
|
+
}
|
|
3283
|
+
]
|
|
2901
3284
|
}
|
|
2902
3285
|
],
|
|
2903
3286
|
description: "The target asset for the rule."
|
|
@@ -2912,16 +3295,19 @@ var properties = {
|
|
|
2912
3295
|
},
|
|
2913
3296
|
{
|
|
2914
3297
|
type: "array",
|
|
2915
|
-
items:
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
3298
|
+
items: false,
|
|
3299
|
+
prefixItems: [
|
|
3300
|
+
{
|
|
3301
|
+
anyOf: [
|
|
3302
|
+
{
|
|
3303
|
+
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
3304
|
+
},
|
|
3305
|
+
{
|
|
3306
|
+
$ref: "https://schema.twindev.org/odrl/OdrlAction"
|
|
3307
|
+
}
|
|
3308
|
+
]
|
|
3309
|
+
}
|
|
3310
|
+
]
|
|
2925
3311
|
}
|
|
2926
3312
|
],
|
|
2927
3313
|
description: "The action associated with the rule."
|
|
@@ -2933,9 +3319,12 @@ var properties = {
|
|
|
2933
3319
|
},
|
|
2934
3320
|
{
|
|
2935
3321
|
type: "array",
|
|
2936
|
-
items:
|
|
2937
|
-
|
|
2938
|
-
|
|
3322
|
+
items: false,
|
|
3323
|
+
prefixItems: [
|
|
3324
|
+
{
|
|
3325
|
+
type: "string"
|
|
3326
|
+
}
|
|
3327
|
+
]
|
|
2939
3328
|
}
|
|
2940
3329
|
],
|
|
2941
3330
|
description: "The parent policy(ies) this policy inherits from. IRIs identifying the parent Policy(ies)."
|
|
@@ -2946,24 +3335,33 @@ var properties = {
|
|
|
2946
3335
|
},
|
|
2947
3336
|
permission: {
|
|
2948
3337
|
type: "array",
|
|
2949
|
-
items:
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
3338
|
+
items: false,
|
|
3339
|
+
description: "The permissions in the policy. At least one of permission, prohibition, or obligation must be present.",
|
|
3340
|
+
prefixItems: [
|
|
3341
|
+
{
|
|
3342
|
+
$ref: "https://schema.twindev.org/odrl/OdrlPermission"
|
|
3343
|
+
}
|
|
3344
|
+
]
|
|
2953
3345
|
},
|
|
2954
3346
|
prohibition: {
|
|
2955
3347
|
type: "array",
|
|
2956
|
-
items:
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
3348
|
+
items: false,
|
|
3349
|
+
description: "The prohibitions in the policy. At least one of permission, prohibition, or obligation must be present.",
|
|
3350
|
+
prefixItems: [
|
|
3351
|
+
{
|
|
3352
|
+
$ref: "https://schema.twindev.org/odrl/OdrlProhibition"
|
|
3353
|
+
}
|
|
3354
|
+
]
|
|
2960
3355
|
},
|
|
2961
3356
|
obligation: {
|
|
2962
3357
|
type: "array",
|
|
2963
|
-
items:
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
3358
|
+
items: false,
|
|
3359
|
+
description: "The obligations in the policy. At least one of permission, prohibition, or obligation must be present.",
|
|
3360
|
+
prefixItems: [
|
|
3361
|
+
{
|
|
3362
|
+
$ref: "https://schema.twindev.org/odrl/OdrlDuty"
|
|
3363
|
+
}
|
|
3364
|
+
]
|
|
2967
3365
|
}
|
|
2968
3366
|
};
|
|
2969
3367
|
var required = [
|
|
@@ -2974,35 +3372,36 @@ var required = [
|
|
|
2974
3372
|
var additionalProperties = {
|
|
2975
3373
|
anyOf: [
|
|
2976
3374
|
{
|
|
2977
|
-
$ref: "https://schema.twindev.org/
|
|
3375
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
2978
3376
|
},
|
|
2979
3377
|
{
|
|
2980
|
-
$ref: "https://schema.twindev.org/
|
|
3378
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
2981
3379
|
},
|
|
2982
3380
|
{
|
|
2983
|
-
$ref: "https://schema.twindev.org/
|
|
3381
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
2984
3382
|
},
|
|
2985
3383
|
{
|
|
2986
|
-
$ref: "https://schema.twindev.org/
|
|
3384
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
2987
3385
|
},
|
|
2988
3386
|
{
|
|
2989
|
-
$ref: "https://schema.twindev.org/
|
|
3387
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
2990
3388
|
},
|
|
2991
3389
|
{
|
|
2992
|
-
$ref: "https://schema.twindev.org/
|
|
3390
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
2993
3391
|
},
|
|
2994
3392
|
{
|
|
2995
3393
|
type: "array"
|
|
2996
3394
|
}
|
|
2997
3395
|
]
|
|
2998
3396
|
};
|
|
2999
|
-
var description = "Interface representing an ODRL Set. A Set is a basic policy type with no specific party requirements.";
|
|
3000
3397
|
var OdrlSetSchema = {
|
|
3398
|
+
$schema: $schema,
|
|
3399
|
+
$id: $id,
|
|
3400
|
+
description: description,
|
|
3001
3401
|
type: type,
|
|
3002
3402
|
properties: properties,
|
|
3003
3403
|
required: required,
|
|
3004
|
-
additionalProperties: additionalProperties
|
|
3005
|
-
description: description
|
|
3404
|
+
additionalProperties: additionalProperties
|
|
3006
3405
|
};
|
|
3007
3406
|
|
|
3008
3407
|
// Copyright 2024 IOTA Stiftung.
|