@twin.org/standards-w3c-odrl 0.0.2-next.10 → 0.0.2-next.12
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 +187 -96
- package/dist/esm/index.mjs +187 -96
- package/dist/types/models/types/odrlTypes.d.ts +0 -4
- package/docs/changelog.md +30 -0
- package/docs/reference/variables/OdrlTypes.md +0 -6
- package/package.json +3 -3
package/dist/cjs/index.cjs
CHANGED
|
@@ -86,16 +86,12 @@ const OdrlTypes = {
|
|
|
86
86
|
/**
|
|
87
87
|
* LogicalConstraint type.
|
|
88
88
|
*/
|
|
89
|
-
LogicalConstraint: "LogicalConstraint"
|
|
90
|
-
/**
|
|
91
|
-
* ContextType.
|
|
92
|
-
*/
|
|
93
|
-
ContextType: "ContextType"
|
|
89
|
+
LogicalConstraint: "LogicalConstraint"
|
|
94
90
|
};
|
|
95
91
|
|
|
96
|
-
var $schema$
|
|
97
|
-
var $id$
|
|
98
|
-
var description$
|
|
92
|
+
var $schema$e = "https://json-schema.org/draft/2020-12/schema";
|
|
93
|
+
var $id$e = "https://schema.twindev.org/w3c-odrl/OdrlAction";
|
|
94
|
+
var description$e = "Interface for ODRL Actions. https://www.w3.org/TR/odrl-model/#action";
|
|
99
95
|
var type$e = "object";
|
|
100
96
|
var properties$e = {
|
|
101
97
|
"@context": {
|
|
@@ -260,22 +256,59 @@ var additionalProperties$e = {
|
|
|
260
256
|
]
|
|
261
257
|
};
|
|
262
258
|
var OdrlActionSchema = {
|
|
263
|
-
$schema: $schema$
|
|
264
|
-
$id: $id$
|
|
265
|
-
description: description$
|
|
259
|
+
$schema: $schema$e,
|
|
260
|
+
$id: $id$e,
|
|
261
|
+
description: description$e,
|
|
266
262
|
type: type$e,
|
|
267
263
|
properties: properties$e,
|
|
268
264
|
additionalProperties: additionalProperties$e
|
|
269
265
|
};
|
|
270
266
|
|
|
271
|
-
var $schema$
|
|
272
|
-
var $id$
|
|
273
|
-
var description$
|
|
267
|
+
var $schema$d = "https://json-schema.org/draft/2020-12/schema";
|
|
268
|
+
var $id$d = "https://schema.twindev.org/w3c-odrl/OdrlAgreement";
|
|
269
|
+
var description$d = "Interface representing an ODRL Agreement. An Agreement requires both an assigner and assignee (both agreeing parties). https://www.w3.org/TR/odrl-model/#policy-agreement";
|
|
274
270
|
var type$d = "object";
|
|
275
271
|
var properties$d = {
|
|
276
272
|
"@context": {
|
|
277
|
-
|
|
278
|
-
|
|
273
|
+
description: "The ODRL JSON-LD context type.",
|
|
274
|
+
anyOf: [
|
|
275
|
+
{
|
|
276
|
+
type: "string",
|
|
277
|
+
"const": "https://www.w3.org/ns/odrl/2/"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
type: "array",
|
|
281
|
+
minItems: 2,
|
|
282
|
+
items: {
|
|
283
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
284
|
+
},
|
|
285
|
+
prefixItems: [
|
|
286
|
+
{
|
|
287
|
+
type: "string",
|
|
288
|
+
"const": "https://www.w3.org/ns/odrl/2/"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
292
|
+
}
|
|
293
|
+
]
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
type: "array",
|
|
297
|
+
minItems: 2,
|
|
298
|
+
items: {
|
|
299
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
300
|
+
},
|
|
301
|
+
prefixItems: [
|
|
302
|
+
{
|
|
303
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
type: "string",
|
|
307
|
+
"const": "https://www.w3.org/ns/odrl/2/"
|
|
308
|
+
}
|
|
309
|
+
]
|
|
310
|
+
}
|
|
311
|
+
]
|
|
279
312
|
},
|
|
280
313
|
"@id": {
|
|
281
314
|
anyOf: [
|
|
@@ -530,18 +563,18 @@ var additionalProperties$d = {
|
|
|
530
563
|
]
|
|
531
564
|
};
|
|
532
565
|
var OdrlAgreementSchema = {
|
|
533
|
-
$schema: $schema$
|
|
534
|
-
$id: $id$
|
|
535
|
-
description: description$
|
|
566
|
+
$schema: $schema$d,
|
|
567
|
+
$id: $id$d,
|
|
568
|
+
description: description$d,
|
|
536
569
|
type: type$d,
|
|
537
570
|
properties: properties$d,
|
|
538
571
|
required: required$6,
|
|
539
572
|
additionalProperties: additionalProperties$d
|
|
540
573
|
};
|
|
541
574
|
|
|
542
|
-
var $schema$
|
|
543
|
-
var $id$
|
|
544
|
-
var description$
|
|
575
|
+
var $schema$c = "https://json-schema.org/draft/2020-12/schema";
|
|
576
|
+
var $id$c = "https://schema.twindev.org/w3c-odrl/OdrlAsset";
|
|
577
|
+
var description$c = "Interface for ODRL Assets. https://www.w3.org/TR/odrl-model/#asset";
|
|
545
578
|
var type$c = "object";
|
|
546
579
|
var properties$c = {
|
|
547
580
|
"@context": {
|
|
@@ -657,17 +690,17 @@ var additionalProperties$c = {
|
|
|
657
690
|
]
|
|
658
691
|
};
|
|
659
692
|
var OdrlAssetSchema = {
|
|
660
|
-
$schema: $schema$
|
|
661
|
-
$id: $id$
|
|
662
|
-
description: description$
|
|
693
|
+
$schema: $schema$c,
|
|
694
|
+
$id: $id$c,
|
|
695
|
+
description: description$c,
|
|
663
696
|
type: type$c,
|
|
664
697
|
properties: properties$c,
|
|
665
698
|
additionalProperties: additionalProperties$c
|
|
666
699
|
};
|
|
667
700
|
|
|
668
|
-
var $schema$
|
|
669
|
-
var $id$
|
|
670
|
-
var description$
|
|
701
|
+
var $schema$b = "https://json-schema.org/draft/2020-12/schema";
|
|
702
|
+
var $id$b = "https://schema.twindev.org/w3c-odrl/OdrlAssetCollection";
|
|
703
|
+
var description$b = "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. https://www.w3.org/TR/odrl-model/#asset";
|
|
671
704
|
var type$b = "object";
|
|
672
705
|
var properties$b = {
|
|
673
706
|
"@context": {
|
|
@@ -800,18 +833,18 @@ var additionalProperties$b = {
|
|
|
800
833
|
]
|
|
801
834
|
};
|
|
802
835
|
var OdrlAssetCollectionSchema = {
|
|
803
|
-
$schema: $schema$
|
|
804
|
-
$id: $id$
|
|
805
|
-
description: description$
|
|
836
|
+
$schema: $schema$b,
|
|
837
|
+
$id: $id$b,
|
|
838
|
+
description: description$b,
|
|
806
839
|
type: type$b,
|
|
807
840
|
properties: properties$b,
|
|
808
841
|
required: required$5,
|
|
809
842
|
additionalProperties: additionalProperties$b
|
|
810
843
|
};
|
|
811
844
|
|
|
812
|
-
var $schema$
|
|
813
|
-
var $id$
|
|
814
|
-
var description$
|
|
845
|
+
var $schema$a = "https://json-schema.org/draft/2020-12/schema";
|
|
846
|
+
var $id$a = "https://schema.twindev.org/w3c-odrl/OdrlConstraint";
|
|
847
|
+
var description$a = "Interface for ODRL Constraints. https://www.w3.org/TR/odrl-model/#constraint";
|
|
815
848
|
var type$a = "object";
|
|
816
849
|
var properties$a = {
|
|
817
850
|
"@context": {
|
|
@@ -994,63 +1027,15 @@ var additionalProperties$a = {
|
|
|
994
1027
|
]
|
|
995
1028
|
};
|
|
996
1029
|
var OdrlConstraintSchema = {
|
|
997
|
-
$schema: $schema$
|
|
998
|
-
$id: $id$
|
|
999
|
-
description: description$
|
|
1030
|
+
$schema: $schema$a,
|
|
1031
|
+
$id: $id$a,
|
|
1032
|
+
description: description$a,
|
|
1000
1033
|
type: type$a,
|
|
1001
1034
|
properties: properties$a,
|
|
1002
1035
|
required: required$4,
|
|
1003
1036
|
additionalProperties: additionalProperties$a
|
|
1004
1037
|
};
|
|
1005
1038
|
|
|
1006
|
-
var $schema$a = "https://json-schema.org/draft/2020-12/schema";
|
|
1007
|
-
var $id$a = "https://schema.twindev.org/w3c-odrl/OdrlContextType";
|
|
1008
|
-
var description$a = "The ODRL JSON-LD context type.";
|
|
1009
|
-
var anyOf = [
|
|
1010
|
-
{
|
|
1011
|
-
type: "string",
|
|
1012
|
-
"const": "https://www.w3.org/ns/odrl/2/"
|
|
1013
|
-
},
|
|
1014
|
-
{
|
|
1015
|
-
type: "array",
|
|
1016
|
-
minItems: 2,
|
|
1017
|
-
items: {
|
|
1018
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
1019
|
-
},
|
|
1020
|
-
prefixItems: [
|
|
1021
|
-
{
|
|
1022
|
-
type: "string",
|
|
1023
|
-
"const": "https://www.w3.org/ns/odrl/2/"
|
|
1024
|
-
},
|
|
1025
|
-
{
|
|
1026
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
1027
|
-
}
|
|
1028
|
-
]
|
|
1029
|
-
},
|
|
1030
|
-
{
|
|
1031
|
-
type: "array",
|
|
1032
|
-
minItems: 2,
|
|
1033
|
-
items: {
|
|
1034
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
1035
|
-
},
|
|
1036
|
-
prefixItems: [
|
|
1037
|
-
{
|
|
1038
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
1039
|
-
},
|
|
1040
|
-
{
|
|
1041
|
-
type: "string",
|
|
1042
|
-
"const": "https://www.w3.org/ns/odrl/2/"
|
|
1043
|
-
}
|
|
1044
|
-
]
|
|
1045
|
-
}
|
|
1046
|
-
];
|
|
1047
|
-
var OdrlContextTypeSchema = {
|
|
1048
|
-
$schema: $schema$a,
|
|
1049
|
-
$id: $id$a,
|
|
1050
|
-
description: description$a,
|
|
1051
|
-
anyOf: anyOf
|
|
1052
|
-
};
|
|
1053
|
-
|
|
1054
1039
|
var $schema$9 = "https://json-schema.org/draft/2020-12/schema";
|
|
1055
1040
|
var $id$9 = "https://schema.twindev.org/w3c-odrl/OdrlDuty";
|
|
1056
1041
|
var description$9 = "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. https://www.w3.org/TR/odrl-model/#duty";
|
|
@@ -1543,8 +1528,45 @@ var description$7 = "Interface representing an ODRL Offer. An Offer requires an
|
|
|
1543
1528
|
var type$7 = "object";
|
|
1544
1529
|
var properties$7 = {
|
|
1545
1530
|
"@context": {
|
|
1546
|
-
|
|
1547
|
-
|
|
1531
|
+
description: "The ODRL JSON-LD context type.",
|
|
1532
|
+
anyOf: [
|
|
1533
|
+
{
|
|
1534
|
+
type: "string",
|
|
1535
|
+
"const": "https://www.w3.org/ns/odrl/2/"
|
|
1536
|
+
},
|
|
1537
|
+
{
|
|
1538
|
+
type: "array",
|
|
1539
|
+
minItems: 2,
|
|
1540
|
+
items: {
|
|
1541
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
1542
|
+
},
|
|
1543
|
+
prefixItems: [
|
|
1544
|
+
{
|
|
1545
|
+
type: "string",
|
|
1546
|
+
"const": "https://www.w3.org/ns/odrl/2/"
|
|
1547
|
+
},
|
|
1548
|
+
{
|
|
1549
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
1550
|
+
}
|
|
1551
|
+
]
|
|
1552
|
+
},
|
|
1553
|
+
{
|
|
1554
|
+
type: "array",
|
|
1555
|
+
minItems: 2,
|
|
1556
|
+
items: {
|
|
1557
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
1558
|
+
},
|
|
1559
|
+
prefixItems: [
|
|
1560
|
+
{
|
|
1561
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
1562
|
+
},
|
|
1563
|
+
{
|
|
1564
|
+
type: "string",
|
|
1565
|
+
"const": "https://www.w3.org/ns/odrl/2/"
|
|
1566
|
+
}
|
|
1567
|
+
]
|
|
1568
|
+
}
|
|
1569
|
+
]
|
|
1548
1570
|
},
|
|
1549
1571
|
"@id": {
|
|
1550
1572
|
anyOf: [
|
|
@@ -2346,8 +2368,45 @@ var description$3 = "Interface representing an ODRL Policy. https://www.w3.org/T
|
|
|
2346
2368
|
var type$3 = "object";
|
|
2347
2369
|
var properties$3 = {
|
|
2348
2370
|
"@context": {
|
|
2349
|
-
|
|
2350
|
-
|
|
2371
|
+
description: "The ODRL JSON-LD context type.",
|
|
2372
|
+
anyOf: [
|
|
2373
|
+
{
|
|
2374
|
+
type: "string",
|
|
2375
|
+
"const": "https://www.w3.org/ns/odrl/2/"
|
|
2376
|
+
},
|
|
2377
|
+
{
|
|
2378
|
+
type: "array",
|
|
2379
|
+
minItems: 2,
|
|
2380
|
+
items: {
|
|
2381
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
2382
|
+
},
|
|
2383
|
+
prefixItems: [
|
|
2384
|
+
{
|
|
2385
|
+
type: "string",
|
|
2386
|
+
"const": "https://www.w3.org/ns/odrl/2/"
|
|
2387
|
+
},
|
|
2388
|
+
{
|
|
2389
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
2390
|
+
}
|
|
2391
|
+
]
|
|
2392
|
+
},
|
|
2393
|
+
{
|
|
2394
|
+
type: "array",
|
|
2395
|
+
minItems: 2,
|
|
2396
|
+
items: {
|
|
2397
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
2398
|
+
},
|
|
2399
|
+
prefixItems: [
|
|
2400
|
+
{
|
|
2401
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
2402
|
+
},
|
|
2403
|
+
{
|
|
2404
|
+
type: "string",
|
|
2405
|
+
"const": "https://www.w3.org/ns/odrl/2/"
|
|
2406
|
+
}
|
|
2407
|
+
]
|
|
2408
|
+
}
|
|
2409
|
+
]
|
|
2351
2410
|
},
|
|
2352
2411
|
"@id": {
|
|
2353
2412
|
anyOf: [
|
|
@@ -3062,8 +3121,45 @@ var description = "Interface representing an ODRL Set. A Set is a basic policy t
|
|
|
3062
3121
|
var type = "object";
|
|
3063
3122
|
var properties = {
|
|
3064
3123
|
"@context": {
|
|
3065
|
-
|
|
3066
|
-
|
|
3124
|
+
description: "The ODRL JSON-LD context type.",
|
|
3125
|
+
anyOf: [
|
|
3126
|
+
{
|
|
3127
|
+
type: "string",
|
|
3128
|
+
"const": "https://www.w3.org/ns/odrl/2/"
|
|
3129
|
+
},
|
|
3130
|
+
{
|
|
3131
|
+
type: "array",
|
|
3132
|
+
minItems: 2,
|
|
3133
|
+
items: {
|
|
3134
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
3135
|
+
},
|
|
3136
|
+
prefixItems: [
|
|
3137
|
+
{
|
|
3138
|
+
type: "string",
|
|
3139
|
+
"const": "https://www.w3.org/ns/odrl/2/"
|
|
3140
|
+
},
|
|
3141
|
+
{
|
|
3142
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
3143
|
+
}
|
|
3144
|
+
]
|
|
3145
|
+
},
|
|
3146
|
+
{
|
|
3147
|
+
type: "array",
|
|
3148
|
+
minItems: 2,
|
|
3149
|
+
items: {
|
|
3150
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
3151
|
+
},
|
|
3152
|
+
prefixItems: [
|
|
3153
|
+
{
|
|
3154
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
3155
|
+
},
|
|
3156
|
+
{
|
|
3157
|
+
type: "string",
|
|
3158
|
+
"const": "https://www.w3.org/ns/odrl/2/"
|
|
3159
|
+
}
|
|
3160
|
+
]
|
|
3161
|
+
}
|
|
3162
|
+
]
|
|
3067
3163
|
},
|
|
3068
3164
|
"@id": {
|
|
3069
3165
|
anyOf: [
|
|
@@ -3416,11 +3512,6 @@ class OdrlDataTypes {
|
|
|
3416
3512
|
type: OdrlTypes.Rule,
|
|
3417
3513
|
jsonSchema: async () => OdrlRuleSchema
|
|
3418
3514
|
}));
|
|
3419
|
-
dataCore.DataTypeHandlerFactory.register(`${OdrlContexts.ContextRoot}${OdrlTypes.ContextType}`, () => ({
|
|
3420
|
-
context: OdrlContexts.ContextRoot,
|
|
3421
|
-
type: OdrlTypes.ContextType,
|
|
3422
|
-
jsonSchema: async () => OdrlContextTypeSchema
|
|
3423
|
-
}));
|
|
3424
3515
|
}
|
|
3425
3516
|
}
|
|
3426
3517
|
|
package/dist/esm/index.mjs
CHANGED
|
@@ -84,16 +84,12 @@ const OdrlTypes = {
|
|
|
84
84
|
/**
|
|
85
85
|
* LogicalConstraint type.
|
|
86
86
|
*/
|
|
87
|
-
LogicalConstraint: "LogicalConstraint"
|
|
88
|
-
/**
|
|
89
|
-
* ContextType.
|
|
90
|
-
*/
|
|
91
|
-
ContextType: "ContextType"
|
|
87
|
+
LogicalConstraint: "LogicalConstraint"
|
|
92
88
|
};
|
|
93
89
|
|
|
94
|
-
var $schema$
|
|
95
|
-
var $id$
|
|
96
|
-
var description$
|
|
90
|
+
var $schema$e = "https://json-schema.org/draft/2020-12/schema";
|
|
91
|
+
var $id$e = "https://schema.twindev.org/w3c-odrl/OdrlAction";
|
|
92
|
+
var description$e = "Interface for ODRL Actions. https://www.w3.org/TR/odrl-model/#action";
|
|
97
93
|
var type$e = "object";
|
|
98
94
|
var properties$e = {
|
|
99
95
|
"@context": {
|
|
@@ -258,22 +254,59 @@ var additionalProperties$e = {
|
|
|
258
254
|
]
|
|
259
255
|
};
|
|
260
256
|
var OdrlActionSchema = {
|
|
261
|
-
$schema: $schema$
|
|
262
|
-
$id: $id$
|
|
263
|
-
description: description$
|
|
257
|
+
$schema: $schema$e,
|
|
258
|
+
$id: $id$e,
|
|
259
|
+
description: description$e,
|
|
264
260
|
type: type$e,
|
|
265
261
|
properties: properties$e,
|
|
266
262
|
additionalProperties: additionalProperties$e
|
|
267
263
|
};
|
|
268
264
|
|
|
269
|
-
var $schema$
|
|
270
|
-
var $id$
|
|
271
|
-
var description$
|
|
265
|
+
var $schema$d = "https://json-schema.org/draft/2020-12/schema";
|
|
266
|
+
var $id$d = "https://schema.twindev.org/w3c-odrl/OdrlAgreement";
|
|
267
|
+
var description$d = "Interface representing an ODRL Agreement. An Agreement requires both an assigner and assignee (both agreeing parties). https://www.w3.org/TR/odrl-model/#policy-agreement";
|
|
272
268
|
var type$d = "object";
|
|
273
269
|
var properties$d = {
|
|
274
270
|
"@context": {
|
|
275
|
-
|
|
276
|
-
|
|
271
|
+
description: "The ODRL JSON-LD context type.",
|
|
272
|
+
anyOf: [
|
|
273
|
+
{
|
|
274
|
+
type: "string",
|
|
275
|
+
"const": "https://www.w3.org/ns/odrl/2/"
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
type: "array",
|
|
279
|
+
minItems: 2,
|
|
280
|
+
items: {
|
|
281
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
282
|
+
},
|
|
283
|
+
prefixItems: [
|
|
284
|
+
{
|
|
285
|
+
type: "string",
|
|
286
|
+
"const": "https://www.w3.org/ns/odrl/2/"
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
290
|
+
}
|
|
291
|
+
]
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
type: "array",
|
|
295
|
+
minItems: 2,
|
|
296
|
+
items: {
|
|
297
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
298
|
+
},
|
|
299
|
+
prefixItems: [
|
|
300
|
+
{
|
|
301
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
type: "string",
|
|
305
|
+
"const": "https://www.w3.org/ns/odrl/2/"
|
|
306
|
+
}
|
|
307
|
+
]
|
|
308
|
+
}
|
|
309
|
+
]
|
|
277
310
|
},
|
|
278
311
|
"@id": {
|
|
279
312
|
anyOf: [
|
|
@@ -528,18 +561,18 @@ var additionalProperties$d = {
|
|
|
528
561
|
]
|
|
529
562
|
};
|
|
530
563
|
var OdrlAgreementSchema = {
|
|
531
|
-
$schema: $schema$
|
|
532
|
-
$id: $id$
|
|
533
|
-
description: description$
|
|
564
|
+
$schema: $schema$d,
|
|
565
|
+
$id: $id$d,
|
|
566
|
+
description: description$d,
|
|
534
567
|
type: type$d,
|
|
535
568
|
properties: properties$d,
|
|
536
569
|
required: required$6,
|
|
537
570
|
additionalProperties: additionalProperties$d
|
|
538
571
|
};
|
|
539
572
|
|
|
540
|
-
var $schema$
|
|
541
|
-
var $id$
|
|
542
|
-
var description$
|
|
573
|
+
var $schema$c = "https://json-schema.org/draft/2020-12/schema";
|
|
574
|
+
var $id$c = "https://schema.twindev.org/w3c-odrl/OdrlAsset";
|
|
575
|
+
var description$c = "Interface for ODRL Assets. https://www.w3.org/TR/odrl-model/#asset";
|
|
543
576
|
var type$c = "object";
|
|
544
577
|
var properties$c = {
|
|
545
578
|
"@context": {
|
|
@@ -655,17 +688,17 @@ var additionalProperties$c = {
|
|
|
655
688
|
]
|
|
656
689
|
};
|
|
657
690
|
var OdrlAssetSchema = {
|
|
658
|
-
$schema: $schema$
|
|
659
|
-
$id: $id$
|
|
660
|
-
description: description$
|
|
691
|
+
$schema: $schema$c,
|
|
692
|
+
$id: $id$c,
|
|
693
|
+
description: description$c,
|
|
661
694
|
type: type$c,
|
|
662
695
|
properties: properties$c,
|
|
663
696
|
additionalProperties: additionalProperties$c
|
|
664
697
|
};
|
|
665
698
|
|
|
666
|
-
var $schema$
|
|
667
|
-
var $id$
|
|
668
|
-
var description$
|
|
699
|
+
var $schema$b = "https://json-schema.org/draft/2020-12/schema";
|
|
700
|
+
var $id$b = "https://schema.twindev.org/w3c-odrl/OdrlAssetCollection";
|
|
701
|
+
var description$b = "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. https://www.w3.org/TR/odrl-model/#asset";
|
|
669
702
|
var type$b = "object";
|
|
670
703
|
var properties$b = {
|
|
671
704
|
"@context": {
|
|
@@ -798,18 +831,18 @@ var additionalProperties$b = {
|
|
|
798
831
|
]
|
|
799
832
|
};
|
|
800
833
|
var OdrlAssetCollectionSchema = {
|
|
801
|
-
$schema: $schema$
|
|
802
|
-
$id: $id$
|
|
803
|
-
description: description$
|
|
834
|
+
$schema: $schema$b,
|
|
835
|
+
$id: $id$b,
|
|
836
|
+
description: description$b,
|
|
804
837
|
type: type$b,
|
|
805
838
|
properties: properties$b,
|
|
806
839
|
required: required$5,
|
|
807
840
|
additionalProperties: additionalProperties$b
|
|
808
841
|
};
|
|
809
842
|
|
|
810
|
-
var $schema$
|
|
811
|
-
var $id$
|
|
812
|
-
var description$
|
|
843
|
+
var $schema$a = "https://json-schema.org/draft/2020-12/schema";
|
|
844
|
+
var $id$a = "https://schema.twindev.org/w3c-odrl/OdrlConstraint";
|
|
845
|
+
var description$a = "Interface for ODRL Constraints. https://www.w3.org/TR/odrl-model/#constraint";
|
|
813
846
|
var type$a = "object";
|
|
814
847
|
var properties$a = {
|
|
815
848
|
"@context": {
|
|
@@ -992,63 +1025,15 @@ var additionalProperties$a = {
|
|
|
992
1025
|
]
|
|
993
1026
|
};
|
|
994
1027
|
var OdrlConstraintSchema = {
|
|
995
|
-
$schema: $schema$
|
|
996
|
-
$id: $id$
|
|
997
|
-
description: description$
|
|
1028
|
+
$schema: $schema$a,
|
|
1029
|
+
$id: $id$a,
|
|
1030
|
+
description: description$a,
|
|
998
1031
|
type: type$a,
|
|
999
1032
|
properties: properties$a,
|
|
1000
1033
|
required: required$4,
|
|
1001
1034
|
additionalProperties: additionalProperties$a
|
|
1002
1035
|
};
|
|
1003
1036
|
|
|
1004
|
-
var $schema$a = "https://json-schema.org/draft/2020-12/schema";
|
|
1005
|
-
var $id$a = "https://schema.twindev.org/w3c-odrl/OdrlContextType";
|
|
1006
|
-
var description$a = "The ODRL JSON-LD context type.";
|
|
1007
|
-
var anyOf = [
|
|
1008
|
-
{
|
|
1009
|
-
type: "string",
|
|
1010
|
-
"const": "https://www.w3.org/ns/odrl/2/"
|
|
1011
|
-
},
|
|
1012
|
-
{
|
|
1013
|
-
type: "array",
|
|
1014
|
-
minItems: 2,
|
|
1015
|
-
items: {
|
|
1016
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
1017
|
-
},
|
|
1018
|
-
prefixItems: [
|
|
1019
|
-
{
|
|
1020
|
-
type: "string",
|
|
1021
|
-
"const": "https://www.w3.org/ns/odrl/2/"
|
|
1022
|
-
},
|
|
1023
|
-
{
|
|
1024
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
1025
|
-
}
|
|
1026
|
-
]
|
|
1027
|
-
},
|
|
1028
|
-
{
|
|
1029
|
-
type: "array",
|
|
1030
|
-
minItems: 2,
|
|
1031
|
-
items: {
|
|
1032
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
1033
|
-
},
|
|
1034
|
-
prefixItems: [
|
|
1035
|
-
{
|
|
1036
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
1037
|
-
},
|
|
1038
|
-
{
|
|
1039
|
-
type: "string",
|
|
1040
|
-
"const": "https://www.w3.org/ns/odrl/2/"
|
|
1041
|
-
}
|
|
1042
|
-
]
|
|
1043
|
-
}
|
|
1044
|
-
];
|
|
1045
|
-
var OdrlContextTypeSchema = {
|
|
1046
|
-
$schema: $schema$a,
|
|
1047
|
-
$id: $id$a,
|
|
1048
|
-
description: description$a,
|
|
1049
|
-
anyOf: anyOf
|
|
1050
|
-
};
|
|
1051
|
-
|
|
1052
1037
|
var $schema$9 = "https://json-schema.org/draft/2020-12/schema";
|
|
1053
1038
|
var $id$9 = "https://schema.twindev.org/w3c-odrl/OdrlDuty";
|
|
1054
1039
|
var description$9 = "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. https://www.w3.org/TR/odrl-model/#duty";
|
|
@@ -1541,8 +1526,45 @@ var description$7 = "Interface representing an ODRL Offer. An Offer requires an
|
|
|
1541
1526
|
var type$7 = "object";
|
|
1542
1527
|
var properties$7 = {
|
|
1543
1528
|
"@context": {
|
|
1544
|
-
|
|
1545
|
-
|
|
1529
|
+
description: "The ODRL JSON-LD context type.",
|
|
1530
|
+
anyOf: [
|
|
1531
|
+
{
|
|
1532
|
+
type: "string",
|
|
1533
|
+
"const": "https://www.w3.org/ns/odrl/2/"
|
|
1534
|
+
},
|
|
1535
|
+
{
|
|
1536
|
+
type: "array",
|
|
1537
|
+
minItems: 2,
|
|
1538
|
+
items: {
|
|
1539
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
1540
|
+
},
|
|
1541
|
+
prefixItems: [
|
|
1542
|
+
{
|
|
1543
|
+
type: "string",
|
|
1544
|
+
"const": "https://www.w3.org/ns/odrl/2/"
|
|
1545
|
+
},
|
|
1546
|
+
{
|
|
1547
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
1548
|
+
}
|
|
1549
|
+
]
|
|
1550
|
+
},
|
|
1551
|
+
{
|
|
1552
|
+
type: "array",
|
|
1553
|
+
minItems: 2,
|
|
1554
|
+
items: {
|
|
1555
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
1556
|
+
},
|
|
1557
|
+
prefixItems: [
|
|
1558
|
+
{
|
|
1559
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
1560
|
+
},
|
|
1561
|
+
{
|
|
1562
|
+
type: "string",
|
|
1563
|
+
"const": "https://www.w3.org/ns/odrl/2/"
|
|
1564
|
+
}
|
|
1565
|
+
]
|
|
1566
|
+
}
|
|
1567
|
+
]
|
|
1546
1568
|
},
|
|
1547
1569
|
"@id": {
|
|
1548
1570
|
anyOf: [
|
|
@@ -2344,8 +2366,45 @@ var description$3 = "Interface representing an ODRL Policy. https://www.w3.org/T
|
|
|
2344
2366
|
var type$3 = "object";
|
|
2345
2367
|
var properties$3 = {
|
|
2346
2368
|
"@context": {
|
|
2347
|
-
|
|
2348
|
-
|
|
2369
|
+
description: "The ODRL JSON-LD context type.",
|
|
2370
|
+
anyOf: [
|
|
2371
|
+
{
|
|
2372
|
+
type: "string",
|
|
2373
|
+
"const": "https://www.w3.org/ns/odrl/2/"
|
|
2374
|
+
},
|
|
2375
|
+
{
|
|
2376
|
+
type: "array",
|
|
2377
|
+
minItems: 2,
|
|
2378
|
+
items: {
|
|
2379
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
2380
|
+
},
|
|
2381
|
+
prefixItems: [
|
|
2382
|
+
{
|
|
2383
|
+
type: "string",
|
|
2384
|
+
"const": "https://www.w3.org/ns/odrl/2/"
|
|
2385
|
+
},
|
|
2386
|
+
{
|
|
2387
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
2388
|
+
}
|
|
2389
|
+
]
|
|
2390
|
+
},
|
|
2391
|
+
{
|
|
2392
|
+
type: "array",
|
|
2393
|
+
minItems: 2,
|
|
2394
|
+
items: {
|
|
2395
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
2396
|
+
},
|
|
2397
|
+
prefixItems: [
|
|
2398
|
+
{
|
|
2399
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
2400
|
+
},
|
|
2401
|
+
{
|
|
2402
|
+
type: "string",
|
|
2403
|
+
"const": "https://www.w3.org/ns/odrl/2/"
|
|
2404
|
+
}
|
|
2405
|
+
]
|
|
2406
|
+
}
|
|
2407
|
+
]
|
|
2349
2408
|
},
|
|
2350
2409
|
"@id": {
|
|
2351
2410
|
anyOf: [
|
|
@@ -3060,8 +3119,45 @@ var description = "Interface representing an ODRL Set. A Set is a basic policy t
|
|
|
3060
3119
|
var type = "object";
|
|
3061
3120
|
var properties = {
|
|
3062
3121
|
"@context": {
|
|
3063
|
-
|
|
3064
|
-
|
|
3122
|
+
description: "The ODRL JSON-LD context type.",
|
|
3123
|
+
anyOf: [
|
|
3124
|
+
{
|
|
3125
|
+
type: "string",
|
|
3126
|
+
"const": "https://www.w3.org/ns/odrl/2/"
|
|
3127
|
+
},
|
|
3128
|
+
{
|
|
3129
|
+
type: "array",
|
|
3130
|
+
minItems: 2,
|
|
3131
|
+
items: {
|
|
3132
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
3133
|
+
},
|
|
3134
|
+
prefixItems: [
|
|
3135
|
+
{
|
|
3136
|
+
type: "string",
|
|
3137
|
+
"const": "https://www.w3.org/ns/odrl/2/"
|
|
3138
|
+
},
|
|
3139
|
+
{
|
|
3140
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
3141
|
+
}
|
|
3142
|
+
]
|
|
3143
|
+
},
|
|
3144
|
+
{
|
|
3145
|
+
type: "array",
|
|
3146
|
+
minItems: 2,
|
|
3147
|
+
items: {
|
|
3148
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
3149
|
+
},
|
|
3150
|
+
prefixItems: [
|
|
3151
|
+
{
|
|
3152
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
3153
|
+
},
|
|
3154
|
+
{
|
|
3155
|
+
type: "string",
|
|
3156
|
+
"const": "https://www.w3.org/ns/odrl/2/"
|
|
3157
|
+
}
|
|
3158
|
+
]
|
|
3159
|
+
}
|
|
3160
|
+
]
|
|
3065
3161
|
},
|
|
3066
3162
|
"@id": {
|
|
3067
3163
|
anyOf: [
|
|
@@ -3414,11 +3510,6 @@ class OdrlDataTypes {
|
|
|
3414
3510
|
type: OdrlTypes.Rule,
|
|
3415
3511
|
jsonSchema: async () => OdrlRuleSchema
|
|
3416
3512
|
}));
|
|
3417
|
-
DataTypeHandlerFactory.register(`${OdrlContexts.ContextRoot}${OdrlTypes.ContextType}`, () => ({
|
|
3418
|
-
context: OdrlContexts.ContextRoot,
|
|
3419
|
-
type: OdrlTypes.ContextType,
|
|
3420
|
-
jsonSchema: async () => OdrlContextTypeSchema
|
|
3421
|
-
}));
|
|
3422
3513
|
}
|
|
3423
3514
|
}
|
|
3424
3515
|
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# @twin.org/standards-w3c-odrl - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.2-next.12](https://github.com/twinfoundation/standards/compare/standards-w3c-odrl-v0.0.2-next.11...standards-w3c-odrl-v0.0.2-next.12) (2025-09-16)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* inline context types in schemas ([11f8377](https://github.com/twinfoundation/standards/commit/11f8377b129d459a4596ff30a86651beacd7f743))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @twin.org/standards-w3c-vcard bumped from 0.0.2-next.11 to 0.0.2-next.12
|
|
16
|
+
* @twin.org/standards-dublin-core bumped from 0.0.2-next.11 to 0.0.2-next.12
|
|
17
|
+
|
|
18
|
+
## [0.0.2-next.11](https://github.com/twinfoundation/standards/compare/standards-w3c-odrl-v0.0.2-next.10...standards-w3c-odrl-v0.0.2-next.11) (2025-09-16)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Miscellaneous Chores
|
|
22
|
+
|
|
23
|
+
* **standards-w3c-odrl:** Synchronize repo versions
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Dependencies
|
|
27
|
+
|
|
28
|
+
* The following workspace dependencies were updated
|
|
29
|
+
* dependencies
|
|
30
|
+
* @twin.org/standards-w3c-vcard bumped from 0.0.2-next.10 to 0.0.2-next.11
|
|
31
|
+
* @twin.org/standards-dublin-core bumped from 0.0.2-next.10 to 0.0.2-next.11
|
|
32
|
+
|
|
3
33
|
## [0.0.2-next.10](https://github.com/twinfoundation/standards/compare/standards-w3c-odrl-v0.0.2-next.9...standards-w3c-odrl-v0.0.2-next.10) (2025-09-16)
|
|
4
34
|
|
|
5
35
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/standards-w3c-odrl",
|
|
3
|
-
"version": "0.0.2-next.
|
|
3
|
+
"version": "0.0.2-next.12",
|
|
4
4
|
"description": "Models which define the structure of W3C ODRL Standard",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"@twin.org/core": "next",
|
|
18
18
|
"@twin.org/data-core": "next",
|
|
19
19
|
"@twin.org/data-json-ld": "next",
|
|
20
|
-
"@twin.org/standards-dublin-core": "0.0.2-next.
|
|
21
|
-
"@twin.org/standards-w3c-vcard": "0.0.2-next.
|
|
20
|
+
"@twin.org/standards-dublin-core": "0.0.2-next.12",
|
|
21
|
+
"@twin.org/standards-w3c-vcard": "0.0.2-next.12",
|
|
22
22
|
"@twin.org/web": "next"
|
|
23
23
|
},
|
|
24
24
|
"main": "./dist/cjs/index.cjs",
|