Class SPARQLFederatedService
java.lang.Object
org.eclipse.rdf4j.repository.sparql.federation.RepositoryFederatedService
org.eclipse.rdf4j.repository.sparql.federation.SPARQLFederatedService
- All Implemented Interfaces:
FederatedService
Federated Service wrapping the
SPARQLRepository to communicate with a SPARQL endpoint.- Author:
- Andreas Schwarte
-
Field Summary
Fields inherited from class RepositoryFederatedService
boundJoinBlockSize, shutDownModifier and TypeFieldDescriptionprotected intThe number of bindings sent in a single subquery inRepositoryFederatedService.evaluate(Service, CloseableIteration, String)If blockSize is set to 0, the entire input stream is used as block input the block size effectively determines the number of remote requestsprotected boolean -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class RepositoryFederatedService
ask, evaluate, evaluateInternal, getBoundJoinBlockSize, getConnection, initialize, insertValuesClause, isInitialized, select, setBoundJoinBlockSize, setUseFreshConnection, shutdown, wrapModifier and TypeMethodDescriptionbooleanask(Service service, BindingSet bindings, String baseUri) Evaluate the provided sparqlQueryString at the initializedRepositoryof thisFederatedService.evaluate(Service service, CloseableIteration<BindingSet> bindings, String baseUri) Evaluate the provided SPARQL query at this federated service, possibilities for vectored evaluation.protected CloseableIteration<BindingSet> evaluateInternal(Service service, CloseableIteration<BindingSet> bindings, String baseUri) Evaluate the SPARQL query that can be constructed from the SERVICE node at the initializedRepositoryof thisFederatedService.intprotected RepositoryConnectionRetrieve a (re-usable) connection.voidMethod to perform any initializations, invoked after construction.protected StringinsertValuesClause(String queryString, String valuesClause) Insert the constructed VALUES clause in the beginning of the WHERE block.booleanMethod to check ifFederatedService.initialize()had been called.Evaluate the provided sparqlQueryString at the initializedRepositoryof thisFederatedService.voidsetBoundJoinBlockSize(int boundJoinBlockSize) voidsetUseFreshConnection(boolean flag) voidshutdown()Method to perform any shutDown code, invoked at unregistering.protected RunnableCallback to wrap the runnable prior to passing it to the background Executor.
-
Constructor Details
-
SPARQLFederatedService
- Parameters:
serviceUrl- the serviceUrl use to initialize the innerSPARQLRepository
-