public interface EvaluationStrategy
extends org.eclipse.rdf4j.query.algebra.evaluation.federation.FederatedServiceResolver
TupleExprs and ValueExprs.| Modifier and Type | Method and Description |
|---|---|
org.eclipse.rdf4j.common.iteration.CloseableIteration<org.eclipse.rdf4j.query.BindingSet,org.eclipse.rdf4j.query.QueryEvaluationException> |
evaluate(org.eclipse.rdf4j.query.algebra.Service expr,
String serviceUri,
org.eclipse.rdf4j.common.iteration.CloseableIteration<org.eclipse.rdf4j.query.BindingSet,org.eclipse.rdf4j.query.QueryEvaluationException> bindings)
Evaluates the tuple expression against the supplied triple source with the specified set of variable
bindings as input.
|
org.eclipse.rdf4j.common.iteration.CloseableIteration<org.eclipse.rdf4j.query.BindingSet,org.eclipse.rdf4j.query.QueryEvaluationException> |
evaluate(org.eclipse.rdf4j.query.algebra.TupleExpr expr,
org.eclipse.rdf4j.query.BindingSet bindings)
Evaluates the tuple expression against the supplied triple source with the specified set of variable
bindings as input.
|
org.eclipse.rdf4j.model.Value |
evaluate(org.eclipse.rdf4j.query.algebra.ValueExpr expr,
org.eclipse.rdf4j.query.BindingSet bindings)
Gets the value of this expression.
|
org.eclipse.rdf4j.query.algebra.evaluation.federation.FederatedService |
getService(String serviceUrl)
Retrieve the
FederatedService registered for serviceUrl. |
boolean |
isTrue(org.eclipse.rdf4j.query.algebra.ValueExpr expr,
org.eclipse.rdf4j.query.BindingSet bindings)
Evaluates the boolean expression on the supplied TripleSource object.
|
org.eclipse.rdf4j.query.algebra.evaluation.federation.FederatedService getService(String serviceUrl) throws org.eclipse.rdf4j.query.QueryEvaluationException
FederatedService registered for serviceUrl. If there is no service registered for
serviceUrl, a new SPARQLFederatedService is created and registered.getService in interface org.eclipse.rdf4j.query.algebra.evaluation.federation.FederatedServiceResolverserviceUrl - URL of the service.FederatedService registered for the serviceUrl.org.eclipse.rdf4j.query.QueryEvaluationExceptionFederatedServiceResolver.getService(java.lang.String)org.eclipse.rdf4j.common.iteration.CloseableIteration<org.eclipse.rdf4j.query.BindingSet,org.eclipse.rdf4j.query.QueryEvaluationException> evaluate(org.eclipse.rdf4j.query.algebra.Service expr,
String serviceUri,
org.eclipse.rdf4j.common.iteration.CloseableIteration<org.eclipse.rdf4j.query.BindingSet,org.eclipse.rdf4j.query.QueryEvaluationException> bindings)
throws org.eclipse.rdf4j.query.QueryEvaluationException
expr - The Service Expression to evaluateserviceUri - TODObindings - The variables bindings iterator to use for evaluating the expression, if applicable.org.eclipse.rdf4j.query.QueryEvaluationExceptionorg.eclipse.rdf4j.common.iteration.CloseableIteration<org.eclipse.rdf4j.query.BindingSet,org.eclipse.rdf4j.query.QueryEvaluationException> evaluate(org.eclipse.rdf4j.query.algebra.TupleExpr expr,
org.eclipse.rdf4j.query.BindingSet bindings)
throws org.eclipse.rdf4j.query.QueryEvaluationException
expr - The Tuple Expression to evaluatebindings - The variables bindings to use for evaluating the expression, if applicable.org.eclipse.rdf4j.query.QueryEvaluationExceptionorg.eclipse.rdf4j.model.Value evaluate(org.eclipse.rdf4j.query.algebra.ValueExpr expr,
org.eclipse.rdf4j.query.BindingSet bindings)
throws ValueExprEvaluationException,
org.eclipse.rdf4j.query.QueryEvaluationException
bindings - The variables bindings to use for evaluating the expression, if applicable.ValueExprEvaluationExceptionorg.eclipse.rdf4j.query.QueryEvaluationExceptionboolean isTrue(org.eclipse.rdf4j.query.algebra.ValueExpr expr,
org.eclipse.rdf4j.query.BindingSet bindings)
throws ValueExprEvaluationException,
org.eclipse.rdf4j.query.QueryEvaluationException
bindings - The variables bindings to use for evaluating the expression, if applicable.ValueExprEvaluationException - If the value expression could not be evaluated, for example when comparing two incompatible
operands. When thrown, the result of the boolean expression is neither true nor
false , but unknown.org.eclipse.rdf4j.query.QueryEvaluationExceptionCopyright © 2015-2019 Eclipse Foundation. All Rights Reserved.