public class SparqlTripleSource extends TripleSourceBase implements TripleSource
This triple source supports the SparqlEndpointConfiguration for defining whether ASK queries are to be used
for source selection.
The query result of TripleSourceBase.getStatements(String, BindingSet, FilterValueExpr, QueryInfo) is wrapped in a
ConsumingIteration to avoid blocking behavior..
TripleSourceBase.ConnectionOperation<T>, TripleSourceBase.ResultHolder<T>endpoint, federationContext, monitoringService, strategy| Modifier and Type | Method and Description |
|---|---|
CloseableIteration<Statement,QueryEvaluationException> |
getStatements(Resource subj,
IRI pred,
Value obj,
QueryInfo queryInfo,
Resource... contexts)
Return the statements matching the given pattern as a
Statement iteration. |
CloseableIteration<BindingSet,QueryEvaluationException> |
getStatements(StatementPattern stmt,
BindingSet bindings,
FilterValueExpr filterExpr,
QueryInfo queryInfo)
Evaluate the query expression on the provided endpoint.
|
CloseableIteration<BindingSet,QueryEvaluationException> |
getStatements(TupleExpr preparedQuery,
BindingSet bindings,
FilterValueExpr filterExpr,
QueryInfo queryInfo)
Evaluate the prepared query in its internal representation on the provided endpoint.
|
boolean |
hasStatements(ExclusiveTupleExpr expr,
BindingSet bindings)
Check if the repository can return results for the given
ExclusiveTupleExpr, e.g. |
boolean |
hasStatements(Resource subj,
IRI pred,
Value obj,
QueryInfo queryInfo,
Resource... contexts)
Check if the repository can return results for the given triple pattern represented by subj, pred and obj
|
boolean |
hasStatements(StatementPattern stmt,
BindingSet bindings,
QueryInfo queryInfo,
Dataset dataset)
Check if the provided statement can return results.
|
String |
toString() |
boolean |
usePreparedQuery(StatementPattern stmt,
QueryInfo queryInfo) |
applyMaxExecutionTimeUpperBound, configureInference, getStatements, getStatements, monitorRemoteRequest, withConnectionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetStatements, getStatements, getStatements, usePreparedQuerypublic CloseableIteration<BindingSet,QueryEvaluationException> getStatements(StatementPattern stmt, BindingSet bindings, FilterValueExpr filterExpr, QueryInfo queryInfo) throws RepositoryException, MalformedQueryException, QueryEvaluationException
TripleSourcegetStatements in interface TripleSourcestmt - the stmt expression to evaluatebindings - the bindings to usefilterExpr - the filter expression to apply or null if there is no filter or if it is evaluated alreadyRepositoryExceptionMalformedQueryExceptionQueryEvaluationExceptionpublic boolean hasStatements(Resource subj, IRI pred, Value obj, QueryInfo queryInfo, Resource... contexts) throws RepositoryException
TripleSourcehasStatements in interface TripleSourcehasStatements in class TripleSourceBaseRepositoryExceptionpublic boolean hasStatements(StatementPattern stmt, BindingSet bindings, QueryInfo queryInfo, Dataset dataset) throws RepositoryException, MalformedQueryException, QueryEvaluationException
TripleSourcehasStatements in interface TripleSourcebindings - a binding set. in case no bindings are present, an EmptyBindingSet can be used (i.e.
never null)RepositoryExceptionMalformedQueryExceptionQueryEvaluationExceptionpublic boolean hasStatements(ExclusiveTupleExpr expr, BindingSet bindings) throws RepositoryException, MalformedQueryException, QueryEvaluationException
TripleSourceExclusiveTupleExpr, e.g. for an
ExclusiveGroup with a list of Statements.hasStatements in interface TripleSourcehasStatements in class TripleSourceBaseRepositoryExceptionMalformedQueryExceptionQueryEvaluationExceptionpublic boolean usePreparedQuery(StatementPattern stmt, QueryInfo queryInfo)
usePreparedQuery in interface TripleSourcepublic CloseableIteration<BindingSet,QueryEvaluationException> getStatements(TupleExpr preparedQuery, BindingSet bindings, FilterValueExpr filterExpr, QueryInfo queryInfo) throws RepositoryException, MalformedQueryException, QueryEvaluationException
TripleSourcegetStatements in interface TripleSourcepreparedQuery - a prepared query to evaluatebindings - the bindings to usefilterExpr - the filter expression to apply or null if there is no filter or if it is evaluated alreadyRepositoryExceptionMalformedQueryExceptionQueryEvaluationExceptionpublic CloseableIteration<Statement,QueryEvaluationException> getStatements(Resource subj, IRI pred, Value obj, QueryInfo queryInfo, Resource... contexts) throws RepositoryException, MalformedQueryException, QueryEvaluationException
TripleSourceStatement iteration.getStatements in interface TripleSourceRepositoryExceptionMalformedQueryExceptionQueryEvaluationExceptionCopyright © 2015-2020 Eclipse Foundation. All Rights Reserved.