public interface TripleSource
SparqlTripleSource
,
SailTripleSource
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(String preparedQuery,
BindingSet queryBindings,
QueryType queryType,
QueryInfo queryInfo)
Evaluate a given SPARQL query of the provided query type at the given source.
|
default CloseableIteration<BindingSet,QueryEvaluationException> |
getStatements(String preparedQuery,
QueryType queryType,
QueryInfo queryInfo)
Deprecated.
|
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.
|
default boolean |
usePreparedQuery()
Deprecated.
replaced with
usePreparedQuery(StatementPattern, QueryInfo) , to be removed in 4.0 |
boolean |
usePreparedQuery(StatementPattern stmt,
QueryInfo queryInfo) |
CloseableIteration<BindingSet,QueryEvaluationException> getStatements(TupleExpr preparedQuery, BindingSet bindings, FilterValueExpr filterExpr, QueryInfo queryInfo) throws RepositoryException, MalformedQueryException, QueryEvaluationException
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
CloseableIteration<BindingSet,QueryEvaluationException> getStatements(String preparedQuery, BindingSet bindings, FilterValueExpr filterExpr, QueryInfo queryInfo) throws RepositoryException, MalformedQueryException, QueryEvaluationException
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
@Deprecated default CloseableIteration<BindingSet,QueryEvaluationException> getStatements(String preparedQuery, QueryType queryType, QueryInfo queryInfo) throws RepositoryException, MalformedQueryException, QueryEvaluationException
preparedQuery
- queryType
- queryInfo
- RepositoryException
MalformedQueryException
QueryEvaluationException
CloseableIteration<BindingSet,QueryEvaluationException> getStatements(String preparedQuery, BindingSet queryBindings, QueryType queryType, QueryInfo queryInfo) throws RepositoryException, MalformedQueryException, QueryEvaluationException
preparedQuery
- queryBindings
- optional query bindings, use EmptyBindingSet
if there are nonequeryType
- queryInfo
- RepositoryException
MalformedQueryException
QueryEvaluationException
CloseableIteration<BindingSet,QueryEvaluationException> getStatements(StatementPattern stmt, BindingSet bindings, FilterValueExpr filterExpr, QueryInfo queryInfo) throws RepositoryException, MalformedQueryException, QueryEvaluationException
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
CloseableIteration<Statement,QueryEvaluationException> getStatements(Resource subj, IRI pred, Value obj, QueryInfo queryInfo, Resource... contexts) throws RepositoryException, MalformedQueryException, QueryEvaluationException
Statement
iteration.subj
- pred
- obj
- contexts
- RepositoryException
MalformedQueryException
QueryEvaluationException
boolean hasStatements(StatementPattern stmt, BindingSet bindings, QueryInfo queryInfo, Dataset dataset) throws RepositoryException, MalformedQueryException, QueryEvaluationException
stmt
- bindings
- a binding set. in case no bindings are present, an EmptyBindingSet
can be used (i.e.
never null)queryInfo
- dataset
- RepositoryException
MalformedQueryException
QueryEvaluationException
boolean hasStatements(Resource subj, IRI pred, Value obj, QueryInfo queryInfo, Resource... contexts) throws RepositoryException
subj
- pred
- obj
- queryInfo
- contexts
- RepositoryException
boolean hasStatements(ExclusiveTupleExpr expr, BindingSet bindings) throws RepositoryException, MalformedQueryException, QueryEvaluationException
ExclusiveTupleExpr
, e.g. for an
ExclusiveGroup
with a list of Statements.group
- bindings
- RepositoryException
MalformedQueryException
QueryEvaluationException
@Deprecated default boolean usePreparedQuery()
usePreparedQuery(StatementPattern, QueryInfo)
, to be removed in 4.0boolean usePreparedQuery(StatementPattern stmt, QueryInfo queryInfo)
stmt
- queryInfo
- Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.