@twin.org/standards-dataspace-protocol 0.0.3-next.53 → 0.0.3-next.55
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/catalogDataTypes.js +18 -39
- package/dist/es/dataTypes/catalogDataTypes.js.map +1 -1
- package/dist/es/dataTypes/dataspaceProtocolDataTypes.js +6 -0
- package/dist/es/dataTypes/dataspaceProtocolDataTypes.js.map +1 -1
- package/dist/es/index.js +10 -13
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/catalog/dataspaceProtocolCatalogTypes.js +1 -33
- package/dist/es/models/catalog/dataspaceProtocolCatalogTypes.js.map +1 -1
- package/dist/es/models/contractNegotiation/IDataspaceProtocolContractAgreementMessage.js.map +1 -1
- package/dist/es/models/contractNegotiation/IDataspaceProtocolContractOfferMessage.js.map +1 -1
- package/dist/es/models/contractNegotiation/IDataspaceProtocolContractRequestMessage.js.map +1 -1
- package/dist/es/models/dataspaceProtocolContextType.js.map +1 -1
- package/dist/es/models/dcat3/IDataspaceProtocolCatalog.js.map +1 -1
- package/dist/es/models/dcat3/IDataspaceProtocolCatalogBase.js +2 -0
- package/dist/es/models/dcat3/IDataspaceProtocolCatalogBase.js.map +1 -0
- package/dist/es/models/dcat3/IDataspaceProtocolDataService.js.map +1 -1
- package/dist/es/models/dcat3/IDataspaceProtocolDataServiceBase.js +2 -0
- package/dist/es/models/dcat3/IDataspaceProtocolDataServiceBase.js.map +1 -0
- package/dist/es/models/dcat3/IDataspaceProtocolDataset.js.map +1 -1
- package/dist/es/models/dcat3/IDataspaceProtocolDatasetBase.js +2 -0
- package/dist/es/models/dcat3/IDataspaceProtocolDatasetBase.js.map +1 -0
- package/dist/es/models/dcat3/IDataspaceProtocolDistribution.js.map +1 -1
- package/dist/es/models/dcat3/IDataspaceProtocolDistributionBase.js +2 -0
- package/dist/es/models/dcat3/IDataspaceProtocolDistributionBase.js.map +1 -0
- package/dist/es/models/odrl/IDataspaceProtocolOffer.js.map +1 -1
- package/dist/es/models/odrl/IDataspaceProtocolOfferBase.js +2 -0
- package/dist/es/models/odrl/IDataspaceProtocolOfferBase.js.map +1 -0
- package/dist/es/schemas/DataspaceProtocolAgreement.json +181 -158
- package/dist/es/schemas/DataspaceProtocolCatalog.json +13 -3
- package/dist/es/schemas/DataspaceProtocolCatalogBase.json +428 -0
- package/dist/es/schemas/DataspaceProtocolCatalogError.json +4 -50
- package/dist/es/schemas/DataspaceProtocolCatalogRequestMessage.json +4 -50
- package/dist/es/schemas/DataspaceProtocolContextType.json +30 -0
- package/dist/es/schemas/DataspaceProtocolContractAgreementMessage.json +191 -52
- package/dist/es/schemas/DataspaceProtocolContractAgreementVerificationMessage.json +4 -50
- package/dist/es/schemas/DataspaceProtocolContractNegotiation.json +4 -50
- package/dist/es/schemas/DataspaceProtocolContractNegotiationError.json +4 -50
- package/dist/es/schemas/DataspaceProtocolContractNegotiationEventMessage.json +4 -50
- package/dist/es/schemas/DataspaceProtocolContractNegotiationEventType.json +11 -5
- package/dist/es/schemas/DataspaceProtocolContractNegotiationStateType.json +31 -10
- package/dist/es/schemas/DataspaceProtocolContractNegotiationTerminationMessage.json +4 -50
- package/dist/es/schemas/DataspaceProtocolContractOfferMessage.json +5 -51
- package/dist/es/schemas/DataspaceProtocolContractRequestMessage.json +5 -51
- package/dist/es/schemas/DataspaceProtocolDataAddress.json +2 -2
- package/dist/es/schemas/DataspaceProtocolDataService.json +21 -0
- package/dist/es/schemas/DataspaceProtocolDataServiceBase.json +285 -0
- package/dist/es/schemas/DataspaceProtocolDataset.json +13 -3
- package/dist/es/schemas/DataspaceProtocolDatasetBase.json +342 -0
- package/dist/es/schemas/DataspaceProtocolDatasetRequestMessage.json +4 -50
- package/dist/es/schemas/DataspaceProtocolDistribution.json +26 -0
- package/dist/es/schemas/DataspaceProtocolDistributionBase.json +170 -0
- package/dist/es/schemas/DataspaceProtocolEndpointProperty.json +2 -2
- package/dist/es/schemas/DataspaceProtocolOffer.json +10 -186
- package/dist/es/schemas/DataspaceProtocolOfferBase.json +219 -0
- package/dist/es/schemas/DataspaceProtocolPolicy.json +214 -202
- package/dist/es/schemas/DataspaceProtocolSet.json +225 -202
- package/dist/es/schemas/DataspaceProtocolTransferCompletionMessage.json +4 -50
- package/dist/es/schemas/DataspaceProtocolTransferError.json +4 -50
- package/dist/es/schemas/DataspaceProtocolTransferProcess.json +4 -50
- package/dist/es/schemas/DataspaceProtocolTransferRequestMessage.json +6 -52
- package/dist/es/schemas/DataspaceProtocolTransferStartMessage.json +5 -51
- package/dist/es/schemas/DataspaceProtocolTransferSuspensionMessage.json +4 -50
- package/dist/es/schemas/DataspaceProtocolTransferTerminationMessage.json +4 -50
- package/dist/es/utils/dataspaceProtocolHelper.js +27 -29
- package/dist/es/utils/dataspaceProtocolHelper.js.map +1 -1
- package/dist/types/index.d.ts +10 -13
- package/dist/types/models/catalog/dataspaceProtocolCatalogTypes.d.ts +0 -32
- package/dist/types/models/contractNegotiation/IDataspaceProtocolContractAgreementMessage.d.ts +3 -2
- package/dist/types/models/contractNegotiation/IDataspaceProtocolContractOfferMessage.d.ts +2 -2
- package/dist/types/models/contractNegotiation/IDataspaceProtocolContractRequestMessage.d.ts +2 -2
- package/dist/types/models/dataspaceProtocolContextType.d.ts +2 -9
- package/dist/types/models/dcat3/IDataspaceProtocolCatalog.d.ts +2 -37
- package/dist/types/models/dcat3/IDataspaceProtocolCatalogBase.d.ts +58 -0
- package/dist/types/models/dcat3/IDataspaceProtocolDataService.d.ts +2 -22
- package/dist/types/models/dcat3/IDataspaceProtocolDataServiceBase.d.ts +44 -0
- package/dist/types/models/dcat3/IDataspaceProtocolDataset.d.ts +2 -29
- package/dist/types/models/dcat3/IDataspaceProtocolDatasetBase.d.ts +61 -0
- package/dist/types/models/dcat3/IDataspaceProtocolDistribution.d.ts +4 -31
- package/dist/types/models/dcat3/IDataspaceProtocolDistributionBase.d.ts +66 -0
- package/dist/types/models/odrl/IDataspaceProtocolOffer.d.ts +7 -2
- package/dist/types/models/odrl/IDataspaceProtocolOfferBase.d.ts +18 -0
- package/dist/types/utils/dataspaceProtocolHelper.d.ts +2 -3
- package/docs/changelog.md +35 -0
- package/docs/examples.md +2 -4
- package/docs/reference/classes/CatalogDataTypes.md +1 -1
- package/docs/reference/classes/ContractNegotiationDataTypes.md +1 -1
- package/docs/reference/classes/DataspaceProtocolDataTypes.md +2 -2
- package/docs/reference/classes/DataspaceProtocolHelper.md +5 -11
- package/docs/reference/classes/TransferProcessDataTypes.md +1 -1
- package/docs/reference/index.md +5 -8
- package/docs/reference/interfaces/IDataspaceProtocolAgreement.md +20 -20
- package/docs/reference/interfaces/IDataspaceProtocolCatalog.md +110 -86
- package/docs/reference/interfaces/IDataspaceProtocolCatalogBase.md +570 -0
- package/docs/reference/interfaces/IDataspaceProtocolCatalogError.md +4 -4
- package/docs/reference/interfaces/IDataspaceProtocolCatalogRequestMessage.md +3 -3
- package/docs/reference/interfaces/IDataspaceProtocolContractAgreementMessage.md +7 -7
- package/docs/reference/interfaces/IDataspaceProtocolContractAgreementVerificationMessage.md +4 -4
- package/docs/reference/interfaces/IDataspaceProtocolContractNegotiation.md +5 -5
- package/docs/reference/interfaces/IDataspaceProtocolContractNegotiationError.md +6 -6
- package/docs/reference/interfaces/IDataspaceProtocolContractNegotiationEventMessage.md +5 -5
- package/docs/reference/interfaces/IDataspaceProtocolContractNegotiationTerminationMessage.md +6 -6
- package/docs/reference/interfaces/IDataspaceProtocolContractOfferMessage.md +7 -7
- package/docs/reference/interfaces/IDataspaceProtocolContractRequestMessage.md +7 -7
- package/docs/reference/interfaces/IDataspaceProtocolDataAddress.md +4 -4
- package/docs/reference/interfaces/IDataspaceProtocolDataService.md +70 -58
- package/docs/reference/interfaces/IDataspaceProtocolDataServiceBase.md +387 -0
- package/docs/reference/interfaces/IDataspaceProtocolDataset.md +80 -68
- package/docs/reference/interfaces/IDataspaceProtocolDatasetBase.md +484 -0
- package/docs/reference/interfaces/IDataspaceProtocolDatasetRequestMessage.md +3 -3
- package/docs/reference/interfaces/IDataspaceProtocolDistribution.md +72 -56
- package/docs/reference/interfaces/IDataspaceProtocolDistributionBase.md +381 -0
- package/docs/reference/interfaces/IDataspaceProtocolEndpointProperty.md +3 -3
- package/docs/reference/interfaces/IDataspaceProtocolOffer.md +43 -44
- package/docs/reference/interfaces/IDataspaceProtocolOfferBase.md +171 -0
- package/docs/reference/interfaces/IDataspaceProtocolPolicy.md +22 -22
- package/docs/reference/interfaces/IDataspaceProtocolSet.md +22 -22
- package/docs/reference/interfaces/IDataspaceProtocolTransferCompletionMessage.md +4 -4
- package/docs/reference/interfaces/IDataspaceProtocolTransferError.md +6 -6
- package/docs/reference/interfaces/IDataspaceProtocolTransferProcess.md +5 -5
- package/docs/reference/interfaces/IDataspaceProtocolTransferRequestMessage.md +7 -7
- package/docs/reference/interfaces/IDataspaceProtocolTransferStartMessage.md +5 -5
- package/docs/reference/interfaces/IDataspaceProtocolTransferSuspensionMessage.md +6 -6
- package/docs/reference/interfaces/IDataspaceProtocolTransferTerminationMessage.md +6 -6
- package/docs/reference/type-aliases/DataspaceProtocolContextType.md +1 -1
- package/docs/reference/variables/DataspaceProtocolCatalogTypes.md +11 -59
- package/docs/reference/variables/DataspaceProtocolContexts.md +4 -4
- package/docs/reference/variables/DataspaceProtocolContractNegotiationEventType.md +2 -2
- package/docs/reference/variables/DataspaceProtocolContractNegotiationStateType.md +7 -7
- package/docs/reference/variables/DataspaceProtocolContractNegotiationTypes.md +10 -10
- package/docs/reference/variables/DataspaceProtocolEndpointType.md +4 -4
- package/docs/reference/variables/DataspaceProtocolTransferProcessStateType.md +5 -5
- package/docs/reference/variables/DataspaceProtocolTransferProcessTypes.md +9 -9
- package/locales/en.json +3 -0
- package/package.json +3 -3
- package/dist/es/models/dcat3/IDataspaceProtocolCatalogNoContext.js +0 -2
- package/dist/es/models/dcat3/IDataspaceProtocolCatalogNoContext.js.map +0 -1
- package/dist/es/models/dcat3/IDataspaceProtocolDataServiceNoContext.js +0 -2
- package/dist/es/models/dcat3/IDataspaceProtocolDataServiceNoContext.js.map +0 -1
- package/dist/es/models/dcat3/IDataspaceProtocolDatasetNoContext.js +0 -2
- package/dist/es/models/dcat3/IDataspaceProtocolDatasetNoContext.js.map +0 -1
- package/dist/es/models/dcat3/IDataspaceProtocolDistributionNoContext.js +0 -2
- package/dist/es/models/dcat3/IDataspaceProtocolDistributionNoContext.js.map +0 -1
- package/dist/es/models/odrl/IDataspaceProtocolAgreementNoContext.js +0 -2
- package/dist/es/models/odrl/IDataspaceProtocolAgreementNoContext.js.map +0 -1
- package/dist/es/models/odrl/IDataspaceProtocolOfferNoContext.js +0 -2
- package/dist/es/models/odrl/IDataspaceProtocolOfferNoContext.js.map +0 -1
- package/dist/es/models/odrl/IDataspaceProtocolPolicyNoContext.js +0 -2
- package/dist/es/models/odrl/IDataspaceProtocolPolicyNoContext.js.map +0 -1
- package/dist/es/models/odrl/IDataspaceProtocolSetNoContext.js +0 -2
- package/dist/es/models/odrl/IDataspaceProtocolSetNoContext.js.map +0 -1
- package/dist/es/schemas/DataspaceProtocolAgreementNoContext.json +0 -6
- package/dist/es/schemas/DataspaceProtocolCatalogNoContext.json +0 -6
- package/dist/es/schemas/DataspaceProtocolDataServiceNoContext.json +0 -6
- package/dist/es/schemas/DataspaceProtocolDatasetNoContext.json +0 -6
- package/dist/es/schemas/DataspaceProtocolDistributionNoContext.json +0 -6
- package/dist/es/schemas/DataspaceProtocolOfferNoContext.json +0 -6
- package/dist/es/schemas/DataspaceProtocolPolicyNoContext.json +0 -6
- package/dist/es/schemas/DataspaceProtocolSetNoContext.json +0 -6
- package/dist/es/schemas-src/DataspaceProtocolDataService.json +0 -11
- package/dist/es/schemas-src/DataspaceProtocolDistribution.json +0 -11
- package/dist/types/models/dcat3/IDataspaceProtocolCatalogNoContext.d.ts +0 -5
- package/dist/types/models/dcat3/IDataspaceProtocolDataServiceNoContext.d.ts +0 -5
- package/dist/types/models/dcat3/IDataspaceProtocolDatasetNoContext.d.ts +0 -5
- package/dist/types/models/dcat3/IDataspaceProtocolDistributionNoContext.d.ts +0 -5
- package/dist/types/models/odrl/IDataspaceProtocolAgreementNoContext.d.ts +0 -5
- package/dist/types/models/odrl/IDataspaceProtocolOfferNoContext.d.ts +0 -5
- package/dist/types/models/odrl/IDataspaceProtocolPolicyNoContext.d.ts +0 -5
- package/dist/types/models/odrl/IDataspaceProtocolSetNoContext.d.ts +0 -5
- package/docs/reference/type-aliases/IDataspaceProtocolAgreementNoContext.md +0 -5
- package/docs/reference/type-aliases/IDataspaceProtocolCatalogNoContext.md +0 -5
- package/docs/reference/type-aliases/IDataspaceProtocolDataServiceNoContext.md +0 -5
- package/docs/reference/type-aliases/IDataspaceProtocolDatasetNoContext.md +0 -5
- package/docs/reference/type-aliases/IDataspaceProtocolDistributionNoContext.md +0 -5
- package/docs/reference/type-aliases/IDataspaceProtocolOfferNoContext.md +0 -5
- package/docs/reference/type-aliases/IDataspaceProtocolPolicyNoContext.md +0 -5
- package/docs/reference/type-aliases/IDataspaceProtocolSetNoContext.md +0 -5
|
@@ -1,202 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolOffer",
|
|
4
|
+
"title": "DataspaceProtocolOffer",
|
|
4
5
|
"description": "Offer interface compliant with Eclipse Data Space Protocol.\n\nExtends IOdrlOffer with DS Protocol-specific constraints:\n- `@id` is REQUIRED (used as the primary offer identifier in DS Protocol)\n- `@context` is omitted (inherited from the parent Dataset/Distribution)",
|
|
5
6
|
"type": "object",
|
|
6
7
|
"properties": {
|
|
7
|
-
"@
|
|
8
|
+
"@id": {
|
|
8
9
|
"type": "string",
|
|
9
|
-
"
|
|
10
|
-
"description": "The type must be \"Offer\"."
|
|
11
|
-
},
|
|
12
|
-
"assigner": {
|
|
13
|
-
"anyOf": [
|
|
14
|
-
{
|
|
15
|
-
"type": "string"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
19
|
-
}
|
|
20
|
-
],
|
|
21
|
-
"description": "The assigner of the offer. Required for Offer policies."
|
|
10
|
+
"description": "Unique identifier for the offer."
|
|
22
11
|
},
|
|
23
12
|
"@context": {
|
|
24
13
|
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlContextType",
|
|
25
|
-
"description": "
|
|
26
|
-
},
|
|
27
|
-
"profile": {
|
|
28
|
-
"anyOf": [
|
|
29
|
-
{
|
|
30
|
-
"type": "string"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"type": "array",
|
|
34
|
-
"items": {
|
|
35
|
-
"type": "string"
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
],
|
|
39
|
-
"description": "The profile(s) this policy conforms to. IRIs identifying the ODRL Profile(s)."
|
|
40
|
-
},
|
|
41
|
-
"assignee": {
|
|
42
|
-
"anyOf": [
|
|
43
|
-
{
|
|
44
|
-
"type": "string"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlPartyCollection"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"type": "array",
|
|
54
|
-
"items": {
|
|
55
|
-
"anyOf": [
|
|
56
|
-
{
|
|
57
|
-
"type": "string"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlPartyCollection"
|
|
64
|
-
}
|
|
65
|
-
]
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
],
|
|
69
|
-
"description": "The assignee of the policy. Applies to all rules unless overridden at rule level."
|
|
70
|
-
},
|
|
71
|
-
"target": {
|
|
72
|
-
"anyOf": [
|
|
73
|
-
{
|
|
74
|
-
"type": "string"
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlAsset"
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlAssetCollection"
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
"type": "array",
|
|
84
|
-
"items": {
|
|
85
|
-
"anyOf": [
|
|
86
|
-
{
|
|
87
|
-
"type": "string"
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlAsset"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlAssetCollection"
|
|
94
|
-
}
|
|
95
|
-
]
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
],
|
|
99
|
-
"description": "The target asset for the rule."
|
|
100
|
-
},
|
|
101
|
-
"action": {
|
|
102
|
-
"anyOf": [
|
|
103
|
-
{
|
|
104
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/ActionType"
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
"type": "string"
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlAction"
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
"type": "array",
|
|
114
|
-
"items": {
|
|
115
|
-
"anyOf": [
|
|
116
|
-
{
|
|
117
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/ActionType"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"type": "string"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlAction"
|
|
124
|
-
}
|
|
125
|
-
]
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
],
|
|
129
|
-
"description": "The action associated with the rule."
|
|
130
|
-
},
|
|
131
|
-
"inheritFrom": {
|
|
132
|
-
"anyOf": [
|
|
133
|
-
{
|
|
134
|
-
"type": "string"
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
"type": "array",
|
|
138
|
-
"items": {
|
|
139
|
-
"type": "string"
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
],
|
|
143
|
-
"description": "The parent policy(ies) this policy inherits from. IRIs identifying the parent Policy(ies)."
|
|
144
|
-
},
|
|
145
|
-
"conflict": {
|
|
146
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/ConflictStrategyType",
|
|
147
|
-
"description": "The conflict resolution strategy.\n- perm: Permissions override Prohibitions\n- prohibit: Prohibitions override Permissions\n- invalid: Policy is void if conflicts exist (default)"
|
|
148
|
-
},
|
|
149
|
-
"permission": {
|
|
150
|
-
"anyOf": [
|
|
151
|
-
{
|
|
152
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlPermission"
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
"type": "array",
|
|
156
|
-
"items": {
|
|
157
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlPermission"
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
],
|
|
161
|
-
"description": "The permissions in the policy. At least one of permission, prohibition, or obligation must be present."
|
|
162
|
-
},
|
|
163
|
-
"prohibition": {
|
|
164
|
-
"anyOf": [
|
|
165
|
-
{
|
|
166
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlProhibition"
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
"type": "array",
|
|
170
|
-
"items": {
|
|
171
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlProhibition"
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
],
|
|
175
|
-
"description": "The prohibitions in the policy. At least one of permission, prohibition, or obligation must be present."
|
|
176
|
-
},
|
|
177
|
-
"obligation": {
|
|
178
|
-
"anyOf": [
|
|
179
|
-
{
|
|
180
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlDuty"
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
"type": "array",
|
|
184
|
-
"items": {
|
|
185
|
-
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlDuty"
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
],
|
|
189
|
-
"description": "The obligations in the policy. At least one of permission, prohibition, or obligation must be present."
|
|
190
|
-
},
|
|
191
|
-
"@id": {
|
|
192
|
-
"type": "string",
|
|
193
|
-
"description": "Unique identifier for the offer."
|
|
14
|
+
"description": "LD Context."
|
|
194
15
|
}
|
|
195
16
|
},
|
|
196
17
|
"required": [
|
|
197
|
-
"@context",
|
|
198
18
|
"@id",
|
|
199
|
-
"@
|
|
200
|
-
|
|
19
|
+
"@context"
|
|
20
|
+
],
|
|
21
|
+
"allOf": [
|
|
22
|
+
{
|
|
23
|
+
"$ref": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolOfferBase"
|
|
24
|
+
}
|
|
201
25
|
]
|
|
202
26
|
}
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolOfferBase",
|
|
4
|
+
"title": "DataspaceProtocolOfferBase",
|
|
5
|
+
"description": "Offer interface compliant with Eclipse Data Space Protocol without JSON-LD context.\nThis is the context-free variant of IDataspaceProtocolOffer, intended for embedding\noffers inline within other objects where the context is provided by the enclosing document.\n\nExtends IOdrlOffer with DS Protocol-specific constraints:\n- '@id' is REQUIRED (used as the primary offer identifier in DS Protocol)\n- '@context' is omitted (context is inherited from the parent object)",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"@id": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "Unique identifier for the offer."
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"required": [
|
|
14
|
+
"@id"
|
|
15
|
+
],
|
|
16
|
+
"allOf": [
|
|
17
|
+
{
|
|
18
|
+
"description": "Interface representing an ODRL Offer.\nAn Offer requires an assigner (the party making the offer).\nhttps://www.w3.org/TR/odrl-model/#policy-offer",
|
|
19
|
+
"type": "object",
|
|
20
|
+
"properties": {
|
|
21
|
+
"@type": {
|
|
22
|
+
"const": "Offer",
|
|
23
|
+
"description": "The type must be \"Offer\".",
|
|
24
|
+
"$comment": "Inherited from OdrlOffer"
|
|
25
|
+
},
|
|
26
|
+
"profile": {
|
|
27
|
+
"anyOf": [
|
|
28
|
+
{
|
|
29
|
+
"type": "string"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"type": "array",
|
|
33
|
+
"items": {
|
|
34
|
+
"type": "string"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"description": "The profile(s) this policy conforms to.\nIRIs identifying the ODRL Profile(s).",
|
|
39
|
+
"$comment": "Inherited from OdrlPolicy"
|
|
40
|
+
},
|
|
41
|
+
"assigner": {
|
|
42
|
+
"anyOf": [
|
|
43
|
+
{
|
|
44
|
+
"type": "string"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"description": "The assigner of the offer.\nRequired for Offer policies.",
|
|
51
|
+
"$comment": "Inherited from OdrlOffer"
|
|
52
|
+
},
|
|
53
|
+
"assignee": {
|
|
54
|
+
"anyOf": [
|
|
55
|
+
{
|
|
56
|
+
"type": "string"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlPartyCollection"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"type": "array",
|
|
66
|
+
"items": {
|
|
67
|
+
"anyOf": [
|
|
68
|
+
{
|
|
69
|
+
"type": "string"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlParty"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlPartyCollection"
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
"description": "The assignee of the policy.\nApplies to all rules unless overridden at rule level.",
|
|
82
|
+
"$comment": "Inherited from OdrlPolicy"
|
|
83
|
+
},
|
|
84
|
+
"target": {
|
|
85
|
+
"anyOf": [
|
|
86
|
+
{
|
|
87
|
+
"type": "string"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlAsset"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlAssetCollection"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"type": "array",
|
|
97
|
+
"items": {
|
|
98
|
+
"anyOf": [
|
|
99
|
+
{
|
|
100
|
+
"type": "string"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlAsset"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlAssetCollection"
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
"description": "The target asset for the rule.",
|
|
113
|
+
"$comment": "Inherited from OdrlPolicy"
|
|
114
|
+
},
|
|
115
|
+
"action": {
|
|
116
|
+
"anyOf": [
|
|
117
|
+
{
|
|
118
|
+
"$ref": "https://schema.twindev.org/w3c-odrl/ActionTypeActionType"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"type": "string"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlAction"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"type": "array",
|
|
128
|
+
"items": {
|
|
129
|
+
"anyOf": [
|
|
130
|
+
{
|
|
131
|
+
"$ref": "https://schema.twindev.org/w3c-odrl/ActionTypeActionType"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"type": "string"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlAction"
|
|
138
|
+
}
|
|
139
|
+
]
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
],
|
|
143
|
+
"description": "The action associated with the rule.",
|
|
144
|
+
"$comment": "Inherited from OdrlPolicy"
|
|
145
|
+
},
|
|
146
|
+
"inheritFrom": {
|
|
147
|
+
"anyOf": [
|
|
148
|
+
{
|
|
149
|
+
"type": "string"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"type": "array",
|
|
153
|
+
"items": {
|
|
154
|
+
"type": "string"
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
],
|
|
158
|
+
"description": "The parent policy(ies) this policy inherits from.\nIRIs identifying the parent Policy(ies).",
|
|
159
|
+
"$comment": "Inherited from OdrlPolicy"
|
|
160
|
+
},
|
|
161
|
+
"conflict": {
|
|
162
|
+
"$ref": "https://schema.twindev.org/w3c-odrl/ConflictStrategyTypeConflictStrategyType",
|
|
163
|
+
"description": "The conflict resolution strategy.\n- perm: Permissions override Prohibitions\n- prohibit: Prohibitions override Permissions\n- invalid: Policy is void if conflicts exist (default)",
|
|
164
|
+
"$comment": "Inherited from OdrlPolicy"
|
|
165
|
+
},
|
|
166
|
+
"permission": {
|
|
167
|
+
"anyOf": [
|
|
168
|
+
{
|
|
169
|
+
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlPermission"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"type": "array",
|
|
173
|
+
"items": {
|
|
174
|
+
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlPermission"
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
],
|
|
178
|
+
"description": "The permissions in the policy.\nAt least one of permission, prohibition, or obligation must be present.",
|
|
179
|
+
"$comment": "Inherited from OdrlPolicy"
|
|
180
|
+
},
|
|
181
|
+
"prohibition": {
|
|
182
|
+
"anyOf": [
|
|
183
|
+
{
|
|
184
|
+
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlProhibition"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"type": "array",
|
|
188
|
+
"items": {
|
|
189
|
+
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlProhibition"
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
],
|
|
193
|
+
"description": "The prohibitions in the policy.\nAt least one of permission, prohibition, or obligation must be present.",
|
|
194
|
+
"$comment": "Inherited from OdrlPolicy"
|
|
195
|
+
},
|
|
196
|
+
"obligation": {
|
|
197
|
+
"anyOf": [
|
|
198
|
+
{
|
|
199
|
+
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlDuty"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"type": "array",
|
|
203
|
+
"items": {
|
|
204
|
+
"$ref": "https://schema.twindev.org/w3c-odrl/OdrlDuty"
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
],
|
|
208
|
+
"description": "The obligations in the policy.\nAt least one of permission, prohibition, or obligation must be present.",
|
|
209
|
+
"$comment": "Inherited from OdrlPolicy"
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
"required": [
|
|
213
|
+
"@type",
|
|
214
|
+
"assigner"
|
|
215
|
+
],
|
|
216
|
+
"$comment": "Inlined utility base type OdrlOffer so utility transformations can operate on concrete properties instead of a $ref."
|
|
217
|
+
}
|
|
218
|
+
]
|
|
219
|
+
}
|