Re: [apps-discuss] New Version Notification for draft-wilde-xml-patch-00.txt

Nicholas Shanks <nickshanks@nickshanks.com> Tue, 22 January 2013 15:20 UTC

Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3059121F8A0D for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 22 Jan 2013 07:20:37 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.227
X-Spam-Level:
X-Spam-Status: No, score=-8.227 tagged_above=-999 required=5 tests=[AWL=1.750, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_HI=-8]
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 YadwQEB-Jlyr for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 22 Jan 2013 07:20:36 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 8A61A21F89B9 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 22 Jan 2013 07:20:36 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Txfdx-0006HS-EM for ietf-http-wg-dist@listhub.w3.org; Tue, 22 Jan 2013 15:20:09 +0000
Resent-Date: Tue, 22 Jan 2013 15:20:09 +0000
Resent-Message-Id: <E1Txfdx-0006HS-EM@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <nickshanks@gmail.com>) id 1Txfdn-00050v-Od for ietf-http-wg@listhub.w3.org; Tue, 22 Jan 2013 15:19:59 +0000
Received: from mail-lb0-f174.google.com ([209.85.217.174]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <nickshanks@gmail.com>) id 1Txfdk-0002oY-L0 for ietf-http-wg@w3.org; Tue, 22 Jan 2013 15:19:59 +0000
Received: by mail-lb0-f174.google.com with SMTP id l12so837903lbo.19 for <ietf-http-wg@w3.org>; Tue, 22 Jan 2013 07:19:30 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=I8OTX8ad1FZMm4ZrF2nhSvio0qXkdeeUWwdXnahCIDs=; b=cyjmWBFD/W0UzELz/Iksc0XM0jZihhysxBgfqXaOL86lYYJKH/sMwJN4q6L5GBdFoW 4B/jlPc7mu6fSql7LY7+n7bAa7YP77P7Qi8TazQcgZyAuf0Zl3iTWlfY5FdZXYdJbmkH bxqL8w3wmYu2hDNwZYg689nPqE9XqGrv8lkmZYIIMupqoH4n24ke0jKHt2o+fPd317ZO 4tDM2vWB8t+0iOEVsQf66BbhNnExBbMYHHIr7/IyxRYImRaSckDrrNBT701eCqNAOHFL 7cQeAkEifs5wCgjIqXQb+8Ri5lK0xbZeFjaV1C9S52AagTwFS2kI96TfSuShz4vyYLqW z/BQ==
X-Received: by 10.112.100.41 with SMTP id ev9mr913352lbb.34.1358867970063; Tue, 22 Jan 2013 07:19:30 -0800 (PST)
MIME-Version: 1.0
Sender: nickshanks@gmail.com
Received: by 10.114.18.40 with HTTP; Tue, 22 Jan 2013 07:18:49 -0800 (PST)
In-Reply-To: <50F6697A.8030608@berkeley.edu>
References: <1CD55F04538DEA4F85F3ADF7745464AF2495A4A7@S-BSC-MBX1.nrn.nrcan.gc.ca> <CABP7RbdmxVpZn6CyjcHhUNNfmav9H1RDWGHKe5ODV-0y5YboPg@mail.gmail.com> <50F42C62.1080002@berkeley.edu> <01OOZ8YX62N000008S@mauve.mrochek.com> <50F512CA.6040003@berkeley.edu> <ri5bf893rbg8vj8qf57uhladh9qo5v1dfh@hive.bjoern.hoehrmann.de> <50F6697A.8030608@berkeley.edu>
From: Nicholas Shanks <nickshanks@nickshanks.com>
Date: Tue, 22 Jan 2013 15:18:49 +0000
X-Google-Sender-Auth: iBrkbGjUXIV0E95fhUJdgZF95UU
Message-ID: <CA+hEJVUxQBOSCtG_Ad+u8+hOC+_iSZ1_tgtsAeZ-vGCscHyq4Q@mail.gmail.com>
To: "apps-discuss@ietf.org" <apps-discuss@ietf.org>
Cc: ietf-http-wg@w3.org
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=209.85.217.174; envelope-from=nickshanks@gmail.com; helo=mail-lb0-f174.google.com
X-W3C-Hub-Spam-Status: No, score=-3.4
X-W3C-Hub-Spam-Report: AWL=-2.710, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1Txfdk-0002oY-L0 5062b6c2ec115e2598a49d02a241696c
X-Original-To: ietf-http-wg@w3.org
Subject: Re: [apps-discuss] New Version Notification for draft-wilde-xml-patch-00.txt
Archived-At: <http://www.w3.org/mid/CA+hEJVUxQBOSCtG_Ad+u8+hOC+_iSZ1_tgtsAeZ-vGCscHyq4Q@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/16112
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

[Cross-posting to HTTP WG since my brain dump affects them too]

On 16 January 2013 08:48, Erik Wilde <dret@berkeley.edu> wrote:
> On 2013-01-15 18:58 , Bjoern Hoehrmann wrote:
>> If someone made a format that expresses differences between "RDF files"
>> or some sort, and that format is based on JSON, the argument would most
>> likely be to use +json for the corresponding media type.
>
> my point was more that an RDF patch format more likely would patch the RDF
> model, and not a specific RDF syntax. thus, it might use "rdf-patch" as the
> starting point, but then the patch format itself probably would be defined
> as RDF, and thus could be serialized in different ways, so that we might
> have rdf-patch+rdfxml and rdf-patch+turtle, if there were specific suffixes
> for different RDF serializations. this is all hypothetical right now as
> there aren't any RDF suffixes, but i was wondering whether this would be the
> direction all of this would move towards.

The best solution to this mess, in my opinion, would be to adopt
Universal Type Identifiers[1] as a replacement for MIME types across
the internet. During a transitional period, both will have to be
present, but I'm hopping that shouldn't be too much of a burden (see
below for why not). Eventually Apple ought to transfer control of the
public.* registry to the IETF too, but that's a bridge that can be
crossed at a later date.

In short, the benefits of UTIs over MIME types are that you get
multiple inheritance and don't have to stuff all of the inheritance
hierarchy into one label.
RDF Patch inherits from RDF, RDF inherits from XML in one
serialization, and XML inherits from Plain Text. In MIME parlance that
ought to be text/rdf-patch+rdf+xml, and that syntax only allows a
single inheritance chain. Multiple inheritance can be useful in
selecting alternative software to edit a resource.
The draw-backs to using UTIs are that clients have to be smarter: they
have to have advance knowledge of the public.* hierarchy and the
inheritance paths of any custom types which they can handle.

Since forward slashes are prohibited in UTIs, a MIME type and a UTI
can be crudely distinguished by the presence or absence of this
character. It may be possible therefore to permit multiple values for
the Content-Type header such as "text/html, public.html" without
confusing clients and intermediaries. I'd prefer that to inventing a
new HTTP header, since the semantics being conveyed are identical.

Before any of this can become a possibility though, the HTTPbis WG
should specify in p2 section 3.1.1.5, that all clients must split the
Content-Type header into constituent values per the rules for doing
so, then ignore but retain any header values which it does not
understand (with their attendant parameters, if any). Clients can then
use their own heuristic in determining what type to process a resource
as. This could even allow headers such as "Content-Type:
application/rdf-patch, application/rdf, application/xml, text/plain"
as a way of providing a type hierarchy to clients. It makes sense to
list more precise types first, but ordering should not matter to
clients that are multi-value aware. Very dumb clients can just chop at
the first comma, leaving us with what we have presently.

[1] read some of the results from
https://www.google.com/search?q=apple+uti for more info

-- 
Nicholas.