Skip to content

odrl:unit is define in the https://www.w3.org/ns/odrl.jsonld as a literal value #317

@phochste

Description

@phochste

Is there any reason why odrl:unit is mapped to a literal value?

E.g.

{
    "@context": "http://www.w3.org/ns/odrl.jsonld",
    "@type": "Offer",
    "uid": "http://example.com/policy:6161",
    "profile": "http://example.com/odrl:profile:10",
    "permission": [{
       "target": "http://example.com/document:1234",
       "assigner": "http://example.com/org:616",
       "action": [{
          "rdf:value": { "@id": "odrl:print" },
          "refinement": [{
             "leftOperand": "resolution",
             "operator": "lteq",
             "rightOperand": { "@value": "1200", "@type": "xsd:integer" },
             "unit": "http://dbpedia.org/resource/Dots_per_inch"
          }]
      }]
   }]
}

is in RDF triple format following the JSON-LD context:

<http://example.com/policy:6161> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/ns/odrl/2/Offer> .
<http://example.com/policy:6161> <http://www.w3.org/ns/odrl/2/permission> _:b0 .
<http://example.com/policy:6161> <http://www.w3.org/ns/odrl/2/profile> <http://example.com/odrl:profile:10> .
_:b0 <http://www.w3.org/ns/odrl/2/action> _:b1 .
_:b0 <http://www.w3.org/ns/odrl/2/assigner> <http://example.com/org:616> .
_:b0 <http://www.w3.org/ns/odrl/2/target> <http://example.com/document:1234> .
_:b1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> <http://www.w3.org/ns/odrl/2/print> .
_:b1 <http://www.w3.org/ns/odrl/2/refinement> _:b2 .
_:b2 <http://www.w3.org/ns/odrl/2/leftOperand> <http://www.w3.org/ns/odrl/2/resolution> .
_:b2 <http://www.w3.org/ns/odrl/2/operator> <http://www.w3.org/ns/odrl/2/lteq> .
_:b2 <http://www.w3.org/ns/odrl/2/rightOperand> "1200"^^<http://www.w3.org/2001/XMLSchema#integer> .
_:b2 <http://www.w3.org/ns/odrl/2/unit> "http://dbpedia.org/resource/Dots_per_inch" .

Notice the literal translation of the odrl:unit object value.

The examples in the spec suggests that odrl:unit is a URI while it is not at such defined in the JSON-LD context document.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions