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

a guy with 5 first names, from I18N comments on P3P, for vCard/RDF

From: Dan Connolly <connolly@w3.org>
Date: Fri, 17 Nov 2006 03:53:13 -0600
To: semantic-web@w3.org
Cc: Ivan Herman <ivan@w3.org>
Message-Id: <1163757194.3997.181.camel@dirk>

Brian, Harry, Norm,

I just started on a GRDDL test case based on an
I18N comment on P3P that I was asked to pass on:

This is an hCard; it comes from a 1998 review comment on P3P:

        The proposed breakdown of a person's name doesn't fit everybody.
        For example, the previous Dutch minister of foreign affairs is
        called Dr. H.A.F.M.O van Mierlo: his title is "Dr.", he's known
        as "Hans", his last name is "Mierlo", prefix is "van", he has 5
        first names, and no middle one. His most common nickname is
 -- http://www.w3.org/2001/sw/grddl-wg/td/card5n.html

I ran it thru x2v and I don't get 5 first names:

PRODID:-//suda.co.uk//X2V (BETA)//EN
SOURCE:(Best Practices states this should be the URL the vcard was
transformed from)
NAME:complex name case: hCard/GRDDL Test case
FN;CHARSET=UTF-8:Dr. H.A.F.M.O van Mierlo
TITLE;CHARSET=UTF-8:minister of foreign affairs

I'm not sure whether that's a bug or a feature, per hCard.
My x2v might be a bit out of date:

changeset:   52:46196949e712
user:        brian suda http://suda.co.uk/
date:        Mon Aug 14 09:54:25 2006 -0500

But the RFC does seem to say that given-name, like
the other parts of the n field, is a list:

"Each component can have multiple values."
 -- http://www.w3.org/2002/12/cal/rfc2426#sec3.1.2

When I was working with hCard and JSON, I didn't go
to the trouble of supporting that. In HTML, it's
not much trouble to allow it, but in RDF, the difference
between a string and a list of strings is not something
you can gloss over.

So... what's the right answer for what RDF should come
out of this hCard?

Currently (with hcard2rdf.xsl 1.3 2006/11/14 17:32:48),
I get 5 first-names, but they're not ordered
(though the order is represented in the fn):

    <v:fn>Dr. H.A.F.M.O van Mierlo</v:fn>
    <v:n rdf:parseType="Resource">
      <rdf:type rdf:resource="http://nwalsh.com/rdf/vCard#Name"/>
    <v:title>minister of foreign affairs</v:title>

Dan Connolly, W3C http://www.w3.org/People/Connolly/
D3C2 887B 0F92 6005 C541  0875 0F91 96DE 6E52 C29E
Received on Friday, 17 November 2006 09:53:24 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 08:44:58 UTC