SlideShare a Scribd company logo
Introduction to neo4j
Chakrit Phain
Softnix Technology Co.,Ltd
Neo4j Platform
The Labeled Property Graph Model
Relational Databases
Neo4j introduction
Neo4j introduction
Neo4j introduction
SQL Query Syntax
SELECT name FROM Person
LEFT JOIN Person_Department
ON Person.Id =
Person_Department.PersonId
LEFT JOIN Department
ON Department.Id =
Person_Department.DepartmentId
WHERE Department.name = "IT
Department"
Neo4j Query Syntax
MATCH (p:Person)<-
[:EMPLOYEE]-(d:Department)
WHERE d.name = "IT
Department" RETURN p.name
REST API
:POST
http://localhost:7474/db/data/transaction/commit
{"statements":[ {"statement":"CREATE (p:Person
{name:{name}}) RETURN p",
"parameters":{"name":"Daniel"}} ]}
->
{"results":[{"columns":["p"],"data":[{"row":[{"name":"D
aniel"}]}]}],"errors":[]}
Driver support
Connection con =
DriverManager.getConnection("jdbc:neo4j://localhost:7
474/");
String query = "MATCH (:Person {name:{1}})-
[:EMPLOYEE]-(d:Department) RETURN d.name as
dept";
try (PreparedStatement stmt =
con.prepareStatement(QUERY)) {
stmt.setString(1,"John");
ResultSet rs = stmt.executeQuery();
Create
Read-Write
Delete &
Remove
Let’s Play
Find path & Find shortest path
• match (n)-[*]->(m) where
m.name=‘Harry’ and
n.name=’Ron' return (n)-[*]-
>(m)
• match (n)-[*]->(m) where
m.name=Harry’ and
n.name=’Ron' return
shortestpath((n)-[*]->(m))
Find Degree
• match (n:Person)-[r]-(m:Person)
return n.name, count(r) as DegreeScore
order by DegreeScore desc
limit 10;
Betweenness
centrality
Closeness
Centrality
Minimum Weight Spanning Tree
Neo4j Graph Algorithms
• https://github.com/neo4j-contrib/neo4j-graph-algorithms/releases
• Centralities:
• Page Rank (algo.pageRank)
• Betweenness Centrality (algo.betweenness)
• Closeness Centrality (algo.closeness)
• Community Detection:
• Louvain (algo.louvain)
• Label Propagation (algo.labelPropagation)
• (Weakly) Connected Components (algo.unionFind)
• Strongly Connected Components (algo.scc)
• Triangle Count / Clustering Coefficient (algo.triangleCount)
Movies Finder
Email Finder
IP Network
Question ?

More Related Content

PPTX
O que há de novo no Xamarin.Forms
PDF
Creating Multi-Page Data Entry Controllers
PDF
Iktomi forms
PPT
jQuery Beginner
PPT
Lewis Chiu Portfolio
PPTX
The Inside Scoop on Neo4j: Meet the Builders
PDF
New opportunities for connected data
PDF
Graph Connect: Tuning Cypher
O que há de novo no Xamarin.Forms
Creating Multi-Page Data Entry Controllers
Iktomi forms
jQuery Beginner
Lewis Chiu Portfolio
The Inside Scoop on Neo4j: Meet the Builders
New opportunities for connected data
Graph Connect: Tuning Cypher

Similar to Neo4j introduction (20)

PDF
neo4j_tutorial.pdf1133333333333333333333333333333333333
PPT
Hands on Training – Graph Database with Neo4j
PPTX
PDF
GraphTour London 2020 - What's New, Jim Webber
PPTX
Intro to Cypher
PPTX
Top 10 Cypher Tuning Tips & Tricks
PPTX
GraphConnect 2022 - Top 10 Cypher Tuning Tips & Tricks.pptx
PDF
Neo4j (Part 1)
PPTX
Graphs fun vjug2
PDF
Getting the Most From Today's Java Tooling With Neo4j
PPT
PPTX
Neo4j Training Introduction
PDF
Training Week: Introduction to Neo4j
PDF
Neo4j Introduction (Basics, Cypher, RDBMS to GRAPH)
PDF
RDBMS to Graph
PDF
Training di Base Neo4j
PDF
Introduction to Graph Databases with Neo4J
PDF
managing big data
PPTX
Introduction to Neo4j and .Net
PPTX
Using Neo4j from Java
neo4j_tutorial.pdf1133333333333333333333333333333333333
Hands on Training – Graph Database with Neo4j
GraphTour London 2020 - What's New, Jim Webber
Intro to Cypher
Top 10 Cypher Tuning Tips & Tricks
GraphConnect 2022 - Top 10 Cypher Tuning Tips & Tricks.pptx
Neo4j (Part 1)
Graphs fun vjug2
Getting the Most From Today's Java Tooling With Neo4j
Neo4j Training Introduction
Training Week: Introduction to Neo4j
Neo4j Introduction (Basics, Cypher, RDBMS to GRAPH)
RDBMS to Graph
Training di Base Neo4j
Introduction to Graph Databases with Neo4J
managing big data
Introduction to Neo4j and .Net
Using Neo4j from Java
Ad

More from Chakrit Phain (20)

PDF
LLM_PairProgramming.pdf
PPTX
Web scraping with php
PPTX
ChatGPT_Prompts.pptx
PDF
Sentence-BERT
PDF
AI_ML_Softnix.pdf
PPTX
Web Scraping with Python
PPTX
เปรียบเทียบ RPA Opensource
PPTX
PHP Bandwidth Shaping script
PPTX
PHP Explode & Preg_split Test
PPTX
Types of Big Data Analytics
PDF
Genetic Algorithm
PDF
Machine Learning Algorithm & Anomaly detection 2021
PDF
Text classification With Rapid Miner
PPTX
Ai optimization Example
PPTX
Zabbix aws
PPTX
Anomaly Detection Technique
PPTX
Softnix Anomaly Detection Methods
PDF
Neo4j Graph Database และการประยุกตร์ใช้
PDF
Softnix how ml_work_0.1draft
PPTX
Shell Shock
LLM_PairProgramming.pdf
Web scraping with php
ChatGPT_Prompts.pptx
Sentence-BERT
AI_ML_Softnix.pdf
Web Scraping with Python
เปรียบเทียบ RPA Opensource
PHP Bandwidth Shaping script
PHP Explode & Preg_split Test
Types of Big Data Analytics
Genetic Algorithm
Machine Learning Algorithm & Anomaly detection 2021
Text classification With Rapid Miner
Ai optimization Example
Zabbix aws
Anomaly Detection Technique
Softnix Anomaly Detection Methods
Neo4j Graph Database และการประยุกตร์ใช้
Softnix how ml_work_0.1draft
Shell Shock
Ad

Recently uploaded (20)

PPTX
Data_Analytics_and_PowerBI_Presentation.pptx
PPTX
Acceptance and paychological effects of mandatory extra coach I classes.pptx
PPTX
MODULE 8 - DISASTER risk PREPAREDNESS.pptx
PDF
Lecture1 pattern recognition............
PPTX
climate analysis of Dhaka ,Banglades.pptx
PDF
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
PPTX
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
PDF
.pdf is not working space design for the following data for the following dat...
PPTX
Computer network topology notes for revision
PDF
Business Analytics and business intelligence.pdf
PPTX
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
PDF
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
PPTX
STUDY DESIGN details- Lt Col Maksud (21).pptx
PPTX
Supervised vs unsupervised machine learning algorithms
PPTX
Database Infoormation System (DBIS).pptx
PPTX
DISORDERS OF THE LIVER, GALLBLADDER AND PANCREASE (1).pptx
PPTX
Introduction to Knowledge Engineering Part 1
PDF
annual-report-2024-2025 original latest.
PDF
Foundation of Data Science unit number two notes
PPTX
1_Introduction to advance data techniques.pptx
Data_Analytics_and_PowerBI_Presentation.pptx
Acceptance and paychological effects of mandatory extra coach I classes.pptx
MODULE 8 - DISASTER risk PREPAREDNESS.pptx
Lecture1 pattern recognition............
climate analysis of Dhaka ,Banglades.pptx
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
.pdf is not working space design for the following data for the following dat...
Computer network topology notes for revision
Business Analytics and business intelligence.pdf
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
STUDY DESIGN details- Lt Col Maksud (21).pptx
Supervised vs unsupervised machine learning algorithms
Database Infoormation System (DBIS).pptx
DISORDERS OF THE LIVER, GALLBLADDER AND PANCREASE (1).pptx
Introduction to Knowledge Engineering Part 1
annual-report-2024-2025 original latest.
Foundation of Data Science unit number two notes
1_Introduction to advance data techniques.pptx

Neo4j introduction