Search in sources :

Example 1 with RemoteServiceFactoryImpl

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

the class WikibaseContextListener method getDefaultServiceFactory.

/**
 * Get default service factory, with proper options.
 * @return
 */
private static ServiceFactory getDefaultServiceFactory() {
    final RemoteServiceOptions options = new RemoteServiceOptions();
    options.setSPARQLVersion(SPARQLVersion.SPARQL_11);
    options.setGET(true);
    options.setAcceptHeader(TupleQueryResultFormat.SPARQL.getDefaultMIMEType());
    return new RemoteServiceFactoryImpl(options);
}
Also used : RemoteServiceFactoryImpl(com.bigdata.rdf.sparql.ast.service.RemoteServiceFactoryImpl) RemoteServiceOptions(com.bigdata.rdf.sparql.ast.service.RemoteServiceOptions)

Aggregations

RemoteServiceFactoryImpl (com.bigdata.rdf.sparql.ast.service.RemoteServiceFactoryImpl)1 RemoteServiceOptions (com.bigdata.rdf.sparql.ast.service.RemoteServiceOptions)1