Policy Rule Composition (eg25)

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#compositionThe above example can then be reduced to four atomic permission Rules. Each permission Rule will include a single target and a single action.

Policy #

{
  "@context": "http://www.w3.org/ns/odrl.jsonld",
  "@type": "Policy",
  "uid": "http://example.com/policy:8888",
  "profile": "http://example.com/odrl:profile:20",
  "permission": [
    {
      "target": "http://example.com/music/1999.mp3",
      "assigner": "http://example.com/org/sony-music",
      "action": "play"
    },
    {
      "target": "http://example.com/music/1999.mp3",
      "assigner": "http://example.com/org/sony-music",
      "action": "stream"
    },
    {
      "target": "http://example.com/music/PurpleRain.mp3",
      "assigner": "http://example.com/org/sony-music",
      "action": "play"
    },
    {
      "target": "http://example.com/music/PurpleRain.mp3",
      "assigner": "http://example.com/org/sony-music",
      "action": "stream"
    }
  ]
}

Reading #

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

Policy set http://example.com/policy:8888

A set of rules.

  • Written to the profile http://example.com/odrl:profile:20.
  1. Anyone may play 1999.mp3, as permitted by the assigner sony-music.

  2. Anyone may stream 1999.mp3, as permitted by the assigner sony-music.

  3. Anyone may play PurpleRain.mp3, as permitted by the assigner sony-music.

  4. Anyone may stream PurpleRain.mp3, as permitted by the assigner sony-music.

The renderer raised no warning for this policy.

Back to the W3C ODRL examples or the catalog.