Graph Your Business - GraphDay JimWebber

Preview:

DESCRIPTION

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

Citation preview

Graph your Business

Dr. Jim WebberChief Scientist, Neo Technology

@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

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

Neo Technology, Inc Confidential

TABLES?

ARGGHHH

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

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

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

“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

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

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

Leonhard Euler(1707 - 1783)

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

Neo Technology, Inc Confidential Image is US Public Domain

A

B

D

C

A

B

D

C

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

Copyright Facebook

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

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

% of People Who Hate Michael Jackson by Date

0

25

50

75

100

June 25, 2009 June 26,2009

Not a Graph

No, actually.

Can’t my relational database can already do this?

Customers AccountsCustomer_Accounts

964 725

964 981

326 $100

725 $632

981 $212

143 Alice

964 Bob

143 725

143 326

name: Alice

bal: $100

bal: $632

bal: $212owns

owns

owns

Customer

Account

Account

Account

964 Bob

Customerowns

Relationships

Nodes

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)

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

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

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

RETURN  customer

A Demo?Using Neo4j 2.1.5 for Retail Analytics in Minutes

Who’s Graphing their business?

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

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…

There’s a graph for your business

whatever your business

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

@jimwebberEnjoy #GraphDay

Recommended