Chris Schmidt (crschmidt) wrote in ljfoaf,
Chris Schmidt

External FOAF field

This code will break your FOAF feed in any RDF parser. I missed a /, which confuses things, and causes parsing to fail.

The external FOAF URL can be set on your Personal Information page, at . Under advanced options, there is a field labeled "External FOAF URL". This URL will let LiveJournal know that you already have a FOAF file created elsewhere on the net, and that you would prefer that people be redirected to this URL.

The following is an example FOAF file created when you set "External FOAF URL".

<?xml version='1.0'?>
      <foaf:Document rdf:about="">

        <dc:title> Profile</dc:title>
        <dc:description>Full LiveJournal profile, including information such as interests and bio.</dc:description>
    <rdfs:seeAlso rdf:resource="">

As you can see, no information such as foaf:knows fields is included in this file: these fields are excluded when the seeAlso field is included. If you plan to spider the information presented by LiveJournal, you should ignore all other information presented in this FOAF file - although it may or may not be accurate, it is not the canoncial source of information for the user. They set the External FOAF URL specifically so that this information can be presented in a different location.

In summary: External FOAF set on editinfo. Replaces all your FOAF:interests, foaf:knows, etc. with a bare bones document containing very little information. Any other information in this type of feed should be ignored. Check for a seeAlso before you store information from a feed. Example feed stored above.

  • Post a new comment


    default userpic

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.