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());
}
Aggregations