The realization method of storing ontology file into Mysql database with Jena _mysql

Source: Internet
Author: User
Yesterday, it was configured to Jena 2.4.0,mysql database version of 5.1.42-COMMUNITY,JDK version for 1.6.0,mysqldriver mysql-connector-java-3.1.14;

And according to the resources on the network to write an example, resulting in a problem, the program in debug to

To create a model builder using database connection parameters

Modelmaker maker = Modelfactory.createmodelrdbmaker (conn);

Create a default model named Myontology

Model Defmodel = Maker.createmodel ("Myontology");

In two sentences, you cannot create a model from Maker.createmodel;

Then wrote some debug debugging, one is the use of Java interface to access MySQL, test success, that the Java and MySQL connectivity between the right, then the problem appears on the Jena;

After updating Jena to version 2.6, find the problem solved.

Experience:

To do this research, found that the use of these open source software and APIs, the most likely problem is the version compatibility problem, previously encountered protege and Graphviz version compatibility problem, and once encountered this problem, often take a long time, Because the first suspects are often the ones who know little about themselves.

The above related content is to use Jena Ontology file into the MySQL database, hope you can have some harvest.

The above related content is to use Jena the ontology file into the MySQL database description, hope will bring you some help in this respect.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.