> Nicholas,
>
> First off, I'm growing to love your library. Thank you for creating it.
>
> I was wondering if anyone in the community has had success using easyRDF
> with a 4store <
http://4store.org> triple store. After moving to this
> triple store I'm having trouble performing GraphStore insert using
> verbatim
> the example code written by Nick. The 4store log is complaining:
>
> 4store[6129]: httpd.c:292 HTTP error, returning status 400 4store only
> implements application/x-www-form-urlencoded
>
> 4store's documentation says that updates must be done using POST, which I
> believe is what easyRDF is doing. Here's the specific documenation about
> the SPARQL update support:
>
> You can send SPARQL Update 1.1 requests to
http://localhost:8000/update/
> or
> the appropriate URL for your settings.
>
> Updates must be send as POST reuqests, to the /update/ endpoint, and the
> request is sent with the update= CGI parameter, e.g.
>
> curl -i -d
> 'update=INSERT+DATA+{+GRAPH+<
http://example.com/G>+{+<
http://example.com/s>+<
http://example.com/p>+"o"+}+}'
>
http://localhost:8000/update/
>
> Which will send the SPARQL Update request
>
> INSERT DATA { GRAPH <
http://example.com/G> { <
http://example.com/s>
> <
http://example.com/p> "o" } }
>
>
> Anyone have any thoughts?
Hello Mike,
I'm afraid that the EasyRdf does not support 'SPARQL 1.1 Update' at the
moment.
It is on the Todo list:
https://github.com/njh/easyrdf/issues/66
4store does support something very much like 'SPARQL 1.1 Graph Store HTTP
Protocol' - the endpoint is at /data/. But it pre-dates the standard being
written and I am not sure if it has been updated to make sure it follows
it properly:
http://www.w3.org/TR/sparql11-http-rdf-update/
I haven't have a play with 4store for a while, I really should and make
sure EasyRdf works properly with it.
nick.