use of org.apache.jena.sparql.modify.request.UpdateDrop in project jena by apache.
the class ServerCtl method resetServer.
/*package*/
static void resetServer() {
if (countServer.get() == 0)
throw new RuntimeException("No server started!");
if (CLEAR_DSG_DIRECTLY) {
Txn.executeWrite(dsgTesting, () -> dsgTesting.clear());
} else {
Update clearRequest = new UpdateDrop(Target.ALL);
UpdateProcessor proc = UpdateExecutionFactory.createRemote(clearRequest, serviceUpdate());
try {
proc.execute();
} catch (Throwable e) {
e.printStackTrace();
throw e;
}
}
}
Aggregations