Re: [core] Link target attributes in CoRAL (was: Review of CoRAL)

Christian M. Amsüss <christian@amsuess.com> Thu, 08 November 2018 14:55 UTC

Return-Path: <christian@amsuess.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 CCC93128BCC for <core@ietfa.amsl.com>; Thu, 8 Nov 2018 06:55:24 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.921
X-Spam-Level:
X-Spam-Status: No, score=-0.921 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FROM_EXCESS_BASE64=0.979] autolearn=no 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 lYg6d7nRZ9AN for <core@ietfa.amsl.com>; Thu, 8 Nov 2018 06:55:22 -0800 (PST)
Received: from prometheus.amsuess.com (prometheus.amsuess.com [5.9.147.112]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id AE82F12872C for <core@ietf.org>; Thu, 8 Nov 2018 06:55:22 -0800 (PST)
Received: from poseidon-mailhub.amsuess.com (095129206250.cust.akis.net [95.129.206.250]) by prometheus.amsuess.com (Postfix) with ESMTPS id BB00D41F32; Thu, 8 Nov 2018 15:55:20 +0100 (CET)
Received: from poseidon-mailbox.amsuess.com (hermes.amsuess.com [10.13.13.254]) by poseidon-mailhub.amsuess.com (Postfix) with ESMTP id 028C26B; Thu, 8 Nov 2018 15:55:20 +0100 (CET)
Received: from hephaistos.amsuess.com (hephaistos.amsuess.com [IPv6:2a02:b18:c13b:8010::71b]) by poseidon-mailbox.amsuess.com (Postfix) with ESMTPSA id AFE682E; Thu, 8 Nov 2018 15:55:19 +0100 (CET)
Received: (nullmailer pid 21192 invoked by uid 1000); Thu, 08 Nov 2018 14:55:19 -0000
Date: Thu, 08 Nov 2018 15:55:19 +0100
From: "Christian M. Amsüss" <christian@amsuess.com>
To: Klaus Hartke <hartke@projectcool.de>
Cc: "core@ietf.org WG" <core@ietf.org>
Message-ID: <20181108145518.GC13498@hephaistos.amsuess.com>
References: <CAAzbHvYk9dUvGmYsX1U=0qcU7330bYO6YjGAa51gFKMGGoy-Dg@mail.gmail.com> <20181105123604.GA9680@hephaistos.amsuess.com> <CAAzbHvZ=4GaPH6FXj4ZuOzMLrQbWUo-Oc6CUmiA4O2b3PhK-rA@mail.gmail.com> <CAAzbHvaSDzc62-dY-ALQxW6bGKS7avCv795-DUMh0PVRF+yaqw@mail.gmail.com> <20181108113103.GB13498@hephaistos.amsuess.com> <CAAzbHvYVUFEgqUNvOLfwNDZ34LJvFwn5+MrOC9_R69hTbkT-bw@mail.gmail.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="mvpLiMfbWzRoNl4x"
Content-Disposition: inline
In-Reply-To: <CAAzbHvYVUFEgqUNvOLfwNDZ34LJvFwn5+MrOC9_R69hTbkT-bw@mail.gmail.com>
User-Agent: Mutt/1.10.1 (2018-07-13)
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/MgYabqyKlIbVv62pXVdO2CfF2ys>
Subject: Re: [core] Link target attributes in CoRAL (was: Review of CoRAL)
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: Thu, 08 Nov 2018 14:55:25 -0000

On Thu, Nov 08, 2018 at 03:28:48PM +0100, Klaus Hartke wrote:
> I would assume that ?anchor=coap://x/&rel=attr:foobar selects all
> links with the link context <coap://x/> and link relation type
> <http://TBD2/foobar> (using attr = <http://TBD2/>).

Yes, that's what it means. It's just that once we consider expressing
URI-string-valued target attributes as CoRAL IRIs, as in

    hosts </sensor> {
      attr:sz "1024",
      attr:ol <coap+tcp://.../sensor>
    }

then the line between attributes and relations gets blurred (Is it a
link? Is it an attribute? Why was it not expressed as a link in the
first place?) to the point that it affects query filtering[1]. Two
reason why this still does not make me say "nah, let's have them as
string literals then" is that a) I'm an RDF afficionado, and b) whoever
does filtering already needs to know the semantics of the field, or
would fail to make ?rt=x match ;rt="x y".

> My idea would be to use CoRAL to express this:
> 
>     FETCH /.well-known/core

A CoRAL fetch format ... and I was afraid suggesting this would be way
over the top :-). I'm looking forward to this (hopefully in a shorter
time frame than SenML-adoption-to-SenmL-fetch), but right now it's
probably too early for it.

Christian


[1] I'm speaking of .well-known/core query filtering and not of RD
  lookup filtering because the latter is an extension of the former.

-- 
To use raw power is to make yourself infinitely vulnerable to greater powers.
  -- Bene Gesserit axiom