Re: [core] SenML and link-format in RDF (was: Re: Designs to resolve streaming issues in SenML)
Michael Koster <michaeljohnkoster@gmail.com> Tue, 26 January 2016 20:22 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 220BC1B2CCB for <core@ietfa.amsl.com>; Tue, 26 Jan 2016 12:22:04 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.7
X-Spam-Level:
X-Spam-Status: No, score=-1.7 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, 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 IOrIbzpaUkVR for <core@ietfa.amsl.com>; Tue, 26 Jan 2016 12:22:02 -0800 (PST)
Received: from mail-pf0-x232.google.com (mail-pf0-x232.google.com [IPv6:2607:f8b0:400e:c00::232]) (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 6592F1B2CD8 for <core@ietf.org>; Tue, 26 Jan 2016 12:22:02 -0800 (PST)
Received: by mail-pf0-x232.google.com with SMTP id e65so104698722pfe.0 for <core@ietf.org>; Tue, 26 Jan 2016 12:22:02 -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 :content-transfer-encoding:message-id:references:to; bh=vgS163z+3/pGCW9t5czCA4t1HNu9C8x6+DLpVKVYIhs=; b=T7HmuLq7A+lQKCxBGMHakZgECm8hFXJMXUR53AdBxbXmoxkCi4/MlsTbrCXw3HA7Bi vlZKM/m8s2Oo+nVI0bbYRhHt/zCbPk7tzXRtW7mWgn8ZU9owXVwtlHc76oyKOIA+Vnzt eERzXwj4yMwh+sx3fEYIrAXqnyQiD89MzH5LX/C1Ej7u/owIE/57kO5xxUmmrFlxv9no GPspl/ggNRy2udvq4tXc411ushFQhOEdQj188J5q3/on6zlXwsLFbdT+o5Dd7xuLUBN7 DQeD3Fl21Jpz/RbW6uzZ7qIq61r2HECg4kxb2ydj9BYTWUkDSQdN3a5rQYdzZN5CUvUj Zo3g==
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:content-transfer-encoding:message-id:references :to; bh=vgS163z+3/pGCW9t5czCA4t1HNu9C8x6+DLpVKVYIhs=; b=fMJpt4xKJ3QnF6X/SWlLSilkVxvy07xvS8nhWBuTu7A8/VB0mRAP0UvLdXiRNlDweu R6dsw76aZvgbsWyu/VyNpSrdNw8Q2ZpaI6N/IfKRD1pUF4PTQryCyNOke9vbhIt2Hcgc RZOy+qDkz0M09esFTfXlnL2gLJUGB9ZxKcMeJx3qO4Okrv9BCARONRrajd8g2NTuUyIa ctzRIAyYT9av1+J5syYtB+n3ntnM9uA7vOtqC3xVw26+J4HGwk95EgZMy/CAczswIKOQ yu9VDnatYdNVY3IxnmAM/llZZMO/dT3A9ZvrNJ/rL+V76KeDvYcYKs0A8l2htcyDRcbu T8fQ==
X-Gm-Message-State: AG10YOSA93DgVea/PYM2WteOpz0sglu/5y/PR0/jSzFA8WF+ZTBqimqblzu50HF4pphCUQ==
X-Received: by 10.98.74.9 with SMTP id x9mr36847503pfa.14.1453839722022; Tue, 26 Jan 2016 12:22:02 -0800 (PST)
Received: from [172.27.14.129] (58-97-125-4.static.asianet.co.th. [58.97.125.4]) by smtp.gmail.com with ESMTPSA id g87sm3765342pfj.1.2016.01.26.12.22.00 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 26 Jan 2016 12:22:01 -0800 (PST)
Content-Type: text/plain; charset="iso-8859-1"
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\))
From: Michael Koster <michaeljohnkoster@gmail.com>
In-Reply-To: <20160126164036.GE7789@hephaistos.amsuess.com>
Date: Wed, 27 Jan 2016 03:21:58 +0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <786991F1-1E38-4337-BCB8-C6D6D0E6092C@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>
To: Christian Amsüss <c.amsuess@energyharvesting.at>
X-Mailer: Apple Mail (2.2104)
Archived-At: <http://mailarchive.ietf.org/arch/msg/core/zeepWol42x4wceuzWBb5y-NUcAg>
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: Tue, 26 Jan 2016 20:22:04 -0000
> On Jan 26, 2016, at 11:40 PM, Christian Amsüss <c.amsuess@energyharvesting.at> wrote: > > Hi Michael, > > On Tue, Jan 26, 2016 at 08:28:31PM +0700, Michael Koster wrote: >> { >> "@context" : "http://thingschema.org", >> "bn":"/3303/1/", >> "i":[ >> {"n":"5700","v":"31.3","u":"Cel"}, ... >> ], >> "l":[ >> {"href":"","rel":"self","rt":"temperature","u":"Cel"}, >> ... > > thanks for the example, that's a good starting point to work with. > >> And here are semantic triples generated from the SenML, having used >> http://json-ld.org/playground/ <http://json-ld.org/playground/> to >> process the elements into RDF subjects, properties, and values and >> serialize into N-quads. >> >> _:b0 <http://thingschema.org/schema#hasItem> _:b1 . >> _:b0 <http://thingschema.org/schema#baseName> "/3303/1/" . >> _:b1 <http://thingschema.org/schema#resourceName> "5700" . >> _:b1 <http://thingschema.org/schema#unitsOfMeasure> "Cel" . >> _:b1 <http://thingschema.org/schema#value> "31.3" . >> _:b10 <http://thingschema.org/schema#href> "5700" . >> _:b10 <http://thingschema.org/schema#resourceType> "currentValue" . >> _:b10 <http://thingschema.org/schema#unitsOfMeasure> "Cel" . > > These are quads that contain the information of the SenML, but not > really in an RDFish way. > > RDF is all about using URIs to describe things. What I'd expect of such > a conversion when done right would be N-triples like > > _:b1 <http://thingschema.org/schema#about> </3303/1/5700> . > _:b1 <http://thingschema.org/schema#value> "31.3"^^xsd:float . > _:b1 <http://thingschema.org/schema#unitsOfMeasure> "Cel" . > </3303/1/5700> <http://thingschema.org/schema#resourceType> "currentValue" . > </3303/1/5700> <http://thingschema.org/schema#unitsOfMeasure> "Cel" . > Hmm so I can't know from the schema that baseName and href are concatenated to form /3303/1/5700? That seems to be all that's missing. > where statements are made about actual resources. _b:1 would still be a > blank node, because it reflects a single description of the resource's > state (were it a time series, the necessity for that would be more > obvious). A converter might want to even emit a statement like > > _:b1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://thingschema.org/schema#Item> . > > to make that clear. > > The output produced by the thingschema.org still reads a little like a > combination of text fragments; to compare it with relational databases, > it looks to me as if there were no foreign keys in use yet, and > everything were stored in text fields. The output is RDF, but it can't > effectively be used as RDF yet. > >> I think this result is quite useful to be able to use the information >> in the context of fully qualified references and nodes of triples that >> describe the original SenML. > > I do not understand what you mean by this, could you elaborate? AFAICT, > were I fed the N-quad output from above, I couldn't even establish any > relationship between the "/3303/1/" URI fragment and the "5700", let > alone use that in a query about </3303/1/5700>. > > > There are things brewing at W3C's Web of Things initiative[1], there has > for some time been work on semantically connected IoT devices[2], and I > am confident that RDF metadata are the way to go. > > But both with a SenML that looks anything like the drafts so far and > with draft-ietf-core-links-json, I think that JSON-LD does not have what > it takes to produce the meaning of the respective JSON representations > for the semantic web. > > I've long ago asked on this list about a canonical RDF representation of > a link-format resource. Back then, there was nothing, and I had only a > rough idea of what I'd need as well. I'd be all in for going ahead here > and sketching up what a generic link-format document would look like in > an RDF representation, and possibly SenML as well; that should be a > separate discussion, though, and not deeply interfere with the SenML > process itself. I could sketch up some parts that've been brewing with > me and are partially implemented as well -- would that be suitable for > this list? > > > Best regards > Christian > > [1] http://www.w3.org/WoT/ > [2] https://iotdb.org/ > > -- > Christian Amsüss | Energy Harvesting Solutions GmbH > founder, system architect | headquarter: > mailto:c.amsuess@energyharvesting.at | Arbeitergasse 15, A-4400 Steyr > tel:+43-664-97-90-6-39 | http://www.energyharvesting.at/ > | ATU68476614
- Re: [core] Designs to resolve streaming issues in… Carsten Bormann
- [core] Designs to resolve streaming issues in Sen… Cullen Jennings (fluffy)
- Re: [core] Designs to resolve streaming issues in… Michael Koster
- Re: [core] Designs to resolve streaming issues in… Michael Koster
- Re: [core] Designs to resolve streaming issues in… Christian Amsüss
- Re: [core] Designs to resolve streaming issues in… Carsten Bormann
- Re: [core] Designs to resolve streaming issues in… Christian Amsüss
- Re: [core] Designs to resolve streaming issues in… Michael Koster
- Re: [core] Designs to resolve streaming issues in… Carsten Bormann
- Re: [core] Designs to resolve streaming issues in… Michael Koster
- Re: [core] Designs to resolve streaming issues in… Michael Koster
- Re: [core] Designs to resolve streaming issues in… Michael Koster
- Re: [core] Designs to resolve streaming issues in… Carsten Bormann
- Re: [core] Designs to resolve streaming issues in… Michael Koster
- Re: [core] Designs to resolve streaming issues in… Michael Koster
- Re: [core] Designs to resolve streaming issues in… Michael Koster
- Re: [core] Designs to resolve streaming issues in… Christian Amsüss
- Re: [core] Designs to resolve streaming issues in… Michael Koster
- Re: [core] Designs to resolve streaming issues in… Michael Koster
- Re: [core] Designs to resolve streaming issues in… Christian Amsüss
- Re: [core] Designs to resolve streaming issues in… Christian Amsüss
- Re: [core] Designs to resolve streaming issues in… Michael Koster
- Re: [core] Designs to resolve streaming issues in… Cullen Jennings (fluffy)
- Re: [core] Designs to resolve streaming issues in… Cullen Jennings (fluffy)
- [core] privacy issues (was: Re: Designs to resolv… Stephen Farrell
- Re: [core] Designs to resolve streaming issues in… Christian Amsüss
- Re: [core] Designs to resolve streaming issues in… Carsten Bormann
- Re: [core] Designs to resolve streaming issues in… Christian Amsüss
- Re: [core] Designs to resolve streaming issues in… Michael Koster
- [core] SenML and link-format in RDF (was: Re: Des… Christian Amsüss
- Re: [core] SenML and link-format in RDF (was: Re:… Michael Koster
- Re: [core] SenML and link-format in RDF (was: Re:… Christian Amsüss
- Re: [core] SenML and link-format in RDF (was: Re:… Michael Koster
- Re: [core] SenML and link-format in RDF (was: Re:… Christian Amsüss
- Re: [core] SenML and link-format in RDF (was: Re:… Michael Koster
- Re: [core] SenML and link-format in RDF (was: Re:… Michael Koster
- Re: [core] SenML and link-format in RDF Carsten Bormann
- Re: [core] SenML and link-format in RDF (was: Re:… Michael Koster