Refinement property with a Party Collection (eg22)

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-partyExample Use Case: The target Asset http://example.com/myPhotos:BdayParty is a set of photos posted to a social network site by the assigner of the photos http://example.com/user44. The assignee source is a PartyCollection http://example.com/user44/friends and represents all the friends of the assigner. The assignee also has a refinement that indicates only members of the collection over the foaf:age of 18 will be assigned the ex:view permission (defined by the Profile).

Policy #

{
  "@context": "http://www.w3.org/ns/odrl.jsonld",
  "@type": "Agreement",
  "uid": "http://example.com/policy:4444",
  "profile": "http://example.com/odrl:profile:12",
  "permission": [
    {
      "target": "http://example.com/myPhotos:BdayParty",
      "assigner": "http://example.com/user44",
      "assignee": {
        "@type": "PartyCollection",
        "source": "http://example.com/user44/friends",
        "refinement": [
          {
            "leftOperand": "foaf:age",
            "operator": "gt",
            "rightOperand": {
              "@value": "17",
              "@type": "xsd:integer"
            }
          }
        ]
      },
      "action": {
        "@id": "ex:view"
      }
    }
  ]
}

Reading #

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

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

An agreement.

  • Written to the profile http://example.com/odrl:profile:12.
  1. any party in the collection friends where the age is greater than 17 may view BdayParty, as permitted by the assigner user44.

The renderer raised no warning for this policy.

Back to the W3C ODRL examples or the catalog.