- From: simon via GitHub <sysbot+gh@w3.org>
- Date: Fri, 12 May 2017 08:08:26 +0000
- To: public-poe-archives@w3.org
> I think we can remove the UML dependence, **and express the IM as close-as-possible to RDF/OWL but not dependently.**
has this happened already?
because the current IM draft still contains references to _relation properties_, _function roles_/_types of function properties_, and other concepts that are only relevant for a potential ODRL XML encoding, but not (or only indirectly) for JSON(-LD) or RDF ones.
take for example:
> **A Party MUST have a function** indicating the role undertaken by the Party.
here's a valid JSON-LD encoding of a policy in which `billie` doesn't have "a function that indicates his role":
```json
{
"@context": "http://www.w3.org/ns/odrl.jsonld",
"@type": "Offer",
"uid": "http://example.com/policy:9001",
"permission": [{
"target": "http://example.com/music:4545",
"assigner": "http://example.com/billie",
"action": "distribute"
}]
}
```
here's the same policy in XML, in which party `billie` has a function that indicates his role:
```xml
<o:Policy xmlns:o="http://www.w3.org/ns/odrl/2/" uid="http://example.com/policy:9001"
type="http://www.w3.org/ns/odrl/2/Offer">
<o:permission>
<o:asset uid="http://example.com/music:4545"
relation="http://www.w3.org/ns/odrl/2/target"/>
<o:action name="http://www.w3.org/ns/odrl/2/distribute"/>
<o:party uid="http://example.com/billie"
function="http://www.w3.org/ns/odrl/2/assigner"/>
</o:permission>
</o:Policy>
```
so unless we replace all JSON-LD examples with XML ones, or update the ODRL ontology along the lines of:
```json
{
"@context": "http://www.w3.org/ns/odrl.jsonld",
"@type": "Offer",
"uid": "http://example.com/policy:9001",
"permission": [{
"target": "http://example.com/music:4545",
"party": [{
"function": "assigner",
"uid": "http://example.com/billie"
}] ,
"action": "distribute"
}]
}
```
I see no reason for having legacy XML concepts in the IM.
--
GitHub Notification of comment by simonstey
Please view or discuss this issue at https://github.com/w3c/poe/issues/124#issuecomment-301012314 using your GitHub account
Received on Friday, 12 May 2017 08:08:33 UTC