SlideShare a Scribd company logo
Intro to Cypher
August 2017William Lyon
@lyonwj
William Lyon
Developer Relations Engineer @neo4j
will@neo4j.com
@lyonwj
lyonwj.com
Agenda - Introduction To Cypher
• Neo4j Overview
• Cypher Overview
• Hands On Intro To Cypher
• Resources
• Q&A
neo4j.com/developer
Neo4j Graph Database
Intro to Cypher
Intro to Cypher
Intro to Cypher
https://offshoreleaks.icij.org/pages/database
Intro to Cypher
Intro to Cypher
Intro to Cypher
Intro to Cypher
https://arxiv.org/pdf/1004.1001.pdf
What is Cypher?
Declarative
Query
Language
openCypher
Graph
Pattern
Matching
Bolt /
Drivers
Human
Readable
What is Cypher?
Declarative
Query
Language
• What data we want, not
how
What is Cypher?
Graph
Pattern
Matching
(node)-[:RELATIONSHIP]->(node)
• What data we want, not
how
• Expressiveness
What is Cypher?
Graph
Pattern
Matching
(node {key: value})-[:RELATIONSHIP]->(node)
• What data we want, not
how
• Expressiveness
What is Cypher?
Graph
Pattern
Matching
(node {key: value})-[:RELATIONSHIP*..2]->(node)
• What data we want, not
how
• Expressiveness
What is Cypher?
Human
Readable
(node)-[:RELATIONSHIP]->(node)
• Focus on domain, not
database
What is Cypher?
openCypher
• Open standard for graph
querying
http://www.opencypher.org/
What is Cypher?
Bolt /
Drivers
• Binary protocol for Neo4j
What is Cypher?
Bolt /
Drivers
• Language Drivers
What is Cypher?
Bolt /
Drivers
What is Cypher?
Bolt /
Drivers
Querying The Graph
The Data
https://www.yelp.com/dataset_challenge
Yelp Data Challenge In Neo4j
https://github.com/johnymontana/neo4j-datasets/tree/master/yelp
“Working With A Real-World Dataset In Neo4j”
https://youtu.be/oXziS-PPIUA
Graph Data Model
Labeled Property Graph Model
Labeled Property Graph Model
The Data
user.json business.json review.json
Our Data Model
http://www.apcjones.com/arrows/#
• Identify “entities”
• What properties are
relevant?
• Identify unique ids
• Find connections
• Repeat
The Graph
Querying The Graph
What Breweries Near Me That My Friends
Also Like Have The Highest Rating?
What Breweries Near Me That My Friends
Also Like Have The Highest Rating?
What Breweries Near Me That My Friends
Also Like Have The Highest Rating?
• MATCH …
• (node)-[:RELATIONSHIP]->(node)
• Predicates
• Aggregations
• Ordering
• Graph vs tabular data
PROFILE / EXPLAIN
• Query execution plan
• Declarative vs imperative
• Performance tuning
CREATE INDEX …
• Indexes are only used to find the starting point for queries.
Use index scans to look up
rows in tables and join them
with rows from other tables
Use indexes to find the starting
points for a query.
Relational
Graph
Spatial functionality
Extending Cypher - Procedures and
Functions
• Code deployed to database
• Callable from Cypher
• APOC library
• data import
• graph algorithms
• periodic iterate
• MUCH more…
• Neo4j Spatial
• Neo4j-GraphQL
Extending Cypher - Procedures and
Functions
• PageRank - friend with highest PageRank?
Resources
Cypher Refcard
https://neo4j.com/docs/cypher-refcard/current/
openCypher
opencypher.org
Neo4j Developer Page
neo4j.com/developer
Neo4j Sandbox
neo4jsandbox.com
(you)-[:HAVE]->(?)
(?)<-[:ANSWERS]-(will)

More Related Content

What's hot (20)

PDF
Intro to Graphs and Neo4j
jexp
 
PDF
Architect’s Open-Source Guide for a Data Mesh Architecture
Databricks
 
PDF
Intro to Neo4j and Graph Databases
Neo4j
 
PDF
Data Modeling with Neo4j
Neo4j
 
PDF
Neo4j Fundamentals
Max De Marzi
 
PDF
Big Query Basics
Ido Green
 
PPTX
Introduction to Graph Databases
Max De Marzi
 
PPTX
The Future of Column-Oriented Data Processing With Apache Arrow and Apache Pa...
Dremio Corporation
 
PDF
Introduction to Graph Databases
DataStax
 
PDF
Neo4j in Production: A look at Neo4j in the Real World
Neo4j
 
PPTX
Data Lakehouse, Data Mesh, and Data Fabric (r1)
James Serra
 
PPTX
NoSQL Graph Databases - Why, When and Where
Eugene Hanikblum
 
PPTX
Intro to Neo4j
Neo4j
 
PPT
Graph database
Shruti Arya
 
ZIP
NoSQL databases
Harri Kauhanen
 
KEY
Intro to Neo4j presentation
jexp
 
PDF
Property graph vs. RDF Triplestore comparison in 2020
Ontotext
 
PDF
Workshop - Neo4j Graph Data Science
Neo4j
 
PDF
An overview of Neo4j Internals
Tobias Lindaaker
 
PPTX
Graph databases
Vinoth Kannan
 
Intro to Graphs and Neo4j
jexp
 
Architect’s Open-Source Guide for a Data Mesh Architecture
Databricks
 
Intro to Neo4j and Graph Databases
Neo4j
 
Data Modeling with Neo4j
Neo4j
 
Neo4j Fundamentals
Max De Marzi
 
Big Query Basics
Ido Green
 
Introduction to Graph Databases
Max De Marzi
 
The Future of Column-Oriented Data Processing With Apache Arrow and Apache Pa...
Dremio Corporation
 
Introduction to Graph Databases
DataStax
 
Neo4j in Production: A look at Neo4j in the Real World
Neo4j
 
Data Lakehouse, Data Mesh, and Data Fabric (r1)
James Serra
 
NoSQL Graph Databases - Why, When and Where
Eugene Hanikblum
 
Intro to Neo4j
Neo4j
 
Graph database
Shruti Arya
 
NoSQL databases
Harri Kauhanen
 
Intro to Neo4j presentation
jexp
 
Property graph vs. RDF Triplestore comparison in 2020
Ontotext
 
Workshop - Neo4j Graph Data Science
Neo4j
 
An overview of Neo4j Internals
Tobias Lindaaker
 
Graph databases
Vinoth Kannan
 

Similar to Intro to Cypher (20)

PDF
Neo4j Introduction (Basics, Cypher, RDBMS to GRAPH)
David Fombella Pombal
 
PPTX
The openCypher Project - An Open Graph Query Language
Neo4j
 
PPTX
GraphDatabase.pptx
JeyaVarthini1
 
PDF
Getting started with Graph Databases & Neo4j
Suroor Wijdan
 
PPTX
Calin Constantinov - Neo4j - Bucharest Big Data Week Meetup - Bucharest 2018
Calin Constantinov
 
PDF
Building Fullstack Graph Applications With Neo4j
Neo4j
 
PPTX
Introduction to graph databases in term of neo4j
Abdullah Hamidi
 
PPTX
Neo4j Training Introduction
Max De Marzi
 
PPTX
Graph Database Query Languages
Jay Coskey
 
PDF
Graph Database Using Neo4J
Harmeet Singh(Taara)
 
PPTX
Graph databases for SQL Server profesionnals
MSDEVMTL
 
PDF
Shutl
Neoworks
 
PDF
[Webinar] Introduction to Cypher
Neo4j
 
PDF
The 2nd graph database in sv meetup
Joshua Bae
 
PDF
Neo4j: Graph-like power
Roman Rodomansky
 
PDF
AgensGraph Presentation at PGConf.us 2017
Kisung Kim
 
PDF
03 introduction to graph databases
Neo4j
 
PDF
Neo4j Graph Data Science Training - June 9 & 10 - Slides #3
Neo4j
 
PPTX
Introduction to Neo4j and .Net
Neo4j
 
Neo4j Introduction (Basics, Cypher, RDBMS to GRAPH)
David Fombella Pombal
 
The openCypher Project - An Open Graph Query Language
Neo4j
 
GraphDatabase.pptx
JeyaVarthini1
 
Getting started with Graph Databases & Neo4j
Suroor Wijdan
 
Calin Constantinov - Neo4j - Bucharest Big Data Week Meetup - Bucharest 2018
Calin Constantinov
 
Building Fullstack Graph Applications With Neo4j
Neo4j
 
Introduction to graph databases in term of neo4j
Abdullah Hamidi
 
Neo4j Training Introduction
Max De Marzi
 
Graph Database Query Languages
Jay Coskey
 
Graph Database Using Neo4J
Harmeet Singh(Taara)
 
Graph databases for SQL Server profesionnals
MSDEVMTL
 
Shutl
Neoworks
 
[Webinar] Introduction to Cypher
Neo4j
 
The 2nd graph database in sv meetup
Joshua Bae
 
Neo4j: Graph-like power
Roman Rodomansky
 
AgensGraph Presentation at PGConf.us 2017
Kisung Kim
 
03 introduction to graph databases
Neo4j
 
Neo4j Graph Data Science Training - June 9 & 10 - Slides #3
Neo4j
 
Introduction to Neo4j and .Net
Neo4j
 
Ad

More from Neo4j (20)

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

Recently uploaded (20)

PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PPTX
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PPTX
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PPTX
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
PPTX
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PDF
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 

Intro to Cypher