@twin.org/standards-w3c-odrl 0.0.1 → 0.0.2-next.1
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 +130 -130
- package/dist/esm/index.mjs +130 -130
- package/dist/types/models/odrlContexts.d.ts +4 -4
- package/docs/changelog.md +25 -0
- package/docs/reference/variables/OdrlContexts.md +6 -6
- package/package.json +7 -7
package/dist/esm/index.mjs
CHANGED
|
@@ -9,13 +9,13 @@ import { JsonLdProcessor } from '@twin.org/data-json-ld';
|
|
|
9
9
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
10
10
|
const OdrlContexts = {
|
|
11
11
|
/**
|
|
12
|
-
* The context root for ODRL.
|
|
12
|
+
* The context root for ODRL vocabulary.
|
|
13
13
|
*/
|
|
14
|
-
|
|
14
|
+
ContextRoot: "https://www.w3.org/ns/odrl/2/",
|
|
15
15
|
/**
|
|
16
|
-
* The context root for ODRL
|
|
16
|
+
* The context root for ODRL.
|
|
17
17
|
*/
|
|
18
|
-
|
|
18
|
+
ContextRedirect: "https://www.w3.org/ns/odrl.jsonld"
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
// Copyright 2024 IOTA Stiftung.
|
|
@@ -96,7 +96,7 @@ const OdrlTypes = {
|
|
|
96
96
|
};
|
|
97
97
|
|
|
98
98
|
var $schema$g = "https://json-schema.org/draft/2020-12/schema";
|
|
99
|
-
var $id$g = "https://schema.twindev.org/odrl/OdrlAction";
|
|
99
|
+
var $id$g = "https://schema.twindev.org/w3c-odrl/OdrlAction";
|
|
100
100
|
var description$g = "Interface for ODRL Actions.";
|
|
101
101
|
var type$f = "object";
|
|
102
102
|
var properties$f = {
|
|
@@ -183,10 +183,10 @@ var properties$f = {
|
|
|
183
183
|
refinement: {
|
|
184
184
|
anyOf: [
|
|
185
185
|
{
|
|
186
|
-
$ref: "https://schema.twindev.org/odrl/OdrlConstraint"
|
|
186
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlConstraint"
|
|
187
187
|
},
|
|
188
188
|
{
|
|
189
|
-
$ref: "https://schema.twindev.org/odrl/OdrlLogicalConstraint"
|
|
189
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlLogicalConstraint"
|
|
190
190
|
},
|
|
191
191
|
{
|
|
192
192
|
type: "array",
|
|
@@ -195,10 +195,10 @@ var properties$f = {
|
|
|
195
195
|
{
|
|
196
196
|
anyOf: [
|
|
197
197
|
{
|
|
198
|
-
$ref: "https://schema.twindev.org/odrl/OdrlConstraint"
|
|
198
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlConstraint"
|
|
199
199
|
},
|
|
200
200
|
{
|
|
201
|
-
$ref: "https://schema.twindev.org/odrl/OdrlLogicalConstraint"
|
|
201
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlLogicalConstraint"
|
|
202
202
|
}
|
|
203
203
|
]
|
|
204
204
|
}
|
|
@@ -208,7 +208,7 @@ var properties$f = {
|
|
|
208
208
|
description: "Refinements applied to the action."
|
|
209
209
|
},
|
|
210
210
|
includedIn: {
|
|
211
|
-
$ref: "https://schema.twindev.org/odrl/ActionType",
|
|
211
|
+
$ref: "https://schema.twindev.org/w3c-odrl/ActionType",
|
|
212
212
|
description: "Reference to the action this action is included in."
|
|
213
213
|
},
|
|
214
214
|
implies: {
|
|
@@ -217,7 +217,7 @@ var properties$f = {
|
|
|
217
217
|
description: "References to actions this action implies.",
|
|
218
218
|
prefixItems: [
|
|
219
219
|
{
|
|
220
|
-
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
220
|
+
$ref: "https://schema.twindev.org/w3c-odrl/ActionType"
|
|
221
221
|
}
|
|
222
222
|
]
|
|
223
223
|
}
|
|
@@ -257,12 +257,12 @@ var OdrlActionSchema = {
|
|
|
257
257
|
};
|
|
258
258
|
|
|
259
259
|
var $schema$f = "https://json-schema.org/draft/2020-12/schema";
|
|
260
|
-
var $id$f = "https://schema.twindev.org/odrl/OdrlAgreement";
|
|
260
|
+
var $id$f = "https://schema.twindev.org/w3c-odrl/OdrlAgreement";
|
|
261
261
|
var description$f = "Interface representing an ODRL Agreement. An Agreement requires both an assigner and assignee (both agreeing parties).";
|
|
262
262
|
var type$e = "object";
|
|
263
263
|
var properties$e = {
|
|
264
264
|
"@context": {
|
|
265
|
-
$ref: "https://schema.twindev.org/odrl/OdrlContextType",
|
|
265
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlContextType",
|
|
266
266
|
description: "The context for the policy. Must include \"https://www.w3.org/ns/odrl.jsonld\""
|
|
267
267
|
},
|
|
268
268
|
"@id": {
|
|
@@ -357,7 +357,7 @@ var properties$e = {
|
|
|
357
357
|
type: "string"
|
|
358
358
|
},
|
|
359
359
|
{
|
|
360
|
-
$ref: "https://schema.twindev.org/odrl/OdrlParty"
|
|
360
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
361
361
|
}
|
|
362
362
|
],
|
|
363
363
|
description: "The assigner of the agreement. Required for Agreement policies."
|
|
@@ -368,7 +368,7 @@ var properties$e = {
|
|
|
368
368
|
type: "string"
|
|
369
369
|
},
|
|
370
370
|
{
|
|
371
|
-
$ref: "https://schema.twindev.org/odrl/OdrlParty"
|
|
371
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
372
372
|
}
|
|
373
373
|
],
|
|
374
374
|
description: "The assignee of the agreement. Required for Agreement policies."
|
|
@@ -379,7 +379,7 @@ var properties$e = {
|
|
|
379
379
|
type: "string"
|
|
380
380
|
},
|
|
381
381
|
{
|
|
382
|
-
$ref: "https://schema.twindev.org/odrl/OdrlAsset"
|
|
382
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAsset"
|
|
383
383
|
},
|
|
384
384
|
{
|
|
385
385
|
type: "array",
|
|
@@ -391,7 +391,7 @@ var properties$e = {
|
|
|
391
391
|
type: "string"
|
|
392
392
|
},
|
|
393
393
|
{
|
|
394
|
-
$ref: "https://schema.twindev.org/odrl/OdrlAsset"
|
|
394
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAsset"
|
|
395
395
|
}
|
|
396
396
|
]
|
|
397
397
|
}
|
|
@@ -403,10 +403,10 @@ var properties$e = {
|
|
|
403
403
|
action: {
|
|
404
404
|
anyOf: [
|
|
405
405
|
{
|
|
406
|
-
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
406
|
+
$ref: "https://schema.twindev.org/w3c-odrl/ActionType"
|
|
407
407
|
},
|
|
408
408
|
{
|
|
409
|
-
$ref: "https://schema.twindev.org/odrl/OdrlAction"
|
|
409
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAction"
|
|
410
410
|
},
|
|
411
411
|
{
|
|
412
412
|
type: "array",
|
|
@@ -415,10 +415,10 @@ var properties$e = {
|
|
|
415
415
|
{
|
|
416
416
|
anyOf: [
|
|
417
417
|
{
|
|
418
|
-
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
418
|
+
$ref: "https://schema.twindev.org/w3c-odrl/ActionType"
|
|
419
419
|
},
|
|
420
420
|
{
|
|
421
|
-
$ref: "https://schema.twindev.org/odrl/OdrlAction"
|
|
421
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAction"
|
|
422
422
|
}
|
|
423
423
|
]
|
|
424
424
|
}
|
|
@@ -445,7 +445,7 @@ var properties$e = {
|
|
|
445
445
|
description: "The parent policy(ies) this policy inherits from. IRIs identifying the parent Policy(ies)."
|
|
446
446
|
},
|
|
447
447
|
conflict: {
|
|
448
|
-
$ref: "https://schema.twindev.org/odrl/ConflictStrategyType",
|
|
448
|
+
$ref: "https://schema.twindev.org/w3c-odrl/ConflictStrategyType",
|
|
449
449
|
description: "The conflict resolution strategy.\n- perm: Permissions override Prohibitions\n- prohibit: Prohibitions override Permissions\n- invalid: Policy is void if conflicts exist (default)"
|
|
450
450
|
},
|
|
451
451
|
permission: {
|
|
@@ -454,7 +454,7 @@ var properties$e = {
|
|
|
454
454
|
description: "The permissions in the policy. At least one of permission, prohibition, or obligation must be present.",
|
|
455
455
|
prefixItems: [
|
|
456
456
|
{
|
|
457
|
-
$ref: "https://schema.twindev.org/odrl/OdrlPermission"
|
|
457
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlPermission"
|
|
458
458
|
}
|
|
459
459
|
]
|
|
460
460
|
},
|
|
@@ -464,7 +464,7 @@ var properties$e = {
|
|
|
464
464
|
description: "The prohibitions in the policy. At least one of permission, prohibition, or obligation must be present.",
|
|
465
465
|
prefixItems: [
|
|
466
466
|
{
|
|
467
|
-
$ref: "https://schema.twindev.org/odrl/OdrlProhibition"
|
|
467
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlProhibition"
|
|
468
468
|
}
|
|
469
469
|
]
|
|
470
470
|
},
|
|
@@ -474,7 +474,7 @@ var properties$e = {
|
|
|
474
474
|
description: "The obligations in the policy. At least one of permission, prohibition, or obligation must be present.",
|
|
475
475
|
prefixItems: [
|
|
476
476
|
{
|
|
477
|
-
$ref: "https://schema.twindev.org/odrl/OdrlDuty"
|
|
477
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlDuty"
|
|
478
478
|
}
|
|
479
479
|
]
|
|
480
480
|
}
|
|
@@ -522,7 +522,7 @@ var OdrlAgreementSchema = {
|
|
|
522
522
|
};
|
|
523
523
|
|
|
524
524
|
var $schema$e = "https://json-schema.org/draft/2020-12/schema";
|
|
525
|
-
var $id$e = "https://schema.twindev.org/odrl/OdrlAsset";
|
|
525
|
+
var $id$e = "https://schema.twindev.org/w3c-odrl/OdrlAsset";
|
|
526
526
|
var description$e = "Interface for ODRL Assets.";
|
|
527
527
|
var type$d = "object";
|
|
528
528
|
var properties$d = {
|
|
@@ -603,7 +603,7 @@ var properties$d = {
|
|
|
603
603
|
type: "string"
|
|
604
604
|
},
|
|
605
605
|
{
|
|
606
|
-
$ref: "https://schema.twindev.org/odrl/OdrlAssetCollection"
|
|
606
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAssetCollection"
|
|
607
607
|
}
|
|
608
608
|
],
|
|
609
609
|
description: "Reference to the asset collection this asset is part of. Used to identify an AssetCollection that this Asset is a member of."
|
|
@@ -648,7 +648,7 @@ var OdrlAssetSchema = {
|
|
|
648
648
|
};
|
|
649
649
|
|
|
650
650
|
var $schema$d = "https://json-schema.org/draft/2020-12/schema";
|
|
651
|
-
var $id$d = "https://schema.twindev.org/odrl/OdrlAssetCollection";
|
|
651
|
+
var $id$d = "https://schema.twindev.org/w3c-odrl/OdrlAssetCollection";
|
|
652
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.";
|
|
653
653
|
var type$c = "object";
|
|
654
654
|
var properties$c = {
|
|
@@ -729,7 +729,7 @@ var properties$c = {
|
|
|
729
729
|
type: "string"
|
|
730
730
|
},
|
|
731
731
|
{
|
|
732
|
-
$ref: "https://schema.twindev.org/odrl/OdrlAssetCollection"
|
|
732
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAssetCollection"
|
|
733
733
|
}
|
|
734
734
|
],
|
|
735
735
|
description: "Reference to the asset collection this asset is part of. Used to identify an AssetCollection that this Asset is a member of."
|
|
@@ -748,7 +748,7 @@ var properties$c = {
|
|
|
748
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
749
|
prefixItems: [
|
|
750
750
|
{
|
|
751
|
-
$ref: "https://schema.twindev.org/odrl/OdrlConstraint"
|
|
751
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlConstraint"
|
|
752
752
|
}
|
|
753
753
|
]
|
|
754
754
|
}
|
|
@@ -792,7 +792,7 @@ var OdrlAssetCollectionSchema = {
|
|
|
792
792
|
};
|
|
793
793
|
|
|
794
794
|
var $schema$c = "https://json-schema.org/draft/2020-12/schema";
|
|
795
|
-
var $id$c = "https://schema.twindev.org/odrl/OdrlConstraint";
|
|
795
|
+
var $id$c = "https://schema.twindev.org/w3c-odrl/OdrlConstraint";
|
|
796
796
|
var description$c = "Interface for ODRL Constraints.";
|
|
797
797
|
var type$b = "object";
|
|
798
798
|
var properties$b = {
|
|
@@ -885,13 +885,13 @@ var properties$b = {
|
|
|
885
885
|
type: "string"
|
|
886
886
|
},
|
|
887
887
|
{
|
|
888
|
-
$ref: "https://schema.twindev.org/odrl/LeftOperandType"
|
|
888
|
+
$ref: "https://schema.twindev.org/w3c-odrl/LeftOperandType"
|
|
889
889
|
}
|
|
890
890
|
],
|
|
891
891
|
description: "The left operand of the constraint."
|
|
892
892
|
},
|
|
893
893
|
operator: {
|
|
894
|
-
$ref: "https://schema.twindev.org/odrl/OperatorType",
|
|
894
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OperatorType",
|
|
895
895
|
description: "The operator of the constraint."
|
|
896
896
|
},
|
|
897
897
|
rightOperand: {
|
|
@@ -942,7 +942,7 @@ var properties$b = {
|
|
|
942
942
|
description: "The unit for the right operand value."
|
|
943
943
|
},
|
|
944
944
|
status: {
|
|
945
|
-
$ref: "https://schema.twindev.org/odrl/StatusType",
|
|
945
|
+
$ref: "https://schema.twindev.org/w3c-odrl/StatusType",
|
|
946
946
|
description: "The status value for comparison."
|
|
947
947
|
}
|
|
948
948
|
};
|
|
@@ -986,7 +986,7 @@ var OdrlConstraintSchema = {
|
|
|
986
986
|
};
|
|
987
987
|
|
|
988
988
|
var $schema$b = "https://json-schema.org/draft/2020-12/schema";
|
|
989
|
-
var $id$b = "https://schema.twindev.org/odrl/OdrlContextType";
|
|
989
|
+
var $id$b = "https://schema.twindev.org/w3c-odrl/OdrlContextType";
|
|
990
990
|
var description$b = "The ODRL JSON-LD context type.";
|
|
991
991
|
var anyOf = [
|
|
992
992
|
{
|
|
@@ -1034,7 +1034,7 @@ var OdrlContextTypeSchema = {
|
|
|
1034
1034
|
};
|
|
1035
1035
|
|
|
1036
1036
|
var $schema$a = "https://json-schema.org/draft/2020-12/schema";
|
|
1037
|
-
var $id$a = "https://schema.twindev.org/odrl/OdrlDuty";
|
|
1037
|
+
var $id$a = "https://schema.twindev.org/w3c-odrl/OdrlDuty";
|
|
1038
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.";
|
|
1039
1039
|
var type$a = "object";
|
|
1040
1040
|
var properties$a = {
|
|
@@ -1124,10 +1124,10 @@ var properties$a = {
|
|
|
1124
1124
|
action: {
|
|
1125
1125
|
anyOf: [
|
|
1126
1126
|
{
|
|
1127
|
-
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
1127
|
+
$ref: "https://schema.twindev.org/w3c-odrl/ActionType"
|
|
1128
1128
|
},
|
|
1129
1129
|
{
|
|
1130
|
-
$ref: "https://schema.twindev.org/odrl/OdrlAction"
|
|
1130
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAction"
|
|
1131
1131
|
},
|
|
1132
1132
|
{
|
|
1133
1133
|
type: "array",
|
|
@@ -1136,10 +1136,10 @@ var properties$a = {
|
|
|
1136
1136
|
{
|
|
1137
1137
|
anyOf: [
|
|
1138
1138
|
{
|
|
1139
|
-
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
1139
|
+
$ref: "https://schema.twindev.org/w3c-odrl/ActionType"
|
|
1140
1140
|
},
|
|
1141
1141
|
{
|
|
1142
|
-
$ref: "https://schema.twindev.org/odrl/OdrlAction"
|
|
1142
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAction"
|
|
1143
1143
|
}
|
|
1144
1144
|
]
|
|
1145
1145
|
}
|
|
@@ -1154,7 +1154,7 @@ var properties$a = {
|
|
|
1154
1154
|
type: "string"
|
|
1155
1155
|
},
|
|
1156
1156
|
{
|
|
1157
|
-
$ref: "https://schema.twindev.org/odrl/OdrlAsset"
|
|
1157
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAsset"
|
|
1158
1158
|
},
|
|
1159
1159
|
{
|
|
1160
1160
|
type: "array",
|
|
@@ -1166,7 +1166,7 @@ var properties$a = {
|
|
|
1166
1166
|
type: "string"
|
|
1167
1167
|
},
|
|
1168
1168
|
{
|
|
1169
|
-
$ref: "https://schema.twindev.org/odrl/OdrlAsset"
|
|
1169
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAsset"
|
|
1170
1170
|
}
|
|
1171
1171
|
]
|
|
1172
1172
|
}
|
|
@@ -1181,7 +1181,7 @@ var properties$a = {
|
|
|
1181
1181
|
type: "string"
|
|
1182
1182
|
},
|
|
1183
1183
|
{
|
|
1184
|
-
$ref: "https://schema.twindev.org/odrl/OdrlParty"
|
|
1184
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
1185
1185
|
}
|
|
1186
1186
|
],
|
|
1187
1187
|
description: "The assigner of the rule."
|
|
@@ -1192,7 +1192,7 @@ var properties$a = {
|
|
|
1192
1192
|
type: "string"
|
|
1193
1193
|
},
|
|
1194
1194
|
{
|
|
1195
|
-
$ref: "https://schema.twindev.org/odrl/OdrlParty"
|
|
1195
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
1196
1196
|
}
|
|
1197
1197
|
],
|
|
1198
1198
|
description: "The assignee of the rule."
|
|
@@ -1203,7 +1203,7 @@ var properties$a = {
|
|
|
1203
1203
|
description: "Constraints applied to the rule.",
|
|
1204
1204
|
prefixItems: [
|
|
1205
1205
|
{
|
|
1206
|
-
$ref: "https://schema.twindev.org/odrl/OdrlConstraint"
|
|
1206
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlConstraint"
|
|
1207
1207
|
}
|
|
1208
1208
|
]
|
|
1209
1209
|
},
|
|
@@ -1225,7 +1225,7 @@ var properties$a = {
|
|
|
1225
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
1226
|
prefixItems: [
|
|
1227
1227
|
{
|
|
1228
|
-
$ref: "https://schema.twindev.org/odrl/OdrlDuty"
|
|
1228
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlDuty"
|
|
1229
1229
|
}
|
|
1230
1230
|
]
|
|
1231
1231
|
},
|
|
@@ -1235,7 +1235,7 @@ var properties$a = {
|
|
|
1235
1235
|
description: "The remedies that may be fulfilled to cure the violation.",
|
|
1236
1236
|
prefixItems: [
|
|
1237
1237
|
{
|
|
1238
|
-
$ref: "https://schema.twindev.org/odrl/OdrlDuty"
|
|
1238
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlDuty"
|
|
1239
1239
|
}
|
|
1240
1240
|
]
|
|
1241
1241
|
},
|
|
@@ -1279,7 +1279,7 @@ var OdrlDutySchema = {
|
|
|
1279
1279
|
};
|
|
1280
1280
|
|
|
1281
1281
|
var $schema$9 = "https://json-schema.org/draft/2020-12/schema";
|
|
1282
|
-
var $id$9 = "https://schema.twindev.org/odrl/OdrlLogicalConstraint";
|
|
1282
|
+
var $id$9 = "https://schema.twindev.org/w3c-odrl/OdrlLogicalConstraint";
|
|
1283
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.";
|
|
1284
1284
|
var type$9 = "object";
|
|
1285
1285
|
var properties$9 = {
|
|
@@ -1514,12 +1514,12 @@ var OdrlLogicalConstraintSchema = {
|
|
|
1514
1514
|
};
|
|
1515
1515
|
|
|
1516
1516
|
var $schema$8 = "https://json-schema.org/draft/2020-12/schema";
|
|
1517
|
-
var $id$8 = "https://schema.twindev.org/odrl/OdrlOffer";
|
|
1517
|
+
var $id$8 = "https://schema.twindev.org/w3c-odrl/OdrlOffer";
|
|
1518
1518
|
var description$8 = "Interface representing an ODRL Offer. An Offer requires an assigner (the party making the offer).";
|
|
1519
1519
|
var type$8 = "object";
|
|
1520
1520
|
var properties$8 = {
|
|
1521
1521
|
"@context": {
|
|
1522
|
-
$ref: "https://schema.twindev.org/odrl/OdrlContextType",
|
|
1522
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlContextType",
|
|
1523
1523
|
description: "The context for the policy. Must include \"https://www.w3.org/ns/odrl.jsonld\""
|
|
1524
1524
|
},
|
|
1525
1525
|
"@id": {
|
|
@@ -1614,7 +1614,7 @@ var properties$8 = {
|
|
|
1614
1614
|
type: "string"
|
|
1615
1615
|
},
|
|
1616
1616
|
{
|
|
1617
|
-
$ref: "https://schema.twindev.org/odrl/OdrlParty"
|
|
1617
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
1618
1618
|
}
|
|
1619
1619
|
],
|
|
1620
1620
|
description: "The assigner of the offer. Required for Offer policies."
|
|
@@ -1625,7 +1625,7 @@ var properties$8 = {
|
|
|
1625
1625
|
type: "string"
|
|
1626
1626
|
},
|
|
1627
1627
|
{
|
|
1628
|
-
$ref: "https://schema.twindev.org/odrl/OdrlParty"
|
|
1628
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
1629
1629
|
}
|
|
1630
1630
|
],
|
|
1631
1631
|
description: "The assignee of the policy. Applies to all rules unless overridden at rule level."
|
|
@@ -1636,7 +1636,7 @@ var properties$8 = {
|
|
|
1636
1636
|
type: "string"
|
|
1637
1637
|
},
|
|
1638
1638
|
{
|
|
1639
|
-
$ref: "https://schema.twindev.org/odrl/OdrlAsset"
|
|
1639
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAsset"
|
|
1640
1640
|
},
|
|
1641
1641
|
{
|
|
1642
1642
|
type: "array",
|
|
@@ -1648,7 +1648,7 @@ var properties$8 = {
|
|
|
1648
1648
|
type: "string"
|
|
1649
1649
|
},
|
|
1650
1650
|
{
|
|
1651
|
-
$ref: "https://schema.twindev.org/odrl/OdrlAsset"
|
|
1651
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAsset"
|
|
1652
1652
|
}
|
|
1653
1653
|
]
|
|
1654
1654
|
}
|
|
@@ -1660,10 +1660,10 @@ var properties$8 = {
|
|
|
1660
1660
|
action: {
|
|
1661
1661
|
anyOf: [
|
|
1662
1662
|
{
|
|
1663
|
-
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
1663
|
+
$ref: "https://schema.twindev.org/w3c-odrl/ActionType"
|
|
1664
1664
|
},
|
|
1665
1665
|
{
|
|
1666
|
-
$ref: "https://schema.twindev.org/odrl/OdrlAction"
|
|
1666
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAction"
|
|
1667
1667
|
},
|
|
1668
1668
|
{
|
|
1669
1669
|
type: "array",
|
|
@@ -1672,10 +1672,10 @@ var properties$8 = {
|
|
|
1672
1672
|
{
|
|
1673
1673
|
anyOf: [
|
|
1674
1674
|
{
|
|
1675
|
-
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
1675
|
+
$ref: "https://schema.twindev.org/w3c-odrl/ActionType"
|
|
1676
1676
|
},
|
|
1677
1677
|
{
|
|
1678
|
-
$ref: "https://schema.twindev.org/odrl/OdrlAction"
|
|
1678
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAction"
|
|
1679
1679
|
}
|
|
1680
1680
|
]
|
|
1681
1681
|
}
|
|
@@ -1702,7 +1702,7 @@ var properties$8 = {
|
|
|
1702
1702
|
description: "The parent policy(ies) this policy inherits from. IRIs identifying the parent Policy(ies)."
|
|
1703
1703
|
},
|
|
1704
1704
|
conflict: {
|
|
1705
|
-
$ref: "https://schema.twindev.org/odrl/ConflictStrategyType",
|
|
1705
|
+
$ref: "https://schema.twindev.org/w3c-odrl/ConflictStrategyType",
|
|
1706
1706
|
description: "The conflict resolution strategy.\n- perm: Permissions override Prohibitions\n- prohibit: Prohibitions override Permissions\n- invalid: Policy is void if conflicts exist (default)"
|
|
1707
1707
|
},
|
|
1708
1708
|
permission: {
|
|
@@ -1711,7 +1711,7 @@ var properties$8 = {
|
|
|
1711
1711
|
description: "The permissions in the policy. At least one of permission, prohibition, or obligation must be present.",
|
|
1712
1712
|
prefixItems: [
|
|
1713
1713
|
{
|
|
1714
|
-
$ref: "https://schema.twindev.org/odrl/OdrlPermission"
|
|
1714
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlPermission"
|
|
1715
1715
|
}
|
|
1716
1716
|
]
|
|
1717
1717
|
},
|
|
@@ -1721,7 +1721,7 @@ var properties$8 = {
|
|
|
1721
1721
|
description: "The prohibitions in the policy. At least one of permission, prohibition, or obligation must be present.",
|
|
1722
1722
|
prefixItems: [
|
|
1723
1723
|
{
|
|
1724
|
-
$ref: "https://schema.twindev.org/odrl/OdrlProhibition"
|
|
1724
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlProhibition"
|
|
1725
1725
|
}
|
|
1726
1726
|
]
|
|
1727
1727
|
},
|
|
@@ -1731,7 +1731,7 @@ var properties$8 = {
|
|
|
1731
1731
|
description: "The obligations in the policy. At least one of permission, prohibition, or obligation must be present.",
|
|
1732
1732
|
prefixItems: [
|
|
1733
1733
|
{
|
|
1734
|
-
$ref: "https://schema.twindev.org/odrl/OdrlDuty"
|
|
1734
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlDuty"
|
|
1735
1735
|
}
|
|
1736
1736
|
]
|
|
1737
1737
|
}
|
|
@@ -1778,7 +1778,7 @@ var OdrlOfferSchema = {
|
|
|
1778
1778
|
};
|
|
1779
1779
|
|
|
1780
1780
|
var $schema$7 = "https://json-schema.org/draft/2020-12/schema";
|
|
1781
|
-
var $id$7 = "https://schema.twindev.org/odrl/OdrlParty";
|
|
1781
|
+
var $id$7 = "https://schema.twindev.org/w3c-odrl/OdrlParty";
|
|
1782
1782
|
var description$7 = "Interface for ODRL Parties.";
|
|
1783
1783
|
var type$7 = "object";
|
|
1784
1784
|
var properties$7 = {
|
|
@@ -1872,7 +1872,7 @@ var properties$7 = {
|
|
|
1872
1872
|
type: "string"
|
|
1873
1873
|
},
|
|
1874
1874
|
{
|
|
1875
|
-
$ref: "https://schema.twindev.org/odrl/OdrlPartyCollection"
|
|
1875
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlPartyCollection"
|
|
1876
1876
|
}
|
|
1877
1877
|
],
|
|
1878
1878
|
description: "Reference to the party collection this party is part of. Used to identify a PartyCollection that a Party entity is a member of."
|
|
@@ -1921,7 +1921,7 @@ var OdrlPartySchema = {
|
|
|
1921
1921
|
};
|
|
1922
1922
|
|
|
1923
1923
|
var $schema$6 = "https://json-schema.org/draft/2020-12/schema";
|
|
1924
|
-
var $id$6 = "https://schema.twindev.org/odrl/OdrlPartyCollection";
|
|
1924
|
+
var $id$6 = "https://schema.twindev.org/w3c-odrl/OdrlPartyCollection";
|
|
1925
1925
|
var description$6 = "Interface for ODRL Party Collections. A PartyCollection identifies a collection of entities and is a subclass of Party.";
|
|
1926
1926
|
var type$6 = "object";
|
|
1927
1927
|
var properties$6 = {
|
|
@@ -2015,7 +2015,7 @@ var properties$6 = {
|
|
|
2015
2015
|
type: "string"
|
|
2016
2016
|
},
|
|
2017
2017
|
{
|
|
2018
|
-
$ref: "https://schema.twindev.org/odrl/OdrlPartyCollection"
|
|
2018
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlPartyCollection"
|
|
2019
2019
|
}
|
|
2020
2020
|
],
|
|
2021
2021
|
description: "Reference to the party collection this party is part of. Used to identify a PartyCollection that a Party entity is a member of."
|
|
@@ -2038,7 +2038,7 @@ var properties$6 = {
|
|
|
2038
2038
|
description: "Refinements applied to the party collection. Used to specify constraints that apply to all members of the collection.",
|
|
2039
2039
|
prefixItems: [
|
|
2040
2040
|
{
|
|
2041
|
-
$ref: "https://schema.twindev.org/odrl/OdrlConstraint"
|
|
2041
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlConstraint"
|
|
2042
2042
|
}
|
|
2043
2043
|
]
|
|
2044
2044
|
}
|
|
@@ -2082,7 +2082,7 @@ var OdrlPartyCollectionSchema = {
|
|
|
2082
2082
|
};
|
|
2083
2083
|
|
|
2084
2084
|
var $schema$5 = "https://json-schema.org/draft/2020-12/schema";
|
|
2085
|
-
var $id$5 = "https://schema.twindev.org/odrl/OdrlPermission";
|
|
2085
|
+
var $id$5 = "https://schema.twindev.org/w3c-odrl/OdrlPermission";
|
|
2086
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.";
|
|
2087
2087
|
var type$5 = "object";
|
|
2088
2088
|
var properties$5 = {
|
|
@@ -2172,10 +2172,10 @@ var properties$5 = {
|
|
|
2172
2172
|
action: {
|
|
2173
2173
|
anyOf: [
|
|
2174
2174
|
{
|
|
2175
|
-
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
2175
|
+
$ref: "https://schema.twindev.org/w3c-odrl/ActionType"
|
|
2176
2176
|
},
|
|
2177
2177
|
{
|
|
2178
|
-
$ref: "https://schema.twindev.org/odrl/OdrlAction"
|
|
2178
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAction"
|
|
2179
2179
|
},
|
|
2180
2180
|
{
|
|
2181
2181
|
type: "array",
|
|
@@ -2184,10 +2184,10 @@ var properties$5 = {
|
|
|
2184
2184
|
{
|
|
2185
2185
|
anyOf: [
|
|
2186
2186
|
{
|
|
2187
|
-
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
2187
|
+
$ref: "https://schema.twindev.org/w3c-odrl/ActionType"
|
|
2188
2188
|
},
|
|
2189
2189
|
{
|
|
2190
|
-
$ref: "https://schema.twindev.org/odrl/OdrlAction"
|
|
2190
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAction"
|
|
2191
2191
|
}
|
|
2192
2192
|
]
|
|
2193
2193
|
}
|
|
@@ -2202,7 +2202,7 @@ var properties$5 = {
|
|
|
2202
2202
|
type: "string"
|
|
2203
2203
|
},
|
|
2204
2204
|
{
|
|
2205
|
-
$ref: "https://schema.twindev.org/odrl/OdrlAsset"
|
|
2205
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAsset"
|
|
2206
2206
|
},
|
|
2207
2207
|
{
|
|
2208
2208
|
type: "array",
|
|
@@ -2214,7 +2214,7 @@ var properties$5 = {
|
|
|
2214
2214
|
type: "string"
|
|
2215
2215
|
},
|
|
2216
2216
|
{
|
|
2217
|
-
$ref: "https://schema.twindev.org/odrl/OdrlAsset"
|
|
2217
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAsset"
|
|
2218
2218
|
}
|
|
2219
2219
|
]
|
|
2220
2220
|
}
|
|
@@ -2229,7 +2229,7 @@ var properties$5 = {
|
|
|
2229
2229
|
type: "string"
|
|
2230
2230
|
},
|
|
2231
2231
|
{
|
|
2232
|
-
$ref: "https://schema.twindev.org/odrl/OdrlParty"
|
|
2232
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
2233
2233
|
}
|
|
2234
2234
|
],
|
|
2235
2235
|
description: "The assigner of the rule."
|
|
@@ -2240,7 +2240,7 @@ var properties$5 = {
|
|
|
2240
2240
|
type: "string"
|
|
2241
2241
|
},
|
|
2242
2242
|
{
|
|
2243
|
-
$ref: "https://schema.twindev.org/odrl/OdrlParty"
|
|
2243
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
2244
2244
|
}
|
|
2245
2245
|
],
|
|
2246
2246
|
description: "The assignee of the rule."
|
|
@@ -2251,7 +2251,7 @@ var properties$5 = {
|
|
|
2251
2251
|
description: "Constraints applied to the rule.",
|
|
2252
2252
|
prefixItems: [
|
|
2253
2253
|
{
|
|
2254
|
-
$ref: "https://schema.twindev.org/odrl/OdrlConstraint"
|
|
2254
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlConstraint"
|
|
2255
2255
|
}
|
|
2256
2256
|
]
|
|
2257
2257
|
},
|
|
@@ -2265,7 +2265,7 @@ var properties$5 = {
|
|
|
2265
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
2266
|
prefixItems: [
|
|
2267
2267
|
{
|
|
2268
|
-
$ref: "https://schema.twindev.org/odrl/OdrlDuty"
|
|
2268
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlDuty"
|
|
2269
2269
|
}
|
|
2270
2270
|
]
|
|
2271
2271
|
}
|
|
@@ -2305,12 +2305,12 @@ var OdrlPermissionSchema = {
|
|
|
2305
2305
|
};
|
|
2306
2306
|
|
|
2307
2307
|
var $schema$4 = "https://json-schema.org/draft/2020-12/schema";
|
|
2308
|
-
var $id$4 = "https://schema.twindev.org/odrl/OdrlPolicy";
|
|
2308
|
+
var $id$4 = "https://schema.twindev.org/w3c-odrl/OdrlPolicy";
|
|
2309
2309
|
var description$4 = "Interface representing an ODRL Policy.";
|
|
2310
2310
|
var type$4 = "object";
|
|
2311
2311
|
var properties$4 = {
|
|
2312
2312
|
"@context": {
|
|
2313
|
-
$ref: "https://schema.twindev.org/odrl/OdrlContextType",
|
|
2313
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlContextType",
|
|
2314
2314
|
description: "The context for the policy. Must include \"https://www.w3.org/ns/odrl.jsonld\""
|
|
2315
2315
|
},
|
|
2316
2316
|
"@id": {
|
|
@@ -2365,7 +2365,7 @@ var properties$4 = {
|
|
|
2365
2365
|
]
|
|
2366
2366
|
},
|
|
2367
2367
|
"@type": {
|
|
2368
|
-
$ref: "https://schema.twindev.org/odrl/PolicyType",
|
|
2368
|
+
$ref: "https://schema.twindev.org/w3c-odrl/PolicyType",
|
|
2369
2369
|
description: "The type of policy. Must be one of: \"Set\", \"Offer\", \"Agreement\""
|
|
2370
2370
|
},
|
|
2371
2371
|
"@reverse": {
|
|
@@ -2404,7 +2404,7 @@ var properties$4 = {
|
|
|
2404
2404
|
type: "string"
|
|
2405
2405
|
},
|
|
2406
2406
|
{
|
|
2407
|
-
$ref: "https://schema.twindev.org/odrl/OdrlParty"
|
|
2407
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
2408
2408
|
}
|
|
2409
2409
|
],
|
|
2410
2410
|
description: "The assigner of the policy. Applies to all rules unless overridden at rule level."
|
|
@@ -2415,7 +2415,7 @@ var properties$4 = {
|
|
|
2415
2415
|
type: "string"
|
|
2416
2416
|
},
|
|
2417
2417
|
{
|
|
2418
|
-
$ref: "https://schema.twindev.org/odrl/OdrlParty"
|
|
2418
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
2419
2419
|
}
|
|
2420
2420
|
],
|
|
2421
2421
|
description: "The assignee of the policy. Applies to all rules unless overridden at rule level."
|
|
@@ -2426,7 +2426,7 @@ var properties$4 = {
|
|
|
2426
2426
|
type: "string"
|
|
2427
2427
|
},
|
|
2428
2428
|
{
|
|
2429
|
-
$ref: "https://schema.twindev.org/odrl/OdrlAsset"
|
|
2429
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAsset"
|
|
2430
2430
|
},
|
|
2431
2431
|
{
|
|
2432
2432
|
type: "array",
|
|
@@ -2438,7 +2438,7 @@ var properties$4 = {
|
|
|
2438
2438
|
type: "string"
|
|
2439
2439
|
},
|
|
2440
2440
|
{
|
|
2441
|
-
$ref: "https://schema.twindev.org/odrl/OdrlAsset"
|
|
2441
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAsset"
|
|
2442
2442
|
}
|
|
2443
2443
|
]
|
|
2444
2444
|
}
|
|
@@ -2450,10 +2450,10 @@ var properties$4 = {
|
|
|
2450
2450
|
action: {
|
|
2451
2451
|
anyOf: [
|
|
2452
2452
|
{
|
|
2453
|
-
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
2453
|
+
$ref: "https://schema.twindev.org/w3c-odrl/ActionType"
|
|
2454
2454
|
},
|
|
2455
2455
|
{
|
|
2456
|
-
$ref: "https://schema.twindev.org/odrl/OdrlAction"
|
|
2456
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAction"
|
|
2457
2457
|
},
|
|
2458
2458
|
{
|
|
2459
2459
|
type: "array",
|
|
@@ -2462,10 +2462,10 @@ var properties$4 = {
|
|
|
2462
2462
|
{
|
|
2463
2463
|
anyOf: [
|
|
2464
2464
|
{
|
|
2465
|
-
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
2465
|
+
$ref: "https://schema.twindev.org/w3c-odrl/ActionType"
|
|
2466
2466
|
},
|
|
2467
2467
|
{
|
|
2468
|
-
$ref: "https://schema.twindev.org/odrl/OdrlAction"
|
|
2468
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAction"
|
|
2469
2469
|
}
|
|
2470
2470
|
]
|
|
2471
2471
|
}
|
|
@@ -2492,7 +2492,7 @@ var properties$4 = {
|
|
|
2492
2492
|
description: "The parent policy(ies) this policy inherits from. IRIs identifying the parent Policy(ies)."
|
|
2493
2493
|
},
|
|
2494
2494
|
conflict: {
|
|
2495
|
-
$ref: "https://schema.twindev.org/odrl/ConflictStrategyType",
|
|
2495
|
+
$ref: "https://schema.twindev.org/w3c-odrl/ConflictStrategyType",
|
|
2496
2496
|
description: "The conflict resolution strategy.\n- perm: Permissions override Prohibitions\n- prohibit: Prohibitions override Permissions\n- invalid: Policy is void if conflicts exist (default)"
|
|
2497
2497
|
},
|
|
2498
2498
|
permission: {
|
|
@@ -2501,7 +2501,7 @@ var properties$4 = {
|
|
|
2501
2501
|
description: "The permissions in the policy. At least one of permission, prohibition, or obligation must be present.",
|
|
2502
2502
|
prefixItems: [
|
|
2503
2503
|
{
|
|
2504
|
-
$ref: "https://schema.twindev.org/odrl/OdrlPermission"
|
|
2504
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlPermission"
|
|
2505
2505
|
}
|
|
2506
2506
|
]
|
|
2507
2507
|
},
|
|
@@ -2511,7 +2511,7 @@ var properties$4 = {
|
|
|
2511
2511
|
description: "The prohibitions in the policy. At least one of permission, prohibition, or obligation must be present.",
|
|
2512
2512
|
prefixItems: [
|
|
2513
2513
|
{
|
|
2514
|
-
$ref: "https://schema.twindev.org/odrl/OdrlProhibition"
|
|
2514
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlProhibition"
|
|
2515
2515
|
}
|
|
2516
2516
|
]
|
|
2517
2517
|
},
|
|
@@ -2521,7 +2521,7 @@ var properties$4 = {
|
|
|
2521
2521
|
description: "The obligations in the policy. At least one of permission, prohibition, or obligation must be present.",
|
|
2522
2522
|
prefixItems: [
|
|
2523
2523
|
{
|
|
2524
|
-
$ref: "https://schema.twindev.org/odrl/OdrlDuty"
|
|
2524
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlDuty"
|
|
2525
2525
|
}
|
|
2526
2526
|
]
|
|
2527
2527
|
}
|
|
@@ -2567,7 +2567,7 @@ var OdrlPolicySchema = {
|
|
|
2567
2567
|
};
|
|
2568
2568
|
|
|
2569
2569
|
var $schema$3 = "https://json-schema.org/draft/2020-12/schema";
|
|
2570
|
-
var $id$3 = "https://schema.twindev.org/odrl/OdrlPolicyMetadata";
|
|
2570
|
+
var $id$3 = "https://schema.twindev.org/w3c-odrl/OdrlPolicyMetadata";
|
|
2571
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.";
|
|
2572
2572
|
var type$3 = "object";
|
|
2573
2573
|
var properties$3 = {
|
|
@@ -2706,7 +2706,7 @@ var OdrlPolicyMetadataSchema = {
|
|
|
2706
2706
|
};
|
|
2707
2707
|
|
|
2708
2708
|
var $schema$2 = "https://json-schema.org/draft/2020-12/schema";
|
|
2709
|
-
var $id$2 = "https://schema.twindev.org/odrl/OdrlProhibition";
|
|
2709
|
+
var $id$2 = "https://schema.twindev.org/w3c-odrl/OdrlProhibition";
|
|
2710
2710
|
var description$2 = "Interface for Prohibition Rules.";
|
|
2711
2711
|
var type$2 = "object";
|
|
2712
2712
|
var properties$2 = {
|
|
@@ -2796,10 +2796,10 @@ var properties$2 = {
|
|
|
2796
2796
|
action: {
|
|
2797
2797
|
anyOf: [
|
|
2798
2798
|
{
|
|
2799
|
-
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
2799
|
+
$ref: "https://schema.twindev.org/w3c-odrl/ActionType"
|
|
2800
2800
|
},
|
|
2801
2801
|
{
|
|
2802
|
-
$ref: "https://schema.twindev.org/odrl/OdrlAction"
|
|
2802
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAction"
|
|
2803
2803
|
},
|
|
2804
2804
|
{
|
|
2805
2805
|
type: "array",
|
|
@@ -2808,10 +2808,10 @@ var properties$2 = {
|
|
|
2808
2808
|
{
|
|
2809
2809
|
anyOf: [
|
|
2810
2810
|
{
|
|
2811
|
-
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
2811
|
+
$ref: "https://schema.twindev.org/w3c-odrl/ActionType"
|
|
2812
2812
|
},
|
|
2813
2813
|
{
|
|
2814
|
-
$ref: "https://schema.twindev.org/odrl/OdrlAction"
|
|
2814
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAction"
|
|
2815
2815
|
}
|
|
2816
2816
|
]
|
|
2817
2817
|
}
|
|
@@ -2826,7 +2826,7 @@ var properties$2 = {
|
|
|
2826
2826
|
type: "string"
|
|
2827
2827
|
},
|
|
2828
2828
|
{
|
|
2829
|
-
$ref: "https://schema.twindev.org/odrl/OdrlAsset"
|
|
2829
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAsset"
|
|
2830
2830
|
},
|
|
2831
2831
|
{
|
|
2832
2832
|
type: "array",
|
|
@@ -2838,7 +2838,7 @@ var properties$2 = {
|
|
|
2838
2838
|
type: "string"
|
|
2839
2839
|
},
|
|
2840
2840
|
{
|
|
2841
|
-
$ref: "https://schema.twindev.org/odrl/OdrlAsset"
|
|
2841
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAsset"
|
|
2842
2842
|
}
|
|
2843
2843
|
]
|
|
2844
2844
|
}
|
|
@@ -2853,7 +2853,7 @@ var properties$2 = {
|
|
|
2853
2853
|
type: "string"
|
|
2854
2854
|
},
|
|
2855
2855
|
{
|
|
2856
|
-
$ref: "https://schema.twindev.org/odrl/OdrlParty"
|
|
2856
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
2857
2857
|
}
|
|
2858
2858
|
],
|
|
2859
2859
|
description: "The assigner of the rule."
|
|
@@ -2864,7 +2864,7 @@ var properties$2 = {
|
|
|
2864
2864
|
type: "string"
|
|
2865
2865
|
},
|
|
2866
2866
|
{
|
|
2867
|
-
$ref: "https://schema.twindev.org/odrl/OdrlParty"
|
|
2867
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
2868
2868
|
}
|
|
2869
2869
|
],
|
|
2870
2870
|
description: "The assignee of the rule."
|
|
@@ -2875,7 +2875,7 @@ var properties$2 = {
|
|
|
2875
2875
|
description: "Constraints applied to the rule.",
|
|
2876
2876
|
prefixItems: [
|
|
2877
2877
|
{
|
|
2878
|
-
$ref: "https://schema.twindev.org/odrl/OdrlConstraint"
|
|
2878
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlConstraint"
|
|
2879
2879
|
}
|
|
2880
2880
|
]
|
|
2881
2881
|
},
|
|
@@ -2889,7 +2889,7 @@ var properties$2 = {
|
|
|
2889
2889
|
description: "The remedies that must be fulfilled if prohibition is violated.",
|
|
2890
2890
|
prefixItems: [
|
|
2891
2891
|
{
|
|
2892
|
-
$ref: "https://schema.twindev.org/odrl/OdrlDuty"
|
|
2892
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlDuty"
|
|
2893
2893
|
}
|
|
2894
2894
|
]
|
|
2895
2895
|
}
|
|
@@ -2929,7 +2929,7 @@ var OdrlProhibitionSchema = {
|
|
|
2929
2929
|
};
|
|
2930
2930
|
|
|
2931
2931
|
var $schema$1 = "https://json-schema.org/draft/2020-12/schema";
|
|
2932
|
-
var $id$1 = "https://schema.twindev.org/odrl/OdrlRule";
|
|
2932
|
+
var $id$1 = "https://schema.twindev.org/w3c-odrl/OdrlRule";
|
|
2933
2933
|
var description$1 = "Base interface for ODRL Rules.";
|
|
2934
2934
|
var type$1 = "object";
|
|
2935
2935
|
var properties$1 = {
|
|
@@ -3019,10 +3019,10 @@ var properties$1 = {
|
|
|
3019
3019
|
action: {
|
|
3020
3020
|
anyOf: [
|
|
3021
3021
|
{
|
|
3022
|
-
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
3022
|
+
$ref: "https://schema.twindev.org/w3c-odrl/ActionType"
|
|
3023
3023
|
},
|
|
3024
3024
|
{
|
|
3025
|
-
$ref: "https://schema.twindev.org/odrl/OdrlAction"
|
|
3025
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAction"
|
|
3026
3026
|
},
|
|
3027
3027
|
{
|
|
3028
3028
|
type: "array",
|
|
@@ -3031,10 +3031,10 @@ var properties$1 = {
|
|
|
3031
3031
|
{
|
|
3032
3032
|
anyOf: [
|
|
3033
3033
|
{
|
|
3034
|
-
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
3034
|
+
$ref: "https://schema.twindev.org/w3c-odrl/ActionType"
|
|
3035
3035
|
},
|
|
3036
3036
|
{
|
|
3037
|
-
$ref: "https://schema.twindev.org/odrl/OdrlAction"
|
|
3037
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAction"
|
|
3038
3038
|
}
|
|
3039
3039
|
]
|
|
3040
3040
|
}
|
|
@@ -3049,7 +3049,7 @@ var properties$1 = {
|
|
|
3049
3049
|
type: "string"
|
|
3050
3050
|
},
|
|
3051
3051
|
{
|
|
3052
|
-
$ref: "https://schema.twindev.org/odrl/OdrlAsset"
|
|
3052
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAsset"
|
|
3053
3053
|
},
|
|
3054
3054
|
{
|
|
3055
3055
|
type: "array",
|
|
@@ -3061,7 +3061,7 @@ var properties$1 = {
|
|
|
3061
3061
|
type: "string"
|
|
3062
3062
|
},
|
|
3063
3063
|
{
|
|
3064
|
-
$ref: "https://schema.twindev.org/odrl/OdrlAsset"
|
|
3064
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAsset"
|
|
3065
3065
|
}
|
|
3066
3066
|
]
|
|
3067
3067
|
}
|
|
@@ -3076,7 +3076,7 @@ var properties$1 = {
|
|
|
3076
3076
|
type: "string"
|
|
3077
3077
|
},
|
|
3078
3078
|
{
|
|
3079
|
-
$ref: "https://schema.twindev.org/odrl/OdrlParty"
|
|
3079
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
3080
3080
|
}
|
|
3081
3081
|
],
|
|
3082
3082
|
description: "The assigner of the rule."
|
|
@@ -3087,7 +3087,7 @@ var properties$1 = {
|
|
|
3087
3087
|
type: "string"
|
|
3088
3088
|
},
|
|
3089
3089
|
{
|
|
3090
|
-
$ref: "https://schema.twindev.org/odrl/OdrlParty"
|
|
3090
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
3091
3091
|
}
|
|
3092
3092
|
],
|
|
3093
3093
|
description: "The assignee of the rule."
|
|
@@ -3098,7 +3098,7 @@ var properties$1 = {
|
|
|
3098
3098
|
description: "Constraints applied to the rule.",
|
|
3099
3099
|
prefixItems: [
|
|
3100
3100
|
{
|
|
3101
|
-
$ref: "https://schema.twindev.org/odrl/OdrlConstraint"
|
|
3101
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlConstraint"
|
|
3102
3102
|
}
|
|
3103
3103
|
]
|
|
3104
3104
|
},
|
|
@@ -3142,12 +3142,12 @@ var OdrlRuleSchema = {
|
|
|
3142
3142
|
};
|
|
3143
3143
|
|
|
3144
3144
|
var $schema = "https://json-schema.org/draft/2020-12/schema";
|
|
3145
|
-
var $id = "https://schema.twindev.org/odrl/OdrlSet";
|
|
3145
|
+
var $id = "https://schema.twindev.org/w3c-odrl/OdrlSet";
|
|
3146
3146
|
var description = "Interface representing an ODRL Set. A Set is a basic policy type with no specific party requirements.";
|
|
3147
3147
|
var type = "object";
|
|
3148
3148
|
var properties = {
|
|
3149
3149
|
"@context": {
|
|
3150
|
-
$ref: "https://schema.twindev.org/odrl/OdrlContextType",
|
|
3150
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlContextType",
|
|
3151
3151
|
description: "The context for the policy. Must include \"https://www.w3.org/ns/odrl.jsonld\""
|
|
3152
3152
|
},
|
|
3153
3153
|
"@id": {
|
|
@@ -3242,7 +3242,7 @@ var properties = {
|
|
|
3242
3242
|
type: "string"
|
|
3243
3243
|
},
|
|
3244
3244
|
{
|
|
3245
|
-
$ref: "https://schema.twindev.org/odrl/OdrlParty"
|
|
3245
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
3246
3246
|
}
|
|
3247
3247
|
],
|
|
3248
3248
|
description: "The assigner of the policy. Applies to all rules unless overridden at rule level."
|
|
@@ -3253,7 +3253,7 @@ var properties = {
|
|
|
3253
3253
|
type: "string"
|
|
3254
3254
|
},
|
|
3255
3255
|
{
|
|
3256
|
-
$ref: "https://schema.twindev.org/odrl/OdrlParty"
|
|
3256
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
3257
3257
|
}
|
|
3258
3258
|
],
|
|
3259
3259
|
description: "The assignee of the policy. Applies to all rules unless overridden at rule level."
|
|
@@ -3264,7 +3264,7 @@ var properties = {
|
|
|
3264
3264
|
type: "string"
|
|
3265
3265
|
},
|
|
3266
3266
|
{
|
|
3267
|
-
$ref: "https://schema.twindev.org/odrl/OdrlAsset"
|
|
3267
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAsset"
|
|
3268
3268
|
},
|
|
3269
3269
|
{
|
|
3270
3270
|
type: "array",
|
|
@@ -3276,7 +3276,7 @@ var properties = {
|
|
|
3276
3276
|
type: "string"
|
|
3277
3277
|
},
|
|
3278
3278
|
{
|
|
3279
|
-
$ref: "https://schema.twindev.org/odrl/OdrlAsset"
|
|
3279
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAsset"
|
|
3280
3280
|
}
|
|
3281
3281
|
]
|
|
3282
3282
|
}
|
|
@@ -3288,10 +3288,10 @@ var properties = {
|
|
|
3288
3288
|
action: {
|
|
3289
3289
|
anyOf: [
|
|
3290
3290
|
{
|
|
3291
|
-
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
3291
|
+
$ref: "https://schema.twindev.org/w3c-odrl/ActionType"
|
|
3292
3292
|
},
|
|
3293
3293
|
{
|
|
3294
|
-
$ref: "https://schema.twindev.org/odrl/OdrlAction"
|
|
3294
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAction"
|
|
3295
3295
|
},
|
|
3296
3296
|
{
|
|
3297
3297
|
type: "array",
|
|
@@ -3300,10 +3300,10 @@ var properties = {
|
|
|
3300
3300
|
{
|
|
3301
3301
|
anyOf: [
|
|
3302
3302
|
{
|
|
3303
|
-
$ref: "https://schema.twindev.org/odrl/ActionType"
|
|
3303
|
+
$ref: "https://schema.twindev.org/w3c-odrl/ActionType"
|
|
3304
3304
|
},
|
|
3305
3305
|
{
|
|
3306
|
-
$ref: "https://schema.twindev.org/odrl/OdrlAction"
|
|
3306
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAction"
|
|
3307
3307
|
}
|
|
3308
3308
|
]
|
|
3309
3309
|
}
|
|
@@ -3330,7 +3330,7 @@ var properties = {
|
|
|
3330
3330
|
description: "The parent policy(ies) this policy inherits from. IRIs identifying the parent Policy(ies)."
|
|
3331
3331
|
},
|
|
3332
3332
|
conflict: {
|
|
3333
|
-
$ref: "https://schema.twindev.org/odrl/ConflictStrategyType",
|
|
3333
|
+
$ref: "https://schema.twindev.org/w3c-odrl/ConflictStrategyType",
|
|
3334
3334
|
description: "The conflict resolution strategy.\n- perm: Permissions override Prohibitions\n- prohibit: Prohibitions override Permissions\n- invalid: Policy is void if conflicts exist (default)"
|
|
3335
3335
|
},
|
|
3336
3336
|
permission: {
|
|
@@ -3339,7 +3339,7 @@ var properties = {
|
|
|
3339
3339
|
description: "The permissions in the policy. At least one of permission, prohibition, or obligation must be present.",
|
|
3340
3340
|
prefixItems: [
|
|
3341
3341
|
{
|
|
3342
|
-
$ref: "https://schema.twindev.org/odrl/OdrlPermission"
|
|
3342
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlPermission"
|
|
3343
3343
|
}
|
|
3344
3344
|
]
|
|
3345
3345
|
},
|
|
@@ -3349,7 +3349,7 @@ var properties = {
|
|
|
3349
3349
|
description: "The prohibitions in the policy. At least one of permission, prohibition, or obligation must be present.",
|
|
3350
3350
|
prefixItems: [
|
|
3351
3351
|
{
|
|
3352
|
-
$ref: "https://schema.twindev.org/odrl/OdrlProhibition"
|
|
3352
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlProhibition"
|
|
3353
3353
|
}
|
|
3354
3354
|
]
|
|
3355
3355
|
},
|
|
@@ -3359,7 +3359,7 @@ var properties = {
|
|
|
3359
3359
|
description: "The obligations in the policy. At least one of permission, prohibition, or obligation must be present.",
|
|
3360
3360
|
prefixItems: [
|
|
3361
3361
|
{
|
|
3362
|
-
$ref: "https://schema.twindev.org/odrl/OdrlDuty"
|
|
3362
|
+
$ref: "https://schema.twindev.org/w3c-odrl/OdrlDuty"
|
|
3363
3363
|
}
|
|
3364
3364
|
]
|
|
3365
3365
|
}
|
|
@@ -3414,7 +3414,7 @@ class OdrlDataTypes {
|
|
|
3414
3414
|
* Register the JSON-LD Redirects.
|
|
3415
3415
|
*/
|
|
3416
3416
|
static registerRedirects() {
|
|
3417
|
-
JsonLdProcessor.addRedirect(/https?:\/\/www\.w3\.org\/ns\/odrl\/?/,
|
|
3417
|
+
JsonLdProcessor.addRedirect(/https?:\/\/www\.w3\.org\/ns\/odrl\/?/, OdrlContexts.ContextRedirect);
|
|
3418
3418
|
}
|
|
3419
3419
|
/**
|
|
3420
3420
|
* Register all the data types.
|