public SPARQLLearningProblemsGenerator(SparqlEndpoint endpoint, File benchmarkDirectory, int threadCount) throws ComponentInitException { this.benchmarkDirectory = benchmarkDirectory; this.threadCount = threadCount; // setup the endpoint ks = new SparqlEndpointKS(endpoint); ks.setCacheDir(new File(benchmarkDirectory, "cache").getPath() + ";mv_store=false"); ks.setPageSize(50000); ks.setUseCache(true); ks.setQueryDelay(100); ks.init(); // the directory where instance data is stored dataDir = new File(benchmarkDirectory, "data/dbpedia/"); dataDir.mkdirs(); schema = ModelFactory.createDefaultModel(); // initialize the reasoner reasoner = new SPARQLReasoner(ks); reasoner.init(); }
try { ks = new SparqlEndpointKS(endpoint); ks.setCacheDir(cacheDir.getAbsolutePath() + "/sparql/qtl-AAAI-cache;mv_store=false"); ks.init(); } catch (ComponentInitException e) {
try { ks = new SparqlEndpointKS(endpoint); ks.setCacheDir(cacheDir.getAbsolutePath() + "/sparql/qtl-AAAI-cache;mv_store=false"); ks.setQueryExecutionFactory(qef); ks.init();
"http://dbpedia.org"); ks = new SparqlEndpointKS(endpoint); ks.setCacheDir("./cache-qtl/qtl-qald-iswc2015-cache;mv_store=false"); ks.init();
try { ks = new SparqlEndpointKS(endpoint); ks.setCacheDir(cacheDir.getAbsolutePath() + "/sparql/qtl-AAAI2017-cache;mv_store=false"); ks.setQueryExecutionFactory(qef); ks.init();
try { ks = new SparqlEndpointKS(endpoint); ks.setCacheDir(cacheDir.getAbsolutePath() + "/sparql/qtl-AAAI2017-cache;mv_store=false"); ks.setQueryExecutionFactory(qef); ks.init();