njh / redstore

RedStore is a lightweight RDF triplestore written in C using the Redland library.
https://www.aelius.com/njh/redstore/
GNU General Public License v3.0
62 stars 6 forks source link

URI of server included in graph name #38

Closed ctenolophon closed 13 years ago

ctenolophon commented 13 years ago

Hi,

In the current master a bug seems to have been introduced that is not in 0.5.2. When a local file is posted to the server with:

curl -T foo.rdf http://localhost:8080/data/http://bar.com/foo.rdf

the graph produced is called http://localhost:8080/data/http://bar.com/foo.rdf not http://bar.com/foo.rdf as it should be.

njh commented 13 years ago

Hello,

The new version of RedStore implements SPARQL 1.1 Graph Store HTTP Protocol. The graph API is slightly different to previous versions. To use curl to create a graph, as in you example, you need to do:

curl -T foaf.ttl http://localhost:8080/data?graph=http://bar.com/foo.rdf

Other triple stores will being making this change too.

For details please see: http://www.w3.org/TR/sparql11-http-rdf-update/

Thanks,

nick.