Madgex Labs Logo
Where we share innovation and research

hCard to Portable Contacts

This experimental interface provides a way to parse microformat hCards into the data format used by the Portable Contacts API. It does not yet provide the querying, sorting and pagination nor the endpoint URL elements of the specification. The aim was to evaluate any data loss or added ambiguity that may occur when converting an hCard into the Portable Contacts API data schema.

We used the UfXtract microformats parser and a custom .Net Portable Contacts API library. There is a hCard test suite at http://ufxtract.com/testsuite/hcard/ which can be used to explore the conversions.

 

The URL property can take a fragment identifier so you can target segments of a HTML document. An example would be to only parser one of the two hCards in http://ufxtract.com/testsuite/hcard/hcard2.htm#uf, the #uf element tells the parser to only use the code in the element with the id uf.