Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How do you query Oracle RDF database using Java program?

ernielimDec 18 2006 — edited Dec 22 2006
Does 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() ;

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jan 19 2007
Added on Dec 18 2006
1 comment
2,887 views