[uf-discuss] Re: XFN + hCard

Toby A Inkster mail at tobyinkster.co.uk
Wed Mar 12 09:02:19 PST 2008


David Janes wrote:

> But I'm seeing this in a lot of places in this sort of context:
> 
> <div (per user)>
>   <img src="... the user's picture ..." /> <a href="...
>   rel="contact">David Janes</a> (dpjanes)
> </div>
> 
> And various variations. Obviously this is ripe for hCardization, but is
> there a defined relationship between a XFN A within a hCard. Should
> there be?

Under the existing semantics of hCard and XFN, this:

	<a rel="friend" href="http://dave.example.com">Dave</a>

means "the owner of <http://dave.example.com> is my friend", and this:

	<span class="vcard">
	  <a class="fn url" href="http://dave.example.com">Dave</a>
	</span>

means "Dave is a contact; Dave owns <http://dave.example.com>". So if we 
combine those, without adding any additional semantics, then this:

	<span class="vcard">
	  <a class="fn url" rel="friend" 
	  href="http://dave.example.com">Dave</a>
	</span>

means "Dave is a contact; Dave owns <http://dave.example.com>; the owner 
of <http://dave.example.com> is my friend", which is pretty much what you 
want to express, right? 

So I don't see why we need to add anything to either spec to cover this 
situation, because the semantics follow automatically from each spec 
considered individually.

What we *should* add to the next version of XFN is rel="fiend", to keep 
people on their toes.

-- 
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.17.14-mm-desktop-9mdvsmp, up 42 days, 23:12.]
[Now Playing: Madness - Lovestruck]

                              The Semantic Web
                http://tobyinkster.co.uk/blog/2008/03/09/sw/



More information about the microformats-discuss mailing list