Re: [poe] ODRL Validation/Validation issues

Please feel free to edit the wiki.

Given that the value for rightOperand can be either literal or IRI, the only validation I can think of is:
"_It cannot be a blank node whose type is not RightOperand_".

Consequently, the new sample I have just uploaded (sample076, see below) is not being correctly parsed, I guess that according to the spec this should be invalid. I wonder whether it worths imposing these extreme validations.

```
@prefix odrl: <http://www.w3.org/ns/odrl/2/> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>

#invalid. rightOperand is a blank node and has no type RightOperand
<http://odrlapi.appspot.com/samples/sample076>
    dct:source "victor" ;
    a odrl:Offer ;
    odrl:profile <http://example.com/odrl:profile:07> ;
    odrl:permission [
        odrl:target <http://example.com/game:9090> ;
        odrl:assigner <http://example.com/org:xyz> ;
        odrl:action odrl:play ;
        odrl:constraint [
            odrl:leftOperand odrl:dateTime ;
            odrl:operator odrl:lteq ;
            odrl:rightOperand [
                rdfs:comment "Right operand without URI"
            ]
        ]            
    ] .

```
RDF question: yes. You can try this examples in the validator. This is valid (the parenthesis are to use rdf:list):
```
        odrl:constraint [
            odrl:leftOperand odrl:dateTime ;
            odrl:operator odrl:lteq ;
            odrl:rightOperand ("a" "b")
        ]    

```But this is invalid:
```
        odrl:constraint [
            odrl:leftOperand odrl:dateTime ;
            odrl:operator odrl:lteq ;
            odrl:rightOperand "a" ;
            odrl:rightOperand "b"
        ]  
```
I don't think I understand the problem about http://www.w3.org/2000/01/rdf-schema#Datatype.
I read the https://www.w3.org/TR/swbp-xsch-datatypes/ page, but... where is the actual problem? (if it is only the format presentation, then we simply comment on it)

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

Received on Tuesday, 19 September 2017 15:18:33 UTC