Re: which URI to use as hCard profile URI? (vcard/RDF)

On Mon, 2006-11-13 at 10:49 -0600, Dan Connolly wrote:
[...] 
> Do you think http://www.w3.org/2006/vcard/ns is close
> enough to XMDP that it can serve as the profile for
> hcard?

Wow... there are so many details!

I'm back from ISWC, and I started using the hCard creator
to transcribe a business card to pass it on to a colleague.
I found enough issues to keep me busy most of the day!

I scrubbed the data and added it to the GRDDL test suite:

http://www.w3.org/2001/sw/grddl-wg/td/testlist2#hcard1
http://www.w3.org/2001/sw/grddl-wg/td/card.html
http://www.w3.org/2001/sw/grddl-wg/td/card-output.rdf

The 2006/vcard namespace document doesn't (yet?) work
as a GRDDL profile; it has no profileTransformation etc.
So I added a link to the new location for hcard2rdf.xsl
from the older profile, http://www.w3.org/2006/03/hcard

Now I'm having trouble getting the fax field to work right.
The business card says:

Phone: +1-123-456-7890 Mobile: +1-111-555-7890 Fax: +1-111-111-1234 
which I encode as:

   <div class="tel">Phone: <span
class="value">+1-123-456-7890</span></div>
   <div class="tel"><abbr class="type" title="cell">Mobile</abbr>: <span
class="value">+1-111-555-7890</span></div>
   <div class="tel"><abbr class="type" title="fax">Fax</abbr>: <span
class="value">+1-111-111-1234</span></div>

but what I get out is:

    <v:tel rdf:resource="tel:+1-123-456-7890"/>
    <v:mobileTel rdf:resource="tel:+1-111-555-7890"/>
    <v:tel rdf:resource="tel:+1-111-111-1234"/>

by the way... Norm, the standard token is 'cell'; this
bit of hcard2rdf.xsl goes beyond the standard:
   <xsl:when test="$token = 'mobile' or $token = 'cell'">

-- 
Dan Connolly, W3C http://www.w3.org/People/Connolly/
D3C2 887B 0F92 6005 C541  0875 0F91 96DE 6E52 C29E

Received on Tuesday, 14 November 2006 06:03:59 UTC