Search in sources :

Example 1 with BigdataServiceCall

use of com.bigdata.rdf.sparql.ast.service.BigdataServiceCall in project wikidata-query-rdf by wikimedia.

the class GeoService method create.

@Override
public BigdataServiceCall create(ServiceCallCreateParams params, ServiceParams serviceParams) {
    if (params == null)
        throw new IllegalArgumentException();
    final JoinGroupNode newGroup = buildServiceNode(params, serviceParams);
    final BigdataValueFactory vf = params.getTripleStore().getValueFactory();
    ServiceNode newServiceNode = new ServiceNode(new DummyConstantNode(vf.asValue(GeoSpatial.SEARCH)), newGroup);
    // Transfer hints
    newServiceNode.setQueryHints(params.getServiceNode().getQueryHints());
    // Call delegate service
    HttpClient client = params.getClientConnectionManager();
    return (BigdataServiceCall) ServiceRegistry.getInstance().toServiceCall(params.getTripleStore(), client, GeoSpatial.SEARCH, newServiceNode, params.getStats());
}
Also used : ServiceNode(com.bigdata.rdf.sparql.ast.service.ServiceNode) BigdataValueFactory(com.bigdata.rdf.model.BigdataValueFactory) DummyConstantNode(com.bigdata.rdf.sparql.ast.DummyConstantNode) HttpClient(org.eclipse.jetty.client.HttpClient) JoinGroupNode(com.bigdata.rdf.sparql.ast.JoinGroupNode) BigdataServiceCall(com.bigdata.rdf.sparql.ast.service.BigdataServiceCall)

Aggregations

BigdataValueFactory (com.bigdata.rdf.model.BigdataValueFactory)1 DummyConstantNode (com.bigdata.rdf.sparql.ast.DummyConstantNode)1 JoinGroupNode (com.bigdata.rdf.sparql.ast.JoinGroupNode)1 BigdataServiceCall (com.bigdata.rdf.sparql.ast.service.BigdataServiceCall)1 ServiceNode (com.bigdata.rdf.sparql.ast.service.ServiceNode)1 HttpClient (org.eclipse.jetty.client.HttpClient)1