graph your business - graphday jimwebber

41
Graph your Business Dr. Jim Webber Chief Scientist, Neo Technology @jimwebber

Upload: neo4j-the-fastest-and-most-scalable-native-graph-database

Post on 30-Jun-2015

298 views

Category:

Technology


0 download

DESCRIPTION

GraphDay London 2014 Graph Your Business! An Introduction to Graph Databases With Jim Webber

TRANSCRIPT

Page 1: Graph Your Business - GraphDay JimWebber

Graph your Business

Dr. Jim WebberChief Scientist, Neo Technology

@jimwebber

Page 2: Graph Your Business - GraphDay JimWebber

roadmap• where we are (mostly)

• imprisoned data

• a little history

• labeled property graph model

• connected data

• using a whiteboard

http://flickr.com/photos/23465812@N00/7898643042 by davecito, CC BY

Page 3: Graph Your Business - GraphDay JimWebber

Neo Technology, Inc Confidential Drupal8 Schema - Copyright drupal.org

Page 4: Graph Your Business - GraphDay JimWebber

Neo Technology, Inc Confidential

TABLES?

ARGGHHH

Page 5: Graph Your Business - GraphDay JimWebber

Neo Technology, Inc Confidentialhttp://flickr.com/photos/keepingtime_ca/8490224742 by keepingtime_ca, CC BY

Page 6: Graph Your Business - GraphDay JimWebber

Neo Technology, Inc ConfidentialBy AgnosticPreachersKid (Own work) [CC-BY-SA-3.0 (http://creativecommons.org/licenses/by-sa/3.0)], via Wikimedia Commons

Page 7: Graph Your Business - GraphDay JimWebber

Neo Technology, Inc Confidential http://flickr.com/photos/rueful/5917659410/ by Kiran Foster, CC BY

Page 8: Graph Your Business - GraphDay JimWebber

“There is a significant downside - the whole approach works really well when data access is aligned with the aggregates, but what if you want to look at the data in a different way? Order entry naturally stores orders as

aggregates, but analyzing product sales cuts across the aggregate structure. The advantage of not using an aggregate structure in the

database is that it allows you to slice and dice your data different ways for different audiences.

This is why aggregate-oriented stores talk so much about map-reduce.”

– Martin Fowler, http://martinfowler.com/bliki/AggregateOrientedDatabase.html

Page 9: Graph Your Business - GraphDay JimWebber

Neo Technology, Inc Confidentialhttp://flickr.com/photos/wwworks/5319295174 by woodleywonderworks, CC BY

Page 10: Graph Your Business - GraphDay JimWebber
Page 11: Graph Your Business - GraphDay JimWebber
Page 12: Graph Your Business - GraphDay JimWebber

Neo Technology, Inc Confidential Copyright TFL (Transport For London)

Page 13: Graph Your Business - GraphDay JimWebber

Leonhard Euler(1707 - 1783)

Image by Jakob Emanuel Handmann [Public domain], via Wikimedia Commons

Page 14: Graph Your Business - GraphDay JimWebber

Neo Technology, Inc Confidential Image is US Public Domain

A

B

D

C

Page 15: Graph Your Business - GraphDay JimWebber

A

B

D

C

Page 16: Graph Your Business - GraphDay JimWebber

http://flickr.com/photos/samchurchill/8022804713 by Sam Churchill, CC BY

Page 17: Graph Your Business - GraphDay JimWebber

Copyright Facebook

Page 18: Graph Your Business - GraphDay JimWebber

[CC-BY-SA-3.0 (http://creativecommons.org/licenses/by-sa/3.0)], via Wikimedia Commons

Page 19: Graph Your Business - GraphDay JimWebber

By Euan Richard (Own work) [CC-BY-SA-3.0 (http://creativecommons.org/licenses/by-sa/3.0)], via Wikimedia Commons

Page 20: Graph Your Business - GraphDay JimWebber

% of People Who Hate Michael Jackson by Date

0

25

50

75

100

June 25, 2009 June 26,2009

Not a Graph

Page 21: Graph Your Business - GraphDay JimWebber

No, actually.

Can’t my relational database can already do this?

Page 22: Graph Your Business - GraphDay JimWebber

Customers AccountsCustomer_Accounts

964 725

964 981

326 $100

725 $632

981 $212

143 Alice

964 Bob

143 725

143 326

Page 23: Graph Your Business - GraphDay JimWebber

name: Alice

bal: $100

bal: $632

bal: $212owns

owns

owns

Customer

Account

Account

Account

964 Bob

Customerowns

Relationships

Nodes

Page 24: Graph Your Business - GraphDay JimWebber

Labeled Property Graph Model

• Nodes with optional labels and optional properties

• Named, directed Relationships with optional properties

(Relationships have exactly one start and one end node, which may be the same node)

Page 25: Graph Your Business - GraphDay JimWebber
Page 26: Graph Your Business - GraphDay JimWebber
Page 27: Graph Your Business - GraphDay JimWebber
Page 28: Graph Your Business - GraphDay JimWebber
Page 29: Graph Your Business - GraphDay JimWebber
Page 30: Graph Your Business - GraphDay JimWebber

MATCH  (customer)-­‐[:BOUGHT]-­‐>()-­‐[:IN*]-­‐>(:Category  {name:'Baby'}),  

           (customer)-­‐[:BOUGHT]-­‐>()-­‐[:IN*]-­‐>(:Category  {name:'Beer'})  

WHERE  NOT  (customer)-­‐[:BOUGHT]-­‐>()-­‐[:IN*]-­‐>(:Category  {name:'Console'})  

RETURN  customer

Page 31: Graph Your Business - GraphDay JimWebber

A Demo?Using Neo4j 2.1.5 for Retail Analytics in Minutes

Page 32: Graph Your Business - GraphDay JimWebber

Who’s Graphing their business?

Page 33: Graph Your Business - GraphDay JimWebber
Page 34: Graph Your Business - GraphDay JimWebber
Page 35: Graph Your Business - GraphDay JimWebber
Page 36: Graph Your Business - GraphDay JimWebber
Page 37: Graph Your Business - GraphDay JimWebber

Aviation

Finance

Accenture

AerospaceEnergy

Software Financial Telecoms Health Web / Social Media Education, Logistics,

Government

Network &Data Center

MDM / SystemOf Record

Social

Geo

Recommendations

Identity & Access Control

ContentManagement

Business Intel.,Audit, CRM

Page 38: Graph Your Business - GraphDay JimWebber

What’s Neo4j good for?• Recommendations

• Meta-index/360 degree view

• Social networks

• Content Management

• MDM / System-of-Record

• Financial Audit / Modeling / Fraud

• Business intelligence

• Data centre management

• Supply chain/provenance

• Product Catalogue

• Web of things

• Time series/event data

• Web analytics, user journeys

• Scientific computing

• Spatial

• Geo/Seismic/Meteorological

• Bio/Pharma

• And much, much more…

Page 39: Graph Your Business - GraphDay JimWebber

There’s a graph for your business

whatever your business

Page 40: Graph Your Business - GraphDay JimWebber

Resources• Graph Databases Book (O’Reilly)

• Full, free eBook available: http://graphdatabases.com

• Learning Neo4j Book (Packt)

• Full, free eBook available: http://neo4j.com/book-learning-neo4j/

• Free online training:

• http://www.neo4j.org/learn/online_course

Page 41: Graph Your Business - GraphDay JimWebber

@jimwebberEnjoy #GraphDay