DatasetAccessor
(this is the SPARQL Graph Store protocol, client side)
which works for local and remote.
You may also be interested in Stephen's work on a SPARQL client
interface to pull all the different aspects together:
https://svn.apache.org/repos/asf/jena/Experimental/jena-client/
Andy
On 01/12/14 20:17, Juan Sequeda wrote:
All,
I currently have a local instance of Jena TDB, which I create:
String directory = "";
Dataset dataset = TDBFactory.createDataset(directory);
And I can insert a Jena model to the dataset:
String nameURI = "...";
Model m = ... ;
dataset.begin(ReadWrite.WRITE);
try {
dataset.addNamedModel(nameURI, m);
dataset.commit();
return true;
} catch (Exception e) {
dataset.abort();
return false;
} finally {
dataset.end();
}
And I can delete a model, check if a model exists, etc. All good.
Now, I would like to do the same, but connected to a remote SPARQL
endpoint, which is also Jena TDB/Fuseki, that I have control of.
What is the best way to do this? I can't seem to find documentation or
example code on this.
I thought I might ask here before I try to figure out how to do this on my
own.
Thank!
Juan Sequeda
www.juansequeda.com