public class SailTripleSource extends TripleSourceBase implements TripleSource
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(String preparedQuery,
BindingSet bindings,
FilterValueExpr filterExpr,
QueryInfo queryInfo)
Evaluate the prepared query (SPARQL query as String) 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(StatementPattern stmt,
BindingSet bindings,
QueryInfo queryInfo)
Check if the provided statement can return results.
|
boolean |
usePreparedQuery() |
applyMaxExecutionTimeUpperBound, configureInference, getStatements, hasStatements, hasStatements, monitorRemoteRequest, withConnection
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getStatements, hasStatements, hasStatements
public CloseableIteration<BindingSet,QueryEvaluationException> getStatements(String preparedQuery, BindingSet bindings, FilterValueExpr filterExpr, QueryInfo queryInfo) throws RepositoryException, MalformedQueryException, QueryEvaluationException
TripleSource
getStatements
in interface TripleSource
preparedQuery
- a prepared query to evaluate (SPARQL query as String)bindings
- the bindings to usefilterExpr
- the filter expression to apply or null if there is no filter or if it is evaluated alreadyRepositoryException
MalformedQueryException
QueryEvaluationException
public CloseableIteration<BindingSet,QueryEvaluationException> getStatements(StatementPattern stmt, BindingSet bindings, FilterValueExpr filterExpr, QueryInfo queryInfo) throws RepositoryException, MalformedQueryException, QueryEvaluationException
TripleSource
getStatements
in interface TripleSource
stmt
- 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 alreadyRepositoryException
MalformedQueryException
QueryEvaluationException
public CloseableIteration<Statement,QueryEvaluationException> getStatements(Resource subj, IRI pred, Value obj, QueryInfo queryInfo, Resource... contexts) throws RepositoryException, MalformedQueryException, QueryEvaluationException
TripleSource
Statement
iteration.getStatements
in interface TripleSource
RepositoryException
MalformedQueryException
QueryEvaluationException
public boolean hasStatements(StatementPattern stmt, BindingSet bindings, QueryInfo queryInfo) throws RepositoryException, MalformedQueryException, QueryEvaluationException
TripleSource
hasStatements
in interface TripleSource
bindings
- a binding set. in case no bindings are present, an EmptyBindingSet
can be used (i.e.
never null)RepositoryException
MalformedQueryException
QueryEvaluationException
public boolean usePreparedQuery()
usePreparedQuery
in interface TripleSource
public CloseableIteration<BindingSet,QueryEvaluationException> getStatements(TupleExpr preparedQuery, BindingSet bindings, FilterValueExpr filterExpr, QueryInfo queryInfo) throws RepositoryException, MalformedQueryException, QueryEvaluationException
TripleSource
getStatements
in interface TripleSource
preparedQuery
- 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 alreadyRepositoryException
MalformedQueryException
QueryEvaluationException
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.