use of org.eclipse.rdf4j.sail.lucene.LuceneSail in project inception by inception-project.
the class SPARQLQueryBuilderTest method setUp.
@BeforeEach
public void setUp() {
suspendSslVerification();
kb = new KnowledgeBase();
kb.setDefaultLanguage("en");
kb.setType(RepositoryType.LOCAL);
kb.setFullTextSearchIri(null);
kb.setMaxResults(100);
initRdfsMapping();
// Local RDF4J in-memory store - this should be used for most tests because we can
// a) rely on its availability
// b) import custom test data
LuceneSail lucenesail = new LuceneSail();
lucenesail.setParameter(LuceneSail.LUCENE_RAMDIR_KEY, "true");
lucenesail.setBaseSail(new MemoryStore());
rdf4jLocalRepo = new SailRepository(lucenesail);
rdf4jLocalRepo.init();
// Local Fuseki in-memory story
fusekiServer = //
FusekiServer.create().add("/fuseki", //
createFusekiFTSDataset()).build();
fusekiServer.start();
fusekiLocalRepo = buildSparqlRepository("http://localhost:" + fusekiServer.getPort() + "/fuseki");
ukpVirtuosoRepo = buildSparqlRepository("http://knowledgebase.ukp.informatik.tu-darmstadt.de:8890/sparql");
wikidata = buildSparqlRepository("https://query.wikidata.org/sparql");
dbpedia = buildSparqlRepository("http://de.dbpedia.org/sparql");
yago = buildSparqlRepository("https://yago-knowledge.org/sparql/query");
hucit = buildSparqlRepository("http://nlp.dainst.org:8888/sparql");
britishMuseum = buildSparqlRepository("http://collection.britishmuseum.org/sparql");
// Web: http://zbw.eu/beta/sparql-lab/?endpoint=http://zbw.eu/beta/sparql/stw/query
zbwStw = buildSparqlRepository("http://zbw.eu/beta/sparql/stw/query");
// Web: http://zbw.eu/beta/sparql-lab/?endpoint=http://zbw.eu/beta/sparql/gnd/query
zbwGnd = buildSparqlRepository("http://zbw.eu/beta/sparql/gnd/query");
}
Aggregations