Re: [apps-discuss] proposal: adding profile support to JSON

Mark Baker <distobj@acm.org> Thu, 07 November 2013 16:01 UTC

Return-Path: <mark@coactus.com>
X-Original-To: apps-discuss@ietfa.amsl.com
Delivered-To: apps-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8BB5921E80E8 for <apps-discuss@ietfa.amsl.com>; Thu, 7 Nov 2013 08:01:18 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.977
X-Spam-Level:
X-Spam-Status: No, score=-2.977 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ClKz+cG-6mYu for <apps-discuss@ietfa.amsl.com>; Thu, 7 Nov 2013 08:01:13 -0800 (PST)
Received: from mail-pa0-f44.google.com (mail-pa0-f44.google.com [209.85.220.44]) by ietfa.amsl.com (Postfix) with ESMTP id 6AB9C11E8168 for <apps-discuss@ietf.org>; Thu, 7 Nov 2013 08:01:13 -0800 (PST)
Received: by mail-pa0-f44.google.com with SMTP id fb1so803629pad.17 for <apps-discuss@ietf.org>; Thu, 07 Nov 2013 08:01:12 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=V0AsXBy5NiM3gCvSSaM/cQju6qk2IUHU9GruRnCZo44=; b=ZBnRNOEUYmGBjD6E9doxaGmYLQHnouKdBdz9MM2cxvBN0KE9eoU4ipL1LmXgdV7Ock zhZe6M5jwH2wBam+rnaFlu34pLfWFQBhji6RVHhdCSBT8yHJKq92QX1Przm/iXXZ53hA 9Z41g6dUVy1fMChgbkjrROBu9NCDoXXjYu9pUjn68rih0bvcsu0OvmE8ocbqblgaMitR NDaaXlbqEX9QORr5FpYRkYfCzsyy50WR27w6lEyCNDhI7dhPw4sDiyUTu42RoGG8+dYD +UayqET5zaC9/N/exYdKqgBHu2UNyEqUya8x8swKxJ1qgRal9iB71Wg/OOLr7qG5VRY+ hSuA==
X-Gm-Message-State: ALoCoQmeZCraMCmG2K0GgQlGozO2PdYralYMum//DFtoEn/5p5GYOct2UglJCi1eW4hjFRCTrbsb
MIME-Version: 1.0
X-Received: by 10.68.254.105 with SMTP id ah9mr9757503pbd.87.1383840072855; Thu, 07 Nov 2013 08:01:12 -0800 (PST)
Sender: mark@coactus.com
Received: by 10.70.25.67 with HTTP; Thu, 7 Nov 2013 08:01:12 -0800 (PST)
X-Originating-IP: [174.115.246.125]
In-Reply-To: <527A8BF6.20604@berkeley.edu>
References: <5276878A.6000802@berkeley.edu> <5278AF21.90605@it.aoyama.ac.jp> <CAHBU6iuAoNT1QYH3DKA_KFA4Ngm5Y2hyHm-2_8z5kv8fGKHY1Q@mail.gmail.com> <CALcoZiqL5ATz0nL4DDy+uadG2Q7iqUDvifGL+9v642-+nXAy7w@mail.gmail.com> <52793A16.8060301@berkeley.edu> <CALcoZirtYd-HQBZ8OTVc70g8j=ybULk5JHzSbe49J6g0Pg35nw@mail.gmail.com> <527A8BF6.20604@berkeley.edu>
Date: Thu, 07 Nov 2013 11:01:12 -0500
X-Google-Sender-Auth: rpT_NnFHtZ4q7_ejSgjzstcuWFw
Message-ID: <CALcoZiqxoMLUxg_jnPKkpZb5hnbNMwmO5iBVBNtYaVm0Wk8L1w@mail.gmail.com>
From: Mark Baker <distobj@acm.org>
To: Erik Wilde <dret@berkeley.edu>
Content-Type: text/plain; charset="ISO-8859-1"
Cc: "apps-discuss@ietf.org application-layer protocols" <apps-discuss@ietf.org>
Subject: Re: [apps-discuss] proposal: adding profile support to JSON
X-BeenThere: apps-discuss@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: General discussion of application-layer protocols <apps-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/apps-discuss>
List-Post: <mailto:apps-discuss@ietf.org>
List-Help: <mailto:apps-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 07 Nov 2013 16:01:18 -0000

Hi Erik,

On Wed, Nov 6, 2013 at 1:35 PM, Erik Wilde <dret@berkeley.edu> wrote:
> hello mark.
>
>
> On 2013-11-06, 06:20 , Mark Baker wrote:
>>
>> I've read your RFC, and both referenced blog posts, but still find
>> myself asking the same question; what problem does it solve? Yes,
>> media types have their issues, but in my many years in Web development
>> and standardization, I've yet to encounter a problem that didn't have
>> a workable solution through the correct use of link relations and
>> media types.
>
>
> as i am sure you know, "profile" is a link relation. so what you're saying
> that it's not a "correct" use of link relations? i am really just trying to
> understand your perspective here. a profile media type parameter just
> exposes that link relation in a special place, because it matters for the
> media type, and it is more convenient to see it exposed there, instead of
> first having to parse the representation.

Yes, I wasn't trying to single out "profile" at all, just speak to the
general utility of type/rel.

>> You appear to suggest that there's value in exposing the
>> existence of those OPDS extensions using an additional external
>> metadata protocol element.
>
>
> yes, because then profiles can, for example, take part in wen-level
> mechanisms such as conneg, instead of being "hidden" only in the
> representations.

...

>> I believe that this is at best an
>> optimization, since the consumer can easily detect the existence of
>> the extension by inspecting the content (and understanding the
>> extensibility model of the host format).
>
>
> true for reading, not true for writing, where profiles can also indicate
> what constrained media types a server is willing to accept.

Ok. But AFAICT, the I-JSON draft isn't using profile=i-json as an
optimization. IMO, if it needs for the "urn:ietf:i-json" key to have
special meaning, media types are the only way we currently have to
communicate that fact to JSON recipients (over HTTP at least). But I
have to admit to not understanding the context for I-JSON's existence,
not being involved in those discussions, so perhaps I'm missing
something. Regardless of the specifics of that example, my general
concern is that what you admit is an optimization for these types of
scenarios, may be misunderstood as being something more than that (as
James' suggests when he talks about it eventually replacing media
types).

If your claim is that the true value for profiles is elsewhere, I'd
like to see a concrete proposal before we begin to standardize on
protocol elements for their use. I'm personally skeptical (I'm sure
you're shocked to hear this :) as I've put considerable effort into
exploring this space over the years (including lots of test case
code).

See http://www.markbaker.ca/Talks/2004-media-types-and-compdocs/slide1-0.html
which Markus might also be interested in, to explain why XML
namespaces don't do what he claims. W3C members might also be
interested in the strawman proposal motivated by that presentation;
https://lists.w3.org/Archives/Member/member-cdf/2006Apr/0000.html