Refinement property with an Action (eg179)

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-actionExample Use Case: In the Policy Offer example below, the permission allows the target asset to be printed, and also include a refinement Constraint of less than or equal to 1200 dpi resolution. The refinement is a more narrower semantic of printing, in this case, printing at a specific maximum resolution level.

Policy #

{
  "@context": "http://www.w3.org/ns/odrl.jsonld",
  "@type": "Offer",
  "uid": "http://example.com/policy:6161",
  "profile": "http://example.com/odrl:profile:10",
  "permission": [
    {
      "target": "http://example.com/document:1234",
      "assigner": "http://example.com/org:616",
      "action": [
        {
          "rdf:value": {
            "@id": "odrl:print"
          },
          "refinement": [
            {
              "leftOperand": "resolution",
              "operator": "lteq",
              "rightOperand": {
                "@value": "1200",
                "@type": "xsd:integer"
              },
              "unit": "http://dbpedia.org/resource/Dots_per_inch"
            }
          ]
        }
      ]
    }
  ]
}

Reading #

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

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

An offer.

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

    Limits on the action:

    • The action "print" is limited to cases where:
      • the resolution is at most 1200 dots per inch

The renderer raised no warning for this policy.

Back to the W3C ODRL examples or the catalog.