public abstract class AbstractForwardChainingInferencerConnection extends InferencerConnectionWrapper implements SailConnectionListener
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
protected int |
totalInferred |
| Constructor and Description |
|---|
AbstractForwardChainingInferencerConnection(Sail sail,
InferencerConnection con) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
addAxiomStatements()
Adds all basic set of axiom statements from which the complete set can be inferred to the underlying
Sail.
|
protected abstract int |
applyRules(Model iteration)
Returns the number of newly inferred statements.
|
void |
begin() |
void |
begin(IsolationLevel level) |
protected abstract Model |
createModel() |
protected void |
doInferencing() |
void |
flushUpdates()
Flushes any pending updates to be processed and the resulting changes to be reported to registered
SailConnectionListeners. |
protected boolean |
hasNewStatements() |
protected boolean |
needsFullRecomputation()
Indicates if a full recomputation of the deductive closure is needed.
|
protected Model |
prepareIteration() |
void |
rollback() |
void |
statementAdded(Statement st) |
void |
statementRemoved(Statement st) |
addInferredStatement, clearInferred, commit, evaluate, flush, getContextIDs, getStatements, getWrappedConnection, prepare, removeInferredStatement, sizeaddConnectionListener, removeConnectionListeneraddStatement, addStatement, clear, clearNamespaces, close, endUpdate, getNamespace, getNamespaces, isActive, isOpen, pendingRemovals, removeNamespace, removeStatement, removeStatements, setFederatedServiceResolver, setNamespace, size, startUpdateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddConnectionListener, removeConnectionListeneraddStatement, addStatement, addStatement, addStatement, clear, clearNamespaces, close, endUpdate, getNamespace, getNamespaces, getStatements, hasStatement, isActive, isOpen, pendingRemovals, removeNamespace, removeStatement, removeStatement, removeStatements, removeStatements, setNamespace, startUpdateprotected final org.slf4j.Logger logger
protected int totalInferred
public AbstractForwardChainingInferencerConnection(Sail sail, InferencerConnection con)
public void statementAdded(Statement st)
statementAdded in interface SailConnectionListenerprotected abstract Model createModel()
public void statementRemoved(Statement st)
statementRemoved in interface SailConnectionListenerpublic void flushUpdates()
throws SailException
InferencerConnectionSailConnectionListeners.flushUpdates in interface InferencerConnectionflushUpdates in class InferencerConnectionWrapperSailException - If the updates could not be processed.public void begin()
throws SailException
begin in interface SailConnectionbegin in class org.eclipse.rdf4j.sail.helpers.SailConnectionWrapperSailExceptionpublic void begin(IsolationLevel level) throws SailException
begin in interface SailConnectionbegin in class org.eclipse.rdf4j.sail.helpers.SailConnectionWrapperSailExceptionpublic void rollback()
throws SailException
rollback in interface SailConnectionrollback in class org.eclipse.rdf4j.sail.helpers.SailConnectionWrapperSailExceptionprotected abstract void addAxiomStatements()
throws SailException
SailExceptionprotected void doInferencing()
throws SailException
SailExceptionprotected abstract int applyRules(Model iteration) throws SailException
SailExceptionprotected Model prepareIteration()
protected boolean hasNewStatements()
protected boolean needsFullRecomputation()
Copyright © 2015-2018 Eclipse Foundation. All Rights Reserved.