[art] [Linkset I-D] linkType parameter

Phil Archer <phil.archer@gs1.org> Tue, 26 May 2020 15:21 UTC

Return-Path: <phil.archer@gs1.org>
X-Original-To: art@ietfa.amsl.com
Delivered-To: art@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CE7A13A003E for <art@ietfa.amsl.com>; Tue, 26 May 2020 08:21:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.897
X-Spam-Level:
X-Spam-Status: No, score=-1.897 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=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 nqW0AkizAEge for <art@ietfa.amsl.com>; Tue, 26 May 2020 08:21:12 -0700 (PDT)
Received: from eu-smtp-delivery-175.mimecast.com (eu-smtp-delivery-175.mimecast.com [207.82.80.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4D4153A0840 for <art@ietf.org>; Tue, 26 May 2020 08:21:04 -0700 (PDT)
Received: from mail.gs1.org (mail.gs1.org [194.78.55.38]) (Using TLS) by relay.mimecast.com with ESMTP id uk-mta-98-fsVf5mV0PimD30pvDLVGsw-1; Tue, 26 May 2020 16:21:00 +0100
Received: from gs1beecho13.gs1.org (192.168.100.29) by gs1beecho13.gs1.org (192.168.100.29) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Tue, 26 May 2020 17:20:59 +0200
Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.175) by gs1beecho13.gs1.org (192.168.100.29) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Tue, 26 May 2020 17:20:59 +0200
Received: from DM6PR08MB4972.namprd08.prod.outlook.com (2603:10b6:5:4e::25) by DM6PR08MB5642.namprd08.prod.outlook.com (2603:10b6:5:111::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.27; Tue, 26 May 2020 15:20:58 +0000
Received: from DM6PR08MB4972.namprd08.prod.outlook.com ([fe80::ad77:f200:1f15:c6bf]) by DM6PR08MB4972.namprd08.prod.outlook.com ([fe80::ad77:f200:1f15:c6bf%7]) with mapi id 15.20.3021.029; Tue, 26 May 2020 15:20:58 +0000
From: Phil Archer <phil.archer@gs1.org>
To: "art@ietf.org" <art@ietf.org>
Date: Tue, 26 May 2020 16:20:58 +0100
Thread-Topic: [Linkset I-D] linkType parameter
Thread-Index: AQHWM3FBdl+21lzrNEWLNkA+MuOdzQ==
Message-ID: <DM6PR08MB4972FAD07781890E8C7A020EB7B00@DM6PR08MB4972.namprd08.prod.outlook.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
acceptlanguage: en-GB, en-US
x-originating-ip: [109.147.19.54]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: dd5ee507-f56f-4a1d-01e6-08d80188645f
x-ms-traffictypediagnostic: DM6PR08MB5642:
x-microsoft-antispam-prvs: <DM6PR08MB56424CE7B11C405C2D769CA1B7B00@DM6PR08MB5642.namprd08.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-forefront-prvs: 041517DFAB
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: vhqndJd5rUW4BJvm+oUCPdbb+HZ8t5uNtt9twVsA8JtCg0+fElyERHBJt66m9fIdijM3gy6wiSCqlLp28214tpJpUk1s8Fk4zpg2pP7GrxvTszCkt8GbNtVKp6JmHThJu6pJQGb4EuXRCOQtzbedAwmH0+jJqIBQ7mExF6bDVRf17lgMK0C9g/cbModRHqAQOni3u2AhKpa5U82L+1BDWi8grefLFBUsA5iISlfKqymQDdt5yo3Pv3HL1QUX7owqDcNWHd7uYW1P0E7R1ICgzT4UYPrNJ0TzEOJLecKl1fzVZsOXbvl6Hc/C8V/nh8Dz8fsUHR9BzUgsFVLEAVJ1k+OcQEXqvXfONJHiKPBxP+x79OsYuBwx5dqr7AjLDLEW/C8vUsSHMaKPKC7d2AL4ng==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR08MB4972.namprd08.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(396003)(346002)(39840400004)(136003)(376002)(366004)(33656002)(66574014)(86362001)(44832011)(71200400001)(9686003)(55016002)(186003)(8676002)(7696005)(6916009)(8936002)(6506007)(26005)(316002)(52536014)(76116006)(5660300002)(91956017)(66556008)(478600001)(966005)(66446008)(2906002)(66946007)(66476007)(64756008); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata: FbZFbtX5T1enJWVUknfJGvfdZctadM8fd4pVrhEvJ5v7elw9X+3HmUjx09uh0sRUxJHBVOXOFk8EGPvf0Udbe/meWaOHYvHXsGJs13hVL9oZUDEb0mvi5/08PFU0VrLEp/aRUTp8fN4OQmSx1Imzidbiph5Mxx/WBQ0B7fmKfeqkP3Hm5yzYNxn8HFr0ieBbdX82SWeoONRFlWVzAn4L5ha+Yx4AXP3FfYydsnEDZPI2Eewt8Na5xaOIdMyAET+iPshuUNfQuXglRhYVMualfdWrIvv5PR8EN4zpEbSGXRbCHKEOvKd4603IlOOa9wZPFMZw8SlPbTUrVrNYDcIcrBTtTW2Stl4LNUYwhJqA4Qjvcs3k34FvPtlIUYSIsKALgXi0qR3bvfr2kFpIqmYH5ClxYMyUUPfffJcOPZT//Uq/aeiRS6aLCp1Ld7TonIzhrVkVgUjNFn2Lur94Jyy881KJRDGDAri/MjWv7s1FPRXC6xufZj+e3uW20k68orHR
x-ms-exchange-transport-forked: True
x-mc-unique: fsVf5mV0PimD30pvDLVGsw-1
x-ms-exchange-crosstenant-network-message-id: dd5ee507-f56f-4a1d-01e6-08d80188645f
x-ms-exchange-crosstenant-originalarrivaltime: 26 May 2020 15:20:58.3050 (UTC)
x-ms-exchange-crosstenant-fromentityheader: Hosted
x-ms-exchange-crosstenant-id: 3197754b-b3a7-45b5-b82c-c8bc62c25b58
x-ms-exchange-crosstenant-mailboxtype: HOSTED
x-ms-exchange-crosstenant-userprincipalname: AFg7Q6/O/6eoCkQnFNGm/2NEIxyyuiOBhyw0JEtMqpjcj0vzuTcNTDkvyXr/eKQ9dwgrbwGLFloUXLDei+S32w==
x-ms-exchange-transport-crosstenantheadersstamped: DM6PR08MB5642
x-originatororg: gs1.org
MIME-Version: 1.0
X-Mimecast-Spam-Score: 0
X-Mimecast-Originator: gs1.org
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/art/LUaZpaeVdzXD6YbLeu8uBh3CkVg>
Subject: [art] [Linkset I-D] linkType parameter
X-BeenThere: art@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Applications and Real-Time Area Discussion <art.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/art>, <mailto:art-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/art/>
List-Post: <mailto:art@ietf.org>
List-Help: <mailto:art-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/art>, <mailto:art-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 26 May 2020 15:21:16 -0000

A separate question from my previous one about arrays of linksets...

A feature of GS1 Digital Link is that you can query a 'GS1 conformant
resolver' in 3 different ways.

If you just dereference https://id.gs1.org/01/9506000134352 you'll be
redirected to a Web page about that (fictional) item. Depending on your
browser's language, you might see the page in English, Spanish,
Vietnamese or Japanese.

Now try
https://id.gs1.org/01/9506000134352?linkType=gs1:hasRetailers

Same number, same resource, but now you're going to be redirected to one
of the available links that has a @rel value of gs1:hasRetailers.

All the available links are exposed in the HTTP Link Header (even when
redirecting), but you can get the full set by making linkType=all (we
are almost certain to deprecate this in favour of linkType=linkset).

OK... so that linkType parameter is the crucial thing here. In its
absence, you're redirected to the default link. With it, you'll be
redirected to a specific link if there's one that matches the link
relation type in your request (if not, you get the default). Set it to
'linkset' and you get everything available.

My question is: does this sound useful in other contexts? It makes sense
in the world of GS1 (products, shipments, barcodes). Could this I-D, or
another, define the linkType parameter?

And before MNot says this is a land grab of URI space in contravention
of BCP190, well, one thing we'd say in friendly *bold* letters, is that
no, this does *not* mean that linkType would *always* mean this. Servers
are sovereign and are free to use whatever parameters they like in
whatever way they like. Just in some cases, this might be useful (GS1
conformant resolvers MUST have a little file at /.well-known/gs1resolver
so you know what to expect).

Thoughts?

Thanks

Phil

--
Phil Archer
Director, Web Solutions, GS1
https://www.gs1.org

Meet GS1 Digital Link Developers at
https://groups.google.com/forum/#!forum/gs1-digital-link-developers

https://philarcher.org
+44 (0)7887 767755
@philarcher1
Skype: philarcher
A word on abbreviations I sometimes use in email:
https://philarcher.org/diary/2019/emailabbreviations/

CONFIDENTIALITY / DISCLAIMER: The contents of this e-mail are  confidential and are not to be regarded as a contractual offer or acceptance from GS1 (registered in Belgium). 
If you are not the addressee, or if this has been copied or sent to you in error, you must not use data herein for any purpose, you must delete it, and should inform the sender. 
GS1 disclaims liability for accuracy or completeness, and opinions expressed are those of the author alone. 
GS1 may monitor communications. 
Third party rights acknowledged. 
(c) 2020.