Cryptic error msg from tribe FOAF parser

topic posted Thu, December 2, 2004 - 1:40 PM by  offlineDan
What are you guys using for a parser, to read in FOAF RDF files?

www.goodner.us/jam/marc/marcg.foaf is perfectly fine RDF/XML and
the FOAF looks OK.

The error according to Marc G was:
[[
There were errors processing your form:

* Enter Your FOAF File URL: An error occurred attempting to retrieve
your FOAF file. Please validate the URL provided.

]]

I'm assuming that you've built the FOAF importer on top of a reasonably solid
RDF parser, eg. Jena/ARP, which is the same code that lives behind
www.w3.org/RDF/Validator

Is it possible to get more detailed error reporting? Or share as opensource the loading code, so we can see what's up?

cheers,

danbri
posted by:
Dan
online Dan
United Kingdom
  • Re: Cryptic error msg from tribe FOAF parser

    Thu, December 2, 2004 - 5:57 PM
    Looking into this in more detail I see that when his file is uploaded (not over the socket) it does indeed parse. The reason that it fails to import is that there is no PersonalProfileDocument. We key off ot the maker to the primary person in the file.

    We fail to find this (correctly as it is not in this file) and hence fails with this unfortunately cryptic message.

    Paul

    • Re: Cryptic error msg from tribe FOAF parser

      Fri, December 3, 2004 - 1:13 AM
      I ended up with quite a long algorithm to try and find the foaf:Person that is the primary topic of this file.

      1) look for person with PrimaryTopic=this doc
      2) look for person with topic=this doc
      3) person who is maker of this doc
      4) person who made this doc
      5) person who is dc:creator of this doc
      6) Is there one person who is not known by anyone in this doc
      7) Just use the first foaf:Person in this file

Recent topics in "FOAF"