[redland-dev] trying to read and write Berkeley DB (BDB) using Ruby

Joe Wroblewski joepwro at gmail.com
Wed Nov 29 02:40:06 UTC 2006


Solved my problem with some additional Internet research


To create a model from an existing Berkeley DB, do the following:

    store =3D Redland::HashStore.read_store('theStore')
    model=3DRedland::Model.new (store)

To write an updated model out to the store, do the following:

    Redland::librdf_model_sync(model.model)


Also was pointed to a couple of good sources of Ruby code using
the Redland library.  Specifically code dealing with BDB storage.

   http://cvs.librdf.org/cvsweb/redland/bindings/ruby/test/
   http://sw.deri.org/svn/eyal/semperwiki/trunk/

Hope this helps.
Joe Wroblewski
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.usefulinc.com/pipermail/redland-dev/attachments/20061128/=
6ec60611/attachment.htm


More information about the redland-dev mailing list