| org.openrdf.query.algebra.evaluation.TripleSource
All known Subclasses: org.openrdf.sail.nativerdf.NativeTripleSource, org.openrdf.sail.rdbms.evaluation.RdbmsTripleSource,
TripleSource | public interface TripleSource (Code) | | A triple source that can be queried for (the existence of) certain triples in
certain contexts. This interface defines the methods that are needed by the
Sail Query Model to be able to evaluate itself.
|
getStatements | public CloseableIteration<? extends Statement, QueryEvaluationException> getStatements(Resource subj, URI pred, Value obj, Resource... contexts) throws QueryEvaluationException(Code) | | Gets all statements that have a specific subject, predicate and/or object.
All three parameters may be null to indicate wildcards. Optionally a (set
of) context(s) may be specified in which case the result will be
restricted to statements matching one or more of the specified contexts.
Parameters: subj - A Resource specifying the subject, or null for awildcard. Parameters: pred - A URI specifying the predicate, or null for a wildcard. Parameters: obj - A Value specifying the object, or null for a wildcard. Parameters: contexts - The context(s) to get the statements from. Note that this parameteris a vararg and as such is optional. If no contexts are suppliedthe method operates on the entire repository. An iterator over the relevant statements. throws: QueryEvaluationException - If the triple source failed to get the statements. |
getValueFactory | public ValueFactory getValueFactory()(Code) | | Gets a ValueFactory object that can be used to create URI-, blank node-
and literal objects.
a ValueFactory object for this TripleSource. |
|
|