FOAF File
From No LJ Ads Wiki
A Friend of a Friend (FOAF) file is made to describe links between people in a machine readable format. You can read more about it at foaf-project.org.
Contents |
[edit] LiveJournal and FOAF
[edit] Locations and examples
Community and personal accounts have a FOAF file. By default, all friends on a journal's friends list are included in it.
http://exampleusername.livejournal.com/data/foaf http://exampleusername.livejournal.com/data/foaf.rdf http://the_unadvocate.livejournal.com/data/foaf http://the_unadvocate.livejournal.com/data/foaf.rdf http://community.livejournal.com/examplecomm/data/foaf http://community.livejournal.com/examplecomm/data/foaf.rdf
<?xml version='1.0'?>
<!-- If you are running a bot please visit this policy page outlining rules you must respect. http://www.livejournal.com/bots/ -->
<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:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<foaf:Person>
<foaf:nick>exampleusername</foaf:nick>
<foaf:mbox_sha1sum>aa878b768897c68e4d4f8386593ab8ae6f8b1a62</foaf:mbox_sha1sum>
<foaf:page>
<foaf:Document rdf:about="http://www.livejournal.com/userinfo.bml?user=exampleusername">
<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:weblog rdf:resource="http://exampleusername.livejournal.com/"/>
</foaf:Person>
</rdf:RDF>
<?xml version='1.0'?>
<!-- If you are running a bot please visit this policy page outlining rules you must respect. http://www.livejournal.com/bots/ -->
<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:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<foaf:Person>
<foaf:nick>the_unadvocate</foaf:nick>
<foaf:mbox_sha1sum>af0529b74e12e3ca9046b94df589fd29a30d3af1</foaf:mbox_sha1sum>
<foaf:img rdf:resource="http://www.livejournal.com/userpic/44042732/9975509" />
<foaf:page>
<foaf:Document rdf:about="http://www.livejournal.com/userinfo.bml?user=the_unadvocate">
<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:weblog rdf:resource="http://the-unadvocate.livejournal.com/"/>
<foaf:homepage rdf:resource="http://www.noljads.com/" dc:title="No LJ Ads" />
<foaf:knows>
<foaf:Person>
<foaf:nick>adzite1</foaf:nick>
<rdfs:seeAlso rdf:resource="http://adzite1.livejournal.com/data/foaf" />
<foaf:weblog rdf:resource="http://adzite1.livejournal.com/"/>
</foaf:Person>
</foaf:knows>
</foaf:Person>
</rdf:RDF>
[edit] Using an external FOAF file
If you want to use your own FOAF file, you can set it to an external URL using this setting:
http://www.livejournal.com/settings/?tag=foaf
[edit] Limiting which friends are in your FOAF file
FAQ #149 describes how you can limit who shows up in your FOAF file by creating a Custom Friend Group called
FOAF-knows

