ruby-rdf / sparql

Ruby SPARQL library
http://rubygems.org/gems/sparql
The Unlicense
88 stars 14 forks source link

[critical] UNION operator not properly evaluated (max. 3 alternations possible) #7

Closed peta closed 11 years ago

peta commented 11 years ago

When a SPARQL query contains multiple basic graph patterns which are alternated using the UNION operator, only the first three BGPs are matched. This limitation is (when I interpret it correctly) not dictated by the SPARQL 1.x language specification and should thus be considered as a bug.

Code to reproduce: https://gist.github.com/peta/5424335

When I feed the triple corpus from this testcase into Jena and run the same SPARQL query against it (using the Fuseki frontend for both tasks), I get back exactly the expected output.

gkellogg commented 11 years ago

Thanks for the report with a detailed example. It seems to be a parser issue, where the generated SSE only contains the three BGPs; something the W3C test cases didn't find. I should get to it in the next day or so.

gkellogg commented 11 years ago

Released with 1.0.6.

peta commented 11 years ago

Great thanks!