representative-hcard-parsing

From Microformats Wiki
Revision as of 02:55, 19 November 2007 by Tantek (talk | contribs) (drafted)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

representative hCard parsing

Assuming you are already using code that properly implements hcard-parsing, this page documents how to determine a representative hCard for a page using the current representative-hcard-brainstorming proposal.

url uid source

After parsing the hCard(s) on a page, if there is one which has a "url" property whose value is the url of the page (source) and is also a "uid" property for the hCard, then that is the representative hCard for the page.

url and rel me

If the aforementioned "url uid source" didn't find a representative hCard, then look for an hCard with a "url" property that also has the rel="me" relation. If you find such an hCard then you have found a representative hCard for the page.

see also