Permission Class (eg13)

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#permissionExample Use Case: The Policy Offer from assigner http://example.com/org:xyz expresses the play action for the target Asset http//example.com/game:9090 and the permission is valid until the end of the year 2017.

Policy #

{
  "@context": "http://www.w3.org/ns/odrl.jsonld",
  "@type": "Offer",
  "uid": "http://example.com/policy:9090",
  "profile": "http://example.com/odrl:profile:07",
  "permission": [
    {
      "target": "http://example.com/game:9090",
      "assigner": "http://example.com/org:xyz",
      "action": "play",
      "constraint": [
        {
          "leftOperand": "dateTime",
          "operator": "lteq",
          "rightOperand": {
            "@value": "2017-12-31",
            "@type": "xsd:date"
          }
        }
      ]
    }
  ]
}

Reading #

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

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

An offer.

  • Written to the profile http://example.com/odrl:profile:07.
  1. Anyone may play game:9090, as permitted by the assigner xyz.

    Applies only if:

    • the date and time are on or before the end of 2017-12-31

The renderer raised no warning for this policy.

Back to the W3C ODRL examples or the catalog.