- 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>
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
"Hafmo".
]]
-- http://www.w3.org/2001/sw/grddl-wg/td/card5n.html
I ran it thru x2v and I don't get 5 first names:
BEGIN:VCARD
PRODID:-//suda.co.uk//X2V 0.8.4.1 (BETA)//EN
SOURCE:(Best Practices states this should be the URL the vcard was
transformed from)
NAME:complex name case: hCard/GRDDL Test case
VERSION:3.0
N;CHARSET=UTF-8:Mierlo;Hans;;Dr.;
FN;CHARSET=UTF-8:Dr. H.A.F.M.O van Mierlo
TITLE;CHARSET=UTF-8:minister of foreign affairs
NICKNAME;CHARSET=UTF-8:Hafmo
END:VCARD
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:VCard>
<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:given-name>H.</v:given-name>
<v:given-name>A.</v:given-name>
<v:given-name>F.</v:given-name>
<v:given-name>M.</v:given-name>
<v:given-name>O</v:given-name>
<v:family-name>Mierlo</v:family-name>
<v:honorific-prefix>Dr.</v:honorific-prefix>
</v:n>
<v:title>minister of foreign affairs</v:title>
</v:VCard>
--
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