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
What does it mean for permissions/prohibitions/duties if their constraint(s) are (un)satisfied? #112
Comments
In the meantime, the section on constraints was reworked and quoted paragraph now reads as follows:
What is the Rule referring to? I suggest replacing Permission, Prohibition, or Duty entity with Rule and aligning the rest with:
I'm not sure how Consider following example: :p1 a odrl:Permission ;
odrl:action odrl:distribute ;
odrl:constraint :c1, :c1, :c2, :c3 .
:c1 a odrl:Constraint ;
odrl:leftOperand odrl:spatial ;
odrl:operator odrl:eq ;
odrl:rightOperand <http://ontologi.es/place/IT> .
:c2 a odrl:Constraint ;
odrl:leftOperand odrl:spatial ;
odrl:operator odrl:eq ;
odrl:rightOperand <http://ontologi.es/place/IT> .
:c3 a odrl:Constraint ;
odrl:leftOperand odrl:spatial ;
odrl:operator odrl:eq ;
odrl:rightOperand <http://ontologi.es/place/AUT> . what constraints should be "merged" together and why are they considered to be the "same"? [1] http://w3c.github.io/poe/model/#prohibition |
related #68 |
@simonstey I assume the first part of your comment above was just to replace "Permission, Prohibition, or Duty entity" with "Rule"? |
I don't think we need the second part now on "same constraint" (I cannot remember why we added it...but there was a reason ;-) I will remove that text. |
Kind of.. I suggest to replace:
with something along the lines of: "When multiple Constraints are attached to the same Rule they are interpreted as conjunction. A Rule becomes effective if all of its Constraints are satisfied."
+1 |
Done |
The first part hasn't changed though.. |
Sorry, fixed now |
which means -> {
"@context": {
"odrl": "http://www.w3.org/ns/odrl/2/"
},
"@type": "odrl:Offer",
"@id": "http://example.com/policy:88",
"permission": [{
"assigner": "http://example.com/assigner:sony",
"target": "http://example.com/music/1999.mp3",
"action": "odrl:play",
"duty": [{
"action": "odrl:compensate",
"constraint": [{
"leftOperand": "odrl:payAmount",
"operator": "odrl:eq",
"rightOperand": "5.00",
"unit":
"https://www.currency-iso.org/dam/downloads/lists/list_one.xml#AUD"
}],
"constraint": [{
"leftOperand": "odrl:event",
"operator": "odrl:lt",
"rightOperand": "odrl:policyUsage"
}]
}]
}]
} as long as payamount != 5AUD, the duty is not in effect, hence the permission is granted |
Hi @simonstey - i'm sorry but I don't follow the outcome. Would it be better to state "If all constraints of a Duty are satisfied, then the Duty is considered to be fulfilled". |
Yes, see e.g. ->
Yes.
|
Added 1) and 2) to Duty section and 3) to Permission section. |
@simonstey Are you OK with this issue now? |
http://w3c.github.io/poe/model/#constraint still reads:
which is not the case for Duties |
I will change that para to now read: "If there are multiple Constraints applied to a Rule, then they are interpreted as conjunction in that each Constraint MUST be satisfied." |
The last para of 3.6 Constraint section now reads: "When multiple Constraints apply to the same Rule they are interpreted as conjunction. A Rule becomes effective if all of its Constraints are satisfied." @simonstey ok? |
reopen due to #211 |
@simonstey Why is still unresolved here? That is not in #211 ? |
TRACKER ISSUE-10: What does it mean for permissions/prohibitions/duties if their constraint(s) are (un)satisfied?
satisfiability of constraints
What does it mean for permissions/prohibitions/duties if their constraint(s) are (un)satisfied?
State:
RAISED
Product:
POE - Information Model
Raised by:
Simon Steyskal
Opened on:
2016-11-08
Description:
http://w3c.github.io/poe/model/#constraint states:
"[...] If multiple Constraint entities are linked to the same Permission, Prohibition, or Duty entity, then all of the Constraint entities MUST be satisfied. That is, all the Constraint entities are (boolean) anded. [...]"
Without actually explaining the concept of "satisfying a Constraint entity".
=> How can someone "satisfy a Constraint entity"?
=> What does it mean for permissions/prohibitions/duties if their constraints are unsatisfied?
=> Is a permission having an unsatisfied constraint equivalent to a prohibition? (and vice versa)
=> Should a permission/prohibition having an unsatisfied constraint simply be ignored? If so, is it possible for "ignored" perm/proh to become "active" again?
simon
The text was updated successfully, but these errors were encountered: