On 04/04/13 14:02, Shichao Dong wrote:
hi Andreas,
I may have the same problem last week, and I do some research and find
http://blog.sina.com.cn/s/blog_4d2d1c700100hury.html.
The page is Chinese, here is my translation. Moreover, I think what Dave
means is when you create ontology using protege, you have to save it as the
RDF/XML format.

Or Turtle.

This is an example on read and write from OWL ontology to
MYSQL.I hope it would help.

public static IDBConnection connectDB(String DB_URL, String DB_USER,

String DB_PASSWD, String DB_NAME) {

      return new DBConnection(DB_URL, DB_USER, DB_PASSWD, DB_NAME);

}

Beware. The code you quote here uses an ancient Jena storage layer called RDB. This was deprecated some time ago and has been removed from more recent Jena instances.

For documentation on how to use the current persistent storage layers, TDB and SDB, see http://jena.apache.org/documentation/index.html

Dave

Reply via email to