@twin.org/standards-dataspace-protocol 0.0.3-next.48 → 0.0.3-next.49

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 (94) hide show
  1. package/dist/es/dataTypes/catalogDataTypes.js +50 -0
  2. package/dist/es/dataTypes/catalogDataTypes.js.map +1 -1
  3. package/dist/es/index.js +10 -0
  4. package/dist/es/index.js.map +1 -1
  5. package/dist/es/models/catalog/dataspaceProtocolCatalogTypes.js +41 -1
  6. package/dist/es/models/catalog/dataspaceProtocolCatalogTypes.js.map +1 -1
  7. package/dist/es/models/contractNegotiation/IDataspaceProtocolContractAgreementMessage.js.map +1 -1
  8. package/dist/es/models/contractNegotiation/IDataspaceProtocolContractOfferMessage.js.map +1 -1
  9. package/dist/es/models/contractNegotiation/IDataspaceProtocolContractRequestMessage.js.map +1 -1
  10. package/dist/es/models/dcat3/IDataspaceProtocolCatalog.js.map +1 -1
  11. package/dist/es/models/dcat3/IDataspaceProtocolCatalogNoContext.js +2 -0
  12. package/dist/es/models/dcat3/IDataspaceProtocolCatalogNoContext.js.map +1 -0
  13. package/dist/es/models/dcat3/IDataspaceProtocolDataService.js.map +1 -1
  14. package/dist/es/models/dcat3/IDataspaceProtocolDataServiceNoContext.js +2 -0
  15. package/dist/es/models/dcat3/IDataspaceProtocolDataServiceNoContext.js.map +1 -0
  16. package/dist/es/models/dcat3/IDataspaceProtocolDataset.js.map +1 -1
  17. package/dist/es/models/dcat3/IDataspaceProtocolDatasetNoContext.js +2 -0
  18. package/dist/es/models/dcat3/IDataspaceProtocolDatasetNoContext.js.map +1 -0
  19. package/dist/es/models/dcat3/IDataspaceProtocolDistribution.js.map +1 -1
  20. package/dist/es/models/dcat3/IDataspaceProtocolDistributionNoContext.js +2 -0
  21. package/dist/es/models/dcat3/IDataspaceProtocolDistributionNoContext.js.map +1 -0
  22. package/dist/es/models/odrl/IDataspaceProtocolAgreement.js.map +1 -1
  23. package/dist/es/models/odrl/IDataspaceProtocolAgreementNoContext.js +2 -0
  24. package/dist/es/models/odrl/IDataspaceProtocolAgreementNoContext.js.map +1 -0
  25. package/dist/es/models/odrl/IDataspaceProtocolOffer.js.map +1 -1
  26. package/dist/es/models/odrl/IDataspaceProtocolOfferNoContext.js +2 -0
  27. package/dist/es/models/odrl/IDataspaceProtocolOfferNoContext.js.map +1 -0
  28. package/dist/es/models/odrl/IDataspaceProtocolPolicy.js +2 -0
  29. package/dist/es/models/odrl/IDataspaceProtocolPolicy.js.map +1 -0
  30. package/dist/es/models/odrl/IDataspaceProtocolPolicyNoContext.js +2 -0
  31. package/dist/es/models/odrl/IDataspaceProtocolPolicyNoContext.js.map +1 -0
  32. package/dist/es/models/odrl/IDataspaceProtocolSet.js +2 -0
  33. package/dist/es/models/odrl/IDataspaceProtocolSet.js.map +1 -0
  34. package/dist/es/models/odrl/IDataspaceProtocolSetNoContext.js +2 -0
  35. package/dist/es/models/odrl/IDataspaceProtocolSetNoContext.js.map +1 -0
  36. package/dist/es/schemas/DataspaceProtocolAgreement.json +22 -17
  37. package/dist/es/schemas/DataspaceProtocolAgreementNoContext.json +6 -0
  38. package/dist/es/schemas/DataspaceProtocolCatalogNoContext.json +6 -0
  39. package/dist/es/schemas/DataspaceProtocolContractAgreementMessage.json +1 -1
  40. package/dist/es/schemas/DataspaceProtocolContractOfferMessage.json +1 -1
  41. package/dist/es/schemas/DataspaceProtocolContractRequestMessage.json +1 -1
  42. package/dist/es/schemas/DataspaceProtocolDataServiceNoContext.json +6 -0
  43. package/dist/es/schemas/DataspaceProtocolDatasetNoContext.json +6 -0
  44. package/dist/es/schemas/DataspaceProtocolDistributionNoContext.json +6 -0
  45. package/dist/es/schemas/DataspaceProtocolOffer.json +25 -20
  46. package/dist/es/schemas/DataspaceProtocolOfferNoContext.json +6 -0
  47. package/dist/es/schemas/DataspaceProtocolPolicy.json +219 -0
  48. package/dist/es/schemas/DataspaceProtocolPolicyNoContext.json +6 -0
  49. package/dist/es/schemas/DataspaceProtocolSet.json +220 -0
  50. package/dist/es/schemas/DataspaceProtocolSetNoContext.json +6 -0
  51. package/dist/types/index.d.ts +10 -0
  52. package/dist/types/models/catalog/dataspaceProtocolCatalogTypes.d.ts +40 -0
  53. package/dist/types/models/contractNegotiation/IDataspaceProtocolContractAgreementMessage.d.ts +2 -2
  54. package/dist/types/models/contractNegotiation/IDataspaceProtocolContractOfferMessage.d.ts +2 -2
  55. package/dist/types/models/contractNegotiation/IDataspaceProtocolContractRequestMessage.d.ts +2 -2
  56. package/dist/types/models/dcat3/IDataspaceProtocolCatalog.d.ts +8 -9
  57. package/dist/types/models/dcat3/IDataspaceProtocolCatalogNoContext.d.ts +5 -0
  58. package/dist/types/models/dcat3/IDataspaceProtocolDataService.d.ts +2 -4
  59. package/dist/types/models/dcat3/IDataspaceProtocolDataServiceNoContext.d.ts +5 -0
  60. package/dist/types/models/dcat3/IDataspaceProtocolDataset.d.ts +5 -7
  61. package/dist/types/models/dcat3/IDataspaceProtocolDatasetNoContext.d.ts +5 -0
  62. package/dist/types/models/dcat3/IDataspaceProtocolDistribution.d.ts +4 -6
  63. package/dist/types/models/dcat3/IDataspaceProtocolDistributionNoContext.d.ts +5 -0
  64. package/dist/types/models/odrl/IDataspaceProtocolAgreement.d.ts +1 -1
  65. package/dist/types/models/odrl/IDataspaceProtocolAgreementNoContext.d.ts +5 -0
  66. package/dist/types/models/odrl/IDataspaceProtocolOffer.d.ts +1 -1
  67. package/dist/types/models/odrl/IDataspaceProtocolOfferNoContext.d.ts +5 -0
  68. package/dist/types/models/odrl/IDataspaceProtocolPolicy.d.ts +17 -0
  69. package/dist/types/models/odrl/IDataspaceProtocolPolicyNoContext.d.ts +5 -0
  70. package/dist/types/models/odrl/IDataspaceProtocolSet.d.ts +17 -0
  71. package/dist/types/models/odrl/IDataspaceProtocolSetNoContext.d.ts +5 -0
  72. package/docs/changelog.md +17 -0
  73. package/docs/reference/index.md +10 -0
  74. package/docs/reference/interfaces/IDataspaceProtocolAgreement.md +14 -1
  75. package/docs/reference/interfaces/IDataspaceProtocolCatalog.md +4 -4
  76. package/docs/reference/interfaces/IDataspaceProtocolContractAgreementMessage.md +1 -1
  77. package/docs/reference/interfaces/IDataspaceProtocolContractOfferMessage.md +1 -1
  78. package/docs/reference/interfaces/IDataspaceProtocolContractRequestMessage.md +1 -1
  79. package/docs/reference/interfaces/IDataspaceProtocolDataService.md +1 -1
  80. package/docs/reference/interfaces/IDataspaceProtocolDataset.md +3 -3
  81. package/docs/reference/interfaces/IDataspaceProtocolDistribution.md +2 -2
  82. package/docs/reference/interfaces/IDataspaceProtocolOffer.md +14 -1
  83. package/docs/reference/interfaces/IDataspaceProtocolPolicy.md +180 -0
  84. package/docs/reference/interfaces/IDataspaceProtocolSet.md +179 -0
  85. package/docs/reference/type-aliases/IDataspaceProtocolAgreementNoContext.md +5 -0
  86. package/docs/reference/type-aliases/IDataspaceProtocolCatalogNoContext.md +5 -0
  87. package/docs/reference/type-aliases/IDataspaceProtocolDataServiceNoContext.md +5 -0
  88. package/docs/reference/type-aliases/IDataspaceProtocolDatasetNoContext.md +5 -0
  89. package/docs/reference/type-aliases/IDataspaceProtocolDistributionNoContext.md +5 -0
  90. package/docs/reference/type-aliases/IDataspaceProtocolOfferNoContext.md +5 -0
  91. package/docs/reference/type-aliases/IDataspaceProtocolPolicyNoContext.md +5 -0
  92. package/docs/reference/type-aliases/IDataspaceProtocolSetNoContext.md +5 -0
  93. package/docs/reference/variables/DataspaceProtocolCatalogTypes.md +60 -0
  94. package/package.json +3 -3
@@ -15,7 +15,7 @@
15
15
  "type": "string"
16
16
  },
17
17
  {
18
- "$ref": "https://schema.twindev.org/dataspace-protocol/OdrlParty"
18
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlParty"
19
19
  }
20
20
  ],
21
21
  "description": "The assigner of the agreement. Required for Agreement policies."
@@ -26,11 +26,15 @@
26
26
  "type": "string"
27
27
  },
28
28
  {
29
- "$ref": "https://schema.twindev.org/dataspace-protocol/OdrlParty"
29
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlParty"
30
30
  }
31
31
  ],
32
32
  "description": "The assignee of the agreement. Required for Agreement policies."
33
33
  },
34
+ "@context": {
35
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlContextType",
36
+ "description": "The context for the policy. Must include \"https://www.w3.org/ns/odrl.jsonld\""
37
+ },
34
38
  "profile": {
35
39
  "anyOf": [
36
40
  {
@@ -51,10 +55,10 @@
51
55
  "type": "string"
52
56
  },
53
57
  {
54
- "$ref": "https://schema.twindev.org/dataspace-protocol/OdrlAsset"
58
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlAsset"
55
59
  },
56
60
  {
57
- "$ref": "https://schema.twindev.org/dataspace-protocol/OdrlAssetCollection"
61
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlAssetCollection"
58
62
  },
59
63
  {
60
64
  "type": "array",
@@ -64,10 +68,10 @@
64
68
  "type": "string"
65
69
  },
66
70
  {
67
- "$ref": "https://schema.twindev.org/dataspace-protocol/OdrlAsset"
71
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlAsset"
68
72
  },
69
73
  {
70
- "$ref": "https://schema.twindev.org/dataspace-protocol/OdrlAssetCollection"
74
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlAssetCollection"
71
75
  }
72
76
  ]
73
77
  }
@@ -78,26 +82,26 @@
78
82
  "action": {
79
83
  "anyOf": [
80
84
  {
81
- "$ref": "https://schema.twindev.org/dataspace-protocol/ActionType"
85
+ "$ref": "https://schema.twindev.org/w3c-odrl/ActionType"
82
86
  },
83
87
  {
84
88
  "type": "string"
85
89
  },
86
90
  {
87
- "$ref": "https://schema.twindev.org/dataspace-protocol/OdrlAction"
91
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlAction"
88
92
  },
89
93
  {
90
94
  "type": "array",
91
95
  "items": {
92
96
  "anyOf": [
93
97
  {
94
- "$ref": "https://schema.twindev.org/dataspace-protocol/ActionType"
98
+ "$ref": "https://schema.twindev.org/w3c-odrl/ActionType"
95
99
  },
96
100
  {
97
101
  "type": "string"
98
102
  },
99
103
  {
100
- "$ref": "https://schema.twindev.org/dataspace-protocol/OdrlAction"
104
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlAction"
101
105
  }
102
106
  ]
103
107
  }
@@ -120,18 +124,18 @@
120
124
  "description": "The parent policy(ies) this policy inherits from. IRIs identifying the parent Policy(ies)."
121
125
  },
122
126
  "conflict": {
123
- "$ref": "https://schema.twindev.org/dataspace-protocol/ConflictStrategyType",
127
+ "$ref": "https://schema.twindev.org/w3c-odrl/ConflictStrategyType",
124
128
  "description": "The conflict resolution strategy.\n- perm: Permissions override Prohibitions\n- prohibit: Prohibitions override Permissions\n- invalid: Policy is void if conflicts exist (default)"
125
129
  },
126
130
  "permission": {
127
131
  "anyOf": [
128
132
  {
129
- "$ref": "https://schema.twindev.org/dataspace-protocol/OdrlPermission"
133
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlPermission"
130
134
  },
131
135
  {
132
136
  "type": "array",
133
137
  "items": {
134
- "$ref": "https://schema.twindev.org/dataspace-protocol/OdrlPermission"
138
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlPermission"
135
139
  }
136
140
  }
137
141
  ],
@@ -140,12 +144,12 @@
140
144
  "prohibition": {
141
145
  "anyOf": [
142
146
  {
143
- "$ref": "https://schema.twindev.org/dataspace-protocol/OdrlProhibition"
147
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlProhibition"
144
148
  },
145
149
  {
146
150
  "type": "array",
147
151
  "items": {
148
- "$ref": "https://schema.twindev.org/dataspace-protocol/OdrlProhibition"
152
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlProhibition"
149
153
  }
150
154
  }
151
155
  ],
@@ -154,12 +158,12 @@
154
158
  "obligation": {
155
159
  "anyOf": [
156
160
  {
157
- "$ref": "https://schema.twindev.org/dataspace-protocol/OdrlDuty"
161
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlDuty"
158
162
  },
159
163
  {
160
164
  "type": "array",
161
165
  "items": {
162
- "$ref": "https://schema.twindev.org/dataspace-protocol/OdrlDuty"
166
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlDuty"
163
167
  }
164
168
  }
165
169
  ],
@@ -171,6 +175,7 @@
171
175
  }
172
176
  },
173
177
  "required": [
178
+ "@context",
174
179
  "@id",
175
180
  "@type",
176
181
  "assignee",
@@ -0,0 +1,6 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolAgreementNoContext",
4
+ "description": "Agreement interface compliant with Eclipse Data Space Protocol, excluding the `@context` property.",
5
+ "$ref": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolAgreement"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolCatalogNoContext",
4
+ "description": "Catalog interface compliant with Eclipse Data Space Protocol, excluding the `@context` property.",
5
+ "$ref": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolCatalog"
6
+ }
@@ -68,7 +68,7 @@
68
68
  "description": "The consumer id for the contract."
69
69
  },
70
70
  "agreement": {
71
- "$ref": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolAgreement",
71
+ "$ref": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolAgreementNoContext",
72
72
  "description": "The agreement being sent."
73
73
  },
74
74
  "callbackAddress": {
@@ -68,7 +68,7 @@
68
68
  "description": "The consumer id for the contract."
69
69
  },
70
70
  "offer": {
71
- "$ref": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolOffer",
71
+ "$ref": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolOfferNoContext",
72
72
  "description": "The offer being requested."
73
73
  },
74
74
  "callbackAddress": {
@@ -68,7 +68,7 @@
68
68
  "description": "The consumer id for the contract."
69
69
  },
70
70
  "offer": {
71
- "$ref": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolOffer",
71
+ "$ref": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolOfferNoContext",
72
72
  "description": "The offer being requested."
73
73
  },
74
74
  "callbackAddress": {
@@ -0,0 +1,6 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolDataServiceNoContext",
4
+ "description": "Data Service interface compliant with Eclipse Data Space Protocol, excluding the `@context` property.",
5
+ "$ref": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolDataService"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolDatasetNoContext",
4
+ "description": "Dataset interface compliant with Eclipse Data Space Protocol, excluding the `@context` property.",
5
+ "$ref": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolDataset"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolDistributionNoContext",
4
+ "description": "Distribution interface compliant with Eclipse Data Space Protocol, excluding the `@context` property.",
5
+ "$ref": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolDistribution"
6
+ }
@@ -15,11 +15,15 @@
15
15
  "type": "string"
16
16
  },
17
17
  {
18
- "$ref": "https://schema.twindev.org/dataspace-protocol/OdrlParty"
18
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlParty"
19
19
  }
20
20
  ],
21
21
  "description": "The assigner of the offer. Required for Offer policies."
22
22
  },
23
+ "@context": {
24
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlContextType",
25
+ "description": "The context for the policy. Must include \"https://www.w3.org/ns/odrl.jsonld\""
26
+ },
23
27
  "profile": {
24
28
  "anyOf": [
25
29
  {
@@ -40,10 +44,10 @@
40
44
  "type": "string"
41
45
  },
42
46
  {
43
- "$ref": "https://schema.twindev.org/dataspace-protocol/OdrlParty"
47
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlParty"
44
48
  },
45
49
  {
46
- "$ref": "https://schema.twindev.org/dataspace-protocol/OdrlPartyCollection"
50
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlPartyCollection"
47
51
  },
48
52
  {
49
53
  "type": "array",
@@ -53,10 +57,10 @@
53
57
  "type": "string"
54
58
  },
55
59
  {
56
- "$ref": "https://schema.twindev.org/dataspace-protocol/OdrlParty"
60
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlParty"
57
61
  },
58
62
  {
59
- "$ref": "https://schema.twindev.org/dataspace-protocol/OdrlPartyCollection"
63
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlPartyCollection"
60
64
  }
61
65
  ]
62
66
  }
@@ -70,10 +74,10 @@
70
74
  "type": "string"
71
75
  },
72
76
  {
73
- "$ref": "https://schema.twindev.org/dataspace-protocol/OdrlAsset"
77
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlAsset"
74
78
  },
75
79
  {
76
- "$ref": "https://schema.twindev.org/dataspace-protocol/OdrlAssetCollection"
80
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlAssetCollection"
77
81
  },
78
82
  {
79
83
  "type": "array",
@@ -83,10 +87,10 @@
83
87
  "type": "string"
84
88
  },
85
89
  {
86
- "$ref": "https://schema.twindev.org/dataspace-protocol/OdrlAsset"
90
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlAsset"
87
91
  },
88
92
  {
89
- "$ref": "https://schema.twindev.org/dataspace-protocol/OdrlAssetCollection"
93
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlAssetCollection"
90
94
  }
91
95
  ]
92
96
  }
@@ -97,26 +101,26 @@
97
101
  "action": {
98
102
  "anyOf": [
99
103
  {
100
- "$ref": "https://schema.twindev.org/dataspace-protocol/ActionType"
104
+ "$ref": "https://schema.twindev.org/w3c-odrl/ActionType"
101
105
  },
102
106
  {
103
107
  "type": "string"
104
108
  },
105
109
  {
106
- "$ref": "https://schema.twindev.org/dataspace-protocol/OdrlAction"
110
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlAction"
107
111
  },
108
112
  {
109
113
  "type": "array",
110
114
  "items": {
111
115
  "anyOf": [
112
116
  {
113
- "$ref": "https://schema.twindev.org/dataspace-protocol/ActionType"
117
+ "$ref": "https://schema.twindev.org/w3c-odrl/ActionType"
114
118
  },
115
119
  {
116
120
  "type": "string"
117
121
  },
118
122
  {
119
- "$ref": "https://schema.twindev.org/dataspace-protocol/OdrlAction"
123
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlAction"
120
124
  }
121
125
  ]
122
126
  }
@@ -139,18 +143,18 @@
139
143
  "description": "The parent policy(ies) this policy inherits from. IRIs identifying the parent Policy(ies)."
140
144
  },
141
145
  "conflict": {
142
- "$ref": "https://schema.twindev.org/dataspace-protocol/ConflictStrategyType",
146
+ "$ref": "https://schema.twindev.org/w3c-odrl/ConflictStrategyType",
143
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)"
144
148
  },
145
149
  "permission": {
146
150
  "anyOf": [
147
151
  {
148
- "$ref": "https://schema.twindev.org/dataspace-protocol/OdrlPermission"
152
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlPermission"
149
153
  },
150
154
  {
151
155
  "type": "array",
152
156
  "items": {
153
- "$ref": "https://schema.twindev.org/dataspace-protocol/OdrlPermission"
157
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlPermission"
154
158
  }
155
159
  }
156
160
  ],
@@ -159,12 +163,12 @@
159
163
  "prohibition": {
160
164
  "anyOf": [
161
165
  {
162
- "$ref": "https://schema.twindev.org/dataspace-protocol/OdrlProhibition"
166
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlProhibition"
163
167
  },
164
168
  {
165
169
  "type": "array",
166
170
  "items": {
167
- "$ref": "https://schema.twindev.org/dataspace-protocol/OdrlProhibition"
171
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlProhibition"
168
172
  }
169
173
  }
170
174
  ],
@@ -173,12 +177,12 @@
173
177
  "obligation": {
174
178
  "anyOf": [
175
179
  {
176
- "$ref": "https://schema.twindev.org/dataspace-protocol/OdrlDuty"
180
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlDuty"
177
181
  },
178
182
  {
179
183
  "type": "array",
180
184
  "items": {
181
- "$ref": "https://schema.twindev.org/dataspace-protocol/OdrlDuty"
185
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlDuty"
182
186
  }
183
187
  }
184
188
  ],
@@ -190,6 +194,7 @@
190
194
  }
191
195
  },
192
196
  "required": [
197
+ "@context",
193
198
  "@id",
194
199
  "@type",
195
200
  "assigner"
@@ -0,0 +1,6 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolOfferNoContext",
4
+ "description": "Offer interface compliant with Eclipse Data Space Protocol, excluding the `@context` property.",
5
+ "$ref": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolOffer"
6
+ }
@@ -0,0 +1,219 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolPolicy",
4
+ "description": "Policy interface compliant with Eclipse Data Space Protocol.\n\nExtends IOdrlPolicy with DS Protocol-specific constraints:\n- `@id` is REQUIRED (used as the primary policy identifier in DS Protocol)\n- `@context` is omitted (inherited from the parent Dataset/Distribution)",
5
+ "type": "object",
6
+ "properties": {
7
+ "@context": {
8
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlContextType",
9
+ "description": "The context for the policy. Must include \"https://www.w3.org/ns/odrl.jsonld\""
10
+ },
11
+ "@type": {
12
+ "$ref": "https://schema.twindev.org/w3c-odrl/PolicyType",
13
+ "description": "The type of policy. Must be one of: \"Set\", \"Offer\", \"Agreement\""
14
+ },
15
+ "profile": {
16
+ "anyOf": [
17
+ {
18
+ "type": "string"
19
+ },
20
+ {
21
+ "type": "array",
22
+ "items": {
23
+ "type": "string"
24
+ }
25
+ }
26
+ ],
27
+ "description": "The profile(s) this policy conforms to. IRIs identifying the ODRL Profile(s)."
28
+ },
29
+ "assigner": {
30
+ "anyOf": [
31
+ {
32
+ "type": "string"
33
+ },
34
+ {
35
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlParty"
36
+ },
37
+ {
38
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlPartyCollection"
39
+ },
40
+ {
41
+ "type": "array",
42
+ "items": {
43
+ "anyOf": [
44
+ {
45
+ "type": "string"
46
+ },
47
+ {
48
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlParty"
49
+ },
50
+ {
51
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlPartyCollection"
52
+ }
53
+ ]
54
+ }
55
+ }
56
+ ],
57
+ "description": "The assigner of the policy. Applies to all rules unless overridden at rule level."
58
+ },
59
+ "assignee": {
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
+ {
71
+ "type": "array",
72
+ "items": {
73
+ "anyOf": [
74
+ {
75
+ "type": "string"
76
+ },
77
+ {
78
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlParty"
79
+ },
80
+ {
81
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlPartyCollection"
82
+ }
83
+ ]
84
+ }
85
+ }
86
+ ],
87
+ "description": "The assignee of the policy. Applies to all rules unless overridden at rule level."
88
+ },
89
+ "target": {
90
+ "anyOf": [
91
+ {
92
+ "type": "string"
93
+ },
94
+ {
95
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlAsset"
96
+ },
97
+ {
98
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlAssetCollection"
99
+ },
100
+ {
101
+ "type": "array",
102
+ "items": {
103
+ "anyOf": [
104
+ {
105
+ "type": "string"
106
+ },
107
+ {
108
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlAsset"
109
+ },
110
+ {
111
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlAssetCollection"
112
+ }
113
+ ]
114
+ }
115
+ }
116
+ ],
117
+ "description": "The target asset for the rule."
118
+ },
119
+ "action": {
120
+ "anyOf": [
121
+ {
122
+ "$ref": "https://schema.twindev.org/w3c-odrl/ActionType"
123
+ },
124
+ {
125
+ "type": "string"
126
+ },
127
+ {
128
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlAction"
129
+ },
130
+ {
131
+ "type": "array",
132
+ "items": {
133
+ "anyOf": [
134
+ {
135
+ "$ref": "https://schema.twindev.org/w3c-odrl/ActionType"
136
+ },
137
+ {
138
+ "type": "string"
139
+ },
140
+ {
141
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlAction"
142
+ }
143
+ ]
144
+ }
145
+ }
146
+ ],
147
+ "description": "The action associated with the rule."
148
+ },
149
+ "inheritFrom": {
150
+ "anyOf": [
151
+ {
152
+ "type": "string"
153
+ },
154
+ {
155
+ "type": "array",
156
+ "items": {
157
+ "type": "string"
158
+ }
159
+ }
160
+ ],
161
+ "description": "The parent policy(ies) this policy inherits from. IRIs identifying the parent Policy(ies)."
162
+ },
163
+ "conflict": {
164
+ "$ref": "https://schema.twindev.org/w3c-odrl/ConflictStrategyType",
165
+ "description": "The conflict resolution strategy.\n- perm: Permissions override Prohibitions\n- prohibit: Prohibitions override Permissions\n- invalid: Policy is void if conflicts exist (default)"
166
+ },
167
+ "permission": {
168
+ "anyOf": [
169
+ {
170
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlPermission"
171
+ },
172
+ {
173
+ "type": "array",
174
+ "items": {
175
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlPermission"
176
+ }
177
+ }
178
+ ],
179
+ "description": "The permissions in the policy. At least one of permission, prohibition, or obligation must be present."
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. At least one of permission, prohibition, or obligation must be present."
194
+ },
195
+ "obligation": {
196
+ "anyOf": [
197
+ {
198
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlDuty"
199
+ },
200
+ {
201
+ "type": "array",
202
+ "items": {
203
+ "$ref": "https://schema.twindev.org/w3c-odrl/OdrlDuty"
204
+ }
205
+ }
206
+ ],
207
+ "description": "The obligations in the policy. At least one of permission, prohibition, or obligation must be present."
208
+ },
209
+ "@id": {
210
+ "type": "string",
211
+ "description": "Unique identifier for the policy."
212
+ }
213
+ },
214
+ "required": [
215
+ "@context",
216
+ "@id",
217
+ "@type"
218
+ ]
219
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolPolicyNoContext",
4
+ "description": "Policy interface compliant with Eclipse Data Space Protocol, excluding the `@context` property.",
5
+ "$ref": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolPolicy"
6
+ }