ObjectList(Path) in PropertyListPathNotEmpty

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 11:49:50 UTC