public interface FederatedService
SPARQLFederatedService is used.SPARQLFederatedService| 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
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.
|
boolean ask(Service service, BindingSet bindings, String baseUri) throws QueryEvaluationException
Evaluate the provided SPARQL ASK query at this federated service.
Expected behavior: evaluate boolean query using the bindings as constraints
service - the reference to the service node, contains additional meta information (vars, prefixes)bindings - the bindings serving as additional constraintsbaseUri - true if at least one result existsQueryEvaluationException - If there was an exception generated while evaluating the query.CloseableIteration<BindingSet,QueryEvaluationException> select(Service service, Set<String> projectionVars, BindingSet bindings, String baseUri) throws QueryEvaluationException
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
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 constraintsbaseUri - QueryEvaluationException - If there was an exception generated while evaluating the query.CloseableIteration<BindingSet,QueryEvaluationException> evaluate(Service service, CloseableIteration<BindingSet,QueryEvaluationException> bindings, String baseUri) throws QueryEvaluationException
Contracts:
Compare SPARQLFederatedService for a reference
implementation
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.boolean isInitialized()
initialize() had been called.void initialize()
throws QueryEvaluationException
QueryEvaluationException - If there was an exception generated while initializing the service.void shutdown()
throws QueryEvaluationException
QueryEvaluationException - If there was an exception generated while shutting down the service.Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.