pius/rdf-mongo — Issue #2: RDF::Mongo::Repository not queryable by sparql gem
Author: jsmpereira
Created: 2011-11-26 21:36:10+00:00
State: open

Hi,

I'm using rdf-mongo as my rdf-store with Spira on a Rails app.

While trying to use the sparql gem I found I didn't get any results:

ruby-1.8.7-p299 > queryable = RDF::Mongo::Repository.new
=> #
ruby-1.8.7-p299 > sse = SPARQL.parse("SELECT * WHERE { ?s ?p ?o }")
=> #], @options={:context=>false}, @solutions=[]>
ruby-1.8.7-p299 > sse.execute(queryable)
=> []

gkellogg on #swig gave me a huge help and suggested I'd try

r = RDF::Repository.new << queryable

and then query r, which worked.

Don't know if this is a known issue, but here you are.

Thanks for all the great work.