Graph your Business 
Dr. Jim Webber 
Chief 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
TABLES? 
Neo Technology, Inc Confidential 
ARGGHHH
Neo Technology, Inhc tCtopnfi:d/e/nfltiailckr.com/photos/keepingtime_ca/8490224742 by keepingtime_ca, CC BY
By AgnosticPreachersKid (Own work) [NCeoC Te-cBhnYol-oSgy, AInc- 3Co.n0fi d(ehnttiatlp://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, Inhc Cttopnfi:d/e/nfltiailckr.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
A 
Neo Technology, Inc Confidential Image is US Public Domain 
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 
100 
75 
50 
25 
0 
Not a Graph 
June 25, 2009 June 26,2009
Can’t my relational database 
can already do this? 
No, actually.
143 
143 
964 
326 
725 
725 
964 
981 
326 
$100 
725 
$632 
981 
$212 
143 
Alice 
964 
Bob 
Customers Customer_Accounts Accounts
name: Alice 
bal: $100 
bal: $632 
owns 
bal: $212 owns 
Nodes 
owns 
Customer 
Account 
Account 
Account 
964 
Bob 
Customer 
owns 
Relationships
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 
Software Financial Telecoms Health Web / Social Media Education, 
Finance 
Logistics, 
Government 
Accenture 
Energy Aerospace 
Network & 
Data Center 
MDM / System 
Of Record 
Social 
Geo 
Recommendations 
Identity & 
Access Control 
Content 
Management 
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
Enjoy #GraphDay 
@jimwebber

Graph Your Business - GraphDay JimWebber

  • 1.
    Graph your Business Dr. Jim Webber Chief Scientist, Neo Technology @jimwebber
  • 2.
    roadmap • wherewe 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
  • 3.
    Neo Technology, IncConfidential Drupal8 Schema - Copyright drupal.org
  • 4.
    TABLES? Neo Technology,Inc Confidential ARGGHHH
  • 5.
    Neo Technology, InhctCtopnfi:d/e/nfltiailckr.com/photos/keepingtime_ca/8490224742 by keepingtime_ca, CC BY
  • 6.
    By AgnosticPreachersKid (Ownwork) [NCeoC Te-cBhnYol-oSgy, AInc- 3Co.n0fi d(ehnttiatlp://creativecommons.org/licenses/by-sa/3.0)], via Wikimedia Commons
  • 7.
    Neo Technology, IncConfidential http://flickr.com/photos/rueful/5917659410/ by Kiran Foster, CC BY
  • 8.
    “There is asignificant 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
  • 9.
    Neo Technology, InhcCttopnfi:d/e/nfltiailckr.com/photos/wwworks/5319295174 by woodleywonderworks, CC BY
  • 12.
    Neo Technology, IncConfidential Copyright TFL (Transport For London)
  • 13.
    Leonhard Euler (1707- 1783) Image by Jakob Emanuel Handmann [Public domain], via Wikimedia Commons
  • 14.
    A Neo Technology,Inc Confidential Image is US Public Domain B D C
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
    By Euan Richard(Own work) [CC-BY-SA-3.0 (http://creativecommons.org/licenses/by-sa/3.0)], via Wikimedia Commons
  • 20.
    % of PeopleWho Hate Michael Jackson by Date 100 75 50 25 0 Not a Graph June 25, 2009 June 26,2009
  • 21.
    Can’t my relationaldatabase can already do this? No, actually.
  • 22.
    143 143 964 326 725 725 964 981 326 $100 725 $632 981 $212 143 Alice 964 Bob Customers Customer_Accounts Accounts
  • 23.
    name: Alice bal:$100 bal: $632 owns bal: $212 owns Nodes owns Customer Account Account Account 964 Bob Customer owns Relationships
  • 24.
    Labeled Property GraphModel • 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)
  • 30.
    MATCH (customer)-­‐[:BOUGHT]-­‐>()-­‐[:IN*]-­‐>(:Category {name:'Baby'}), (customer)-­‐[:BOUGHT]-­‐>()-­‐[:IN*]-­‐>(:Category {name:'Beer'}) WHERE NOT (customer)-­‐[:BOUGHT]-­‐>()-­‐[:IN*]-­‐>(:Category {name:'Console'}) RETURN customer
  • 31.
    A Demo? UsingNeo4j 2.1.5 for Retail Analytics in Minutes
  • 32.
  • 37.
    Aviation Software FinancialTelecoms Health Web / Social Media Education, Finance Logistics, Government Accenture Energy Aerospace Network & Data Center MDM / System Of Record Social Geo Recommendations Identity & Access Control Content Management Business Intel., Audit, CRM
  • 38.
    What’s Neo4j goodfor? • 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…
  • 39.
    There’s a graphfor your business whatever your business
  • 40.
    Resources • GraphDatabases 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
  • 41.