[rdfweb-dev] Parsing FOAF in perl?

Jim Ley jim at j...
Fri Dec 6 11:01:38 UTC 2002

> Does anyone have any suggestions for parsing FOAF in Perl?
> I was looking at RDF::Core::Parser, but when I tried to use it on my
> FOAF, it died with [an error]:

I also think your foaf (assuming
http://dougal.gunters.org/dougal.about.xml is yours) has errors see


which says:
/cygdrive/f/jim/foaf/scripts/rdfdump: Warning - URI
http://dougal.gunters.org/dougal.about.xml:19 - element Description found
inside property element with rdf:resource, skipping.
(repeated many times)

They're only warnings here, but perhaps the perl parser has raised those
to be an error.

The problem is here:
rdf:resource="mailto:dougal at g...">mailto:dougal at g...</foaf:

the email address shouldn't be repeated as a literal, it should just be:
<foaf:mbox rdf:resource="mailto:dougal at g..."/>


More information about the foaf-dev mailing list