Skip to content

Commit

Permalink
chore: management API JSON-LD context improvements (#4485)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolf4ood authored Sep 23, 2024
1 parent 3aa685d commit 31ef859
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,15 @@
"@version": 1.1,
"edc": "https://w3id.org/edc/v0.0.1/ns/",
"Asset": "edc:Asset",
"PolicyDefinition": "edc:PolicyDefinition",
"PolicyDefinition": {
"@id": "edc:PolicyDefinition",
"@context": {
"@import": "http://www.w3.org/ns/odrl.jsonld",
"@propagate": true,
"uid": null,
"type": null
}
},
"DataAddress": {
"@id": "edc:DataAddress",
"@context": {
Expand All @@ -13,7 +21,15 @@
},
"ContractDefinition": "edc:ContractDefinition",
"Criterion": "edc:Criterion",
"ContractRequest": "edc:ContractRequest",
"ContractRequest": {
"@id": "edc:ContractRequest",
"@context": {
"@import": "http://www.w3.org/ns/odrl.jsonld",
"@propagate": true,
"uid": null,
"type": null
}
},
"QuerySpec": "edc:QuerySpec",
"ContractNegotiation": {
"@id": "edc:ContractNegotiation",
Expand Down Expand Up @@ -91,14 +107,7 @@
},
"providerId": "edc:providerId",
"policy": {
"@id": "edc:policy",
"@context": [
"http://www.w3.org/ns/odrl.jsonld",
{
"uid": null,
"type": null
}
]
"@id": "edc:policy"
},
"counterPartyId": "edc:counterPartyId",
"state": "edc:state",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ private static JsonArrayBuilder createCallbackAddress() {

public static JsonObjectBuilder policy(JsonObject permission) {
return createObjectBuilder()
.add(TYPE, "http://www.w3.org/ns/odrl/2/Set")
.add(TYPE, "Set")
.add("obligation", createArrayBuilder().build())
.add("permission", permission)
.add("target", "assetId")
Expand Down

0 comments on commit 31ef859

Please sign in to comment.