[redland-dev] Re: Storage not getting updated.

Jorge Santos jorge.jsf at gmail.com
Thu Aug 25 02:18:19 BST 2005


On 8/24/05, Jorge Santos <jorge.jsf at gmail.com> wrote:
> Hello, I'm writing an application in ruby, I'm defining the storage like so:
> 
> storage = Redland::TripleStore.new("hashes", "pinfo",
> "hash-type='bdb',dir='" + STORAGE_DIR + "'")
> 
> But I have a problem, I add statements in the program, but I can only
> access them as long as the program is running, once the program ends
> the bdb files are empty, as can be seen by:
> 
> jsf at deckard$ rdfproc pinfo print
> [[
> ]]
> 
> Now, I don't see anything in the docs that hints to having to "save"
> the database or such.  There's this function librdf_storage_sync() in
> the library, but is undocumented in the api.
> 
> Am I missing something or is there a bug?

On further news, something wierd is happening, if I don't have any
triples in the storage and I run the program, nothing is saved. 
However, if I have some triples (inserted from a file via rdfproc
parse), some of the triples inserted in the program get saved and some
don't. Mmmh, ideas?

Bye,
Jorge


More information about the redland-dev mailing list