use of org.apache.jena.update.UpdateExecutionBuilder in project jena by apache.
the class AbstractTestRDFConnection method update_05.
@Test
public void update_05() {
UpdateRequest update = new UpdateRequest();
update.add("INSERT DATA { <urn:ex:s> <urn:ex:p> <urn:ex:o>}");
try (RDFConnection conn = connection()) {
UpdateExecutionBuilder updateBuilder = conn.newUpdate();
UpdateExecution uExec = updateBuilder.update(update).build();
Txn.executeWrite(conn, () -> uExec.execute());
}
}
Aggregations