application Powered by Gian Luca Farina Perseu | www.21-style.com - - PowerPoint PPT Presentation

application
SMART_READER_LITE
LIVE PREVIEW

application Powered by Gian Luca Farina Perseu | www.21-style.com - - PowerPoint PPT Presentation

Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 3 . 0 A real case of NOSQL-GraphDB, Linked Data and Semantic Web application Powered by Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en


slide-1
SLIDE 1

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 3 . 0

A real case of NOSQL-GraphDB, Linked Data and Semantic Web application

Powered by

slide-2
SLIDE 2

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 3 . 0

Agenda:

  • What is MuseoTorino
  • Why and how to use a GraphDB
  • System Architecture
  • Linked Data, but above all Open
  • Semantic Web, the way to….
slide-3
SLIDE 3

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 3 . 0

Gian Luca Farina Perseu CEO

slide-4
SLIDE 4

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 3 . 0

What is MuseoTorino:

  • «Non un Nuovo Museo, ma un Museo Nuovo»
  • More than 2000 cards for place
  • More than 1000 cards in objects, subjects,

events, themes and itineraries

  • More than 2000 bibliographic references
  • More than 4000 images e 150 digital books
slide-5
SLIDE 5

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 3 . 0

What is MuseoTorino | Main sections

  • Institutional infos
  • Explore Catalog
  • Explore Colletion
  • Books/Media Library
  • Digital Books
  • Content/Cards Management
slide-6
SLIDE 6

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 3 . 0

What is MuseoTorino: Main Page

slide-7
SLIDE 7

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 3 . 0

What is MuseoTorino | Explore catalog

slide-8
SLIDE 8

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 3 . 0

What is MuseoTorino | Explore collection

slide-9
SLIDE 9

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 3 . 0

What is MuseoTorino | Digital Books

slide-10
SLIDE 10

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 3 . 0

What is MuseoTorino Content/Cards Management

slide-11
SLIDE 11

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 3 . 0

Analysis

slide-12
SLIDE 12

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 3 . 0

Analysis: Issues and constraints during analysis:

  • Heterogeneous infos to be catalog
  • Strong relations between cards
  • GeoPosition for every card
slide-13
SLIDE 13

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 3 . 0

Analysis:

  • Heterogeneity issue:
  • Need a scalable and flexible data model
  • Changable in the future without contraints
  • Solution
  • A DocumentDB
slide-14
SLIDE 14

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 3 . 0

Analysis:

  • Relation issues:
  • Relations are not predictable
  • Really quick in relation search
  • Solution
  • An RDF
slide-15
SLIDE 15

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 3 . 0

Analysis:

  • Geoposition issue:
  • Thousand of geopositions
  • Spatial queries
  • Soluzione
  • A GIS
slide-16
SLIDE 16

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 3 . 0

Solution

slide-17
SLIDE 17

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 3 . 0

A GraphDB !

slide-18
SLIDE 18

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 3 . 0

Life is a graph …

Torino

Born, 10 August 1810 Die, 6 June 1861 Live Position RIP

1°Cavour’s government (1852-1855) 2°Cavour’s government (1855-1859)

Cavour Park

Position

1°Cavour’s Italian government (1861) 3°Cavour’s government (1860-1861)

Govern

2°lieel correlation !!

slide-19
SLIDE 19

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 3 . 0

A GraphDB ! SchemaLess (like a DocumentDB)

slide-20
SLIDE 20

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 3 . 0

A GraphDB ! SchemaLess It manages milions of

  • bjects and relations

(like an RDF)

slide-21
SLIDE 21

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 3 . 0

A GraphDB ! SchemaLess It manages milions of

  • bjects and relations

Spacial Integration (like a GIS)

slide-22
SLIDE 22

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 3 . 0

GraphDB, our choise | Neo4J

  • AGPL 3.0 Licence, some components are to be

paid but core is free (basic licence).

  • 100% Java
  • Natively integrated with Lucene
  • Neotecnologies, a well organized company with

a solid business plan

slide-23
SLIDE 23

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 3 . 0

Architecture

slide-24
SLIDE 24

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 3 . 0

Architecture

  • Simple and Powerful
  • Optimized for Open Data and Services

integration

  • As possible interchangable in its core

components

slide-25
SLIDE 25

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 3 . 0

Architecture - Implementation

  • Neo4J + Blueprints, great performance
  • Java + Jersey + Grizzly, great flexibility
  • REST interface, max accessible
  • JSON format, great portability
  • PHP + CodeIgniter, max simplicity
  • Javascript + JQuery, great efficency
slide-26
SLIDE 26

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 3 . 0

Architecture

HTML

slide-27
SLIDE 27

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 3 . 0

Architecture | Neo4J

  • Robust and reliable
  • Open Source in its basic components
  • Great performance
  • Blueprints compliant
  • Scalable
slide-28
SLIDE 28

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 3 . 0

Architecture | Blueprints

  • Like JDBC, but for GraphDBs !
  • Very very simple to use
  • Automatic index management
slide-29
SLIDE 29

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 3 . 0

Architecture | Jersey + Grizzly

  • REST interfaces really simple implementation
  • It help you to think state-less
  • Native JSON support
  • Grizzly, like Tomcat but embeddable in your app
  • Really agile service, but very robust
slide-30
SLIDE 30

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 3 . 0

Architecture | JSON

  • It support in a easy way the graph structure
  • More simple to manage (vs XML)
  • It comes directly to javascript !
  • Maybe the future standard format for graphs and

also for RDF !

slide-31
SLIDE 31

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 3 . 0

Architecture | PHP and Javascript

  • CodeIgniter let you to create, in a simple way, REST

APIs, in particular if public (GET)

  • JQuery helps in REST calls (to PHP)
  • Both Javascript and PHP work natively with JSON
slide-32
SLIDE 32

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 3 . 0

Architecture | Some cons …

  • GraphDBs lack of tools for management
  • Some difficulties thinking «graphs»
  • …and more difficulties trying to explain graphs

to the customer ….

slide-33
SLIDE 33

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 3 . 0

Open Data

slide-34
SLIDE 34

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 3 . 0

Open Data

  • Alpha release
  • All the infos in the catalog are available to the

community thru an open interface

  • Read only
  • JSON format
  • Available on www.museotorino.it/api
slide-35
SLIDE 35

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 3 . 0

Open Data | Some example:

  • Search with key value:
  • GET /api/search/{type}?json={parameters}
  • Categories:
  • GET /api/categories
  • Entity by category
  • GET /api/entities_by_category/{id|sid|guid}/{value}
  • Relations by entity
  • GET /api/connections/{id|sid|guid}/{value}
slide-36
SLIDE 36

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 3 . 0

Open Data

  • The format is inspired to Freebase

(www.freebase.com) and its graph api (http://graph.freebaseapps.com)

slide-37
SLIDE 37

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 3 . 0

Open Data

  • Il formato è ispirato a quello usato da Freebase

(www.freebase.com) per le sue graph api (http://graph.freebaseapps.com)

slide-38
SLIDE 38

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 3 . 0

Open Data

  • At the moment only using API
  • Query engine (in a custom format)
  • Format is not stardardized yet.
  • At the moment we need to create the «Linked»

part, following RDFa/OpenGraph stardards

slide-39
SLIDE 39

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 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)

slide-40
SLIDE 40

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 3 . 0

Web 3.0

slide-41
SLIDE 41

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 3 . 0

Web 3.0

  • It’s time to semantic contents
  • Tim Berners Lee in late 2007:

(source: 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.

slide-42
SLIDE 42

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 3 . 0

Web 3.0

  • On 12th may 2009 Google announce using RDFa

standards

  • On 21th April 2010 Facebook announce to open its

portal at OpenGraph Protocol (based on RDFa)

slide-43
SLIDE 43

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 3 . 0

Web 3.0 It’s time !

slide-44
SLIDE 44

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 3 . 0

Web 3.0 Best Increment !

slide-45
SLIDE 45

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 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

(source: Peter Mika at Yahoo! http://tripletalk.wordpress.com/2011/01/25/rdfa-deployment-across-the-web by)

slide-46
SLIDE 46

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 3 . 0

Web 3.0 | How to:

  • Target
slide-47
SLIDE 47

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 3 . 0

Web 3.0 – How to:

  • Tool

<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>

slide-48
SLIDE 48

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 3 . 0

Web 3.0

  • MuseoTorino infos are already classified

Cavour as a person Cavour’s Castle as a place (where died) Cavour Palace as a place (where worked)

slide-49
SLIDE 49

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 3 . 0

We only need to Link !

slide-50
SLIDE 50

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 3 . 0

Thank you!

slide-51
SLIDE 51

Gian Luca Farina Perseu | www.21-style.com Mu s eoTo rin o | Grap h DB | L in ked Op en Data | Web 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