public class TupleFunctionFederatedService extends Object implements FederatedService
TupleFunctions.| Constructor and Description |
|---|
TupleFunctionFederatedService(TupleFunctionRegistry tupleFunctionRegistry,
ValueFactory vf) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
ask(Service service,
BindingSet bindings,
String baseUri)
Evaluate the provided SPARQL ASK query at this federated service.
|
CloseableIteration<BindingSet,QueryEvaluationException> |
evaluate(Service service,
CloseableIteration<BindingSet,QueryEvaluationException> bindings,
String baseUri)
Evaluate the provided SPARQL query at this federated service, possibilities for vectored evaluation.
|
void |
initialize()
Method to perform any initializations, invoked after construction.
|
boolean |
isInitialized()
Method to check if
FederatedService.initialize() had been called. |
CloseableIteration<BindingSet,QueryEvaluationException> |
select(Service service,
Set<String> projectionVars,
BindingSet bindings,
String baseUri)
Evaluate the provided SPARQL query at this federated service.
|
void |
shutdown()
Method to perform any shutDown code, invoked at unregistering.
|
public TupleFunctionFederatedService(TupleFunctionRegistry tupleFunctionRegistry, ValueFactory vf)
public boolean isInitialized()
FederatedServiceFederatedService.initialize() had been called.isInitialized in interface FederatedServicepublic void initialize()
FederatedServiceinitialize in interface FederatedServicepublic void shutdown()
FederatedServiceshutdown in interface FederatedServicepublic boolean ask(Service service, BindingSet bindings, String baseUri) throws QueryEvaluationException
FederatedServiceEvaluate the provided SPARQL ASK query at this federated service.
Expected behavior: evaluate boolean query using the bindings as constraints
ask in interface FederatedServiceservice - the reference to the service node, contains additional meta information (vars, prefixes)bindings - the bindings serving as additional constraintstrue if at least one result existsQueryEvaluationException - If there was an exception generated while evaluating the query.public CloseableIteration<BindingSet,QueryEvaluationException> select(Service service, Set<String> projectionVars, BindingSet bindings, String baseUri) throws QueryEvaluationException
FederatedServiceEvaluate the provided SPARQL query at this federated service.
Important: The original bindings need to be inserted into the result.
Expected behavior: evaluate the given SPARQL query using the bindings as constraints
select in interface FederatedServiceservice - the reference to the service node, contains additional meta information (vars, prefixes)projectionVars - The variables with unknown value that should be projected from this evaluationbindings - the bindings serving as additional constraintsQueryEvaluationException - If there was an exception generated while evaluating the query.public final CloseableIteration<BindingSet,QueryEvaluationException> evaluate(Service service, CloseableIteration<BindingSet,QueryEvaluationException> bindings, String baseUri) throws QueryEvaluationException
FederatedServiceContracts:
Compare SPARQLFederatedService for a reference
implementation
evaluate in interface FederatedServiceservice - the reference to the service node, contains information to construct the querybindings - the bindings serving as additional constraints (for vectored evaluation)baseUri - the baseUriQueryEvaluationException - If there was an exception generated while evaluating the query.Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.