Search in sources :

Example 1 with RemoteServiceOptions

use of com.bigdata.rdf.sparql.ast.service.RemoteServiceOptions 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)

Example 2 with RemoteServiceOptions

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

the class WikibaseContextListener method getDefaultServiceFactory.

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

Aggregations

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