public interface FederatedService
SPARQLFederatedService
is used.SPARQLFederatedService
Modifier and Type | Interface and Description |
---|---|
static class |
FederatedService.QueryType
Query type
|
Modifier and Type | Method and Description |
---|---|
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.
|
CloseableIteration<BindingSet,QueryEvaluationException> |
evaluate(String sparqlQueryString,
BindingSet bindings,
String baseUri,
FederatedService.QueryType type,
Service service)
Evaluate the provided SPARQL query at this federated service.
|
void |
initialize()
Method to perform any initializations, invoked after construction.
|
void |
shutdown()
Method to perform any shutDown code, invoked at unregistering.
|
CloseableIteration<BindingSet,QueryEvaluationException> evaluate(String sparqlQueryString, BindingSet bindings, String baseUri, FederatedService.QueryType type, Service service) throws QueryEvaluationException
Evaluate the provided SPARQL query at this federated service.
Important: The original bindings need to be inserted into the
result, e.g. via InsertBindingSetCursor
.
Expected behavior: a) SELECT: evaluate the given SPARQL query using the bindings as constraints b) ASK: evaluate boolean query using the bindings as constraints - true => return new SingletonIteration(bindings); - false => return new EmptyIteration();
sparqlQueryString
- a SPARQL query (either SELECT or ASK, compare type parameter)bindings
- the bindings serving as additional constraintsbaseUri
- type
- the FederatedService.QueryType
, either ASK or SELECTservice
- the reference to the service node, contains additional meta
information (vars, prefixes)QueryEvaluationException
CloseableIteration<BindingSet,QueryEvaluationException> evaluate(Service service, CloseableIteration<BindingSet,QueryEvaluationException> bindings, String baseUri) throws QueryEvaluationException
Contracts:
InsertBindingSetCursor
.
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
void initialize() throws RepositoryException
RepositoryException
void shutdown() throws RepositoryException
RepositoryException
Copyright © 2001-2016 Aduna. All Rights Reserved.