• Like
  • Save
Functional Composition of Sensor Web APIs
Upcoming SlideShare
Loading in...5
×
 

Functional Composition of Sensor Web APIs

on

  • 794 views

 

Statistics

Views

Total Views
794
Views on SlideShare
760
Embed Views
34

Actions

Likes
2
Downloads
0
Comments
0

2 Embeds 34

https://twitter.com 24
http://www.linkedin.com 10

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Functional Composition of Sensor Web APIs Functional Composition of Sensor Web APIs Presentation Transcript

    • Functional CompositionRuben Verborgh et al. of Sensor Web APIs
    • ?What makes people SMART
    • Collaboration.
    • ?What makes sensors SMART
    • Collaboration.
    • Smart collaborationsrun themselves. manual sensor composition intelligence comes from humans automatic sensor composition intelligence comes from the system
    • My research is aboutintelligent Web APIs. Ruben Verborgh, PhD Student Ghent University / iMinds My dream: intelligent agents browsing the Web for us Bridging between people and things bringing things to the Web
    • Functional composition of sensor Web APIs { Capturing functionality Creating compositions Evaluating feasibility
    • Functional composition of sensor Web APIs { Capturing functionality Creating compositions Evaluating feasibility
    • Why describe functionality?
    • Only functionalitytells the whole story.
    • How to capture the functionalityof these sensors? GPS device determines current location temperature sensor reads current temperature pressure sensor reads current air pressure
    • We model sensorsas Web APIs. Web APIs = HTTP APIs = REST APIs as opposed to “Big” Web services resource-oriented Sensor measurements are resources location temperature air pressure
    • We capture the functionalityof Web APIs with RESTdesc. RESTdesc describes the functionality of hypermedia-driven APIs with Notation3 (an RDF superset).
    • RESTdesc can describea temperature sensor. ! ""#$%&$(")"%*+,%-.%()/0(%1%&$(2 """"""""""%*+34)/5&"#34)/5&6 7 89 ! "":+(%;0%$/"<//.+-%/<=>)-%"?@A,?2 """"""""""""<//.+(%;0%$/BCD"#$%&$(2 """"""""""""<//.+(%$."E"<//.+F=G"#/%-.%()/0(%"H6 "" ""#34)/5&"%*+<)$,%-.%()/0(%"#/%-.%()/0(%6 76
    • RESTdesc can describea temperature sensor. ! ""#$%&$(")"%*+,%-.%()/0(%1%&$(2 """"""""""%*+34)/5&"#34)/5&6 7 89 ! "":+(%;0%$/"<//.+-%/<=>)-%"?@A,?2 """"""""""""<//.+(%;0%$/BCD"#$%&$(2 """"""""""""<//.+(%$."E"<//.+F=G"#/%-.%()/0(%"H6 "" ""#34)/5&"%*+<)$,%-.%()/0(%"#/%-.%()/0(%6 76
    • RESTdesc can describea temperature sensor. ! ""#$%&$(")"%*+,%-.%()/0(%1%&$(2 """"""""""%*+34)/5&"#34)/5&6 7 89 ! ""8+(%90%$/"://.+-%/:;<)-%"=>?,=2 """"""""""""://.+(%90%$/@AB"#$%&$(2 """"""""""""://.+(%$."C"://.+D;E"#/%-.%()/0(%"F6 "" ""#34)/5&"%*+<)$,%-.%()/0(%"#/%-.%()/0(%6 76
    • RESTdesc can describea temperature sensor. ! ""#$%&$(")"%*+,%-.%()/0(%1%&$(2 """"""""""%*+34)/5&"#34)/5&6 7 89 ! "":+(%;0%$/"<//.+-%/<=>)-%"?@A,?2 """"""""""""<//.+(%;0%$/BCD"#$%&$(2 """"""""""""<//.+(%$."E"<//.+F=G"#/%-.%()/0(%"H6 "" ""#34)/5&"%*+:)$,%-.%()/0(%"#/%-.%()/0(%6 76
    • RESTdesc provides simplefunctional descriptions. Hypermedia-driven no inputs or outputs, just links Capture functionality relationship between resources Rule-based logic implication
    • Functional composition of sensor Web APIs { Capturing functionality Creating compositions Evaluating feasibility
    • Why compose Web APIs? To answer a query by combining multiple APIs. Queries can be complex, APIs not necessarily known in advance.
    • “Reserve a table in a nearby restaurant. If weather allows, I want to sit outside.”
    • What APIs do we haveat our disposition? Suppose we have many APIs, including: Location API Temperature API Pressure API Restaurant API
    • What would a candidate solution lookoflike? Web a Functional Composition Sensor T I L R G P “Reserve a table in Location APIbining the Location, Temperature, Pressure, and Restauran a nearby restaurant. Temperature API dependencies, we can reach the Goal from the Initial state If weather allows, Pressure API I want to sit outside.” Restaurant API
    • RESTdesc descriptions enableautomated composition. RESTdesc descriptions are rules Rules support inference Rules can be chained
    • Does this compositionsatisfy the goal?{ } Since descriptions are rules, =>{ } success is defined as entailment.
    • If success is entailment,the proof is the composition.{ } => The proof of the entailment{ }{ } contains the used rules, =>{ } thus the needed API requests.
    • A semantic Web reasoner can create the composition. Functional Composition of Sensor Web a { } => { } { } { } => => { } T { } I L R G P “Reserve a table in { => } Location APIbiningnearby restaurant. { } Temperature API a the Location, Temperature, Pressure, and Restauran Pressure API dependencies, we can reach the Goal from the Initial state If weather allows, I want to sit outside.” Restaurant API
    • RESTdesc composing behavesas a good Semantic Web citizen. works with generic semantic reasoners RESTdesc descriptions are rules no specific knowledge needed ontologies fill gaps domain-independent
    • Functional composition of sensor Web APIs { Capturing functionality Creating compositions Evaluating feasibility
    • Does it scale?
    • Reasoner-based methodsare often thought of as slow. partly perception limit reasoner experience partly the method translation into reasoner domain
    • We tested composition chainsfor performance. n APIs with 1/2/3 dependencies to test chaining speed 32 APIs in presence of n dummies to test discrimination speed
    • RESTdesc composition is so fastthat it works on Web scale. chain of 512 APIs with 1 dependency in 0.4 seconds chain of 512 APIs with 3 dependencies in 1.6 seconds chain of 32 APIs with 512 dummies in 0,01 seconds
    • Efficient implementationson Arduino boards. simple sensors as Web APIs described with RESTdesc central composer
    • RESTdesc is an automated solutionfor sensor Web API composition. Describe REST Web APIs Use Semantic Web logic Compose with generic reasoners
    • RESTdesc automatically composes sensor Web APIs. Curious? Let’s get in touch! Visit restdesc.org and connect to @RubenVerborgh on Twitter.