use of org.apache.jena.sdb.StoreDesc in project jena by apache.
the class StoreCreator method getHashDB2.
public static Store getHashDB2() {
if (sdbdb2h == null) {
JDBC.loadDriverDB2();
String url = JDBC.makeURL("db2", "sweb-sdb-4:50000", "TEST2H");
SDBConnection sdb = new SDBConnection(url, "user", "password");
StoreDesc desc = new StoreDesc(LayoutType.LayoutTripleNodesHash, DatabaseType.DB2);
sdbdb2h = new StoreTriplesNodesHashDB2(sdb, desc);
sdbdb2h.getTableFormatter().create();
} else
sdbdb2h.getTableFormatter().truncate();
return sdbdb2h;
}
use of org.apache.jena.sdb.StoreDesc in project jena by apache.
the class TestPrefixMappingSDB method setUpClass.
@BeforeClass
public static void setUpClass() {
JDBC.loadDriverHSQL();
//SDB.init() ;
sdb = SDBFactory.createConnection(hsql, "sa", "");
StoreDesc desc = new StoreDesc("Layout2", "HSQLDB", null);
Store store = SDBFactory.connectStore(sdb, desc);
store.getTableFormatter().format();
// Make a store and format it.
}
Aggregations