/** * Returns a new instance of a quad store with default values. * * @return a new instance of a quad store with default values. */ public static final Store newQuadStore() { return new QuadStore(randomString()); }
/** * Returns a new instance of a quad store with default values. * * @return a new instance of a quad store with default values. */ public static final Store newQuadStore() { return new QuadStore(randomString()); }
final String layout = commandLine.getOptionValue("s"); if (ConfigValues.STORE_LAYOUT_QUAD.equalsIgnoreCase(layout)) { store = new QuadStore(); _log.info(MessageCatalog._00006_USING_QUAD_STORE_LAYOUT); } else {
final String layout = commandLine.getOptionValue("s"); if (ConfigValues.STORE_LAYOUT_QUAD.equalsIgnoreCase(layout)) { store = new QuadStore(); _log.info(MessageCatalog._00006_USING_QUAD_STORE_LAYOUT); } else {
/** * Test if the ttl feature for the triple store works. * @throws Exception never, otherwise the corresponding test will fail. */ @Ignore @Test public void testTTL() throws Exception { ProgrammableConfigurator progConf = new ProgrammableConfigurator(Collections.singletonMap("ttl-value", Integer.valueOf(5))); QuadStore quadStore = new QuadStore("TestKS"); quadStore.accept(progConf); quadStore.open(); quadStore.bulkLoad(DATA_NQ, RDFFormat.NQUADS); assertEquals((int) _query2numOfRes.get(_null_queries[0]), numOfRes(quadStore.query(_null_queries[0]))); Thread.sleep(7000); assertEquals(0, numOfRes(quadStore.query(_null_queries[0]))); } }
/** * Store must have an identity, supplied at construction time. */ @Test public void setId() { String id = randomString(); _cut = new TripleStore(id); assertEquals(id, _cut.getId()); id = randomString(); _cut = new QuadStore(id); assertEquals(id, _cut.getId()); } }