// Use a parameterized update to modify the data
ParameterizedSparqlString s = new ParameterizedSparqlString();
s.setCommandText("INSERT { ?o ?p ?s } WHERE { ?s ?p ?o }");
s.setIri("s", "_:" + bnode.getId());
UpdateRequest query = s.asUpdate();
UpdateProcessor proc = UpdateExecutionFactory.create(query, GraphStoreFactory.create(ds));
proc.execute();
// This should be true because this was present in the intial model set