Constraint property with a Rule (eg1799)

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#constraint-ruleExample Use Case: In the Policy Offer example below, the permission allows the target asset to be distributed, and includes a constraint of a dateTime condition that the permission can only be exercised until 2018-01-01.

Policy #

{
  "@context": "http://www.w3.org/ns/odrl.jsonld",
  "@type": "Offer",
  "uid": "http://example.com/policy:6163",
  "profile": "http://example.com/odrl:profile:10",
  "permission": [
    {
      "target": "http://example.com/document:1234",
      "assigner": "http://example.com/org:616",
      "action": "distribute",
      "constraint": [
        {
          "leftOperand": "dateTime",
          "operator": "lt",
          "rightOperand": {
            "@value": "2018-01-01",
            "@type": "xsd:date"
          }
        }
      ]
    }
  ]
}

Reading #

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

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

An offer.

  • Written to the profile http://example.com/odrl:profile:10.
  1. Anyone may distribute document:1234, as permitted by the assigner org:616.

    Applies only if:

    • the date and time are before the start of 2018-01-01

The renderer raised no warning for this policy.

Back to the W3C ODRL examples or the catalog.