fix: add binding to tx namespace for credential policy#713
Merged
wolf4ood merged 1 commit intoeclipse-tractusx:mainfrom Aug 22, 2023
Merged
fix: add binding to tx namespace for credential policy#713wolf4ood merged 1 commit intoeclipse-tractusx:mainfrom
wolf4ood merged 1 commit intoeclipse-tractusx:mainfrom
Conversation
5ee099e to
f9e0acb
Compare
f9e0acb to
b511ae8
Compare
|
Kudos, SonarCloud Quality Gate passed!
|
Contributor
Author
|
\cc @yurimssilva |
paullatzelsperger
approved these changes
Aug 21, 2023
RoseMgbii-b
pushed a commit
to RoseMgbii-b/tractusx-edc
that referenced
this pull request
Mar 5, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.








WHAT
Add fix for
leftOperandwhen using@contextof odrl which get expanded with wrong namespace.to fix this the functions are registered also in the
txnamespace and the final usage will be{ "@context": { "@vocab": "https://w3id.org/edc/v0.0.1/ns/", "tx" : "https://w3id.org/tractusx/v0.0.1/ns/" }, "@type": "PolicyDefinition", "@id": "{{policy-id'}}", "policy": { "@context": "http://www.w3.org/ns/odrl.jsonld", "permission": { "action": "use", "constraint": { "leftOperand": "tx:Dismantler", "operator": "eq", "rightOperand": "active" } } } }WHY
bugfix
FURTHER NOTES
In addition in order to simplify policy expressions 2 context where drafted and added in the cache:
This two for the moment are just an exploration, once we decided that they works well we can proceed to upstream the
edc one and fetch the two persistent id in
https://w3id.orgHere an example on how it will look like with
@context{ "@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": "Dismantler", "operator": "eq", "rightOperand": "active" } ] } ] } }Closes #616