hFoaF
Bookmarklets: Get hFoaF or hFoaF/FoaF explorer
Hypertext Friend of a Friend
How To
Add a single hcard http://microformats.org/wiki/hcard to your page and add an url with the rel value of me ...
<a rel="me" class="url" href="http://yourwebsite.com/">Whatever</a>
The hcard classes "fn", "given-name", "family-name", "nickname", "email", "photo" and "geo" will also be detected.
Add a few links to your friends using XFN http://gmpg.org/xfn/11 with any of the rel values of friend, colleague, co-worker, acquaintance, met, muse and contact ...
<a rel="friend met" href="http://yourfriend.com/">Who</a>
Enter the url of your page in the form above and either click "Get hFoaF" to extract a FoaF document, or click the blue logo to view in the FoaF Explorer.
Examples
Social Networks
Aaron Gustafson's Profile on ma.gnolia the bookmarking site. (sometimes slow, refresh page if fail)
Molly.com on Twitter.
Chris Messina on linkedin. (basic output)
Steve Ganz on LastFM.
Blogs and Homepages
André Luís's Blog
Stephen Weber's homepage (no xfn but output good)
Jeremy Keith's homepage journal (no xFolk or hAtom output good)
Martin McEvoy's homepage (a fields extracted)
GRDDL Profile
hFoaF.xsl is also a GRDDL profile available at http://weborganics.co.uk/Profiles/hFoaF.xsl
Usage: Add the GRDDL Data view profile in the <head> of your page...
<head profile="http://www.w3.org/2003/g/data-view">
Then add a link in the <head>...</head> tags of your page...
<link rel="transformation" href="http://weborganics.co.uk/Profiles/hFoaF.xsl" />
If you like you can also add an auto discovery link in the <head> of your page.
<link rel="meta" type="application/rdf+xml" title="FOAF" href="http://www.w3.org/2007/08/grddl/?docAddr=http://yourweb.page/" />
Example output using the W3C GRDDL Service.
View GRDDL output using the FoaF Explorer.
hFoaF Source
You can download the Download hFoaF Source including basic php script and XSL.