public interface FindableModel
Modifier and Type | Method and Description |
---|---|
boolean |
contains(ResourceOrVariable subject,
UriOrVariable predicate,
NodeOrVariable object) |
boolean |
contains(ResourceOrVariable subject,
UriOrVariable predicate,
String plainLiteral)
Convenience function.
|
boolean |
contains(Statement s) |
long |
countStatements(TriplePattern pattern) |
TriplePattern |
createTriplePattern(ResourceOrVariable subject,
UriOrVariable predicate,
NodeOrVariable object) |
ClosableIterator<Statement> |
findStatements(ResourceOrVariable subject,
UriOrVariable predicate,
NodeOrVariable object)
get all statements in the model with this subject, predicate and object.
|
ClosableIterator<Statement> |
findStatements(TriplePattern pattern)
Iterator must be auto-close, i.e.
|
ClosableIterator<Statement> findStatements(ResourceOrVariable subject, UriOrVariable predicate, NodeOrVariable object) throws ModelRuntimeException
subject
- URI or Object (= blankNode) or Variablepredicate
- URI or Variableobject
- URI or String (=plainLiteral) or BlankNode (=blankNode) or
TypedLiteral or LanguageTagLiteral or VariableModelRuntimeException
- most often caused by underlying
IOException
, if anyClosableIterator<Statement> findStatements(TriplePattern pattern) throws ModelRuntimeException
pattern
- to be matchedModelRuntimeException
- most often caused by underlying
IOException
, if anylong countStatements(TriplePattern pattern) throws ModelRuntimeException
ModelRuntimeException
boolean contains(ResourceOrVariable subject, UriOrVariable predicate, NodeOrVariable object) throws ModelRuntimeException
subject
- defined or a Variable
, e.g. Variable.ANY
predicate
- defined or a Variable
, e.g. Variable.ANY
object
- defined or a Variable
, e.g. Variable.ANY
ModelRuntimeException
- most often caused by underlying
IOException
, if anyboolean contains(ResourceOrVariable subject, UriOrVariable predicate, String plainLiteral) throws ModelRuntimeException
subject
- defined or a Variable
, e.g. Variable.ANY
predicate
- defined or a Variable
, e.g. Variable.ANY
plainLiteral
- a string interpreted as adefined PlainLiteral
ModelRuntimeException
- most often caused by underlying
IOException
, if anyboolean contains(Statement s) throws ModelRuntimeException
s
- a StatementModelRuntimeException
- most often caused by underlying
IOException
, if anyTriplePattern createTriplePattern(ResourceOrVariable subject, UriOrVariable predicate, NodeOrVariable object)
subject
- defined or a Variable
, e.g. Variable.ANY
predicate
- defined or a Variable
, e.g. Variable.ANY
object
- defined or a Variable
, e.g. Variable.ANY
Copyright © 2005–2016 IT-Consulting Dr. Max V?lkel | Project started at FZI Forschungszentrum Informatik, www.fzi.de. All rights reserved.