hFoaF

Extract hFoaf

Browse FoaF

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

Blogs and Homepages

Other Places

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 hFoaF Transformr (version 0.2) from Google code including basic php script and XSL.

Powered by WebOrganics

64px-PD-icon.svg.png

Except where otherwise noted, all work is licensed under a Creative Commons Public Domain Licence.