ruby-rdf / sparql

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

Weird behaviour: PREFIX directives in SPARQL query string cause exception #6

Closed peta closed 11 years ago

peta commented 11 years ago

I have a script where I Graph.load a Turtle file and parse a SPARQL query from a string. When I do both in the same file the query parsing fails; when I do only one of it (deleting/commenting out the other statement) it works.

See details: https://gist.github.com/peta/aadf06ac91ca09262138

gkellogg commented 11 years ago

That is indeed a wierd problem! I think it might relate to a fix I made to the EBNF library they both use. Are you using the gems from RubyGems or the top-of-the trunk of the Turtle and SPARQL repos? I believe the problem is solved on the trunk, but I haven't been able to release updates just yet; I hope to do so within the week.

peta commented 11 years ago

I now updated to ebnf 0.3.0 and it works.

gkellogg commented 11 years ago

Released with 1.0.6.