SlideShare una empresa de Scribd logo
1 de 23
Descargar para leer sin conexión
Henning Rauch
                                   Henning@RauchEntwicklung.biz




         Introduction to graph databases




Kickoff research project
TU-Ilmenau 11/2011

                                                             1
Agenda


●   Introduction
●   Graph databases
●   Pros
●   Cons
●   Use cases
●   Sones GraphDB


                           2
Introduction – /me

●   Studied computer science at TU-Ilmenau
●   02/2009 – 11/2010 sones core developer of the
    sones GraphDB
    ●   GraphQL
    ●   Type-Management
●   11/2010 – 11/2011 sones Head of R&D
    ●   Design of v2
    ●   Refactoring of v1 → v2 (de-facto rewrite)
●   11/2011 – now NoSQL freelancer & visiting lecturer


                                                              3
Introduction – Current situation

●   Data-intensive, complex and distributed applications
    ●   Semantic web
    ●   Recommendation systems
    ●   Social networks
●   Similarities
    ●   Strong connected data in large amounts
    ●   Complex structures
    ●   Continuous growth in data volume
    ●   Mix of structured and non-structured (schema-less) data




                                                                  4
Introduction – Example




http://www.facebook.com/press/info.php?statistics



                                                                        5
Introduction – Challenges

●   Recursive connected information as a new design
    goal
●   Simple management of structured, semi-
    structured and unstructured data
●   Replication
●   Versioning
●   Efficient partitioning of data
●   Graph oriented operations


                                                      6
Graph databases – Data model

●   Graph G(V,E)
    ●   V – Vertices
    ●   E – Edges




         Vertex                  Vertex
           0                       1




                                            7
Graph databases – Data model



                  Stuttgart


              m               63
                                 3
           3k                        km
         38



                  260 km
Jena                                      Berlin



                                                   8
Graph databases – Property graph

●   Extension of the graph data model
    ●   Additional properties on vertices and edges
    ●   The properties are key/value pairs (Age:23)
    ●   Keys are specified by the schema of the vertex type



        Name: Alice                              Name: Bob
           ID: 0
                       CommunicatesWith            ID: 1
          Age: 23         Encrypted : true        Age: 42
                           Method : RSA




                                                              9
Graph databases – Property graph

Name: TU                                                                                           Name: Uni
 Ilmenau               StudiesIn                                                                    Stuttgart
                                                  Name: Carol
                       Since: 20
                                 07                  ID: 3
                                                    Age: 18
   Stu ce: 20




                                                                      Co
    Sin




                                                                                                              0
                                                                    En mm




                                                                                                   Since: 201
                                                                                                   StudiesIn
      die




                                       f ter                          cr
                                     eO S i s                            yp uni
         sIn 4




                                  tiv :                                    te c a
                                la ree                                       d:       t
                                                                                fa e s W
              0




                              Re eg                                               ls e
                                D                                                       it   h




         Name: Alice                                                                             Name: Bob
                                                CommunicatesWith
           ID: 0                                                                                   ID: 1
                                                  Encrypted: true
          Age: 23                                                                                 Age: 42
                                                   Method: RSA




                                                                                                                  10
Graph databases – Definition

  A graph database is a database that uses graph
  structures with nodes, edges, and properties to
  represent and store information. General graph
databases that can store any graph are distinct from
 specialized graph databases such as triplestores
              and network databases.
                                 http://en.wikipedia.org/wiki/Graph_database




                                                                               11
Pros – Data model

●   Explicit data model
●   Direct mapping of real world network
    structures




                                           12
Pros – Efficient graph traversal

●   The most important operation of graph
    databases
●   Recursive search for vertices/edges with
    certain properties
●   Finding paths in graphs
●   GraphDB is able to do ~80M vertex-
    traversals per second


                                               13
Pros – Index-free adjacency

●   Relations (edges) are directly modeled on the
    vertex → no need for an additional mapping
●   No need for a global index for relations
●   Data locality → adjacent vertices can be
    persisted "close together" (efficient storage)
●   → The vertex-traversal performance is
    independent from the size of the graph



                                                     14
Cons

●   In general the import is slower than in
    RDBMS
●   Relatively new technology
●   Lack of standards




                                                 15
Use cases

●   Rating of websites in search engines –
    Page rank
●   Who knows-who in social networks –
    Shortest path
●   Recommendation systems – Bipartite
    matching
●   ...


                                             16
Sones GraphDB – Overview

●   http://www.sones.com
●   Object-oriented graph database
●   Property-Hypergraph data model
●   Written in C# (97%)
●   C# embedded/remote API
●   GraphQL
●   Non-persistent OSE and proprietary persistent
    GraphFS



                                                    17
Sones GraphDB – Architecture




                           18
Sones GraphDB – Architecture




                           19
Sones GraphDB – GraphQL

// define Vertex Type
CREATE VERTEX User
 ADD ATTRIBUTES (String Name, SET<User> Friends)
 INDICES (Name)


// add vertices Alice and Bob
 INSERT INTO User VALUES (Name = "Alice", Age = 23)
 INSERT INTO User VALUES (Name = "Bob", Age = 42)


// add edges between Alice and Bob
 LINK User(Name = ‘Alice') VIA Friends TO User(Name = ‘Bob')
 LINK User(Name = ‘Bob') VIA Friends TO User(Name = ‘Alice‘)

                                                               20
Sones GraphDB – HowTo run it

●   Windows: Install Visual Studio (professional
    and higher) or MonoDevelop
●   Linux: Install mono-complete and MonoDevelop
●   Download the source from
    https://github.com/cosh/sones
●   Open the „CoreDeveloper.sln“
●   Have phun



                                                   21
Sones GraphDB – Documentation
●   Blog: http://developers.sones.de/
●   Wiki: http://developers.sones.de/wiki/doku.php
●   Forum: http://forum.sones.de/
●   BugTracking: http://jira.sones.de/
●   The fastest way to information: /me :)




                                                     22
Graph visualization

●   http://gephi.org/screenshots/
●   http://mbostock.github.com/d3/
●   http://www.fluidops.net/information-workbench/




                                                     23

Más contenido relacionado

Similar a Kickoff research project TU Ilmenau

Bekas for cognitive_speaker_series
Bekas for cognitive_speaker_seriesBekas for cognitive_speaker_series
Bekas for cognitive_speaker_seriesdiannepatricia
 
Calin Constantinov - Neo4j - Bucharest Big Data Week Meetup - Bucharest 2018
Calin Constantinov - Neo4j - Bucharest Big Data Week Meetup - Bucharest 2018Calin Constantinov - Neo4j - Bucharest Big Data Week Meetup - Bucharest 2018
Calin Constantinov - Neo4j - Bucharest Big Data Week Meetup - Bucharest 2018Calin Constantinov
 
AI, Knowledge Representation and Graph Databases -
 Key Trends in Data Science
AI, Knowledge Representation and Graph Databases -
 Key Trends in Data ScienceAI, Knowledge Representation and Graph Databases -
 Key Trends in Data Science
AI, Knowledge Representation and Graph Databases -
 Key Trends in Data ScienceOptum
 
1st UIM-GDB - Connections to the Real World
1st UIM-GDB - Connections to the Real World1st UIM-GDB - Connections to the Real World
1st UIM-GDB - Connections to the Real WorldAchim Friedland
 
The Art of Social Media Analysis with Twitter & Python
The Art of Social Media Analysis with Twitter & PythonThe Art of Social Media Analysis with Twitter & Python
The Art of Social Media Analysis with Twitter & PythonKrishna Sankar
 
The Art of Social Media Analysis with Twitter & Python-OSCON 2012
The Art of Social Media Analysis with Twitter & Python-OSCON 2012The Art of Social Media Analysis with Twitter & Python-OSCON 2012
The Art of Social Media Analysis with Twitter & Python-OSCON 2012OSCON Byrum
 
DHHTGraphs - Modeling beyond plain graphs
DHHTGraphs - Modeling beyond plain graphsDHHTGraphs - Modeling beyond plain graphs
DHHTGraphs - Modeling beyond plain graphsdbildh
 
LinkedUp - Linked Data & Education
LinkedUp - Linked Data & EducationLinkedUp - Linked Data & Education
LinkedUp - Linked Data & EducationStefan Dietze
 
2009 - Node XL v.84+ - Social Media Network Visualization Tools For Excel 2007
2009 - Node XL v.84+ - Social Media Network Visualization Tools For Excel 20072009 - Node XL v.84+ - Social Media Network Visualization Tools For Excel 2007
2009 - Node XL v.84+ - Social Media Network Visualization Tools For Excel 2007Marc Smith
 
Neo4j MeetUp - Graph Exploration with MetaExp
Neo4j MeetUp - Graph Exploration with MetaExpNeo4j MeetUp - Graph Exploration with MetaExp
Neo4j MeetUp - Graph Exploration with MetaExpAdrian Ziegler
 
Descobrindo o tesouro escondido nos seus dados usando grafos.
Descobrindo o tesouro escondido nos seus dados usando grafos.Descobrindo o tesouro escondido nos seus dados usando grafos.
Descobrindo o tesouro escondido nos seus dados usando grafos.Ana Appel
 
Indexing data on the web a comparison of schema level indices for data search
Indexing data on the web a comparison of schema level indices for data searchIndexing data on the web a comparison of schema level indices for data search
Indexing data on the web a comparison of schema level indices for data searchTill Blume
 
Mining Social Graph Data
Mining Social Graph DataMining Social Graph Data
Mining Social Graph DataDrew Conway
 
Knowledge Graph Introduction
Knowledge Graph IntroductionKnowledge Graph Introduction
Knowledge Graph IntroductionSören Auer
 
Big data and SP Theory of Intelligence
Big data and SP Theory of IntelligenceBig data and SP Theory of Intelligence
Big data and SP Theory of IntelligenceVarsha Prabhakar
 

Similar a Kickoff research project TU Ilmenau (18)

Bekas for cognitive_speaker_series
Bekas for cognitive_speaker_seriesBekas for cognitive_speaker_series
Bekas for cognitive_speaker_series
 
Calin Constantinov - Neo4j - Bucharest Big Data Week Meetup - Bucharest 2018
Calin Constantinov - Neo4j - Bucharest Big Data Week Meetup - Bucharest 2018Calin Constantinov - Neo4j - Bucharest Big Data Week Meetup - Bucharest 2018
Calin Constantinov - Neo4j - Bucharest Big Data Week Meetup - Bucharest 2018
 
AI, Knowledge Representation and Graph Databases -
 Key Trends in Data Science
AI, Knowledge Representation and Graph Databases -
 Key Trends in Data ScienceAI, Knowledge Representation and Graph Databases -
 Key Trends in Data Science
AI, Knowledge Representation and Graph Databases -
 Key Trends in Data Science
 
NISO Forum, Denver, Sept. 24, 2012: Opening Keynote: The Many and the One: BC...
NISO Forum, Denver, Sept. 24, 2012: Opening Keynote: The Many and the One: BC...NISO Forum, Denver, Sept. 24, 2012: Opening Keynote: The Many and the One: BC...
NISO Forum, Denver, Sept. 24, 2012: Opening Keynote: The Many and the One: BC...
 
1st UIM-GDB - Connections to the Real World
1st UIM-GDB - Connections to the Real World1st UIM-GDB - Connections to the Real World
1st UIM-GDB - Connections to the Real World
 
The Art of Social Media Analysis with Twitter & Python
The Art of Social Media Analysis with Twitter & PythonThe Art of Social Media Analysis with Twitter & Python
The Art of Social Media Analysis with Twitter & Python
 
The Art of Social Media Analysis with Twitter & Python-OSCON 2012
The Art of Social Media Analysis with Twitter & Python-OSCON 2012The Art of Social Media Analysis with Twitter & Python-OSCON 2012
The Art of Social Media Analysis with Twitter & Python-OSCON 2012
 
DHHT - Modeling beyond plain graphs
DHHT - Modeling beyond plain graphsDHHT - Modeling beyond plain graphs
DHHT - Modeling beyond plain graphs
 
DHHTGraphs - Modeling beyond plain graphs
DHHTGraphs - Modeling beyond plain graphsDHHTGraphs - Modeling beyond plain graphs
DHHTGraphs - Modeling beyond plain graphs
 
LinkedUp - Linked Data & Education
LinkedUp - Linked Data & EducationLinkedUp - Linked Data & Education
LinkedUp - Linked Data & Education
 
2009 - Node XL v.84+ - Social Media Network Visualization Tools For Excel 2007
2009 - Node XL v.84+ - Social Media Network Visualization Tools For Excel 20072009 - Node XL v.84+ - Social Media Network Visualization Tools For Excel 2007
2009 - Node XL v.84+ - Social Media Network Visualization Tools For Excel 2007
 
Neo4j MeetUp - Graph Exploration with MetaExp
Neo4j MeetUp - Graph Exploration with MetaExpNeo4j MeetUp - Graph Exploration with MetaExp
Neo4j MeetUp - Graph Exploration with MetaExp
 
Descobrindo o tesouro escondido nos seus dados usando grafos.
Descobrindo o tesouro escondido nos seus dados usando grafos.Descobrindo o tesouro escondido nos seus dados usando grafos.
Descobrindo o tesouro escondido nos seus dados usando grafos.
 
Indexing data on the web a comparison of schema level indices for data search
Indexing data on the web a comparison of schema level indices for data searchIndexing data on the web a comparison of schema level indices for data search
Indexing data on the web a comparison of schema level indices for data search
 
Mining Social Graph Data
Mining Social Graph DataMining Social Graph Data
Mining Social Graph Data
 
Knowledge Graph Introduction
Knowledge Graph IntroductionKnowledge Graph Introduction
Knowledge Graph Introduction
 
Big data and SP Theory of Intelligence
Big data and SP Theory of IntelligenceBig data and SP Theory of Intelligence
Big data and SP Theory of Intelligence
 
"Graph Convolution for Multimodal Information Extraction from Visually Rich D...
"Graph Convolution for Multimodal Information Extraction from Visually Rich D..."Graph Convolution for Multimodal Information Extraction from Visually Rich D...
"Graph Convolution for Multimodal Information Extraction from Visually Rich D...
 

Último

ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)cama23
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxCulture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxPoojaSen20
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxMaryGraceBautista27
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 

Último (20)

ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxCulture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptx
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 

Kickoff research project TU Ilmenau

  • 1. Henning Rauch Henning@RauchEntwicklung.biz Introduction to graph databases Kickoff research project TU-Ilmenau 11/2011 1
  • 2. Agenda ● Introduction ● Graph databases ● Pros ● Cons ● Use cases ● Sones GraphDB 2
  • 3. Introduction – /me ● Studied computer science at TU-Ilmenau ● 02/2009 – 11/2010 sones core developer of the sones GraphDB ● GraphQL ● Type-Management ● 11/2010 – 11/2011 sones Head of R&D ● Design of v2 ● Refactoring of v1 → v2 (de-facto rewrite) ● 11/2011 – now NoSQL freelancer & visiting lecturer 3
  • 4. Introduction – Current situation ● Data-intensive, complex and distributed applications ● Semantic web ● Recommendation systems ● Social networks ● Similarities ● Strong connected data in large amounts ● Complex structures ● Continuous growth in data volume ● Mix of structured and non-structured (schema-less) data 4
  • 6. Introduction – Challenges ● Recursive connected information as a new design goal ● Simple management of structured, semi- structured and unstructured data ● Replication ● Versioning ● Efficient partitioning of data ● Graph oriented operations 6
  • 7. Graph databases – Data model ● Graph G(V,E) ● V – Vertices ● E – Edges Vertex Vertex 0 1 7
  • 8. Graph databases – Data model Stuttgart m 63 3 3k km 38 260 km Jena Berlin 8
  • 9. Graph databases – Property graph ● Extension of the graph data model ● Additional properties on vertices and edges ● The properties are key/value pairs (Age:23) ● Keys are specified by the schema of the vertex type Name: Alice Name: Bob ID: 0 CommunicatesWith ID: 1 Age: 23 Encrypted : true Age: 42 Method : RSA 9
  • 10. Graph databases – Property graph Name: TU Name: Uni Ilmenau StudiesIn Stuttgart Name: Carol Since: 20 07 ID: 3 Age: 18 Stu ce: 20 Co Sin 0 En mm Since: 201 StudiesIn die f ter cr eO S i s yp uni sIn 4 tiv : te c a la ree d: t fa e s W 0 Re eg ls e D it h Name: Alice Name: Bob CommunicatesWith ID: 0 ID: 1 Encrypted: true Age: 23 Age: 42 Method: RSA 10
  • 11. Graph databases – Definition A graph database is a database that uses graph structures with nodes, edges, and properties to represent and store information. General graph databases that can store any graph are distinct from specialized graph databases such as triplestores and network databases. http://en.wikipedia.org/wiki/Graph_database 11
  • 12. Pros – Data model ● Explicit data model ● Direct mapping of real world network structures 12
  • 13. Pros – Efficient graph traversal ● The most important operation of graph databases ● Recursive search for vertices/edges with certain properties ● Finding paths in graphs ● GraphDB is able to do ~80M vertex- traversals per second 13
  • 14. Pros – Index-free adjacency ● Relations (edges) are directly modeled on the vertex → no need for an additional mapping ● No need for a global index for relations ● Data locality → adjacent vertices can be persisted "close together" (efficient storage) ● → The vertex-traversal performance is independent from the size of the graph 14
  • 15. Cons ● In general the import is slower than in RDBMS ● Relatively new technology ● Lack of standards 15
  • 16. Use cases ● Rating of websites in search engines – Page rank ● Who knows-who in social networks – Shortest path ● Recommendation systems – Bipartite matching ● ... 16
  • 17. Sones GraphDB – Overview ● http://www.sones.com ● Object-oriented graph database ● Property-Hypergraph data model ● Written in C# (97%) ● C# embedded/remote API ● GraphQL ● Non-persistent OSE and proprietary persistent GraphFS 17
  • 18. Sones GraphDB – Architecture 18
  • 19. Sones GraphDB – Architecture 19
  • 20. Sones GraphDB – GraphQL // define Vertex Type CREATE VERTEX User ADD ATTRIBUTES (String Name, SET<User> Friends) INDICES (Name) // add vertices Alice and Bob INSERT INTO User VALUES (Name = "Alice", Age = 23) INSERT INTO User VALUES (Name = "Bob", Age = 42) // add edges between Alice and Bob LINK User(Name = ‘Alice') VIA Friends TO User(Name = ‘Bob') LINK User(Name = ‘Bob') VIA Friends TO User(Name = ‘Alice‘) 20
  • 21. Sones GraphDB – HowTo run it ● Windows: Install Visual Studio (professional and higher) or MonoDevelop ● Linux: Install mono-complete and MonoDevelop ● Download the source from https://github.com/cosh/sones ● Open the „CoreDeveloper.sln“ ● Have phun 21
  • 22. Sones GraphDB – Documentation ● Blog: http://developers.sones.de/ ● Wiki: http://developers.sones.de/wiki/doku.php ● Forum: http://forum.sones.de/ ● BugTracking: http://jira.sones.de/ ● The fastest way to information: /me :) 22
  • 23. Graph visualization ● http://gephi.org/screenshots/ ● http://mbostock.github.com/d3/ ● http://www.fluidops.net/information-workbench/ 23