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

Reply via email to