Re: [media-types] Media subtypes containing "+"

"Martin J. Dürst" <duerst@it.aoyama.ac.jp> Wed, 08 July 2020 23:28 UTC

Return-Path: <duerst@it.aoyama.ac.jp>
X-Original-To: media-types@ietfa.amsl.com
Delivered-To: media-types@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CD49D3A0977 for <media-types@ietfa.amsl.com>; Wed, 8 Jul 2020 16:28:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=itaoyama.onmicrosoft.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id k-ky-06QUGgj for <media-types@ietfa.amsl.com>; Wed, 8 Jul 2020 16:28:25 -0700 (PDT)
Received: from JPN01-TY1-obe.outbound.protection.outlook.com (mail-eopbgr1400130.outbound.protection.outlook.com [40.107.140.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C97C03A096E for <media-types@ietf.org>; Wed, 8 Jul 2020 16:28:24 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FCDEKHia0+eKJdZI7A7wuL6vHMUptahBv7ScCBFQ2/1SIX7qk+25w5xjJnBC5WQXgo/xcRQVdOeSbSOubDNqGLPq5gASSaM9yrGmZtO1Q2OouHoBu/xQPHeJ1W9JdOebFrWL/9511obEQCoHv/sPMwdI/IiptDNrRDVGQd5N5EXfaqGCaCb+aoeX4e/415V3wzswAVUnBRwGPTQWi7+BLlqONORNu9/wbvvbYlARZTpBhwYeKop2R4I1kj8mHb/r4eyTzVjy1+UX5gD5GCbv3YHuLGPxvMapZ7iaJxCiaUx9yRp0OBYd9OI9le67htiZE0kPSDPaUqeSg9JvTAanXA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VhjAvHRBGsrRBJ08ZVTT0tTdvl5njqevCjm9KDnpjpg=; b=AW0iZLzS6ZFoliWa8LSqIbCgoHiuweFqaIPTlzcEA/stoEnfx6j8nw14CaucxT/uWQ/aAmGmS8OoGX6CllTrN7bC5aIzKiUQSKbC1YP5KCZYCSKYG80IkgTJ12kB0TCwESdTXAHG22DRxF6AbcEg2x1ic8VRxFv/MP1TZ7Qwd8/tpUBiU8ct82fe+m+yeN08sYCyK4zJCrwL9iQ201EZOemBMoeMmU2saJAeAiKPHYTSvlrIo+iSdppzpmRBOOKscMyY4PHwwP6gL9nlM1VKG94elPje6oMnEa7tbUMPaJRar/Awl9kqU2AAw3pSDlooazIXEzlhGVjGTCipGpgjQQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=it.aoyama.ac.jp; dmarc=pass action=none header.from=it.aoyama.ac.jp; dkim=pass header.d=it.aoyama.ac.jp; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=itaoyama.onmicrosoft.com; s=selector2-itaoyama-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VhjAvHRBGsrRBJ08ZVTT0tTdvl5njqevCjm9KDnpjpg=; b=HW96P9rlTU5seKeXO5O41pFkqb8bCZZ0bkILeYMbgLdj6eEBVjhd2adrWWbeRiu+9CrIx2oNixfKLvhYkBVIA4RZCew3HqLmjxKHpOuIUdAL+pOlAUZdAEdWlmML4DxhesvzIjtqrWI9iWw0UdnCDcUm9sU4Ik0aYg2DG0hSyDQ=
Authentication-Results: ietf.org; dkim=none (message not signed) header.d=none;ietf.org; dmarc=none action=none header.from=it.aoyama.ac.jp;
Received: from OSBPR01MB2566.jpnprd01.prod.outlook.com (2603:1096:604:1c::13) by OSAPR01MB4753.jpnprd01.prod.outlook.com (2603:1096:604:6a::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3153.23; Wed, 8 Jul 2020 23:28:22 +0000
Received: from OSBPR01MB2566.jpnprd01.prod.outlook.com ([fe80::d1a0:ea71:e6f9:9778]) by OSBPR01MB2566.jpnprd01.prod.outlook.com ([fe80::d1a0:ea71:e6f9:9778%7]) with mapi id 15.20.3174.022; Wed, 8 Jul 2020 23:28:22 +0000
To: Manu Sporny <msporny@digitalbazaar.com>, media-types@ietf.org
References: <3d459015-b748-9ee9-21ca-89e7229d030e@digitalbazaar.com> <CANiy74wnaEoApaTitE85xj+nvGS8QWrdFqg53esQFBd_xsUjmg@mail.gmail.com> <121c5bca-9082-c6bc-68b8-ed7330341904@digitalbazaar.com>
From: "Martin J. Dürst" <duerst@it.aoyama.ac.jp>
Organization: Aoyama Gakuin University
Message-ID: <4db712b4-394c-9a75-22fb-27709c405480@it.aoyama.ac.jp>
Date: Thu, 09 Jul 2020 08:28:19 +0900
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0
In-Reply-To: <121c5bca-9082-c6bc-68b8-ed7330341904@digitalbazaar.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-ClientProxiedBy: TYXPR01CA0056.jpnprd01.prod.outlook.com (2603:1096:403:a::26) To OSBPR01MB2566.jpnprd01.prod.outlook.com (2603:1096:604:1c::13)
MIME-Version: 1.0
X-MS-Exchange-MessageSentRepresentingType: 1
Received: from [192.168.1.6] (125.203.82.4) by TYXPR01CA0056.jpnprd01.prod.outlook.com (2603:1096:403:a::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.20 via Frontend Transport; Wed, 8 Jul 2020 23:28:21 +0000
X-Originating-IP: [125.203.82.4]
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: d8ba5bcd-0ee3-4446-a5ce-08d823969ab9
X-MS-TrafficTypeDiagnostic: OSAPR01MB4753:
X-Microsoft-Antispam-PRVS: <OSAPR01MB475333712FE77BBA76D3B887CA670@OSAPR01MB4753.jpnprd01.prod.outlook.com>
X-MS-Oob-TLC-OOBClassifiers: OLM:9508;
X-Forefront-PRVS: 04583CED1A
X-MS-Exchange-SenderADCheck: 1
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: tchGiZNOeen9BBIA66OyMCJSa2mc8hhr3XDEpJwDI7o9iddDGo6CTzlj6zkcqemJZkwfU0Nyl686y+069MgMW4XTDn3tRJjMLUQfVilv6u2kpx9ix8xaMPwgbEBE4FuicLN3iV1x8ZIsiEY1Y+uIQzE5qMPMzR3eordyNw522Y0um5+eZIM6JDjUDLbksu/b1ZFrpdkWQAEeyRenExSKW5GSRPzQo5GPS37NlhipYlyrm64rqzqM/56CjIMyJPin9Jhv0iDVl5QH1jZwo7pBpTF0RLwIKRi8ZUYpW421BTDKaNSyyMu3erJugaHQLvd4IjOkKZ6L9tPSBsohhhWRpAWw+yrNL8VYwd+29/0Kgottsfjps79nhj8xs2xz4MJTikMLN+00sOo30P6pOalhZ4/sVk6lz/OMiCIuMTanzsdLh0U/KU3RBS21PTX+ZbiYpCIX0fjG2RSF0aU1ZfCEtg==
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:OSBPR01MB2566.jpnprd01.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(136003)(346002)(376002)(39840400004)(366004)(396003)(66556008)(66476007)(66946007)(31696002)(5660300002)(86362001)(83380400001)(31686004)(2906002)(2616005)(956004)(316002)(786003)(16576012)(52116002)(8676002)(8936002)(6486002)(53546011)(36916002)(16526019)(26005)(508600001)(966005)(186003)(43740500002); DIR:OUT; SFP:1102;
X-MS-Exchange-AntiSpam-MessageData: cx9qYu9DI+C2V+gAllJR98H6h5s5vuVzPxq5K7J6UGJOfAQd64/bm29jtwBBWpTvMqUuMYcX5YgpmFa54OkESYjGXN8IwZUCxoYQmNBErc4Fy6PJ8Gb0aWSxc1zqNueGyWn8N5u4atVllJbaUa5ep2uCEmXnfjal3qhbdsEFgLjHYYQ6FAEYn0fVPzCyNlTZK42rZ5htJ5AazmJMIyWFiWNi79odoZR14ZifmqAY/tg0biGbpqcgIp8RmMbJ1vNjqM51V0CNAreW8jRnc/vi+fGINNilXaQzizkcTkogq0bOEXXQ3hsWutsZI0Voq3ZSQBOIQRX6uZIAkccD+t9n7dDQL4Ev71W2dvBYAFIi8ETQe3IsluN6HLtKbvROa+IVPok2KvHSB0ZDJ21WorfcZtDquhdIn5WLeH4wzrWvAPkjzXOSZHMKUVFJWN7qeM6PN012KJGJ3LlBx12DJsBe/Orl92DgYvjwZMAfBdu4Eg0=
X-OriginatorOrg: it.aoyama.ac.jp
X-MS-Exchange-CrossTenant-Network-Message-Id: d8ba5bcd-0ee3-4446-a5ce-08d823969ab9
X-MS-Exchange-CrossTenant-AuthSource: OSBPR01MB2566.jpnprd01.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jul 2020 23:28:22.3088 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: e02030e7-4d45-463e-a968-0290e738c18e
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: Jv0ua8D2k2aOw3L2dLNVzOkvdJTpJ8XInUVpiaa1dEWj7eGsyvh3AfgIdN8JEZ5md+Kfr6S7HrJzvThRkpYIzg==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSAPR01MB4753
Archived-At: <https://mailarchive.ietf.org/arch/msg/media-types/SfmdcW7mmtiD-hHmyDdLnl2qS-8>
Subject: Re: [media-types] Media subtypes containing "+"
X-BeenThere: media-types@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "IANA mailing list for reviewing Media Type \(MIME Type, Content Type\) registration requests." <media-types.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/media-types>, <mailto:media-types-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/media-types/>
List-Post: <mailto:media-types@ietf.org>
List-Help: <mailto:media-types-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/media-types>, <mailto:media-types-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 08 Jul 2020 23:28:27 -0000

On 09/07/2020 05:44, Manu Sporny wrote:
> On 7/8/20 4:17 PM, Nathan Rixham wrote:
>> A very small point, which I realise is probably years too late, but in
>> usage "application/json+ld" is far more practical to use, for example in
>> a media selector, similarly "application/json+ld+did" follows the same
>> principal, subtyping reverse requires a great deal of both explantation
>> and code to handle, and gets ever more complex. Finding all
>> "application/json*" is much easier.
> 
> Very true, which is why the first MIME Type attempted for JSON-LD was in
> fact:
> 
> "application/json+ld"
> 
> .... that is, until I was corrected by people that knew better. :)
> 
> Every now and then I go back and scan through a sea of specifications
> and mailing lists in an attempt to understand the reasoning behind the
> choice... find it (at least, that's what I keep telling myself), and
> then promptly forget because the path is so twisted and meandering.
> 
> In any case, that ship sailed long ago.

Yes indeed. And the reason for the syntax is also quite clear and easy. 
It came up with XML. For XML, there isn't only application/, there are 
also image/, message/, and model/ (see 
https://www.iana.org/assignments/media-types/media-types.xhtml), and 
font/svg+xml would also be possible even though it isn't registered 
currently.

Similar considerations apply to other suffixes, in particular also those 
related to compression schemes. Major types and suffixes are not 
hierarchical. A suffix was easier to pick out than something in the middle.

Even for json, there's model/gltf+json, so if you want to deal with all 
json, you would have to match for "/json", not for "application/json", 
in a scheme that would but what are now suffixes at the start of the 
subtype.

Regards,   Martin.

> -- manu
> 
> PS: Hi Nathan! It's been years -- hope you're well. :)
>