// Setup - make the JDBC connection and read the store description once.
Connection jdbc = makeConnection(jdbcURL) ;
//StoreDesc storeDesc = StoreDesc.read("sdb-store.ttl") ;
// Make a store description without any connection information.
StoreDesc storeDesc = new StoreDesc(LayoutType.LayoutTripleNodesHash,
DatabaseType.Derby) ;
// Make some calls to the store, using the same JDBC connection and store description.
System.out.println("Subjects: ") ;
query("SELECT DISTINCT ?s { ?s ?p ?o }", storeDesc, jdbc) ;