Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Graph Databases: What? Why? and How?

Graph Databases: What? Why? and How?

Introduction to graph databases with a simple practical example

Nicky Wrightson

September 20, 2018
Tweet

More Decks by Nicky Wrightson

Other Decks in Technology

Transcript

  1. What? What is a graph database? Why? Why use a

    graph database? How? How to use a graph database
  2. Graph Theory G = (V, E) Where V is a

    set of nodes also called vertices E is a set of edges also called links
  3. “a graph database is a database designed to treat the

    relationships between data as equally important to the data itself” Neo4J https://neo4j.com/developer/graph-database/
  4. What? What is a graph database? Why? Why use a

    graph database? How? How to use a graph database
  5. PREFIX foaf: <http://xmlns.com/foaf/0.1/> SELECT ?name WHERE { ?person foaf:name ?name

    . } Find me all subjects (?person) and objects (?name) linked with the foaf:name predicate
  6. Give me the details of who killed their own relative?

    MATCH (killer:Person)- [:HAS_FATHER|:HAS_MOTHER|:HAS_SIBLING]- (relative:Person)-[:KILLED_BY]-(killer) RETURN killer, relative https://github.com/nwrigh/game-of-thrones-dataset
  7. Other examples …. Which house killed the most? Which house

    married the most? https://github.com/nwrigh/game-of-thrones-dataset