[T2TRG] Overrides vs. default (Re: [Asdf] T2TRG/WISHI/ASDF/CoRE hackathon @ IETF111: Tuesday 20th 1400Z)

Carsten Bormann <cabo@tzi.org> Tue, 20 July 2021 13:08 UTC

Return-Path: <cabo@tzi.org>
X-Original-To: t2trg@ietfa.amsl.com
Delivered-To: t2trg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0CD6B3A21CE for <t2trg@ietfa.amsl.com>; Tue, 20 Jul 2021 06:08:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.896
X-Spam-Level:
X-Spam-Status: No, score=-1.896 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, WEIRD_PORT=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 CWEqUw310ut7 for <t2trg@ietfa.amsl.com>; Tue, 20 Jul 2021 06:08:15 -0700 (PDT)
Received: from gabriel-smtp.zfn.uni-bremen.de (smtp.zfn.uni-bremen.de [134.102.50.15]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D51863A21C9 for <t2trg@irtf.org>; Tue, 20 Jul 2021 06:08:14 -0700 (PDT)
Received: from [192.168.217.118] (p548dcc89.dip0.t-ipconnect.de [84.141.204.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4GTfCc0JxTz31k8; Tue, 20 Jul 2021 15:08:12 +0200 (CEST)
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <F5292191-C150-445A-B71E-036834434102@tzi.org>
Date: Tue, 20 Jul 2021 15:08:11 +0200
X-Mao-Original-Outgoing-Id: 648479291.624736-0a9503520dc253bf56474b40da2a5e30
Content-Transfer-Encoding: quoted-printable
Message-Id: <F2589FEF-FC6F-40E7-9605-3679C3DC30AC@tzi.org>
References: <985EBCFE-9783-4C7C-BEA7-D7F975AED7A5@tzi.org> <F5292191-C150-445A-B71E-036834434102@tzi.org>
To: t2trg@irtf.org, asdf@ietf.org
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/t2trg/0iFbkMlXXsu4W3zj1QE3BM-ll6c>
Subject: [T2TRG] Overrides vs. default (Re: [Asdf] T2TRG/WISHI/ASDF/CoRE hackathon @ IETF111: Tuesday 20th 1400Z)
X-BeenThere: t2trg@irtf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: IRTF Thing-to-Thing Research Group <t2trg.irtf.org>
List-Unsubscribe: <https://www.irtf.org/mailman/options/t2trg>, <mailto:t2trg-request@irtf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/t2trg/>
List-Post: <mailto:t2trg@irtf.org>
List-Help: <mailto:t2trg-request@irtf.org?subject=help>
List-Subscribe: <https://www.irtf.org/mailman/listinfo/t2trg>, <mailto:t2trg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Tue, 20 Jul 2021 13:08:21 -0000

[narrowed to t2trg/asdf]

When ingesting and processing SDF, the processing may need the resolved result of using sdfRef.
Beside the namespace juggling, there also is the possibility that the named qualities map that contains the sdfRef also has overrides [1].

[1]: https://www.ietf.org/archive/id/draft-ietf-asdf-sdf-07.html#section-4.4-5

I ran a quick script against the playground to find out what those overrides might be.
I found a lot of places that have “label” overrides that are totally redundant with the name of the named quality the sdfRef is used in.
I think we may want to reconsider if this redundant information should be in those references; we’d have mostly clean (non-overridden) references otherwise.  I think I’d rather get rid of “label” than have these redundant entries.

The other recurring pattern is providing a “default” override.  Now that is very similar to your typical constructor parameter:  This essentially provides an initial value to the instance.  So far, this is used in only two models:

DEFAULT: 0 Zigbee Alliance ./sdfObject/sdfobject-level.sdf.json
DEFAULT: 0 Zigbee Alliance ./sdfObject/sdfobject-level.sdf.json
DEFAULT: [] Zigbee Alliance ./sdfObject/sdfobject-level.sdf.json
DEFAULT: 0 Zigbee Alliance ./sdfObject/sdfobject-onoff.sdf.json
DEFAULT: 0 Zigbee Alliance ./sdfObject/sdfobject-onoff.sdf.json

Maybe we don’t want to lump instantiation parameters like this in the general override mechanism?

It is also a bit unclear to me what “default” actually means; the spec is a bit terse here, only saying “specifies the default value for initialization”.  Here we are again, “initialization”!

All the “default” qualities are on named sdfProperties; as these are essentially instance variables of the containing sdfObject, the analogy to “initialization” actually does make sense.  It is less clear what the default quality would mean for, say, sdfOutputData, or, worse, nested in compound data types or choices buried in dataqualities.

Grüße, Carsten


> On 2021-07-19, at 18:39, Carsten Bormann <cabo@tzi.org> wrote:
> 
> Today, we scheduled the next daily meeting for
> 
> https://codimd.ietf.org/hackathon-2021-t2trg-111-tuesday
> start time: 2021-07-20 14:00:00 UTC max duration: 60
> (We needed 45 min today.)
> 
> https://www.timeanddate.com/worldclock/fixedtime.html?msg=IETF111+hackathon+T2TRG-WISHI-ASDF-CoRE&iso=20210720T14&ah=1
> 
> https://meetings.conf.meetecho.com/interim/?short=d49f0f3b-52d5-4a30-8a75-e2f2effec8b0
> 
> Notes from today’s meeting are at https://codimd.ietf.org/hackathon-2021-t2trg-111-monday
> 
> 
> Grüße, Carsten
> 
> 
>> On 2021-07-18, at 21:26, Carsten Bormann <cabo@tzi.org> wrote:
>> 
>> For the IETF 111 hackathon, we are planning some activities that relate to T2TRG (and its WISHI activity), ASDF, and CoRE.  We are cognizant that many will be on vacation that week, but we still want to get some work done ahead of the IETF111 happening the following week.
>> 
>> We’ll run a kickoff at 1400Z on this Monday (today/tomorrow depending on your timezone: https://www.timeanddate.com/worldclock/fixedtime.html?msg=IETF111+hackathon+T2TRG-WISHI-ASDF-CoRE&iso=20210719T14&ah=1 ).
>> 
>> The main purpose is to see who is planning to do what and to set up collaboration points.
>> We also want to agree on a time (approximately, but not necessarily exactly 1400Z again) where we have a day sync call Tue to Fri; we’ll announce this here, so if Monday doesn’t work for you, you can chime in later.
>> 
>> You may want to pre-fill below’s CodiMD with any additional information that might be useful for the kickoff (or during the week).  You may also want to register for the hackathon at https://registration.ietf.org/111/new/hackathon/ .
>> 
>> Grüße, Carsten
>> 
>> 
>> # T2TRG/WISHI/ASDF/CoRE hackathon @ IETF111
>> 
>> Kickoff: Monday, 2021-07-19, 1400Z (60 min max)
>> 
>> Notes: https://codimd.ietf.org/hackathon-2021-t2trg-111-monday
>> 
>> Meetecho: https://meetings.conf.meetecho.com/interim/?short=5903310f-3a8d-4f3a-93c4-5dbb1c9cb768
>> 
>> Note that we will use meetecho for this meeting.
>> Please check whether your datatracker account works; if it doesn’t, reset its password or get a new one at:
>> 
>> https://datatracker.ietf.org/accounts/create/
>> 
>> (It is worth doing this ahead of time as there may need to be an interaction with the IETF secretariat.)
>> 
>> ## Areas of work
>> 
>> ### SDF related
>> 
>> * tools (e.g., sdf compact)
>> * definition(s) of equivalence
>> * converters (translations) from SDF to X, from X to SDF
>>   * YANG (sdf-yang-converter.org) (*)
>>   * WoT (sdf-wot-converter.org)
>>   * IPSO/LwM2M (https://github.com/EricssonResearch/ipso-odm)
>>   * OCF?
>>   * Azure DTDL (*)
>>       * curl --data-urlencode sdf@test-sdf-file.sdf.json http://wishi.nomadiclab.com:8083/odm2dtdl
>> * CI pipeline to keep translations up to date?
>> 
>> ### CoRE related
>> 
>> * CoRE resource directory? (*)
>> * CoRAL, particularly -href (CRIs) (*)
>> 
>> ### Others?
>> 
>> _______________________________________________
>> T2TRG mailing list
>> T2TRG@irtf.org
>> https://www.irtf.org/mailman/listinfo/t2trg
>