[redland] Re: Perl method Stream->end is corrupt

Stefan Meinert smeinert at uos.de
Tue Dec 19 17:25:32 GMT 2000


>

Forget my last mail. I send you a code segment which produces the error; the only difference to your code is
that the storage isn't in memory, but persistent:


> use RDF;
>
>   $sto=new RDF::Storage("hashes", "test2", new='yes', hash-type='bdb',dir='.'");
>   if(!$sto) {
>        warn "storage failed!\n";
>        last;
>      }
>   $mod=new RDF::Model($sto,"");
>   if(!$mod) {
>      warn "model failed!\n";
>      last;
>   }
>   $statement=RDF::Statement->new_from_nodes(undef,undef,RDF::Node->new_from_uri_string("jk"));
>   $stream=$mod->find_statements($statement);
>   while (!$stream->end) {
>     $stream->next;
>   }
>   exit;

Stefan









More information about the redland-dev mailing list