RE: poe-ACTION-30: Can we only have a json-ld serialisation? will it impact righstml?

Yes, great request, Renato!

Here is example 9 in ODRL JSON:
{
    "policytype": "http://www.w3.org/ns/odrl/2/Agreement",
    "policyid": "http://example.com/policy:5531",
    "inheritallowed": true,
    "permissions": [{
        "target": "http://example.com/report:2321",
        "action": "http://www.w3.org/ns/odrl/2/print",
        "assigner": "http://example.com/pub:88",
        "assignee": "http://example.com/billie:888"
    }]
}

{
    "policytype": "http://www.w3.org/ns/odrl/2/Agreement",
    "policyid": "http://example.com/policy:9999",
    "inheritfrom": "http://example.com/policy:5531",
    "permissions": [{
        "target": "http://example.com/report:2333",
        "action": "http://www.w3.org/ns/odrl/2/display",
        "assigner": "http://example.com/pub:88",
        "assignee": "http://example.com/class:IT01",
        "assignee_scope": "http://www.w3.org/ns/odrl/2/group"
    }]
}

Here it is in XML https://www.w3.org/community/odrl/xml/2.1/#section-5


<o:Policy xmlns:o="http://www.w3.org/ns/odrl/2/" type="http://www.w3.org/ns/odrl/2/Agreement" uid="http://example.com/policy:5531" inheritAllowed="true">
    <o:permission>
        <o:asset uid="http://example.com/report:2321" relation="http://www.w3.org/ns/odrl/2/target"/>
        <o:action name="http://www.w3.org/ns/odrl/2/print"/>
        <o:party uid="http://example.com/pub:88" function="http://www.w3.org/ns/odrl/2/assigner"/>
        <o:party uid="http://example.com/billie:888" function="http://www.w3.org/ns/odrl/2/assignee"/>
    </o:permission>
</o:Policy>

<o:Policy xmlns:o="http://www.w3.org/ns/odrl/2/" type="http://www.w3.org/ns/odrl/2/Agreement" uid="http://example.com/policy:9999" inheritFrom="http://example.com/policy:5531">
    <o:permission>
        <o:asset uid="http://example.com/report:2333" relation="http://www.w3.org/ns/odrl/2/target"/>
        <o:action name="http://www.w3.org/ns/odrl/2/display"/>
        <o:party uid="http://example.com/pub:88" function="http://www.w3.org/ns/odrl/2/assigner"/>
        <o:party uid="http://example.com/class:IT01" function="http://www.w3.org/ns/odrl/2/assignee" scope="http://www.w3.org/ns/odrl/2/Group"/>
    </o:permission>
</o:Policy>

And here it is in RDF http://www.w3.org/ns/odrl/2/ODRL21#sec-example-9


@prefix odrl: <http://www.w3.org/ns/odrl/2/> .

<http://example.com/policy:5531>
        a odrl:Agreement ;
        odrl:permission [
               a odrl:Permission ;
               odrl:action odrl:print ;
               odrl:target <http://example.com/report:2321> ;
               odrl:assigner <http://example.com/pub:88> ;
               odrl:assignee <http://example.com/billie:888> ;
        ] .

<http://example.com/policy:9999>
        a odrl:Agreement ;
        odrl:inheritFrom <http://example.com/policy:5531> ;
        odrl:permission [
               a odrl:Permission ;
               odrl:action odrl:display ;
               odrl:target <http://example.com/report:2333> ;
               odrl:assigner <http://example.com/pub:88> ;
               odrl:assignee <http://example.com/class:IT01>
        ] .

<http://example.com/pub:88> a odrl:Party .
<http://example.com/billie:888> a odrl:Party .
<http://example.com/class:IT01> a odrl:Group .

In particular, I’m interested in how to represent the RDF expression “<http://example.com/class:IT01> a odrl:Group .” in JSON-LD?

Regards,

Stuart



From: Renato Iannella [mailto:renato.iannella@monegraph.com]
Sent: Friday, October 14, 2016 1:52 AM
To: W3C POE WG
Subject: Re: poe-ACTION-30: Can we only have a json-ld serialisation? will it impact righstml?


On 14 Oct. 2016, at 02:28, Myles, Stuart <SMyles@ap.org<mailto:SMyles@ap.org>> wrote:

In fact, for the Ontology, the possible values of “scope” in XML and JSON are instead subclasses of Party. This may well be a better way to model it, but that’s how JSON and XML have the scope property and the Ontology does not. There is no concept of inheritance in JSON. (Or namespaces or …). Instead, applications which handle JSON are meant to just “know” what the properties mean.

Can a JSON-LD expert, convert our current JSON example into (pure) JSON-LD (based on our ontology)?

Use “ Example 9 Inheritance” from here: https://www.w3.org/community/odrl/json/2.1/#section-Examples


(Note: the JSON examples are yet to appear in the w3c editors draft)

Renato Iannella, Monegraph
Co-Chair, W3C Permissions & Obligations Expression (POE) Working Group

Received on Friday, 14 October 2016 15:04:14 UTC