-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add binding to tx namespace for credential policy
- Loading branch information
Showing
12 changed files
with
204 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
core/json-ld-core/src/main/resources/document/edc-v1.jsonld
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
"@context": { | ||
"edc": "https://w3id.org/edc/v0.0.1/ns/", | ||
"@vocab": "https://w3id.org/edc/v0.0.1/ns/", | ||
"schema": "http://schema.org/", | ||
"PolicyDefinition": "edc:PolicyDefinition", | ||
"AssetEntryNewDto": "edc:AssetEntryNewDto", | ||
"DataAddress": "edc:DataAddress", | ||
"NegotiationState": "edc:NegotiationState", | ||
"TerminateNegotiation": "edc:TerminateNegotiation", | ||
"ContractRequest": "edc:ContractRequest", | ||
"policy": { | ||
"@id": "edc:policy", | ||
"@type": "@id", | ||
"@context": [ | ||
"http://www.w3.org/ns/odrl.jsonld" | ||
] | ||
}, | ||
"createdAt": "edc:createdAt", | ||
"properties": "edc:properties", | ||
"privateProperties": "edc:privateProperties", | ||
"dataAddress": "edc:dataAddress", | ||
"type": "edc:type", | ||
"counterPartyAddress": "edc:counterPartyAddress", | ||
"protocol": "edc:protocol", | ||
"querySpec": "edc:querySpec", | ||
"accessPolicyId": "edc:accessPolicyId", | ||
"contractPolicyId": "edc:contractPolicyId", | ||
"assetsSelector": "edc:assetsSelector", | ||
"state": "edc:state", | ||
"reason": "edc:reason", | ||
"connectorAddress": "edc:connectorAddress", | ||
"offer": "edc:offer", | ||
"asset": "edc:asset", | ||
"offerId": "edc:offerId", | ||
"assetId": "edc:assetId", | ||
"contractId": "edc:contractId", | ||
"connectorId": "edc:connectorId", | ||
"callbackAddresses": "edc:callbackAddresses", | ||
"dataDestination": "edc:dataDestination", | ||
"baseUrl": "edc:baseUrl", | ||
"providerId": "edc:providerId", | ||
"uri": "edc:uri", | ||
"events": "edc:events", | ||
"transactional": "edc:transactional" | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
core/json-ld-core/src/main/resources/document/tx-v1.jsonld
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"@context": { | ||
"@version": 1.1, | ||
"@protected": true, | ||
"tx": "https://w3id.org/tractusx/v0.0.1/ns/", | ||
"BusinessPartnerNumber": "tx:BusinessPartnerNumber", | ||
"NegotiationInitiateRequestDto": "tx:NegotiationInitiateRequestDto", | ||
"BusinessPartnerGroup": "tx:BusinessPartnerGroup", | ||
"EndpointDataReferenceEntry": "tx:EndpointDataReferenceEntry", | ||
"Membership": "tx:Membership", | ||
"Dismantler": "tx:Dismantler", | ||
"FrameworkAgreement.pcf": "tx:FrameworkAgreement.pcf", | ||
"FrameworkAgreement.sustainability": "tx:FrameworkAgreement.sustainability", | ||
"FrameworkAgreement.quality": "tx:FrameworkAgreement.quality", | ||
"FrameworkAgreement.traceability": "tx:FrameworkAgreement.traceability", | ||
"FrameworkAgreement.behavioraltwin": "tx:FrameworkAgreement.behavioraltwin", | ||
"BPN": "tx:BPN", | ||
"expirationDate": "tx:expirationDate", | ||
"edrState": "tx:edrState" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
edc-tests/e2e-tests/src/test/resources/framework-policy.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"@context": [ | ||
"https://w3id.org/edc/v0.0.1", | ||
"https://w3id.org/tractusx/edc/v0.0.1", | ||
"http://www.w3.org/ns/odrl.jsonld" | ||
], | ||
"@type": "PolicyDefinitionRequest", | ||
"@id": "${POLICY_ID}", | ||
"policy": { | ||
"@type": "Set", | ||
"permission": [ | ||
{ | ||
"action": "use", | ||
"constraint": [ | ||
{ | ||
"leftOperand": "${FRAMEWORK_CREDENTIAL}", | ||
"operator": "eq", | ||
"rightOperand": "active" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters