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

Manu Sporny <msporny@digitalbazaar.com> Sun, 27 December 2020 16:51 UTC

Return-Path: <msporny@digitalbazaar.com>
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 8B6493A0C57 for <media-types@ietfa.amsl.com>; Sun, 27 Dec 2020 08:51:47 -0800 (PST)
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, NICE_REPLY_A=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 uw3J1HPgua0l for <media-types@ietfa.amsl.com>; Sun, 27 Dec 2020 08:51:45 -0800 (PST)
Received: from mail.digitalbazaar.com (mail.digitalbazaar.com [96.89.14.193]) (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 C6A8D3A0C40 for <media-types@ietf.org>; Sun, 27 Dec 2020 08:51:45 -0800 (PST)
Received: from [73.152.135.186] (helo=[10.4.10.95]) by mail.digitalbazaar.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from <msporny@digitalbazaar.com>) id 1ktZJT-0002At-Bq; Sun, 27 Dec 2020 11:54:38 -0500
To: Graham Klyne <Graham.Klyne@oerc.ox.ac.uk>, rhiaro <amy@rhiaro.co.uk>, media-types@ietf.org
References: <e2ee2ce0-641f-de3e-b1b6-d375b24328ad@rhiaro.co.uk> <029ad5c8-b441-3a1e-997d-af1187bc8149@rhiaro.co.uk> <2271d528-9ec5-5173-cad7-ced15d44dd51@oerc.ox.ac.uk>
From: Manu Sporny <msporny@digitalbazaar.com>
Message-ID: <6162e57e-184d-6715-b005-ee75122e8b94@digitalbazaar.com>
Date: Sun, 27 Dec 2020 11:51:40 -0500
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0
MIME-Version: 1.0
In-Reply-To: <2271d528-9ec5-5173-cad7-ced15d44dd51@oerc.ox.ac.uk>
Content-Type: text/plain; charset="utf-8"
Content-Language: en-GB
Content-Transfer-Encoding: 7bit
X-SA-Exim-Connect-IP: 73.152.135.186
X-SA-Exim-Mail-From: msporny@digitalbazaar.com
X-SA-Exim-Version: 4.2.1 (built Tue, 02 Aug 2016 21:08:31 +0000)
X-SA-Exim-Scanned: Yes (on mail.digitalbazaar.com)
Archived-At: <https://mailarchive.ietf.org/arch/msg/media-types/Twhf5ni_UQdyol1FdUxVpst6Hsk>
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: Sun, 27 Dec 2020 16:51:48 -0000

On 12/24/20 8:41 AM, Graham Klyne wrote:
> 1. In the discussion of suffix registrations, the draft says "each 
> subset of suffixes, starting from the right-most suffix, MUST be 
> individually registered as a subtype in its own right" - I think this
> is incorrect use of the term "subtype" as used by the MIME
> specification. RFC6838 uses the phrase "media type name suffix"
> and/or "Structured Syntax Suffix Registration Template".
> 
> https://www.rfc-editor.org/rfc/rfc6838.html#section-6
> 
> It's not clear to me what the best term would be, but I'd probably
> aim for something like "media type name suffix" or "subtype suffix"
> if that's clear from context.

Ok, can do... we'll probably go with the more precise "media type name
suffix".

> 2. I think an example would help to show what is being proposed (I
> think the description is clear enough, but it's always good to have
> something concrete to cross-check against).

Yes, agreed, we'll add an example and use a real one as an example --
application/did+ld+json

> In particular with reference to registration of multiple subtype
> suffixes used together.
> 
> E.g. in the case of refinements of application/ld+json (per 
> https://w3c.github.io/json-ld-syntax/#iana-considerations), one
> could imagine more specific types defined; e.g.
> 
> application/invoice+ld+json
> 
> Per the description, I think this would require the following
> suffixes have been registered:
> 
> +json +ld+json
> 
> But not:
> 
> +ld

Yes, that is correct. We may want to put additional language in there
that states that you can only build valid media type names from a
structured suffix from right to left (not left to right).

> And if this data may be offered with alternative RDF syntaxes, such
> as, e.g.:
> 
> application/invoice+ld+rdf+xml
> 
> then:
> 
> +xml +rdf+xml +ld+rdf+xml

Yes, agreed.

> 3. A nit:  the draft makes reference to and uses RFC2119 language.
> It is usual in RFC documents I've seen to explicitly call this out in
> the document.  E.g.
> 
> https://www.rfc-editor.org/rfc/rfc6838.html#section-1.2

Ok, will do, thanks Graham!

-- manu

-- 
Manu Sporny - https://www.linkedin.com/in/manusporny/
Founder/CEO - Digital Bazaar, Inc.
blog: Veres One Decentralized Identifier Blockchain Launches
https://tinyurl.com/veres-one-launches