[redland-dev] Mystery Parser Failure

Kieron Taylor krt1 at soton.ac.uk
Tue May 24 15:49:40 BST 2005


  > Looks to me like you are trying to pass a string in when a URI object
> is expected.  That's what it says - you can't use a string as an
> object (in perl terminology an object=HASH ref).
> 
> i.e you are doing
> $parser->parse_into_model("/home/dump/triplestore/rdf/c/b/0", undef, $model);
> 
> Make a proper file: redland URI  object and try again:
> 
> $uri=new RDF::Redland::URI("file://home/dump/triplestore/rdf/c/b/0");
> $parser->parse_into_model($uri, $uri, $model);
> 
> Dave

If I make the change suggested above, the error changes to:

rdf_parser.c:349: (librdf_parser_parse_into_model) assertion failed: 
object pointer of type librdf_uri is NULL.

The curious thing about the first error is that 
"/home/dump/triplestore/rdf/c/b/0" does not describe the complete string 
from the file. It should also have a filename on the end and not be 
sliced up.

I have included one of the rdf files upon which the parser barfs. I'm 
using the Redland 1.0.0.2 bundle from Debian package lists.

Any more ideas?

Kieron
-------------- next part --------------
A non-text attachment was scrubbed...
Name: a68d862c50eb96e2a677c8f7d4dadf08.rdf
Type: text/rdf
Size: 10714 bytes
Desc: not available
Url : http://lists.gnomehack.com/pipermail/redland-dev/attachments/20050524/9492a485/a68d862c50eb96e2a677c8f7d4dadf08.bin


More information about the redland-dev mailing list