Relation Property (eg5)

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#relationExample Use Case: The below Policy shows the index action Permission on the target Asset http://example.com/archive1011. The target asset is also declared as an AssetCollection to indicate the resource is a collection of resources. An additional Asset relation summary indicates the Asset http://example.com/x/database that the indexing output should be stored in. The ODRL Profile http://example.com/odrl:profile:03 defines this new sub-property of relation.

Policy #

{
  "@context": "http://www.w3.org/ns/odrl.jsonld",
  "@type": "Policy",
  "uid": "http://example.com/policy:1011",
  "profile": "http://example.com/odrl:profile:03",
  "permission": [
    {
      "target": {
        "@type": "AssetCollection",
        "uid": "http://example.com/archive1011"
      },
      "action": "index",
      "summary": "http://example.com/x/database"
    }
  ]
}

Reading #

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

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

A set of rules.

  • Written to the profile http://example.com/odrl:profile:03.
  1. Anyone may index archive1011.

The renderer raised these warnings.

Warning
ignored unknown property "summary" on a rule

Back to the W3C ODRL examples or the catalog.