/** * Returns a new instance of a triple store with default values. * * @return a new instance of a triple store with default values. */ public static final Store newTripleStore() { return new TripleStore(randomString()); }
/** * Returns a new instance of a triple store with default values. * * @return a new instance of a triple store with default values. */ public static final Store newTripleStore() { return new TripleStore(randomString()); }
_log.info(MessageCatalog._00006_USING_QUAD_STORE_LAYOUT); } else { store = new TripleStore(); _log.info(MessageCatalog._00005_USING_TRIPLE_STORE_LAYOUT); store = new TripleStore(); _log.info(MessageCatalog._00005_USING_TRIPLE_STORE_LAYOUT);
_log.info(MessageCatalog._00006_USING_QUAD_STORE_LAYOUT); } else { store = new TripleStore(); _log.info(MessageCatalog._00005_USING_TRIPLE_STORE_LAYOUT); store = new TripleStore(); _log.info(MessageCatalog._00005_USING_TRIPLE_STORE_LAYOUT);
/** * Setup fixture for this test. */ @BeforeClass public static void init() throws Exception { inMemoryRepository = new SailRepository(new MemoryStore()); cumulusRepository = new SailRepository(new CumulusRDFSail(new TripleStore())); inMemoryRepository.initialize(); cumulusRepository.initialize(); localConnection = inMemoryRepository.getConnection(); cumulusConnection = cumulusRepository.getConnection(); }
/** * 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()); } }
@BeforeClass public static void setUp() throws Exception { // Set up standard Sesame Repository for comparison EMBEDDED_REPOSITORY = new SailRepository(new MemoryStore()); EMBEDDED_REPOSITORY.initialize(); EMBEDDED_REPOSITORY_CONNECTION = EMBEDDED_REPOSITORY.getConnection(); EMBEDDED_REPOSITORY_CONNECTION.add(DATAFILE, null, RDFFormat.N3); _tripleStore = new TripleStore(); _sail = new CumulusRDFSail(_tripleStore); _repository = new SailRepository(_sail); _repository.initialize(); CUMULUS_CONNECTION = _repository.getConnection(); } private List<String> _queries = new ArrayList<String>();