Re: [httpapi] Should we adopt linkset media types and link relation?

Herbert Van de Sompel <hvdsomp@gmail.com> Tue, 15 December 2020 07:55 UTC

Return-Path: <hvdsomp@gmail.com>
X-Original-To: httpapi@ietfa.amsl.com
Delivered-To: httpapi@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2BE2B3A0D74 for <httpapi@ietfa.amsl.com>; Mon, 14 Dec 2020 23:55:16 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.197
X-Spam-Level:
X-Spam-Status: No, score=-0.197 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 UVOC_SPSc2Vo for <httpapi@ietfa.amsl.com>; Mon, 14 Dec 2020 23:55:12 -0800 (PST)
Received: from mail-vs1-xe2c.google.com (mail-vs1-xe2c.google.com [IPv6:2607:f8b0:4864:20::e2c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id AF2B43A0D3F for <httpapi@ietf.org>; Mon, 14 Dec 2020 23:55:11 -0800 (PST)
Received: by mail-vs1-xe2c.google.com with SMTP id r24so10468525vsg.10 for <httpapi@ietf.org>; Mon, 14 Dec 2020 23:55:11 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Ewm9PU+0m9nWt8TxfBbgmbna5zU5saXJrSFMZlRp7+U=; b=HY2ruBurx2gIbY9hvArNQ6X0q2iuefFfZFTTXW8A7xHRBTxa03RZJOO1L/jxUbVLun x2v+iS6nyVIE7EnY3+TonJUGQVgUOf3OhgsOfaGknevtRbYpX8RShZScFxc5fV3P1vZm Fmp0iCdZijryEjk6Pk9EdRlNJ3I+lKXFFNTJNHp9Rd4Ig2S0Z1wCc/SR9V1cL15iQAmQ yT4ZSH9JByCAoR/KXIfgvMKia3pJ/hudQ8U7hBs3ofOOH4jbxWz+stZnLFv1UHIZzpTh o6cu/AfV03gpO01xnbtlF1BlpPFLSLkqRI/0KB3qLXdodVb8bSpBsIj5MHm69oDnL5tx D27Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Ewm9PU+0m9nWt8TxfBbgmbna5zU5saXJrSFMZlRp7+U=; b=H3QvXHpCVOrMxw364hNvssE1FSvKHlcx2Bd8dCrX3iE9py4IheptLz0U+aonChZ0Vx 6zrKSjGDcZPixgHh0gYjGaWHXmsoiNnJ9hMhUR1meuzW4XkFRf7c91VdQsNw36wFpUd7 /tMfJw6IQ8Ag95PciIFTHJQJlFvJJus98V773TLSIKvfTdsr5h8Udvk0zRQYuWV0Vdyc IMhKpCe7NLglBQf/Xv5s8uzJdFrZaSGp49D744lcZ9oJmspmfnNF166kMCAOzUjKY5bF SJkuXyl9FpDjpBHPapm/jiw5qViKsUdXptieTxJjInAb832Ikrxs0aP8v8W5qJc3W/QG s7kQ==
X-Gm-Message-State: AOAM530yJfEHPLCrKZd8KbhQr7245t8Cj4LEctX1jukKjx3kIX3e9zj3 KVzH7cdLWCEg7Gqzmv5fHgm4Mfr2R+jdLBsk6IWUh1Iav2w=
X-Google-Smtp-Source: ABdhPJyn+PYbqP0eJn+tJHhMLppo92FtbfC/HLyD5BcpcwWt3rnhvgULYM/NRCEvPd54xVvqMov6tpCQVP2y8Q4MzT4=
X-Received: by 2002:a67:5f04:: with SMTP id t4mr28165942vsb.16.1608018910576; Mon, 14 Dec 2020 23:55:10 -0800 (PST)
MIME-Version: 1.0
References: <48058830-D096-4DBE-8476-0487544D880E@akamai.com> <e7e0e81b-0c84-a0d8-3ecc-bfc75f852e0a@dret.net>
In-Reply-To: <e7e0e81b-0c84-a0d8-3ecc-bfc75f852e0a@dret.net>
From: Herbert Van de Sompel <hvdsomp@gmail.com>
Date: Tue, 15 Dec 2020 08:54:59 +0100
Message-ID: <CAOywMHfRWs=AcH3SKO9bUTMfrWGNOptsd_E4TOcctTJxH-EsiA@mail.gmail.com>
To: "Salz, Rich" <rsalz=40akamai.com@dmarc.ietf.org>
Cc: "httpapi@ietf.org" <httpapi@ietf.org>, Erik Wilde <erik.wilde@dret.net>
Content-Type: multipart/alternative; boundary="000000000000f5047205b67c138d"
Archived-At: <https://mailarchive.ietf.org/arch/msg/httpapi/aAtMly82m59H3OhnLLRWwu1SIgk>
Subject: Re: [httpapi] Should we adopt linkset media types and link relation?
X-BeenThere: httpapi@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Building Blocks for HTTP APIs <httpapi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/httpapi>, <mailto:httpapi-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/httpapi/>
List-Post: <mailto:httpapi@ietf.org>
List-Help: <mailto:httpapi-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/httpapi>, <mailto:httpapi-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 15 Dec 2020 07:55:16 -0000

Dear Rich, all,

Following up on Erik's mail, here's an analysis of the issue regarding the
perceived overlap between the linkset I-D and the CoRE RFC6690:

In section 4.1 <
https://datatracker.ietf.org/doc/html/draft-wilde-linkset-07#section-4.1>,
the Link Set I-D:
* Defines a serialization for documents that convey a set of links.
* Defines the application/linkset media type for this serialization.
* The defined serialization 100% matches the payload of the HTTP Link
header as defined in section 3 of RFC8288 <
https://datatracker.ietf.org/doc/html/rfc8288#section-3>.

In section 2 <https://tools.ietf.org/html/rfc6690#section-2>, RFC6690:
* Defines a serialization for documents that convey a set of links.
* Defines the application/link-format media type for this serialization.
* The serialization is equivalent (sic) to the payload of the HTTP Link
header as defined in section 3 of RFC8288 <
https://datatracker.ietf.org/doc/html/rfc8288#section-3>. It differs from
it in that:
- The encoding is UTF-8. It is not dependent on RFC2616 for its encoding.
- It defines new target attributes rt, it, sz that are not defined in
RFC8288. As such, these cannot be used as extension target attributes when
using the application/link-format media type.
- It reserves the href target attribute because it is used as a query
parameter for a filtering approach defined in the section 4.1 <
https://tools.ietf.org/html/rfc6690#section-4.1> of the RFC. As such, the
href target attribute can not be used as an extension target attribute when
using the application/link-format media type.

The definition of target attributes in RFC6690 that are not defined in
RFC8288 turns the CoRE application/link-format serialization into a
community profile of the generic model specified by Web Linking. In
contrast, the application/linkset serialization of the Link Set I-D fully
matches that generic model. That also holds for the
application/linkset+json serialization defined in the Link Set I-D.

I hope this clarifies the issue that was discussed in the recent WG
meeting. And, like Erik, I hope the I-D can be adopted.

Greetings

Herbert Van de Sompel

On Sun, Dec 13, 2020 at 10:16 PM Erik Wilde <erik.wilde@dret.net> wrote:

> hello rich.
>
> On 2020-12-10 08:05, Salz, Rich wrote:
> > At our meeting in IETF 109, we discussed
> >
> > https://www.ietf.org/archive/id/draft-wilde-linkset-07.txt
> >
> > There was some discussion about overlap with other specifications, but
> > also interest in adoption.  We said we’d have more discussion for
> > issuing the call, so please use this thread (or start others) to have
> > that discussion. In particular, if there are concerns about adopting the
> > document, please speak up. This is an ongoing discussion, probably not
> > going to be resolved in what remains of this month/year. :)
>
> again, i am (of course) in favor of adopting this draft. the one issue
> that was raised in the meeting at IETF 109 was the existence of the CoRE
> linking model and how it relates to the linkset model proposed in our
> draft.
>
> herbert van de sompel and myself have discussed this issue, and we'll
> get back to this list with a brief explanation of how these two models
> compare, and why we felt that CoRE did not meet our needs. we hope that
> this explanation will resolve the open issue about the linkset draft.
>
> thanks and cheers,
>
> dret.
>
> --
> erik wilde | mailto:erik.wilde@dret.net |
>             | http://dret.net/netdret    |
>             | http://twitter.com/dret    |
>


-- 
==================
Herbert Van de Sompel
Chief Innovation Officer
DANS
herbert.van.de.sompel@dans.knaw.nl
+31 6 22 83 93 15
https://hvdsomp.info
https://orcid.org/0000-0002-0715-6126