Re: [core] SenML and link-format in RDF (was: Re: Designs to resolve streaming issues in SenML)

Michael Koster <michaeljohnkoster@gmail.com> Thu, 11 February 2016 17:37 UTC

Return-Path: <michaeljohnkoster@gmail.com>
X-Original-To: core@ietfa.amsl.com
Delivered-To: core@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id DB1221B3804 for <core@ietfa.amsl.com>; Thu, 11 Feb 2016 09:37:09 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.699
X-Spam-Level:
X-Spam-Status: No, score=-1.699 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, MIME_8BIT_HEADER=0.3, SPF_PASS=-0.001] autolearn=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 PZIDHjmtpp-2 for <core@ietfa.amsl.com>; Thu, 11 Feb 2016 09:37:08 -0800 (PST)
Received: from mail-pa0-x236.google.com (mail-pa0-x236.google.com [IPv6:2607:f8b0:400e:c03::236]) (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 60D4F1B37F9 for <core@ietf.org>; Thu, 11 Feb 2016 09:37:08 -0800 (PST)
Received: by mail-pa0-x236.google.com with SMTP id p5so1756218paw.1 for <core@ietf.org>; Thu, 11 Feb 2016 09:37:08 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=Mjup0wWs8dWl3EkHZ6MtS7aUmhvnZyvb+ARpNPdBY5U=; b=omJHC7zBRyx3E57yekKThGN5gwcLsR8Ocb15k/HKdh05CnEOKS3rLc2prInCurIbbX rwBxtT5mZgpNMhUlqkjcx5xTjPcMUA1S6dIEwLS3THHQoYeFqQE9evuixhgsp6Y5P1h3 1I63qbpu/rRh+4IfNtZpjCzs8FGXMzdUEx7WD4m68kDMwEVyUESzdvkNP8rPk/9DrHvz rPmFA6WCgem9c8YRG4YQ2k2C1H+S6xWoIsofu7mBXGcyCaP5Y/BigDGhYwl6U8SSdPfR VNDv/W1Ta5X443lf2EIMYL8LOTU+XCb/sgK7KpZZZYwOMOfXGnXKYODouRMxNJLwNwH8 wFhw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:message-id:references:to; bh=Mjup0wWs8dWl3EkHZ6MtS7aUmhvnZyvb+ARpNPdBY5U=; b=IKaXJsy4dGoIaG6Pzvg6T8HA/fMWZ4eAVWfetgVe5/yvxy2KuFbfAfatRePV2iWJVS 7iHuTpAHszuqXKp+r1v57UHG/y7eSLFXnA5iDb0q9JSRxH2PrSKIXzGFXW28tTWOOUew A0HpT47/i1vUUhfhtLStUgk0HyZxL1xfCvovG4ESw53dDUNJYp4C+M823MBxfkknAW/W 44yL+DB7LGMG6NmQw5wQErfxGluWCdYIXuYhnRx9kPHuZnr7Rox7g9l0pFjsa2u+0Bam q5v5QxmNCQQGvVScRZR46hS1LMgX44Pqz7nJeqKuOoT1LNphTRJGGJf7vOlNy5NBM0Bu HnTg==
X-Gm-Message-State: AG10YOR4Ew/8W/yzkyM8ryujo8vF+8X6aKD5dQLZDgMiCOKLjzknUpdabVPxq7ucm7l/ng==
X-Received: by 10.67.22.166 with SMTP id ht6mr68847500pad.9.1455212228048; Thu, 11 Feb 2016 09:37:08 -0800 (PST)
Received: from [10.0.0.21] (108-201-184-41.lightspeed.sntcca.sbcglobal.net. [108.201.184.41]) by smtp.gmail.com with ESMTPSA id 87sm7311757pfq.93.2016.02.11.09.37.06 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 11 Feb 2016 09:37:07 -0800 (PST)
Content-Type: multipart/alternative; boundary="Apple-Mail=_A66A7100-5FF1-4018-A691-9262B3F2C08D"
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\))
From: Michael Koster <michaeljohnkoster@gmail.com>
In-Reply-To: <786991F1-1E38-4337-BCB8-C6D6D0E6092C@gmail.com>
Date: Thu, 11 Feb 2016 09:37:05 -0800
Message-Id: <B170A8AB-67F9-4A0F-AF14-04C7174CAF2E@gmail.com>
References: <20160118110500.GA7789@hephaistos.amsuess.com> <1B2E05E6-1FA3-4AC4-95ED-E6045B6F94E0@gmail.com> <20160118165811.GF7454@hephaistos.amsuess.com> <EDC3E5A7-1577-4E03-8376-8766A1A65064@gmail.com> <20160126120126.GD7789@hephaistos.amsuess.com> <E9C89242-C1D4-4426-B018-566FA2FC35BC@gmail.com> <20160126164036.GE7789@hephaistos.amsuess.com> <786991F1-1E38-4337-BCB8-C6D6D0E6092C@gmail.com>
To: Christian Amsüss <c.amsuess@energyharvesting.at>
X-Mailer: Apple Mail (2.2104)
Archived-At: <http://mailarchive.ietf.org/arch/msg/core/bjBb4eieIp60QEjCa1YPfPg3HGg>
Cc: "Cullen Jennings (fluffy)" <fluffy@cisco.com>, core <core@ietf.org>
Subject: Re: [core] SenML and link-format in RDF (was: Re: Designs to resolve streaming issues in SenML)
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.15
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, 11 Feb 2016 17:37:10 -0000

Picking up the original thread again, I  am building a reference implementation [1]  of collections that uses the representation format below [2].

It turns out that rather than simply extending the existing senml or link-format content formats, the better approach may be to define a new content-format to represent the collection that resues the identifiers from senml and link-format. In this way, I can provide a map format for the collection that is optimized for collection processing by the tools, while supplying standard link-format and senml content formats for hypertext applications.

To this end, I would propose to define a new content-format for a "hypermedia sensor markup language" which enables representation of a hypermedia construction that includes both senml and link-format resources. Resources that support application/hsml ( +json, cbor, xml, exi) should also be able to return representations of application/senml and application/link-format for use by general hypermedia applications. The representation of the Hypermedia Collection would be defined this way in the CoRE Interfaces draft.

This will decouple changes in senml from the collection model and content format but keep the identifier mapping to the common link and data formats so tools can easily construct correct representations in multiple formats, indluding senml optimized for efficient processing.

Does this sound like a good course of action?

Best regards,

Michael

[1] https://github.com/connectIOT/HypermediaDemo <https://github.com/connectIOT/HypermediaDemo>

[2]
[
  {
    "bn": "/light/colorHS/currentcolorh/",
    "e": [
      {
        "n": "",
        "v": 0
      }
    ],
    "l": [
      {
        "href": "",
        "rel": [
          "self",
          "item"
        ],
        "rt": [
          "property",
          "currentcolorh"
        ]
      }
    ]
  }
]