11 Introduction to Neo4j. 2 We all have our own graphs...

17
1 1 Introduction to Neo4j

Transcript of 11 Introduction to Neo4j. 2 We all have our own graphs...

Page 1: 11 Introduction to Neo4j. 2 We all have our own graphs...

11

Introduction toNeo4j

Page 2: 11 Introduction to Neo4j. 2 We all have our own graphs...

2

Page 3: 11 Introduction to Neo4j. 2 We all have our own graphs...

We all have our own graphs...

Page 4: 11 Introduction to Neo4j. 2 We all have our own graphs...

• Knowledge graph: beyond links, search is smarter when considering how things are related

• Facebook graph search: people are most interested in finding things in their part of the world

• You: have relationships to people, to organizations, to places, to things -- your personal graph

Page 5: 11 Introduction to Neo4j. 2 We all have our own graphs...

55

And why now?

Page 6: 11 Introduction to Neo4j. 2 We all have our own graphs...

A graph...๏ you know the common data structures

• linked lists, trees, object "graphs"

๏ a graph is the general purpose data structure

• suitable for any data that is related

๏ well-understood patterns and algorithms

• studied since Leonard Euler's 7 Bridges (1736)

• Codd's Relational Model (1970)

• not a new idea, just an idea who's time is now

Page 7: 11 Introduction to Neo4j. 2 We all have our own graphs...

A graph database...

๏ optimized for the connections between records

๏ really, really fast at querying across records

๏ a database: transactional with the usual operations

๏ “A relational database may tell you how many books you sold last quarter,

๏ but a graph database will tell your customerwhich book they should buy next.”

Page 8: 11 Introduction to Neo4j. 2 We all have our own graphs...

We're talking about aProperty Graph

Page 9: 11 Introduction to Neo4j. 2 We all have our own graphs...

Neo4j is a Graph Database

๏ A Graph Database:

• a Property Graph containing Nodes, Relationships

• with Properties on both

• perfect for complex, highly connected data

๏ A Graph Database:

• Embeddable on the JVM

• high-performance with High-Availability

Page 10: 11 Introduction to Neo4j. 2 We all have our own graphs...

10

Questions

1.Why graphs? Why now?

★ a new perspective on the same data

2.What's a graph database?

★ a database for connected data

3.How do people use Neo4j?

10

Page 11: 11 Introduction to Neo4j. 2 We all have our own graphs...

[A] Mmm Pancakes[B] ACL from Hell[C] Master of

your Domain

Real World Use Cases:

Page 12: 11 Introduction to Neo4j. 2 We all have our own graphs...

[A] Mozilla Pancake

๏ Experimental cloud-based browser

๏ Built to improve how users Discover, Collect, Share & Organize things on the web

๏ Goal: help users better access & curate information on the net, on any device

This Material is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/

Page 13: 11 Introduction to Neo4j. 2 We all have our own graphs...

Why Neo4J?

๏ The internet is a network of pages connected to each other. What better way to model that than in graphs?

๏ No time lost fighting with less expressive datastores

๏ Easy to implement experimental features

This Material is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/

Page 14: 11 Introduction to Neo4j. 2 We all have our own graphs...

Cute meta + data

This Material is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/

Page 15: 11 Introduction to Neo4j. 2 We all have our own graphs...

[B] ACL from Hell

One of the top 10 telcos worldwide

Page 16: 11 Introduction to Neo4j. 2 We all have our own graphs...

[B] Telenor Background๏ MinBedrif, a self service web

solution for companies

๏ 2010 - calculated that it would not scale with projected growth

Page 17: 11 Introduction to Neo4j. 2 We all have our own graphs...

Really, once you start thinking in graphs

it's hard to stop

Recommendations MDM

Systems ManagementGeospatial

Social computing

Business intelligence

Biotechnology

Making Sense of all that data

your brainaccess control

linguistics

catalogs

genealogy routing

compensationmarket vectors

What will you build?