Refinement property with an Action (eg19)

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:The Policy below shows a permission to reproduce the target asset either via online media or print media but not both. This is expressed as a Logical Constraint (with the xone operand) referring to two existing Constraints declared elsewhere.

Policy #

{
  "@context": "http://www.w3.org/ns/odrl.jsonld",
  "@graph": [
    {
      "permission": [
        {
          "target": "http://example.com/book/1999",
          "assigner": "http://example.com/org/paisley-park",
          "action": [
            {
              "rdf:value": {
                "@id": "odrl:reproduce"
              },
              "refinement": {
                "xone": {
                  "@list": [
                    {
                      "@id": "http://example.com/p:88/C1"
                    },
                    {
                      "@id": "http://example.com/p:88/C2"
                    }
                  ]
                }
              }
            }
          ]
        }
      ],
      "@type": "Offer",
      "uid": "http://example.com/policy:88",
      "profile": "http://example.com/odrl:profile:10"
    },
    {
      "rightOperand": {
        "@value": "online",
        "@type": "xsd:string"
      },
      "@type": "Constraint",
      "uid": "http://example.com/p:88/C1",
      "leftOperand": "media",
      "operator": "eq"
    },
    {
      "rightOperand": {
        "@value": "print",
        "@type": "xsd:string"
      },
      "@type": "Constraint",
      "uid": "http://example.com/p:88/C2",
      "leftOperand": "media",
      "operator": "eq"
    }
  ]
}

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:10.
  1. Anyone may reproduce book/1999, as permitted by the assigner paisley-park.

    Limits on the action:

    • The action "reproduce" is limited to cases where:
      • exactly one of the following holds:
        • the media is equal to online
        • the media is equal to print

The renderer raised no warning for this policy.

Back to the W3C ODRL examples or the catalog.