public abstract class AbstractForwardChainingInferencerConnection extends InferencerConnectionWrapper implements SailConnectionListener
| Modifier and Type | Field and Description |
|---|---|
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(org.eclipse.rdf4j.model.Model iteration)
Returns the number of newly inferred statements.
|
void |
begin() |
void |
begin(IsolationLevel level) |
protected abstract org.eclipse.rdf4j.model.Model |
createModel() |
protected void |
doInferencing() |
void |
flushUpdates() |
protected boolean |
hasNewStatements() |
protected boolean |
needsFullRecomputation()
Indicates if a full recomputation of the deductive closure is needed.
|
protected org.eclipse.rdf4j.model.Model |
prepareIteration() |
void |
rollback() |
void |
statementAdded(org.eclipse.rdf4j.model.Statement st) |
void |
statementRemoved(org.eclipse.rdf4j.model.Statement st) |
addInferredStatement, clearInferred, commit, evaluate, flush, getContextIDs, getStatements, getWrappedConnection, prepare, removeInferredStatement, sizeaddConnectionListener, removeConnectionListeneraddStatement, addStatement, clear, clearNamespaces, close, endUpdate, explain, getNamespace, getNamespaces, isActive, isOpen, pendingRemovals, prepareQuery, removeNamespace, removeStatement, removeStatements, setFederatedServiceResolver, setNamespace, setTransactionSettings, size, startUpdateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddConnectionListener, removeConnectionListeneraddStatement, addStatement, addStatement, addStatement, clear, clearNamespaces, close, endUpdate, explain, getNamespace, getNamespaces, getStatements, hasStatement, isActive, isOpen, pendingRemovals, prepareQuery, removeNamespace, removeStatement, removeStatement, removeStatements, removeStatements, setNamespace, setTransactionSettings, startUpdatepublic AbstractForwardChainingInferencerConnection(Sail sail, InferencerConnection con)
public void statementAdded(org.eclipse.rdf4j.model.Statement st)
statementAdded in interface SailConnectionListenerprotected abstract org.eclipse.rdf4j.model.Model createModel()
public void statementRemoved(org.eclipse.rdf4j.model.Statement st)
statementRemoved in interface SailConnectionListenerpublic void flushUpdates()
throws SailException
flushUpdates in interface InferencerConnectionflushUpdates in class InferencerConnectionWrapperSailExceptionpublic 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(org.eclipse.rdf4j.model.Model iteration) throws SailException
SailExceptionprotected org.eclipse.rdf4j.model.Model prepareIteration()
protected boolean hasNewStatements()
protected boolean needsFullRecomputation()
Copyright © 2015-2021 Eclipse Foundation. All Rights Reserved.