Re: Atom Content Negotiation

Alistair Miles <alimanfoo@googlemail.com> Thu, 19 May 2011 10:12 UTC

Return-Path: <owner-atom-syntax@mail.imc.org>
X-Original-To: ietfarch-atompub-archive@ietfa.amsl.com
Delivered-To: ietfarch-atompub-archive@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E75AEE07AA for <ietfarch-atompub-archive@ietfa.amsl.com>; Thu, 19 May 2011 03:12:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.199
X-Spam-Level:
X-Spam-Status: No, score=-3.199 tagged_above=-999 required=5 tests=[AWL=-0.200, BAYES_00=-2.599, J_CHICKENPOX_44=0.6, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dzMHmsjx41iR for <ietfarch-atompub-archive@ietfa.amsl.com>; Thu, 19 May 2011 03:12:27 -0700 (PDT)
Received: from hoffman.proper.com (IPv6.Hoffman.Proper.COM [IPv6:2001:4870:a30c:41::81]) by ietfa.amsl.com (Postfix) with ESMTP id 36653E0727 for <atompub-archive@ietf.org>; Thu, 19 May 2011 03:12:26 -0700 (PDT)
Received: from hoffman.proper.com (localhost [127.0.0.1]) by hoffman.proper.com (8.14.4/8.14.3) with ESMTP id p4JA6ACc001451 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 19 May 2011 03:06:10 -0700 (MST) (envelope-from owner-atom-syntax@mail.imc.org)
Received: (from majordom@localhost) by hoffman.proper.com (8.14.4/8.13.5/Submit) id p4JA6AKR001450; Thu, 19 May 2011 03:06:10 -0700 (MST) (envelope-from owner-atom-syntax@mail.imc.org)
X-Authentication-Warning: hoffman.proper.com: majordom set sender to owner-atom-syntax@mail.imc.org using -f
Received: from mail-ww0-f53.google.com (mail-ww0-f53.google.com [74.125.82.53]) by hoffman.proper.com (8.14.4/8.14.3) with ESMTP id p4JA674Y001444 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=FAIL) for <atom-syntax@imc.org>; Thu, 19 May 2011 03:06:09 -0700 (MST) (envelope-from alimanfoo@googlemail.com)
Received: by wwj40 with SMTP id 40so2228251wwj.22 for <atom-syntax@imc.org>; Thu, 19 May 2011 03:06:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=tXz/Y7rq4mFg8hCH8VX6ppp+KNESLBMXjWi+v/5g15E=; b=nqVPUBAL+4KGTgEX3/mkJ4IFC1kdK27e0WpoUGSE9tbF4VZFMw+sD+1yHAYgLeCKUp g0V/Hv7Dw9z8sy3fKQ+VteXYn2MOb8u4Ul3UvM2yEabFrZ54U3Ps1jk6GnY5gdQ896op ClxkXuPrqolQ5D3euZdxXmlntvl3lJjgB8fdM=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=pnDSaVbRTrnP/dRRQi1HzNqTc3oP4oYW0S+ye+aIAsa2EgrmHl9Xjho2NB1QJSc3A/ FivDu64iPJ6+ONOKQ1TTPTXIXPq7rsxzycc/SoK01ZncRFCLRbzK0osFQwRghe6LZuC6 tP4L0VwNpVETFLbLjYk1OPre8cyl3ysJp1UrE=
Received: by 10.227.195.68 with SMTP id eb4mr2902033wbb.51.1305799566922; Thu, 19 May 2011 03:06:06 -0700 (PDT)
Received: from aliman-desktop (dhcp175.well.ox.ac.uk [129.67.45.18]) by mx.google.com with ESMTPS id s20sm1502776wbh.57.2011.05.19.03.06.03 (version=SSLv3 cipher=OTHER); Thu, 19 May 2011 03:06:04 -0700 (PDT)
Date: Thu, 19 May 2011 11:06:02 +0100
From: Alistair Miles <alimanfoo@googlemail.com>
To: Hadrien Gardeur <hadrien.gardeur@feedbooks.com>
Cc: Erik Wilde <dret@berkeley.edu>, Atom-Syntax <atom-syntax@imc.org>
Subject: Re: Atom Content Negotiation
Message-ID: <20110519100602.GA19779@aliman-desktop>
References: <4DBA06CE.8070304@berkeley.edu> <20110516092225.GD5335@skiathos> <20110516103355.GA8063@skiathos> <20110517090540.GA3329@aliman-desktop> <BANLkTinJqGtKfeWCPZxVXmKWsRm0RZgk9A@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <BANLkTinJqGtKfeWCPZxVXmKWsRm0RZgk9A@mail.gmail.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
Sender: owner-atom-syntax@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/atom-syntax/mail-archive/>
List-Unsubscribe: <mailto:atom-syntax-request@imc.org?body=unsubscribe>
List-ID: <atom-syntax.imc.org>

Hi Hadrien,

On Wed, May 18, 2011 at 03:25:57PM +0200, Hadrien Gardeur wrote:
> >
> > On reflection, I don't think the link template idea above is a good
> > solution,
> > because the client has no way of finding out what inline content types are
> > available.
> >
> > I wonder if a better solution would be to invent three new pieces of
> > machinery:
> >
> > * a new @inline-type extension attribute for use on atom:link elements
> >
> > * a new Accept-Inline HTTP header
> >
> > * a new <accept-inline> element for use within app:collection elements in
> > Atom
> > service documents
> >
> 
> These are three different problems though...
> Erik seems to be strictly interested in solving the first one, and in this
> case, would a single attribute with a secondary mimetype be enough ?

Yes, absolutely. I was just thinking that, if you had all three pieces of 
machinery, then you would have the tools to solve a range or problems all 
related to encapsulated media types, including Erik's. This might be a 
reasonable scope for an internet draft, for example.

> I don't think that we need a new rel value, or that we should limit this new
> attribute to a specific rel either. While you're strictly talking about
> alternate versions of the same content, this attribute would also be useful
> for other use cases (for example I might publish a music review as an atom
> entry, and provide a link@rel="related" with type="application/zip" and
> inline-type="audio/mpeg").

Good point.

Cheers,

Alistair

-- 
Alistair Miles
Head of Epidemiological Informatics
Centre for Genomics and Global Health <http://cggh.org>
The Wellcome Trust Centre for Human Genetics
Roosevelt Drive
Oxford
OX3 7BN
United Kingdom
Web: http://purl.org/net/aliman
Email: alimanfoo@gmail.com
Tel: +44 (0)1865 287669