|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface InferencerConnection
An extension of the SailConnection interface offering methods that
can be used by inferencers to store and remove inferred statements.
| Method Summary | |
|---|---|
boolean |
addInferredStatement(Resource subj,
URI pred,
Value obj,
Resource... contexts)
Adds an inferred statement to a specific context. |
void |
clearInferred(Resource... contexts)
Removes all inferred statements from the specified/all contexts. |
void |
flushUpdates()
Flushes any pending updates to be processed and the resulting changes to be reported to registered SailConnectionListeners. |
boolean |
removeInferredStatement(Resource subj,
URI pred,
Value obj,
Resource... contexts)
Removes an inferred statement from a specific context. |
| Methods inherited from interface org.openrdf.sail.NotifyingSailConnection |
|---|
addConnectionListener, removeConnectionListener |
| Methods inherited from interface org.openrdf.sail.SailConnection |
|---|
addStatement, clear, clearNamespaces, close, commit, evaluate, getContextIDs, getNamespace, getNamespaces, getStatements, isOpen, removeNamespace, removeStatements, rollback, setNamespace, size |
| Method Detail |
|---|
boolean addInferredStatement(Resource subj,
URI pred,
Value obj,
Resource... contexts)
throws SailException
subj - The subject of the statement to add.pred - The predicate of the statement to add.obj - The object of the statement to add.context - A resource identifying the named context to add the statement to,
or null to add the statement to the null context.
SailException - If the statement could not be added.
boolean removeInferredStatement(Resource subj,
URI pred,
Value obj,
Resource... contexts)
throws SailException
subj - 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.context - A resource identifying the named context to remove the statement
from, or null to remove the statement from the null
context.
SailException - If the statement could not be removed.
void clearInferred(Resource... contexts)
throws SailException
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 statements could not be removed.
void flushUpdates()
throws SailException
SailConnectionListeners.
SailException - If the updates could not be processed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||