Re: [VCARDDAV] LANGUAGE parameter vs. cardinality and PIDs

"Javier Godoy" <rjgodoy@fich.unl.edu.ar> Wed, 07 April 2010 15:52 UTC

Return-Path: <rjgodoy@fich.unl.edu.ar>
X-Original-To: vcarddav@core3.amsl.com
Delivered-To: vcarddav@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 86F253A6993 for <vcarddav@core3.amsl.com>; Wed, 7 Apr 2010 08:52:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.003
X-Spam-Level:
X-Spam-Status: No, score=-0.003 tagged_above=-999 required=5 tests=[AWL=2.596, BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id M3ZxOlfDTOzR for <vcarddav@core3.amsl.com>; Wed, 7 Apr 2010 08:52:25 -0700 (PDT)
Received: from fich.unl.edu.ar (fich.unl.edu.ar [168.96.132.90]) by core3.amsl.com (Postfix) with ESMTP id B2E233A6ACE for <vcarddav@ietf.org>; Wed, 7 Apr 2010 08:51:53 -0700 (PDT)
Received: from Javier2 ([190.193.124.162]) (authenticated user rjgodoy@fich.unl.edu.ar) by fich.unl.edu.ar (using TLSv1/SSLv3 with cipher RC4-MD5 (128 bits)); Wed, 7 Apr 2010 12:51:35 -0300
Message-ID: <366C7A5C3D354F3F896A3E8B307681D9@Javier2>
From: Javier Godoy <rjgodoy@fich.unl.edu.ar>
To: Simon Perreault <simon.perreault@viagenie.ca>, vcarddav@ietf.org
References: <4BBB2EE0.6040202@viagenie.ca> <2DDEFC9394064E53BD759285A555AE71@Javier2> <4BBC7383.3030404@viagenie.ca>
Date: Wed, 07 Apr 2010 12:20:23 -0300
MIME-Version: 1.0
Content-Type: text/plain; format="flowed"; charset="iso-8859-1"; reply-type="response"
Content-Transfer-Encoding: 8bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2900.5512
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
Subject: Re: [VCARDDAV] LANGUAGE parameter vs. cardinality and PIDs
X-BeenThere: vcarddav@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: IETF vcarddav wg mailing list <vcarddav.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vcarddav>
List-Post: <mailto:vcarddav@ietf.org>
List-Help: <mailto:vcarddav-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 07 Apr 2010 15:52:26 -0000

Hi Simon,

> On 2010-04-07 07:05, Javier Godoy wrote:
>> The problem with this approach is that versions in different languages
>> may be out of sync (for instance, I modify EMAIL or TEL in the en-vCard,
>> but I don't in the es-vCard or the fr-vCard)
>
> Yes, but the same problem could also happen for multiple instances of the 
> same property in different languages...

It is not the same problem, as I'm not talking about modifying the 
language-versioned property, but another different property that is intended 
to have the same value in every instance. For example, modifying EMAIL in:

BEGIN:VCARD
VERSION:4.0
FN:John Doe
EMAIL:: jdoe@example.org
BIRTH;LANGUAGE=de-DE:Köln
END:VCARD

BEGIN:VCARD
VERSION:4.0
FN:John Doe
EMAIL:: jdoe@example.org
BIRTH;LANGUAGE=en-US:Cologne
END:VCARD

Clearly it is not an issue if multiple instances of the same property in 
different languages are allowed:

BEGIN:VCARD
VERSION:4.0
FN:John Doe
EMAIL:: jdoe@example.org
BIRTH;LANGUAGE=de-DE:Köln
BIRTH;LANGUAGE=en-US:Cologne
END:VCARD



>> If #1 is applied, we also need a new value for the RELATED type, such as
>> "translation" or "self", for linking vCards instances describing the
>> same individual in diferent languages.
>>
>> RELATED;TYPE=self:http://example.com/directory/en/jdoe.vcf
>> RELATED;TYPE=self:http://example.com/directory/fr/jdoe.vcf
>> RELATED;TYPE=self:http://example.com/directory/en/jdoe.vcf
>
> I think that's a good idea.
>
>> Note that clients won't know which vCard is in which language, before
>> retrieving the instance (we might add a language-param for this case)
>
> With CardDAV we can retrieve only the LANGUAGE property for all the related 
> vCards in a single REPORT query with addressbook-multiget. So I don't see 
> this as a problem. (And not repeating data could be considered desirable.)

What do you mean by "not repeating data"? Actually this approach asks for 
repeating data, as FN and EMAIL in my example above.

>> Content-negotiation MAY be used, if it is defined for the URI scheme. In
>> that case we would have just one "self" vCard URI.
>> RELATED;TYPE=self:http://example.com/directory/jdoe.vcf
>
> Yes, but that's implementation-specific.

Yes and no. The value of RELATED would not be a URI identifying a single vCard 
instance (as I understand it is the intent of RELATED), but a *set* of 
instances (with the actual instance being decided by the negotiation 
mechanism). If it is allowed, it should be explicitly stated.


Best regards

Javier