Obligation property with a Policy (eg169b)

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-policyExample Use Case: The below Agreement includes an obligation from assigner http://example.com/org:43 to assignee http://example.com/person:44 to delete the target Asset. If the obligation is not fulfilled, then a consequence is that the assignee MUST now also compensate the nominated charity with a payment of EU10.00 (as well as the fulfill the obligation Duty).

Policy #

{
  "@context": "http://www.w3.org/ns/odrl.jsonld",
  "@type": "Agreement",
  "uid": "http://example.com/policy:42B",
  "profile": "http://example.com/odrl:profile:09",
  "assigner": "http://example.com/org:43",
  "assignee": "http://example.com/person:44",
  "obligation": [
    {
      "action": "delete",
      "target": "http://example.com/document:XZY",
      "consequence": [
        {
          "action": [
            {
              "rdf:value": {
                "@id": "odrl:compensate"
              },
              "refinement": [
                {
                  "leftOperand": "payAmount",
                  "operator": "eq",
                  "rightOperand": {
                    "@value": "10.00",
                    "@type": "xsd:decimal"
                  },
                  "unit": "http://dbpedia.org/resource/Euro"
                }
              ]
            }
          ],
          "compensatedParty": "http://wwf.org"
        }
      ]
    }
  ]
}

Reading #

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

Agreement http://example.com/policy:42B

An agreement between org:43 (assigner) and person:44 (assignee).

  • Written to the profile http://example.com/odrl:profile:09.
  1. person:44 must delete XZY, as required by the assigner org:43.

    Consequences if this duty is not fulfilled:

    • person:44 must compensate wwf.org, as required by the assigner org:43.

      Limits on the action:

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

The renderer raised no warning for this policy.

Back to the W3C ODRL examples or the catalog.