public class SailUpdateExecutor extends Object
SailUpdate.execute()
using
SailConnection.evaluate(TupleExpr, Dataset, BindingSet, boolean)
and other SailConnection
methods.
LOAD is handled at the Repository API level because it requires access to the Rio parser.SailConnection.startUpdate(UpdateContext)
,
SailConnection.endUpdate(UpdateContext)
,
SailConnection.addStatement(UpdateContext, Resource, IRI, Value, Resource...)
,
SailConnection.removeStatement(UpdateContext, Resource, IRI, Value, Resource...)
,
SailConnection.clear(Resource...)
,
SailConnection.getContextIDs()
,
SailConnection.getStatements(Resource, IRI, Value, boolean, Resource...)
,
SailConnection.evaluate(TupleExpr, Dataset, BindingSet, boolean)
Constructor and Description |
---|
SailUpdateExecutor(SailConnection con,
ValueFactory vf,
ParserConfig loadConfig)
Implementation of
SailUpdate.execute() using
SailConnection.evaluate(TupleExpr, Dataset, BindingSet, boolean) and other SailConnection
methods. |
Modifier and Type | Method and Description |
---|---|
protected void |
executeAdd(Add add,
UpdateContext uc,
int maxExecTime) |
protected void |
executeClear(Clear clearExpr,
UpdateContext uc,
int maxExecutionTime) |
protected void |
executeCopy(Copy copy,
UpdateContext uc,
int maxExecutionTime) |
protected void |
executeCreate(Create create,
UpdateContext uc) |
protected void |
executeDeleteData(DeleteData deleteDataExpr,
UpdateContext uc,
int maxExecutionTime) |
protected void |
executeInsertData(InsertData insertDataExpr,
UpdateContext uc,
int maxExecutionTime) |
protected void |
executeLoad(Load load,
UpdateContext uc) |
protected void |
executeModify(Modify modify,
UpdateContext uc,
int maxExecutionTime) |
protected void |
executeMove(Move move,
UpdateContext uc,
int maxExecutionTime) |
void |
executeUpdate(UpdateExpr updateExpr,
Dataset dataset,
BindingSet bindings,
boolean includeInferred,
int maxExecutionTime) |
public SailUpdateExecutor(SailConnection con, ValueFactory vf, ParserConfig loadConfig)
SailUpdate.execute()
using
SailConnection.evaluate(TupleExpr, Dataset, BindingSet, boolean)
and other SailConnection
methods.con
- Used to read data from and write data to.vf
- Used to create BNode
sloadConfig
- public void executeUpdate(UpdateExpr updateExpr, Dataset dataset, BindingSet bindings, boolean includeInferred, int maxExecutionTime) throws SailException, RDFParseException, IOException
maxExecutionTime
- in seconds.SailException
RDFParseException
IOException
protected void executeLoad(Load load, UpdateContext uc) throws IOException, RDFParseException, SailException
protected void executeCreate(Create create, UpdateContext uc) throws SailException
SailException
protected void executeCopy(Copy copy, UpdateContext uc, int maxExecutionTime) throws SailException
copy
- uc
- SailException
protected void executeAdd(Add add, UpdateContext uc, int maxExecTime) throws SailException
add
- uc
- SailException
protected void executeMove(Move move, UpdateContext uc, int maxExecutionTime) throws SailException
move
- uc
- SailException
protected void executeClear(Clear clearExpr, UpdateContext uc, int maxExecutionTime) throws SailException
clearExpr
- uc
- SailException
protected void executeInsertData(InsertData insertDataExpr, UpdateContext uc, int maxExecutionTime) throws SailException
insertDataExpr
- uc
- SailException
protected void executeDeleteData(DeleteData deleteDataExpr, UpdateContext uc, int maxExecutionTime) throws SailException
deleteDataExpr
- uc
- SailException
protected void executeModify(Modify modify, UpdateContext uc, int maxExecutionTime) throws SailException
SailException
Copyright © 2015-2022 Eclipse Foundation. All Rights Reserved.