publishing lo(d)d: linked open (dynamic) data for smart sensing and measuring environments

21
Publishing LO(D)D: Linked Open (Dynamic) Data for Smart sensing and Measuring environments Fulvio Corno, Faisal Razzak Politecnico di Torino Dip. Automatica e Informatica Torino, Italy http://elite.polito.it The 3rd International Conference on Ambient Systems, Networks and Technologies August 27-29, 2012, Niagara Falls, Ontario, Canada

Upload: fulvio-corno

Post on 01-Nov-2014

1.010 views

Category:

Technology


1 download

DESCRIPTION

Presentation given at the 3rd International Conference on Ambient Systems, Networks and Technologies August 27-29, 2012, Niagara Falls, Ontario, Canada. The paper is available on the PORTO open access repository: http://porto.polito.it/2496718/

TRANSCRIPT

Page 1: Publishing LO(D)D: Linked Open (Dynamic) Data for Smart Sensing and Measuring Environments

Publishing LO(D)D:

Linked Open (Dynamic) Data for Smart

sensing and Measuring environments

Fulvio Corno, Faisal Razzak

Politecnico di Torino Dip. Automatica e Informatica

Torino, Italy

http://elite.polito.it

The 3rd International Conference on

Ambient Systems, Networks and Technologies

August 27-29, 2012, Niagara Falls, Ontario, Canada

Page 2: Publishing LO(D)D: Linked Open (Dynamic) Data for Smart Sensing and Measuring Environments

Goals

Enable sensor networks to publish their data in a

standard way

Enable distributed applications to consume sensor data

from different sources

Enable data publication, consumption, computation, re-

publication, etc with minimal effort

Extend the Linked Open Data cloud with time-varying

(sensor) data streams

LO(D)D ANT’2012, Niagara Falls, Canada 2

Page 3: Publishing LO(D)D: Linked Open (Dynamic) Data for Smart Sensing and Measuring Environments

Outline

Context and Motivation

Proposed Architecture

Proposed solutions

Experimental results

Conclusions

LO(D)D ANT’2012, Niagara Falls, Canada 3

Page 4: Publishing LO(D)D: Linked Open (Dynamic) Data for Smart Sensing and Measuring Environments

Context

LO(D)D ANT’2012, Niagara Falls, Canada 4

Smart Sensing and Measuring Environments

Smart Homes Smart Factories

Smart Grid

Sensor and

Actuator Networks

Smart Appliances

Affordable and efficient sensors

Environment monitoring Social mobile applications

Page 5: Publishing LO(D)D: Linked Open (Dynamic) Data for Smart Sensing and Measuring Environments

Context

LO(D)D ANT’2012, Niagara Falls, Canada 5

Smart Sensing and Measuring Environments

Smart Appliances

Affordable and efficient sensors

energy (active,

reactive, reverse,

kVAr, ...)

acceleration

compass

GPS

proximity

microphone

camera

BT Scan

acceleration

compass

air pressure

temperature

light

Page 6: Publishing LO(D)D: Linked Open (Dynamic) Data for Smart Sensing and Measuring Environments

Context

LO(D)D ANT’2012, Niagara Falls, Canada 6

Affordable and efficient sensors

Smart Sensing and Measuring Environments

Smart Appliances

Motion

Proximity

Smoke Gyroscope

Pressure RFID

2D codes

Page 7: Publishing LO(D)D: Linked Open (Dynamic) Data for Smart Sensing and Measuring Environments

Motivation

Applications need to

access information from

multiple environments

Standard way to publish

and consume information

About accessible

environments

About available applicances,

sensors and their

characteristics

About the actual data

measured by sensors

LO(D)D ANT’2012, Niagara Falls, Canada 7

Environ

ment

Applian

ces

sensors

Environ

ment

Applian

ces

sensors

Environ

ment

Applian

ces

sensors

Application Application

Page 8: Publishing LO(D)D: Linked Open (Dynamic) Data for Smart Sensing and Measuring Environments

Approach

Applications need to

access information from

multiple environments

Standard way to publish

and consume information

About accessible

environments

About available applicances,

sensors and their

characteristics

About the actual data

measured by sensors

LO(D)D ANT’2012, Niagara Falls, Canada 8

Adopt Semantic Web

«Linked Open Data

(LOD)» approach

Static information:

Can be encoded in RDF

according to a public

Ontology

Dynamic information:

New approach to represent

streams of RDF events

Page 9: Publishing LO(D)D: Linked Open (Dynamic) Data for Smart Sensing and Measuring Environments

General LO(D)D Architecture

LO(D)D ANT’2012, Niagara Falls, Canada 9

Producer

Application

Smart

Environment Static

information

about sensor

streams

publishes

E

G F

monitors

Page 10: Publishing LO(D)D: Linked Open (Dynamic) Data for Smart Sensing and Measuring Environments

General LO(D)D Architecture

LO(D)D ANT’2012, Niagara Falls, Canada 10

Producer

Application

Smart

Environment Static

information

about sensor

streams

Sensor

data

channel

Sensor

data

channel

Sensor

data

channel

describes

updates

publishes

E

G

E

E

G

G

G

G

E

E

F

F

F

F

monitors

Page 11: Publishing LO(D)D: Linked Open (Dynamic) Data for Smart Sensing and Measuring Environments

General LO(D)D Architecture

LO(D)D ANT’2012, Niagara Falls, Canada 11

Producer

Application Consumer

Application

Smart

Environment

Consumer

Application

Static

information

about sensor

streams

Consumer

Application Sensor

data

channel

Sensor

data

channel

Sensor

data

channel

describes

updates

publishes

receives

subscribes

E

G

E

E

G

G

G

G G

G

E

E E

E

E

E

F

F

F

F F

monitors

Page 12: Publishing LO(D)D: Linked Open (Dynamic) Data for Smart Sensing and Measuring Environments

Proposed solutions

Open source libraries and API to enable

application to interact with LO(D)D data

RDF document with meta-data (PID)

Publisher information

List of channels, their source data, their

datatypes, and subscription URI/key

RDF «fragments» representing each event

Contains: event#, sensor id, timestamp, value,

unit of measure

Uses publish-subscribe pattern as

transport mechanism for distributing RDF

fragments

LO(D)D ANT’2012, Niagara Falls, Canada 12

Producer

Application Consumer

Application

Static

information

about sensor

streams

Sensor

data

channel

E

E

G F

Page 13: Publishing LO(D)D: Linked Open (Dynamic) Data for Smart Sensing and Measuring Environments

Publisher Information Document (PID)

According to lightweight «Publisher» ontology

Contains declarations of all channels handled by this

publisher – all needed static information

Gives information to subscribe to channels

Created by

publisher API

Published over

http

LO(D)D ANT’2012, Niagara Falls, Canada 13

<RDF:Description RDF:about="&Publisher;energymtr"> <publisher:Location RDF:datatype="&xsd;string"> Torino, Italia</publisher:Location> <publisher:subscribekey>sub-xxxxxx-42904d46dEEEEE </publisher:subscribekey> <publisher:channelName>Energy Meters </publisher:channelName> <RDF:type RDF:resource="&Publisher;Channel"/> </RDF:Description>

Page 14: Publishing LO(D)D: Linked Open (Dynamic) Data for Smart Sensing and Measuring Environments

Event data fragments

Indivudual data points encoded in RDF

Self-consistent information (e.g. Unit of measure)

Standard syntax and semantics

Application-independent representation

Compact

encodings

available

LO(D)D ANT’2012, Niagara Falls, Canada 14

<rdf:Description RDF:about = "&publisher;emergymtrChan1"> <publisher:MeterNumber RDF:datatype="&xsd;int"> 231 </publisher:MeterNumber> <publisher:Unit RDF:datatype="&xsd;string" > http://purl.oclc.org/NET/muo/ucum/unit/power-level/ bel-kilowatt</publisher:Unit> <publisher:hasTimeStamp RDF:datatype="&xsd;dateTime"> 2012-02-02T13:06:41.056Z </publisher:hasTimeStamp> <publisher:hasCurrentValue RDF:datatype ="&xsd;double"> 0.3 </publisher:hasCurrentValue> </RDF:Description>

Page 15: Publishing LO(D)D: Linked Open (Dynamic) Data for Smart Sensing and Measuring Environments

Cloud based Transport mechanism

Provides the updates to subscribers whenever publishers

update data

New RDF fragments are sent to the cloud service

Maintains list of subscribers

Handles logic to provide transport from Publisher to

many Subscriber in real time

It makes the Publisher a “light-weight component”

Publisher is independent from the number of connected

subscribers

LO(D)D ANT’2012, Niagara Falls, Canada 15

pubsubhubbub ...and others

Page 16: Publishing LO(D)D: Linked Open (Dynamic) Data for Smart Sensing and Measuring Environments

Publisher and Consumer APIs

Publisher Library

Creates PID file an offers it on http

Creates channels onto cloud service

Sends updates to channel, encoding it in RDF

Consumer Library

Parses PID file and provides channel information

Subscribes to one or more channels

Notifies application whenr new data is available, decoding it

from RDF

Same application may be producer and consumer at the

same time

Applications need not manage RDF explicitly LO(D)D ANT’2012, Niagara Falls, Canada 16

Page 17: Publishing LO(D)D: Linked Open (Dynamic) Data for Smart Sensing and Measuring Environments

P

Building Infrastructure

Politecnico di Torino poliEnergy

PID

Publishes

• 126 Electrical

Meters.

• Take reading

every 15 minutes

Preliminary Experiment

LO(D)D ANT’2012, Niagara Falls, Canada 17

Page 18: Publishing LO(D)D: Linked Open (Dynamic) Data for Smart Sensing and Measuring Environments

P

Building Infrastructure

Politecnico di Torino

C

P

poliEnergy

PID

poliEnergy

Aggregator

PID

Publishes

• 126 Electrical

Meters.

• Take reading

every 15 minutes

• Aggregates reading

into 3 ranges.

• Publishes using 3

channels

Preliminary Experiment

LO(D)D ANT’2012, Niagara Falls, Canada 18

Page 19: Publishing LO(D)D: Linked Open (Dynamic) Data for Smart Sensing and Measuring Environments

P

Building Infrastructure

Politecnico di Torino

C

P

C

poliEnergy

PID

poliEnergy

Aggregator

PID

Publishes

• 126 Electrical

Meters.

• Take reading

every 15 minutes

• Aggregates reading

into 3 ranges.

• Publishes using 3

channels

Preliminary Experiment

LO(D)D ANT’2012, Niagara Falls, Canada 19

Page 20: Publishing LO(D)D: Linked Open (Dynamic) Data for Smart Sensing and Measuring Environments

Conclusions

Open applications with

open data

Exploiting existing

standards (RDF and

pub/sub)

Extensible to different

type of sensor data

Highly scalable

LO(D)D ANT’2012, Niagara Falls, Canada 20

http://elite.polito.it

[email protected]

[email protected]

Page 21: Publishing LO(D)D: Linked Open (Dynamic) Data for Smart Sensing and Measuring Environments

LO(D)D ANT’2012, Niagara Falls, Canada 21