|
|||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Class Summary | |
ByteSerializer | |
ModelBdb | A BerkeleyDB implemenation of an RDF model. |
StoreBdbF | A factory class for creating instances of StoreDb |
TestCaseBasic | |
TestSuiteRegression | |
TestSuiteSoak |
Exception Summary | |
BDBException | A class of RDF Exceptions specific to the Berkeley DB implementation. |
A BerkeleyDB implemenation of an RDF model. This code is experimental - do not commit important data to it
This package implements a simple persistent store for an RDF model. It is based on the Berkeley DB open source embedded database package which is available from Sleepycat software.
To use this store, follow the instructions for installing Berkeley Db. To ensure that Jena builds even when Berkely DB is not installed, a Berkeley DB jar file is included in the lib directory. Make sure that you replace this with the correct version for your Berkely DB installation.
To create a model for use:
Model m = new ModelBdb(new StoreBdbF("envdir", "filename"));
envdir
is the name of the directory which Berkeley DB will
use for its environment. filename
is the name of the file
which will hold the model data within that directory. Remember to close
the model when finished with it.
A model file database can only be opened once. A lock file is created
when the model is opened and closed when it is closed. Should a program
crash whilst the lock file exists, it may be necessary to manually delete
the lock file before the model can be reopened. The lock file has the
same pathname as the model file, with a .lck
extension added.
At present database logging and transactions are not supported. It is expected that these will be implemented in the future.
|
|||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |