@twin.org/standards-w3c-odrl 0.0.2-next.8 → 0.0.3-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/es/dataTypes/odrlDataTypes.js +113 -0
- package/dist/es/dataTypes/odrlDataTypes.js.map +1 -0
- package/dist/es/index.js +31 -0
- package/dist/es/index.js.map +1 -0
- package/dist/es/models/IOdrlAction.js +2 -0
- package/dist/es/models/IOdrlAction.js.map +1 -0
- package/dist/es/models/IOdrlAgreement.js +2 -0
- package/dist/es/models/IOdrlAgreement.js.map +1 -0
- package/dist/es/models/IOdrlAsset.js +2 -0
- package/dist/es/models/IOdrlAsset.js.map +1 -0
- package/dist/es/models/IOdrlAssetCollection.js +2 -0
- package/dist/es/models/IOdrlAssetCollection.js.map +1 -0
- package/dist/es/models/IOdrlConstraint.js +2 -0
- package/dist/es/models/IOdrlConstraint.js.map +1 -0
- package/dist/es/models/IOdrlDuty.js +2 -0
- package/dist/es/models/IOdrlDuty.js.map +1 -0
- package/dist/es/models/IOdrlLogicalConstraint.js +2 -0
- package/dist/es/models/IOdrlLogicalConstraint.js.map +1 -0
- package/dist/es/models/IOdrlOffer.js +2 -0
- package/dist/es/models/IOdrlOffer.js.map +1 -0
- package/dist/es/models/IOdrlParty.js +2 -0
- package/dist/es/models/IOdrlParty.js.map +1 -0
- package/dist/es/models/IOdrlPartyCollection.js +2 -0
- package/dist/es/models/IOdrlPartyCollection.js.map +1 -0
- package/dist/es/models/IOdrlPermission.js +2 -0
- package/dist/es/models/IOdrlPermission.js.map +1 -0
- package/dist/es/models/IOdrlPolicy.js +2 -0
- package/dist/es/models/IOdrlPolicy.js.map +1 -0
- package/dist/es/models/IOdrlProhibition.js +2 -0
- package/dist/es/models/IOdrlProhibition.js.map +1 -0
- package/dist/es/models/IOdrlRule.js +2 -0
- package/dist/es/models/IOdrlRule.js.map +1 -0
- package/dist/es/models/IOdrlSet.js +2 -0
- package/dist/es/models/IOdrlSet.js.map +1 -0
- package/dist/es/models/odrlContextType.js +2 -0
- package/dist/es/models/odrlContextType.js.map +1 -0
- package/dist/es/models/odrlContexts.js +17 -0
- package/dist/es/models/odrlContexts.js.map +1 -0
- package/dist/es/models/types/actionType.js +237 -0
- package/dist/es/models/types/actionType.js.map +1 -0
- package/dist/es/models/types/conflictStrategyType.js +21 -0
- package/dist/es/models/types/conflictStrategyType.js.map +1 -0
- package/dist/es/models/types/leftOperandType.js +137 -0
- package/dist/es/models/types/leftOperandType.js.map +1 -0
- package/dist/es/models/types/logicalConstraintType.js +25 -0
- package/dist/es/models/types/logicalConstraintType.js.map +1 -0
- package/dist/es/models/types/odrlTypes.js +69 -0
- package/dist/es/models/types/odrlTypes.js.map +1 -0
- package/dist/es/models/types/operatorType.js +65 -0
- package/dist/es/models/types/operatorType.js.map +1 -0
- package/dist/es/models/types/policyType.js +25 -0
- package/dist/es/models/types/policyType.js.map +1 -0
- package/dist/es/models/types/rightOperandType.js +14 -0
- package/dist/es/models/types/rightOperandType.js.map +1 -0
- package/dist/es/models/types/ruleType.js +21 -0
- package/dist/es/models/types/ruleType.js.map +1 -0
- package/dist/es/models/types/statusType.js +25 -0
- package/dist/es/models/types/statusType.js.map +1 -0
- package/dist/es/schemas/OdrlAction.json +153 -0
- package/dist/es/schemas/OdrlAgreement.json +274 -0
- package/dist/es/schemas/OdrlAsset.json +110 -0
- package/dist/es/schemas/OdrlAssetCollection.json +124 -0
- package/dist/es/schemas/OdrlConstraint.json +174 -0
- package/dist/es/schemas/OdrlDuty.json +217 -0
- package/dist/es/schemas/OdrlLogicalConstraint.json +204 -0
- package/dist/es/schemas/OdrlOffer.json +273 -0
- package/dist/es/schemas/OdrlParty.json +124 -0
- package/dist/es/schemas/OdrlPartyCollection.json +138 -0
- package/dist/es/schemas/OdrlPermission.json +198 -0
- package/dist/es/schemas/OdrlPolicy.json +271 -0
- package/dist/es/schemas/OdrlProhibition.json +198 -0
- package/dist/es/schemas/OdrlRule.json +191 -0
- package/dist/es/schemas/OdrlSet.json +272 -0
- package/dist/types/index.d.ts +28 -28
- package/dist/types/models/IOdrlAction.d.ts +3 -3
- package/dist/types/models/IOdrlAgreement.d.ts +3 -3
- package/dist/types/models/IOdrlAsset.d.ts +1 -1
- package/dist/types/models/IOdrlAssetCollection.d.ts +2 -2
- package/dist/types/models/IOdrlConstraint.d.ts +3 -3
- package/dist/types/models/IOdrlDuty.d.ts +1 -1
- package/dist/types/models/IOdrlOffer.d.ts +3 -3
- package/dist/types/models/IOdrlParty.d.ts +1 -1
- package/dist/types/models/IOdrlPartyCollection.d.ts +2 -2
- package/dist/types/models/IOdrlPermission.d.ts +2 -2
- package/dist/types/models/IOdrlPolicy.d.ts +10 -10
- package/dist/types/models/IOdrlProhibition.d.ts +2 -2
- package/dist/types/models/IOdrlRule.d.ts +5 -5
- package/dist/types/models/IOdrlSet.d.ts +2 -2
- package/dist/types/models/odrlContextType.d.ts +1 -1
- package/dist/types/models/types/odrlTypes.d.ts +0 -4
- package/docs/changelog.md +151 -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 +1 -1
- 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/variables/OdrlTypes.md +0 -6
- package/package.json +22 -10
- package/dist/cjs/index.cjs +0 -4008
- package/dist/esm/index.mjs +0 -3995
package/dist/cjs/index.cjs
DELETED
|
@@ -1,4008 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var dataCore = require('@twin.org/data-core');
|
|
4
|
-
var dataJsonLd = require('@twin.org/data-json-ld');
|
|
5
|
-
|
|
6
|
-
// Copyright 2024 IOTA Stiftung.
|
|
7
|
-
// SPDX-License-Identifier: Apache-2.0.
|
|
8
|
-
/**
|
|
9
|
-
* The contexts for ODRL.
|
|
10
|
-
*/
|
|
11
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
12
|
-
const OdrlContexts = {
|
|
13
|
-
/**
|
|
14
|
-
* The context root for ODRL vocabulary.
|
|
15
|
-
*/
|
|
16
|
-
ContextRoot: "https://www.w3.org/ns/odrl/2/",
|
|
17
|
-
/**
|
|
18
|
-
* The context root for ODRL.
|
|
19
|
-
*/
|
|
20
|
-
ContextRedirect: "https://www.w3.org/ns/odrl.jsonld"
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
// Copyright 2024 IOTA Stiftung.
|
|
24
|
-
// SPDX-License-Identifier: Apache-2.0.
|
|
25
|
-
/**
|
|
26
|
-
* The types for ODRL.
|
|
27
|
-
*/
|
|
28
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
29
|
-
const OdrlTypes = {
|
|
30
|
-
/**
|
|
31
|
-
* Policy type.
|
|
32
|
-
*/
|
|
33
|
-
Policy: "Policy",
|
|
34
|
-
/**
|
|
35
|
-
* Set type (subclass of Policy).
|
|
36
|
-
*/
|
|
37
|
-
Set: "Set",
|
|
38
|
-
/**
|
|
39
|
-
* Offer type (subclass of Policy).
|
|
40
|
-
*/
|
|
41
|
-
Offer: "Offer",
|
|
42
|
-
/**
|
|
43
|
-
* Agreement type (subclass of Policy).
|
|
44
|
-
*/
|
|
45
|
-
Agreement: "Agreement",
|
|
46
|
-
/**
|
|
47
|
-
* Asset type.
|
|
48
|
-
*/
|
|
49
|
-
Asset: "Asset",
|
|
50
|
-
/**
|
|
51
|
-
* AssetCollection type.
|
|
52
|
-
*/
|
|
53
|
-
AssetCollection: "AssetCollection",
|
|
54
|
-
/**
|
|
55
|
-
* Party type.
|
|
56
|
-
*/
|
|
57
|
-
Party: "Party",
|
|
58
|
-
/**
|
|
59
|
-
* PartyCollection type.
|
|
60
|
-
*/
|
|
61
|
-
PartyCollection: "PartyCollection",
|
|
62
|
-
/**
|
|
63
|
-
* Action type.
|
|
64
|
-
*/
|
|
65
|
-
Action: "Action",
|
|
66
|
-
/**
|
|
67
|
-
* Rule type.
|
|
68
|
-
*/
|
|
69
|
-
Rule: "Rule",
|
|
70
|
-
/**
|
|
71
|
-
* Permission type (subclass of Rule).
|
|
72
|
-
*/
|
|
73
|
-
Permission: "Permission",
|
|
74
|
-
/**
|
|
75
|
-
* Prohibition type (subclass of Rule).
|
|
76
|
-
*/
|
|
77
|
-
Prohibition: "Prohibition",
|
|
78
|
-
/**
|
|
79
|
-
* Duty type (subclass of Rule).
|
|
80
|
-
*/
|
|
81
|
-
Duty: "Duty",
|
|
82
|
-
/**
|
|
83
|
-
* Constraint type.
|
|
84
|
-
*/
|
|
85
|
-
Constraint: "Constraint",
|
|
86
|
-
/**
|
|
87
|
-
* LogicalConstraint type.
|
|
88
|
-
*/
|
|
89
|
-
LogicalConstraint: "LogicalConstraint",
|
|
90
|
-
/**
|
|
91
|
-
* ContextType.
|
|
92
|
-
*/
|
|
93
|
-
ContextType: "ContextType"
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
var $schema$f = "https://json-schema.org/draft/2020-12/schema";
|
|
97
|
-
var $id$f = "https://schema.twindev.org/w3c-odrl/OdrlAction";
|
|
98
|
-
var description$f = "Interface for ODRL Actions. https://www.w3.org/TR/odrl-model/#action";
|
|
99
|
-
var type$e = "object";
|
|
100
|
-
var properties$e = {
|
|
101
|
-
"@context": {
|
|
102
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
|
|
103
|
-
},
|
|
104
|
-
"@id": {
|
|
105
|
-
type: "string",
|
|
106
|
-
description: "Direct action identifier. Used in simple action references."
|
|
107
|
-
},
|
|
108
|
-
"@included": {
|
|
109
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
110
|
-
},
|
|
111
|
-
"@graph": {
|
|
112
|
-
anyOf: [
|
|
113
|
-
{
|
|
114
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
type: "array",
|
|
118
|
-
items: false,
|
|
119
|
-
prefixItems: [
|
|
120
|
-
{
|
|
121
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
122
|
-
}
|
|
123
|
-
]
|
|
124
|
-
}
|
|
125
|
-
]
|
|
126
|
-
},
|
|
127
|
-
"@nest": {
|
|
128
|
-
anyOf: [
|
|
129
|
-
{
|
|
130
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
type: "array",
|
|
134
|
-
items: false,
|
|
135
|
-
prefixItems: [
|
|
136
|
-
{
|
|
137
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
138
|
-
}
|
|
139
|
-
]
|
|
140
|
-
}
|
|
141
|
-
]
|
|
142
|
-
},
|
|
143
|
-
"@type": {
|
|
144
|
-
anyOf: [
|
|
145
|
-
{
|
|
146
|
-
type: "string"
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
type: "array",
|
|
150
|
-
items: false,
|
|
151
|
-
prefixItems: [
|
|
152
|
-
{
|
|
153
|
-
type: "string"
|
|
154
|
-
}
|
|
155
|
-
]
|
|
156
|
-
}
|
|
157
|
-
]
|
|
158
|
-
},
|
|
159
|
-
"@reverse": {
|
|
160
|
-
type: "object",
|
|
161
|
-
additionalProperties: {
|
|
162
|
-
type: "string"
|
|
163
|
-
}
|
|
164
|
-
},
|
|
165
|
-
"@index": {
|
|
166
|
-
type: "string"
|
|
167
|
-
},
|
|
168
|
-
"rdf:value": {
|
|
169
|
-
type: "object",
|
|
170
|
-
properties: {
|
|
171
|
-
"@id": {
|
|
172
|
-
type: "string"
|
|
173
|
-
}
|
|
174
|
-
},
|
|
175
|
-
required: [
|
|
176
|
-
"@id"
|
|
177
|
-
],
|
|
178
|
-
additionalProperties: false,
|
|
179
|
-
description: "The value/identifier of the action. Used in complex action definitions."
|
|
180
|
-
},
|
|
181
|
-
refinement: {
|
|
182
|
-
anyOf: [
|
|
183
|
-
{
|
|
184
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlConstraint"
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlLogicalConstraint"
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
type: "array",
|
|
191
|
-
items: false,
|
|
192
|
-
prefixItems: [
|
|
193
|
-
{
|
|
194
|
-
anyOf: [
|
|
195
|
-
{
|
|
196
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlConstraint"
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlLogicalConstraint"
|
|
200
|
-
}
|
|
201
|
-
]
|
|
202
|
-
}
|
|
203
|
-
]
|
|
204
|
-
}
|
|
205
|
-
],
|
|
206
|
-
description: "Refinements applied to the action."
|
|
207
|
-
},
|
|
208
|
-
includedIn: {
|
|
209
|
-
anyOf: [
|
|
210
|
-
{
|
|
211
|
-
$ref: "https://schema.twindev.org/w3c-odrl/ActionType"
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
type: "string"
|
|
215
|
-
}
|
|
216
|
-
],
|
|
217
|
-
description: "Reference to the action this action is included in."
|
|
218
|
-
},
|
|
219
|
-
implies: {
|
|
220
|
-
type: "array",
|
|
221
|
-
items: false,
|
|
222
|
-
description: "References to actions this action implies.",
|
|
223
|
-
prefixItems: [
|
|
224
|
-
{
|
|
225
|
-
anyOf: [
|
|
226
|
-
{
|
|
227
|
-
$ref: "https://schema.twindev.org/w3c-odrl/ActionType"
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
type: "string"
|
|
231
|
-
}
|
|
232
|
-
]
|
|
233
|
-
}
|
|
234
|
-
]
|
|
235
|
-
}
|
|
236
|
-
};
|
|
237
|
-
var additionalProperties$e = {
|
|
238
|
-
anyOf: [
|
|
239
|
-
{
|
|
240
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
244
|
-
},
|
|
245
|
-
{
|
|
246
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
247
|
-
},
|
|
248
|
-
{
|
|
249
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
250
|
-
},
|
|
251
|
-
{
|
|
252
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
type: "array"
|
|
259
|
-
}
|
|
260
|
-
]
|
|
261
|
-
};
|
|
262
|
-
var OdrlActionSchema = {
|
|
263
|
-
$schema: $schema$f,
|
|
264
|
-
$id: $id$f,
|
|
265
|
-
description: description$f,
|
|
266
|
-
type: type$e,
|
|
267
|
-
properties: properties$e,
|
|
268
|
-
additionalProperties: additionalProperties$e
|
|
269
|
-
};
|
|
270
|
-
|
|
271
|
-
var $schema$e = "https://json-schema.org/draft/2020-12/schema";
|
|
272
|
-
var $id$e = "https://schema.twindev.org/w3c-odrl/OdrlAgreement";
|
|
273
|
-
var description$e = "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
|
-
var type$d = "object";
|
|
275
|
-
var properties$d = {
|
|
276
|
-
"@context": {
|
|
277
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlContextType",
|
|
278
|
-
description: "The context for the policy. Must include \"https://www.w3.org/ns/odrl.jsonld\""
|
|
279
|
-
},
|
|
280
|
-
"@id": {
|
|
281
|
-
anyOf: [
|
|
282
|
-
{
|
|
283
|
-
type: "string"
|
|
284
|
-
},
|
|
285
|
-
{
|
|
286
|
-
type: "array",
|
|
287
|
-
items: false,
|
|
288
|
-
prefixItems: [
|
|
289
|
-
{
|
|
290
|
-
type: "string"
|
|
291
|
-
}
|
|
292
|
-
]
|
|
293
|
-
}
|
|
294
|
-
]
|
|
295
|
-
},
|
|
296
|
-
"@included": {
|
|
297
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
298
|
-
},
|
|
299
|
-
"@graph": {
|
|
300
|
-
anyOf: [
|
|
301
|
-
{
|
|
302
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
303
|
-
},
|
|
304
|
-
{
|
|
305
|
-
type: "array",
|
|
306
|
-
items: false,
|
|
307
|
-
prefixItems: [
|
|
308
|
-
{
|
|
309
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
310
|
-
}
|
|
311
|
-
]
|
|
312
|
-
}
|
|
313
|
-
]
|
|
314
|
-
},
|
|
315
|
-
"@nest": {
|
|
316
|
-
anyOf: [
|
|
317
|
-
{
|
|
318
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
319
|
-
},
|
|
320
|
-
{
|
|
321
|
-
type: "array",
|
|
322
|
-
items: false,
|
|
323
|
-
prefixItems: [
|
|
324
|
-
{
|
|
325
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
326
|
-
}
|
|
327
|
-
]
|
|
328
|
-
}
|
|
329
|
-
]
|
|
330
|
-
},
|
|
331
|
-
"@type": {
|
|
332
|
-
type: "string",
|
|
333
|
-
"const": "Agreement",
|
|
334
|
-
description: "The type must be \"Agreement\"."
|
|
335
|
-
},
|
|
336
|
-
"@reverse": {
|
|
337
|
-
type: "object",
|
|
338
|
-
additionalProperties: {
|
|
339
|
-
type: "string"
|
|
340
|
-
}
|
|
341
|
-
},
|
|
342
|
-
"@index": {
|
|
343
|
-
type: "string"
|
|
344
|
-
},
|
|
345
|
-
uid: {
|
|
346
|
-
type: "string",
|
|
347
|
-
description: "The unique identifier for the policy. Must be an IRI."
|
|
348
|
-
},
|
|
349
|
-
profile: {
|
|
350
|
-
anyOf: [
|
|
351
|
-
{
|
|
352
|
-
type: "string"
|
|
353
|
-
},
|
|
354
|
-
{
|
|
355
|
-
type: "array",
|
|
356
|
-
items: false,
|
|
357
|
-
prefixItems: [
|
|
358
|
-
{
|
|
359
|
-
type: "string"
|
|
360
|
-
}
|
|
361
|
-
]
|
|
362
|
-
}
|
|
363
|
-
],
|
|
364
|
-
description: "The profile(s) this policy conforms to. IRIs identifying the ODRL Profile(s)."
|
|
365
|
-
},
|
|
366
|
-
assigner: {
|
|
367
|
-
anyOf: [
|
|
368
|
-
{
|
|
369
|
-
type: "string"
|
|
370
|
-
},
|
|
371
|
-
{
|
|
372
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
373
|
-
}
|
|
374
|
-
],
|
|
375
|
-
description: "The assigner of the agreement. Required for Agreement policies."
|
|
376
|
-
},
|
|
377
|
-
assignee: {
|
|
378
|
-
anyOf: [
|
|
379
|
-
{
|
|
380
|
-
type: "string"
|
|
381
|
-
},
|
|
382
|
-
{
|
|
383
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
384
|
-
}
|
|
385
|
-
],
|
|
386
|
-
description: "The assignee of the agreement. Required for Agreement policies."
|
|
387
|
-
},
|
|
388
|
-
target: {
|
|
389
|
-
anyOf: [
|
|
390
|
-
{
|
|
391
|
-
type: "string"
|
|
392
|
-
},
|
|
393
|
-
{
|
|
394
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAsset"
|
|
395
|
-
},
|
|
396
|
-
{
|
|
397
|
-
type: "array",
|
|
398
|
-
items: false,
|
|
399
|
-
prefixItems: [
|
|
400
|
-
{
|
|
401
|
-
anyOf: [
|
|
402
|
-
{
|
|
403
|
-
type: "string"
|
|
404
|
-
},
|
|
405
|
-
{
|
|
406
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAsset"
|
|
407
|
-
}
|
|
408
|
-
]
|
|
409
|
-
}
|
|
410
|
-
]
|
|
411
|
-
}
|
|
412
|
-
],
|
|
413
|
-
description: "The target asset for the rule."
|
|
414
|
-
},
|
|
415
|
-
action: {
|
|
416
|
-
anyOf: [
|
|
417
|
-
{
|
|
418
|
-
$ref: "https://schema.twindev.org/w3c-odrl/ActionType"
|
|
419
|
-
},
|
|
420
|
-
{
|
|
421
|
-
type: "string"
|
|
422
|
-
},
|
|
423
|
-
{
|
|
424
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAction"
|
|
425
|
-
},
|
|
426
|
-
{
|
|
427
|
-
type: "array",
|
|
428
|
-
items: false,
|
|
429
|
-
prefixItems: [
|
|
430
|
-
{
|
|
431
|
-
anyOf: [
|
|
432
|
-
{
|
|
433
|
-
$ref: "https://schema.twindev.org/w3c-odrl/ActionType"
|
|
434
|
-
},
|
|
435
|
-
{
|
|
436
|
-
type: "string"
|
|
437
|
-
},
|
|
438
|
-
{
|
|
439
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAction"
|
|
440
|
-
}
|
|
441
|
-
]
|
|
442
|
-
}
|
|
443
|
-
]
|
|
444
|
-
}
|
|
445
|
-
],
|
|
446
|
-
description: "The action associated with the rule."
|
|
447
|
-
},
|
|
448
|
-
inheritFrom: {
|
|
449
|
-
anyOf: [
|
|
450
|
-
{
|
|
451
|
-
type: "string"
|
|
452
|
-
},
|
|
453
|
-
{
|
|
454
|
-
type: "array",
|
|
455
|
-
items: false,
|
|
456
|
-
prefixItems: [
|
|
457
|
-
{
|
|
458
|
-
type: "string"
|
|
459
|
-
}
|
|
460
|
-
]
|
|
461
|
-
}
|
|
462
|
-
],
|
|
463
|
-
description: "The parent policy(ies) this policy inherits from. IRIs identifying the parent Policy(ies)."
|
|
464
|
-
},
|
|
465
|
-
conflict: {
|
|
466
|
-
$ref: "https://schema.twindev.org/w3c-odrl/ConflictStrategyType",
|
|
467
|
-
description: "The conflict resolution strategy.\n- perm: Permissions override Prohibitions\n- prohibit: Prohibitions override Permissions\n- invalid: Policy is void if conflicts exist (default)"
|
|
468
|
-
},
|
|
469
|
-
permission: {
|
|
470
|
-
type: "array",
|
|
471
|
-
items: false,
|
|
472
|
-
description: "The permissions in the policy. At least one of permission, prohibition, or obligation must be present.",
|
|
473
|
-
prefixItems: [
|
|
474
|
-
{
|
|
475
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlPermission"
|
|
476
|
-
}
|
|
477
|
-
]
|
|
478
|
-
},
|
|
479
|
-
prohibition: {
|
|
480
|
-
type: "array",
|
|
481
|
-
items: false,
|
|
482
|
-
description: "The prohibitions in the policy. At least one of permission, prohibition, or obligation must be present.",
|
|
483
|
-
prefixItems: [
|
|
484
|
-
{
|
|
485
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlProhibition"
|
|
486
|
-
}
|
|
487
|
-
]
|
|
488
|
-
},
|
|
489
|
-
obligation: {
|
|
490
|
-
type: "array",
|
|
491
|
-
items: false,
|
|
492
|
-
description: "The obligations in the policy. At least one of permission, prohibition, or obligation must be present.",
|
|
493
|
-
prefixItems: [
|
|
494
|
-
{
|
|
495
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlDuty"
|
|
496
|
-
}
|
|
497
|
-
]
|
|
498
|
-
}
|
|
499
|
-
};
|
|
500
|
-
var required$6 = [
|
|
501
|
-
"@context",
|
|
502
|
-
"@type",
|
|
503
|
-
"assignee",
|
|
504
|
-
"assigner",
|
|
505
|
-
"uid"
|
|
506
|
-
];
|
|
507
|
-
var additionalProperties$d = {
|
|
508
|
-
anyOf: [
|
|
509
|
-
{
|
|
510
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
511
|
-
},
|
|
512
|
-
{
|
|
513
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
514
|
-
},
|
|
515
|
-
{
|
|
516
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
517
|
-
},
|
|
518
|
-
{
|
|
519
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
520
|
-
},
|
|
521
|
-
{
|
|
522
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
523
|
-
},
|
|
524
|
-
{
|
|
525
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
526
|
-
},
|
|
527
|
-
{
|
|
528
|
-
type: "array"
|
|
529
|
-
}
|
|
530
|
-
]
|
|
531
|
-
};
|
|
532
|
-
var OdrlAgreementSchema = {
|
|
533
|
-
$schema: $schema$e,
|
|
534
|
-
$id: $id$e,
|
|
535
|
-
description: description$e,
|
|
536
|
-
type: type$d,
|
|
537
|
-
properties: properties$d,
|
|
538
|
-
required: required$6,
|
|
539
|
-
additionalProperties: additionalProperties$d
|
|
540
|
-
};
|
|
541
|
-
|
|
542
|
-
var $schema$d = "https://json-schema.org/draft/2020-12/schema";
|
|
543
|
-
var $id$d = "https://schema.twindev.org/w3c-odrl/OdrlAsset";
|
|
544
|
-
var description$d = "Interface for ODRL Assets. https://www.w3.org/TR/odrl-model/#asset";
|
|
545
|
-
var type$c = "object";
|
|
546
|
-
var properties$c = {
|
|
547
|
-
"@context": {
|
|
548
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
|
|
549
|
-
},
|
|
550
|
-
"@id": {
|
|
551
|
-
anyOf: [
|
|
552
|
-
{
|
|
553
|
-
type: "string"
|
|
554
|
-
},
|
|
555
|
-
{
|
|
556
|
-
type: "array",
|
|
557
|
-
items: false,
|
|
558
|
-
prefixItems: [
|
|
559
|
-
{
|
|
560
|
-
type: "string"
|
|
561
|
-
}
|
|
562
|
-
]
|
|
563
|
-
}
|
|
564
|
-
]
|
|
565
|
-
},
|
|
566
|
-
"@included": {
|
|
567
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
568
|
-
},
|
|
569
|
-
"@graph": {
|
|
570
|
-
anyOf: [
|
|
571
|
-
{
|
|
572
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
573
|
-
},
|
|
574
|
-
{
|
|
575
|
-
type: "array",
|
|
576
|
-
items: false,
|
|
577
|
-
prefixItems: [
|
|
578
|
-
{
|
|
579
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
580
|
-
}
|
|
581
|
-
]
|
|
582
|
-
}
|
|
583
|
-
]
|
|
584
|
-
},
|
|
585
|
-
"@nest": {
|
|
586
|
-
anyOf: [
|
|
587
|
-
{
|
|
588
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
589
|
-
},
|
|
590
|
-
{
|
|
591
|
-
type: "array",
|
|
592
|
-
items: false,
|
|
593
|
-
prefixItems: [
|
|
594
|
-
{
|
|
595
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
596
|
-
}
|
|
597
|
-
]
|
|
598
|
-
}
|
|
599
|
-
]
|
|
600
|
-
},
|
|
601
|
-
"@type": {
|
|
602
|
-
type: "string",
|
|
603
|
-
description: "The type of the asset. Can be used to specify additional type information."
|
|
604
|
-
},
|
|
605
|
-
"@reverse": {
|
|
606
|
-
type: "object",
|
|
607
|
-
additionalProperties: {
|
|
608
|
-
type: "string"
|
|
609
|
-
}
|
|
610
|
-
},
|
|
611
|
-
"@index": {
|
|
612
|
-
type: "string"
|
|
613
|
-
},
|
|
614
|
-
uid: {
|
|
615
|
-
type: "string",
|
|
616
|
-
description: "The unique identifier for the asset. Should be an IRI."
|
|
617
|
-
},
|
|
618
|
-
partOf: {
|
|
619
|
-
anyOf: [
|
|
620
|
-
{
|
|
621
|
-
type: "string"
|
|
622
|
-
},
|
|
623
|
-
{
|
|
624
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAssetCollection"
|
|
625
|
-
}
|
|
626
|
-
],
|
|
627
|
-
description: "Reference to the asset collection this asset is part of. Used to identify an AssetCollection that this Asset is a member of."
|
|
628
|
-
},
|
|
629
|
-
hasPolicy: {
|
|
630
|
-
type: "string",
|
|
631
|
-
description: "Reference to the policy that governs this asset. Used to identify the Policy that governs this Asset."
|
|
632
|
-
}
|
|
633
|
-
};
|
|
634
|
-
var additionalProperties$c = {
|
|
635
|
-
anyOf: [
|
|
636
|
-
{
|
|
637
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
638
|
-
},
|
|
639
|
-
{
|
|
640
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
641
|
-
},
|
|
642
|
-
{
|
|
643
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
644
|
-
},
|
|
645
|
-
{
|
|
646
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
647
|
-
},
|
|
648
|
-
{
|
|
649
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
650
|
-
},
|
|
651
|
-
{
|
|
652
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
653
|
-
},
|
|
654
|
-
{
|
|
655
|
-
type: "array"
|
|
656
|
-
}
|
|
657
|
-
]
|
|
658
|
-
};
|
|
659
|
-
var OdrlAssetSchema = {
|
|
660
|
-
$schema: $schema$d,
|
|
661
|
-
$id: $id$d,
|
|
662
|
-
description: description$d,
|
|
663
|
-
type: type$c,
|
|
664
|
-
properties: properties$c,
|
|
665
|
-
additionalProperties: additionalProperties$c
|
|
666
|
-
};
|
|
667
|
-
|
|
668
|
-
var $schema$c = "https://json-schema.org/draft/2020-12/schema";
|
|
669
|
-
var $id$c = "https://schema.twindev.org/w3c-odrl/OdrlAssetCollection";
|
|
670
|
-
var description$c = "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
|
-
var type$b = "object";
|
|
672
|
-
var properties$b = {
|
|
673
|
-
"@context": {
|
|
674
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
|
|
675
|
-
},
|
|
676
|
-
"@id": {
|
|
677
|
-
anyOf: [
|
|
678
|
-
{
|
|
679
|
-
type: "string"
|
|
680
|
-
},
|
|
681
|
-
{
|
|
682
|
-
type: "array",
|
|
683
|
-
items: false,
|
|
684
|
-
prefixItems: [
|
|
685
|
-
{
|
|
686
|
-
type: "string"
|
|
687
|
-
}
|
|
688
|
-
]
|
|
689
|
-
}
|
|
690
|
-
]
|
|
691
|
-
},
|
|
692
|
-
"@included": {
|
|
693
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
694
|
-
},
|
|
695
|
-
"@graph": {
|
|
696
|
-
anyOf: [
|
|
697
|
-
{
|
|
698
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
699
|
-
},
|
|
700
|
-
{
|
|
701
|
-
type: "array",
|
|
702
|
-
items: false,
|
|
703
|
-
prefixItems: [
|
|
704
|
-
{
|
|
705
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
706
|
-
}
|
|
707
|
-
]
|
|
708
|
-
}
|
|
709
|
-
]
|
|
710
|
-
},
|
|
711
|
-
"@nest": {
|
|
712
|
-
anyOf: [
|
|
713
|
-
{
|
|
714
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
715
|
-
},
|
|
716
|
-
{
|
|
717
|
-
type: "array",
|
|
718
|
-
items: false,
|
|
719
|
-
prefixItems: [
|
|
720
|
-
{
|
|
721
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
722
|
-
}
|
|
723
|
-
]
|
|
724
|
-
}
|
|
725
|
-
]
|
|
726
|
-
},
|
|
727
|
-
"@type": {
|
|
728
|
-
type: "string",
|
|
729
|
-
description: "The type of the asset. Can be used to specify additional type information."
|
|
730
|
-
},
|
|
731
|
-
"@reverse": {
|
|
732
|
-
type: "object",
|
|
733
|
-
additionalProperties: {
|
|
734
|
-
type: "string"
|
|
735
|
-
}
|
|
736
|
-
},
|
|
737
|
-
"@index": {
|
|
738
|
-
type: "string"
|
|
739
|
-
},
|
|
740
|
-
uid: {
|
|
741
|
-
type: "string",
|
|
742
|
-
description: "The unique identifier for the asset. Should be an IRI."
|
|
743
|
-
},
|
|
744
|
-
partOf: {
|
|
745
|
-
anyOf: [
|
|
746
|
-
{
|
|
747
|
-
type: "string"
|
|
748
|
-
},
|
|
749
|
-
{
|
|
750
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAssetCollection"
|
|
751
|
-
}
|
|
752
|
-
],
|
|
753
|
-
description: "Reference to the asset collection this asset is part of. Used to identify an AssetCollection that this Asset is a member of."
|
|
754
|
-
},
|
|
755
|
-
hasPolicy: {
|
|
756
|
-
type: "string",
|
|
757
|
-
description: "Reference to the policy that governs this asset. Used to identify the Policy that governs this Asset."
|
|
758
|
-
},
|
|
759
|
-
source: {
|
|
760
|
-
type: "string",
|
|
761
|
-
description: "Reference to the source of the asset collection. Must be an IRI that references the AssetCollection."
|
|
762
|
-
},
|
|
763
|
-
refinement: {
|
|
764
|
-
type: "array",
|
|
765
|
-
items: false,
|
|
766
|
-
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).",
|
|
767
|
-
prefixItems: [
|
|
768
|
-
{
|
|
769
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlConstraint"
|
|
770
|
-
}
|
|
771
|
-
]
|
|
772
|
-
}
|
|
773
|
-
};
|
|
774
|
-
var required$5 = [
|
|
775
|
-
"source"
|
|
776
|
-
];
|
|
777
|
-
var additionalProperties$b = {
|
|
778
|
-
anyOf: [
|
|
779
|
-
{
|
|
780
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
781
|
-
},
|
|
782
|
-
{
|
|
783
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
784
|
-
},
|
|
785
|
-
{
|
|
786
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
787
|
-
},
|
|
788
|
-
{
|
|
789
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
790
|
-
},
|
|
791
|
-
{
|
|
792
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
793
|
-
},
|
|
794
|
-
{
|
|
795
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
796
|
-
},
|
|
797
|
-
{
|
|
798
|
-
type: "array"
|
|
799
|
-
}
|
|
800
|
-
]
|
|
801
|
-
};
|
|
802
|
-
var OdrlAssetCollectionSchema = {
|
|
803
|
-
$schema: $schema$c,
|
|
804
|
-
$id: $id$c,
|
|
805
|
-
description: description$c,
|
|
806
|
-
type: type$b,
|
|
807
|
-
properties: properties$b,
|
|
808
|
-
required: required$5,
|
|
809
|
-
additionalProperties: additionalProperties$b
|
|
810
|
-
};
|
|
811
|
-
|
|
812
|
-
var $schema$b = "https://json-schema.org/draft/2020-12/schema";
|
|
813
|
-
var $id$b = "https://schema.twindev.org/w3c-odrl/OdrlConstraint";
|
|
814
|
-
var description$b = "Interface for ODRL Constraints. https://www.w3.org/TR/odrl-model/#constraint";
|
|
815
|
-
var type$a = "object";
|
|
816
|
-
var properties$a = {
|
|
817
|
-
"@context": {
|
|
818
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
|
|
819
|
-
},
|
|
820
|
-
"@id": {
|
|
821
|
-
anyOf: [
|
|
822
|
-
{
|
|
823
|
-
type: "string"
|
|
824
|
-
},
|
|
825
|
-
{
|
|
826
|
-
type: "array",
|
|
827
|
-
items: false,
|
|
828
|
-
prefixItems: [
|
|
829
|
-
{
|
|
830
|
-
type: "string"
|
|
831
|
-
}
|
|
832
|
-
]
|
|
833
|
-
}
|
|
834
|
-
]
|
|
835
|
-
},
|
|
836
|
-
"@included": {
|
|
837
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
838
|
-
},
|
|
839
|
-
"@graph": {
|
|
840
|
-
anyOf: [
|
|
841
|
-
{
|
|
842
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
843
|
-
},
|
|
844
|
-
{
|
|
845
|
-
type: "array",
|
|
846
|
-
items: false,
|
|
847
|
-
prefixItems: [
|
|
848
|
-
{
|
|
849
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
850
|
-
}
|
|
851
|
-
]
|
|
852
|
-
}
|
|
853
|
-
]
|
|
854
|
-
},
|
|
855
|
-
"@nest": {
|
|
856
|
-
anyOf: [
|
|
857
|
-
{
|
|
858
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
859
|
-
},
|
|
860
|
-
{
|
|
861
|
-
type: "array",
|
|
862
|
-
items: false,
|
|
863
|
-
prefixItems: [
|
|
864
|
-
{
|
|
865
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
866
|
-
}
|
|
867
|
-
]
|
|
868
|
-
}
|
|
869
|
-
]
|
|
870
|
-
},
|
|
871
|
-
"@type": {
|
|
872
|
-
anyOf: [
|
|
873
|
-
{
|
|
874
|
-
type: "string"
|
|
875
|
-
},
|
|
876
|
-
{
|
|
877
|
-
type: "array",
|
|
878
|
-
items: false,
|
|
879
|
-
prefixItems: [
|
|
880
|
-
{
|
|
881
|
-
type: "string"
|
|
882
|
-
}
|
|
883
|
-
]
|
|
884
|
-
}
|
|
885
|
-
]
|
|
886
|
-
},
|
|
887
|
-
"@reverse": {
|
|
888
|
-
type: "object",
|
|
889
|
-
additionalProperties: {
|
|
890
|
-
type: "string"
|
|
891
|
-
}
|
|
892
|
-
},
|
|
893
|
-
"@index": {
|
|
894
|
-
type: "string"
|
|
895
|
-
},
|
|
896
|
-
uid: {
|
|
897
|
-
type: "string",
|
|
898
|
-
description: "Optional unique identifier for the constraint."
|
|
899
|
-
},
|
|
900
|
-
leftOperand: {
|
|
901
|
-
anyOf: [
|
|
902
|
-
{
|
|
903
|
-
type: "string"
|
|
904
|
-
},
|
|
905
|
-
{
|
|
906
|
-
$ref: "https://schema.twindev.org/w3c-odrl/LeftOperandType"
|
|
907
|
-
}
|
|
908
|
-
],
|
|
909
|
-
description: "The left operand of the constraint."
|
|
910
|
-
},
|
|
911
|
-
operator: {
|
|
912
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OperatorType",
|
|
913
|
-
description: "The operator of the constraint."
|
|
914
|
-
},
|
|
915
|
-
rightOperand: {
|
|
916
|
-
anyOf: [
|
|
917
|
-
{
|
|
918
|
-
type: "string"
|
|
919
|
-
},
|
|
920
|
-
{
|
|
921
|
-
type: "object",
|
|
922
|
-
properties: {
|
|
923
|
-
"@value": {
|
|
924
|
-
type: "string"
|
|
925
|
-
},
|
|
926
|
-
"@type": {
|
|
927
|
-
type: "string"
|
|
928
|
-
}
|
|
929
|
-
},
|
|
930
|
-
required: [
|
|
931
|
-
"@value"
|
|
932
|
-
],
|
|
933
|
-
additionalProperties: false
|
|
934
|
-
},
|
|
935
|
-
{
|
|
936
|
-
type: "object",
|
|
937
|
-
properties: {
|
|
938
|
-
"@id": {
|
|
939
|
-
type: "string"
|
|
940
|
-
}
|
|
941
|
-
},
|
|
942
|
-
required: [
|
|
943
|
-
"@id"
|
|
944
|
-
],
|
|
945
|
-
additionalProperties: false
|
|
946
|
-
}
|
|
947
|
-
],
|
|
948
|
-
description: "The right operand of the constraint. value with optional"
|
|
949
|
-
},
|
|
950
|
-
rightOperandReference: {
|
|
951
|
-
type: "string",
|
|
952
|
-
description: "Reference to the right operand."
|
|
953
|
-
},
|
|
954
|
-
dataType: {
|
|
955
|
-
type: "string",
|
|
956
|
-
description: "The data type of the right operand."
|
|
957
|
-
},
|
|
958
|
-
unit: {
|
|
959
|
-
type: "string",
|
|
960
|
-
description: "The unit for the right operand value."
|
|
961
|
-
},
|
|
962
|
-
status: {
|
|
963
|
-
$ref: "https://schema.twindev.org/w3c-odrl/StatusType",
|
|
964
|
-
description: "The status value for comparison."
|
|
965
|
-
}
|
|
966
|
-
};
|
|
967
|
-
var required$4 = [
|
|
968
|
-
"leftOperand",
|
|
969
|
-
"operator"
|
|
970
|
-
];
|
|
971
|
-
var additionalProperties$a = {
|
|
972
|
-
anyOf: [
|
|
973
|
-
{
|
|
974
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
975
|
-
},
|
|
976
|
-
{
|
|
977
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
978
|
-
},
|
|
979
|
-
{
|
|
980
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
981
|
-
},
|
|
982
|
-
{
|
|
983
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
984
|
-
},
|
|
985
|
-
{
|
|
986
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
987
|
-
},
|
|
988
|
-
{
|
|
989
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
990
|
-
},
|
|
991
|
-
{
|
|
992
|
-
type: "array"
|
|
993
|
-
}
|
|
994
|
-
]
|
|
995
|
-
};
|
|
996
|
-
var OdrlConstraintSchema = {
|
|
997
|
-
$schema: $schema$b,
|
|
998
|
-
$id: $id$b,
|
|
999
|
-
description: description$b,
|
|
1000
|
-
type: type$a,
|
|
1001
|
-
properties: properties$a,
|
|
1002
|
-
required: required$4,
|
|
1003
|
-
additionalProperties: additionalProperties$a
|
|
1004
|
-
};
|
|
1005
|
-
|
|
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
|
-
var $schema$9 = "https://json-schema.org/draft/2020-12/schema";
|
|
1055
|
-
var $id$9 = "https://schema.twindev.org/w3c-odrl/OdrlDuty";
|
|
1056
|
-
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";
|
|
1057
|
-
var type$9 = "object";
|
|
1058
|
-
var properties$9 = {
|
|
1059
|
-
"@context": {
|
|
1060
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
|
|
1061
|
-
},
|
|
1062
|
-
"@id": {
|
|
1063
|
-
anyOf: [
|
|
1064
|
-
{
|
|
1065
|
-
type: "string"
|
|
1066
|
-
},
|
|
1067
|
-
{
|
|
1068
|
-
type: "array",
|
|
1069
|
-
items: false,
|
|
1070
|
-
prefixItems: [
|
|
1071
|
-
{
|
|
1072
|
-
type: "string"
|
|
1073
|
-
}
|
|
1074
|
-
]
|
|
1075
|
-
}
|
|
1076
|
-
]
|
|
1077
|
-
},
|
|
1078
|
-
"@included": {
|
|
1079
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
1080
|
-
},
|
|
1081
|
-
"@graph": {
|
|
1082
|
-
anyOf: [
|
|
1083
|
-
{
|
|
1084
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
1085
|
-
},
|
|
1086
|
-
{
|
|
1087
|
-
type: "array",
|
|
1088
|
-
items: false,
|
|
1089
|
-
prefixItems: [
|
|
1090
|
-
{
|
|
1091
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
1092
|
-
}
|
|
1093
|
-
]
|
|
1094
|
-
}
|
|
1095
|
-
]
|
|
1096
|
-
},
|
|
1097
|
-
"@nest": {
|
|
1098
|
-
anyOf: [
|
|
1099
|
-
{
|
|
1100
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
1101
|
-
},
|
|
1102
|
-
{
|
|
1103
|
-
type: "array",
|
|
1104
|
-
items: false,
|
|
1105
|
-
prefixItems: [
|
|
1106
|
-
{
|
|
1107
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
1108
|
-
}
|
|
1109
|
-
]
|
|
1110
|
-
}
|
|
1111
|
-
]
|
|
1112
|
-
},
|
|
1113
|
-
"@type": {
|
|
1114
|
-
anyOf: [
|
|
1115
|
-
{
|
|
1116
|
-
type: "string"
|
|
1117
|
-
},
|
|
1118
|
-
{
|
|
1119
|
-
type: "array",
|
|
1120
|
-
items: false,
|
|
1121
|
-
prefixItems: [
|
|
1122
|
-
{
|
|
1123
|
-
type: "string"
|
|
1124
|
-
}
|
|
1125
|
-
]
|
|
1126
|
-
}
|
|
1127
|
-
]
|
|
1128
|
-
},
|
|
1129
|
-
"@reverse": {
|
|
1130
|
-
type: "object",
|
|
1131
|
-
additionalProperties: {
|
|
1132
|
-
type: "string"
|
|
1133
|
-
}
|
|
1134
|
-
},
|
|
1135
|
-
"@index": {
|
|
1136
|
-
type: "string"
|
|
1137
|
-
},
|
|
1138
|
-
uid: {
|
|
1139
|
-
type: "string",
|
|
1140
|
-
description: "Optional unique identifier for the rule."
|
|
1141
|
-
},
|
|
1142
|
-
action: {
|
|
1143
|
-
anyOf: [
|
|
1144
|
-
{
|
|
1145
|
-
$ref: "https://schema.twindev.org/w3c-odrl/ActionType"
|
|
1146
|
-
},
|
|
1147
|
-
{
|
|
1148
|
-
type: "string"
|
|
1149
|
-
},
|
|
1150
|
-
{
|
|
1151
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAction"
|
|
1152
|
-
},
|
|
1153
|
-
{
|
|
1154
|
-
type: "array",
|
|
1155
|
-
items: false,
|
|
1156
|
-
prefixItems: [
|
|
1157
|
-
{
|
|
1158
|
-
anyOf: [
|
|
1159
|
-
{
|
|
1160
|
-
$ref: "https://schema.twindev.org/w3c-odrl/ActionType"
|
|
1161
|
-
},
|
|
1162
|
-
{
|
|
1163
|
-
type: "string"
|
|
1164
|
-
},
|
|
1165
|
-
{
|
|
1166
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAction"
|
|
1167
|
-
}
|
|
1168
|
-
]
|
|
1169
|
-
}
|
|
1170
|
-
]
|
|
1171
|
-
}
|
|
1172
|
-
],
|
|
1173
|
-
description: "The action associated with the rule."
|
|
1174
|
-
},
|
|
1175
|
-
target: {
|
|
1176
|
-
anyOf: [
|
|
1177
|
-
{
|
|
1178
|
-
type: "string"
|
|
1179
|
-
},
|
|
1180
|
-
{
|
|
1181
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAsset"
|
|
1182
|
-
},
|
|
1183
|
-
{
|
|
1184
|
-
type: "array",
|
|
1185
|
-
items: false,
|
|
1186
|
-
prefixItems: [
|
|
1187
|
-
{
|
|
1188
|
-
anyOf: [
|
|
1189
|
-
{
|
|
1190
|
-
type: "string"
|
|
1191
|
-
},
|
|
1192
|
-
{
|
|
1193
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAsset"
|
|
1194
|
-
}
|
|
1195
|
-
]
|
|
1196
|
-
}
|
|
1197
|
-
]
|
|
1198
|
-
}
|
|
1199
|
-
],
|
|
1200
|
-
description: "The target asset for the rule."
|
|
1201
|
-
},
|
|
1202
|
-
assigner: {
|
|
1203
|
-
anyOf: [
|
|
1204
|
-
{
|
|
1205
|
-
type: "string"
|
|
1206
|
-
},
|
|
1207
|
-
{
|
|
1208
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
1209
|
-
}
|
|
1210
|
-
],
|
|
1211
|
-
description: "The assigner of the rule."
|
|
1212
|
-
},
|
|
1213
|
-
assignee: {
|
|
1214
|
-
anyOf: [
|
|
1215
|
-
{
|
|
1216
|
-
type: "string"
|
|
1217
|
-
},
|
|
1218
|
-
{
|
|
1219
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
1220
|
-
}
|
|
1221
|
-
],
|
|
1222
|
-
description: "The assignee of the rule."
|
|
1223
|
-
},
|
|
1224
|
-
constraint: {
|
|
1225
|
-
type: "array",
|
|
1226
|
-
items: false,
|
|
1227
|
-
description: "Constraints applied to the rule.",
|
|
1228
|
-
prefixItems: [
|
|
1229
|
-
{
|
|
1230
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlConstraint"
|
|
1231
|
-
}
|
|
1232
|
-
]
|
|
1233
|
-
},
|
|
1234
|
-
summary: {
|
|
1235
|
-
type: "string",
|
|
1236
|
-
description: "Additional relation sub-properties as defined in ODRL profiles. For example, 'summary' in profile \"http://example.com/odrl:profile:03\" indicates where the output should be stored."
|
|
1237
|
-
},
|
|
1238
|
-
attributedParty: {
|
|
1239
|
-
type: "string",
|
|
1240
|
-
description: "The party to be attributed Used when the duty involves attribution"
|
|
1241
|
-
},
|
|
1242
|
-
trackingParty: {
|
|
1243
|
-
type: "string",
|
|
1244
|
-
description: "The party performing the tracking Used when the duty involves tracking"
|
|
1245
|
-
},
|
|
1246
|
-
consequence: {
|
|
1247
|
-
type: "array",
|
|
1248
|
-
items: false,
|
|
1249
|
-
description: "The consequences if the duty is not fulfilled. Only applicable when the Duty is referenced by a Rule with duty or obligation properties.",
|
|
1250
|
-
prefixItems: [
|
|
1251
|
-
{
|
|
1252
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlDuty"
|
|
1253
|
-
}
|
|
1254
|
-
]
|
|
1255
|
-
},
|
|
1256
|
-
remedy: {
|
|
1257
|
-
type: "array",
|
|
1258
|
-
items: false,
|
|
1259
|
-
description: "The remedies that may be fulfilled to cure the violation.",
|
|
1260
|
-
prefixItems: [
|
|
1261
|
-
{
|
|
1262
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlDuty"
|
|
1263
|
-
}
|
|
1264
|
-
]
|
|
1265
|
-
},
|
|
1266
|
-
compensatedParty: {
|
|
1267
|
-
type: "string",
|
|
1268
|
-
description: "The party to be compensated Used when the duty involves compensation"
|
|
1269
|
-
}
|
|
1270
|
-
};
|
|
1271
|
-
var additionalProperties$9 = {
|
|
1272
|
-
anyOf: [
|
|
1273
|
-
{
|
|
1274
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
1275
|
-
},
|
|
1276
|
-
{
|
|
1277
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
1278
|
-
},
|
|
1279
|
-
{
|
|
1280
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
1281
|
-
},
|
|
1282
|
-
{
|
|
1283
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
1284
|
-
},
|
|
1285
|
-
{
|
|
1286
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
1287
|
-
},
|
|
1288
|
-
{
|
|
1289
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
1290
|
-
},
|
|
1291
|
-
{
|
|
1292
|
-
type: "array"
|
|
1293
|
-
}
|
|
1294
|
-
]
|
|
1295
|
-
};
|
|
1296
|
-
var OdrlDutySchema = {
|
|
1297
|
-
$schema: $schema$9,
|
|
1298
|
-
$id: $id$9,
|
|
1299
|
-
description: description$9,
|
|
1300
|
-
type: type$9,
|
|
1301
|
-
properties: properties$9,
|
|
1302
|
-
additionalProperties: additionalProperties$9
|
|
1303
|
-
};
|
|
1304
|
-
|
|
1305
|
-
var $schema$8 = "https://json-schema.org/draft/2020-12/schema";
|
|
1306
|
-
var $id$8 = "https://schema.twindev.org/w3c-odrl/OdrlLogicalConstraint";
|
|
1307
|
-
var description$8 = "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. https://www.w3.org/TR/odrl-model/#constraint-logical";
|
|
1308
|
-
var type$8 = "object";
|
|
1309
|
-
var properties$8 = {
|
|
1310
|
-
"@context": {
|
|
1311
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
|
|
1312
|
-
},
|
|
1313
|
-
"@id": {
|
|
1314
|
-
anyOf: [
|
|
1315
|
-
{
|
|
1316
|
-
type: "string"
|
|
1317
|
-
},
|
|
1318
|
-
{
|
|
1319
|
-
type: "array",
|
|
1320
|
-
items: false,
|
|
1321
|
-
prefixItems: [
|
|
1322
|
-
{
|
|
1323
|
-
type: "string"
|
|
1324
|
-
}
|
|
1325
|
-
]
|
|
1326
|
-
}
|
|
1327
|
-
]
|
|
1328
|
-
},
|
|
1329
|
-
"@included": {
|
|
1330
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
1331
|
-
},
|
|
1332
|
-
"@graph": {
|
|
1333
|
-
anyOf: [
|
|
1334
|
-
{
|
|
1335
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
1336
|
-
},
|
|
1337
|
-
{
|
|
1338
|
-
type: "array",
|
|
1339
|
-
items: false,
|
|
1340
|
-
prefixItems: [
|
|
1341
|
-
{
|
|
1342
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
1343
|
-
}
|
|
1344
|
-
]
|
|
1345
|
-
}
|
|
1346
|
-
]
|
|
1347
|
-
},
|
|
1348
|
-
"@nest": {
|
|
1349
|
-
anyOf: [
|
|
1350
|
-
{
|
|
1351
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
1352
|
-
},
|
|
1353
|
-
{
|
|
1354
|
-
type: "array",
|
|
1355
|
-
items: false,
|
|
1356
|
-
prefixItems: [
|
|
1357
|
-
{
|
|
1358
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
1359
|
-
}
|
|
1360
|
-
]
|
|
1361
|
-
}
|
|
1362
|
-
]
|
|
1363
|
-
},
|
|
1364
|
-
"@type": {
|
|
1365
|
-
anyOf: [
|
|
1366
|
-
{
|
|
1367
|
-
type: "string"
|
|
1368
|
-
},
|
|
1369
|
-
{
|
|
1370
|
-
type: "array",
|
|
1371
|
-
items: false,
|
|
1372
|
-
prefixItems: [
|
|
1373
|
-
{
|
|
1374
|
-
type: "string"
|
|
1375
|
-
}
|
|
1376
|
-
]
|
|
1377
|
-
}
|
|
1378
|
-
]
|
|
1379
|
-
},
|
|
1380
|
-
"@reverse": {
|
|
1381
|
-
type: "object",
|
|
1382
|
-
additionalProperties: {
|
|
1383
|
-
type: "string"
|
|
1384
|
-
}
|
|
1385
|
-
},
|
|
1386
|
-
"@index": {
|
|
1387
|
-
type: "string"
|
|
1388
|
-
},
|
|
1389
|
-
uid: {
|
|
1390
|
-
type: "string",
|
|
1391
|
-
description: "Optional unique identifier for the logical constraint. Must be an IRI."
|
|
1392
|
-
},
|
|
1393
|
-
and: {
|
|
1394
|
-
type: "object",
|
|
1395
|
-
properties: {
|
|
1396
|
-
"@list": {
|
|
1397
|
-
type: "array",
|
|
1398
|
-
items: false,
|
|
1399
|
-
prefixItems: [
|
|
1400
|
-
{
|
|
1401
|
-
type: "object",
|
|
1402
|
-
properties: {
|
|
1403
|
-
"@id": {
|
|
1404
|
-
type: "string"
|
|
1405
|
-
}
|
|
1406
|
-
},
|
|
1407
|
-
required: [
|
|
1408
|
-
"@id"
|
|
1409
|
-
],
|
|
1410
|
-
additionalProperties: false
|
|
1411
|
-
}
|
|
1412
|
-
]
|
|
1413
|
-
}
|
|
1414
|
-
},
|
|
1415
|
-
required: [
|
|
1416
|
-
"@list"
|
|
1417
|
-
],
|
|
1418
|
-
additionalProperties: false,
|
|
1419
|
-
description: "AND operator - all constraints must be satisfied."
|
|
1420
|
-
},
|
|
1421
|
-
or: {
|
|
1422
|
-
type: "object",
|
|
1423
|
-
properties: {
|
|
1424
|
-
"@list": {
|
|
1425
|
-
type: "array",
|
|
1426
|
-
items: false,
|
|
1427
|
-
prefixItems: [
|
|
1428
|
-
{
|
|
1429
|
-
type: "object",
|
|
1430
|
-
properties: {
|
|
1431
|
-
"@id": {
|
|
1432
|
-
type: "string"
|
|
1433
|
-
}
|
|
1434
|
-
},
|
|
1435
|
-
required: [
|
|
1436
|
-
"@id"
|
|
1437
|
-
],
|
|
1438
|
-
additionalProperties: false
|
|
1439
|
-
}
|
|
1440
|
-
]
|
|
1441
|
-
}
|
|
1442
|
-
},
|
|
1443
|
-
required: [
|
|
1444
|
-
"@list"
|
|
1445
|
-
],
|
|
1446
|
-
additionalProperties: false,
|
|
1447
|
-
description: "OR operator - at least one constraint must be satisfied."
|
|
1448
|
-
},
|
|
1449
|
-
xone: {
|
|
1450
|
-
type: "object",
|
|
1451
|
-
properties: {
|
|
1452
|
-
"@list": {
|
|
1453
|
-
type: "array",
|
|
1454
|
-
items: false,
|
|
1455
|
-
prefixItems: [
|
|
1456
|
-
{
|
|
1457
|
-
type: "object",
|
|
1458
|
-
properties: {
|
|
1459
|
-
"@id": {
|
|
1460
|
-
type: "string"
|
|
1461
|
-
}
|
|
1462
|
-
},
|
|
1463
|
-
required: [
|
|
1464
|
-
"@id"
|
|
1465
|
-
],
|
|
1466
|
-
additionalProperties: false
|
|
1467
|
-
}
|
|
1468
|
-
]
|
|
1469
|
-
}
|
|
1470
|
-
},
|
|
1471
|
-
required: [
|
|
1472
|
-
"@list"
|
|
1473
|
-
],
|
|
1474
|
-
additionalProperties: false,
|
|
1475
|
-
description: "XOR operator - exactly one constraint must be satisfied."
|
|
1476
|
-
},
|
|
1477
|
-
andSequence: {
|
|
1478
|
-
type: "object",
|
|
1479
|
-
properties: {
|
|
1480
|
-
"@list": {
|
|
1481
|
-
type: "array",
|
|
1482
|
-
items: false,
|
|
1483
|
-
prefixItems: [
|
|
1484
|
-
{
|
|
1485
|
-
type: "object",
|
|
1486
|
-
properties: {
|
|
1487
|
-
"@id": {
|
|
1488
|
-
type: "string"
|
|
1489
|
-
}
|
|
1490
|
-
},
|
|
1491
|
-
required: [
|
|
1492
|
-
"@id"
|
|
1493
|
-
],
|
|
1494
|
-
additionalProperties: false
|
|
1495
|
-
}
|
|
1496
|
-
]
|
|
1497
|
-
}
|
|
1498
|
-
},
|
|
1499
|
-
required: [
|
|
1500
|
-
"@list"
|
|
1501
|
-
],
|
|
1502
|
-
additionalProperties: false,
|
|
1503
|
-
description: "AND Sequence operator - all constraints must be satisfied in order."
|
|
1504
|
-
}
|
|
1505
|
-
};
|
|
1506
|
-
var additionalProperties$8 = {
|
|
1507
|
-
anyOf: [
|
|
1508
|
-
{
|
|
1509
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
1510
|
-
},
|
|
1511
|
-
{
|
|
1512
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
1513
|
-
},
|
|
1514
|
-
{
|
|
1515
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
1516
|
-
},
|
|
1517
|
-
{
|
|
1518
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
1519
|
-
},
|
|
1520
|
-
{
|
|
1521
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
1522
|
-
},
|
|
1523
|
-
{
|
|
1524
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
1525
|
-
},
|
|
1526
|
-
{
|
|
1527
|
-
type: "array"
|
|
1528
|
-
}
|
|
1529
|
-
]
|
|
1530
|
-
};
|
|
1531
|
-
var OdrlLogicalConstraintSchema = {
|
|
1532
|
-
$schema: $schema$8,
|
|
1533
|
-
$id: $id$8,
|
|
1534
|
-
description: description$8,
|
|
1535
|
-
type: type$8,
|
|
1536
|
-
properties: properties$8,
|
|
1537
|
-
additionalProperties: additionalProperties$8
|
|
1538
|
-
};
|
|
1539
|
-
|
|
1540
|
-
var $schema$7 = "https://json-schema.org/draft/2020-12/schema";
|
|
1541
|
-
var $id$7 = "https://schema.twindev.org/w3c-odrl/OdrlOffer";
|
|
1542
|
-
var description$7 = "Interface representing an ODRL Offer. An Offer requires an assigner (the party making the offer). https://www.w3.org/TR/odrl-model/#policy-offer";
|
|
1543
|
-
var type$7 = "object";
|
|
1544
|
-
var properties$7 = {
|
|
1545
|
-
"@context": {
|
|
1546
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlContextType",
|
|
1547
|
-
description: "The context for the policy. Must include \"https://www.w3.org/ns/odrl.jsonld\""
|
|
1548
|
-
},
|
|
1549
|
-
"@id": {
|
|
1550
|
-
anyOf: [
|
|
1551
|
-
{
|
|
1552
|
-
type: "string"
|
|
1553
|
-
},
|
|
1554
|
-
{
|
|
1555
|
-
type: "array",
|
|
1556
|
-
items: false,
|
|
1557
|
-
prefixItems: [
|
|
1558
|
-
{
|
|
1559
|
-
type: "string"
|
|
1560
|
-
}
|
|
1561
|
-
]
|
|
1562
|
-
}
|
|
1563
|
-
]
|
|
1564
|
-
},
|
|
1565
|
-
"@included": {
|
|
1566
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
1567
|
-
},
|
|
1568
|
-
"@graph": {
|
|
1569
|
-
anyOf: [
|
|
1570
|
-
{
|
|
1571
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
1572
|
-
},
|
|
1573
|
-
{
|
|
1574
|
-
type: "array",
|
|
1575
|
-
items: false,
|
|
1576
|
-
prefixItems: [
|
|
1577
|
-
{
|
|
1578
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
1579
|
-
}
|
|
1580
|
-
]
|
|
1581
|
-
}
|
|
1582
|
-
]
|
|
1583
|
-
},
|
|
1584
|
-
"@nest": {
|
|
1585
|
-
anyOf: [
|
|
1586
|
-
{
|
|
1587
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
1588
|
-
},
|
|
1589
|
-
{
|
|
1590
|
-
type: "array",
|
|
1591
|
-
items: false,
|
|
1592
|
-
prefixItems: [
|
|
1593
|
-
{
|
|
1594
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
1595
|
-
}
|
|
1596
|
-
]
|
|
1597
|
-
}
|
|
1598
|
-
]
|
|
1599
|
-
},
|
|
1600
|
-
"@type": {
|
|
1601
|
-
type: "string",
|
|
1602
|
-
"const": "Offer",
|
|
1603
|
-
description: "The type must be \"Offer\"."
|
|
1604
|
-
},
|
|
1605
|
-
"@reverse": {
|
|
1606
|
-
type: "object",
|
|
1607
|
-
additionalProperties: {
|
|
1608
|
-
type: "string"
|
|
1609
|
-
}
|
|
1610
|
-
},
|
|
1611
|
-
"@index": {
|
|
1612
|
-
type: "string"
|
|
1613
|
-
},
|
|
1614
|
-
uid: {
|
|
1615
|
-
type: "string",
|
|
1616
|
-
description: "The unique identifier for the policy. Must be an IRI."
|
|
1617
|
-
},
|
|
1618
|
-
profile: {
|
|
1619
|
-
anyOf: [
|
|
1620
|
-
{
|
|
1621
|
-
type: "string"
|
|
1622
|
-
},
|
|
1623
|
-
{
|
|
1624
|
-
type: "array",
|
|
1625
|
-
items: false,
|
|
1626
|
-
prefixItems: [
|
|
1627
|
-
{
|
|
1628
|
-
type: "string"
|
|
1629
|
-
}
|
|
1630
|
-
]
|
|
1631
|
-
}
|
|
1632
|
-
],
|
|
1633
|
-
description: "The profile(s) this policy conforms to. IRIs identifying the ODRL Profile(s)."
|
|
1634
|
-
},
|
|
1635
|
-
assigner: {
|
|
1636
|
-
anyOf: [
|
|
1637
|
-
{
|
|
1638
|
-
type: "string"
|
|
1639
|
-
},
|
|
1640
|
-
{
|
|
1641
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
1642
|
-
}
|
|
1643
|
-
],
|
|
1644
|
-
description: "The assigner of the offer. Required for Offer policies."
|
|
1645
|
-
},
|
|
1646
|
-
assignee: {
|
|
1647
|
-
anyOf: [
|
|
1648
|
-
{
|
|
1649
|
-
type: "string"
|
|
1650
|
-
},
|
|
1651
|
-
{
|
|
1652
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
1653
|
-
}
|
|
1654
|
-
],
|
|
1655
|
-
description: "The assignee of the policy. Applies to all rules unless overridden at rule level."
|
|
1656
|
-
},
|
|
1657
|
-
target: {
|
|
1658
|
-
anyOf: [
|
|
1659
|
-
{
|
|
1660
|
-
type: "string"
|
|
1661
|
-
},
|
|
1662
|
-
{
|
|
1663
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAsset"
|
|
1664
|
-
},
|
|
1665
|
-
{
|
|
1666
|
-
type: "array",
|
|
1667
|
-
items: false,
|
|
1668
|
-
prefixItems: [
|
|
1669
|
-
{
|
|
1670
|
-
anyOf: [
|
|
1671
|
-
{
|
|
1672
|
-
type: "string"
|
|
1673
|
-
},
|
|
1674
|
-
{
|
|
1675
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAsset"
|
|
1676
|
-
}
|
|
1677
|
-
]
|
|
1678
|
-
}
|
|
1679
|
-
]
|
|
1680
|
-
}
|
|
1681
|
-
],
|
|
1682
|
-
description: "The target asset for the rule."
|
|
1683
|
-
},
|
|
1684
|
-
action: {
|
|
1685
|
-
anyOf: [
|
|
1686
|
-
{
|
|
1687
|
-
$ref: "https://schema.twindev.org/w3c-odrl/ActionType"
|
|
1688
|
-
},
|
|
1689
|
-
{
|
|
1690
|
-
type: "string"
|
|
1691
|
-
},
|
|
1692
|
-
{
|
|
1693
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAction"
|
|
1694
|
-
},
|
|
1695
|
-
{
|
|
1696
|
-
type: "array",
|
|
1697
|
-
items: false,
|
|
1698
|
-
prefixItems: [
|
|
1699
|
-
{
|
|
1700
|
-
anyOf: [
|
|
1701
|
-
{
|
|
1702
|
-
$ref: "https://schema.twindev.org/w3c-odrl/ActionType"
|
|
1703
|
-
},
|
|
1704
|
-
{
|
|
1705
|
-
type: "string"
|
|
1706
|
-
},
|
|
1707
|
-
{
|
|
1708
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAction"
|
|
1709
|
-
}
|
|
1710
|
-
]
|
|
1711
|
-
}
|
|
1712
|
-
]
|
|
1713
|
-
}
|
|
1714
|
-
],
|
|
1715
|
-
description: "The action associated with the rule."
|
|
1716
|
-
},
|
|
1717
|
-
inheritFrom: {
|
|
1718
|
-
anyOf: [
|
|
1719
|
-
{
|
|
1720
|
-
type: "string"
|
|
1721
|
-
},
|
|
1722
|
-
{
|
|
1723
|
-
type: "array",
|
|
1724
|
-
items: false,
|
|
1725
|
-
prefixItems: [
|
|
1726
|
-
{
|
|
1727
|
-
type: "string"
|
|
1728
|
-
}
|
|
1729
|
-
]
|
|
1730
|
-
}
|
|
1731
|
-
],
|
|
1732
|
-
description: "The parent policy(ies) this policy inherits from. IRIs identifying the parent Policy(ies)."
|
|
1733
|
-
},
|
|
1734
|
-
conflict: {
|
|
1735
|
-
$ref: "https://schema.twindev.org/w3c-odrl/ConflictStrategyType",
|
|
1736
|
-
description: "The conflict resolution strategy.\n- perm: Permissions override Prohibitions\n- prohibit: Prohibitions override Permissions\n- invalid: Policy is void if conflicts exist (default)"
|
|
1737
|
-
},
|
|
1738
|
-
permission: {
|
|
1739
|
-
type: "array",
|
|
1740
|
-
items: false,
|
|
1741
|
-
description: "The permissions in the policy. At least one of permission, prohibition, or obligation must be present.",
|
|
1742
|
-
prefixItems: [
|
|
1743
|
-
{
|
|
1744
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlPermission"
|
|
1745
|
-
}
|
|
1746
|
-
]
|
|
1747
|
-
},
|
|
1748
|
-
prohibition: {
|
|
1749
|
-
type: "array",
|
|
1750
|
-
items: false,
|
|
1751
|
-
description: "The prohibitions in the policy. At least one of permission, prohibition, or obligation must be present.",
|
|
1752
|
-
prefixItems: [
|
|
1753
|
-
{
|
|
1754
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlProhibition"
|
|
1755
|
-
}
|
|
1756
|
-
]
|
|
1757
|
-
},
|
|
1758
|
-
obligation: {
|
|
1759
|
-
type: "array",
|
|
1760
|
-
items: false,
|
|
1761
|
-
description: "The obligations in the policy. At least one of permission, prohibition, or obligation must be present.",
|
|
1762
|
-
prefixItems: [
|
|
1763
|
-
{
|
|
1764
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlDuty"
|
|
1765
|
-
}
|
|
1766
|
-
]
|
|
1767
|
-
}
|
|
1768
|
-
};
|
|
1769
|
-
var required$3 = [
|
|
1770
|
-
"@context",
|
|
1771
|
-
"@type",
|
|
1772
|
-
"assigner",
|
|
1773
|
-
"uid"
|
|
1774
|
-
];
|
|
1775
|
-
var additionalProperties$7 = {
|
|
1776
|
-
anyOf: [
|
|
1777
|
-
{
|
|
1778
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
1779
|
-
},
|
|
1780
|
-
{
|
|
1781
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
1782
|
-
},
|
|
1783
|
-
{
|
|
1784
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
1785
|
-
},
|
|
1786
|
-
{
|
|
1787
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
1788
|
-
},
|
|
1789
|
-
{
|
|
1790
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
1791
|
-
},
|
|
1792
|
-
{
|
|
1793
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
1794
|
-
},
|
|
1795
|
-
{
|
|
1796
|
-
type: "array"
|
|
1797
|
-
}
|
|
1798
|
-
]
|
|
1799
|
-
};
|
|
1800
|
-
var OdrlOfferSchema = {
|
|
1801
|
-
$schema: $schema$7,
|
|
1802
|
-
$id: $id$7,
|
|
1803
|
-
description: description$7,
|
|
1804
|
-
type: type$7,
|
|
1805
|
-
properties: properties$7,
|
|
1806
|
-
required: required$3,
|
|
1807
|
-
additionalProperties: additionalProperties$7
|
|
1808
|
-
};
|
|
1809
|
-
|
|
1810
|
-
var $schema$6 = "https://json-schema.org/draft/2020-12/schema";
|
|
1811
|
-
var $id$6 = "https://schema.twindev.org/w3c-odrl/OdrlParty";
|
|
1812
|
-
var description$6 = "Interface for ODRL Parties. https://www.w3.org/TR/odrl-model/#party";
|
|
1813
|
-
var type$6 = "object";
|
|
1814
|
-
var properties$6 = {
|
|
1815
|
-
"@context": {
|
|
1816
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
|
|
1817
|
-
},
|
|
1818
|
-
"@id": {
|
|
1819
|
-
anyOf: [
|
|
1820
|
-
{
|
|
1821
|
-
type: "string"
|
|
1822
|
-
},
|
|
1823
|
-
{
|
|
1824
|
-
type: "array",
|
|
1825
|
-
items: false,
|
|
1826
|
-
prefixItems: [
|
|
1827
|
-
{
|
|
1828
|
-
type: "string"
|
|
1829
|
-
}
|
|
1830
|
-
]
|
|
1831
|
-
}
|
|
1832
|
-
]
|
|
1833
|
-
},
|
|
1834
|
-
"@included": {
|
|
1835
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
1836
|
-
},
|
|
1837
|
-
"@graph": {
|
|
1838
|
-
anyOf: [
|
|
1839
|
-
{
|
|
1840
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
1841
|
-
},
|
|
1842
|
-
{
|
|
1843
|
-
type: "array",
|
|
1844
|
-
items: false,
|
|
1845
|
-
prefixItems: [
|
|
1846
|
-
{
|
|
1847
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
1848
|
-
}
|
|
1849
|
-
]
|
|
1850
|
-
}
|
|
1851
|
-
]
|
|
1852
|
-
},
|
|
1853
|
-
"@nest": {
|
|
1854
|
-
anyOf: [
|
|
1855
|
-
{
|
|
1856
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
1857
|
-
},
|
|
1858
|
-
{
|
|
1859
|
-
type: "array",
|
|
1860
|
-
items: false,
|
|
1861
|
-
prefixItems: [
|
|
1862
|
-
{
|
|
1863
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
1864
|
-
}
|
|
1865
|
-
]
|
|
1866
|
-
}
|
|
1867
|
-
]
|
|
1868
|
-
},
|
|
1869
|
-
"@type": {
|
|
1870
|
-
anyOf: [
|
|
1871
|
-
{
|
|
1872
|
-
type: "string"
|
|
1873
|
-
},
|
|
1874
|
-
{
|
|
1875
|
-
type: "array",
|
|
1876
|
-
items: false,
|
|
1877
|
-
prefixItems: [
|
|
1878
|
-
{
|
|
1879
|
-
type: "string"
|
|
1880
|
-
}
|
|
1881
|
-
]
|
|
1882
|
-
}
|
|
1883
|
-
],
|
|
1884
|
-
description: "The type of the party. Can be used to specify additional type information (e.g., \"Party\", \"vcard:Organization\", \"vcard:Individual\")."
|
|
1885
|
-
},
|
|
1886
|
-
"@reverse": {
|
|
1887
|
-
type: "object",
|
|
1888
|
-
additionalProperties: {
|
|
1889
|
-
type: "string"
|
|
1890
|
-
}
|
|
1891
|
-
},
|
|
1892
|
-
"@index": {
|
|
1893
|
-
type: "string"
|
|
1894
|
-
},
|
|
1895
|
-
uid: {
|
|
1896
|
-
type: "string",
|
|
1897
|
-
description: "The unique identifier for the party. Must be an IRI."
|
|
1898
|
-
},
|
|
1899
|
-
partOf: {
|
|
1900
|
-
anyOf: [
|
|
1901
|
-
{
|
|
1902
|
-
type: "string"
|
|
1903
|
-
},
|
|
1904
|
-
{
|
|
1905
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlPartyCollection"
|
|
1906
|
-
}
|
|
1907
|
-
],
|
|
1908
|
-
description: "Reference to the party collection this party is part of. Used to identify a PartyCollection that a Party entity is a member of."
|
|
1909
|
-
},
|
|
1910
|
-
assigneeOf: {
|
|
1911
|
-
type: "string",
|
|
1912
|
-
description: "Reference to a policy where this party is an assignee. When assigneeOf is asserted, the Party MUST be inferred to undertake the assignee functional role of all the Rules of that Policy."
|
|
1913
|
-
},
|
|
1914
|
-
assignerOf: {
|
|
1915
|
-
type: "string",
|
|
1916
|
-
description: "Reference to a policy where this party is an assigner. When assignerOf is asserted, the Party MUST be inferred to undertake the assigner functional role of all the Rules of that Policy."
|
|
1917
|
-
}
|
|
1918
|
-
};
|
|
1919
|
-
var additionalProperties$6 = {
|
|
1920
|
-
anyOf: [
|
|
1921
|
-
{
|
|
1922
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
1923
|
-
},
|
|
1924
|
-
{
|
|
1925
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
1926
|
-
},
|
|
1927
|
-
{
|
|
1928
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
1929
|
-
},
|
|
1930
|
-
{
|
|
1931
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
1932
|
-
},
|
|
1933
|
-
{
|
|
1934
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
1935
|
-
},
|
|
1936
|
-
{
|
|
1937
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
1938
|
-
},
|
|
1939
|
-
{
|
|
1940
|
-
type: "array"
|
|
1941
|
-
}
|
|
1942
|
-
]
|
|
1943
|
-
};
|
|
1944
|
-
var OdrlPartySchema = {
|
|
1945
|
-
$schema: $schema$6,
|
|
1946
|
-
$id: $id$6,
|
|
1947
|
-
description: description$6,
|
|
1948
|
-
type: type$6,
|
|
1949
|
-
properties: properties$6,
|
|
1950
|
-
additionalProperties: additionalProperties$6
|
|
1951
|
-
};
|
|
1952
|
-
|
|
1953
|
-
var $schema$5 = "https://json-schema.org/draft/2020-12/schema";
|
|
1954
|
-
var $id$5 = "https://schema.twindev.org/w3c-odrl/OdrlPartyCollection";
|
|
1955
|
-
var description$5 = "Interface for ODRL Party Collections. A PartyCollection identifies a collection of entities and is a subclass of Party. https://www.w3.org/TR/odrl-model/#party";
|
|
1956
|
-
var type$5 = "object";
|
|
1957
|
-
var properties$5 = {
|
|
1958
|
-
"@context": {
|
|
1959
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
|
|
1960
|
-
},
|
|
1961
|
-
"@id": {
|
|
1962
|
-
anyOf: [
|
|
1963
|
-
{
|
|
1964
|
-
type: "string"
|
|
1965
|
-
},
|
|
1966
|
-
{
|
|
1967
|
-
type: "array",
|
|
1968
|
-
items: false,
|
|
1969
|
-
prefixItems: [
|
|
1970
|
-
{
|
|
1971
|
-
type: "string"
|
|
1972
|
-
}
|
|
1973
|
-
]
|
|
1974
|
-
}
|
|
1975
|
-
]
|
|
1976
|
-
},
|
|
1977
|
-
"@included": {
|
|
1978
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
1979
|
-
},
|
|
1980
|
-
"@graph": {
|
|
1981
|
-
anyOf: [
|
|
1982
|
-
{
|
|
1983
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
1984
|
-
},
|
|
1985
|
-
{
|
|
1986
|
-
type: "array",
|
|
1987
|
-
items: false,
|
|
1988
|
-
prefixItems: [
|
|
1989
|
-
{
|
|
1990
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
1991
|
-
}
|
|
1992
|
-
]
|
|
1993
|
-
}
|
|
1994
|
-
]
|
|
1995
|
-
},
|
|
1996
|
-
"@nest": {
|
|
1997
|
-
anyOf: [
|
|
1998
|
-
{
|
|
1999
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
2000
|
-
},
|
|
2001
|
-
{
|
|
2002
|
-
type: "array",
|
|
2003
|
-
items: false,
|
|
2004
|
-
prefixItems: [
|
|
2005
|
-
{
|
|
2006
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
2007
|
-
}
|
|
2008
|
-
]
|
|
2009
|
-
}
|
|
2010
|
-
]
|
|
2011
|
-
},
|
|
2012
|
-
"@type": {
|
|
2013
|
-
anyOf: [
|
|
2014
|
-
{
|
|
2015
|
-
type: "string"
|
|
2016
|
-
},
|
|
2017
|
-
{
|
|
2018
|
-
type: "array",
|
|
2019
|
-
items: false,
|
|
2020
|
-
prefixItems: [
|
|
2021
|
-
{
|
|
2022
|
-
type: "string"
|
|
2023
|
-
}
|
|
2024
|
-
]
|
|
2025
|
-
}
|
|
2026
|
-
],
|
|
2027
|
-
description: "The type of the party. Can be used to specify additional type information (e.g., \"Party\", \"vcard:Organization\", \"vcard:Individual\")."
|
|
2028
|
-
},
|
|
2029
|
-
"@reverse": {
|
|
2030
|
-
type: "object",
|
|
2031
|
-
additionalProperties: {
|
|
2032
|
-
type: "string"
|
|
2033
|
-
}
|
|
2034
|
-
},
|
|
2035
|
-
"@index": {
|
|
2036
|
-
type: "string"
|
|
2037
|
-
},
|
|
2038
|
-
uid: {
|
|
2039
|
-
type: "string",
|
|
2040
|
-
description: "The unique identifier for the party. Must be an IRI."
|
|
2041
|
-
},
|
|
2042
|
-
partOf: {
|
|
2043
|
-
anyOf: [
|
|
2044
|
-
{
|
|
2045
|
-
type: "string"
|
|
2046
|
-
},
|
|
2047
|
-
{
|
|
2048
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlPartyCollection"
|
|
2049
|
-
}
|
|
2050
|
-
],
|
|
2051
|
-
description: "Reference to the party collection this party is part of. Used to identify a PartyCollection that a Party entity is a member of."
|
|
2052
|
-
},
|
|
2053
|
-
assigneeOf: {
|
|
2054
|
-
type: "string",
|
|
2055
|
-
description: "Reference to a policy where this party is an assignee. When assigneeOf is asserted, the Party MUST be inferred to undertake the assignee functional role of all the Rules of that Policy."
|
|
2056
|
-
},
|
|
2057
|
-
assignerOf: {
|
|
2058
|
-
type: "string",
|
|
2059
|
-
description: "Reference to a policy where this party is an assigner. When assignerOf is asserted, the Party MUST be inferred to undertake the assigner functional role of all the Rules of that Policy."
|
|
2060
|
-
},
|
|
2061
|
-
source: {
|
|
2062
|
-
type: "string",
|
|
2063
|
-
description: "Reference to the source of the party collection. Used to identify the origin or location of the collection."
|
|
2064
|
-
},
|
|
2065
|
-
refinement: {
|
|
2066
|
-
type: "array",
|
|
2067
|
-
items: false,
|
|
2068
|
-
description: "Refinements applied to the party collection. Used to specify constraints that apply to all members of the collection.",
|
|
2069
|
-
prefixItems: [
|
|
2070
|
-
{
|
|
2071
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlConstraint"
|
|
2072
|
-
}
|
|
2073
|
-
]
|
|
2074
|
-
}
|
|
2075
|
-
};
|
|
2076
|
-
var required$2 = [
|
|
2077
|
-
"source"
|
|
2078
|
-
];
|
|
2079
|
-
var additionalProperties$5 = {
|
|
2080
|
-
anyOf: [
|
|
2081
|
-
{
|
|
2082
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
2083
|
-
},
|
|
2084
|
-
{
|
|
2085
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
2086
|
-
},
|
|
2087
|
-
{
|
|
2088
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
2089
|
-
},
|
|
2090
|
-
{
|
|
2091
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
2092
|
-
},
|
|
2093
|
-
{
|
|
2094
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
2095
|
-
},
|
|
2096
|
-
{
|
|
2097
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
2098
|
-
},
|
|
2099
|
-
{
|
|
2100
|
-
type: "array"
|
|
2101
|
-
}
|
|
2102
|
-
]
|
|
2103
|
-
};
|
|
2104
|
-
var OdrlPartyCollectionSchema = {
|
|
2105
|
-
$schema: $schema$5,
|
|
2106
|
-
$id: $id$5,
|
|
2107
|
-
description: description$5,
|
|
2108
|
-
type: type$5,
|
|
2109
|
-
properties: properties$5,
|
|
2110
|
-
required: required$2,
|
|
2111
|
-
additionalProperties: additionalProperties$5
|
|
2112
|
-
};
|
|
2113
|
-
|
|
2114
|
-
var $schema$4 = "https://json-schema.org/draft/2020-12/schema";
|
|
2115
|
-
var $id$4 = "https://schema.twindev.org/w3c-odrl/OdrlPermission";
|
|
2116
|
-
var description$4 = "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. https://www.w3.org/TR/odrl-model/#permission";
|
|
2117
|
-
var type$4 = "object";
|
|
2118
|
-
var properties$4 = {
|
|
2119
|
-
"@context": {
|
|
2120
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
|
|
2121
|
-
},
|
|
2122
|
-
"@id": {
|
|
2123
|
-
anyOf: [
|
|
2124
|
-
{
|
|
2125
|
-
type: "string"
|
|
2126
|
-
},
|
|
2127
|
-
{
|
|
2128
|
-
type: "array",
|
|
2129
|
-
items: false,
|
|
2130
|
-
prefixItems: [
|
|
2131
|
-
{
|
|
2132
|
-
type: "string"
|
|
2133
|
-
}
|
|
2134
|
-
]
|
|
2135
|
-
}
|
|
2136
|
-
]
|
|
2137
|
-
},
|
|
2138
|
-
"@included": {
|
|
2139
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
2140
|
-
},
|
|
2141
|
-
"@graph": {
|
|
2142
|
-
anyOf: [
|
|
2143
|
-
{
|
|
2144
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
2145
|
-
},
|
|
2146
|
-
{
|
|
2147
|
-
type: "array",
|
|
2148
|
-
items: false,
|
|
2149
|
-
prefixItems: [
|
|
2150
|
-
{
|
|
2151
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
2152
|
-
}
|
|
2153
|
-
]
|
|
2154
|
-
}
|
|
2155
|
-
]
|
|
2156
|
-
},
|
|
2157
|
-
"@nest": {
|
|
2158
|
-
anyOf: [
|
|
2159
|
-
{
|
|
2160
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
2161
|
-
},
|
|
2162
|
-
{
|
|
2163
|
-
type: "array",
|
|
2164
|
-
items: false,
|
|
2165
|
-
prefixItems: [
|
|
2166
|
-
{
|
|
2167
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
2168
|
-
}
|
|
2169
|
-
]
|
|
2170
|
-
}
|
|
2171
|
-
]
|
|
2172
|
-
},
|
|
2173
|
-
"@type": {
|
|
2174
|
-
anyOf: [
|
|
2175
|
-
{
|
|
2176
|
-
type: "string"
|
|
2177
|
-
},
|
|
2178
|
-
{
|
|
2179
|
-
type: "array",
|
|
2180
|
-
items: false,
|
|
2181
|
-
prefixItems: [
|
|
2182
|
-
{
|
|
2183
|
-
type: "string"
|
|
2184
|
-
}
|
|
2185
|
-
]
|
|
2186
|
-
}
|
|
2187
|
-
]
|
|
2188
|
-
},
|
|
2189
|
-
"@reverse": {
|
|
2190
|
-
type: "object",
|
|
2191
|
-
additionalProperties: {
|
|
2192
|
-
type: "string"
|
|
2193
|
-
}
|
|
2194
|
-
},
|
|
2195
|
-
"@index": {
|
|
2196
|
-
type: "string"
|
|
2197
|
-
},
|
|
2198
|
-
uid: {
|
|
2199
|
-
type: "string",
|
|
2200
|
-
description: "Optional unique identifier for the rule."
|
|
2201
|
-
},
|
|
2202
|
-
action: {
|
|
2203
|
-
anyOf: [
|
|
2204
|
-
{
|
|
2205
|
-
$ref: "https://schema.twindev.org/w3c-odrl/ActionType"
|
|
2206
|
-
},
|
|
2207
|
-
{
|
|
2208
|
-
type: "string"
|
|
2209
|
-
},
|
|
2210
|
-
{
|
|
2211
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAction"
|
|
2212
|
-
},
|
|
2213
|
-
{
|
|
2214
|
-
type: "array",
|
|
2215
|
-
items: false,
|
|
2216
|
-
prefixItems: [
|
|
2217
|
-
{
|
|
2218
|
-
anyOf: [
|
|
2219
|
-
{
|
|
2220
|
-
$ref: "https://schema.twindev.org/w3c-odrl/ActionType"
|
|
2221
|
-
},
|
|
2222
|
-
{
|
|
2223
|
-
type: "string"
|
|
2224
|
-
},
|
|
2225
|
-
{
|
|
2226
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAction"
|
|
2227
|
-
}
|
|
2228
|
-
]
|
|
2229
|
-
}
|
|
2230
|
-
]
|
|
2231
|
-
}
|
|
2232
|
-
],
|
|
2233
|
-
description: "The action associated with the rule."
|
|
2234
|
-
},
|
|
2235
|
-
target: {
|
|
2236
|
-
anyOf: [
|
|
2237
|
-
{
|
|
2238
|
-
type: "string"
|
|
2239
|
-
},
|
|
2240
|
-
{
|
|
2241
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAsset"
|
|
2242
|
-
},
|
|
2243
|
-
{
|
|
2244
|
-
type: "array",
|
|
2245
|
-
items: false,
|
|
2246
|
-
prefixItems: [
|
|
2247
|
-
{
|
|
2248
|
-
anyOf: [
|
|
2249
|
-
{
|
|
2250
|
-
type: "string"
|
|
2251
|
-
},
|
|
2252
|
-
{
|
|
2253
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAsset"
|
|
2254
|
-
}
|
|
2255
|
-
]
|
|
2256
|
-
}
|
|
2257
|
-
]
|
|
2258
|
-
}
|
|
2259
|
-
],
|
|
2260
|
-
description: "The target asset for the rule."
|
|
2261
|
-
},
|
|
2262
|
-
assigner: {
|
|
2263
|
-
anyOf: [
|
|
2264
|
-
{
|
|
2265
|
-
type: "string"
|
|
2266
|
-
},
|
|
2267
|
-
{
|
|
2268
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
2269
|
-
}
|
|
2270
|
-
],
|
|
2271
|
-
description: "The assigner of the rule."
|
|
2272
|
-
},
|
|
2273
|
-
assignee: {
|
|
2274
|
-
anyOf: [
|
|
2275
|
-
{
|
|
2276
|
-
type: "string"
|
|
2277
|
-
},
|
|
2278
|
-
{
|
|
2279
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
2280
|
-
}
|
|
2281
|
-
],
|
|
2282
|
-
description: "The assignee of the rule."
|
|
2283
|
-
},
|
|
2284
|
-
constraint: {
|
|
2285
|
-
type: "array",
|
|
2286
|
-
items: false,
|
|
2287
|
-
description: "Constraints applied to the rule.",
|
|
2288
|
-
prefixItems: [
|
|
2289
|
-
{
|
|
2290
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlConstraint"
|
|
2291
|
-
}
|
|
2292
|
-
]
|
|
2293
|
-
},
|
|
2294
|
-
summary: {
|
|
2295
|
-
type: "string",
|
|
2296
|
-
description: "Additional relation sub-properties as defined in ODRL profiles. For example, 'summary' in profile \"http://example.com/odrl:profile:03\" indicates where the output should be stored."
|
|
2297
|
-
},
|
|
2298
|
-
duty: {
|
|
2299
|
-
type: "array",
|
|
2300
|
-
items: false,
|
|
2301
|
-
description: "The duties that must be fulfilled before the permission can be exercised. A Permission MAY have none, one, or more duty property values.",
|
|
2302
|
-
prefixItems: [
|
|
2303
|
-
{
|
|
2304
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlDuty"
|
|
2305
|
-
}
|
|
2306
|
-
]
|
|
2307
|
-
}
|
|
2308
|
-
};
|
|
2309
|
-
var additionalProperties$4 = {
|
|
2310
|
-
anyOf: [
|
|
2311
|
-
{
|
|
2312
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
2313
|
-
},
|
|
2314
|
-
{
|
|
2315
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
2316
|
-
},
|
|
2317
|
-
{
|
|
2318
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
2319
|
-
},
|
|
2320
|
-
{
|
|
2321
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
2322
|
-
},
|
|
2323
|
-
{
|
|
2324
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
2325
|
-
},
|
|
2326
|
-
{
|
|
2327
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
2328
|
-
},
|
|
2329
|
-
{
|
|
2330
|
-
type: "array"
|
|
2331
|
-
}
|
|
2332
|
-
]
|
|
2333
|
-
};
|
|
2334
|
-
var OdrlPermissionSchema = {
|
|
2335
|
-
$schema: $schema$4,
|
|
2336
|
-
$id: $id$4,
|
|
2337
|
-
description: description$4,
|
|
2338
|
-
type: type$4,
|
|
2339
|
-
properties: properties$4,
|
|
2340
|
-
additionalProperties: additionalProperties$4
|
|
2341
|
-
};
|
|
2342
|
-
|
|
2343
|
-
var $schema$3 = "https://json-schema.org/draft/2020-12/schema";
|
|
2344
|
-
var $id$3 = "https://schema.twindev.org/w3c-odrl/OdrlPolicy";
|
|
2345
|
-
var description$3 = "Interface representing an ODRL Policy. https://www.w3.org/TR/odrl-model/#policy";
|
|
2346
|
-
var type$3 = "object";
|
|
2347
|
-
var properties$3 = {
|
|
2348
|
-
"@context": {
|
|
2349
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlContextType",
|
|
2350
|
-
description: "The context for the policy. Must include \"https://www.w3.org/ns/odrl.jsonld\""
|
|
2351
|
-
},
|
|
2352
|
-
"@id": {
|
|
2353
|
-
anyOf: [
|
|
2354
|
-
{
|
|
2355
|
-
type: "string"
|
|
2356
|
-
},
|
|
2357
|
-
{
|
|
2358
|
-
type: "array",
|
|
2359
|
-
items: false,
|
|
2360
|
-
prefixItems: [
|
|
2361
|
-
{
|
|
2362
|
-
type: "string"
|
|
2363
|
-
}
|
|
2364
|
-
]
|
|
2365
|
-
}
|
|
2366
|
-
]
|
|
2367
|
-
},
|
|
2368
|
-
"@included": {
|
|
2369
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
2370
|
-
},
|
|
2371
|
-
"@graph": {
|
|
2372
|
-
anyOf: [
|
|
2373
|
-
{
|
|
2374
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
2375
|
-
},
|
|
2376
|
-
{
|
|
2377
|
-
type: "array",
|
|
2378
|
-
items: false,
|
|
2379
|
-
prefixItems: [
|
|
2380
|
-
{
|
|
2381
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
2382
|
-
}
|
|
2383
|
-
]
|
|
2384
|
-
}
|
|
2385
|
-
]
|
|
2386
|
-
},
|
|
2387
|
-
"@nest": {
|
|
2388
|
-
anyOf: [
|
|
2389
|
-
{
|
|
2390
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
2391
|
-
},
|
|
2392
|
-
{
|
|
2393
|
-
type: "array",
|
|
2394
|
-
items: false,
|
|
2395
|
-
prefixItems: [
|
|
2396
|
-
{
|
|
2397
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
2398
|
-
}
|
|
2399
|
-
]
|
|
2400
|
-
}
|
|
2401
|
-
]
|
|
2402
|
-
},
|
|
2403
|
-
"@type": {
|
|
2404
|
-
$ref: "https://schema.twindev.org/w3c-odrl/PolicyType",
|
|
2405
|
-
description: "The type of policy. Must be one of: \"Set\", \"Offer\", \"Agreement\""
|
|
2406
|
-
},
|
|
2407
|
-
"@reverse": {
|
|
2408
|
-
type: "object",
|
|
2409
|
-
additionalProperties: {
|
|
2410
|
-
type: "string"
|
|
2411
|
-
}
|
|
2412
|
-
},
|
|
2413
|
-
"@index": {
|
|
2414
|
-
type: "string"
|
|
2415
|
-
},
|
|
2416
|
-
uid: {
|
|
2417
|
-
type: "string",
|
|
2418
|
-
description: "The unique identifier for the policy. Must be an IRI."
|
|
2419
|
-
},
|
|
2420
|
-
profile: {
|
|
2421
|
-
anyOf: [
|
|
2422
|
-
{
|
|
2423
|
-
type: "string"
|
|
2424
|
-
},
|
|
2425
|
-
{
|
|
2426
|
-
type: "array",
|
|
2427
|
-
items: false,
|
|
2428
|
-
prefixItems: [
|
|
2429
|
-
{
|
|
2430
|
-
type: "string"
|
|
2431
|
-
}
|
|
2432
|
-
]
|
|
2433
|
-
}
|
|
2434
|
-
],
|
|
2435
|
-
description: "The profile(s) this policy conforms to. IRIs identifying the ODRL Profile(s)."
|
|
2436
|
-
},
|
|
2437
|
-
assigner: {
|
|
2438
|
-
anyOf: [
|
|
2439
|
-
{
|
|
2440
|
-
type: "string"
|
|
2441
|
-
},
|
|
2442
|
-
{
|
|
2443
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
2444
|
-
}
|
|
2445
|
-
],
|
|
2446
|
-
description: "The assigner of the policy. Applies to all rules unless overridden at rule level."
|
|
2447
|
-
},
|
|
2448
|
-
assignee: {
|
|
2449
|
-
anyOf: [
|
|
2450
|
-
{
|
|
2451
|
-
type: "string"
|
|
2452
|
-
},
|
|
2453
|
-
{
|
|
2454
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
2455
|
-
}
|
|
2456
|
-
],
|
|
2457
|
-
description: "The assignee of the policy. Applies to all rules unless overridden at rule level."
|
|
2458
|
-
},
|
|
2459
|
-
target: {
|
|
2460
|
-
anyOf: [
|
|
2461
|
-
{
|
|
2462
|
-
type: "string"
|
|
2463
|
-
},
|
|
2464
|
-
{
|
|
2465
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAsset"
|
|
2466
|
-
},
|
|
2467
|
-
{
|
|
2468
|
-
type: "array",
|
|
2469
|
-
items: false,
|
|
2470
|
-
prefixItems: [
|
|
2471
|
-
{
|
|
2472
|
-
anyOf: [
|
|
2473
|
-
{
|
|
2474
|
-
type: "string"
|
|
2475
|
-
},
|
|
2476
|
-
{
|
|
2477
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAsset"
|
|
2478
|
-
}
|
|
2479
|
-
]
|
|
2480
|
-
}
|
|
2481
|
-
]
|
|
2482
|
-
}
|
|
2483
|
-
],
|
|
2484
|
-
description: "The target asset for the rule."
|
|
2485
|
-
},
|
|
2486
|
-
action: {
|
|
2487
|
-
anyOf: [
|
|
2488
|
-
{
|
|
2489
|
-
$ref: "https://schema.twindev.org/w3c-odrl/ActionType"
|
|
2490
|
-
},
|
|
2491
|
-
{
|
|
2492
|
-
type: "string"
|
|
2493
|
-
},
|
|
2494
|
-
{
|
|
2495
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAction"
|
|
2496
|
-
},
|
|
2497
|
-
{
|
|
2498
|
-
type: "array",
|
|
2499
|
-
items: false,
|
|
2500
|
-
prefixItems: [
|
|
2501
|
-
{
|
|
2502
|
-
anyOf: [
|
|
2503
|
-
{
|
|
2504
|
-
$ref: "https://schema.twindev.org/w3c-odrl/ActionType"
|
|
2505
|
-
},
|
|
2506
|
-
{
|
|
2507
|
-
type: "string"
|
|
2508
|
-
},
|
|
2509
|
-
{
|
|
2510
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAction"
|
|
2511
|
-
}
|
|
2512
|
-
]
|
|
2513
|
-
}
|
|
2514
|
-
]
|
|
2515
|
-
}
|
|
2516
|
-
],
|
|
2517
|
-
description: "The action associated with the rule."
|
|
2518
|
-
},
|
|
2519
|
-
inheritFrom: {
|
|
2520
|
-
anyOf: [
|
|
2521
|
-
{
|
|
2522
|
-
type: "string"
|
|
2523
|
-
},
|
|
2524
|
-
{
|
|
2525
|
-
type: "array",
|
|
2526
|
-
items: false,
|
|
2527
|
-
prefixItems: [
|
|
2528
|
-
{
|
|
2529
|
-
type: "string"
|
|
2530
|
-
}
|
|
2531
|
-
]
|
|
2532
|
-
}
|
|
2533
|
-
],
|
|
2534
|
-
description: "The parent policy(ies) this policy inherits from. IRIs identifying the parent Policy(ies)."
|
|
2535
|
-
},
|
|
2536
|
-
conflict: {
|
|
2537
|
-
$ref: "https://schema.twindev.org/w3c-odrl/ConflictStrategyType",
|
|
2538
|
-
description: "The conflict resolution strategy.\n- perm: Permissions override Prohibitions\n- prohibit: Prohibitions override Permissions\n- invalid: Policy is void if conflicts exist (default)"
|
|
2539
|
-
},
|
|
2540
|
-
permission: {
|
|
2541
|
-
type: "array",
|
|
2542
|
-
items: false,
|
|
2543
|
-
description: "The permissions in the policy. At least one of permission, prohibition, or obligation must be present.",
|
|
2544
|
-
prefixItems: [
|
|
2545
|
-
{
|
|
2546
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlPermission"
|
|
2547
|
-
}
|
|
2548
|
-
]
|
|
2549
|
-
},
|
|
2550
|
-
prohibition: {
|
|
2551
|
-
type: "array",
|
|
2552
|
-
items: false,
|
|
2553
|
-
description: "The prohibitions in the policy. At least one of permission, prohibition, or obligation must be present.",
|
|
2554
|
-
prefixItems: [
|
|
2555
|
-
{
|
|
2556
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlProhibition"
|
|
2557
|
-
}
|
|
2558
|
-
]
|
|
2559
|
-
},
|
|
2560
|
-
obligation: {
|
|
2561
|
-
type: "array",
|
|
2562
|
-
items: false,
|
|
2563
|
-
description: "The obligations in the policy. At least one of permission, prohibition, or obligation must be present.",
|
|
2564
|
-
prefixItems: [
|
|
2565
|
-
{
|
|
2566
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlDuty"
|
|
2567
|
-
}
|
|
2568
|
-
]
|
|
2569
|
-
}
|
|
2570
|
-
};
|
|
2571
|
-
var required$1 = [
|
|
2572
|
-
"@context",
|
|
2573
|
-
"@type",
|
|
2574
|
-
"uid"
|
|
2575
|
-
];
|
|
2576
|
-
var additionalProperties$3 = {
|
|
2577
|
-
anyOf: [
|
|
2578
|
-
{
|
|
2579
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
2580
|
-
},
|
|
2581
|
-
{
|
|
2582
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
2583
|
-
},
|
|
2584
|
-
{
|
|
2585
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
2586
|
-
},
|
|
2587
|
-
{
|
|
2588
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
2589
|
-
},
|
|
2590
|
-
{
|
|
2591
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
2592
|
-
},
|
|
2593
|
-
{
|
|
2594
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
2595
|
-
},
|
|
2596
|
-
{
|
|
2597
|
-
type: "array"
|
|
2598
|
-
}
|
|
2599
|
-
]
|
|
2600
|
-
};
|
|
2601
|
-
var OdrlPolicySchema = {
|
|
2602
|
-
$schema: $schema$3,
|
|
2603
|
-
$id: $id$3,
|
|
2604
|
-
description: description$3,
|
|
2605
|
-
type: type$3,
|
|
2606
|
-
properties: properties$3,
|
|
2607
|
-
required: required$1,
|
|
2608
|
-
additionalProperties: additionalProperties$3
|
|
2609
|
-
};
|
|
2610
|
-
|
|
2611
|
-
var $schema$2 = "https://json-schema.org/draft/2020-12/schema";
|
|
2612
|
-
var $id$2 = "https://schema.twindev.org/w3c-odrl/OdrlProhibition";
|
|
2613
|
-
var description$2 = "Interface for Prohibition Rules. https://www.w3.org/TR/odrl-model/#prohibition";
|
|
2614
|
-
var type$2 = "object";
|
|
2615
|
-
var properties$2 = {
|
|
2616
|
-
"@context": {
|
|
2617
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
|
|
2618
|
-
},
|
|
2619
|
-
"@id": {
|
|
2620
|
-
anyOf: [
|
|
2621
|
-
{
|
|
2622
|
-
type: "string"
|
|
2623
|
-
},
|
|
2624
|
-
{
|
|
2625
|
-
type: "array",
|
|
2626
|
-
items: false,
|
|
2627
|
-
prefixItems: [
|
|
2628
|
-
{
|
|
2629
|
-
type: "string"
|
|
2630
|
-
}
|
|
2631
|
-
]
|
|
2632
|
-
}
|
|
2633
|
-
]
|
|
2634
|
-
},
|
|
2635
|
-
"@included": {
|
|
2636
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
2637
|
-
},
|
|
2638
|
-
"@graph": {
|
|
2639
|
-
anyOf: [
|
|
2640
|
-
{
|
|
2641
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
2642
|
-
},
|
|
2643
|
-
{
|
|
2644
|
-
type: "array",
|
|
2645
|
-
items: false,
|
|
2646
|
-
prefixItems: [
|
|
2647
|
-
{
|
|
2648
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
2649
|
-
}
|
|
2650
|
-
]
|
|
2651
|
-
}
|
|
2652
|
-
]
|
|
2653
|
-
},
|
|
2654
|
-
"@nest": {
|
|
2655
|
-
anyOf: [
|
|
2656
|
-
{
|
|
2657
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
2658
|
-
},
|
|
2659
|
-
{
|
|
2660
|
-
type: "array",
|
|
2661
|
-
items: false,
|
|
2662
|
-
prefixItems: [
|
|
2663
|
-
{
|
|
2664
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
2665
|
-
}
|
|
2666
|
-
]
|
|
2667
|
-
}
|
|
2668
|
-
]
|
|
2669
|
-
},
|
|
2670
|
-
"@type": {
|
|
2671
|
-
anyOf: [
|
|
2672
|
-
{
|
|
2673
|
-
type: "string"
|
|
2674
|
-
},
|
|
2675
|
-
{
|
|
2676
|
-
type: "array",
|
|
2677
|
-
items: false,
|
|
2678
|
-
prefixItems: [
|
|
2679
|
-
{
|
|
2680
|
-
type: "string"
|
|
2681
|
-
}
|
|
2682
|
-
]
|
|
2683
|
-
}
|
|
2684
|
-
]
|
|
2685
|
-
},
|
|
2686
|
-
"@reverse": {
|
|
2687
|
-
type: "object",
|
|
2688
|
-
additionalProperties: {
|
|
2689
|
-
type: "string"
|
|
2690
|
-
}
|
|
2691
|
-
},
|
|
2692
|
-
"@index": {
|
|
2693
|
-
type: "string"
|
|
2694
|
-
},
|
|
2695
|
-
uid: {
|
|
2696
|
-
type: "string",
|
|
2697
|
-
description: "Optional unique identifier for the rule."
|
|
2698
|
-
},
|
|
2699
|
-
action: {
|
|
2700
|
-
anyOf: [
|
|
2701
|
-
{
|
|
2702
|
-
$ref: "https://schema.twindev.org/w3c-odrl/ActionType"
|
|
2703
|
-
},
|
|
2704
|
-
{
|
|
2705
|
-
type: "string"
|
|
2706
|
-
},
|
|
2707
|
-
{
|
|
2708
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAction"
|
|
2709
|
-
},
|
|
2710
|
-
{
|
|
2711
|
-
type: "array",
|
|
2712
|
-
items: false,
|
|
2713
|
-
prefixItems: [
|
|
2714
|
-
{
|
|
2715
|
-
anyOf: [
|
|
2716
|
-
{
|
|
2717
|
-
$ref: "https://schema.twindev.org/w3c-odrl/ActionType"
|
|
2718
|
-
},
|
|
2719
|
-
{
|
|
2720
|
-
type: "string"
|
|
2721
|
-
},
|
|
2722
|
-
{
|
|
2723
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAction"
|
|
2724
|
-
}
|
|
2725
|
-
]
|
|
2726
|
-
}
|
|
2727
|
-
]
|
|
2728
|
-
}
|
|
2729
|
-
],
|
|
2730
|
-
description: "The action associated with the rule."
|
|
2731
|
-
},
|
|
2732
|
-
target: {
|
|
2733
|
-
anyOf: [
|
|
2734
|
-
{
|
|
2735
|
-
type: "string"
|
|
2736
|
-
},
|
|
2737
|
-
{
|
|
2738
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAsset"
|
|
2739
|
-
},
|
|
2740
|
-
{
|
|
2741
|
-
type: "array",
|
|
2742
|
-
items: false,
|
|
2743
|
-
prefixItems: [
|
|
2744
|
-
{
|
|
2745
|
-
anyOf: [
|
|
2746
|
-
{
|
|
2747
|
-
type: "string"
|
|
2748
|
-
},
|
|
2749
|
-
{
|
|
2750
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAsset"
|
|
2751
|
-
}
|
|
2752
|
-
]
|
|
2753
|
-
}
|
|
2754
|
-
]
|
|
2755
|
-
}
|
|
2756
|
-
],
|
|
2757
|
-
description: "The target asset for the rule."
|
|
2758
|
-
},
|
|
2759
|
-
assigner: {
|
|
2760
|
-
anyOf: [
|
|
2761
|
-
{
|
|
2762
|
-
type: "string"
|
|
2763
|
-
},
|
|
2764
|
-
{
|
|
2765
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
2766
|
-
}
|
|
2767
|
-
],
|
|
2768
|
-
description: "The assigner of the rule."
|
|
2769
|
-
},
|
|
2770
|
-
assignee: {
|
|
2771
|
-
anyOf: [
|
|
2772
|
-
{
|
|
2773
|
-
type: "string"
|
|
2774
|
-
},
|
|
2775
|
-
{
|
|
2776
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
2777
|
-
}
|
|
2778
|
-
],
|
|
2779
|
-
description: "The assignee of the rule."
|
|
2780
|
-
},
|
|
2781
|
-
constraint: {
|
|
2782
|
-
type: "array",
|
|
2783
|
-
items: false,
|
|
2784
|
-
description: "Constraints applied to the rule.",
|
|
2785
|
-
prefixItems: [
|
|
2786
|
-
{
|
|
2787
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlConstraint"
|
|
2788
|
-
}
|
|
2789
|
-
]
|
|
2790
|
-
},
|
|
2791
|
-
summary: {
|
|
2792
|
-
type: "string",
|
|
2793
|
-
description: "Additional relation sub-properties as defined in ODRL profiles. For example, 'summary' in profile \"http://example.com/odrl:profile:03\" indicates where the output should be stored."
|
|
2794
|
-
},
|
|
2795
|
-
remedy: {
|
|
2796
|
-
type: "array",
|
|
2797
|
-
items: false,
|
|
2798
|
-
description: "The remedies that must be fulfilled if prohibition is violated.",
|
|
2799
|
-
prefixItems: [
|
|
2800
|
-
{
|
|
2801
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlDuty"
|
|
2802
|
-
}
|
|
2803
|
-
]
|
|
2804
|
-
}
|
|
2805
|
-
};
|
|
2806
|
-
var additionalProperties$2 = {
|
|
2807
|
-
anyOf: [
|
|
2808
|
-
{
|
|
2809
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
2810
|
-
},
|
|
2811
|
-
{
|
|
2812
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
2813
|
-
},
|
|
2814
|
-
{
|
|
2815
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
2816
|
-
},
|
|
2817
|
-
{
|
|
2818
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
2819
|
-
},
|
|
2820
|
-
{
|
|
2821
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
2822
|
-
},
|
|
2823
|
-
{
|
|
2824
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
2825
|
-
},
|
|
2826
|
-
{
|
|
2827
|
-
type: "array"
|
|
2828
|
-
}
|
|
2829
|
-
]
|
|
2830
|
-
};
|
|
2831
|
-
var OdrlProhibitionSchema = {
|
|
2832
|
-
$schema: $schema$2,
|
|
2833
|
-
$id: $id$2,
|
|
2834
|
-
description: description$2,
|
|
2835
|
-
type: type$2,
|
|
2836
|
-
properties: properties$2,
|
|
2837
|
-
additionalProperties: additionalProperties$2
|
|
2838
|
-
};
|
|
2839
|
-
|
|
2840
|
-
var $schema$1 = "https://json-schema.org/draft/2020-12/schema";
|
|
2841
|
-
var $id$1 = "https://schema.twindev.org/w3c-odrl/OdrlRule";
|
|
2842
|
-
var description$1 = "Base interface for ODRL Rules. https://www.w3.org/TR/odrl-model/#rule";
|
|
2843
|
-
var type$1 = "object";
|
|
2844
|
-
var properties$1 = {
|
|
2845
|
-
"@context": {
|
|
2846
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
|
|
2847
|
-
},
|
|
2848
|
-
"@id": {
|
|
2849
|
-
anyOf: [
|
|
2850
|
-
{
|
|
2851
|
-
type: "string"
|
|
2852
|
-
},
|
|
2853
|
-
{
|
|
2854
|
-
type: "array",
|
|
2855
|
-
items: false,
|
|
2856
|
-
prefixItems: [
|
|
2857
|
-
{
|
|
2858
|
-
type: "string"
|
|
2859
|
-
}
|
|
2860
|
-
]
|
|
2861
|
-
}
|
|
2862
|
-
]
|
|
2863
|
-
},
|
|
2864
|
-
"@included": {
|
|
2865
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
2866
|
-
},
|
|
2867
|
-
"@graph": {
|
|
2868
|
-
anyOf: [
|
|
2869
|
-
{
|
|
2870
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
2871
|
-
},
|
|
2872
|
-
{
|
|
2873
|
-
type: "array",
|
|
2874
|
-
items: false,
|
|
2875
|
-
prefixItems: [
|
|
2876
|
-
{
|
|
2877
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
2878
|
-
}
|
|
2879
|
-
]
|
|
2880
|
-
}
|
|
2881
|
-
]
|
|
2882
|
-
},
|
|
2883
|
-
"@nest": {
|
|
2884
|
-
anyOf: [
|
|
2885
|
-
{
|
|
2886
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
2887
|
-
},
|
|
2888
|
-
{
|
|
2889
|
-
type: "array",
|
|
2890
|
-
items: false,
|
|
2891
|
-
prefixItems: [
|
|
2892
|
-
{
|
|
2893
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
2894
|
-
}
|
|
2895
|
-
]
|
|
2896
|
-
}
|
|
2897
|
-
]
|
|
2898
|
-
},
|
|
2899
|
-
"@type": {
|
|
2900
|
-
anyOf: [
|
|
2901
|
-
{
|
|
2902
|
-
type: "string"
|
|
2903
|
-
},
|
|
2904
|
-
{
|
|
2905
|
-
type: "array",
|
|
2906
|
-
items: false,
|
|
2907
|
-
prefixItems: [
|
|
2908
|
-
{
|
|
2909
|
-
type: "string"
|
|
2910
|
-
}
|
|
2911
|
-
]
|
|
2912
|
-
}
|
|
2913
|
-
]
|
|
2914
|
-
},
|
|
2915
|
-
"@reverse": {
|
|
2916
|
-
type: "object",
|
|
2917
|
-
additionalProperties: {
|
|
2918
|
-
type: "string"
|
|
2919
|
-
}
|
|
2920
|
-
},
|
|
2921
|
-
"@index": {
|
|
2922
|
-
type: "string"
|
|
2923
|
-
},
|
|
2924
|
-
uid: {
|
|
2925
|
-
type: "string",
|
|
2926
|
-
description: "Optional unique identifier for the rule."
|
|
2927
|
-
},
|
|
2928
|
-
action: {
|
|
2929
|
-
anyOf: [
|
|
2930
|
-
{
|
|
2931
|
-
$ref: "https://schema.twindev.org/w3c-odrl/ActionType"
|
|
2932
|
-
},
|
|
2933
|
-
{
|
|
2934
|
-
type: "string"
|
|
2935
|
-
},
|
|
2936
|
-
{
|
|
2937
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAction"
|
|
2938
|
-
},
|
|
2939
|
-
{
|
|
2940
|
-
type: "array",
|
|
2941
|
-
items: false,
|
|
2942
|
-
prefixItems: [
|
|
2943
|
-
{
|
|
2944
|
-
anyOf: [
|
|
2945
|
-
{
|
|
2946
|
-
$ref: "https://schema.twindev.org/w3c-odrl/ActionType"
|
|
2947
|
-
},
|
|
2948
|
-
{
|
|
2949
|
-
type: "string"
|
|
2950
|
-
},
|
|
2951
|
-
{
|
|
2952
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAction"
|
|
2953
|
-
}
|
|
2954
|
-
]
|
|
2955
|
-
}
|
|
2956
|
-
]
|
|
2957
|
-
}
|
|
2958
|
-
],
|
|
2959
|
-
description: "The action associated with the rule."
|
|
2960
|
-
},
|
|
2961
|
-
target: {
|
|
2962
|
-
anyOf: [
|
|
2963
|
-
{
|
|
2964
|
-
type: "string"
|
|
2965
|
-
},
|
|
2966
|
-
{
|
|
2967
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAsset"
|
|
2968
|
-
},
|
|
2969
|
-
{
|
|
2970
|
-
type: "array",
|
|
2971
|
-
items: false,
|
|
2972
|
-
prefixItems: [
|
|
2973
|
-
{
|
|
2974
|
-
anyOf: [
|
|
2975
|
-
{
|
|
2976
|
-
type: "string"
|
|
2977
|
-
},
|
|
2978
|
-
{
|
|
2979
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAsset"
|
|
2980
|
-
}
|
|
2981
|
-
]
|
|
2982
|
-
}
|
|
2983
|
-
]
|
|
2984
|
-
}
|
|
2985
|
-
],
|
|
2986
|
-
description: "The target asset for the rule."
|
|
2987
|
-
},
|
|
2988
|
-
assigner: {
|
|
2989
|
-
anyOf: [
|
|
2990
|
-
{
|
|
2991
|
-
type: "string"
|
|
2992
|
-
},
|
|
2993
|
-
{
|
|
2994
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
2995
|
-
}
|
|
2996
|
-
],
|
|
2997
|
-
description: "The assigner of the rule."
|
|
2998
|
-
},
|
|
2999
|
-
assignee: {
|
|
3000
|
-
anyOf: [
|
|
3001
|
-
{
|
|
3002
|
-
type: "string"
|
|
3003
|
-
},
|
|
3004
|
-
{
|
|
3005
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
3006
|
-
}
|
|
3007
|
-
],
|
|
3008
|
-
description: "The assignee of the rule."
|
|
3009
|
-
},
|
|
3010
|
-
constraint: {
|
|
3011
|
-
type: "array",
|
|
3012
|
-
items: false,
|
|
3013
|
-
description: "Constraints applied to the rule.",
|
|
3014
|
-
prefixItems: [
|
|
3015
|
-
{
|
|
3016
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlConstraint"
|
|
3017
|
-
}
|
|
3018
|
-
]
|
|
3019
|
-
},
|
|
3020
|
-
summary: {
|
|
3021
|
-
type: "string",
|
|
3022
|
-
description: "Additional relation sub-properties as defined in ODRL profiles. For example, 'summary' in profile \"http://example.com/odrl:profile:03\" indicates where the output should be stored."
|
|
3023
|
-
}
|
|
3024
|
-
};
|
|
3025
|
-
var additionalProperties$1 = {
|
|
3026
|
-
anyOf: [
|
|
3027
|
-
{
|
|
3028
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
3029
|
-
},
|
|
3030
|
-
{
|
|
3031
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
3032
|
-
},
|
|
3033
|
-
{
|
|
3034
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
3035
|
-
},
|
|
3036
|
-
{
|
|
3037
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
3038
|
-
},
|
|
3039
|
-
{
|
|
3040
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
3041
|
-
},
|
|
3042
|
-
{
|
|
3043
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
3044
|
-
},
|
|
3045
|
-
{
|
|
3046
|
-
type: "array"
|
|
3047
|
-
}
|
|
3048
|
-
]
|
|
3049
|
-
};
|
|
3050
|
-
var OdrlRuleSchema = {
|
|
3051
|
-
$schema: $schema$1,
|
|
3052
|
-
$id: $id$1,
|
|
3053
|
-
description: description$1,
|
|
3054
|
-
type: type$1,
|
|
3055
|
-
properties: properties$1,
|
|
3056
|
-
additionalProperties: additionalProperties$1
|
|
3057
|
-
};
|
|
3058
|
-
|
|
3059
|
-
var $schema = "https://json-schema.org/draft/2020-12/schema";
|
|
3060
|
-
var $id = "https://schema.twindev.org/w3c-odrl/OdrlSet";
|
|
3061
|
-
var description = "Interface representing an ODRL Set. A Set is a basic policy type with no specific party requirements. https://www.w3.org/TR/odrl-model/#policy-set";
|
|
3062
|
-
var type = "object";
|
|
3063
|
-
var properties = {
|
|
3064
|
-
"@context": {
|
|
3065
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlContextType",
|
|
3066
|
-
description: "The context for the policy. Must include \"https://www.w3.org/ns/odrl.jsonld\""
|
|
3067
|
-
},
|
|
3068
|
-
"@id": {
|
|
3069
|
-
anyOf: [
|
|
3070
|
-
{
|
|
3071
|
-
type: "string"
|
|
3072
|
-
},
|
|
3073
|
-
{
|
|
3074
|
-
type: "array",
|
|
3075
|
-
items: false,
|
|
3076
|
-
prefixItems: [
|
|
3077
|
-
{
|
|
3078
|
-
type: "string"
|
|
3079
|
-
}
|
|
3080
|
-
]
|
|
3081
|
-
}
|
|
3082
|
-
]
|
|
3083
|
-
},
|
|
3084
|
-
"@included": {
|
|
3085
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
3086
|
-
},
|
|
3087
|
-
"@graph": {
|
|
3088
|
-
anyOf: [
|
|
3089
|
-
{
|
|
3090
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
3091
|
-
},
|
|
3092
|
-
{
|
|
3093
|
-
type: "array",
|
|
3094
|
-
items: false,
|
|
3095
|
-
prefixItems: [
|
|
3096
|
-
{
|
|
3097
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
3098
|
-
}
|
|
3099
|
-
]
|
|
3100
|
-
}
|
|
3101
|
-
]
|
|
3102
|
-
},
|
|
3103
|
-
"@nest": {
|
|
3104
|
-
anyOf: [
|
|
3105
|
-
{
|
|
3106
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
3107
|
-
},
|
|
3108
|
-
{
|
|
3109
|
-
type: "array",
|
|
3110
|
-
items: false,
|
|
3111
|
-
prefixItems: [
|
|
3112
|
-
{
|
|
3113
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
3114
|
-
}
|
|
3115
|
-
]
|
|
3116
|
-
}
|
|
3117
|
-
]
|
|
3118
|
-
},
|
|
3119
|
-
"@type": {
|
|
3120
|
-
type: "string",
|
|
3121
|
-
"const": "Set",
|
|
3122
|
-
description: "The type must be \"Set\"."
|
|
3123
|
-
},
|
|
3124
|
-
"@reverse": {
|
|
3125
|
-
type: "object",
|
|
3126
|
-
additionalProperties: {
|
|
3127
|
-
type: "string"
|
|
3128
|
-
}
|
|
3129
|
-
},
|
|
3130
|
-
"@index": {
|
|
3131
|
-
type: "string"
|
|
3132
|
-
},
|
|
3133
|
-
uid: {
|
|
3134
|
-
type: "string",
|
|
3135
|
-
description: "The unique identifier for the policy. Must be an IRI."
|
|
3136
|
-
},
|
|
3137
|
-
profile: {
|
|
3138
|
-
anyOf: [
|
|
3139
|
-
{
|
|
3140
|
-
type: "string"
|
|
3141
|
-
},
|
|
3142
|
-
{
|
|
3143
|
-
type: "array",
|
|
3144
|
-
items: false,
|
|
3145
|
-
prefixItems: [
|
|
3146
|
-
{
|
|
3147
|
-
type: "string"
|
|
3148
|
-
}
|
|
3149
|
-
]
|
|
3150
|
-
}
|
|
3151
|
-
],
|
|
3152
|
-
description: "The profile(s) this policy conforms to. IRIs identifying the ODRL Profile(s)."
|
|
3153
|
-
},
|
|
3154
|
-
assigner: {
|
|
3155
|
-
anyOf: [
|
|
3156
|
-
{
|
|
3157
|
-
type: "string"
|
|
3158
|
-
},
|
|
3159
|
-
{
|
|
3160
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
3161
|
-
}
|
|
3162
|
-
],
|
|
3163
|
-
description: "The assigner of the policy. Applies to all rules unless overridden at rule level."
|
|
3164
|
-
},
|
|
3165
|
-
assignee: {
|
|
3166
|
-
anyOf: [
|
|
3167
|
-
{
|
|
3168
|
-
type: "string"
|
|
3169
|
-
},
|
|
3170
|
-
{
|
|
3171
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
3172
|
-
}
|
|
3173
|
-
],
|
|
3174
|
-
description: "The assignee of the policy. Applies to all rules unless overridden at rule level."
|
|
3175
|
-
},
|
|
3176
|
-
target: {
|
|
3177
|
-
anyOf: [
|
|
3178
|
-
{
|
|
3179
|
-
type: "string"
|
|
3180
|
-
},
|
|
3181
|
-
{
|
|
3182
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAsset"
|
|
3183
|
-
},
|
|
3184
|
-
{
|
|
3185
|
-
type: "array",
|
|
3186
|
-
items: false,
|
|
3187
|
-
prefixItems: [
|
|
3188
|
-
{
|
|
3189
|
-
anyOf: [
|
|
3190
|
-
{
|
|
3191
|
-
type: "string"
|
|
3192
|
-
},
|
|
3193
|
-
{
|
|
3194
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAsset"
|
|
3195
|
-
}
|
|
3196
|
-
]
|
|
3197
|
-
}
|
|
3198
|
-
]
|
|
3199
|
-
}
|
|
3200
|
-
],
|
|
3201
|
-
description: "The target asset for the rule."
|
|
3202
|
-
},
|
|
3203
|
-
action: {
|
|
3204
|
-
anyOf: [
|
|
3205
|
-
{
|
|
3206
|
-
$ref: "https://schema.twindev.org/w3c-odrl/ActionType"
|
|
3207
|
-
},
|
|
3208
|
-
{
|
|
3209
|
-
type: "string"
|
|
3210
|
-
},
|
|
3211
|
-
{
|
|
3212
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAction"
|
|
3213
|
-
},
|
|
3214
|
-
{
|
|
3215
|
-
type: "array",
|
|
3216
|
-
items: false,
|
|
3217
|
-
prefixItems: [
|
|
3218
|
-
{
|
|
3219
|
-
anyOf: [
|
|
3220
|
-
{
|
|
3221
|
-
$ref: "https://schema.twindev.org/w3c-odrl/ActionType"
|
|
3222
|
-
},
|
|
3223
|
-
{
|
|
3224
|
-
type: "string"
|
|
3225
|
-
},
|
|
3226
|
-
{
|
|
3227
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlAction"
|
|
3228
|
-
}
|
|
3229
|
-
]
|
|
3230
|
-
}
|
|
3231
|
-
]
|
|
3232
|
-
}
|
|
3233
|
-
],
|
|
3234
|
-
description: "The action associated with the rule."
|
|
3235
|
-
},
|
|
3236
|
-
inheritFrom: {
|
|
3237
|
-
anyOf: [
|
|
3238
|
-
{
|
|
3239
|
-
type: "string"
|
|
3240
|
-
},
|
|
3241
|
-
{
|
|
3242
|
-
type: "array",
|
|
3243
|
-
items: false,
|
|
3244
|
-
prefixItems: [
|
|
3245
|
-
{
|
|
3246
|
-
type: "string"
|
|
3247
|
-
}
|
|
3248
|
-
]
|
|
3249
|
-
}
|
|
3250
|
-
],
|
|
3251
|
-
description: "The parent policy(ies) this policy inherits from. IRIs identifying the parent Policy(ies)."
|
|
3252
|
-
},
|
|
3253
|
-
conflict: {
|
|
3254
|
-
$ref: "https://schema.twindev.org/w3c-odrl/ConflictStrategyType",
|
|
3255
|
-
description: "The conflict resolution strategy.\n- perm: Permissions override Prohibitions\n- prohibit: Prohibitions override Permissions\n- invalid: Policy is void if conflicts exist (default)"
|
|
3256
|
-
},
|
|
3257
|
-
permission: {
|
|
3258
|
-
type: "array",
|
|
3259
|
-
items: false,
|
|
3260
|
-
description: "The permissions in the policy. At least one of permission, prohibition, or obligation must be present.",
|
|
3261
|
-
prefixItems: [
|
|
3262
|
-
{
|
|
3263
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlPermission"
|
|
3264
|
-
}
|
|
3265
|
-
]
|
|
3266
|
-
},
|
|
3267
|
-
prohibition: {
|
|
3268
|
-
type: "array",
|
|
3269
|
-
items: false,
|
|
3270
|
-
description: "The prohibitions in the policy. At least one of permission, prohibition, or obligation must be present.",
|
|
3271
|
-
prefixItems: [
|
|
3272
|
-
{
|
|
3273
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlProhibition"
|
|
3274
|
-
}
|
|
3275
|
-
]
|
|
3276
|
-
},
|
|
3277
|
-
obligation: {
|
|
3278
|
-
type: "array",
|
|
3279
|
-
items: false,
|
|
3280
|
-
description: "The obligations in the policy. At least one of permission, prohibition, or obligation must be present.",
|
|
3281
|
-
prefixItems: [
|
|
3282
|
-
{
|
|
3283
|
-
$ref: "https://schema.twindev.org/w3c-odrl/OdrlDuty"
|
|
3284
|
-
}
|
|
3285
|
-
]
|
|
3286
|
-
}
|
|
3287
|
-
};
|
|
3288
|
-
var required = [
|
|
3289
|
-
"@context",
|
|
3290
|
-
"@type",
|
|
3291
|
-
"uid"
|
|
3292
|
-
];
|
|
3293
|
-
var additionalProperties = {
|
|
3294
|
-
anyOf: [
|
|
3295
|
-
{
|
|
3296
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
3297
|
-
},
|
|
3298
|
-
{
|
|
3299
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
3300
|
-
},
|
|
3301
|
-
{
|
|
3302
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
3303
|
-
},
|
|
3304
|
-
{
|
|
3305
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
3306
|
-
},
|
|
3307
|
-
{
|
|
3308
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
3309
|
-
},
|
|
3310
|
-
{
|
|
3311
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
3312
|
-
},
|
|
3313
|
-
{
|
|
3314
|
-
type: "array"
|
|
3315
|
-
}
|
|
3316
|
-
]
|
|
3317
|
-
};
|
|
3318
|
-
var OdrlSetSchema = {
|
|
3319
|
-
$schema: $schema,
|
|
3320
|
-
$id: $id,
|
|
3321
|
-
description: description,
|
|
3322
|
-
type: type,
|
|
3323
|
-
properties: properties,
|
|
3324
|
-
required: required,
|
|
3325
|
-
additionalProperties: additionalProperties
|
|
3326
|
-
};
|
|
3327
|
-
|
|
3328
|
-
// Copyright 2024 IOTA Stiftung.
|
|
3329
|
-
// SPDX-License-Identifier: Apache-2.0.
|
|
3330
|
-
/**
|
|
3331
|
-
* Handle all the data types for ODRL.
|
|
3332
|
-
*/
|
|
3333
|
-
class OdrlDataTypes {
|
|
3334
|
-
/**
|
|
3335
|
-
* Register the JSON-LD Redirects.
|
|
3336
|
-
*/
|
|
3337
|
-
static registerRedirects() {
|
|
3338
|
-
dataJsonLd.JsonLdProcessor.addRedirect(/https?:\/\/www\.w3\.org\/ns\/odrl\/?/, OdrlContexts.ContextRedirect);
|
|
3339
|
-
}
|
|
3340
|
-
/**
|
|
3341
|
-
* Register all the data types.
|
|
3342
|
-
*/
|
|
3343
|
-
static registerTypes() {
|
|
3344
|
-
dataCore.DataTypeHandlerFactory.register(`${OdrlContexts.ContextRoot}${OdrlTypes.Policy}`, () => ({
|
|
3345
|
-
context: OdrlContexts.ContextRoot,
|
|
3346
|
-
type: OdrlTypes.Policy,
|
|
3347
|
-
jsonSchema: async () => OdrlPolicySchema
|
|
3348
|
-
}));
|
|
3349
|
-
dataCore.DataTypeHandlerFactory.register(`${OdrlContexts.ContextRoot}${OdrlTypes.Asset}`, () => ({
|
|
3350
|
-
context: OdrlContexts.ContextRoot,
|
|
3351
|
-
type: OdrlTypes.Asset,
|
|
3352
|
-
jsonSchema: async () => OdrlAssetSchema
|
|
3353
|
-
}));
|
|
3354
|
-
dataCore.DataTypeHandlerFactory.register(`${OdrlContexts.ContextRoot}${OdrlTypes.AssetCollection}`, () => ({
|
|
3355
|
-
context: OdrlContexts.ContextRoot,
|
|
3356
|
-
type: OdrlTypes.AssetCollection,
|
|
3357
|
-
jsonSchema: async () => OdrlAssetCollectionSchema
|
|
3358
|
-
}));
|
|
3359
|
-
dataCore.DataTypeHandlerFactory.register(`${OdrlContexts.ContextRoot}${OdrlTypes.Party}`, () => ({
|
|
3360
|
-
context: OdrlContexts.ContextRoot,
|
|
3361
|
-
type: OdrlTypes.Party,
|
|
3362
|
-
jsonSchema: async () => OdrlPartySchema
|
|
3363
|
-
}));
|
|
3364
|
-
dataCore.DataTypeHandlerFactory.register(`${OdrlContexts.ContextRoot}${OdrlTypes.PartyCollection}`, () => ({
|
|
3365
|
-
context: OdrlContexts.ContextRoot,
|
|
3366
|
-
type: OdrlTypes.PartyCollection,
|
|
3367
|
-
jsonSchema: async () => OdrlPartyCollectionSchema
|
|
3368
|
-
}));
|
|
3369
|
-
dataCore.DataTypeHandlerFactory.register(`${OdrlContexts.ContextRoot}${OdrlTypes.Action}`, () => ({
|
|
3370
|
-
context: OdrlContexts.ContextRoot,
|
|
3371
|
-
type: OdrlTypes.Action,
|
|
3372
|
-
jsonSchema: async () => OdrlActionSchema
|
|
3373
|
-
}));
|
|
3374
|
-
dataCore.DataTypeHandlerFactory.register(`${OdrlContexts.ContextRoot}${OdrlTypes.Permission}`, () => ({
|
|
3375
|
-
context: OdrlContexts.ContextRoot,
|
|
3376
|
-
type: OdrlTypes.Permission,
|
|
3377
|
-
jsonSchema: async () => OdrlPermissionSchema
|
|
3378
|
-
}));
|
|
3379
|
-
dataCore.DataTypeHandlerFactory.register(`${OdrlContexts.ContextRoot}${OdrlTypes.Prohibition}`, () => ({
|
|
3380
|
-
context: OdrlContexts.ContextRoot,
|
|
3381
|
-
type: OdrlTypes.Prohibition,
|
|
3382
|
-
jsonSchema: async () => OdrlProhibitionSchema
|
|
3383
|
-
}));
|
|
3384
|
-
dataCore.DataTypeHandlerFactory.register(`${OdrlContexts.ContextRoot}${OdrlTypes.Duty}`, () => ({
|
|
3385
|
-
context: OdrlContexts.ContextRoot,
|
|
3386
|
-
type: OdrlTypes.Duty,
|
|
3387
|
-
jsonSchema: async () => OdrlDutySchema
|
|
3388
|
-
}));
|
|
3389
|
-
dataCore.DataTypeHandlerFactory.register(`${OdrlContexts.ContextRoot}${OdrlTypes.Constraint}`, () => ({
|
|
3390
|
-
context: OdrlContexts.ContextRoot,
|
|
3391
|
-
type: OdrlTypes.Constraint,
|
|
3392
|
-
jsonSchema: async () => OdrlConstraintSchema
|
|
3393
|
-
}));
|
|
3394
|
-
dataCore.DataTypeHandlerFactory.register(`${OdrlContexts.ContextRoot}${OdrlTypes.LogicalConstraint}`, () => ({
|
|
3395
|
-
context: OdrlContexts.ContextRoot,
|
|
3396
|
-
type: OdrlTypes.LogicalConstraint,
|
|
3397
|
-
jsonSchema: async () => OdrlLogicalConstraintSchema
|
|
3398
|
-
}));
|
|
3399
|
-
dataCore.DataTypeHandlerFactory.register(`${OdrlContexts.ContextRoot}${OdrlTypes.Set}`, () => ({
|
|
3400
|
-
context: OdrlContexts.ContextRoot,
|
|
3401
|
-
type: OdrlTypes.Set,
|
|
3402
|
-
jsonSchema: async () => OdrlSetSchema
|
|
3403
|
-
}));
|
|
3404
|
-
dataCore.DataTypeHandlerFactory.register(`${OdrlContexts.ContextRoot}${OdrlTypes.Offer}`, () => ({
|
|
3405
|
-
context: OdrlContexts.ContextRoot,
|
|
3406
|
-
type: OdrlTypes.Offer,
|
|
3407
|
-
jsonSchema: async () => OdrlOfferSchema
|
|
3408
|
-
}));
|
|
3409
|
-
dataCore.DataTypeHandlerFactory.register(`${OdrlContexts.ContextRoot}${OdrlTypes.Agreement}`, () => ({
|
|
3410
|
-
context: OdrlContexts.ContextRoot,
|
|
3411
|
-
type: OdrlTypes.Agreement,
|
|
3412
|
-
jsonSchema: async () => OdrlAgreementSchema
|
|
3413
|
-
}));
|
|
3414
|
-
dataCore.DataTypeHandlerFactory.register(`${OdrlContexts.ContextRoot}${OdrlTypes.Rule}`, () => ({
|
|
3415
|
-
context: OdrlContexts.ContextRoot,
|
|
3416
|
-
type: OdrlTypes.Rule,
|
|
3417
|
-
jsonSchema: async () => OdrlRuleSchema
|
|
3418
|
-
}));
|
|
3419
|
-
dataCore.DataTypeHandlerFactory.register(`${OdrlContexts.ContextRoot}${OdrlTypes.ContextType}`, () => ({
|
|
3420
|
-
context: OdrlContexts.ContextRoot,
|
|
3421
|
-
type: OdrlTypes.ContextType,
|
|
3422
|
-
jsonSchema: async () => OdrlContextTypeSchema
|
|
3423
|
-
}));
|
|
3424
|
-
}
|
|
3425
|
-
}
|
|
3426
|
-
|
|
3427
|
-
// Copyright 2024 IOTA Stiftung.
|
|
3428
|
-
// SPDX-License-Identifier: Apache-2.0.
|
|
3429
|
-
/**
|
|
3430
|
-
* The types for ODRL Actions.
|
|
3431
|
-
* Simple action types (for direct string usage)
|
|
3432
|
-
*/
|
|
3433
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
3434
|
-
const ActionType = {
|
|
3435
|
-
// Core actions
|
|
3436
|
-
/**
|
|
3437
|
-
* The act of using an asset, covering any general usage where ownership does not change.
|
|
3438
|
-
* This is the parent term for most permissions and prohibitions.
|
|
3439
|
-
*/
|
|
3440
|
-
Use: "use",
|
|
3441
|
-
/**
|
|
3442
|
-
* The act of transferring the ownership of an asset in perpetuity to a third party.
|
|
3443
|
-
*/
|
|
3444
|
-
Transfer: "transfer",
|
|
3445
|
-
// Sub-actions of 'use'
|
|
3446
|
-
/**
|
|
3447
|
-
* The act of using an asset (or parts of it) as part of a composite collection.
|
|
3448
|
-
*/
|
|
3449
|
-
Aggregate: "aggregate",
|
|
3450
|
-
/**
|
|
3451
|
-
* The act of adding explanatory notations/commentaries to the asset.
|
|
3452
|
-
*/
|
|
3453
|
-
Annotate: "annotate",
|
|
3454
|
-
/**
|
|
3455
|
-
* The act of anonymising all or parts of the asset, for example, to remove identifying particulars.
|
|
3456
|
-
*/
|
|
3457
|
-
Anonymize: "anonymize",
|
|
3458
|
-
/**
|
|
3459
|
-
* The act of persistently storing the asset in a non-transient form.
|
|
3460
|
-
*/
|
|
3461
|
-
Archive: "archive",
|
|
3462
|
-
/**
|
|
3463
|
-
* The act of multiple concurrent use of the asset.
|
|
3464
|
-
*/
|
|
3465
|
-
ConcurrentUse: "concurrentUse",
|
|
3466
|
-
/**
|
|
3467
|
-
* The act of using the asset in a business environment where it may be traded for profit.
|
|
3468
|
-
*/
|
|
3469
|
-
Commercialize: "commercialize",
|
|
3470
|
-
/**
|
|
3471
|
-
* The act of making an exact reproduction of the asset. Also identified as `reproduce`.
|
|
3472
|
-
*/
|
|
3473
|
-
Copy: "copy",
|
|
3474
|
-
/**
|
|
3475
|
-
* The act of creating a new derivative asset from the original and editing or modifying it.
|
|
3476
|
-
*/
|
|
3477
|
-
Derive: "derive",
|
|
3478
|
-
/**
|
|
3479
|
-
* The act of producing a digital copy of an asset from its analogue form.
|
|
3480
|
-
*/
|
|
3481
|
-
Digitize: "digitize",
|
|
3482
|
-
/**
|
|
3483
|
-
* The act of making a transient visible rendering of the asset, such as displaying an image on a screen.
|
|
3484
|
-
* Also identified as `present` in earlier versions.
|
|
3485
|
-
*/
|
|
3486
|
-
Display: "display",
|
|
3487
|
-
/**
|
|
3488
|
-
* The act of publicly distributing, displaying, or performing the asset.
|
|
3489
|
-
*/
|
|
3490
|
-
Distribute: "distribute",
|
|
3491
|
-
/**
|
|
3492
|
-
* The act of executing the asset, such as running a program or application.
|
|
3493
|
-
*/
|
|
3494
|
-
Execute: "execute",
|
|
3495
|
-
/**
|
|
3496
|
-
* The act of extracting (replicating) unchanged parts of the asset for reuse.
|
|
3497
|
-
*/
|
|
3498
|
-
Extract: "extract",
|
|
3499
|
-
/**
|
|
3500
|
-
* The act of extracting unchanged character(s) from the asset.
|
|
3501
|
-
*/
|
|
3502
|
-
ExtractChar: "extractChar",
|
|
3503
|
-
/**
|
|
3504
|
-
* The act of extracting unchanged word(s) from the asset.
|
|
3505
|
-
*/
|
|
3506
|
-
ExtractWord: "extractWord",
|
|
3507
|
-
/**
|
|
3508
|
-
* The act of extracting unchanged page(s) from the asset.
|
|
3509
|
-
*/
|
|
3510
|
-
ExtractPage: "extractPage",
|
|
3511
|
-
/**
|
|
3512
|
-
* The act of recording the asset in an index, for example, a search engine database.
|
|
3513
|
-
*/
|
|
3514
|
-
Index: "index",
|
|
3515
|
-
/**
|
|
3516
|
-
* The act of loading the asset onto a storage device ready for operation.
|
|
3517
|
-
*/
|
|
3518
|
-
Install: "install",
|
|
3519
|
-
/**
|
|
3520
|
-
* The act of granting the use of the asset to third parties. Also identified as `sublicense` in earlier versions.
|
|
3521
|
-
*/
|
|
3522
|
-
License: "license",
|
|
3523
|
-
/**
|
|
3524
|
-
* The act of making the asset available to a third-party for a fixed period with exchange of value.
|
|
3525
|
-
*/
|
|
3526
|
-
Lease: "lease",
|
|
3527
|
-
/**
|
|
3528
|
-
* The act of making the asset available to a third-party for a fixed period without exchange of value.
|
|
3529
|
-
*/
|
|
3530
|
-
Lend: "lend",
|
|
3531
|
-
/**
|
|
3532
|
-
* The act of updating existing content of the asset without creating a new one.
|
|
3533
|
-
*/
|
|
3534
|
-
Modify: "modify",
|
|
3535
|
-
/**
|
|
3536
|
-
* The act of moving the asset from one digital location to another and deleting the original.
|
|
3537
|
-
*/
|
|
3538
|
-
Move: "move",
|
|
3539
|
-
/**
|
|
3540
|
-
* The act of rendering the asset into audio and/or video form.
|
|
3541
|
-
*/
|
|
3542
|
-
Play: "play",
|
|
3543
|
-
/**
|
|
3544
|
-
* The act of providing a short preview of the asset.
|
|
3545
|
-
*/
|
|
3546
|
-
Preview: "preview",
|
|
3547
|
-
/**
|
|
3548
|
-
* The act of rendering the asset onto paper or hard copy form.
|
|
3549
|
-
*/
|
|
3550
|
-
Print: "print",
|
|
3551
|
-
/**
|
|
3552
|
-
* The act of obtaining data from the asset, such as a database record.
|
|
3553
|
-
*/
|
|
3554
|
-
Read: "read",
|
|
3555
|
-
/**
|
|
3556
|
-
* The act of using the asset for a purpose other than its intended purpose.
|
|
3557
|
-
*/
|
|
3558
|
-
SecondaryUse: "secondaryUse",
|
|
3559
|
-
/**
|
|
3560
|
-
* The act of non-commercial reproduction and distribution of the asset to third-parties.
|
|
3561
|
-
*/
|
|
3562
|
-
Share: "share",
|
|
3563
|
-
/**
|
|
3564
|
-
* The act of sharing the asset to parties in close proximity to the owner.
|
|
3565
|
-
*/
|
|
3566
|
-
AdhocShare: "adhocShare",
|
|
3567
|
-
/**
|
|
3568
|
-
* The act of distributing any derivative asset under the same terms as the original.
|
|
3569
|
-
*/
|
|
3570
|
-
ShareAlike: "shareAlike",
|
|
3571
|
-
/**
|
|
3572
|
-
* The act of a system reading the text of the asset out loud.
|
|
3573
|
-
*/
|
|
3574
|
-
TextToSpeech: "textToSpeech",
|
|
3575
|
-
/**
|
|
3576
|
-
* The act of translating the asset's original language into another, creating a new derivative asset.
|
|
3577
|
-
*/
|
|
3578
|
-
Translate: "translate",
|
|
3579
|
-
/**
|
|
3580
|
-
* The act of transforming the asset into a different digital format.
|
|
3581
|
-
*/
|
|
3582
|
-
Transform: "transform",
|
|
3583
|
-
/**
|
|
3584
|
-
* The act of unloading the asset from a storage device, making it no longer accessible.
|
|
3585
|
-
*/
|
|
3586
|
-
Uninstall: "uninstall",
|
|
3587
|
-
/**
|
|
3588
|
-
* The act of applying a watermark to the asset.
|
|
3589
|
-
*/
|
|
3590
|
-
Watermark: "watermark",
|
|
3591
|
-
/**
|
|
3592
|
-
* The act of writing to or modifying the asset.
|
|
3593
|
-
*/
|
|
3594
|
-
Write: "write",
|
|
3595
|
-
/**
|
|
3596
|
-
* The act of adding to the end of an asset, for example, a database record.
|
|
3597
|
-
* Also identified as `appendTo`.
|
|
3598
|
-
*/
|
|
3599
|
-
Append: "append",
|
|
3600
|
-
// Sub-actions of 'transfer'
|
|
3601
|
-
/**
|
|
3602
|
-
* The act of giving away the asset in perpetuity without exchange of value, requiring the original to be deleted.
|
|
3603
|
-
*/
|
|
3604
|
-
Give: "give",
|
|
3605
|
-
/**
|
|
3606
|
-
* The act of trading the asset in exchange for compensation, requiring the original to be deleted.
|
|
3607
|
-
*/
|
|
3608
|
-
Sell: "sell",
|
|
3609
|
-
// Actions typically used in Duties
|
|
3610
|
-
/**
|
|
3611
|
-
* The act of accepting that the use of the asset may be tracked by a specified party.
|
|
3612
|
-
*/
|
|
3613
|
-
AcceptTracking: "acceptTracking",
|
|
3614
|
-
/**
|
|
3615
|
-
* The act of keeping a policy notice attached to the asset.
|
|
3616
|
-
*/
|
|
3617
|
-
AttachPolicy: "attachPolicy",
|
|
3618
|
-
/**
|
|
3619
|
-
* The act of attaching the source of the asset and its derivatives.
|
|
3620
|
-
*/
|
|
3621
|
-
AttachSource: "attachSource",
|
|
3622
|
-
/**
|
|
3623
|
-
* The act of attributing the asset to a specified party.
|
|
3624
|
-
*/
|
|
3625
|
-
Attribute: "attribute",
|
|
3626
|
-
/**
|
|
3627
|
-
* The act of compensating a specified party by some amount for use of the asset.
|
|
3628
|
-
*/
|
|
3629
|
-
Compensate: "compensate",
|
|
3630
|
-
/**
|
|
3631
|
-
* The act of permanently removing all copies of the asset.
|
|
3632
|
-
*/
|
|
3633
|
-
Delete: "delete",
|
|
3634
|
-
/**
|
|
3635
|
-
* The act of requiring the assigner to ensure a permission is exclusive to the assignee.
|
|
3636
|
-
*/
|
|
3637
|
-
EnsureExclusivity: "ensureExclusivity",
|
|
3638
|
-
/**
|
|
3639
|
-
* The act of including other related assets to fulfil the function.
|
|
3640
|
-
*/
|
|
3641
|
-
Include: "include",
|
|
3642
|
-
/**
|
|
3643
|
-
* The act of informing a party that an action has been performed on the asset.
|
|
3644
|
-
*/
|
|
3645
|
-
Inform: "inform",
|
|
3646
|
-
/**
|
|
3647
|
-
* The act of specifying a policy for third-party use of the asset.
|
|
3648
|
-
*/
|
|
3649
|
-
NextPolicy: "nextPolicy",
|
|
3650
|
-
/**
|
|
3651
|
-
* The act of requiring explicit consent from a party to perform an action.
|
|
3652
|
-
*/
|
|
3653
|
-
ObtainConsent: "obtainConsent",
|
|
3654
|
-
/**
|
|
3655
|
-
* The act of paying a financial amount to a party for use of the asset.
|
|
3656
|
-
*/
|
|
3657
|
-
Pay: "pay",
|
|
3658
|
-
/**
|
|
3659
|
-
* The act of performing a manual review of the terms associated with the asset.
|
|
3660
|
-
*/
|
|
3661
|
-
ReviewPolicy: "reviewPolicy"
|
|
3662
|
-
};
|
|
3663
|
-
|
|
3664
|
-
// Copyright 2024 IOTA Stiftung.
|
|
3665
|
-
// SPDX-License-Identifier: Apache-2.0.
|
|
3666
|
-
/**
|
|
3667
|
-
* The types for ODRL Conflict Resolution Strategies.
|
|
3668
|
-
*/
|
|
3669
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
3670
|
-
const ConflictStrategyType = {
|
|
3671
|
-
/**
|
|
3672
|
-
* Permission type.
|
|
3673
|
-
*/
|
|
3674
|
-
Perm: "perm",
|
|
3675
|
-
/**
|
|
3676
|
-
* Prohibition type.
|
|
3677
|
-
*/
|
|
3678
|
-
Prohibit: "prohibit",
|
|
3679
|
-
/**
|
|
3680
|
-
* Invalid type.
|
|
3681
|
-
*/
|
|
3682
|
-
Invalid: "invalid"
|
|
3683
|
-
};
|
|
3684
|
-
|
|
3685
|
-
// Copyright 2024 IOTA Stiftung.
|
|
3686
|
-
// SPDX-License-Identifier: Apache-2.0.
|
|
3687
|
-
/**
|
|
3688
|
-
* The types for ODRL Data Types.
|
|
3689
|
-
*/
|
|
3690
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
3691
|
-
const LeftOperandType = {
|
|
3692
|
-
/**
|
|
3693
|
-
* Absolute Position type.
|
|
3694
|
-
*/
|
|
3695
|
-
AbsolutePosition: "absolutePosition",
|
|
3696
|
-
/**
|
|
3697
|
-
* Absolute Spatial Position type.
|
|
3698
|
-
*/
|
|
3699
|
-
AbsoluteSpatialPosition: "absoluteSpatialPosition",
|
|
3700
|
-
/**
|
|
3701
|
-
* Absolute Temporal Position type.
|
|
3702
|
-
*/
|
|
3703
|
-
AbsoluteTemporalPosition: "absoluteTemporalPosition",
|
|
3704
|
-
/**
|
|
3705
|
-
* Absolute Size type.
|
|
3706
|
-
*/
|
|
3707
|
-
AbsoluteSize: "absoluteSize",
|
|
3708
|
-
/**
|
|
3709
|
-
* Count type.
|
|
3710
|
-
*/
|
|
3711
|
-
Count: "count",
|
|
3712
|
-
/**
|
|
3713
|
-
* DateTime type.
|
|
3714
|
-
*/
|
|
3715
|
-
DateTime: "dateTime",
|
|
3716
|
-
/**
|
|
3717
|
-
* Delay Period type.
|
|
3718
|
-
*/
|
|
3719
|
-
DelayPeriod: "delayPeriod",
|
|
3720
|
-
/**
|
|
3721
|
-
* Delivery Channel type.
|
|
3722
|
-
*/
|
|
3723
|
-
DeliveryChannel: "deliveryChannel",
|
|
3724
|
-
/**
|
|
3725
|
-
* Elapsed Time type.
|
|
3726
|
-
*/
|
|
3727
|
-
ElapsedTime: "elapsedTime",
|
|
3728
|
-
/**
|
|
3729
|
-
* Event type.
|
|
3730
|
-
*/
|
|
3731
|
-
Event: "event",
|
|
3732
|
-
/**
|
|
3733
|
-
* File Format type.
|
|
3734
|
-
*/
|
|
3735
|
-
FileFormat: "fileFormat",
|
|
3736
|
-
/**
|
|
3737
|
-
* Industry type.
|
|
3738
|
-
*/
|
|
3739
|
-
Industry: "industry",
|
|
3740
|
-
/**
|
|
3741
|
-
* Language type.
|
|
3742
|
-
*/
|
|
3743
|
-
Language: "language",
|
|
3744
|
-
/**
|
|
3745
|
-
* Media type.
|
|
3746
|
-
*/
|
|
3747
|
-
Media: "media",
|
|
3748
|
-
/**
|
|
3749
|
-
* Metered Time type.
|
|
3750
|
-
*/
|
|
3751
|
-
MeteredTime: "meteredTime",
|
|
3752
|
-
/**
|
|
3753
|
-
* Pay Amount type.
|
|
3754
|
-
*/
|
|
3755
|
-
PayAmount: "payAmount",
|
|
3756
|
-
/**
|
|
3757
|
-
* Percentage type.
|
|
3758
|
-
*/
|
|
3759
|
-
Percentage: "percentage",
|
|
3760
|
-
/**
|
|
3761
|
-
* Product type.
|
|
3762
|
-
*/
|
|
3763
|
-
Product: "product",
|
|
3764
|
-
/**
|
|
3765
|
-
* Purpose type.
|
|
3766
|
-
*/
|
|
3767
|
-
Purpose: "purpose",
|
|
3768
|
-
/**
|
|
3769
|
-
* Recipient type.
|
|
3770
|
-
*/
|
|
3771
|
-
Recipient: "recipient",
|
|
3772
|
-
/**
|
|
3773
|
-
* Relative Position type.
|
|
3774
|
-
*/
|
|
3775
|
-
RelativePosition: "relativePosition",
|
|
3776
|
-
/**
|
|
3777
|
-
* Relative Spatial Position type.
|
|
3778
|
-
*/
|
|
3779
|
-
RelativeSpatialPosition: "relativeSpatialPosition",
|
|
3780
|
-
/**
|
|
3781
|
-
* Relative Temporal Position type.
|
|
3782
|
-
*/
|
|
3783
|
-
RelativeTemporalPosition: "relativeTemporalPosition",
|
|
3784
|
-
/**
|
|
3785
|
-
* Relative Size type.
|
|
3786
|
-
*/
|
|
3787
|
-
RelativeSize: "relativeSize",
|
|
3788
|
-
/**
|
|
3789
|
-
* Resolution type.
|
|
3790
|
-
*/
|
|
3791
|
-
Resolution: "resolution",
|
|
3792
|
-
/**
|
|
3793
|
-
* Spatial type.
|
|
3794
|
-
*/
|
|
3795
|
-
Spatial: "spatial",
|
|
3796
|
-
/**
|
|
3797
|
-
* Spatial Coordinates type.
|
|
3798
|
-
*/
|
|
3799
|
-
SpatialCoordinates: "spatialCoordinates",
|
|
3800
|
-
/**
|
|
3801
|
-
* System Device type.
|
|
3802
|
-
*/
|
|
3803
|
-
SystemDevice: "systemDevice",
|
|
3804
|
-
/**
|
|
3805
|
-
* Time Interval type.
|
|
3806
|
-
*/
|
|
3807
|
-
TimeInterval: "timeInterval",
|
|
3808
|
-
/**
|
|
3809
|
-
* Unit of Count type.
|
|
3810
|
-
*/
|
|
3811
|
-
UnitOfCount: "unitOfCount",
|
|
3812
|
-
/**
|
|
3813
|
-
* Version type.
|
|
3814
|
-
*/
|
|
3815
|
-
Version: "version",
|
|
3816
|
-
/**
|
|
3817
|
-
* Virtual Location type.
|
|
3818
|
-
*/
|
|
3819
|
-
VirtualLocation: "virtualLocation"
|
|
3820
|
-
};
|
|
3821
|
-
|
|
3822
|
-
// Copyright 2024 IOTA Stiftung.
|
|
3823
|
-
// SPDX-License-Identifier: Apache-2.0.
|
|
3824
|
-
/**
|
|
3825
|
-
* The types for ODRL Logical Constraints.
|
|
3826
|
-
*/
|
|
3827
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
3828
|
-
const LogicalConstraintType = {
|
|
3829
|
-
/**
|
|
3830
|
-
* And type.
|
|
3831
|
-
*/
|
|
3832
|
-
And: "and",
|
|
3833
|
-
/**
|
|
3834
|
-
* Or type.
|
|
3835
|
-
*/
|
|
3836
|
-
Or: "or",
|
|
3837
|
-
/**
|
|
3838
|
-
* Xone type.
|
|
3839
|
-
*/
|
|
3840
|
-
Xone: "xone",
|
|
3841
|
-
/**
|
|
3842
|
-
* And sequence type.
|
|
3843
|
-
*/
|
|
3844
|
-
AndSequence: "andSequence"
|
|
3845
|
-
};
|
|
3846
|
-
|
|
3847
|
-
// Copyright 2024 IOTA Stiftung.
|
|
3848
|
-
// SPDX-License-Identifier: Apache-2.0.
|
|
3849
|
-
/**
|
|
3850
|
-
* The types for ODRL Operators.
|
|
3851
|
-
*/
|
|
3852
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
3853
|
-
const OperatorType = {
|
|
3854
|
-
/**
|
|
3855
|
-
* Equal type.
|
|
3856
|
-
*/
|
|
3857
|
-
Eq: "eq",
|
|
3858
|
-
/**
|
|
3859
|
-
* Greater than type.
|
|
3860
|
-
*/
|
|
3861
|
-
Gt: "gt",
|
|
3862
|
-
/**
|
|
3863
|
-
* Greater than or equal to type.
|
|
3864
|
-
*/
|
|
3865
|
-
Gteq: "gteq",
|
|
3866
|
-
/**
|
|
3867
|
-
* Less than type.
|
|
3868
|
-
*/
|
|
3869
|
-
Lt: "lt",
|
|
3870
|
-
/**
|
|
3871
|
-
* Less than or equal to type.
|
|
3872
|
-
*/
|
|
3873
|
-
Lteq: "lteq",
|
|
3874
|
-
/**
|
|
3875
|
-
* Not equal to type.
|
|
3876
|
-
*/
|
|
3877
|
-
Neq: "neq",
|
|
3878
|
-
/**
|
|
3879
|
-
* Is a type.
|
|
3880
|
-
*/
|
|
3881
|
-
IsA: "isA",
|
|
3882
|
-
/**
|
|
3883
|
-
* Has part type.
|
|
3884
|
-
*/
|
|
3885
|
-
HasPart: "hasPart",
|
|
3886
|
-
/**
|
|
3887
|
-
* Is part of type.
|
|
3888
|
-
*/
|
|
3889
|
-
IsPartOf: "isPartOf",
|
|
3890
|
-
/**
|
|
3891
|
-
* Is all of type.
|
|
3892
|
-
*/
|
|
3893
|
-
IsAllOf: "isAllOf",
|
|
3894
|
-
/**
|
|
3895
|
-
* Is any of type.
|
|
3896
|
-
*/
|
|
3897
|
-
IsAnyOf: "isAnyOf",
|
|
3898
|
-
/**
|
|
3899
|
-
* Is none of type.
|
|
3900
|
-
*/
|
|
3901
|
-
IsNoneOf: "isNoneOf",
|
|
3902
|
-
/**
|
|
3903
|
-
* Location time equal to type.
|
|
3904
|
-
*/
|
|
3905
|
-
LocTimeEq: "locTimeEq",
|
|
3906
|
-
/**
|
|
3907
|
-
* Location time greater than or equal to type.
|
|
3908
|
-
*/
|
|
3909
|
-
LocTimeGteq: "locTimeGteq"
|
|
3910
|
-
};
|
|
3911
|
-
|
|
3912
|
-
// Copyright 2024 IOTA Stiftung.
|
|
3913
|
-
// SPDX-License-Identifier: Apache-2.0.
|
|
3914
|
-
/**
|
|
3915
|
-
* The types for ODRL Policies.
|
|
3916
|
-
*/
|
|
3917
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
3918
|
-
const PolicyType = {
|
|
3919
|
-
/**
|
|
3920
|
-
* Policy type.
|
|
3921
|
-
*/
|
|
3922
|
-
Policy: "Policy",
|
|
3923
|
-
/**
|
|
3924
|
-
* Set type.
|
|
3925
|
-
*/
|
|
3926
|
-
Set: "Set",
|
|
3927
|
-
/**
|
|
3928
|
-
* Offer type.
|
|
3929
|
-
*/
|
|
3930
|
-
Offer: "Offer",
|
|
3931
|
-
/**
|
|
3932
|
-
* Agreement type.
|
|
3933
|
-
*/
|
|
3934
|
-
Agreement: "Agreement"
|
|
3935
|
-
};
|
|
3936
|
-
|
|
3937
|
-
// Copyright 2024 IOTA Stiftung.
|
|
3938
|
-
// SPDX-License-Identifier: Apache-2.0.
|
|
3939
|
-
/**
|
|
3940
|
-
* Right operand types for ODRL constraints
|
|
3941
|
-
*/
|
|
3942
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
3943
|
-
const RightOperandType = {
|
|
3944
|
-
/**
|
|
3945
|
-
* Reference to policy usage events
|
|
3946
|
-
*/
|
|
3947
|
-
PolicyUsage: "odrl:policyUsage"
|
|
3948
|
-
// ... other right operand types ...
|
|
3949
|
-
};
|
|
3950
|
-
|
|
3951
|
-
// Copyright 2024 IOTA Stiftung.
|
|
3952
|
-
// SPDX-License-Identifier: Apache-2.0.
|
|
3953
|
-
/**
|
|
3954
|
-
* The types for ODRL Rules.
|
|
3955
|
-
*/
|
|
3956
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
3957
|
-
const RuleType = {
|
|
3958
|
-
/**
|
|
3959
|
-
* Permission type.
|
|
3960
|
-
*/
|
|
3961
|
-
Permission: "Permission",
|
|
3962
|
-
/**
|
|
3963
|
-
* Prohibition type.
|
|
3964
|
-
*/
|
|
3965
|
-
Prohibition: "Prohibition",
|
|
3966
|
-
/**
|
|
3967
|
-
* Duty type.
|
|
3968
|
-
*/
|
|
3969
|
-
Duty: "Duty"
|
|
3970
|
-
};
|
|
3971
|
-
|
|
3972
|
-
// Copyright 2024 IOTA Stiftung.
|
|
3973
|
-
// SPDX-License-Identifier: Apache-2.0.
|
|
3974
|
-
/**
|
|
3975
|
-
* The types for ODRL Status.
|
|
3976
|
-
*/
|
|
3977
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
3978
|
-
const StatusType = {
|
|
3979
|
-
/**
|
|
3980
|
-
* Active type.
|
|
3981
|
-
*/
|
|
3982
|
-
Active: "active",
|
|
3983
|
-
/**
|
|
3984
|
-
* Inactive type.
|
|
3985
|
-
*/
|
|
3986
|
-
Inactive: "inactive",
|
|
3987
|
-
/**
|
|
3988
|
-
* Pending type.
|
|
3989
|
-
*/
|
|
3990
|
-
Pending: "pending",
|
|
3991
|
-
/**
|
|
3992
|
-
* Revoked type.
|
|
3993
|
-
*/
|
|
3994
|
-
Revoked: "revoked"
|
|
3995
|
-
};
|
|
3996
|
-
|
|
3997
|
-
exports.ActionType = ActionType;
|
|
3998
|
-
exports.ConflictStrategyType = ConflictStrategyType;
|
|
3999
|
-
exports.LeftOperandType = LeftOperandType;
|
|
4000
|
-
exports.LogicalConstraintType = LogicalConstraintType;
|
|
4001
|
-
exports.OdrlContexts = OdrlContexts;
|
|
4002
|
-
exports.OdrlDataTypes = OdrlDataTypes;
|
|
4003
|
-
exports.OdrlTypes = OdrlTypes;
|
|
4004
|
-
exports.OperatorType = OperatorType;
|
|
4005
|
-
exports.PolicyType = PolicyType;
|
|
4006
|
-
exports.RightOperandType = RightOperandType;
|
|
4007
|
-
exports.RuleType = RuleType;
|
|
4008
|
-
exports.StatusType = StatusType;
|