@twin.org/standards-dataspace-protocol 0.0.3-next.54 → 0.0.3-next.56

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