W3C home > Mailing lists > Public > semantic-web@w3.org > November 2006

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

From: Dan Connolly <connolly@w3.org>
Date: Tue, 14 Nov 2006 00:03:49 -0600
To: brian suda <brian.suda@gmail.com>
Cc: semantic-web@w3.org
Message-Id: <1163484229.28647.3.camel@dirk>

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:


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
   <div class="tel"><abbr class="type" title="cell">Mobile</abbr>: <span
   <div class="tel"><abbr class="type" title="fax">Fax</abbr>: <span

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

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 07:41:54 UTC