real-time mashups di web service geografici
DESCRIPTION
Presentazione del 17.11.2010 - Piattaforma Tecnologica Alpina, ComoTRANSCRIPT
Le opportunitànon hanno confini
FESRFondo europe o d isv i luppo reg iona le
Real-time Mashups di Web Service Geografici
Cesare PautassoFacoltá di Informatica
Universitá della Svizzera Italiana
http://www.pautasso.info/@pautasso
Le opportunitànon hanno confini
FESRFondo europe o d isv i luppo reg iona le
Mashups• Applicazioni Web
costruite componendoWeb service API preesistentiin modo nuovo e inaspettato
Le opportunitànon hanno confini
FESRFondo europe o d isv i luppo reg iona le
Mashups
+ composeAPI
API
Mashup
Le opportunitànon hanno confini
FESRFondo europe o d isv i luppo reg iona le
Example
composeMashup+
Le opportunitànon hanno confini
FESRFondo europe o d isv i luppo reg iona le
Mashups• Applicazioni Web
composte da Web service e fonti di datiWeb preesistentiriutilizzate in modonuovo e inaspettato
WeatherBonk.com
Le opportunitànon hanno confini
FESRFondo europe o d isv i luppo reg iona le
Mashups
• Cosa sono• Come si costruiscono• Esempi geografici• Aspetti Legali• Uno sguardo in avanti
Le opportunitànon hanno confini
FESRFondo europe o d isv i luppo reg iona le
Mashups: Proprietá
• Contenuti Aggregati da fonti multiple– Servizi Web (API) Pubblici– Screen Scraping (scrAPIs) da siti Web pre-esistenti– Dati locali gestiti dal mashup stesso– Informazioni fornite dagli utenti del mashup (à la wiki)
Le opportunitànon hanno confini
FESRFondo europe o d isv i luppo reg iona le ©2010 - Cesare Pautasso 8
Le opportunitànon hanno confini
FESRFondo europe o d isv i luppo reg iona le
42%
11%
10%
9%
7%
4%3% 3% 3% 3%
GoogleMapsFlickrYouTubeTwitterAmazonFacebookeBayVirtualEarthLastFMGoogle
API Popolaritá
Da programmableweb.com(All time API usage)
Le opportunitànon hanno confini
FESRFondo europe o d isv i luppo reg iona le
Ecosistema
• 2-mode Network• ProgrammableWeb.com
(5300+ Mashups, 2300+ APIs)
m
API m
API
API
API
m
m
m
Le opportunitànon hanno confini
FESRFondo europe o d isv i luppo reg iona le
Mashup EcosystemAPI Tier 1:
Google Maps
API Tier 2:
Social/Community, Search
Many popular APIs
API Tier 3: Feeds, blogging, online
retail, music, video Less popular APIs
Slide by Shuli Yu
Le opportunitànon hanno confini
FESRFondo europe o d isv i luppo reg iona le
Mashups: Proprietá
• Contenuti Aggregati da fonti multiple– Servizi Web (API) Pubblici– Screen Scraping (scrAPIs) da siti Web pre-esistenti– Dati locali gestiti dal mashup stesso– Informazioni fornite dagli utenti del mashup (à la wiki)
• Facili da Programmare– HTML5 e JavaScript sufficienti per iniziare
Le opportunitànon hanno confini
FESRFondo europe o d isv i luppo reg iona le
ArchitetturaWeb
BrowserWeb
Server
Mashup
Web Service
APIs
DatabasesWeb DataFeeds
LocalDatabase
HTTP/RSS/ATOM
AJAX
Client
SOAPHTTPRSS
Le opportunitànon hanno confini
FESRFondo europe o d isv i luppo reg iona le
Client-side Mashups
Web Browser
Mashup(HTML
JavaScript)
Web Service
APIs
Web Service
APIs
WebServer
HTTP/JPEG
Problem: JavaScript Same-Origin Security Policy
Le opportunitànon hanno confini
FESRFondo europe o d isv i luppo reg iona le
Server-side Mashups
Web Browser
Mashup(HTML
JavaScriptFlash)
Web Service
API
Web Service
API
WebServer
Mashup(PHP,JSP,
ASP.NETRuby,
JOpera…)
HTTPXML/JSON
HTTP/XML
Web DataFeeds
Le opportunitànon hanno confini
FESRFondo europe o d isv i luppo reg iona le
Mashups: Proprietá
• Contenuti Aggregati da fonti multiple– Servizi Web (API) Pubblici– Screen Scraping (scrAPIs) da siti Web pre-esistenti– Dati locali gestiti dal mashup stesso– Informazioni fornite dagli utenti del mashup (à la wiki)
• Facili da Programmare– HTML5 e JavaScript sufficienti per iniziare
• Di vita breve– La stabilitá e la robustezza non interessano
Le opportunitànon hanno confini
FESRFondo europe o d isv i luppo reg iona le
Num
ero di utenti
One-size-fits all Ad-HocRequisiti
Software Commerciale• Milioni di utenti• Sviluppo costoso e professionale• Buona Qualitá
Mashups• Pochi utenti specializzati•Vita breve, costo molto basso• Good Enough Quality• Sviluppati dagli utenti stessi
Le opportunitànon hanno confini
FESRFondo europe o d isv i luppo reg iona le
Metafore Utente
• Mappa– Google Maps et al.
• Calendario– Eventi ordinati nel tempo
• Data Stream– Aggregare flussi di dati
• Portale– Composizione di Web Widgets
netvibes.com
immo.search.ch
woozor.com
rt4sq
swisstrains
Le opportunitànon hanno confini
FESRFondo europe o d isv i luppo reg iona leSeptember 2008 Informatica08 – Atelier 2 20
woozor.com
Le opportunitànon hanno confini
FESRFondo europe o d isv i luppo reg iona le
Immo.Search.ch
Le opportunitànon hanno confini
FESRFondo europe o d isv i luppo reg iona le
Doggdot.us
Le opportunitànon hanno confini
FESRFondo europe o d isv i luppo reg iona le
FlashEarth.com
Le opportunitànon hanno confini
FESRFondo europe o d isv i luppo reg iona le
NetVibes.com
Le opportunitànon hanno confini
FESRFondo europe o d isv i luppo reg iona leSeptember 2008 Informatica08 – Atelier 2 25
Wikimapia.org
Le opportunitànon hanno confini
FESRFondo europe o d isv i luppo reg iona le 26
rt4sq
Le opportunitànon hanno confini
FESRFondo europe o d isv i luppo reg iona leSeptember 2008 Informatica08 – Atelier 2 27
swisstrains.ch
Le opportunitànon hanno confini
FESRFondo europe o d isv i luppo reg iona le 28
local.ch
Le opportunitànon hanno confini
FESRFondo europe o d isv i luppo reg iona le 29
ineedabike.gmapify.fr
Le opportunitànon hanno confini
FESRFondo europe o d isv i luppo reg iona le
Esempi
• weatherbonk.com• woozor.com• doggdot.us• flashearth.com• wikimapia.org• netvibes.com
• immo.search.ch• swisstrains.ch• ineedabike.gmapify.fr• rt4sq.zaubersoftware.com• local.ch
Le opportunitànon hanno confini
FESRFondo europe o d isv i luppo reg iona le
Sfide Tecnologiche
• Composizione/Integrazione• Estrazione Dati (Pull/Push/Scraping)• Eterogeneitá• Qualitá delle fonti/servizi• Gestione eccezioni• Evoluzione
Le opportunitànon hanno confini
FESRFondo europe o d isv i luppo reg iona le
Aspetti Legali
• Anche se tecnicamente é diventato facile riusare il software per comporre mashups, rimangono aperti alcuni problemi legali:
• Quali sono i “Terms of Use” delle API?• Fair-Use: esiste un “Right to Remix”?• Security/Privacy
– Affidereste la vostra chiave d’accesso ad un mashup sconosciuto?
Le opportunitànon hanno confini
FESRFondo europe o d isv i luppo reg iona le
Conclusioni
• Grazie a standard tecnologici emergenti i costi di integrazione di dati e applicazioni sul Web si sono ridotti moltissimo
• É diventato quindi possibile costruire Mashups un nuovo tipo di applicazioni Web che compongono in maniera leggera Web services API e fonti di dati Web
Le opportunitànon hanno confini
FESRFondo europe o d isv i luppo reg iona le
Riferimenti• http://www.programmableweb.com/• Mashups'10 - 4th International Workshop on Web APIs and Services
Mashups @ ECOWS http://mashup.inf.unisi.ch/mashups2010/• Shuli Yu and C. Jason Woodard, Innovation in the Programmable
Web: Characterizing the Mashup Ecosystem, ICSOC Workshops, LNCS 5472, 136-147, 2008
• C. Cappiello, F. Daniel, M. Matera, C. Pautasso, Information Quality in Mashups, IEEE Internet Computing, vol. 14, no. 4, pp. 14-22, Jul/Aug 2010
• C. Pautasso, Composing RESTful Services with JOpera, In: Proc. of the International Conference on Software Composition (SC2009), July 2009, Zurich, Switzerland.