Refinement property with an Asset Collection (eg21)

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-assetExample Use Case: The Policy defines a target source http://example.com/media-catalogue that is an AssetCollection of multimedia videos. The target also has a refinement that specifies the characteristics of the AssetCollection members. In this case, the target subset of Assets will be those that have a running time of less than 60 minutes, and each of those may be played. Note that the runningTime leftOperand is defined in the ODRL Profile http://example.com/odrl:profile:11 together with the play action.

Policy #

{
  "@context": "http://www.w3.org/ns/odrl.jsonld",
  "@type": "Offer",
  "uid": "http://example.com/policy:4444",
  "profile": "http://example.com/odrl:profile:11",
  "permission": [
    {
      "assigner": "http://example.com/org88",
      "target": {
        "@type": "AssetCollection",
        "source": "http://example.com/media-catalogue",
        "refinement": [
          {
            "leftOperand": "runningTime",
            "operator": "lt",
            "rightOperand": {
              "@value": "60",
              "@type": "xsd:integer"
            },
            "unit": "http://qudt.org/vocab/unit/MinuteTime"
          }
        ]
      },
      "action": "play"
    }
  ]
}

Reading #

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

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

An offer.

  • Written to the profile http://example.com/odrl:profile:11.
  1. Anyone may play any asset in the collection media-catalogue where the running time is less than 60 minute time, as permitted by the assigner org88.

The renderer raised no warning for this policy.

Back to the W3C ODRL examples or the catalog.