This is the beta version of an experimental initial release. Don't use it for anything critical.
Run the tests. You will need to create a directory (here called $WHERE) for the tests to keep their database files, and create in that directory a file named jeb-tests-only. (Its contents are unimportant.)
Warning: when the tests are run, they will delete any existing file calledje.lck
, and all files ending in.jdb
, in that directory, to ensure a clean test run. So don't try and use this directory for any other BDB JE databases.
You will also need to specify where your Jena jars are (here called $JENA_HOME). Run:
ant test -Dwhere=$WHERE -Djena.home=$JENA_HOME(Note: junit.jar must be on your class-path. If necessary, add it to your system jars, or to the ant lib directory. Otherwise you will get complaints that the <junit> task is misspelt or not on your classpath.)
If the tests don't pass, something is horribly wrong. Let us know about it, and don't proceed further.
Once you are satisfied that the tests have been passed, you can add the dist/lib/je.jar and dist/lib/jena-bdb.jar to your usual development classpath.
The doc
directory contains (some) documentation, including
this file and the javadoc
directory.
ModelJEB m = ModelJEB.open( directory, modelName );
directory
is the filename of the directory in which the model
will be stored. We strongly recommend that this directory is used only
for storing ModelJEB models. modelName
is the name of the model
in that database directory. It will be created if it does not already exist.
If you look inside the directory you will see files with names likeThe model00000000.jdb
andje.lck
; you will not see files named with the modelName. This is how BDB JE stores databases.
m
is the usual Jena model, but statements written
into it persist and are available the next time you open the model.
ModelJEBs should be closed properly when you have finished with them,
otherwise data may be lost.
java jena.jeb command location:model [options]location is the name of the directory in which ModelJEB databases are stored, and model is the name of the model in that database. The commands are: