-
Notifications
You must be signed in to change notification settings - Fork 244
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
Policy model rightOperand can't handle list of literal values #4525
Comments
Complex types are not currently supported. The core policy evaluator can handle complex types, but a number of considerations would need to be taken into account. The most important is that JSON-LD expands properties into array structures, so it is not possible to reliably determine if a type is a scalar value or an array of types. The code that would need to be modified is This is a feature that requires investigation, and barring a proposal and subsequent PR, I don't think will get priority. |
Thanks for the clarification and I hope to get resolved at some point, as it is limiting the possible policies that a dataspace can use, if we cannot represent them with EDC to be used in order to make an offer. You mentioned that the core policy evaluator can handle complex types, meaning lists of literals like the one above? I haven't checked the policy evaluator, my initial focus was to check what policies I could represent within EDC, as my understanding was that the policy evaluator evaluates the policy that comes from a specific contract, which are based policies (aka odrl:sets) that are stored within EDC and have been used in offers. Do I miss something? |
Look at the method I pointed to in my previous post. The best way to prioritize this is to submit a proposal and subsequent PR. |
This issue is stale because it has been open for 14 days with no activity. |
This issue was closed because it has been inactive for 7 days since being marked as stale. |
Bug Report
Describe the Bug
Create a policy that contains a list of literals as rightOperand in a constraint as the following:
Expected Behavior
Retrieve the policy, where the odrl:rightOperand is a list of the provided values, similar to the one provided when creating the policy.
Observed Behavior
When retrieving the above create policy we get the following. Please note how odrl:rightOperand is returned
Context Information
EDC seems to support the representation of set operators. However, when a set operator is used, ODRL models expects odrl:rightOperant to be
(from https://www.w3.org/TR/odrl-model/#constraint) .
The error probably comes from EDC implementation of the Expressions as a single literal value.
Any plans to support list of literal values, in order to support set operators representation? Or is the above policy representation wrong and EDC expect the input somehow different?
Thanks is advance
The text was updated successfully, but these errors were encountered: