|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TripleSource
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.
| Method Summary | |
|---|---|
CloseableIteration<? extends Statement,QueryEvaluationException> |
getStatements(Resource subj,
URI pred,
Value obj,
Resource... contexts)
Gets all statements that have a specific subject, predicate and/or object. |
ValueFactory |
getValueFactory()
Gets a ValueFactory object that can be used to create URI-, blank node- and literal objects. |
| Method Detail |
|---|
CloseableIteration<? extends Statement,QueryEvaluationException> getStatements(Resource subj,
URI pred,
Value obj,
Resource... contexts)
throws QueryEvaluationException
subj - A Resource specifying the subject, or null for a
wildcard.pred - A URI specifying the predicate, or null for a wildcard.obj - A Value specifying the object, or null for a wildcard.contexts - The context(s) to get the statements from. Note that this parameter
is a vararg and as such is optional. If no contexts are supplied
the method operates on the entire repository.
QueryEvaluationException - If the triple source failed to get the statements.ValueFactory getValueFactory()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||