SlideShare a Scribd company logo
1 of 51
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0




un esempio reale d'uso di NOSQL-
GraphDB, Linked Data e Web
Semantico

                              Powered by



                              Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0



Agenda:
• Cos’è MuseoTorino
• Perché e come usare un GraphDB
• Architettura del sistema
• Linked Data, ma soprattutto Open
• Web semantico, the way to….

                                      Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0



      Gian Luca Farina Perseu
              Amministratore




                            Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0



Cos’è MuseoTorino:
• Non un Nuovo Museo, ma un Museo «Nuovo»
• Più di 2000 schede su luoghi
• Più di 1000 schede fra oggetti, soggetti, eventi,
  temi e itinerari
• Quasi 2000 schede bibliografiche
• Più di 4000 immagini e 150 libri digitalizzati
                                      Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0



Cos’è MuseoTorino | Sezioni principali
  • Informazioni Istituzionali
  • Esplora il Catalogo
  • Naviga la Collezione
  • (Biblio/Media)teca
  • Libri Digitalizzati
  • BackOffice Inserimento Schede

                                       Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0


Cos’è MuseoTorino:
       Sito principale




                                    Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0


Cos’è MuseoTorino | Esplora il catalogo




                                     Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0


Cos’è MuseoTorino | Naviga la collezione




                                     Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0


Cos’è MuseoTorino | Libri Digitalizzati




                                     Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0


Cos’è MuseoTorino
            BackOffice




                                   Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0




Analisi




                                  Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0



Analisi:
Problematiche affrontate durante l’analisi:
  • Eterogeneità delle informazioni da schedare
  • Forte componente di relazione fra schede
  • Geoposizionamento di ogni scheda




                                       Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0



Analisi:
• Problema Eterogeneità:
  • Necessità di un modello scalabile e flessibile
  • Modificabile nel tempo senza constraint verso il
    pregresso
• Soluzione
  • Uso di un DocumentDB

                                       Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0



Analisi:
• Problema Relazioni:
  • Relazioni non codificabili a priori
  • Velocità nella ricerca delle relazioni
• Soluzione
  • Uso di un RDF


                                       Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0



Analisi:
• Problema Geoposizionamento:
 • Migliaia di georeferenziazioni
 • Ricerca spaziale
• Soluzione
 • Uso di un GIS


                                       Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0




                 Soluzione




                            Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0




Un GraphDB !




                                    Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0


La vita è un
grafo …
                                                             Abita
                                                                                         Posizione

 Nasce,
 10 agosto 1810


         Torino                                          Governa      Correlazione di
                  Muore,
                                      Tumulato
                  6 giugno 1861                                       2°livello !!


                                                                         Il primo governo Cavour (1852-1855)
                                                                         Il secondo governo Cavour (1855-1859)
                                  Posizione                              Il terzo governo Cavour (1860-1861)
                                                                         Il governo Cavour del Regno d’Italia (1861)

                      Parco Cavour
                                                     Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0




           Un GraphDB !
             SchemaLess
   (come un DocumentDB)



                            Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0




         Un GraphDB !
           SchemaLess
 Gestione di Milioni di
  Oggetto e Relazioni
          (come un RDF)


                            Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0


         Un GraphDB !
           SchemaLess
 Gestione di Milioni di
  Nodi e Connessioni
  Integrazione Spacial
           (come un GIS)


                            Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0



GraphDB, la nostra scelta | Neo4J
• Licenza AGPL 3.0, alcune componenti a
  pagamento ma il core è free.
• Java al 100%
• Integrato nativamente con Lucene
• Neotecnologies, una struttura organizzata e con
  un modello di business sufficientemente solido
                                      Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0




Architettura




                                    Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0



Architettura
• Orientata alla semplicità e alla leggerezza
• Ottimizzata per lo scambio di dati in ottica
  Open Data e ai servizi
• Il più possibile intercambiabile nelle sue
  componenti principali


                                      Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0


Architettura - Implementazione
• Neo4J + Blueprints, massime performance
• Java + Jersey + Grizzly, massima flessibilità
• Interfacce REST, massima apertura
• Formato JSON, massima intuibilità
• PHP + CodeIgniter, massima semplicità
• Javascript + Jquery, massima efficienza
                                      Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0

Architettura
                                            HTML




                                    Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0



Architettura | Neo4J
 • Robusto ed affidabile
 • Gratuito nelle sue componenti fondamentali
 • Ottime performance
 • Compatibile con Blueprints
 • Scalabile



                                      Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0



Architettura | Blueprints
 • Una sorta di JDBC per i GraphDB
 • Semplicissimo da usare
 • Gestione automatizzata degli indici




                                      Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0



Architettura | Jersey + Grizzly
 • Interfacce REST semplicissime da implementare
 • Sei aiutato a pensare state-less
 • Gestisce nativamente il formato JSON
 • Grizzly, come Tomcat ma usabile embedded
 • Servizio snello ma al tempo stesso robusto



                                      Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0



Architettura | JSON
 • Adattissimo alla struttura dei grafi
 • Molto più semplice da usare rispetto all’XML
 • Arriva diretto al javascript senza colpo ferire !
 • Il formato del futuro per la gestione dei grafi e
   probabilmente dell’RDF



                                      Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0



Architettura | PHP e Javascript
 • CodeIgniter permette di creare API REST in modo
   facile, soprattutto se pubbliche (GET)
 • JQuery facilita le chiamate REST al PHP
 • Javascript e PHP maneggiano nativamente JSON




                                     Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0



Architettura | Alcuni contro …
• I GraphDB non hanno molti tool a supporto
  dello sviluppo o della manutenzione
• Difficile imparare a «pensare a grafi»
• Difficile anche spiegarli ….



                                      Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0




Open Data




                                   Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0



Open Data
• Alpha release
• Tutti i dati relativi al catalogo del museo sono
  recuperabili come dati disponibili alla comunità
• A sola lettura
• In formato JSON
• Disponibile su www.museotorino.it/api
                                      Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0



Open Data | Alcuni esempi:
   •   Ricerca per parola chiave
       •   GET /api/search/{type}?json={parameters}

   •   Categorie
       •   GET /api/categories

   •   Entity per categoria
       •   GET /api/entities_by_category/{id|sid|guid}/{value}

   •   Correlazioni di un entity
       •   GET /api/connections/{id|sid|guid}/{value}




                                        Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0



Open Data
• Il formato è ispirato a quello usato da Freebase
  (www.freebase.com) per le sue graph api
  (http://graph.freebaseapps.com)




                                      Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0



Open Data
• Il formato è ispirato a quello usato da Freebase
  (www.freebase.com) per le sue graph api
  (http://graph.freebaseapps.com)




                                      Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0



Open Data
 • Ad oggi solo attraverso le API
 • Possibilità di eseguire query (in un formato custom)
 • Ad oggi il formato è suscettibile di modifiche
 • Ancora da integrare la parte Linked, seguendo gli
   standard di riferimento (OpenGraph)



                                      Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0



Open Data
 • Ad oggi solo attraverso le API
 • Possibilità di eseguire query (in un formato custom)
 • Ad oggi il formato è suscettibile di modifiche
 • Ancora da integrare la parte Linked, seguendo gli
   standard di riferimento (OpenGraph)



                                      Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0




Web 3.0




                                  Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0



Web 3.0
 • E’ tempo di semantica dei contenuti
 • Profetizzato da Tim Berners Lee già nel 2007:

      (fonte: http://dig.csail.mit.edu/breadcrumbs/node/215-2007-11-21 )


   I’ll be thinking in the graph. My flights. My friends.
  Things in my life. My breakfast. What was that? Oh,
  yogourt, granola, nuts, and fresh fruit, since you ask.

                                         Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0



Web 3.0
 • Il 12 maggio 2009 Google annuncia di abbracciare
   lo standard RDFa
 • Il 21 Aprile 2010 Facebook annuncia di aprire il suo
   portale allo standard OpenGraph Protocol (basato
   su RDFa)




                                      Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0




                                            Web 3.0
                                            E’ l’ora !




                            Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0




                                            Web 3.0




                                           Maggior
                                           Incremento !


                            Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0



Web 3.0

 The data shows that the usage of RDFa has increased
 510% between March, 2009 and October, 2010, from
 0.6% of webpages to 3.6% of webpages
 (fonte: Peter Mika at Yahoo!
 http://tripletalk.wordpress.com/2011/01/25/rdfa-deployment-across-the-web by)




                                           Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0



Web 3.0 | Come si realizza:
  • Obbiettivo




                                      Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0



Web 3.0 - Come di realizza:
 • Strumento
   <div xmlns:v="http://rdf.data-vocabulary.org/#" typeof="v:Person">
     Mi chiamo <span property="v:name">Roberto Sacchi</span>,
     ma tutti mi chiamano <span property="v:nickname">Bob</span>.
     Questa è la mia home page:
     <a href="http://www.example.com" rel="v:url">www.example.com</a>.
     Ho una casa ad Albenga, (Liguria) e lavoro come <span property="v:title">ingegnere</span>
     per la <span property="v:affiliation">ACME Corp</span>.
   </div>




                                            Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0



Web 3.0
• MuseoTorino ha già tutte le informazioni classificate

            Cavour come persona

                                Il Castello di Cavour come luogo (di sepoltura)

                                                       Il Palazzo Cavour come
                                                       luogo (di lavoro)




                                       Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0


Si tratta solo
di Linkarle !




                                      Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0




         Grazie !

                            Gian Luca Farina Perseu | www.21-style.com
M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0


Links
•   MuseoTorino | www.museotorino.it (dal 17 Marzo)
•   21Style | www.21-style.com
•   Neo4J | www.neo4j.org
•   Blueprints | https://github.com/tinkerpop/blueprints
•   RDFa | http://rdfa.info




                                          Gian Luca Farina Perseu | www.21-style.com

More Related Content

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

MuseoTorino, il primo progetto in Italia ad utilizzare GraphDB, RDFa, Linked Open Data

  • 1. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 un esempio reale d'uso di NOSQL- GraphDB, Linked Data e Web Semantico Powered by Gian Luca Farina Perseu | www.21-style.com
  • 2. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 Agenda: • Cos’è MuseoTorino • Perché e come usare un GraphDB • Architettura del sistema • Linked Data, ma soprattutto Open • Web semantico, the way to…. Gian Luca Farina Perseu | www.21-style.com
  • 3. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 Gian Luca Farina Perseu Amministratore Gian Luca Farina Perseu | www.21-style.com
  • 4. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 Cos’è MuseoTorino: • Non un Nuovo Museo, ma un Museo «Nuovo» • Più di 2000 schede su luoghi • Più di 1000 schede fra oggetti, soggetti, eventi, temi e itinerari • Quasi 2000 schede bibliografiche • Più di 4000 immagini e 150 libri digitalizzati Gian Luca Farina Perseu | www.21-style.com
  • 5. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 Cos’è MuseoTorino | Sezioni principali • Informazioni Istituzionali • Esplora il Catalogo • Naviga la Collezione • (Biblio/Media)teca • Libri Digitalizzati • BackOffice Inserimento Schede Gian Luca Farina Perseu | www.21-style.com
  • 6. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 Cos’è MuseoTorino: Sito principale Gian Luca Farina Perseu | www.21-style.com
  • 7. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 Cos’è MuseoTorino | Esplora il catalogo Gian Luca Farina Perseu | www.21-style.com
  • 8. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 Cos’è MuseoTorino | Naviga la collezione Gian Luca Farina Perseu | www.21-style.com
  • 9. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 Cos’è MuseoTorino | Libri Digitalizzati Gian Luca Farina Perseu | www.21-style.com
  • 10. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 Cos’è MuseoTorino BackOffice Gian Luca Farina Perseu | www.21-style.com
  • 11. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 Analisi Gian Luca Farina Perseu | www.21-style.com
  • 12. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 Analisi: Problematiche affrontate durante l’analisi: • Eterogeneità delle informazioni da schedare • Forte componente di relazione fra schede • Geoposizionamento di ogni scheda Gian Luca Farina Perseu | www.21-style.com
  • 13. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 Analisi: • Problema Eterogeneità: • Necessità di un modello scalabile e flessibile • Modificabile nel tempo senza constraint verso il pregresso • Soluzione • Uso di un DocumentDB Gian Luca Farina Perseu | www.21-style.com
  • 14. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 Analisi: • Problema Relazioni: • Relazioni non codificabili a priori • Velocità nella ricerca delle relazioni • Soluzione • Uso di un RDF Gian Luca Farina Perseu | www.21-style.com
  • 15. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 Analisi: • Problema Geoposizionamento: • Migliaia di georeferenziazioni • Ricerca spaziale • Soluzione • Uso di un GIS Gian Luca Farina Perseu | www.21-style.com
  • 16. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 Soluzione Gian Luca Farina Perseu | www.21-style.com
  • 17. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 Un GraphDB ! Gian Luca Farina Perseu | www.21-style.com
  • 18. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 La vita è un grafo … Abita Posizione Nasce, 10 agosto 1810 Torino Governa Correlazione di Muore, Tumulato 6 giugno 1861 2°livello !! Il primo governo Cavour (1852-1855) Il secondo governo Cavour (1855-1859) Posizione Il terzo governo Cavour (1860-1861) Il governo Cavour del Regno d’Italia (1861) Parco Cavour Gian Luca Farina Perseu | www.21-style.com
  • 19. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 Un GraphDB ! SchemaLess (come un DocumentDB) Gian Luca Farina Perseu | www.21-style.com
  • 20. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 Un GraphDB ! SchemaLess Gestione di Milioni di Oggetto e Relazioni (come un RDF) Gian Luca Farina Perseu | www.21-style.com
  • 21. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 Un GraphDB ! SchemaLess Gestione di Milioni di Nodi e Connessioni Integrazione Spacial (come un GIS) Gian Luca Farina Perseu | www.21-style.com
  • 22. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 GraphDB, la nostra scelta | Neo4J • Licenza AGPL 3.0, alcune componenti a pagamento ma il core è free. • Java al 100% • Integrato nativamente con Lucene • Neotecnologies, una struttura organizzata e con un modello di business sufficientemente solido Gian Luca Farina Perseu | www.21-style.com
  • 23. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 Architettura Gian Luca Farina Perseu | www.21-style.com
  • 24. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 Architettura • Orientata alla semplicità e alla leggerezza • Ottimizzata per lo scambio di dati in ottica Open Data e ai servizi • Il più possibile intercambiabile nelle sue componenti principali Gian Luca Farina Perseu | www.21-style.com
  • 25. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 Architettura - Implementazione • Neo4J + Blueprints, massime performance • Java + Jersey + Grizzly, massima flessibilità • Interfacce REST, massima apertura • Formato JSON, massima intuibilità • PHP + CodeIgniter, massima semplicità • Javascript + Jquery, massima efficienza Gian Luca Farina Perseu | www.21-style.com
  • 26. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 Architettura HTML Gian Luca Farina Perseu | www.21-style.com
  • 27. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 Architettura | Neo4J • Robusto ed affidabile • Gratuito nelle sue componenti fondamentali • Ottime performance • Compatibile con Blueprints • Scalabile Gian Luca Farina Perseu | www.21-style.com
  • 28. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 Architettura | Blueprints • Una sorta di JDBC per i GraphDB • Semplicissimo da usare • Gestione automatizzata degli indici Gian Luca Farina Perseu | www.21-style.com
  • 29. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 Architettura | Jersey + Grizzly • Interfacce REST semplicissime da implementare • Sei aiutato a pensare state-less • Gestisce nativamente il formato JSON • Grizzly, come Tomcat ma usabile embedded • Servizio snello ma al tempo stesso robusto Gian Luca Farina Perseu | www.21-style.com
  • 30. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 Architettura | JSON • Adattissimo alla struttura dei grafi • Molto più semplice da usare rispetto all’XML • Arriva diretto al javascript senza colpo ferire ! • Il formato del futuro per la gestione dei grafi e probabilmente dell’RDF Gian Luca Farina Perseu | www.21-style.com
  • 31. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 Architettura | PHP e Javascript • CodeIgniter permette di creare API REST in modo facile, soprattutto se pubbliche (GET) • JQuery facilita le chiamate REST al PHP • Javascript e PHP maneggiano nativamente JSON Gian Luca Farina Perseu | www.21-style.com
  • 32. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 Architettura | Alcuni contro … • I GraphDB non hanno molti tool a supporto dello sviluppo o della manutenzione • Difficile imparare a «pensare a grafi» • Difficile anche spiegarli …. Gian Luca Farina Perseu | www.21-style.com
  • 33. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 Open Data Gian Luca Farina Perseu | www.21-style.com
  • 34. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 Open Data • Alpha release • Tutti i dati relativi al catalogo del museo sono recuperabili come dati disponibili alla comunità • A sola lettura • In formato JSON • Disponibile su www.museotorino.it/api Gian Luca Farina Perseu | www.21-style.com
  • 35. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 Open Data | Alcuni esempi: • Ricerca per parola chiave • GET /api/search/{type}?json={parameters} • Categorie • GET /api/categories • Entity per categoria • GET /api/entities_by_category/{id|sid|guid}/{value} • Correlazioni di un entity • GET /api/connections/{id|sid|guid}/{value} Gian Luca Farina Perseu | www.21-style.com
  • 36. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 Open Data • Il formato è ispirato a quello usato da Freebase (www.freebase.com) per le sue graph api (http://graph.freebaseapps.com) Gian Luca Farina Perseu | www.21-style.com
  • 37. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 Open Data • Il formato è ispirato a quello usato da Freebase (www.freebase.com) per le sue graph api (http://graph.freebaseapps.com) Gian Luca Farina Perseu | www.21-style.com
  • 38. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 Open Data • Ad oggi solo attraverso le API • Possibilità di eseguire query (in un formato custom) • Ad oggi il formato è suscettibile di modifiche • Ancora da integrare la parte Linked, seguendo gli standard di riferimento (OpenGraph) Gian Luca Farina Perseu | www.21-style.com
  • 39. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 Open Data • Ad oggi solo attraverso le API • Possibilità di eseguire query (in un formato custom) • Ad oggi il formato è suscettibile di modifiche • Ancora da integrare la parte Linked, seguendo gli standard di riferimento (OpenGraph) Gian Luca Farina Perseu | www.21-style.com
  • 40. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 Web 3.0 Gian Luca Farina Perseu | www.21-style.com
  • 41. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 Web 3.0 • E’ tempo di semantica dei contenuti • Profetizzato da Tim Berners Lee già nel 2007: (fonte: http://dig.csail.mit.edu/breadcrumbs/node/215-2007-11-21 ) I’ll be thinking in the graph. My flights. My friends. Things in my life. My breakfast. What was that? Oh, yogourt, granola, nuts, and fresh fruit, since you ask. Gian Luca Farina Perseu | www.21-style.com
  • 42. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 Web 3.0 • Il 12 maggio 2009 Google annuncia di abbracciare lo standard RDFa • Il 21 Aprile 2010 Facebook annuncia di aprire il suo portale allo standard OpenGraph Protocol (basato su RDFa) Gian Luca Farina Perseu | www.21-style.com
  • 43. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 Web 3.0 E’ l’ora ! Gian Luca Farina Perseu | www.21-style.com
  • 44. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 Web 3.0 Maggior Incremento ! Gian Luca Farina Perseu | www.21-style.com
  • 45. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 Web 3.0 The data shows that the usage of RDFa has increased 510% between March, 2009 and October, 2010, from 0.6% of webpages to 3.6% of webpages (fonte: Peter Mika at Yahoo! http://tripletalk.wordpress.com/2011/01/25/rdfa-deployment-across-the-web by) Gian Luca Farina Perseu | www.21-style.com
  • 46. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 Web 3.0 | Come si realizza: • Obbiettivo Gian Luca Farina Perseu | www.21-style.com
  • 47. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 Web 3.0 - Come di realizza: • Strumento <div xmlns:v="http://rdf.data-vocabulary.org/#" typeof="v:Person"> Mi chiamo <span property="v:name">Roberto Sacchi</span>, ma tutti mi chiamano <span property="v:nickname">Bob</span>. Questa è la mia home page: <a href="http://www.example.com" rel="v:url">www.example.com</a>. Ho una casa ad Albenga, (Liguria) e lavoro come <span property="v:title">ingegnere</span> per la <span property="v:affiliation">ACME Corp</span>. </div> Gian Luca Farina Perseu | www.21-style.com
  • 48. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 Web 3.0 • MuseoTorino ha già tutte le informazioni classificate Cavour come persona Il Castello di Cavour come luogo (di sepoltura) Il Palazzo Cavour come luogo (di lavoro) Gian Luca Farina Perseu | www.21-style.com
  • 49. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 Si tratta solo di Linkarle ! Gian Luca Farina Perseu | www.21-style.com
  • 50. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 Grazie ! Gian Luca Farina Perseu | www.21-style.com
  • 51. M u s e o To r i n o | G r a p h D B | L i n k e d O p e n D a t a | W e b 3 . 0 Links • MuseoTorino | www.museotorino.it (dal 17 Marzo) • 21Style | www.21-style.com • Neo4J | www.neo4j.org • Blueprints | https://github.com/tinkerpop/blueprints • RDFa | http://rdfa.info Gian Luca Farina Perseu | www.21-style.com