Il web dei dati
-
Upload
vito-abrusci -
Category
Technology
-
view
115 -
download
0
description
Transcript of Il web dei dati
![Page 1: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/1.jpg)
Il Web dei Dati
Vito, 8/10/10
![Page 2: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/2.jpg)
Cosa ci aspetta
IntroduzioneIl problema
Le potenziali soluzionipratica
![Page 3: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/3.jpg)
introduzione
Ogni linguaggio ha la sua
Sintassi e la sua Semantica
![Page 4: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/4.jpg)
la Sintassi è lo studio della
Grammatica
(come dire qualcosa)
![Page 5: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/5.jpg)
la Semantica rappresenta il
significato
(cosa vogliamo dire)
![Page 6: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/6.jpg)
Sintassi e Semantica
Formano
UNA COMUNICAZIONE
![Page 7: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/7.jpg)
...per esempio
Internet è formata da Computer
connessi via TCP/IP
Il Web da Contenuti Collegati fra
loro e Accessibili via Internet
![Page 8: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/8.jpg)
Le persone
possono, così, facilmente
accedere a questi Contenuti.
![Page 9: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/9.jpg)
Questo è
WEB 1.0
![Page 10: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/10.jpg)
...poi...
gli Sviluppatori hanno iniziato
ad usare Ajax
![Page 11: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/11.jpg)
Le persone hanno iniziato a
pubblicare Foto e Video.
![Page 12: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/12.jpg)
![Page 13: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/13.jpg)
![Page 14: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/14.jpg)
Ad usare RSS ed a «Taggare»
contenuti
![Page 15: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/15.jpg)
A pubblicare pensieri, opinioni e
idee sui Blog
![Page 16: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/16.jpg)
A contribuire sui Wiki
![Page 17: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/17.jpg)
A interagire sui Social Network
![Page 18: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/18.jpg)
E’ nato il Web in
Lettura e Scrittura
![Page 19: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/19.jpg)
Questo è
WEB 2.0
![Page 20: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/20.jpg)
![Page 21: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/21.jpg)
Il Problema
![Page 22: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/22.jpg)
Le pagine sono scritte in HTML
![Page 23: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/23.jpg)
HTML descrive la sintassi ma
non la Semantica
![Page 24: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/24.jpg)
Il software non comprende il
significato dell’informazione.
![Page 25: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/25.jpg)
Quando si riuscirà a far
comprendere il significato ai
Computer
![Page 26: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/26.jpg)
Sarà
WEB 3.0
![Page 27: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/27.jpg)
• Il web è fatto di documenti
![Page 28: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/28.jpg)
• Il web dei dati è fatto di oggetti
![Page 29: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/29.jpg)
E’ possibile riconoscere ruoli, persone, date, prodotti.
Comprendendone le relazioni (?)
![Page 30: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/30.jpg)
Le Soluzioni
(al momento)
![Page 31: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/31.jpg)
Soluzione TOP DOWN:
Analisi dell’informazione, web
scraping, riconoscimento del
linguaggio naturale
![Page 32: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/32.jpg)
E’ Costosa perchè
Richiede Intervento Umano
Difficile da manutenere
Potenziali problemi legali
![Page 33: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/33.jpg)
Soluzione BOTTOM UP:
Aggiungere metadati, ai dati
![Page 34: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/34.jpg)
Il Web dei dati descrive relazioni
Fra cose
![Page 35: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/35.jpg)
Ma come?
![Page 36: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/36.jpg)
Al momento con i formati
RDF, RDFa e Microformats
![Page 37: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/37.jpg)
RDF
Resource Description Format(specifica W3C per descrivere risorse sul Web)
Lo fra tramite URI
![Page 38: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/38.jpg)
le famose Triple
Oggetto - Valore – Proprietà
Soggetto – Predicato - Oggetto
![Page 39: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/39.jpg)
• Rappresentazione Triple e Grafica di un RDF
![Page 40: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/40.jpg)
• Rappresentazione XML e Grafica di un RDF
![Page 41: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/41.jpg)
RDFa
Resource Description Format
a = attributes
(aggiunge gli attributi RDF nell’ XHTML)
![Page 42: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/42.jpg)
Esempio:
Alice pubblica articoli sul suo
blog http://example.com/alice
![Page 43: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/43.jpg)
Dichiara la licenza dei suoi
contenuti
![Page 44: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/44.jpg)
Vuole specificare il titolo e
l’autore di un post
![Page 45: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/45.jpg)
Ma in XHTML non ci sono
attributi simili
![Page 46: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/46.jpg)
Usa il Vocabolario / Dublin Core
![Page 47: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/47.jpg)
Credits di una Foto/ Dublin Core
![Page 48: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/48.jpg)
Vuole mostrare Nome, email e
numero di telefono
E usa FOAF (Friend of a Friend)
![Page 49: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/49.jpg)
![Page 50: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/50.jpg)
Vuole mostrare chi sono i suoi
Amici
...e usa FOAF (Friend of a Friend)
![Page 51: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/51.jpg)
![Page 52: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/52.jpg)
Come estraggo Informazioni ?
![Page 53: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/53.jpg)
Con SPARQL posso interrogare
un «sito» per otterere questi
elementi
![Page 54: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/54.jpg)
Un esempio di Microformat
![Page 55: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/55.jpg)
…alla fine…
Il Web Dei Dati è estensione di
ciò che vediamo oggi
![Page 56: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/56.jpg)
…alla fine…
![Page 57: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/57.jpg)
…risorse…
• W3c
• Rdfa.info
• Microformats.org
• http://www.google.com/webmasters/to
ols/richsnippets
![Page 58: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/58.jpg)
...sparql alla prova
Dataset: http://www.w3.org/People/Berners-Lee/card
http://demo.openlinksw.com/sparql
Query:
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
SELECT ?name
WHERE {
?person foaf:name ?name .
}
![Page 59: Il web dei dati](https://reader034.fdocument.pub/reader034/viewer/2022052602/559b0a231a28ab1f548b45a4/html5/thumbnails/59.jpg)
...ontologia