public abstract class SailSourceConnection extends org.eclipse.rdf4j.sail.helpers.NotifyingSailConnectionBase implements InferencerConnection, FederatedServiceResolverClient
SailConnection implementation that is based on an SailStore .connectionLock, logger, updateLock| Modifier | Constructor and Description |
|---|---|
protected |
SailSourceConnection(org.eclipse.rdf4j.sail.helpers.AbstractSail sail,
SailStore store,
EvaluationStrategyFactory evalStratFactory)
Creates a new
SailConnection, using the given SailStore to manage the state. |
protected |
SailSourceConnection(org.eclipse.rdf4j.sail.helpers.AbstractSail sail,
SailStore store,
FederatedServiceResolver resolver)
Creates a new
SailConnection, using the given SailStore to manage the state. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addInferredStatement(Resource subj,
IRI pred,
Value obj,
Resource... contexts)
Adds an inferred statement to a specific context.
|
void |
addStatement(UpdateContext op,
Resource subj,
IRI pred,
Value obj,
Resource... contexts) |
void |
clearInferred(Resource... contexts)
Removes all inferred statements from the specified/all contexts.
|
protected void |
clearInternal(Resource... contexts) |
protected void |
clearNamespacesInternal() |
protected void |
closeInternal() |
protected void |
commitInternal() |
protected void |
endUpdateInternal(UpdateContext op) |
protected CloseableIteration<? extends BindingSet,QueryEvaluationException> |
evaluateInternal(TupleExpr tupleExpr,
Dataset dataset,
BindingSet bindings,
boolean includeInferred) |
void |
flushUpdates()
Flushes any pending updates to be processed and the resulting changes to be reported to registered
SailConnectionListeners. |
protected CloseableIteration<? extends Resource,SailException> |
getContextIDsInternal() |
protected EvaluationStrategy |
getEvaluationStrategy(Dataset dataset,
TripleSource tripleSource) |
FederatedServiceResolver |
getFederatedServiceResolver()
Returns the
FederatedServiceResolver being used. |
protected String |
getNamespaceInternal(String prefix) |
protected CloseableIteration<? extends Namespace,SailException> |
getNamespacesInternal() |
protected CloseableIteration<? extends Statement,SailException> |
getStatementsInternal(Resource subj,
IRI pred,
Value obj,
boolean includeInferred,
Resource... contexts) |
boolean |
pendingRemovals() |
protected void |
prepareInternal() |
boolean |
removeInferredStatement(Resource subj,
IRI pred,
Value obj,
Resource... contexts)
Removes an inferred statement from a specific context.
|
protected void |
removeNamespaceInternal(String prefix) |
void |
removeStatement(UpdateContext op,
Resource subj,
IRI pred,
Value obj,
Resource... contexts) |
protected void |
rollbackInternal() |
void |
setFederatedServiceResolver(FederatedServiceResolver resolver)
Sets the
FederatedServiceResolver to use. |
protected void |
setNamespaceInternal(String prefix,
String name) |
protected long |
sizeInternal(Resource... contexts) |
protected void |
startTransactionInternal() |
void |
startUpdate(UpdateContext op) |
addConnectionListener, hasConnectionListeners, notifyStatementAdded, notifyStatementRemoved, removeConnectionListeneraddStatement, addStatementInternal, autoStartTransaction, begin, begin, clear, clearNamespaces, close, commit, endUpdate, evaluate, flush, getContextIDs, getExclusiveConnectionLock, getNamespace, getNamespaces, getSharedConnectionLock, getStatements, getTransactionIsolation, getTransactionLock, isActive, isActiveOperation, isOpen, iterationClosed, prepare, registerIteration, removeNamespace, removeStatements, removeStatementsInternal, rollback, setNamespace, size, transactionActive, verifyIsActive, verifyIsOpenclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddConnectionListener, removeConnectionListeneraddStatement, addStatement, addStatement, begin, begin, clear, clearNamespaces, close, commit, endUpdate, evaluate, flush, getContextIDs, getNamespace, getNamespaces, getStatements, getStatements, hasStatement, isActive, isOpen, prepare, removeNamespace, removeStatement, removeStatements, removeStatements, rollback, setNamespace, sizeprotected SailSourceConnection(org.eclipse.rdf4j.sail.helpers.AbstractSail sail, SailStore store, FederatedServiceResolver resolver)
SailConnection, using the given SailStore to manage the state.sail - store - resolver - the FederatedServiceResolver to use with the default
EvaluationStrategy.protected SailSourceConnection(org.eclipse.rdf4j.sail.helpers.AbstractSail sail, SailStore store, EvaluationStrategyFactory evalStratFactory)
SailConnection, using the given SailStore to manage the state.sail - store - evalStratFactory - the EvaluationStrategyFactory to use.public boolean pendingRemovals()
pendingRemovals in interface SailConnectionpublic FederatedServiceResolver getFederatedServiceResolver()
FederatedServiceResolver being used.EvaluationStrategyFactory is being used.public void setFederatedServiceResolver(FederatedServiceResolver resolver)
FederatedServiceResolver to use. If a custom EvaluationStrategyFactory is
being used then this only has an effect if it implements FederatedServiceResolverClient.setFederatedServiceResolver in interface FederatedServiceResolverClientresolver - The resolver to use.protected EvaluationStrategy getEvaluationStrategy(Dataset dataset, TripleSource tripleSource)
protected CloseableIteration<? extends BindingSet,QueryEvaluationException> evaluateInternal(TupleExpr tupleExpr, Dataset dataset, BindingSet bindings, boolean includeInferred) throws SailException
evaluateInternal in class org.eclipse.rdf4j.sail.helpers.AbstractSailConnectionSailExceptionprotected void closeInternal()
throws SailException
closeInternal in class org.eclipse.rdf4j.sail.helpers.AbstractSailConnectionSailExceptionprotected CloseableIteration<? extends Resource,SailException> getContextIDsInternal() throws SailException
getContextIDsInternal in class org.eclipse.rdf4j.sail.helpers.AbstractSailConnectionSailExceptionprotected CloseableIteration<? extends Statement,SailException> getStatementsInternal(Resource subj, IRI pred, Value obj, boolean includeInferred, Resource... contexts) throws SailException
getStatementsInternal in class org.eclipse.rdf4j.sail.helpers.AbstractSailConnectionSailExceptionprotected long sizeInternal(Resource... contexts) throws SailException
sizeInternal in class org.eclipse.rdf4j.sail.helpers.AbstractSailConnectionSailExceptionprotected CloseableIteration<? extends Namespace,SailException> getNamespacesInternal() throws SailException
getNamespacesInternal in class org.eclipse.rdf4j.sail.helpers.AbstractSailConnectionSailExceptionprotected String getNamespaceInternal(String prefix) throws SailException
getNamespaceInternal in class org.eclipse.rdf4j.sail.helpers.AbstractSailConnectionSailExceptionprotected void startTransactionInternal()
throws SailException
startTransactionInternal in class org.eclipse.rdf4j.sail.helpers.AbstractSailConnectionSailExceptionprotected void prepareInternal()
throws SailException
prepareInternal in class org.eclipse.rdf4j.sail.helpers.AbstractSailConnectionSailExceptionprotected void commitInternal()
throws SailException
commitInternal in class org.eclipse.rdf4j.sail.helpers.AbstractSailConnectionSailExceptionprotected void rollbackInternal()
throws SailException
rollbackInternal in class org.eclipse.rdf4j.sail.helpers.AbstractSailConnectionSailExceptionpublic void startUpdate(UpdateContext op) throws SailException
startUpdate in interface SailConnectionstartUpdate in class org.eclipse.rdf4j.sail.helpers.AbstractSailConnectionSailExceptionpublic void addStatement(UpdateContext op, Resource subj, IRI pred, Value obj, Resource... contexts) throws SailException
addStatement in interface SailConnectionaddStatement in class org.eclipse.rdf4j.sail.helpers.AbstractSailConnectionSailExceptionpublic void removeStatement(UpdateContext op, Resource subj, IRI pred, Value obj, Resource... contexts) throws SailException
removeStatement in interface SailConnectionremoveStatement in class org.eclipse.rdf4j.sail.helpers.AbstractSailConnectionSailExceptionprotected void endUpdateInternal(UpdateContext op) throws SailException
endUpdateInternal in class org.eclipse.rdf4j.sail.helpers.AbstractSailConnectionSailExceptionpublic boolean addInferredStatement(Resource subj, IRI pred, Value obj, Resource... contexts) throws SailException
InferencerConnectionaddInferredStatement in interface InferencerConnectionsubj - The subject of the statement to add.pred - The predicate of the statement to add.obj - The object of the statement to add.contexts - The context(s) to add the statement to. Note that this parameter is a vararg and as such is
optional. If no contexts are supplied the method operates on the entire repository.SailException - If the statement could not be added.public boolean removeInferredStatement(Resource subj, IRI pred, Value obj, Resource... contexts) throws SailException
InferencerConnectionremoveInferredStatement in interface InferencerConnectionsubj - The subject of the statement that should be removed.pred - The predicate of the statement that should be removed.obj - The object of the statement that should be removed.contexts - The context(s) from which to remove the statements. Note that this parameter is a vararg and as
such is optional. If no contexts are supplied the method operates on the entire repository.SailException - If the statement could not be removed.protected void clearInternal(Resource... contexts) throws SailException
clearInternal in class org.eclipse.rdf4j.sail.helpers.AbstractSailConnectionSailExceptionpublic void clearInferred(Resource... contexts) throws SailException
InferencerConnectionclearInferred in interface InferencerConnectioncontexts - The context(s) from which to remove the statements. Note that this parameter is a vararg and as
such is optional. If no contexts are supplied the method operates on the entire repository.SailException - If the statements could not be removed.public void flushUpdates()
throws SailException
InferencerConnectionSailConnectionListeners.flushUpdates in interface InferencerConnectionSailException - If the updates could not be processed.protected void setNamespaceInternal(String prefix, String name) throws SailException
setNamespaceInternal in class org.eclipse.rdf4j.sail.helpers.AbstractSailConnectionSailExceptionprotected void removeNamespaceInternal(String prefix) throws SailException
removeNamespaceInternal in class org.eclipse.rdf4j.sail.helpers.AbstractSailConnectionSailExceptionprotected void clearNamespacesInternal()
throws SailException
clearNamespacesInternal in class org.eclipse.rdf4j.sail.helpers.AbstractSailConnectionSailExceptionCopyright © 2015-2018 Eclipse Foundation. All Rights Reserved.