@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.
Files changed (176) 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/es/utils/dataspaceProtocolHelper.js +27 -29
  65. package/dist/es/utils/dataspaceProtocolHelper.js.map +1 -1
  66. package/dist/types/index.d.ts +10 -13
  67. package/dist/types/models/catalog/dataspaceProtocolCatalogTypes.d.ts +0 -32
  68. package/dist/types/models/contractNegotiation/IDataspaceProtocolContractAgreementMessage.d.ts +3 -2
  69. package/dist/types/models/contractNegotiation/IDataspaceProtocolContractOfferMessage.d.ts +2 -2
  70. package/dist/types/models/contractNegotiation/IDataspaceProtocolContractRequestMessage.d.ts +2 -2
  71. package/dist/types/models/dataspaceProtocolContextType.d.ts +2 -9
  72. package/dist/types/models/dcat3/IDataspaceProtocolCatalog.d.ts +2 -37
  73. package/dist/types/models/dcat3/IDataspaceProtocolCatalogBase.d.ts +58 -0
  74. package/dist/types/models/dcat3/IDataspaceProtocolDataService.d.ts +2 -22
  75. package/dist/types/models/dcat3/IDataspaceProtocolDataServiceBase.d.ts +44 -0
  76. package/dist/types/models/dcat3/IDataspaceProtocolDataset.d.ts +2 -29
  77. package/dist/types/models/dcat3/IDataspaceProtocolDatasetBase.d.ts +61 -0
  78. package/dist/types/models/dcat3/IDataspaceProtocolDistribution.d.ts +4 -31
  79. package/dist/types/models/dcat3/IDataspaceProtocolDistributionBase.d.ts +66 -0
  80. package/dist/types/models/odrl/IDataspaceProtocolOffer.d.ts +7 -2
  81. package/dist/types/models/odrl/IDataspaceProtocolOfferBase.d.ts +18 -0
  82. package/dist/types/utils/dataspaceProtocolHelper.d.ts +2 -3
  83. package/docs/changelog.md +35 -0
  84. package/docs/examples.md +2 -4
  85. package/docs/reference/classes/CatalogDataTypes.md +1 -1
  86. package/docs/reference/classes/ContractNegotiationDataTypes.md +1 -1
  87. package/docs/reference/classes/DataspaceProtocolDataTypes.md +2 -2
  88. package/docs/reference/classes/DataspaceProtocolHelper.md +5 -11
  89. package/docs/reference/classes/TransferProcessDataTypes.md +1 -1
  90. package/docs/reference/index.md +5 -8
  91. package/docs/reference/interfaces/IDataspaceProtocolAgreement.md +20 -20
  92. package/docs/reference/interfaces/IDataspaceProtocolCatalog.md +110 -86
  93. package/docs/reference/interfaces/IDataspaceProtocolCatalogBase.md +570 -0
  94. package/docs/reference/interfaces/IDataspaceProtocolCatalogError.md +4 -4
  95. package/docs/reference/interfaces/IDataspaceProtocolCatalogRequestMessage.md +3 -3
  96. package/docs/reference/interfaces/IDataspaceProtocolContractAgreementMessage.md +7 -7
  97. package/docs/reference/interfaces/IDataspaceProtocolContractAgreementVerificationMessage.md +4 -4
  98. package/docs/reference/interfaces/IDataspaceProtocolContractNegotiation.md +5 -5
  99. package/docs/reference/interfaces/IDataspaceProtocolContractNegotiationError.md +6 -6
  100. package/docs/reference/interfaces/IDataspaceProtocolContractNegotiationEventMessage.md +5 -5
  101. package/docs/reference/interfaces/IDataspaceProtocolContractNegotiationTerminationMessage.md +6 -6
  102. package/docs/reference/interfaces/IDataspaceProtocolContractOfferMessage.md +7 -7
  103. package/docs/reference/interfaces/IDataspaceProtocolContractRequestMessage.md +7 -7
  104. package/docs/reference/interfaces/IDataspaceProtocolDataAddress.md +4 -4
  105. package/docs/reference/interfaces/IDataspaceProtocolDataService.md +70 -58
  106. package/docs/reference/interfaces/IDataspaceProtocolDataServiceBase.md +387 -0
  107. package/docs/reference/interfaces/IDataspaceProtocolDataset.md +80 -68
  108. package/docs/reference/interfaces/IDataspaceProtocolDatasetBase.md +484 -0
  109. package/docs/reference/interfaces/IDataspaceProtocolDatasetRequestMessage.md +3 -3
  110. package/docs/reference/interfaces/IDataspaceProtocolDistribution.md +72 -56
  111. package/docs/reference/interfaces/IDataspaceProtocolDistributionBase.md +381 -0
  112. package/docs/reference/interfaces/IDataspaceProtocolEndpointProperty.md +3 -3
  113. package/docs/reference/interfaces/IDataspaceProtocolOffer.md +43 -44
  114. package/docs/reference/interfaces/IDataspaceProtocolOfferBase.md +171 -0
  115. package/docs/reference/interfaces/IDataspaceProtocolPolicy.md +22 -22
  116. package/docs/reference/interfaces/IDataspaceProtocolSet.md +22 -22
  117. package/docs/reference/interfaces/IDataspaceProtocolTransferCompletionMessage.md +4 -4
  118. package/docs/reference/interfaces/IDataspaceProtocolTransferError.md +6 -6
  119. package/docs/reference/interfaces/IDataspaceProtocolTransferProcess.md +5 -5
  120. package/docs/reference/interfaces/IDataspaceProtocolTransferRequestMessage.md +7 -7
  121. package/docs/reference/interfaces/IDataspaceProtocolTransferStartMessage.md +5 -5
  122. package/docs/reference/interfaces/IDataspaceProtocolTransferSuspensionMessage.md +6 -6
  123. package/docs/reference/interfaces/IDataspaceProtocolTransferTerminationMessage.md +6 -6
  124. package/docs/reference/type-aliases/DataspaceProtocolContextType.md +1 -1
  125. package/docs/reference/variables/DataspaceProtocolCatalogTypes.md +11 -59
  126. package/docs/reference/variables/DataspaceProtocolContexts.md +4 -4
  127. package/docs/reference/variables/DataspaceProtocolContractNegotiationEventType.md +2 -2
  128. package/docs/reference/variables/DataspaceProtocolContractNegotiationStateType.md +7 -7
  129. package/docs/reference/variables/DataspaceProtocolContractNegotiationTypes.md +10 -10
  130. package/docs/reference/variables/DataspaceProtocolEndpointType.md +4 -4
  131. package/docs/reference/variables/DataspaceProtocolTransferProcessStateType.md +5 -5
  132. package/docs/reference/variables/DataspaceProtocolTransferProcessTypes.md +9 -9
  133. package/locales/en.json +3 -0
  134. package/package.json +3 -3
  135. package/dist/es/models/dcat3/IDataspaceProtocolCatalogNoContext.js +0 -2
  136. package/dist/es/models/dcat3/IDataspaceProtocolCatalogNoContext.js.map +0 -1
  137. package/dist/es/models/dcat3/IDataspaceProtocolDataServiceNoContext.js +0 -2
  138. package/dist/es/models/dcat3/IDataspaceProtocolDataServiceNoContext.js.map +0 -1
  139. package/dist/es/models/dcat3/IDataspaceProtocolDatasetNoContext.js +0 -2
  140. package/dist/es/models/dcat3/IDataspaceProtocolDatasetNoContext.js.map +0 -1
  141. package/dist/es/models/dcat3/IDataspaceProtocolDistributionNoContext.js +0 -2
  142. package/dist/es/models/dcat3/IDataspaceProtocolDistributionNoContext.js.map +0 -1
  143. package/dist/es/models/odrl/IDataspaceProtocolAgreementNoContext.js +0 -2
  144. package/dist/es/models/odrl/IDataspaceProtocolAgreementNoContext.js.map +0 -1
  145. package/dist/es/models/odrl/IDataspaceProtocolOfferNoContext.js +0 -2
  146. package/dist/es/models/odrl/IDataspaceProtocolOfferNoContext.js.map +0 -1
  147. package/dist/es/models/odrl/IDataspaceProtocolPolicyNoContext.js +0 -2
  148. package/dist/es/models/odrl/IDataspaceProtocolPolicyNoContext.js.map +0 -1
  149. package/dist/es/models/odrl/IDataspaceProtocolSetNoContext.js +0 -2
  150. package/dist/es/models/odrl/IDataspaceProtocolSetNoContext.js.map +0 -1
  151. package/dist/es/schemas/DataspaceProtocolAgreementNoContext.json +0 -6
  152. package/dist/es/schemas/DataspaceProtocolCatalogNoContext.json +0 -6
  153. package/dist/es/schemas/DataspaceProtocolDataServiceNoContext.json +0 -6
  154. package/dist/es/schemas/DataspaceProtocolDatasetNoContext.json +0 -6
  155. package/dist/es/schemas/DataspaceProtocolDistributionNoContext.json +0 -6
  156. package/dist/es/schemas/DataspaceProtocolOfferNoContext.json +0 -6
  157. package/dist/es/schemas/DataspaceProtocolPolicyNoContext.json +0 -6
  158. package/dist/es/schemas/DataspaceProtocolSetNoContext.json +0 -6
  159. package/dist/es/schemas-src/DataspaceProtocolDataService.json +0 -11
  160. package/dist/es/schemas-src/DataspaceProtocolDistribution.json +0 -11
  161. package/dist/types/models/dcat3/IDataspaceProtocolCatalogNoContext.d.ts +0 -5
  162. package/dist/types/models/dcat3/IDataspaceProtocolDataServiceNoContext.d.ts +0 -5
  163. package/dist/types/models/dcat3/IDataspaceProtocolDatasetNoContext.d.ts +0 -5
  164. package/dist/types/models/dcat3/IDataspaceProtocolDistributionNoContext.d.ts +0 -5
  165. package/dist/types/models/odrl/IDataspaceProtocolAgreementNoContext.d.ts +0 -5
  166. package/dist/types/models/odrl/IDataspaceProtocolOfferNoContext.d.ts +0 -5
  167. package/dist/types/models/odrl/IDataspaceProtocolPolicyNoContext.d.ts +0 -5
  168. package/dist/types/models/odrl/IDataspaceProtocolSetNoContext.d.ts +0 -5
  169. package/docs/reference/type-aliases/IDataspaceProtocolAgreementNoContext.md +0 -5
  170. package/docs/reference/type-aliases/IDataspaceProtocolCatalogNoContext.md +0 -5
  171. package/docs/reference/type-aliases/IDataspaceProtocolDataServiceNoContext.md +0 -5
  172. package/docs/reference/type-aliases/IDataspaceProtocolDatasetNoContext.md +0 -5
  173. package/docs/reference/type-aliases/IDataspaceProtocolDistributionNoContext.md +0 -5
  174. package/docs/reference/type-aliases/IDataspaceProtocolOfferNoContext.md +0 -5
  175. package/docs/reference/type-aliases/IDataspaceProtocolPolicyNoContext.md +0 -5
  176. package/docs/reference/type-aliases/IDataspaceProtocolSetNoContext.md +0 -5
@@ -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/DataspaceProtocolContractNegotiationTerminationMessage",
4
- "description": "Interface for Dataspace Protocol Contract Negotiation Termination Messages. https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-negotiation-termination-message",
4
+ "title": "DataspaceProtocolContractNegotiationTerminationMessage",
5
+ "description": "Interface for Dataspace Protocol Contract Negotiation Termination Messages.\nhttps://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-negotiation-termination-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": "The JSON-LD context."
56
11
  },
57
12
  "@type": {
58
- "type": "string",
59
13
  "const": "ContractNegotiationTerminationMessage",
60
14
  "description": "The type of the message."
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/DataspaceProtocolContractOfferMessage",
4
- "description": "Interface for Dataspace Protocol Contract Offer Messages. https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-offer-message",
4
+ "title": "DataspaceProtocolContractOfferMessage",
5
+ "description": "Interface for Dataspace Protocol Contract Offer Messages.\nhttps://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-offer-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": "The JSON-LD context."
56
11
  },
57
12
  "@type": {
58
- "type": "string",
59
13
  "const": "ContractOfferMessage",
60
14
  "description": "The type of the message."
61
15
  },
@@ -68,7 +22,7 @@
68
22
  "description": "The consumer id for the contract."
69
23
  },
70
24
  "offer": {
71
- "$ref": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolOfferNoContext",
25
+ "$ref": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolOfferBase",
72
26
  "description": "The offer being requested."
73
27
  },
74
28
  "callbackAddress": {
@@ -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/DataspaceProtocolContractRequestMessage",
4
- "description": "Interface for Dataspace Protocol Contract Request Messages. https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-request-message",
4
+ "title": "DataspaceProtocolContractRequestMessage",
5
+ "description": "Interface for Dataspace Protocol Contract Request Messages.\nhttps://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-request-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": "The JSON-LD context."
56
11
  },
57
12
  "@type": {
58
- "type": "string",
59
13
  "const": "ContractRequestMessage",
60
14
  "description": "The type of the message."
61
15
  },
@@ -68,7 +22,7 @@
68
22
  "description": "The consumer id for the contract."
69
23
  },
70
24
  "offer": {
71
- "$ref": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolOfferNoContext",
25
+ "$ref": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolOfferBase",
72
26
  "description": "The offer being requested."
73
27
  },
74
28
  "callbackAddress": {
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolDataAddress",
4
- "description": "Interface for Dataspace Protocol Transfer Messages. https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/#lower-level-types",
4
+ "title": "DataspaceProtocolDataAddress",
5
+ "description": "Interface for Dataspace Protocol Transfer Messages.\nhttps://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/#lower-level-types",
5
6
  "type": "object",
6
7
  "properties": {
7
8
  "@type": {
8
- "type": "string",
9
9
  "const": "DataAddress",
10
10
  "description": "LD Type"
11
11
  },
@@ -0,0 +1,21 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolDataService",
4
+ "title": "DataspaceProtocolDataService",
5
+ "description": "Data Service interface compliant with Eclipse Data Space Protocol.\n\nThis interface extends IDataService and enforces DS Protocol-specific requirements\nby overriding properties with more specific types and constraints.\n\n**Requirements per DS Protocol:**\n- `@id` MUST be present for dataset identification (REQUIRED)\n- endpointURL MUST be present (REQUIRED)\n\n**Type System Design:**\n- Interface extension allows TypeScript to override inherited property types\n- Standards packages (@twin.org/standards-w3c-*) follow W3C specs exactly\n- DS Protocol-specific constraints are defined here",
6
+ "type": "object",
7
+ "properties": {
8
+ "@context": {
9
+ "$ref": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolContextType",
10
+ "description": "LD Context. Required per Eclipse Data Space Protocol."
11
+ }
12
+ },
13
+ "required": [
14
+ "@context"
15
+ ],
16
+ "allOf": [
17
+ {
18
+ "$ref": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolDataServiceBase"
19
+ }
20
+ ]
21
+ }
@@ -0,0 +1,285 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolDataServiceBase",
4
+ "title": "DataspaceProtocolDataServiceBase",
5
+ "description": "Data Service interface compliant with Eclipse Data Space Protocol.\n\nThis interface extends IDataService and enforces DS Protocol-specific requirements\nby overriding properties with more specific types and constraints.\n\n**Requirements per DS Protocol:**\n- `@id` MUST be present for dataset identification (REQUIRED)\n- endpointURL MUST be present (REQUIRED)\n\n**Type System Design:**\n- Interface extension allows TypeScript to override inherited property types\n- Standards packages (@twin.org/standards-w3c-*) follow W3C specs exactly\n- DS Protocol-specific constraints are defined here",
6
+ "type": "object",
7
+ "properties": {
8
+ "@type": {
9
+ "const": "DataService",
10
+ "description": "The type identifier for the Data Service.\nREQUIRED per Eclipse Data Space Protocol."
11
+ },
12
+ "@id": {
13
+ "type": "string",
14
+ "description": "Unique identifier for the dataset.\nREQUIRED per Eclipse Data Space Protocol."
15
+ },
16
+ "endpointURL": {
17
+ "type": "string",
18
+ "description": "Endpoint URL."
19
+ },
20
+ "servesDataset": {
21
+ "anyOf": [
22
+ {
23
+ "$ref": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolDatasetBase"
24
+ },
25
+ {
26
+ "type": "array",
27
+ "items": {
28
+ "$ref": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolDatasetBase"
29
+ }
30
+ }
31
+ ],
32
+ "description": "Datasets served."
33
+ }
34
+ },
35
+ "required": [
36
+ "@type",
37
+ "@id",
38
+ "endpointURL"
39
+ ],
40
+ "allOf": [
41
+ {
42
+ "description": "Base interface for DCAT Data Service without JSON-LD context.\nThis is the context-free variant of IDcatDataService, intended for embedding\ndata service objects inline within other objects where the context is provided by the enclosing document.",
43
+ "type": "object",
44
+ "properties": {
45
+ "@id": {
46
+ "type": "string",
47
+ "description": "The unique identifier for the resource.",
48
+ "$comment": "Inherited from DcatResourceBase"
49
+ },
50
+ "dcterms:title": {
51
+ "anyOf": [
52
+ {
53
+ "type": "string"
54
+ },
55
+ {
56
+ "type": "array",
57
+ "items": {
58
+ "type": "string"
59
+ }
60
+ }
61
+ ],
62
+ "description": "A name given to the resource.",
63
+ "$comment": "Inherited from DcatResourceBase"
64
+ },
65
+ "dcterms:description": {
66
+ "anyOf": [
67
+ {
68
+ "type": "string"
69
+ },
70
+ {
71
+ "type": "array",
72
+ "items": {
73
+ "type": "string"
74
+ }
75
+ }
76
+ ],
77
+ "description": "A free-text account of the resource.",
78
+ "$comment": "Inherited from DcatResourceBase"
79
+ },
80
+ "dcterms:identifier": {
81
+ "anyOf": [
82
+ {
83
+ "type": "string"
84
+ },
85
+ {
86
+ "type": "array",
87
+ "items": {
88
+ "type": "string"
89
+ }
90
+ }
91
+ ],
92
+ "description": "A unique identifier of the resource.",
93
+ "$comment": "Inherited from DcatResourceBase"
94
+ },
95
+ "dcterms:issued": {
96
+ "type": "string",
97
+ "description": "Date of formal issuance (publication) of the resource.",
98
+ "format": "date-time",
99
+ "$comment": "Inherited from DcatResourceBase"
100
+ },
101
+ "dcterms:modified": {
102
+ "type": "string",
103
+ "description": "Most recent date on which the resource was changed, updated or modified.",
104
+ "format": "date-time",
105
+ "$comment": "Inherited from DcatResourceBase"
106
+ },
107
+ "dcterms:language": {
108
+ "anyOf": [
109
+ {
110
+ "type": "string"
111
+ },
112
+ {
113
+ "type": "array",
114
+ "items": {
115
+ "type": "string"
116
+ }
117
+ }
118
+ ],
119
+ "description": "A language of the resource.",
120
+ "$comment": "Inherited from DcatResourceBase"
121
+ },
122
+ "dcterms:publisher": {
123
+ "anyOf": [
124
+ {
125
+ "$ref": "https://schema.twindev.org/dataspace-protocol/FoafAgentWithAliases"
126
+ },
127
+ {
128
+ "type": "string"
129
+ }
130
+ ],
131
+ "description": "An entity responsible for making the resource available.",
132
+ "$comment": "Inherited from DcatResourceBase"
133
+ },
134
+ "dcterms:creator": {
135
+ "anyOf": [
136
+ {
137
+ "$ref": "https://schema.twindev.org/dataspace-protocol/FoafAgentWithAliases"
138
+ },
139
+ {
140
+ "type": "string"
141
+ }
142
+ ],
143
+ "description": "An entity responsible for producing the resource.",
144
+ "$comment": "Inherited from DcatResourceBase"
145
+ },
146
+ "dcterms:accessRights": {
147
+ "anyOf": [
148
+ {
149
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
150
+ },
151
+ {
152
+ "type": "string"
153
+ }
154
+ ],
155
+ "description": "Information about who can access the resource or an indication of its security status.",
156
+ "$comment": "Inherited from DcatResourceBase"
157
+ },
158
+ "dcterms:license": {
159
+ "anyOf": [
160
+ {
161
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
162
+ },
163
+ {
164
+ "type": "string"
165
+ }
166
+ ],
167
+ "description": "A legal document under which the resource is made available.",
168
+ "$comment": "Inherited from DcatResourceBase"
169
+ },
170
+ "dcterms:rights": {
171
+ "anyOf": [
172
+ {
173
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
174
+ },
175
+ {
176
+ "type": "string"
177
+ }
178
+ ],
179
+ "description": "Information about rights held in and over the resource.",
180
+ "$comment": "Inherited from DcatResourceBase"
181
+ },
182
+ "dcterms:conformsTo": {
183
+ "anyOf": [
184
+ {
185
+ "type": "string"
186
+ },
187
+ {
188
+ "type": "array",
189
+ "items": {
190
+ "type": "string"
191
+ }
192
+ }
193
+ ],
194
+ "description": "An established standard to which the resource conforms.",
195
+ "$comment": "Inherited from DcatResourceBase"
196
+ },
197
+ "dcterms:type": {
198
+ "type": "string",
199
+ "description": "The nature or genre of the resource.",
200
+ "$comment": "Inherited from DcatResourceBase"
201
+ },
202
+ "dcat:contactPoint": {
203
+ "anyOf": [
204
+ {
205
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
206
+ },
207
+ {
208
+ "type": "string"
209
+ }
210
+ ],
211
+ "description": "Relevant contact information for the catalogued resource.",
212
+ "$comment": "Inherited from DcatResourceBase"
213
+ },
214
+ "dcat:keyword": {
215
+ "anyOf": [
216
+ {
217
+ "type": "string"
218
+ },
219
+ {
220
+ "type": "array",
221
+ "items": {
222
+ "type": "string"
223
+ }
224
+ }
225
+ ],
226
+ "description": "A keyword or tag describing the resource.",
227
+ "$comment": "Inherited from DcatResourceBase"
228
+ },
229
+ "dcat:theme": {
230
+ "anyOf": [
231
+ {
232
+ "type": "string"
233
+ },
234
+ {
235
+ "type": "array",
236
+ "items": {
237
+ "type": "string"
238
+ }
239
+ }
240
+ ],
241
+ "description": "A main category of the resource. A resource can have multiple themes.",
242
+ "$comment": "Inherited from DcatResourceBase"
243
+ },
244
+ "dcat:landingPage": {
245
+ "anyOf": [
246
+ {
247
+ "type": "string"
248
+ },
249
+ {
250
+ "type": "array",
251
+ "items": {
252
+ "type": "string"
253
+ }
254
+ }
255
+ ],
256
+ "description": "A Web page that can be navigated to gain access to the resource.",
257
+ "$comment": "Inherited from DcatResourceBase"
258
+ },
259
+ "dcat:qualifiedRelation": {
260
+ "anyOf": [
261
+ {
262
+ "$ref": "https://schema.twindev.org/dataspace-protocol/DcatRelationship"
263
+ },
264
+ {
265
+ "type": "string"
266
+ }
267
+ ],
268
+ "description": "Link to a description of a relationship with another resource.",
269
+ "$comment": "Inherited from DcatResourceBase"
270
+ },
271
+ "odrl:hasPolicy": {
272
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlPolicy",
273
+ "description": "An ODRL conformant policy expressing the rights associated with the resource.",
274
+ "$comment": "Inherited from DcatResourceBase"
275
+ },
276
+ "dcat:endpointDescription": {
277
+ "type": "string",
278
+ "description": "A description of the services available via the end-points, including their\noperations, parameters, etc.",
279
+ "$comment": "Inherited from DcatDataServiceBase"
280
+ }
281
+ },
282
+ "$comment": "Inlined utility base type DcatDataServiceBase so utility transformations can operate on concrete properties instead of a $ref."
283
+ }
284
+ ]
285
+ }
@@ -1,11 +1,21 @@
1
1
  {
2
- "$schema": "https://json-schema.org/draft/2019-09/schema",
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolDataset",
4
- "description": "Dataset compliant with Eclipse Data Space Protocol. Validates only DS Protocol-specific requirements while allowing all optional DCAT properties.",
5
4
  "title": "DataspaceProtocolDataset",
5
+ "description": "Dataset interface compliant with Eclipse Data Space Protocol.\n\nThis interface extends IDataset and enforces DS Protocol-specific requirements\nby overriding properties with more specific types and constraints.\n\n**Requirements per DS Protocol:**\n- `@id` MUST be present for dataset identification (REQUIRED)\n- `odrl:hasPolicy` MUST be present as an array of ODRL Offers (REQUIRED)\n- Array MUST contain at least one IOdrlOffer\n- Each Offer MUST have `@type`: \"Offer\"\n- Each Offer MUST have `@id`\n- `dcat:distribution` MUST be present (REQUIRED)\n\n**Type System Design:**\n- W3C DCAT spec defines `odrl:hasPolicy` as optional singular `IOdrlPolicy`\n- DS Protocol requires it as a REQUIRED array of `IOdrlOffer`\n- Interface extension allows TypeScript to override inherited property types\n- Standards packages (@twin.org/standards-w3c-*) follow W3C specs exactly\n- DS Protocol-specific constraints are defined here\n\n**Future Compatibility:**\n- Currently only one Offer per dataset is supported\n- Array structure allows future support for multiple offers",
6
+ "type": "object",
7
+ "properties": {
8
+ "@context": {
9
+ "$ref": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolContextType",
10
+ "description": "LD Context. Required per Eclipse Data Space Protocol."
11
+ }
12
+ },
13
+ "required": [
14
+ "@context"
15
+ ],
6
16
  "allOf": [
7
17
  {
8
- "$ref": "https://w3id.org/dspace/2025/1/catalog/dataset-schema.json"
18
+ "$ref": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolDatasetBase"
9
19
  }
10
20
  ]
11
21
  }