Re: [poe] EXAMPLE 19 makes no sense

> It probably makes more "semantic" sense to use the same left operand.
Such as:
C1: media = "print"
C2: media = "online"

only if you want to explicitly rule out cases where media is both print and online, otherwise you would use again OR, e.g.:

```turtle
<http://example.com/policy:88>
    a odrl:Offer ;
    # if you pay 5 euro, we allow media only to be either print or online, but not both
    odrl:permission [ 
        odrl:target <http://example.com/book/1999.mp3> ;
        odrl:assigner <http://example.com/org/paisley-park> ;
        odrl:action odrl:play ;
        odrl:duty <pay5euro> ; 
        odrl:constraint [ 
            odrl:leftOperand <http://example.com/policy:88/C1> ;
            odrl:operator odrl:xor ; 
            odrl:rightOperand <http://example.com/policy:88/C2> ;                                                     
        ]
    ] ;
   # if you pay 8 euro, we allow media to be both print and online
   odrl:permission [ 
        odrl:target <http://example.com/book/1999.mp3> ;
        odrl:assigner <http://example.com/org/paisley-park> ;
        odrl:action odrl:play ;
        odrl:duty <pay8euro> ; 
        odrl:constraint [ 
            odrl:leftOperand <http://example.com/policy:88/C1> ;
            odrl:operator odrl:or ;
            odrl:rightOperand <http://example.com/policy:88/C2> ;                                                     
        ]
    ] .

-- 
GitHub Notification of comment by simonstey
Please view or discuss this issue at https://github.com/w3c/poe/issues/205#issuecomment-311270100 using your GitHub account

Received on Tuesday, 27 June 2017 06:56:50 UTC