W3C home > Mailing lists > Public > public-wot-wg@w3.org > September 2017

Re: Decoupling between Link and its mediatype, and inputData/outputData

From: Dave Raggett <dsr@w3.org>
Date: Fri, 22 Sep 2017 18:12:27 +0100
Message-Id: <BE9DA1D0-821A-46FA-A7A7-1060721828B3@w3.org>
Cc: public-wot-wg@w3.org
To: Maxime Lefrançois <maxime.lefrancois@emse.fr>

> On 22 Sep 2017, at 14:11, Maxime Lefrançois <maxime.lefrancois@emse.fr> wrote:
> Dear all, 
> The decoupling between Link and its mediatype, and inputData/outputData, makes me having some trouble trying to model the following situation:
> Suppose a device exposes the same information in xml or json, using content-negotiation, at <> 
> - the xml version has a canonical URL <> (see also Content-Location)
> - the json version has a canonical URL <> 
> I'd like to model this situation with a single device, a single td:Property, three td:Link, and only two td:DataSchema objects.
> How would you suggest to manage this ?

I don’t full understand the question.

The object model for the property should be the same regardless of whether the interaction model is described in JSON, JSON-LD or RDF/XML, e.g. the property could be a integer.

Perhaps you are talking about the case where the messaging protocol for property updates supports multiple data formats. The communications metadata needs to clarify which protocols and data formats can be used.  

I see two broad choices:

1. The communications metadata references a standard and provides any additional parameters as needed for using that standard. This assumes drivers that embed knowledge about these standards, e.g. a driver for Apple HomeKit, a driver for Bluetooth, or a driver for OCF.

2. The communications metadata provides a declarative means to express a broad range of possible approaches using well known protocols.  This results in much more complicated thing descriptions, but the premise is that a complex generic driver is worth the extra complexity compared to needing drivers specialised to particular standards. Given the wide variety of possible ways of laying standards on top of core protocols, we are unlikely to provide a fully general solution.

Making our assumptions explicit would increase our chances of success.

Dave Raggett <dsr@w3.org> http://www.w3.org/People/Raggett
W3C champion for the Web of things & W3C Data Activity Lead

Received on Friday, 22 September 2017 17:12:31 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:27:48 UTC