njh/redstore — Issue #39: sparql endpoint providing incorrect results
Author: ctenolophon
Created: 2011-10-21 21:30:22+00:00
State: open

Hi,

Finding major differences between `redstore`'s sparql endpoint and `roqet` (using the same libraries) with:
RedStore/0.5.2 librdf/1.0.14 raptor/2.0.4 rasqal/0.9.27. Here's an example:

I loaded a dataset into the triplestore. If then download it:

$ curl 'http://localhost:8005/data/http://dl.dropbox.com/u/639486/tdwg-rdf/uniprot.rdf?format=rdfxml' > uniprot.rdf

and query with `roqet`:

$ cat test.sparql
PREFIX uni: SELECT * WHERE { ?s uni:scientificName "Bufo" . ?s uni:rank uni:Genus . }

$ /home/xmal/local/bin/roqet -D uniprot.rdf test.sparql
roqet: Querying from file test.sparql
roqet: Query has a variable bindings result
result: [s=uri]
roqet: Query returned 1 results

a result is found. However, if I query the triplestore directly:

$ curl -d query='PREFIX uni: SELECT * WHERE { ?s uni:scientificName "Bufo" . ?s uni:rank uni:Genus . }' http://localhost:8005/sparql

the result set is empty.

It seems queries with a single triple work fine in the redland triplestore, but not with multiple patterns. In combination with the other issue I reported (`http://localhost:8005/data` added to graph URI name), I'm afraid I can't use redstore in a public project. But I like redstore a lot! Thanks.