SlideShare a Scribd company logo
© 2022 Neo4j, Inc. All rights reserved.
© 2022 Neo4j, Inc. All rights reserved.
Andreas Kollegger & Niels De Jong
ROAD TO NODES
Intro to Neo4j & Interactive
Dashboarding with NeoDash
© 2022 Neo4j, Inc. All rights reserved.
Today we will cover
● What is a graph database?
● How to query a graph database?
● Hands on: Low-code Dashboarding with NeoDash
● Bring your questions!
© 2022 Neo4j, Inc. All rights reserved.
Graph Database
Fundamentals
© 2022 Neo4j, Inc. All rights reserved.
Macbook
Graph Database
Fundamentals
Nodes
© 2022 Neo4j, Inc. All rights reserved.
Macbook
Graph Database
Fundamentals
Nodes
Nodes represent things
© 2022 Neo4j, Inc. All rights reserved.
Macbook
Product
Graph Database
Fundamentals
Nodes
Nodes represent things
Nodes can be identified by
one or more labels
© 2022 Neo4j, Inc. All rights reserved.
Macbook
Product
Graph Database
Fundamentals
Nodes
Nodes represent things
Nodes can be identified by
one or more labels
Fragile
© 2022 Neo4j, Inc. All rights reserved.
Macbook
Product
name: Macbook Pro
price: 2699.00
Graph Database
Fundamentals
Nodes
Nodes represent things
Nodes can be identified by
one or more labels
Nodes can hold properties
as key/value pairs
Fragile
© 2022 Neo4j, Inc. All rights reserved.
Customer
name: Andreas
email: andreas@neo4j.com
Graph Database
Fundamentals
Relationships
Product
name: Macbook Pro
price: 2699.00
© 2022 Neo4j, Inc. All rights reserved.
Customer
Graph Database
Fundamentals
Relationships
Product
name: Macbook Pro
price: 2699.00
name: Andreas
email: andreas@neo4j.com
© 2022 Neo4j, Inc. All rights reserved.
Customer
Graph Database
Fundamentals
Relationships
Relationships connect two nodes
Product
name: Macbook Pro
price: 2699.00
name: Andreas
email: andreas@neo4j.com
© 2022 Neo4j, Inc. All rights reserved.
Customer
Graph Database
Fundamentals
Relationships
Relationships connect two nodes
Relationships have a type
Product
name: Macbook Pro
price: 2699.00
RATED
name: Andreas
email: andreas@neo4j.com
© 2022 Neo4j, Inc. All rights reserved.
Relationships have a direction
Customer
Graph Database
Fundamentals
Relationships
Relationships connect two nodes
Relationships have a type
Product
name: Macbook Pro
price: 2699.00
RATED
name: Andreas
email: andreas@neo4j.com
© 2022 Neo4j, Inc. All rights reserved.
Relationships have a direction
Customer
Graph Database
Fundamentals
Relationships
Relationships connect two nodes
Relationships have a type
Product
name: Macbook Pro
price: 2699.00
RATED
stars: 3
createdAt: 2023-03-22
Relationships can hold properties
as key/value pairs
name: Andreas
email: andreas@neo4j.com
© 2022 Neo4j, Inc. All rights reserved.
Graph Database
Fundamentals
Cypher
Introduction to Cypher
Cypher is a declarative language that allows
you to identify patterns in your data using
an ASCII-art style syntax consisting of
brackets, dashes and arrows.
© 2022 Neo4j, Inc. All rights reserved.
Graph Database
Fundamentals
Cypher
Introduction to Cypher
Cypher is a declarative language that allows
you to identify patterns in your data using
an ASCII-art style syntax consisting of
brackets, dashes and arrows.
Product
RATED
Customer
© 2022 Neo4j, Inc. All rights reserved.
Graph Database
Fundamentals
Cypher
Introduction to Cypher
Cypher is a declarative language that allows
you to identify patterns in your data using
an ASCII-art style syntax consisting of
brackets, dashes and arrows.
Product
RATED
Customer
© 2022 Neo4j, Inc. All rights reserved.
Graph Database
Fundamentals
Cypher
Introduction to Cypher
Cypher is a declarative language that allows
you to identify patterns in your data using
an ASCII-art style syntax consisting of
brackets, dashes and arrows.
Product
RATED
Customer
(c:Customer)-[r:RATED]->(p:Product)
© 2022 Neo4j, Inc. All rights reserved.
Graph Database
Fundamentals
Cypher
Introduction to Cypher
Cypher is a declarative language that allows
you to identify patterns in your data using
an ASCII-art style syntax consisting of
brackets, dashes and arrows.
Product
RATED
Customer
(c:Customer)-[r:RATED]->(p:Product)
© 2022 Neo4j, Inc. All rights reserved.
Graph Database
Fundamentals
Cypher
Introduction to Cypher
Cypher is a declarative language that allows
you to identify patterns in your data using
an ASCII-art style syntax consisting of
brackets, dashes and arrows.
Product
RATED
Customer
(c:Customer)-[r:RATED]->(p:Product)
© 2022 Neo4j, Inc. All rights reserved.
Graph Database
Fundamentals
Cypher
Introduction to Cypher
Cypher is a declarative language that allows
you to identify patterns in your data using
an ASCII-art style syntax consisting of
brackets, dashes and arrows.
Product
RATED
Customer
(c:Customer)-[r:RATED]->(p:Product)
© 2022 Neo4j, Inc. All rights reserved.
Graph Database
Fundamentals
Cypher
Introduction to Cypher
Cypher is a declarative language that allows
you to identify patterns in your data using
an ASCII-art style syntax consisting of
brackets, dashes and arrows.
Product
RATED
Customer
(c:Customer)-[r:RATED]->(p:Product)
© 2022 Neo4j, Inc. All rights reserved.
Graph Database
Fundamentals
Cypher
Introduction to Cypher
Cypher is a declarative language that allows
you to identify patterns in your data using
an ASCII-art style syntax consisting of
brackets, dashes and arrows.
Product
RATED
Customer
(c:Customer)-[r:RATED]->(p:Product)
© 2022 Neo4j, Inc. All rights reserved.
Graph Database
Fundamentals
Cypher
Introduction to Cypher
Cypher is a declarative language that allows
you to identify patterns in your data using
an ASCII-art style syntax consisting of
brackets, dashes and arrows.
Product
RATED
Customer
(c:Customer)-[r:RATED]->(p:Product)
© 2022 Neo4j, Inc. All rights reserved.
name: Adam
email: adam@neo4j.com
Graph Database
Fundamentals
The MATCH clause
Product
name: Macbook Pro
price: 2699.00
RATED
stars: 3
createdAt: 2023-03-22
MATCH (c:Customer)-[r:RATED]->(p:Product)
RETURN c.name AS customer, p.name AS product, r.stars
AS rating
Customer
name: Andreas
email: andreas@neo4j.com
© 2022 Neo4j, Inc. All rights reserved.
Building Neo4j Dashboards with
NeoDash
Niels de Jong
© 2022 Neo4j, Inc. All rights reserved.
What’s next?
Now that we have an understanding of Cypher, let's create a dashboard to
visualize our graph!
© 2022 Neo4j, Inc. All rights reserved.
© 2022 Neo4j, Inc. All rights reserved.
What is NeoDash?
NeoDash is an open-source, low-code Dashboard Builder for Neo4j. It
lets you build an interactive dashboard with tables, graphs, bar charts,
line charts, maps and more, in minutes.
👤
>1000 monthly
users
🌎
Used in
>100 countries
⭐
Used by dozens of
companies worldwide
󰟾
Neo4j Labs Project*
*Neo4j Labs projects are free, open-source tools that complement the Neo4j product suite. Check out https://neo4j.com/labs/
© 2022 Neo4j, Inc. All rights reserved.
The NeoDash Dashboard Editor
NeoDash key features:
- Use Cypher queries to populate reports
- Drag-and-drop interface
- If you know Cypher, you can create a dashboard in a matter of minutes
© 2022 Neo4j, Inc. All rights reserved.
An Extendable Framework
NeoDash is fully extendable to:
- Add/customize visualizations
- Add company branding
- Add new functionality
NeoDash
Editor
🧩
Custom user
logic
🧩
Custom
Visualizations
🧩
Rule-based
Styling
© 2022 Neo4j, Inc. All rights reserved.
The Dataset
RecipeNLG:
- 2.2M recipes
- With steps
- And ingredients
- Scraped from
cookbooks.com,
recipe-plus.com,
…
© 2022 Neo4j, Inc. All rights reserved.
Graph-Chef
With our recipe dataset loaded
into Neo4j, lets use NeoDash for:
1. Creating a search engine for
recipes
2. Avoiding food waste! Look up
recipes with what is in my fridge
3. Identifying common
combinations of ingredients.
What goes well together?
4. Cooking inspiration. Can we
create new recipes by looking at
graph patterns?
© 2022 Neo4j, Inc. All rights reserved.
Final note before getting started
We will be using Neo4j Aura for this demo.
You can create your own Neo4j Aura instance for free at https://neo4j.io.
You can access NeoDash at https://neodash.graphapp.io.
© 2022 Neo4j, Inc. All rights reserved.
Page 1 - Overview
We start off with some simple Cypher queries to analyze the graph.
- Show me the graph schema.
- How many recipes in total?
- How many ingredients in total?
- How many steps in total?
Looking at burgers:
- How many burger recipes?
- How many unique ingredients in burgers?
- How many steps on average to create a burger? Bar chart!
- What is the most complex burger? Graph
- What top 10 ingredients are common across burger recipes? Pie chart!
- Is there a preparation step that burger recipes share?
© 2022 Neo4j, Inc. All rights reserved.
Page 2 - Recipes
Moving on to slightly more complex queries, using parameters for interactivity.
Search functionality:
- Show me a graph of all ingredients for ‘Pear Pancakes’.
- Turn it into a searchable widget.
- Show me also a table of ingredients, side-by-side.
- Add a table of steps.
- Try ‘Dutch Pancakes’. Do we see an interesting pattern?
© 2022 Neo4j, Inc. All rights reserved.
Page 3 - Ingredients
Finally we do some more complex queries to
demonstrate the power of Cypher.
Ingredient search:
- Create a search for ingredients
- Show a graph of recipes with the ingredient
- Common pairings with selected ingredient
Multi-ingredients:
- Change selector to multi-selector
- Fix the graph visualization to work with multiple
parameters
- Suggest ingredient pairings based on the set of
ingredients selected
// Subqueries with post-processing
UNWIND $neodash_ingredient_name as name
CALL {
WITH name
MATCH p=(i:Ingredient)-[:IN]-(r:Recipe)
WHERE i.name = name
RETURN r
}
WITH r, COUNT(r) as count
WHERE count = size($neodash_ingredient_name)
WITH r LIMIT 10
MATCH (r)-[in:IN]-(i:Ingredient)
RETURN r, in, i
// Using subqueries
UNWIND $neodash_ingredient_name as name
CALL {
WITH name
MATCH p=(i:Ingredient)-[in:IN]-(r:Recipe)
WHERE i.name = name
RETURN i, in, r
LIMIT 10
}
RETURN i, in, r
// Even more post-processing!
UNWIND $neodash_ingredient_name as name
CALL {
WITH name
MATCH p=(i:Ingredient)-[:IN]-(r:Recipe)
WHERE i.name = name
RETURN r
}
WITH r, COUNT(r) as count
WHERE count = size($neodash_ingredient_name)
WITH r
MATCH (r)-[in:IN]-(i:Ingredient)
WHERE NOT i.name in $neodash_ingredient_name
RETURN i.name, COUNT(r) ORDER BY COUNT(r) DESC
© 2022 Neo4j, Inc. All rights reserved.
Wrapping up
We will continue working on this dataset on October 26, at NODES 2023!
The recipe dataset will be published around this time.
Want to try out NeoDash in the meantime?
Visit https://neodash-gallery.graphapp.io for public demo dashboards.

More Related Content

PPT
Tableau Architecture
PDF
Data Modeling with Neo4j
PDF
Introducing Multi Valued Vectors Fields in Apache Lucene
PDF
[EPPG] Oracle to PostgreSQL, Challenges to Opportunity
PDF
Optimizing the Supply Chain with Knowledge Graphs, IoT and Digital Twins_Moor...
PDF
45 ways to speed up firebird database
PDF
Strongly Consistent Global Indexes for Apache Phoenix
PDF
The path to success with Graph Database and Graph Data Science
Tableau Architecture
Data Modeling with Neo4j
Introducing Multi Valued Vectors Fields in Apache Lucene
[EPPG] Oracle to PostgreSQL, Challenges to Opportunity
Optimizing the Supply Chain with Knowledge Graphs, IoT and Digital Twins_Moor...
45 ways to speed up firebird database
Strongly Consistent Global Indexes for Apache Phoenix
The path to success with Graph Database and Graph Data Science

What's hot (20)

PDF
MariaDB 제품 소개
PPTX
The Perfect Linux Security Firewalls
PPTX
CCNA EIGRP Overview and Basic Configuration
PDF
PDF
Designing and Building a Graph Database Application – Architectural Choices, ...
PPTX
SOUG Oracle Unified Audit for Multitenant Databases
PDF
How to become a visualization guru in Web Intelligence
PPT
Graph database
PPTX
Sql 2012 always on
PPTX
The art of the possible with graph technology_Neo4j GraphSummit Dublin 2023.pptx
PDF
Highly efficient backups with percona xtrabackup
PPTX
Query Optimizer – MySQL vs. PostgreSQL
PDF
Oracle to Postgres Migration - part 1
PDF
Adobe Behance Scales to Millions of Users at Lower TCO with Neo4j
PPT
MySQL Cluster Basics
PDF
MySQL Parallel Replication: All the 5.7 and 8.0 Details (LOGICAL_CLOCK)
PDF
NoSQL @ CodeMash 2010
PDF
Care and Feeding of Catalyst Optimizer
PDF
Delivering Self-Service Analytics using Big Data and Data Virtualization on t...
PDF
EDB Postgres DBA Best Practices
 
MariaDB 제품 소개
The Perfect Linux Security Firewalls
CCNA EIGRP Overview and Basic Configuration
Designing and Building a Graph Database Application – Architectural Choices, ...
SOUG Oracle Unified Audit for Multitenant Databases
How to become a visualization guru in Web Intelligence
Graph database
Sql 2012 always on
The art of the possible with graph technology_Neo4j GraphSummit Dublin 2023.pptx
Highly efficient backups with percona xtrabackup
Query Optimizer – MySQL vs. PostgreSQL
Oracle to Postgres Migration - part 1
Adobe Behance Scales to Millions of Users at Lower TCO with Neo4j
MySQL Cluster Basics
MySQL Parallel Replication: All the 5.7 and 8.0 Details (LOGICAL_CLOCK)
NoSQL @ CodeMash 2010
Care and Feeding of Catalyst Optimizer
Delivering Self-Service Analytics using Big Data and Data Virtualization on t...
EDB Postgres DBA Best Practices
 
Ad

Similar to ROAD TO NODES - Intro to Neo4j + NeoDash.pdf (20)

PDF
Intermediate Cypher.pdf
PDF
Neo4j Graph Summit 2024 Workshop - EMEA - Breda_and_Munchen.pdf
PDF
Neo4j Introduction Workshop for Partners
PDF
Open Architecture in the Adobe Marketing Cloud - Summit 2014
PPTX
NeoDash - Building Neo4j Dashboards In Minutes
PDF
Neo4j: The path to success with Graph Database and Graph Data Science
PDF
GPT and Graph Data Science to power your Knowledge Graph
PDF
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
PPTX
18 facets of the OpenAPI specification - Cisco Live US 2023
PPTX
the 12 facets of OpenAPI
PDF
Neo4j Product update and new Aura Platform
PDF
apidays Paris 2022 - The 12 Facets of the OpenAPI Specification, Steve Sfartz...
PDF
Training Series - Intro to Neo4j
PDF
Ultime Novità di Prodotto Neo4j
PDF
Atlantis Word Processor 4.4.5.1 Free Download
PDF
Auslogics Video Grabber Free 1.0.0.12 Free
PPTX
Neo4j & AWS Bedrock workshop at GraphSummit London 14 Nov 2023.pptx
PDF
Capture One Enterprise for MacOS Download
PDF
Postgres: The NoSQL Cake You Can Eat
 
PPTX
Optimizing Your Supply Chain with Neo4j
Intermediate Cypher.pdf
Neo4j Graph Summit 2024 Workshop - EMEA - Breda_and_Munchen.pdf
Neo4j Introduction Workshop for Partners
Open Architecture in the Adobe Marketing Cloud - Summit 2014
NeoDash - Building Neo4j Dashboards In Minutes
Neo4j: The path to success with Graph Database and Graph Data Science
GPT and Graph Data Science to power your Knowledge Graph
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
18 facets of the OpenAPI specification - Cisco Live US 2023
the 12 facets of OpenAPI
Neo4j Product update and new Aura Platform
apidays Paris 2022 - The 12 Facets of the OpenAPI Specification, Steve Sfartz...
Training Series - Intro to Neo4j
Ultime Novità di Prodotto Neo4j
Atlantis Word Processor 4.4.5.1 Free Download
Auslogics Video Grabber Free 1.0.0.12 Free
Neo4j & AWS Bedrock workshop at GraphSummit London 14 Nov 2023.pptx
Capture One Enterprise for MacOS Download
Postgres: The NoSQL Cake You Can Eat
 
Optimizing Your Supply Chain with Neo4j
Ad

More from Neo4j (20)

PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
PDF
Jin Foo - Prospa GraphSummit Sydney Presentation.pdf
PDF
GraphSummit Singapore Master Deck - May 20, 2025
PPTX
Graphs & GraphRAG - Essential Ingredients for GenAI
PPTX
Neo4j Knowledge for Customer Experience.pptx
PPTX
GraphTalk New Zealand - The Art of The Possible.pptx
PDF
Neo4j: The Art of the Possible with Graph
PDF
Smarter Knowledge Graphs For Public Sector
PDF
GraphRAG and Knowledge Graphs Exploring AI's Future
PDF
Matinée GenAI & GraphRAG Paris - Décembre 24
PDF
ANZ Presentation: GraphSummit Melbourne 2024
PDF
Google Cloud Presentation GraphSummit Melbourne 2024: Building Generative AI ...
PDF
Telstra Presentation GraphSummit Melbourne: Optimising Business Outcomes with...
PDF
Hands-On GraphRAG Workshop: GraphSummit Melbourne 2024
PDF
Démonstration Digital Twin Building Wire Management
PDF
Swiss Life - Les graphes au service de la détection de fraude dans le domaine...
PDF
Démonstration Supply Chain - GraphTalk Paris
PDF
The Art of Possible - GraphTalk Paris Opening Session
PPTX
How Siemens bolstered supply chain resilience with graph-powered AI insights ...
PDF
Knowledge Graphs for AI-Ready Data and Enterprise Deployment - Gartner IT Sym...
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Jin Foo - Prospa GraphSummit Sydney Presentation.pdf
GraphSummit Singapore Master Deck - May 20, 2025
Graphs & GraphRAG - Essential Ingredients for GenAI
Neo4j Knowledge for Customer Experience.pptx
GraphTalk New Zealand - The Art of The Possible.pptx
Neo4j: The Art of the Possible with Graph
Smarter Knowledge Graphs For Public Sector
GraphRAG and Knowledge Graphs Exploring AI's Future
Matinée GenAI & GraphRAG Paris - Décembre 24
ANZ Presentation: GraphSummit Melbourne 2024
Google Cloud Presentation GraphSummit Melbourne 2024: Building Generative AI ...
Telstra Presentation GraphSummit Melbourne: Optimising Business Outcomes with...
Hands-On GraphRAG Workshop: GraphSummit Melbourne 2024
Démonstration Digital Twin Building Wire Management
Swiss Life - Les graphes au service de la détection de fraude dans le domaine...
Démonstration Supply Chain - GraphTalk Paris
The Art of Possible - GraphTalk Paris Opening Session
How Siemens bolstered supply chain resilience with graph-powered AI insights ...
Knowledge Graphs for AI-Ready Data and Enterprise Deployment - Gartner IT Sym...

Recently uploaded (20)

PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PDF
Digital Strategies for Manufacturing Companies
PPTX
Operating system designcfffgfgggggggvggggggggg
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PPT
Introduction Database Management System for Course Database
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PPTX
CHAPTER 2 - PM Management and IT Context
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PDF
Understanding Forklifts - TECH EHS Solution
PPTX
Reimagine Home Health with the Power of Agentic AI​
PDF
Nekopoi APK 2025 free lastest update
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PPTX
Transform Your Business with a Software ERP System
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
wealthsignaloriginal-com-DS-text-... (1).pdf
Digital Strategies for Manufacturing Companies
Operating system designcfffgfgggggggvggggggggg
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
Introduction Database Management System for Course Database
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
CHAPTER 2 - PM Management and IT Context
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
Understanding Forklifts - TECH EHS Solution
Reimagine Home Health with the Power of Agentic AI​
Nekopoi APK 2025 free lastest update
How to Migrate SBCGlobal Email to Yahoo Easily
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
How to Choose the Right IT Partner for Your Business in Malaysia
Transform Your Business with a Software ERP System
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus

ROAD TO NODES - Intro to Neo4j + NeoDash.pdf

  • 1. © 2022 Neo4j, Inc. All rights reserved. © 2022 Neo4j, Inc. All rights reserved. Andreas Kollegger & Niels De Jong ROAD TO NODES Intro to Neo4j & Interactive Dashboarding with NeoDash
  • 2. © 2022 Neo4j, Inc. All rights reserved. Today we will cover ● What is a graph database? ● How to query a graph database? ● Hands on: Low-code Dashboarding with NeoDash ● Bring your questions!
  • 3. © 2022 Neo4j, Inc. All rights reserved. Graph Database Fundamentals
  • 4. © 2022 Neo4j, Inc. All rights reserved. Macbook Graph Database Fundamentals Nodes
  • 5. © 2022 Neo4j, Inc. All rights reserved. Macbook Graph Database Fundamentals Nodes Nodes represent things
  • 6. © 2022 Neo4j, Inc. All rights reserved. Macbook Product Graph Database Fundamentals Nodes Nodes represent things Nodes can be identified by one or more labels
  • 7. © 2022 Neo4j, Inc. All rights reserved. Macbook Product Graph Database Fundamentals Nodes Nodes represent things Nodes can be identified by one or more labels Fragile
  • 8. © 2022 Neo4j, Inc. All rights reserved. Macbook Product name: Macbook Pro price: 2699.00 Graph Database Fundamentals Nodes Nodes represent things Nodes can be identified by one or more labels Nodes can hold properties as key/value pairs Fragile
  • 9. © 2022 Neo4j, Inc. All rights reserved. Customer name: Andreas email: andreas@neo4j.com Graph Database Fundamentals Relationships Product name: Macbook Pro price: 2699.00
  • 10. © 2022 Neo4j, Inc. All rights reserved. Customer Graph Database Fundamentals Relationships Product name: Macbook Pro price: 2699.00 name: Andreas email: andreas@neo4j.com
  • 11. © 2022 Neo4j, Inc. All rights reserved. Customer Graph Database Fundamentals Relationships Relationships connect two nodes Product name: Macbook Pro price: 2699.00 name: Andreas email: andreas@neo4j.com
  • 12. © 2022 Neo4j, Inc. All rights reserved. Customer Graph Database Fundamentals Relationships Relationships connect two nodes Relationships have a type Product name: Macbook Pro price: 2699.00 RATED name: Andreas email: andreas@neo4j.com
  • 13. © 2022 Neo4j, Inc. All rights reserved. Relationships have a direction Customer Graph Database Fundamentals Relationships Relationships connect two nodes Relationships have a type Product name: Macbook Pro price: 2699.00 RATED name: Andreas email: andreas@neo4j.com
  • 14. © 2022 Neo4j, Inc. All rights reserved. Relationships have a direction Customer Graph Database Fundamentals Relationships Relationships connect two nodes Relationships have a type Product name: Macbook Pro price: 2699.00 RATED stars: 3 createdAt: 2023-03-22 Relationships can hold properties as key/value pairs name: Andreas email: andreas@neo4j.com
  • 15. © 2022 Neo4j, Inc. All rights reserved. Graph Database Fundamentals Cypher Introduction to Cypher Cypher is a declarative language that allows you to identify patterns in your data using an ASCII-art style syntax consisting of brackets, dashes and arrows.
  • 16. © 2022 Neo4j, Inc. All rights reserved. Graph Database Fundamentals Cypher Introduction to Cypher Cypher is a declarative language that allows you to identify patterns in your data using an ASCII-art style syntax consisting of brackets, dashes and arrows. Product RATED Customer
  • 17. © 2022 Neo4j, Inc. All rights reserved. Graph Database Fundamentals Cypher Introduction to Cypher Cypher is a declarative language that allows you to identify patterns in your data using an ASCII-art style syntax consisting of brackets, dashes and arrows. Product RATED Customer
  • 18. © 2022 Neo4j, Inc. All rights reserved. Graph Database Fundamentals Cypher Introduction to Cypher Cypher is a declarative language that allows you to identify patterns in your data using an ASCII-art style syntax consisting of brackets, dashes and arrows. Product RATED Customer (c:Customer)-[r:RATED]->(p:Product)
  • 19. © 2022 Neo4j, Inc. All rights reserved. Graph Database Fundamentals Cypher Introduction to Cypher Cypher is a declarative language that allows you to identify patterns in your data using an ASCII-art style syntax consisting of brackets, dashes and arrows. Product RATED Customer (c:Customer)-[r:RATED]->(p:Product)
  • 20. © 2022 Neo4j, Inc. All rights reserved. Graph Database Fundamentals Cypher Introduction to Cypher Cypher is a declarative language that allows you to identify patterns in your data using an ASCII-art style syntax consisting of brackets, dashes and arrows. Product RATED Customer (c:Customer)-[r:RATED]->(p:Product)
  • 21. © 2022 Neo4j, Inc. All rights reserved. Graph Database Fundamentals Cypher Introduction to Cypher Cypher is a declarative language that allows you to identify patterns in your data using an ASCII-art style syntax consisting of brackets, dashes and arrows. Product RATED Customer (c:Customer)-[r:RATED]->(p:Product)
  • 22. © 2022 Neo4j, Inc. All rights reserved. Graph Database Fundamentals Cypher Introduction to Cypher Cypher is a declarative language that allows you to identify patterns in your data using an ASCII-art style syntax consisting of brackets, dashes and arrows. Product RATED Customer (c:Customer)-[r:RATED]->(p:Product)
  • 23. © 2022 Neo4j, Inc. All rights reserved. Graph Database Fundamentals Cypher Introduction to Cypher Cypher is a declarative language that allows you to identify patterns in your data using an ASCII-art style syntax consisting of brackets, dashes and arrows. Product RATED Customer (c:Customer)-[r:RATED]->(p:Product)
  • 24. © 2022 Neo4j, Inc. All rights reserved. Graph Database Fundamentals Cypher Introduction to Cypher Cypher is a declarative language that allows you to identify patterns in your data using an ASCII-art style syntax consisting of brackets, dashes and arrows. Product RATED Customer (c:Customer)-[r:RATED]->(p:Product)
  • 25. © 2022 Neo4j, Inc. All rights reserved. name: Adam email: adam@neo4j.com Graph Database Fundamentals The MATCH clause Product name: Macbook Pro price: 2699.00 RATED stars: 3 createdAt: 2023-03-22 MATCH (c:Customer)-[r:RATED]->(p:Product) RETURN c.name AS customer, p.name AS product, r.stars AS rating Customer name: Andreas email: andreas@neo4j.com
  • 26. © 2022 Neo4j, Inc. All rights reserved. Building Neo4j Dashboards with NeoDash Niels de Jong
  • 27. © 2022 Neo4j, Inc. All rights reserved. What’s next? Now that we have an understanding of Cypher, let's create a dashboard to visualize our graph!
  • 28. © 2022 Neo4j, Inc. All rights reserved. © 2022 Neo4j, Inc. All rights reserved. What is NeoDash? NeoDash is an open-source, low-code Dashboard Builder for Neo4j. It lets you build an interactive dashboard with tables, graphs, bar charts, line charts, maps and more, in minutes. 👤 >1000 monthly users 🌎 Used in >100 countries ⭐ Used by dozens of companies worldwide 󰟾 Neo4j Labs Project* *Neo4j Labs projects are free, open-source tools that complement the Neo4j product suite. Check out https://neo4j.com/labs/
  • 29. © 2022 Neo4j, Inc. All rights reserved. The NeoDash Dashboard Editor NeoDash key features: - Use Cypher queries to populate reports - Drag-and-drop interface - If you know Cypher, you can create a dashboard in a matter of minutes
  • 30. © 2022 Neo4j, Inc. All rights reserved. An Extendable Framework NeoDash is fully extendable to: - Add/customize visualizations - Add company branding - Add new functionality NeoDash Editor 🧩 Custom user logic 🧩 Custom Visualizations 🧩 Rule-based Styling
  • 31. © 2022 Neo4j, Inc. All rights reserved. The Dataset RecipeNLG: - 2.2M recipes - With steps - And ingredients - Scraped from cookbooks.com, recipe-plus.com, …
  • 32. © 2022 Neo4j, Inc. All rights reserved. Graph-Chef With our recipe dataset loaded into Neo4j, lets use NeoDash for: 1. Creating a search engine for recipes 2. Avoiding food waste! Look up recipes with what is in my fridge 3. Identifying common combinations of ingredients. What goes well together? 4. Cooking inspiration. Can we create new recipes by looking at graph patterns?
  • 33. © 2022 Neo4j, Inc. All rights reserved. Final note before getting started We will be using Neo4j Aura for this demo. You can create your own Neo4j Aura instance for free at https://neo4j.io. You can access NeoDash at https://neodash.graphapp.io.
  • 34. © 2022 Neo4j, Inc. All rights reserved. Page 1 - Overview We start off with some simple Cypher queries to analyze the graph. - Show me the graph schema. - How many recipes in total? - How many ingredients in total? - How many steps in total? Looking at burgers: - How many burger recipes? - How many unique ingredients in burgers? - How many steps on average to create a burger? Bar chart! - What is the most complex burger? Graph - What top 10 ingredients are common across burger recipes? Pie chart! - Is there a preparation step that burger recipes share?
  • 35. © 2022 Neo4j, Inc. All rights reserved. Page 2 - Recipes Moving on to slightly more complex queries, using parameters for interactivity. Search functionality: - Show me a graph of all ingredients for ‘Pear Pancakes’. - Turn it into a searchable widget. - Show me also a table of ingredients, side-by-side. - Add a table of steps. - Try ‘Dutch Pancakes’. Do we see an interesting pattern?
  • 36. © 2022 Neo4j, Inc. All rights reserved. Page 3 - Ingredients Finally we do some more complex queries to demonstrate the power of Cypher. Ingredient search: - Create a search for ingredients - Show a graph of recipes with the ingredient - Common pairings with selected ingredient Multi-ingredients: - Change selector to multi-selector - Fix the graph visualization to work with multiple parameters - Suggest ingredient pairings based on the set of ingredients selected // Subqueries with post-processing UNWIND $neodash_ingredient_name as name CALL { WITH name MATCH p=(i:Ingredient)-[:IN]-(r:Recipe) WHERE i.name = name RETURN r } WITH r, COUNT(r) as count WHERE count = size($neodash_ingredient_name) WITH r LIMIT 10 MATCH (r)-[in:IN]-(i:Ingredient) RETURN r, in, i // Using subqueries UNWIND $neodash_ingredient_name as name CALL { WITH name MATCH p=(i:Ingredient)-[in:IN]-(r:Recipe) WHERE i.name = name RETURN i, in, r LIMIT 10 } RETURN i, in, r // Even more post-processing! UNWIND $neodash_ingredient_name as name CALL { WITH name MATCH p=(i:Ingredient)-[:IN]-(r:Recipe) WHERE i.name = name RETURN r } WITH r, COUNT(r) as count WHERE count = size($neodash_ingredient_name) WITH r MATCH (r)-[in:IN]-(i:Ingredient) WHERE NOT i.name in $neodash_ingredient_name RETURN i.name, COUNT(r) ORDER BY COUNT(r) DESC
  • 37. © 2022 Neo4j, Inc. All rights reserved. Wrapping up We will continue working on this dataset on October 26, at NODES 2023! The recipe dataset will be published around this time. Want to try out NeoDash in the meantime? Visit https://neodash-gallery.graphapp.io for public demo dashboards.