/** * Variant for creating a(nother) {@link TempTripleStore} on the same * {@link TemporaryStore}. The {@link TempTripleStore} will have its own * namespace. * * @param store * The {@link TemporaryStore}. * @param properties * Overrides for the database's properties. * @param db * The optional database (a) will establish the defaults for the * {@link TempTripleStore}; and (b) will be able to locate * relations declared on the backing {@link TemporaryStore}. */ public TempTripleStore(final TemporaryStore store, final Properties properties, final AbstractTripleStore db) { this(store, db == null ? properties : stackProperties(properties, store, db)); if (log.isInfoEnabled()) { log.info("new temporary store: " + store.getFile() + ", namespace=" + getNamespace()); } if (db != null) { ((DefaultResourceLocator<?>) db.getIndexManager() .getResourceLocator()).add(store); } /* * Create the KB for this ctor variant! */ create(); }
/** * Variant for creating a(nother) {@link TempTripleStore} on the same * {@link TemporaryStore}. The {@link TempTripleStore} will have its own * namespace. * * @param store * The {@link TemporaryStore}. * @param properties * Overrides for the database's properties. * @param db * The optional database (a) will establish the defaults for the * {@link TempTripleStore}; and (b) will be able to locate * relations declared on the backing {@link TemporaryStore}. */ public TempTripleStore(final TemporaryStore store, final Properties properties, final AbstractTripleStore db) { this(store, db == null ? properties : stackProperties(properties, store, db)); if (log.isInfoEnabled()) { log.info("new temporary store: " + store.getFile() + ", namespace=" + getNamespace()); } if (db != null) { ((DefaultResourceLocator<?>) db.getIndexManager() .getResourceLocator()).add(store); } /* * Create the KB for this ctor variant! */ create(); }