Re: [easyrdf] Problems using easyRDF with 4store update SPARQL

147 views
Skip to first unread message

Nicholas J Humfrey

unread,
Jan 27, 2013, 2:19:28 PM1/27/13
to eas...@googlegroups.com
> 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.


Mike Lamoureux

unread,
Jan 27, 2013, 2:56:52 PM1/27/13
to eas...@googlegroups.com
Thanks for the quick response.  After posting this I also realized that 4store doesn't BIND SPARQL syntax, so I'm not certain I will stay with it much longer.
Reply all
Reply to author
Forward
0 new messages