Interface NativeTripleTermSource
- All Superinterfaces:
AvailableStatementOrder, TripleSource
- All Known Implementing Classes:
SailDatasetTripleTermSource
-
Field Summary
Fields inherited from interface TripleSource
EMPTY_ITERATION -
Method Summary
Modifier and TypeMethodDescriptionCloseableIteration<? extends TripleTerm> getTripleTerms(Resource subj, IRI pred, Value obj) Gets all TripleTerm nodes that have a specific subject, predicate and/or object.Methods inherited from interface TripleSource
getComparator, getStatementCount, getStatements, getStatements, getSupportedOrders, getValueFactoryModifier and TypeMethodDescriptiondefault Comparator<Value> Different underlying datastructures may have different ways of ordering statements.default longgetStatementCount(Resource subj, IRI pred, Value obj, Resource... contexts) Counts statements matching the supplied pattern without requiring callers to materialize converted bindings.default CloseableIteration<? extends Statement> getStatements(StatementOrder order, Resource subj, IRI pred, Value obj, Resource... contexts) Gets all statements that have a specific subject, predicate and/or object.CloseableIteration<? extends Statement> getStatements(Resource subj, IRI pred, Value obj, Resource... contexts) Gets all statements that have a specific subject, predicate and/or object.default Set<StatementOrder> getSupportedOrders(Resource subj, IRI pred, Value obj, Resource... contexts) The underlying store may support some, but not all, statement orders based on the statement pattern.Gets a ValueFactory object that can be used to create IRI-, blank node- and literal objects.
-
Method Details
-
getTripleTerms
CloseableIteration<? extends TripleTerm> getTripleTerms(Resource subj, IRI pred, Value obj) throws QueryEvaluationException Gets all TripleTerm nodes that have a specific subject, predicate and/or object. All three parameters may be null to indicate wildcards.- Parameters:
subj- A Resource specifying the triple's subject, or null for a wildcard.pred- A IRI specifying the triple's predicate, or null for a wildcard.obj- A Value specifying the triple's object, or null for a wildcard.- Returns:
- An iterator over the relevant triples.
- Throws:
QueryEvaluationException- If the rdf star triple source failed to get the statements.
-