Re: Namespace of ODRL

On 25 Jul 2013, at 06:59, "Myles, Stuart" <SMyles@ap.org> wrote:

> One of the goals for RightsML at this point is to drive adoption. What do we think multiple namespaces will do for ease of implementation? I'm a bit worried it will make things harder for people (since they'll need to always be looking up which namespace to use, as they construct their ODRL documents).

In XML, you can actually minimise the use of namespaces by using partially qualified values.

So, for example, the rightsML example from here [1] would look like:

<o:Policy uid="http://gimages.info/cv/policy/1"  type="o:policies/Set"
    xmlns:o="http://w3.org/ns/odrl/2/"
    xmlns:rml="http://iptc.org/std/RightsML/2011-10-07/"
    <o:Permission>
      <o:Asset uid="*" relation="o:target"/>
      <o:Action name="rml:distribute"/>
      <o:Constraint name="o:actions/spatial" operator="o:neq" rightOperand="urn:iso3166:CN"/>
      <o:Party id="gim" uid="http://companyreg.com/gim" function="o:functions/assigner"/>
      <o:Party id="cli1" uid="http://companyreg.com/client1" function="o:functions/assignee"/>
    </o:Permission>
    <o:Permission>
      <o:Asset uid="*" relation="o:target"/>
      <o:Action name="o:actions/sell"/>
      <o:Constraint name="o:actions/spatial" operator="o:neq" rightOperand="urn:iso3166:CN"/>
      <o:Party idref="gim"/>
      <o:Party idref="cli1"/>
    </o:Permission>
</o:Policy>

(Note the change of case for the element names!)

Question: Should we use the plural (eg actions) or singular (action) in the URI?

Cheers...
Renato Iannella
Semantic Identity
http://semanticidentity.com
Mobile: +61 4 1313 2206

[1] http://dev.iptc.org/RightsML-10-Example-Exclude-a-country-from-licensing-photo

Received on Thursday, 25 July 2013 08:00:25 UTC