| org.openrdf.sail.inferencer.InferencerConnection
All known Subclasses: org.openrdf.sail.nativerdf.NativeStoreConnection, org.openrdf.sail.memory.MemoryStoreConnection, org.openrdf.sail.inferencer.InferencerConnectionWrapper,
InferencerConnection | public interface InferencerConnection extends SailConnection(Code) | | An extension of the
SailConnection interface offering methods that
can be used by inferencers to store and remove inferred statements.
|
addInferredStatement | public boolean addInferredStatement(Resource subj, URI pred, Value obj, Resource... contexts) throws SailException(Code) | | Adds an inferred statement to a specific context.
Parameters: subj - The subject of the statement to add. Parameters: pred - The predicate of the statement to add. Parameters: obj - The object of the statement to add. Parameters: context - A resource identifying the named context to add the statement to,or null to add the statement to the null context. throws: SailException - If the statement could not be added. |
clearInferred | public void clearInferred(Resource... contexts) throws SailException(Code) | | Removes all inferred statements from the specified/all contexts. If no
contexts are specified the method operates on the entire repository.
Parameters: contexts - The context(s) from which to remove the statements. Note that thisparameter is a vararg and as such is optional. If no contexts aresupplied the method operates on the entire repository. throws: SailException - If the statements could not be removed. |
removeInferredStatement | public boolean removeInferredStatement(Resource subj, URI pred, Value obj, Resource... contexts) throws SailException(Code) | | Removes an inferred statement from a specific context.
Parameters: subj - The subject of the statement that should be removed. Parameters: pred - The predicate of the statement that should be removed. Parameters: obj - The object of the statement that should be removed. Parameters: context - A resource identifying the named context to remove the statementfrom, or null to remove the statement from the nullcontext. throws: SailException - If the statement could not be removed. |
|
|