Updated Constraint Example

I have updated the example sent last week showing the Aircraft music license Offer (see below).

One issue was whether to use the property (eg odrl:deliveryChannel) as the subject of the constraint, or the resource (ie <https://iata.org/aircraft>)
In scenarios where the property could be used more than once, then we have to use the resource (which is what the updated example shows now). 

Also, the default (for backwards compatibility) will always be the resource of the action (as there can only be one action in a Perm/Prohib/Duty). The example below does not include the subject in these cases.

I have also added a constraint on the Asset (as indicated by the odrl:subject) which says the Target is only french music in the Asset.


Renato Iannella, Monegraph
Co-Chair, W3C Permissions & Obligations Expression (POE) Working Group

============
<http://socan.ca/tariff:13A>
  a odrl:Offer ;
  odrl:permission [
    a odrl:Permission ;
    odrl:assigner <http://socan.ca/> ;
    odrl:target <http://socan.ca/catalogue> ;
    odrl:constraint [
      a odrl:Constraint ;
      odrl:subject <http://socan.ca/catalogue> ;
      odrl:language <urn:ietf:bcp47:fr> ;
      odrl:operator odrl:eq
    ] ;
    odrl:action odrl:play ;
    odrl:constraint [
      a odrl:Constraint ;
      odrl:deliveryChannel <https://iata.org/aircraft> ;
      odrl:operator odrl:eq
    ] ;
    odrl:constraint [
    a odrl:Constraint ;
      odrl:subject <https://iata.org/aircraft> ;
      iata:seats 100 ;
      odrl:operator odrl:lteq
    ] ;
    odrl:constraint [
    a odrl:Constraint ;
      odrl:subject <https://iata.org/aircraft> ;
      iata:operations <https://iata.org/ground> ;
      odrl:operator odrl:eq
    ] ;
    odrl:duty [
      a odrl:Duty ;
      odrl:action odrl:compensate ;
      odrl:constraint [
      a odrl:Constraint ;
        odrl:payAmount 50.00 ;
        odrl:operator odrl:eq ;
        odrl:unit <http://currency-iso.org/AUD>;
        odrl:unitOfCount <https://iata.org/aircraft>
        ] ;
      odrl:constraint [
      a odrl:Constraint ;
        odrl:timeInterval P3M ;
        odrl:operator odrl:eq 
       ] 
      ]
  ] .
==========

Received on Monday, 21 November 2016 14:00:34 UTC