public class TupleFunctionFederatedService extends Object implements FederatedService
TupleFunction
s.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()
FederatedService
FederatedService.initialize()
had been called.isInitialized
in interface FederatedService
public void initialize()
FederatedService
initialize
in interface FederatedService
public void shutdown()
FederatedService
shutdown
in interface FederatedService
public boolean ask(Service service, BindingSet bindings, String baseUri) throws QueryEvaluationException
FederatedService
Evaluate the provided SPARQL ASK query at this federated service.
Expected behavior: evaluate boolean query using the bindings as constraints
ask
in interface FederatedService
service
- 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
FederatedService
Evaluate 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 FederatedService
service
- 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
FederatedService
Contracts:
Compare SPARQLFederatedService
for a reference
implementation
evaluate
in interface FederatedService
service
- 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.