RE: Atom Content Negotiation (follow-up)

James Holderness <j4_james@hotmail.com> Sat, 30 April 2011 20:06 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 4F857E06DB for <ietfarch-atompub-archive@ietfa.amsl.com>; Sat, 30 Apr 2011 13:06:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.598
X-Spam-Level:
X-Spam-Status: No, score=-2.598 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001]
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 FRQjUzrtW0gv for <ietfarch-atompub-archive@ietfa.amsl.com>; Sat, 30 Apr 2011 13:06:51 -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 894BEE06D6 for <atompub-archive@ietf.org>; Sat, 30 Apr 2011 13:06:50 -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 p3UK2LNv079373 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 30 Apr 2011 13:02:21 -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 p3UK2LtC079372; Sat, 30 Apr 2011 13:02:21 -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 blu0-omc2-s36.blu0.hotmail.com (blu0-omc2-s36.blu0.hotmail.com [65.55.111.111]) by hoffman.proper.com (8.14.4/8.14.3) with ESMTP id p3UK2JK4079367 for <atom-syntax@imc.org>; Sat, 30 Apr 2011 13:02:19 -0700 (MST) (envelope-from j4_james@hotmail.com)
Received: from BLU122-W6 ([65.55.111.73]) by blu0-omc2-s36.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Sat, 30 Apr 2011 13:02:18 -0700
Message-ID: <BLU122-W686A8FCBEDB816FFA2BF8BE9D0@phx.gbl>
Content-Type: multipart/alternative; boundary="_0b731cdf-1db5-4058-bb44-23f34de7ad9c_"
X-Originating-IP: [84.51.185.29]
From: James Holderness <j4_james@hotmail.com>
To: dret@berkeley.edu, atom-syntax@imc.org
Subject: RE: Atom Content Negotiation (follow-up)
Date: Sat, 30 Apr 2011 20:02:18 +0000
Importance: Normal
In-Reply-To: <4DBC60F4.7000402@berkeley.edu>
References: <4DBC60F4.7000402@berkeley.edu>
MIME-Version: 1.0
X-OriginalArrivalTime: 30 Apr 2011 20:02:18.0835 (UTC) FILETIME=[8275AA30:01CC0771]
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>

> on
> http://dret.typepad.com/dretblog/2011/04/atom-content-negotiation.html i
> suggested a <link> usage that is not allowed by atom (because extension
> attributes need to be namespaced), but i think the problem is worth a
> solution and i'm planning to write a small draft for it.

I don't get why you rejected the "link content variants" solution. You don't necessarily have to include the HTML version inline - you could just have a very basic text summary.

<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">

  <title>Example Feed</title>
  <link href="http://example.org/"/>
  <updated>2003-12-13T18:30:02Z</updated>
  <author>
    <name>John Doe</name>
  </author>
  <id>urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6</id>
 
  <entry>
    <title>Atom-Powered Robots Run Amok</title>
    <link type="text/html" href="http://example.org/2003/12/13/atom03.html"/>
    <link type="application/xml" href="http://example.org/2003/12/13/atom03.xml"/>
    <link type="application/json" href="http://example.org/2003/12/13/atom03.json"/>
    <link type="application/rdf+xml" href="http://example.org/2003/12/13/atom03.rdf"/>
    <id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id>
    <updated>2003-12-13T18:30:02Z</updated>
    <summary>Some text.</summary>
  </entry>

</feed>

And even the summary isn't strictly necessary. You don't seem to be particularly interested in producing a feed that would be useful to a typical feed reader, so you might as well go with the bare minimum necessary to make the feed valid.

If you think it absolutely necessary to create a new rel type to make your system work, you should probably be asking yourself whether you really want Atom as your data format.

TLDR: I think your proposal sucks.