How can I use Jena to run SPARQL update queries to a remote endpoint? (assuming I am allowed to).
So far, what I have is the following
UpdateRequest update = UpdateFactory.create(queryString);
UpdateProcessor processor = UpdateExecutionFactory.create(update, dataset);
processor.execute();
But I do not know what dataset
is and where to add the remote endpoint URL.
OK, so here is the solution:
RDFConnection conn = RDFConnectionFactory.connect(endpoint);
UpdateRequest update = UpdateFactory.create(queryString);
conn.update(update);