Menu

Still alive?

Help
Jotomicron
2012-02-23
2013-04-23
  • Jotomicron

    Jotomicron - 2012-02-23

    Hello,

    I'd like to know if this project is still alive and, if so, I'd like to get some help getting owldb to work.
    At the time being, I cannot run the examples, for several reasons:

    1) The class path defined in the runExamples.sh is not working, since it refers to outdated .jar files which are not bundled in owldb.zip.
    2) The examples seem to want to use user 'SA'@'localhost' everytime, no matter what configuration I change. Why?
    3) Even if I create the user SA, it fails, telling me something about being unable to add to OntologiIRI table, which seems fine to me, since no such table is created in the database.
    4) The examples seem to write a lot of information on the console. Any way I can turn it off?
    5) Is there an example other than the ones bundled in the owldb.zip?

    Thank you very much for you attention.
    Best,
    João

     
  • Jürgen Moßgraber

    Yes, it is still alive.
    1) I corrected the version numbers (checked in to subversion).
    2) The Hibernate configuration file is inside of the the examples jar ("hibernate.cfg.xml")
    3) see 2); there should be no need to modify anything just to run the example (except if you are behind a proxy)
    4) Yes, you can use the logging.properties file from the config folder (default Java logging behaviour)
    5) You will find some additional code in the "test" folder.

     
  • Anonymous

    Anonymous - 2012-02-29

    I checked out the svn code. I built the code in /trunk and tried running the examples with the ./runExample.sh file. Also, I changed the example to use the plain Example.class and not the ExampleHDB.

    Now, I get a lot of errors like this one:
    SEVERE: Unsuccessful: create table AnnotationAssertion (id bigint not null, subject bigint, property bigint, value bigint, primary key (id))

     
  • Manfred Schenk

    Manfred Schenk - 2012-03-01

    Here some hints how to use the examples:
    1) checkout trunk from svn
    2) run the build
    Now you should have a .zip file inside the build folder.

    Unzip this and then you can run the examples.
    If you are behind a proxy, you have to add additional settings (see comment inside the runExample.bat or runExample.sh).

    If you want to use a database other then the in-memory h2, then you have to copy the right hibernate config file into the examples folder before building to ensure that the right configuration is packaged into the examples jar file.
    Of course you have to set up your database system according to these settings: create database and users, set the user rights, choose the right jdbc-driver, etc.

     
  • Anonymous

    Anonymous - 2012-03-01

    Thank you very much!

    I've taken a different approach and wrote my own java class that stores the ontology in the database. I've been successful in doing this:  I created a new hibernate.cfg.xml file with what I think is the minimal information need for my needs (jdbc driver, usarname, password, hibernate cache and session context class, and the path to the mapping.xml file). I can now store ontologies in a database and retrieve axioms from it.

    Again, thank you very much for your help.

     

Log in to post a comment.

MongoDB Logo MongoDB