[redland-dev] newbie question using Perl bindings

Golda Velez gv at abra.info
Fri Dec 7 21:13:16 GMT 2007


Hello Redland folks

I'm new to Redland so please feel free to direct me to further reading...

Trying to use the perl binding to parse the dmoz categories, like so

use RDF::Redland;

$data_file = "/w/abra/data/structure.rdf.u8";

my $uri = new RDF::Redland::URI("file:$data_file");

my $parser = new RDF::Redland::Parser("rdfxml","application/rdf+xml");
------------------------------

dies with 

Redland error: property element 'Topic' has multiple object node elements, 
skipping.
----------------------------

Am I even on the right track here?  About six years ago I wanted to do stuff 
with the dmoz categories and just wrote a regexp rough approximate parser, 
now I'd like to do it right...but I'm not sure I am using the right toolset. 

Thanks for any clue!

--Golda
 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Golda Velez	520-440-1420		http://goldavelez.com
what I do: 	Tucson Superblog	http://btucson.com
		Search software		http://webglimpse.net
		Web hosting		http://iwhome.com

"Help organize the world - index your own corner of the web!"


More information about the redland-dev mailing list