W3C home > Mailing lists > Public > public-sparql-dev@w3.org > January to March 2017

Re: ObjectList(Path) in PropertyListPathNotEmpty

From: Gunnar Aastrand Grimnes <gromgull@gmail.com>
Date: Wed, 15 Feb 2017 14:09:21 +0100
Message-ID: <CAGm1ODkGrSacvt6CKbGBKkUO6KaTfxz1C8PtNssJzaFy1Bx4vQ@mail.gmail.com>
To: Andy Seaborne <andy@apache.org>
Cc: public-sparql-dev@w3.org
Thanks Andy!

I even checked in ARQ - but looked here:
https://github.com/apache/jena/blob/master/jena-arq/Grammar/Final/sparql_11-final.jj#L889

and not here, where it is correct:

https://github.com/apache/jena/blob/master/jena-arq/Grammar/arq.jj#L890

- Gunnar

On 15 February 2017 at 13:48, Andy Seaborne <andy@apache.org> wrote:
> Known issue:
>
> https://www.w3.org/2013/sparql-errata#errata-query-3
>
>         Andy
>
>
> On 15/02/17 11:49, Gunnar Aastrand Grimnes wrote:
>>
>> Hi there,
>>
>> In this grammar rule:
>>
>>
>> PropertyListPathNotEmpty  ::=  ( VerbPath | VerbSimple )
>> ObjectListPath ( ';' ( ( VerbPath | VerbSimple ) ObjectList )? )*
>>
>> ObjectListPath is allowed for the first property/object pair, but not
>> the remaining ones? Why not?
>>
>> This makes RDFLib able to parse:
>>
>> SELECT * WHERE {
>>   ?subj :prop2 [ :prop3/:prop4 ?obj2 ] ;
>>             :prop ?obj .
>> }
>>
>> (with the path expression first) but not:
>>
>> SELECT * WHERE {
>>    ?subj  :prop ?obj ;
>>               :prop2 [ :prop3/:prop4 ?obj2 ] .
>> }
>>
>> (with the path expression in the second ; part)
>>
>> Am I missing something stupid?
>>
>> I'm not on the list, so CC replies to gromgull@gmail.com please!
>>
>> Cheers,
>>
>> - Gunnar
>>
>>
>



-- 
http://gromgull.net
Received on Wednesday, 15 February 2017 13:09:55 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 15 February 2017 13:09:55 UTC