@twin.org/standards-w3c-odrl 0.0.3-next.41 → 0.0.3-next.43
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/models/IOdrlAction.js.map +1 -1
- package/dist/es/models/IOdrlAsset.js.map +1 -1
- package/dist/es/models/IOdrlConstraint.js.map +1 -1
- package/dist/es/models/IOdrlLogicalConstraint.js.map +1 -1
- package/dist/es/models/IOdrlParty.js.map +1 -1
- package/dist/es/models/IOdrlPolicy.js.map +1 -1
- package/dist/es/models/IOdrlRule.js.map +1 -1
- package/dist/es/schemas/OdrlAction.json +4 -84
- package/dist/es/schemas/OdrlAgreement.json +1 -77
- package/dist/es/schemas/OdrlAsset.json +3 -82
- package/dist/es/schemas/OdrlAssetCollection.json +4 -83
- package/dist/es/schemas/OdrlConstraint.json +5 -101
- package/dist/es/schemas/OdrlDuty.json +0 -92
- package/dist/es/schemas/OdrlLogicalConstraint.json +0 -92
- package/dist/es/schemas/OdrlLogicalConstraintOperand.json +1 -2
- package/dist/es/schemas/OdrlOffer.json +1 -77
- package/dist/es/schemas/OdrlParty.json +3 -82
- package/dist/es/schemas/OdrlPartyCollection.json +4 -83
- package/dist/es/schemas/OdrlPermission.json +0 -92
- package/dist/es/schemas/OdrlPolicy.json +1 -77
- package/dist/es/schemas/OdrlProhibition.json +0 -92
- package/dist/es/schemas/OdrlRule.json +0 -92
- package/dist/es/schemas/OdrlSet.json +1 -77
- package/dist/types/models/IOdrlAction.d.ts +1 -2
- package/dist/types/models/IOdrlAsset.d.ts +1 -2
- package/dist/types/models/IOdrlConstraint.d.ts +1 -2
- package/dist/types/models/IOdrlLogicalConstraint.d.ts +1 -2
- package/dist/types/models/IOdrlParty.d.ts +1 -2
- package/dist/types/models/IOdrlPolicy.d.ts +1 -2
- package/dist/types/models/IOdrlRule.d.ts +1 -2
- package/docs/changelog.md +30 -0
- package/docs/reference/interfaces/IOdrlAction.md +0 -12
- package/docs/reference/interfaces/IOdrlAgreement.md +0 -4
- package/docs/reference/interfaces/IOdrlAsset.md +0 -12
- package/docs/reference/interfaces/IOdrlAssetCollection.md +0 -4
- package/docs/reference/interfaces/IOdrlConstraint.md +0 -8
- package/docs/reference/interfaces/IOdrlDuty.md +0 -4
- package/docs/reference/interfaces/IOdrlLogicalConstraint.md +0 -8
- package/docs/reference/interfaces/IOdrlOffer.md +0 -4
- package/docs/reference/interfaces/IOdrlParty.md +0 -12
- package/docs/reference/interfaces/IOdrlPartyCollection.md +0 -4
- package/docs/reference/interfaces/IOdrlPermission.md +0 -4
- package/docs/reference/interfaces/IOdrlPolicy.md +0 -16
- package/docs/reference/interfaces/IOdrlProhibition.md +0 -4
- package/docs/reference/interfaces/IOdrlRule.md +0 -8
- package/docs/reference/interfaces/IOdrlSet.md +0 -4
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IOdrlAction.js","sourceRoot":"","sources":["../../../src/models/IOdrlAction.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type {
|
|
1
|
+
{"version":3,"file":"IOdrlAction.js","sourceRoot":"","sources":["../../../src/models/IOdrlAction.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IOdrlConstraint } from \"./IOdrlConstraint.js\";\nimport type { IOdrlLogicalConstraint } from \"./IOdrlLogicalConstraint.js\";\nimport type { ActionType } from \"./types/actionType.js\";\n\n/**\n * Interface for ODRL Actions.\n * https://www.w3.org/TR/odrl-model/#action\n */\nexport interface IOdrlAction {\n\t/**\n\t * The value/identifier of the action.\n\t * Used in complex action definitions.\n\t */\n\t\"rdf:value\"?: { \"@id\": string };\n\n\t/**\n\t * Direct action identifier.\n\t * Used in simple action references.\n\t */\n\t\"@id\"?: string;\n\n\t/**\n\t * Refinements applied to the action.\n\t */\n\trefinement?:\n\t\t| IOdrlConstraint\n\t\t| IOdrlLogicalConstraint\n\t\t| (IOdrlConstraint | IOdrlLogicalConstraint)[];\n\n\t/**\n\t * Reference to the action this action is included in.\n\t */\n\tincludedIn?: ActionType | string;\n\n\t/**\n\t * References to actions this action implies.\n\t */\n\timplies?: (ActionType | string)[];\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IOdrlAsset.js","sourceRoot":"","sources":["../../../src/models/IOdrlAsset.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type {
|
|
1
|
+
{"version":3,"file":"IOdrlAsset.js","sourceRoot":"","sources":["../../../src/models/IOdrlAsset.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IOdrlAssetCollection } from \"./IOdrlAssetCollection.js\";\n\n/**\n * Interface for ODRL Assets.\n * https://www.w3.org/TR/odrl-model/#asset\n */\nexport interface IOdrlAsset {\n\t/**\n\t * The unique identifier for the asset.\n\t * Should be an IRI.\n\t */\n\tuid?: string;\n\n\t/**\n\t * The type of the asset.\n\t * Can be used to specify additional type information.\n\t */\n\t\"@type\"?: string;\n\n\t/**\n\t * Reference to the asset collection this asset is part of.\n\t * Used to identify an AssetCollection that this Asset is a member of.\n\t */\n\tpartOf?: string | IOdrlAssetCollection | (string | IOdrlAssetCollection)[];\n\n\t/**\n\t * Reference to the policy that governs this asset.\n\t * Used to identify the Policy that governs this Asset.\n\t */\n\thasPolicy?: string | string[];\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IOdrlConstraint.js","sourceRoot":"","sources":["../../../src/models/IOdrlConstraint.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type {
|
|
1
|
+
{"version":3,"file":"IOdrlConstraint.js","sourceRoot":"","sources":["../../../src/models/IOdrlConstraint.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { LeftOperandType } from \"./types/leftOperandType.js\";\nimport type { OperatorType } from \"./types/operatorType.js\";\nimport type { StatusType } from \"./types/statusType.js\";\n\n/**\n * Interface for ODRL Constraints.\n * https://www.w3.org/TR/odrl-model/#constraint\n */\nexport interface IOdrlConstraint {\n\t/**\n\t * Optional unique identifier for the constraint.\n\t */\n\tuid?: string;\n\n\t/**\n\t * The left operand of the constraint.\n\t */\n\tleftOperand: string | LeftOperandType;\n\n\t/**\n\t * The operator of the constraint.\n\t */\n\toperator: OperatorType;\n\n\t/**\n\t * The right operand of the constraint.\n\t * value with optional @type is used for literal values (like \"5.00\" with type \"xsd:decimal\")\n\t * id is used when referencing a URI/identifier (like odrl:policyUsage)\n\t * Mutually exclusive with rightOperandReference.\n\t */\n\trightOperand?: ObjectOrArray<\n\t\t| string\n\t\t| {\n\t\t\t\t\"@value\": string;\n\t\t\t\t\"@type\"?: string;\n\t\t }\n\t\t| {\n\t\t\t\t\"@id\": string;\n\t\t }\n\t>;\n\n\t/**\n\t * Reference to the right operand.\n\t * Can be used to reference external resources or policies using an IRI.\n\t * Mutually exclusive with rightOperand.\n\t */\n\trightOperandReference?: ObjectOrArray<string>;\n\n\t/**\n\t * The data type of the right operand.\n\t */\n\tdataType?: string;\n\n\t/**\n\t * The unit for the right operand value.\n\t */\n\tunit?: string;\n\n\t/**\n\t * The status value for comparison.\n\t */\n\tstatus?: StatusType;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IOdrlLogicalConstraint.js","sourceRoot":"","sources":["../../../src/models/IOdrlLogicalConstraint.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type {
|
|
1
|
+
{"version":3,"file":"IOdrlLogicalConstraint.js","sourceRoot":"","sources":["../../../src/models/IOdrlLogicalConstraint.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IOdrlLogicalConstraintOperand } from \"./IOdrlLogicalConstraintOperand.js\";\n\n/**\n * Interface for ODRL Logical Constraints.\n * A Logical Constraint compares two or more existing Constraints by one logical operator.\n * If the comparison returns a logical match, then the Logical Constraint is satisfied.\n * https://www.w3.org/TR/odrl-model/#constraint-logical\n */\nexport interface IOdrlLogicalConstraint {\n\t/**\n\t * Optional unique identifier for the logical constraint.\n\t * Must be an IRI.\n\t */\n\tuid?: string;\n\n\t/**\n\t * AND operator - all constraints must be satisfied.\n\t * Exactly one logical operator must be present.\n\t */\n\tand?: IOdrlLogicalConstraintOperand;\n\n\t/**\n\t * OR operator - at least one constraint must be satisfied.\n\t * Exactly one logical operator must be present.\n\t */\n\tor?: IOdrlLogicalConstraintOperand;\n\n\t/**\n\t * XOR operator - exactly one constraint must be satisfied.\n\t * Exactly one logical operator must be present.\n\t */\n\txone?: IOdrlLogicalConstraintOperand;\n\n\t/**\n\t * AND Sequence operator - all constraints must be satisfied in order.\n\t * Exactly one logical operator must be present.\n\t */\n\tandSequence?: IOdrlLogicalConstraintOperand;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IOdrlParty.js","sourceRoot":"","sources":["../../../src/models/IOdrlParty.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type {
|
|
1
|
+
{"version":3,"file":"IOdrlParty.js","sourceRoot":"","sources":["../../../src/models/IOdrlParty.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IOdrlPartyCollection } from \"./IOdrlPartyCollection.js\";\n\n/**\n * Interface for ODRL Parties.\n * https://www.w3.org/TR/odrl-model/#party\n */\nexport interface IOdrlParty {\n\t/**\n\t * The unique identifier for the party.\n\t * Must be an IRI.\n\t */\n\tuid?: string;\n\n\t/**\n\t * The type of the party.\n\t * Can be used to specify additional type information (e.g., \"Party\",\n\t * \"vcard:Organization\", \"vcard:Individual\").\n\t */\n\t\"@type\"?: string | string[];\n\n\t/**\n\t * Reference to the party collection this party is part of.\n\t * Used to identify a PartyCollection that a Party entity is a member of.\n\t */\n\tpartOf?: string | IOdrlPartyCollection | (string | IOdrlPartyCollection)[];\n\n\t/**\n\t * Reference to a policy where this party is an assignee.\n\t * When assigneeOf is asserted, the Party MUST be inferred to undertake\n\t * the assignee functional role of all the Rules of that Policy.\n\t */\n\tassigneeOf?: string | string[];\n\n\t/**\n\t * Reference to a policy where this party is an assigner.\n\t * When assignerOf is asserted, the Party MUST be inferred to undertake\n\t * the assigner functional role of all the Rules of that Policy.\n\t */\n\tassignerOf?: string | string[];\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IOdrlPolicy.js","sourceRoot":"","sources":["../../../src/models/IOdrlPolicy.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type {
|
|
1
|
+
{"version":3,"file":"IOdrlPolicy.js","sourceRoot":"","sources":["../../../src/models/IOdrlPolicy.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IOdrlAction } from \"./IOdrlAction.js\";\nimport type { IOdrlAsset } from \"./IOdrlAsset.js\";\nimport type { IOdrlAssetCollection } from \"./IOdrlAssetCollection.js\";\nimport type { IOdrlDuty } from \"./IOdrlDuty.js\";\nimport type { IOdrlParty } from \"./IOdrlParty.js\";\nimport type { IOdrlPartyCollection } from \"./IOdrlPartyCollection.js\";\nimport type { IOdrlPermission } from \"./IOdrlPermission.js\";\nimport type { IOdrlProhibition } from \"./IOdrlProhibition.js\";\nimport type { OdrlContextType } from \"./odrlContextType.js\";\nimport type { ActionType } from \"./types/actionType.js\";\nimport type { ConflictStrategyType } from \"./types/conflictStrategyType.js\";\nimport type { PolicyType } from \"./types/policyType.js\";\n\n/**\n * Interface representing an ODRL Policy.\n * https://www.w3.org/TR/odrl-model/#policy\n */\nexport interface IOdrlPolicy {\n\t/**\n\t * The context for the policy.\n\t * Must include \"https://www.w3.org/ns/odrl.jsonld\"\n\t */\n\t\"@context\": OdrlContextType;\n\n\t/**\n\t * The type of policy.\n\t * Must be one of: \"Set\", \"Offer\", \"Agreement\"\n\t */\n\t\"@type\": PolicyType;\n\n\t/**\n\t * The unique identifier for the policy.\n\t * Must be an IRI.\n\t */\n\tuid: string;\n\n\t/**\n\t * The profile(s) this policy conforms to.\n\t * IRIs identifying the ODRL Profile(s).\n\t */\n\tprofile?: string | string[];\n\n\t/**\n\t * The assigner of the policy.\n\t * Applies to all rules unless overridden at rule level.\n\t */\n\tassigner?:\n\t\t| string\n\t\t| IOdrlParty\n\t\t| IOdrlPartyCollection\n\t\t| (string | IOdrlParty | IOdrlPartyCollection)[];\n\n\t/**\n\t * The assignee of the policy.\n\t * Applies to all rules unless overridden at rule level.\n\t */\n\tassignee?:\n\t\t| string\n\t\t| IOdrlParty\n\t\t| IOdrlPartyCollection\n\t\t| (string | IOdrlParty | IOdrlPartyCollection)[];\n\n\t/**\n\t * The target asset for the rule.\n\t */\n\ttarget?:\n\t\t| string\n\t\t| IOdrlAsset\n\t\t| IOdrlAssetCollection\n\t\t| (string | IOdrlAsset | IOdrlAssetCollection)[];\n\n\t/**\n\t * The action associated with the rule.\n\t */\n\taction?: ActionType | string | IOdrlAction | (ActionType | string | IOdrlAction)[];\n\n\t/**\n\t * The parent policy(ies) this policy inherits from.\n\t * IRIs identifying the parent Policy(ies).\n\t */\n\tinheritFrom?: string | string[];\n\n\t/**\n\t * The conflict resolution strategy.\n\t * - perm: Permissions override Prohibitions\n\t * - prohibit: Prohibitions override Permissions\n\t * - invalid: Policy is void if conflicts exist (default)\n\t */\n\tconflict?: ConflictStrategyType;\n\n\t/**\n\t * The permissions in the policy.\n\t * At least one of permission, prohibition, or obligation must be present.\n\t */\n\tpermission?: IOdrlPermission | IOdrlPermission[];\n\n\t/**\n\t * The prohibitions in the policy.\n\t * At least one of permission, prohibition, or obligation must be present.\n\t */\n\tprohibition?: IOdrlProhibition | IOdrlProhibition[];\n\n\t/**\n\t * The obligations in the policy.\n\t * At least one of permission, prohibition, or obligation must be present.\n\t */\n\tobligation?: IOdrlDuty | IOdrlDuty[];\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IOdrlRule.js","sourceRoot":"","sources":["../../../src/models/IOdrlRule.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type {
|
|
1
|
+
{"version":3,"file":"IOdrlRule.js","sourceRoot":"","sources":["../../../src/models/IOdrlRule.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IOdrlAction } from \"./IOdrlAction.js\";\nimport type { IOdrlAsset } from \"./IOdrlAsset.js\";\nimport type { IOdrlAssetCollection } from \"./IOdrlAssetCollection.js\";\nimport type { IOdrlConstraint } from \"./IOdrlConstraint.js\";\nimport type { IOdrlLogicalConstraint } from \"./IOdrlLogicalConstraint.js\";\nimport type { IOdrlParty } from \"./IOdrlParty.js\";\nimport type { IOdrlPartyCollection } from \"./IOdrlPartyCollection.js\";\nimport type { ActionType } from \"./types/actionType.js\";\n\n/**\n * Base interface for ODRL Rules.\n * https://www.w3.org/TR/odrl-model/#rule\n */\nexport interface IOdrlRule {\n\t/**\n\t * Optional unique identifier for the rule.\n\t */\n\tuid?: string;\n\n\t/**\n\t * The action associated with the rule.\n\t */\n\taction?: ActionType | string | IOdrlAction | (ActionType | string | IOdrlAction)[];\n\n\t/**\n\t * The target asset for the rule.\n\t */\n\ttarget?:\n\t\t| string\n\t\t| IOdrlAsset\n\t\t| IOdrlAssetCollection\n\t\t| (string | IOdrlAsset | IOdrlAssetCollection)[];\n\n\t/**\n\t * The assigner of the rule.\n\t */\n\tassigner?:\n\t\t| string\n\t\t| IOdrlParty\n\t\t| IOdrlPartyCollection\n\t\t| (string | IOdrlParty | IOdrlPartyCollection)[];\n\n\t/**\n\t * The assignee of the rule.\n\t */\n\tassignee?:\n\t\t| string\n\t\t| IOdrlParty\n\t\t| IOdrlPartyCollection\n\t\t| (string | IOdrlParty | IOdrlPartyCollection)[];\n\n\t/**\n\t * Constraints applied to the rule.\n\t */\n\tconstraint?:\n\t\t| IOdrlConstraint\n\t\t| IOdrlLogicalConstraint\n\t\t| (IOdrlConstraint | IOdrlLogicalConstraint)[];\n\n\t/**\n\t * Additional relation sub-properties as defined in ODRL profiles.\n\t * For example, 'summary' in profile \"http://example.com/odrl:profile:03\"\n\t * indicates where the output should be stored.\n\t */\n\tsummary?: string;\n}\n"]}
|
|
@@ -4,64 +4,6 @@
|
|
|
4
4
|
"description": "Interface for ODRL Actions. https://www.w3.org/TR/odrl-model/#action",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
|
-
"@context": {
|
|
8
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
|
|
9
|
-
},
|
|
10
|
-
"@id": {
|
|
11
|
-
"type": "string",
|
|
12
|
-
"description": "Direct action identifier. Used in simple action references."
|
|
13
|
-
},
|
|
14
|
-
"@included": {
|
|
15
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
16
|
-
},
|
|
17
|
-
"@graph": {
|
|
18
|
-
"anyOf": [
|
|
19
|
-
{
|
|
20
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"type": "array",
|
|
24
|
-
"items": {
|
|
25
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
]
|
|
29
|
-
},
|
|
30
|
-
"@nest": {
|
|
31
|
-
"anyOf": [
|
|
32
|
-
{
|
|
33
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"type": "array",
|
|
37
|
-
"items": {
|
|
38
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
]
|
|
42
|
-
},
|
|
43
|
-
"@type": {
|
|
44
|
-
"anyOf": [
|
|
45
|
-
{
|
|
46
|
-
"type": "string"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"type": "array",
|
|
50
|
-
"items": {
|
|
51
|
-
"type": "string"
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
]
|
|
55
|
-
},
|
|
56
|
-
"@reverse": {
|
|
57
|
-
"type": "object",
|
|
58
|
-
"additionalProperties": {
|
|
59
|
-
"type": "string"
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
"@index": {
|
|
63
|
-
"type": "string"
|
|
64
|
-
},
|
|
65
7
|
"rdf:value": {
|
|
66
8
|
"type": "object",
|
|
67
9
|
"properties": {
|
|
@@ -72,9 +14,12 @@
|
|
|
72
14
|
"required": [
|
|
73
15
|
"@id"
|
|
74
16
|
],
|
|
75
|
-
"additionalProperties": false,
|
|
76
17
|
"description": "The value/identifier of the action. Used in complex action definitions."
|
|
77
18
|
},
|
|
19
|
+
"@id": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "Direct action identifier. Used in simple action references."
|
|
22
|
+
},
|
|
78
23
|
"refinement": {
|
|
79
24
|
"anyOf": [
|
|
80
25
|
{
|
|
@@ -124,30 +69,5 @@
|
|
|
124
69
|
},
|
|
125
70
|
"description": "References to actions this action implies."
|
|
126
71
|
}
|
|
127
|
-
},
|
|
128
|
-
"additionalProperties": {
|
|
129
|
-
"anyOf": [
|
|
130
|
-
{
|
|
131
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
"type": "array"
|
|
150
|
-
}
|
|
151
|
-
]
|
|
152
72
|
}
|
|
153
73
|
}
|
|
@@ -54,62 +54,11 @@
|
|
|
54
54
|
}
|
|
55
55
|
]
|
|
56
56
|
},
|
|
57
|
-
"@id": {
|
|
58
|
-
"anyOf": [
|
|
59
|
-
{
|
|
60
|
-
"type": "string"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"type": "array",
|
|
64
|
-
"items": {
|
|
65
|
-
"type": "string"
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
]
|
|
69
|
-
},
|
|
70
|
-
"@included": {
|
|
71
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
72
|
-
},
|
|
73
|
-
"@graph": {
|
|
74
|
-
"anyOf": [
|
|
75
|
-
{
|
|
76
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"type": "array",
|
|
80
|
-
"items": {
|
|
81
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
]
|
|
85
|
-
},
|
|
86
|
-
"@nest": {
|
|
87
|
-
"anyOf": [
|
|
88
|
-
{
|
|
89
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
"type": "array",
|
|
93
|
-
"items": {
|
|
94
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
]
|
|
98
|
-
},
|
|
99
57
|
"@type": {
|
|
100
58
|
"type": "string",
|
|
101
59
|
"const": "Agreement",
|
|
102
60
|
"description": "The type must be \"Agreement\"."
|
|
103
61
|
},
|
|
104
|
-
"@reverse": {
|
|
105
|
-
"type": "object",
|
|
106
|
-
"additionalProperties": {
|
|
107
|
-
"type": "string"
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
"@index": {
|
|
111
|
-
"type": "string"
|
|
112
|
-
},
|
|
113
62
|
"uid": {
|
|
114
63
|
"type": "string",
|
|
115
64
|
"description": "The unique identifier for the policy. Must be an IRI."
|
|
@@ -277,30 +226,5 @@
|
|
|
277
226
|
"assignee",
|
|
278
227
|
"assigner",
|
|
279
228
|
"uid"
|
|
280
|
-
]
|
|
281
|
-
"additionalProperties": {
|
|
282
|
-
"anyOf": [
|
|
283
|
-
{
|
|
284
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
285
|
-
},
|
|
286
|
-
{
|
|
287
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
288
|
-
},
|
|
289
|
-
{
|
|
290
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
291
|
-
},
|
|
292
|
-
{
|
|
293
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
294
|
-
},
|
|
295
|
-
{
|
|
296
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
297
|
-
},
|
|
298
|
-
{
|
|
299
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
300
|
-
},
|
|
301
|
-
{
|
|
302
|
-
"type": "array"
|
|
303
|
-
}
|
|
304
|
-
]
|
|
305
|
-
}
|
|
229
|
+
]
|
|
306
230
|
}
|
|
@@ -4,68 +4,14 @@
|
|
|
4
4
|
"description": "Interface for ODRL Assets. https://www.w3.org/TR/odrl-model/#asset",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
"@id": {
|
|
11
|
-
"anyOf": [
|
|
12
|
-
{
|
|
13
|
-
"type": "string"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"type": "array",
|
|
17
|
-
"items": {
|
|
18
|
-
"type": "string"
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
]
|
|
22
|
-
},
|
|
23
|
-
"@included": {
|
|
24
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
25
|
-
},
|
|
26
|
-
"@graph": {
|
|
27
|
-
"anyOf": [
|
|
28
|
-
{
|
|
29
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"type": "array",
|
|
33
|
-
"items": {
|
|
34
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
]
|
|
38
|
-
},
|
|
39
|
-
"@nest": {
|
|
40
|
-
"anyOf": [
|
|
41
|
-
{
|
|
42
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"type": "array",
|
|
46
|
-
"items": {
|
|
47
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
]
|
|
7
|
+
"uid": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "The unique identifier for the asset. Should be an IRI."
|
|
51
10
|
},
|
|
52
11
|
"@type": {
|
|
53
12
|
"type": "string",
|
|
54
13
|
"description": "The type of the asset. Can be used to specify additional type information."
|
|
55
14
|
},
|
|
56
|
-
"@reverse": {
|
|
57
|
-
"type": "object",
|
|
58
|
-
"additionalProperties": {
|
|
59
|
-
"type": "string"
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
"@index": {
|
|
63
|
-
"type": "string"
|
|
64
|
-
},
|
|
65
|
-
"uid": {
|
|
66
|
-
"type": "string",
|
|
67
|
-
"description": "The unique identifier for the asset. Should be an IRI."
|
|
68
|
-
},
|
|
69
15
|
"partOf": {
|
|
70
16
|
"anyOf": [
|
|
71
17
|
{
|
|
@@ -104,30 +50,5 @@
|
|
|
104
50
|
],
|
|
105
51
|
"description": "Reference to the policy that governs this asset. Used to identify the Policy that governs this Asset."
|
|
106
52
|
}
|
|
107
|
-
},
|
|
108
|
-
"additionalProperties": {
|
|
109
|
-
"anyOf": [
|
|
110
|
-
{
|
|
111
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
"type": "array"
|
|
130
|
-
}
|
|
131
|
-
]
|
|
132
53
|
}
|
|
133
54
|
}
|
|
@@ -4,68 +4,14 @@
|
|
|
4
4
|
"description": "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",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
"@id": {
|
|
11
|
-
"anyOf": [
|
|
12
|
-
{
|
|
13
|
-
"type": "string"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"type": "array",
|
|
17
|
-
"items": {
|
|
18
|
-
"type": "string"
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
]
|
|
22
|
-
},
|
|
23
|
-
"@included": {
|
|
24
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
25
|
-
},
|
|
26
|
-
"@graph": {
|
|
27
|
-
"anyOf": [
|
|
28
|
-
{
|
|
29
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"type": "array",
|
|
33
|
-
"items": {
|
|
34
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
]
|
|
38
|
-
},
|
|
39
|
-
"@nest": {
|
|
40
|
-
"anyOf": [
|
|
41
|
-
{
|
|
42
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"type": "array",
|
|
46
|
-
"items": {
|
|
47
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
]
|
|
7
|
+
"uid": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "The unique identifier for the asset. Should be an IRI."
|
|
51
10
|
},
|
|
52
11
|
"@type": {
|
|
53
12
|
"type": "string",
|
|
54
13
|
"description": "The type of the asset. Can be used to specify additional type information."
|
|
55
14
|
},
|
|
56
|
-
"@reverse": {
|
|
57
|
-
"type": "object",
|
|
58
|
-
"additionalProperties": {
|
|
59
|
-
"type": "string"
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
"@index": {
|
|
63
|
-
"type": "string"
|
|
64
|
-
},
|
|
65
|
-
"uid": {
|
|
66
|
-
"type": "string",
|
|
67
|
-
"description": "The unique identifier for the asset. Should be an IRI."
|
|
68
|
-
},
|
|
69
15
|
"partOf": {
|
|
70
16
|
"anyOf": [
|
|
71
17
|
{
|
|
@@ -135,30 +81,5 @@
|
|
|
135
81
|
},
|
|
136
82
|
"required": [
|
|
137
83
|
"source"
|
|
138
|
-
]
|
|
139
|
-
"additionalProperties": {
|
|
140
|
-
"anyOf": [
|
|
141
|
-
{
|
|
142
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
"type": "array"
|
|
161
|
-
}
|
|
162
|
-
]
|
|
163
|
-
}
|
|
84
|
+
]
|
|
164
85
|
}
|
|
@@ -4,73 +4,6 @@
|
|
|
4
4
|
"description": "Interface for ODRL Constraints. https://www.w3.org/TR/odrl-model/#constraint",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
|
-
"@context": {
|
|
8
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
|
|
9
|
-
},
|
|
10
|
-
"@id": {
|
|
11
|
-
"anyOf": [
|
|
12
|
-
{
|
|
13
|
-
"type": "string"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"type": "array",
|
|
17
|
-
"items": {
|
|
18
|
-
"type": "string"
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
]
|
|
22
|
-
},
|
|
23
|
-
"@included": {
|
|
24
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
25
|
-
},
|
|
26
|
-
"@graph": {
|
|
27
|
-
"anyOf": [
|
|
28
|
-
{
|
|
29
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"type": "array",
|
|
33
|
-
"items": {
|
|
34
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
]
|
|
38
|
-
},
|
|
39
|
-
"@nest": {
|
|
40
|
-
"anyOf": [
|
|
41
|
-
{
|
|
42
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"type": "array",
|
|
46
|
-
"items": {
|
|
47
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
]
|
|
51
|
-
},
|
|
52
|
-
"@type": {
|
|
53
|
-
"anyOf": [
|
|
54
|
-
{
|
|
55
|
-
"type": "string"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"type": "array",
|
|
59
|
-
"items": {
|
|
60
|
-
"type": "string"
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
]
|
|
64
|
-
},
|
|
65
|
-
"@reverse": {
|
|
66
|
-
"type": "object",
|
|
67
|
-
"additionalProperties": {
|
|
68
|
-
"type": "string"
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
"@index": {
|
|
72
|
-
"type": "string"
|
|
73
|
-
},
|
|
74
7
|
"uid": {
|
|
75
8
|
"type": "string",
|
|
76
9
|
"description": "Optional unique identifier for the constraint."
|
|
@@ -108,8 +41,7 @@
|
|
|
108
41
|
},
|
|
109
42
|
"required": [
|
|
110
43
|
"@value"
|
|
111
|
-
]
|
|
112
|
-
"additionalProperties": false
|
|
44
|
+
]
|
|
113
45
|
},
|
|
114
46
|
{
|
|
115
47
|
"type": "object",
|
|
@@ -120,8 +52,7 @@
|
|
|
120
52
|
},
|
|
121
53
|
"required": [
|
|
122
54
|
"@id"
|
|
123
|
-
]
|
|
124
|
-
"additionalProperties": false
|
|
55
|
+
]
|
|
125
56
|
},
|
|
126
57
|
{
|
|
127
58
|
"type": "array",
|
|
@@ -142,8 +73,7 @@
|
|
|
142
73
|
},
|
|
143
74
|
"required": [
|
|
144
75
|
"@value"
|
|
145
|
-
]
|
|
146
|
-
"additionalProperties": false
|
|
76
|
+
]
|
|
147
77
|
},
|
|
148
78
|
{
|
|
149
79
|
"type": "object",
|
|
@@ -154,8 +84,7 @@
|
|
|
154
84
|
},
|
|
155
85
|
"required": [
|
|
156
86
|
"@id"
|
|
157
|
-
]
|
|
158
|
-
"additionalProperties": false
|
|
87
|
+
]
|
|
159
88
|
}
|
|
160
89
|
]
|
|
161
90
|
}
|
|
@@ -192,30 +121,5 @@
|
|
|
192
121
|
"required": [
|
|
193
122
|
"leftOperand",
|
|
194
123
|
"operator"
|
|
195
|
-
]
|
|
196
|
-
"additionalProperties": {
|
|
197
|
-
"anyOf": [
|
|
198
|
-
{
|
|
199
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
206
|
-
},
|
|
207
|
-
{
|
|
208
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
"type": "array"
|
|
218
|
-
}
|
|
219
|
-
]
|
|
220
|
-
}
|
|
124
|
+
]
|
|
221
125
|
}
|