Search in sources :

Example 6 with ServiceRegistry

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

the class CategoriesStoredQuery method register.

/**
 * Register the service so it is recognized by Blazegraph.
 */
public static void register() {
    ServiceRegistry reg = ServiceRegistry.getInstance();
    reg.add(SERVICE_KEY, new CategoriesStoredQuery());
    reg.addWhitelistURL(SERVICE_KEY.toString());
}
Also used : ServiceRegistry(com.bigdata.rdf.sparql.ast.service.ServiceRegistry)

Aggregations

ServiceRegistry (com.bigdata.rdf.sparql.ast.service.ServiceRegistry)6 IOException (java.io.IOException)2 FunctionRegistry (com.bigdata.rdf.sparql.ast.FunctionRegistry)1 RemoteServiceFactoryImpl (com.bigdata.rdf.sparql.ast.service.RemoteServiceFactoryImpl)1 MetricRegistry (com.codahale.metrics.MetricRegistry)1 VisibleForTesting (com.google.common.annotations.VisibleForTesting)1 Reader (java.io.Reader)1 Path (java.nio.file.Path)1 URIImpl (org.openrdf.model.impl.URIImpl)1 IsSomeValueFunctionFactory (org.wikidata.query.rdf.blazegraph.constraints.IsSomeValueFunctionFactory)1 WikibaseNowBOp (org.wikidata.query.rdf.blazegraph.constraints.WikibaseNowBOp)1 UrisScheme (org.wikidata.query.rdf.common.uri.UrisScheme)1