Class UpdateWithModelBuilder

java.lang.Object
org.eclipse.rdf4j.spring.dao.support.UpdateWithModelBuilder

public class UpdateWithModelBuilder extends Object

An Operation that holds a Model internally and exposes a ModelBuilder for adding to it. Moreover it allows for deleting statements.

Thus, the class provides a way of configuring an update to the repository incrementally, and no repository access happens until execute() is called. (unless the client uses applyToConnection(Function) and accesses the repository that way.)

Removing statements via remove(org.eclipse.rdf4j.model.Resource, org.eclipse.rdf4j.model.IRI, org.eclipse.rdf4j.model.Value, org.eclipse.rdf4j.model.Resource...) will remove them from the repository when execute() is called; moreover, the statements will also be removed from the model at the time of the remove(org.eclipse.rdf4j.model.Resource, org.eclipse.rdf4j.model.IRI, org.eclipse.rdf4j.model.Value, org.eclipse.rdf4j.model.Resource...) call, such that a subsequent creation of some of the deleted statements to the model will result in those triples being first deleted and then added to the repository when execute() is called.
Since:
4.0.0
Author:
Florian Kleedorfer