Duty property with a Permission (eg15)

A policy from the W3C ODRL examples. The table gives the source and what the policy shows, in the source's words.

SourceWhat it shows
model#duty-permExample Use Case: The Party http://example.com/assigner:sony makes an Offer to play the target asset http://example.com/music/1999.mp3. The permission includes a duty for the compensate action that has a refinement of payAmount of $EU5.00. The duty also has a constraint of event is less than policyUsage, meaning the duty rule must be exercised (ie the compensation) before the permission rule can be exercised.

Policy #

{
  "@context": "http://www.w3.org/ns/odrl.jsonld",
  "@type": "Offer",
  "uid": "http://example.com/policy:88",
  "profile": "http://example.com/odrl:profile:09",
  "permission": [
    {
      "assigner": "http://example.com/assigner:sony",
      "target": "http://example.com/music/1999.mp3",
      "action": "play",
      "duty": [
        {
          "action": [
            {
              "rdf:value": {
                "@id": "odrl:compensate"
              },
              "refinement": [
                {
                  "leftOperand": "payAmount",
                  "operator": "eq",
                  "rightOperand": {
                    "@value": "5.00",
                    "@type": "xsd:decimal"
                  },
                  "unit": "http://dbpedia.org/resource/Euro"
                }
              ]
            }
          ],
          "constraint": [
            {
              "leftOperand": "event",
              "operator": "lt",
              "rightOperand": {
                "@id": "odrl:policyUsage"
              }
            }
          ]
        }
      ]
    }
  ]
}

Reading #

The sentences OdrlProse writes for this policy, without a profile.

Offer http://example.com/policy:88

An offer.

  • Written to the profile http://example.com/odrl:profile:09.
  1. Anyone may play 1999.mp3, as permitted by the assigner sony.

    Duties to fulfil before this permission can be exercised:

    • The assignee must compensate, as required by the assigner sony.

      Limits on the action:

      • The action "compensate" is limited to cases where:
        • the payment amount is equal to 5.00 euro

      Applies only if:

      • the event is less than policyUsage

The renderer raised no warning for this policy.

Back to the W3C ODRL examples or the catalog.