<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Thanks for the response Dave, here's the sequence of steps of what I'd like to do:<br><br>1) Instantiate a storage and point it to tokyo tyrant<br>2) Instantiate a model that refers to the above storage<br>3) call librdf_storage_hashes_add_statement<br><br><br>So
what I am trying to figure out for the berkeley db case is that when
number three is called and in turn calls librdf_hash_put, does this in
turn call the put API for the berkeley db module, I am guessing the
answer is yesbut just want to understand this further.<br><br><br>So here's what I've done so far:<br>1) Start with rdf_hash_bdb.c and create a file called rdf_hash_tt.c<br>2) Add some of the bdb API into rdf_hash_tt.c and in turn call the tokyo tyrant api to do puts gets etc<br>3) Create a test under examples to call into the above<br><br><br>However
my test coredumps when it gets to librdf_new_storage which means its
either not compiled the tokyo tyrant module or I need to add some more
code to do this.<br><br><br>I want to reiterate here that the project constraints require that I start with the berkeley db implementation to save time.<br><br><br><br>Regards<br><br><br>> Subject: Re: [redland-dev] berkeley db help<br>> From: drobilla@scs.carleton.ca<br>> To: sxk1969@hotmail.com<br>> CC: redland-dev@lists.librdf.org<br>> Date: Mon, 3 Aug 2009 16:17:52 -0400<br>> <br>> On Mon, 2009-08-03 at 12:36 -0700, Saikat Kanjilal wrote:<br>> > Hi All:<br>> > I emailed the list but never heard back so I thought I would send this<br>> > query again. I was wondering if there is someone available to help<br>> > with understanding/outlining how the berkeley db hash implementation<br>> > gets loaded into redland and what the sequences of calls are into this<br>> > library from the moment a new storage gets constructed, the file I am<br>> > referring to is rdf_hash_bdb.c . I need to implement a tokyo tyrant<br>> > storage provider based on this implementation.<br>> <br>> I again suggest you start from a simpler storage implementation, or even<br>> just the storage API stubs ;)<br>> <br>> The API is pretty obvious, and the BDB store implements a lot of things<br>> you don't need to understand to get a basic working store off the<br>> ground.<br>> <br>> Good luck,<br>> <br>> -dr<br>> <br>> P.S. the sequence of calls obviously depends on what the user does...<br>> <br><br /><hr />Get your vacation photos on your phone! <a href='http://windowsliveformobile.com/en-us/photos/default.aspx?&OCID=0809TL-HM' target='_new'>Click here.</a></body>
</html>