On 17/01/12 17:38, Venkat Krishnamurthy wrote:
All

I've checked the archives/javadoc but cannot find instructions on how to
programmatically update a remote sparql endpoint (fuseki/tdb) from Java.

The tdb page on incubator has a one-line 'Use UpdateRemote.execute' but I
cannot find the class - is that in ARQ or tdb?

What's the best way to do this if I have an in-memory dataset that I want
to persist?

Thanks
Venkat


The class UpdateRemote is (currently) in Fuseki - it depends on org.apache.http. It needs to move to ARQ sometime.

You just POST the update as a string and content type application/sparql-update. Or, as the code is ~30 lines long so maybe, for now, taking a copy to avoid using Fuseki on the client side.

The query remote could do with rewriting to use org.apache.http as well.

UpdateExecutionFactory could acquire a .createRemote and have a remote implementation of UpdateProcessor based on this code.

See also the script "s-update"

        Andy

Reply via email to