Skip to main content

Generalized Policy Management profile for the Open Digital Rights Language

1 Introduction

This section is not normative.

This document provides a mapping profile for Generalized Policy Management (GPM), targeting the W3C's Open Digital Rights Language (ODRL). In particular, it maps parameters of the following specifications on the GPM model.

  • ODRL Information Model 2.2 (W3C Recommendation, 15 Feb 2018)
  • ODRL Vocabulary & Expression 2.2 (W3C Recommendation, 15 Feb 2018)

The ODRL model is not bound to a single serialization. The mappings provided in this GPM profile refer to its RDF representation in JSON-LD, as put forward in the ODRL Vocabulary & Expression specification.

2 Mapping ODRL to GPM

The ODRL Information Model provides a semantic framework for describing digital rights policies. In its Common Vocabulary, it defines a request as "a policy that proposes a rule over an asset from an assignee," and an offer as "a policy that proposes a rule over an asset from an assigner."

An ODRL policy can be serialized in a compact form, in which properties that are shared by all its rules are instead declared at the policy-level. Before mapping an ODRL policy to GPM according to this profile, it MUST be expanded to its normative atomic form.

The following subsection maps an ODRL request or offer onto a GPM request.

2.1 ODRL Request/Offer

The GPM model considers Operations, Rules, Policies, and Requests to constitute different layers of information. In ODRL, however, requests and offers are subclasses of policies, and rules -- at least in their atomic form -- contain data which GPM considers Policy-level.

Therefore, to maintain the correct semantics while mapping an ODRL request or offer onto a GPM Request, the former MUST first be processed as follows:

  1. Starting from a single atomic ODRL policy, group all rules that have both an identical assigner and an identical assignee party.

  2. For each of the groups, make a clone of the original ODRL policy that only includes the rules of that group. Discard the original policy.

  3. In each cloned policy, lift the assigner and assignee from the rule-level to the policy-level -- selectively re-compacting them.

The mapping of the original ODRL policy MUST then be a single GPM Request, containing the mappings of all cloned policies according to the rest of this section.

2.1.1 odrl:uid (of a policy)

The odrl:uid property is defined as required in ODRL. Its value is an IRI that identifies the policy.

Mapping:

The mapping of an ODRL policy MUST have as identifier the value of the policy's odrl:uid property.

2.1.2 odrl:assigner

The odrl:assigner property is defined as required for offers, but as optional for requests in ODRL. Its value is (the IRI of) the ODRL party that is issuing the rules.

Mapping:

If an ODRL policy has an odrl:assigner property, the policy's mapping MUST have an owner, the identifier of which is determined as follows.

  • If the value of the odrl:assigner property is an IRI, it is this IRI.

  • If the value of the odrl:assigner property is a node with a odrl:uid field, it is the IRI value of this field.

2.1.3 odrl:assignee

The odrl:assignee property is defined as required for requests, and as optional for offers in ODRL. Its value is (the IRI of) the ODRL party that is the recipient of the rules.

Mapping:

If an ODRL policy has an odrl:assignee property, the policy's mapping MUST have a user, the identifier of which is determined as follows.

  • If the value of the odrl:assignee property is an IRI, it is this IRI.

  • If the value of the odrl:assignee property is a node with a odrl:uid field, it is the IRI value of this field.

2.1.4 odrl:permission, odrl:duty, odrl:prohibition

The properties odrl:permission, odrl:duty, and odrl:prohibition are defined in ODRL; at least one of them is required in an ODRL policy. Their values are the (IRIs of) ODRL rules to which the policy pertains.

Mapping:

For each (atomic) rule in an ODRL policy, its mapping MUST contain a GPM rule, the class of which is the class IRI corresponding to the property that links the policy to the rule: odrl:Permission for odrl:permission, odrl:Duty for odrl:duty, and odrl:Prohibition for odrl:prohibition.

A rule's properties are then mapped as follows.

2.1.5 odrl:uid (of a rule)

The odrl:uid property is defined as optional in ODRL. Its value is an IRI that identifies the rule.

Mapping:

The mapping of an ODRL rule MUST have as identifier the value of the rule's odrl:uid property.

2.1.6 odrl:action

The odrl:action property is defined as required and unique in ODRL. Its value is (the IRI of) the ODRL action to which the rule pertains.

Mapping:

The mapping of an ODRL rule MUST have an action, the class of which is determined as follows.

  • If the value of the odrl:action property is an IRI, it is this IRI.

  • If the value of the odrl:action property is a node with an rdf:value field, it is the IRI value of this field.

2.1.7 odrl:target

The odrl:target property is defined as optional in ODRL. Its value is (the IRI of) the ODRL asset that is the target of the rule's action.

Mapping:

If an ODRL rule has an odrl:target property, the rule's mapping MUST have a target, the identifier of which is determined as follows.

  • If the value of the odrl:target property is an IRI, it is this IRI.

  • If the value of the odrl:target property is a node with a odrl:uid field, it is the IRI value of this field.

2.1.8 odrl:obligation, odrl:remedy, odrl:consequence

The properties odrl:obligation, odrl:remedy, and odrl:consequence are defined as optional. Their values are (the IRIs of) other ODRL rules of the type odrl:Duty.

Mapping:

...

2.1.9 odrl:constraint

...