Re: [poe] ODRL Validator

For validation purposes, the following example is a diffcult one:

```
@prefix odrl: <http://www.w3.org/ns/odrl/2/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix p1: <http://odrlapi.appspot.com/profile> .

#valid. With logical constraint defined in an a profile

<http://odrlapi.appspot.com/samples/sample053>
    a odrl:Set ;
    dct:source "victor";
    odrl:profile <http://odrlapi.appspot.com/profile> ;
    odrl:permission [
        odrl:target <http://example.com/book/1999> ;
        odrl:assigner <http://example.com/org/paisley-park> ;
        odrl:action odrl:play ;
        odrl:constraint [
            p1:unknown <http://example.com/p:88/C1> ;
        ]    
   ] .

<http://example.com/p:88/C1> 
    a odrl:Constraint ;
    odrl:leftOperand "media" ;
    odrl:operator odrl:eq ;
    odrl:rightOperand odrl:online .
```

How to determine that the anonymous constraint (under the rule) is an odrl:Constraint or an odrl:LogicalConstraint? There is no obvious procedure to determine if this is an ill-formed "Constraint" or a well formed "LogicalConstraint" with a profile-defined operator.

-- 
GitHub Notification of comment by vroddon
Please view or discuss this issue at https://github.com/w3c/poe/issues/242#issuecomment-327605634 using your GitHub account

Received on Wednesday, 6 September 2017 20:37:04 UTC