How do you query Oracle RDF database using Java program?
ernielimDec 18 2006 — edited Dec 22 2006Does anyone know how to get data out of the oracle RDF database using Java?
I'm running the following java code and it returns basically null values. My guess is that the get_triple() function returns a dataset other than resultset. I've tried searching the Oracle web site. Am I supposed to be using CLOB object? Any help would be appreciated. Thanks
sql = "SELECT a.triple.GET_TRIPLE() AS triple FROM family_rdf_data a";
ResultSet rs = stmt.executeQuery( sql ) ;
while ( rs.next() )
System.out.println( rs.getString(1) ) ;
rs.close() ;