Dear, I have studied the Jena for some time and did some test prototypes.
In recent studies found that the documentation indicates the TDB component
for development of new applications, but all prototypes that had made was
based on SDB.

Example of connection:

      public Store getStore() {

StoreDesc storeDesc = new StoreDesc(LayoutType.LayoutTripleNodesHash,
 DatabaseType.PostgreSQL);
JDBC.loadDriverPGSQL();

SDBConnection conn = new SDBConnection(Constants.DB_URL,
 Constants.DB_USER,
Constants.DB_PASSWD);

Store store = SDBFactory.connectStore(conn, storeDesc);
 try {
if (!StoreUtils.isFormatted(store)) {
store.getTableFormatter().create();
 }
} catch (SQLException e) {
e.printStackTrace();
 }
return store;
}

How do I use the component TDB?

att

-- 
*Márcio Vinícius Oliveira Sena*
Bacharelando em Sistemas de Informação -  UFG
Desenvolvedor Front-end no Laboratório de Tecnologia e Mídias Educacionais
- Labtime/UFG
Gerente de Projeto e Desenvolvedor Front-end
@marciosena17 <http://twitter.com/marciosena17>

Reply via email to