| org.ontoware.rdf2go.model.FindableModel
FindableModel | public interface FindableModel (Code) | | A model where you can list all statements, find statements and check if a
statement is contained.
author: voelkel |
Method Summary | |
public boolean | contains(ResourceOrVariable subject, UriOrVariable predicate, NodeOrVariable object) | public boolean | contains(ResourceOrVariable subject, UriOrVariable predicate, String plainLiteral) Convenience function. | public boolean | contains(Statement s) | public long | countStatements(TriplePattern pattern) | public TriplePattern | createTriplePattern(ResourceOrVariable subject, UriOrVariable predicate, NodeOrVariable object) | public ClosableIterator<Statement> | findStatements(ResourceOrVariable subject, UriOrVariable predicate, NodeOrVariable object) get all statements in the model with this subject, predicate and object.
Each of those (s,p,o) can be Variable.ANY
Iterator must be auto-close, i.e. | public ClosableIterator<Statement> | findStatements(TriplePattern pattern) Iterator must be auto-close, i.e. |
findStatements | public ClosableIterator<Statement> findStatements(ResourceOrVariable subject, UriOrVariable predicate, NodeOrVariable object) throws ModelRuntimeException(Code) | | get all statements in the model with this subject, predicate and object.
Each of those (s,p,o) can be Variable.ANY
Iterator must be auto-close, i.e. when last element is fetched, the
implementation must call close().
Parameters: subject - URI or Object (= blankNode) or Variable Parameters: predicate - URI or Variable Parameters: object - URI or String (=plainLiteral) or BlankNode (=blankNode) orTypedLiteral or LanguageTagLiteral or Variable a statement iterator throws: ModelRuntimeException - |
|
|