Chris Schmidt (crschmidt) wrote in ljfoaf,
Chris Schmidt
crschmidt
ljfoaf

Example FOAF file

The following is an example foaf file (for me). Each of the fields is rather self explanatory, but I thought I'd post this here, since most browser don't have an easily viewable way of showing application/rdf+xml data.

This file is trimmed of unimportant stuff - you don't need my entire interests lists, for example.


<?xml version='1.0'?>
<rdf:RDF
   xml:lang="en"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
   xmlns:foaf="http://xmlns.com/foaf/0.1/"
   xmlns:dc="http://purl.org/dc/elements/1.1/">
  <foaf:Person>
    <foaf:nick>crschmidt</foaf:nick>
    <foaf:dateOfBirth>1984-03-19</foaf:dateOfBirth>
    <foaf:mbox_sha1sum>bbff51a6d70630daafe242c186a6e27fda3e99c7</foaf:mbox_sha1sum>
    <foaf:page>
      <foaf:Document rdf:about="http://www.livejournal.com/userinfo.bml?user=crschmidt">
        <dc:title>LiveJournal.com Profile</dc:title>
        <dc:description>Full LiveJournal.com profile, including information such as interests and bio.</dc:description>
      </foaf:Document>
    </foaf:page>
    <foaf:icqChatID>47729022</foaf:icqChatID>
    <foaf:aimChatID>cr5chmidt</foaf:aimChatID>
    <foaf:msnChatID>crschmidt319@msn.com</foaf:msnChatID>
    <foaf:yahooChatID>crschmidt</foaf:yahooChatID>
    <foaf:weblog rdf:resource="http://www.livejournal.com/users/crschmidt/"/>
    <foaf:homepage rdf:resource="http://peanut.sytes.net/" dc:title="junk" />
    <foaf:interest dc:title="3d graphics" />
    <foaf:interest dc:title="?lang?" />
    <foaf:interest dc:title="acm" />
    <foaf:interest dc:title="aim" />
    <foaf:interest dc:title="american beauty" />
    <foaf:interest dc:title="answers to questions" />
    <foaf:knows>
      <foaf:Person>
        <foaf:nick>nostrademons</foaf:nick>
        <rdfs:seeAlso rdf:resource="http://www.livejournal.com/users/nostrademons/data/foaf" />
        <foaf:weblog rdf:resource="http://www.livejournal.com/users/nostrademons/"/>
      </foaf:Person>
    </foaf:knows>
    <foaf:knows>
      <foaf:Person>
        <foaf:nick>smileloki</foaf:nick>
        <rdfs:seeAlso rdf:resource="http://www.livejournal.com/users/smileloki/data/foaf" />
        <foaf:weblog rdf:resource="http://www.livejournal.com/users/smileloki/"/>
      </foaf:Person>
    </foaf:knows>
  </foaf:Person>
</rdf:RDF>


This example created to help those of you who want to write tools for this to do so.

Happy Parsing!
Subscribe

  • Post a new comment

    Error

    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.
  • 0 comments