Re: [core] Modernized Link Format
Jim Schaad <ietf@augustcellars.com> Fri, 26 October 2018 22:45 UTC
Return-Path: <ietf@augustcellars.com>
X-Original-To: core@ietfa.amsl.com
Delivered-To: core@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 54D5F124BE5 for <core@ietfa.amsl.com>; Fri, 26 Oct 2018 15:45:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-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 nfIikvfRQnkS for <core@ietfa.amsl.com>; Fri, 26 Oct 2018 15:45:36 -0700 (PDT)
Received: from mail2.augustcellars.com (augustcellars.com [50.45.239.150]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9EBC812008A for <core@ietf.org>; Fri, 26 Oct 2018 15:45:35 -0700 (PDT)
Received: from Jude (192.168.1.162) by mail2.augustcellars.com (192.168.1.201) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Fri, 26 Oct 2018 15:40:43 -0700
From: Jim Schaad <ietf@augustcellars.com>
To: 'Klaus Hartke' <hartke@projectcool.de>
CC: "'Christian M. Amsüss'" <christian@amsuess.com>, core@ietf.org
References: <CAAzbHvZiSQvpK=qwtaQX2L5QjZ7nerLW_=eBPFmEhg5YrUPqMA@mail.gmail.com> <20181011124700.GB2437@hephaistos.amsuess.com> <CAAzbHvYR+KjFe-_31qnkYt6qcO9jBpGeaF7B1yiw9BK9oRVfkg@mail.gmail.com> <20181011135318.GD7477@hephaistos.amsuess.com> <CAAzbHvY225KvEPu1P9JwSvHeTOG20BPrEgQoYdY9vzsiDKAU-A@mail.gmail.com> <20181017160402.GB4084@hephaistos.amsuess.com> <CAAzbHvbG2MxMmYPjqxFiHQqs8Y4mE-_rWuc0cgsKnGgeZKdwQA@mail.gmail.com> <01c301d4695b$abc87ad0$03597070$@augustcellars.com> <CAAzbHvbTtrc1C1kz-DofZTPDOC4KU_KXFjNZ8O9svwWVMi32KQ@mail.gmail.com>
In-Reply-To: <CAAzbHvbTtrc1C1kz-DofZTPDOC4KU_KXFjNZ8O9svwWVMi32KQ@mail.gmail.com>
Date: Fri, 26 Oct 2018 15:45:24 -0700
Message-ID: <027101d46d7d$975078c0$c5f16a40$@augustcellars.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AQKuQjWRwUSBcK32eG9k212nxyowzQEJQX3nA2IoELkCb3v7JgGYgrTNAko7gBAB34LvRAIDW52pARtBmMKjAIuxYA==
Content-Language: en-us
X-Originating-IP: [192.168.1.162]
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/bH9h65I5bu7u4U_tasmYb-mkqDY>
Subject: Re: [core] Modernized Link Format
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Constrained RESTful Environments \(CoRE\) Working Group list" <core.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/core>, <mailto:core-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/core/>
List-Post: <mailto:core@ietf.org>
List-Help: <mailto:core-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/core>, <mailto:core-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 26 Oct 2018 22:45:38 -0000
Klaus, Thanks for this pointer, I have read through this and decided to try and figure out how I think things work based on the document. For this purpose I just took two of the responses from the resource directory interop and tried to put them into CoRAL Example #1 The big question that I have here is the fact that I am using the base directive multiple times I believe that this is correct. <coaps://new.example.com:5684/temp>;rt="temperature";ct=0 <coaps://new.example.com:5684/light>;rt="light-lux";ct=0 <coaps://new.example.com:5684/t>;anchor="coaps://new.example.com:5684/sensors/temp";rel="alternate" <http://www.example.com/sensors/t123>;anchor="coaps://new.example.com:5684/sensors/temp";rel="describedby" <coap://[2001:db8:4::1]/light/left>;rt="light";ct=0 <coap://[2001:db8:4::1]/light/middle>;rt="light";ct=0 <coap://[2001:db8:4::1]/light/right>;rt="light";ct=0 ************************************ #base <coaps://new.example.com:5684> #using attr = <http://TBD/> <temp> { attr:rt "temperature" attr:ct "0" } <light> { attr:rt "light-lux" attr:ct "0" } <t> { alternate <coaps://new.example.com:5684/sensors/temp" describedby <coaps://new.example.com:5684/sensors/temp> } #base <coap://[2001:db8:4::1] <light/left> { attr:rt "light" attr:ct "0" } <light/middle> { attr:rt "light" attr:ct "0" } <light/right> { attr:rt "light" attr:ct "0" } ********************************** This example is a bit more difficult for me to know if it is correct - The anchor would, possibly, be used to resolve the URI but I note that anchor is explicitly not allowed to be an attribute of the link so I think this is the correct behavior but I am not sure. </sensors/temp>;ct=41;rt="temperature-c";if="sensor";anchor="coap://spurious.example.com:5683" </sensors/light>;ct=41;rt="light-lux";if="sensor" ********************************* #using attr = <http://TBD/> <coap://spurious.example.com:5683/sensors/temp> { attr:rt "temperature-c" attr:if "sensor" } <sensors/light> { attr:rt "light-lux" attr:if "sensor" } One last item - The current CBOR encoding plays games with a couple of different attributes - specifically the content type where it uses either an integer or an array of integers as the value. I am not sure if you can have an attribute occur multiple times or not. (Maybe ditto with links?) Jim > -----Original Message----- > From: Klaus Hartke <hartke@projectcool.de> > Sent: Sunday, October 21, 2018 10:29 AM > To: Jim Schaad <ietf@augustcellars.com> > Cc: Christian M. Amsüss <christian@amsuess.com>; core@ietf.org WG > <core@ietf.org> > Subject: Re: [core] Modernized Link Format > > Jim Schaad wrote: > > Would it be possible to get a link to CoRAL as I don't think I have ever seen > it. > > https://tools.ietf.org/html/draft-hartke-t2trg-coral-05 > > Klaus
- [core] Modernized Link Format Klaus Hartke
- Re: [core] Modernized Link Format Christian Amsüss
- Re: [core] Modernized Link Format Klaus Hartke
- Re: [core] Modernized Link Format Christian Amsüss
- Re: [core] Modernized Link Format Klaus Hartke
- Re: [core] Modernized Link Format Christian Amsüss
- Re: [core] Modernized Link Format Klaus Hartke
- Re: [core] Modernized Link Format Jim Schaad
- Re: [core] Modernized Link Format Klaus Hartke
- Re: [core] Modernized Link Format Jim Schaad