23
Simon Mayer [[email protected]] Distributed Systems Group, ETH Zurich Service Integration – A Web of Things Perspective W3C Workshop on Data and Services Integration [Bedford / MA, October 2011]

Service Integration - A Web of Things Perspective

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Service Integration - A Web of Things Perspective

Simon Mayer [[email protected]] Distributed Systems Group, ETH Zurich

Service Integration – A Web of Things Perspective W3C Workshop on Data and Services Integration [Bedford / MA, October 2011]

Page 2: Service Integration - A Web of Things Perspective

2 W3C Workshop on Data and Services Integration / Bedford, MA

Thursday, 20.10.2011

The Web of Things: Quick rundown

+ Internet Connection* + Embedded Web server

+ Resource-Oriented Modelling (REST)

* Hui, J.W., and Culler, D.E.: IP is dead, long live IP for wireless sensor networks. (2008)

Page 3: Service Integration - A Web of Things Perspective

3 W3C Workshop on Data and Services Integration / Bedford, MA

Thursday, 20.10.2011

Representational State Transfer (REST)

Addressable, linked resources [http://vs.inf.ethz.ch/wot/sunspots/spot1/sensors/temperature]

Defined set of operations [PUT «true» /sunspots/spot1/actuators/leds/led1/switch]

Representations & Content Negotiation [HTML for humans, JSON for machines,…]

Fielding, R.T.: Architectural Styles and the Design of Network-based Software Architectures

Richardson, L., and Ruby, S.: RESTful Web Services

Page 4: Service Integration - A Web of Things Perspective

The Web of Things: REST benefits

Great for open, interoperable APIs Greatly facilitates building of physical mashups

Web features for free It scales! Caching, security mechanisms Bookmarking your devices and their functionality

Seems to facilitate application development

People are used to the Web and its resources and links!

4 ICiS Physical Computing Workshop [Park City, July 2011] Wednesday, 20th July 2011

[http://derekskeba.com]

Page 5: Service Integration - A Web of Things Perspective

The Web of Things: REST benefits

Great for open, interoperable APIs Greatly facilitates building of physical mashups

Web features for free It scales! Caching, security mechanisms Bookmarking your devices and their functionality

Seems to facilitate application development

People are used to the Web and its resources and links!

5 ICiS Physical Computing Workshop [Park City, July 2011] Wednesday, 20th July 2011

[http://derekskeba.com]

Page 6: Service Integration - A Web of Things Perspective

6 W3C Workshop on Data and Services Integration / Bedford, MA

Thursday, 20.10.2011

The Web of Things: RESTful Sun SPOTs

[http://www.sunspotworld.com] Demo

Page 7: Service Integration - A Web of Things Perspective

Next step in Web-based smart things environments: Physical mashups

7 W3C Workshop on Data and Services Integration / Bedford, MA

Thursday, 20.10.2011

Page 8: Service Integration - A Web of Things Perspective

Service Discovery: Smarter Things?

8 W3C Workshop on Data and Services Integration / Bedford, MA Thursday, 20.10.2011

Adding semantics for service discovery RDF, Microformats, Microdata

Microdata: www.schema.org, data-vocabulary.org

Make things just smart enough to know what they can (basically) do… Syntactic level (e.g. data types) Semantic level?

Goal: Support users in mashing up services in smart things ecosystems!

...and tell others!

Page 9: Service Integration - A Web of Things Perspective

Now...

3 Applications in need of smart things data/services

integration...

And how we solved the problem for each of them... 9 W3C Workshop on Data and Services Integration / Bedford, MA

Thursday, 20.10.2011

InterWoTions

Page 10: Service Integration - A Web of Things Perspective

The Friends and Things Project

10 W3C Workshop on Data and Services Integration / Bedford, MA Thursday, 20.10.2011

Sharing of physical and digital artifacts based on social networks

Guinard, D., Fischer, M., Trifa, V.,: Sharing Using Social Networks in a Composable Web of Things

Page 11: Service Integration - A Web of Things Perspective

The Friends and Things Project

11 W3C Workshop on Data and Services Integration / Bedford, MA Thursday, 20.10.2011

@home Sharing your energy consumption Encouraging energy savings… @work Laboratory automation “You may monitor my mass spectrometer” @business Sharing the trace of tagged products RESTful EPCIS

Page 12: Service Integration - A Web of Things Perspective

Crawling the Web of Things

Using simple HTTP operations GET, HEAD, OPTIONS

Sufficient for Friends and Things Application!

12 W3C Workshop on Data and Services Integration / Bedford, MA Thursday, 20.10.2011

Demo

Page 13: Service Integration - A Web of Things Perspective

The InfraWoT Project

13 W3C Workshop on Data and Services Integration / Bedford, MA

Thursday, 20.10.2011

Management infrastructure for smart things Allows to find services offered by Web-enabled resources Globally, but with emphasis on nearby things!

Things have to be registered first! Calls for thing-embedded semantic information (name, type, services, location,…)

Trifa, V., Guinard, D., Mayer, S.: Leveraging the Web for a Distributed Location-aware Infrastructure for the Real World

Presenter
Presentation Notes
Basically: Why does the WoT want Service Integration?
Page 14: Service Integration - A Web of Things Perspective

Composite Microformats

Idea: Combine multiple Microformats to annotate resources hProduct: Product information hReview: Smart Thing Reviews Geo: Location hRESTS: Service descriptions

label, data format, REST method, output

Worked well for searching for resources

14 W3C Workshop on Data and Services Integration / Bedford, MA Thursday, 20.10.2011

Hong, S.: Mobile Discovery in a Web of Things. Master’s Thesis.

Demo

Page 15: Service Integration - A Web of Things Perspective

The InterWoTions Project

Model-based user interface generation for smart things

Requirement: User-friendlyness enable any developer to annotate smart things... ...without requiring prior training!

15 W3C Workshop on Data and Services Integration / Bedford, MA Thursday, 20.10.2011

Mayer, S., Tschofen, A.: Composable Interaction Descriptions for Smart Things. Submitted.

InterWoTions

Page 16: Service Integration - A Web of Things Perspective

Microdata

16 W3C Workshop on Data and Services Integration / Bedford, MA Thursday, 20.10.2011

InterWoTions

Human- and machine-readable volume controller interaction markup.

Demo

Page 17: Service Integration - A Web of Things Perspective

Environments of smart things...

17 W3C Workshop on Data and Services Integration / Bedford, MA Thursday, 20.10.2011

Forecast: Rain

Temperature: 24˚C Please configure forecast data source

Your fridge currently consumes 45W

I’m located in Zurich!

Human-readable and understandable

Page 18: Service Integration - A Web of Things Perspective

...and multiple semantic annotation formats...

18 W3C Workshop on Data and Services Integration / Bedford, MA Thursday, 20.10.2011

Forecast: Rain

Temperature: 24˚C Please configure forecast data source

Your fridge currently consumes 45W

I’m located in Zurich!

{“data”:[{“weather-forecast”:”Rain”}],

“name”:”MyNabaztag”}

…<div itemscope><div itemprop=“tag=“>Illumination</div><div itemprop=“value”>150</div></div>…

...

<div class="geo">GEO: <span class="latitude">8.549902</span>,

<span class="longitude">-47.378088</span></span></div>

{“consumption”:”45”, “unit”:”Watts”,

“appliance”:”fridge”}

Page 19: Service Integration - A Web of Things Perspective

...and multiple semantic annotation formats...

19 W3C Workshop on Data and Services Integration / Bedford, MA Thursday, 20.10.2011

{“data”:[{“weather-forecast”:”Rain”}],

“name”:”MyNabaztag”}

…<div itemscope><div itemprop=“tag=“>Illumination</div><div itemprop=“value”>150</div></div>…

...

<div class="geo">GEO: <span class="latitude">8.549902</span>,

<span class="longitude">-47.378088</span></span></div>

Content type: application/json

Content type: text/html Annotations: Microdata

Content type: text/html Annotations: Microformats

Machine-readable

{“consumption”:”45”, “unit”:”Watts”,

“appliance”:”fridge”}

Content type: application/json

Page 20: Service Integration - A Web of Things Perspective

Given the representation of a (Web) resource, extract interesting information about that resource regardless of the annotation format used

Approach Discovery based on a runtime-dynamic set of Strategies (e.g. Microformats-, Microdata-Strategy,...)

20 W3C Workshop on Data and Services Integration / Bedford, MA Thursday, 20.10.2011

Mayer, S., Guinard, D.: An Extensible Discovery Service for Smart Things

Page 21: Service Integration - A Web of Things Perspective

The DiscoWoT Project

Apply every strategy to all information accessible about submitted data Can handle protected resources and resources behind firewalls

Great help for decoupling service providers and consumers

GET /analyze?thing.wot.org

21 W3C Workshop on Data and Services Integration / Bedford, MA Thursday, 20.10.2011

Information on thing.wot.org

Demo

Page 22: Service Integration - A Web of Things Perspective

22 W3C Workshop on Data and Services Integration / Bedford, MA Thursday, 20.10.2011

Announcing WoT 2012

Third International Workshop on the Web of Things

Stay tuned: http://www.webofthings.com/wot

Page 23: Service Integration - A Web of Things Perspective

Acknowledgements

23 W3C Workshop on Data and Services Integration / Bedford, MA Thursday, 20.10.2011

Web of Things team @ ETH Zurich Dominique Guinard, Vlad Trifa, Matthias Kovatsch, Benedikt Ostermaier