|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.sail.helpers.SailConnectionWrapper
org.openrdf.sail.helpers.PreconditionSailConnection
org.openrdf.sail.inferencer.helpers.PreconditionInferencerConnection
public class PreconditionInferencerConnection
Extension of PreconditionSailConnection that adds inferencer supoprt.
| Field Summary |
|---|
| Fields inherited from class org.openrdf.sail.helpers.PreconditionSailConnection |
|---|
logger |
| Constructor Summary | |
|---|---|
PreconditionInferencerConnection(InferencerConnection con)
|
|
| Method Summary | |
|---|---|
void |
addConnectionListener(SailConnectionListener listener)
Registers a SailConnection listener with this SailConnection. |
boolean |
addInferredStatement(Resource subj,
URI pred,
Value obj,
Resource... contexts)
Adds an inferred statement to a specific context. |
void |
flushUpdates()
Flushes any pending updates to be processed and the resulting changes to be reported to registered SailConnectionListeners. |
protected InferencerConnection |
getDelegate()
Gets the connection that is wrapped by this object. |
void |
removeConnectionListener(SailConnectionListener listener)
Deregisters a SailConnection listener with this SailConnection. |
boolean |
removeInferredStatements(Resource subj,
URI pred,
Value obj,
Resource... contexts)
Removes an inferred statement from a specific context. |
| Methods inherited from class org.openrdf.sail.helpers.PreconditionSailConnection |
|---|
addStatement, begin, clearNamespaces, close, commit, evaluate, getContextIDs, getNamespace, getNamespaces, getStatements, removeNamespace, removeStatements, rollback, setNamespace, setReadOnly, size, verifyIsOpen, verifyNotReadOnly, verifyNotTxnActive, verifyTxnActive |
| Methods inherited from class org.openrdf.sail.helpers.SailConnectionWrapper |
|---|
getTransactionIsolation, getValueFactory, isAutoCommit, isOpen, isReadOnly, setTransactionIsolation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.openrdf.sail.SailConnection |
|---|
addStatement, begin, clearNamespaces, close, commit, evaluate, getContextIDs, getNamespace, getNamespaces, getStatements, getTransactionIsolation, getValueFactory, isAutoCommit, isOpen, isReadOnly, removeNamespace, removeStatements, rollback, setNamespace, setReadOnly, setTransactionIsolation, size |
| Constructor Detail |
|---|
public PreconditionInferencerConnection(InferencerConnection con)
| Method Detail |
|---|
protected InferencerConnection getDelegate()
SailConnectionWrapper
getDelegate in class SailConnectionWrapper
public boolean addInferredStatement(Resource subj,
URI pred,
Value obj,
Resource... contexts)
throws StoreException
InferencerConnection
addInferredStatement 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.
StoreException - If the statement could not be added.
public boolean removeInferredStatements(Resource subj,
URI pred,
Value obj,
Resource... contexts)
throws StoreException
InferencerConnection
removeInferredStatements 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.
StoreException - If the statement could not be removed.
public void flushUpdates()
throws StoreException
InferencerConnectionSailConnectionListeners.
flushUpdates in interface InferencerConnectionStoreException - If the updates could not be processed.public void addConnectionListener(SailConnectionListener listener)
NotifyingSailConnection
addConnectionListener in interface NotifyingSailConnectionlistener - A SailConnectionListener.public void removeConnectionListener(SailConnectionListener listener)
NotifyingSailConnection
removeConnectionListener in interface NotifyingSailConnectionlistener - A SailConnectionListener.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||