Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ODRL to REGO mapping #86

Open
riannella opened this issue Nov 12, 2024 · 3 comments
Open

ODRL to REGO mapping #86

riannella opened this issue Nov 12, 2024 · 3 comments
Labels
Industry Industry Outreach

Comments

@riannella
Copy link
Collaborator

Would it be possible to create (an automated) mapping from ODRL to REGO.
https://www.openpolicyagent.org/docs/latest/policy-language/

REGO is the language used to drive the Open Policy Agent https://www.openpolicyagent.org

@riannella riannella added the Industry Industry Outreach label Nov 12, 2024
@simonstey
Copy link
Collaborator

wow that looks cool! if REGO would have had an RDF representation, we could easily define SHACL rules to map from one to the other ;)

@joshcornejo
Copy link
Collaborator

This is something that @jsalvachua has in his roadmap, I have a plan to do this at some point, also a mapping to openFGA - but at the moment, my results with "native" ODRL PDP (policy decision point) are good (1 - 30 microseconds per constraint when the cache is "warm", and when cold still < 50 milliseconds when asking for complex things like odrl:isPartOf that have to query the information from the database and work the paths out).

Screenshot 2024-11-13 at 08 22 37

Something to consider for both is that those are zero-trust languages ('everything is prohibited unless explicitly permitted'). So, there is an inherent complexity to working out when a Permission and a Prohibition intersect how those will pan out as permissions in REGO. Also, they don't have the concept of Duties (those would be left entirely for post-processing) and there is no implicit way to "notify" or "interact" with the user.

@joshcornejo
Copy link
Collaborator

someone from fiware has already started, but doesn't look very active. @jsalvachua

https://github.com/wistefan/odrl-pap/tree/main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Industry Industry Outreach
Projects
None yet
Development

No branches or pull requests

3 participants