SlideShare a Scribd company logo
1 of 42
Download to read offline
Neo4j
Tabriz Software Open Talks
#opentalks
@silverman2OOO9
2015-10-29 / 1394-08-07
Farzin Bagheri
Table of Contents
Database
Relational Databases
NOSQL
● NOSQL Categories
Neo4j
● Cypher
● Example
● Usage
Database
Relational Database
● Relational Database : SQL Server , MySQL , Oracle,...
● Concepts : Table , Row, Column,…
But,is it enough?
No !
Why?
● Cost
● Need Powerful hardware
● Need Expert
● Sometimes we need only some feature
NoSQL Databases
What is NoSQL ?
NoSQL
Not Only SQL
4 Type of NoSQL Databases :
● Key-Value :
○ Data mode : Key and value! for example : Set A 20
○ Example : Redis , Riak , Dynamodb (Amazon) ,...
○ Use Case : Task Queue (Celery) , Cashing ,...
● Document :
○ Data model : collection of Key - value : { FName : “Farzin” , LName : ”Bagheri” , City : “Khoy” }
○ Example : MongoDB , couchDB
○ Use Case : Inserting a Log Record (Nginx or Apache)
● Column Family or BigTable :
○ Data model : big table! each rows has their own Schema.
○ Example : Hbase , Cassandra
○ Use Case : like Relational Databases but more flexible
● Graph Databases
○ Data mode : Node (Vertices) , Relationship (Edge) and Properties
○ Example : Neo4j , OrientDB , ArangoDB ,...
○ Use Case : Social network , Recommendation , Graph-Based Search,...
4 Type of NoSQL Databases :
● Key-Value :
○ Data mode : Key and value! for example : Set A 20
○ Example : Redis , Riak , Dynamodb (Amazon) ,...
○ Use Case : Task Queue (Celery) , Cashing ,...
● Document :
○ Data model : collection of Key - value : { FName : “Farzin” , LName : ”Bagheri” , City : “Khoy” }
○ Example : MongoDB , couchDB
○ Use Case : Inserting a Log Record (Nginx or Apache)
● Column Family or BigTable :
○ Data model : big table! each rows has their own Schema.
○ Example : Hbase , Cassandra
○ Use Case : like Relational Databases but more flexible
● Graph Databases
○ Data mode : Node (Vertices) , Relationship (Edge) and Properties
○ Example : Neo4j , OrientDB , ArangoDB ,...
○ Use Case : Social network , Recommendation , Graph-Based Search,...
4 Type of NoSQL Databases :
● Key-Value :
○ Data mode : Key and value! for example : Set A 20
○ Example : Redis , Riak , Dynamodb (Amazon) ,...
○ Use Case : Task Queue (Celery) , Cashing ,...
● Document :
○ Data model : collection of Key - value : { FName : “Farzin” , LName : ”Bagheri” , City : “Khoy” }
○ Example : MongoDB , couchDB
○ Use Case : Inserting a Log Record (Nginx or Apache)
● Column Family or BigTable :
○ Data model : big table! each rows has their own Schema.
○ Example : Hbase , Cassandra
○ Use Case : like Relational Databases but more flexible
● Graph Databases
○ Data mode : Node (Vertices) , Relationship (Edge) and Properties
○ Example : Neo4j , OrientDB , ArangoDB ,...
○ Use Case : Social network , Recommendation , Graph-Based Search,...
4 Type of NoSQL Databases :
● Key-Value :
○ Data mode : Key and value! for example : Set A 20
○ Example : Redis , Riak , Dynamodb (Amazon) ,...
○ Use Case : Task Queue (Celery) , Cashing ,...
● Document :
○ Data model : collection of Key - value : { FName : “Farzin” , LName : ”Bagheri” , City : “Khoy” }
○ Example : MongoDB , couchDB
○ Use Case : Inserting a Log Record (Nginx or Apache)
● Column Family or BigTable :
○ Data model : big table! each rows has their own Schema.
○ Example : Hbase , Cassandra
○ Use Case : like Relational Databases but more flexible
● Graph Databases
○ Data mode : Node (Vertices) , Relationship (Edge) and Properties
○ Example : Neo4j , OrientDB , ArangoDB ,...
○ Use Case : Social network , Recommendation , Graph-Based Search,...
Graph are everywhere
Graph
● Nodes
● Relationships
● Properties
http://neo4j.com/developer/graph-database/
How to talk to Neo4j?
Cypher
Cypher
Creating Node
Getting
CREATE ( : Person { Fname : "Farzin" , Lname : "Bagheri" } )
Creating other Nodes
CREATE ( :Person { Fname : "Arash" , Lname : "Milani" } ) ,
( :Person { Fname : "Masoud" , Lname : "Sadri" } )
Getting All
Going to be Social ! :)
Creating Relationship :
Small Social Network :
Finding Friend and Friend of Friend :
● Friend of Someone :
Finding Friend and Friend of Friend :
● Friend of Friend of Someone :
● Other way :
Finding All :
Cloud
(app) -[:depend_on]-> (os) - [:depend_on] -> (VM) -[:depend_on] >(Server)-[::depend_on] -> (Power)
Dependency Chain :
Which Server Host App1?
App1 Dependency :
Most Dependent :
Recommendation
MATCH ( p:person { name:"B" } ) -[ :Has ]-> ( o1:Order )-[ :include ]->( b:Book )
<-[ :include ] - ( o2:Order )
-[:include]-> ( otherBook )
where not o1-[:include]->(otherBook)
return distinct ( otherBook.name)
Performance
Usage
● Social network
● Network Analysis
● Recommendation systems
● Fraud Detection
● Path Finding (Shortest path , simple path ,...)
● Digital Marketing
Database Popularity Change
Neo4j in Iran & World
Thank you
References
● www.db-engines.com
● www.neo4j.com
● www.linkedin.com
● Graph Database , Ian Robinson , Jim Webber & Emil Eifrem

More Related Content

What's hot

Ursa Labs and Apache Arrow in 2019
Ursa Labs and Apache Arrow in 2019Ursa Labs and Apache Arrow in 2019
Ursa Labs and Apache Arrow in 2019Wes McKinney
 
OpenStack Trove Day (19 Aug 2014, Cambridge MA) - Sahara
OpenStack Trove Day (19 Aug 2014, Cambridge MA)  - SaharaOpenStack Trove Day (19 Aug 2014, Cambridge MA)  - Sahara
OpenStack Trove Day (19 Aug 2014, Cambridge MA) - Saharaspinningmatt
 
Apache Arrow at DataEngConf Barcelona 2018
Apache Arrow at DataEngConf Barcelona 2018Apache Arrow at DataEngConf Barcelona 2018
Apache Arrow at DataEngConf Barcelona 2018Wes McKinney
 
Apache Arrow Flight: A New Gold Standard for Data Transport
Apache Arrow Flight: A New Gold Standard for Data TransportApache Arrow Flight: A New Gold Standard for Data Transport
Apache Arrow Flight: A New Gold Standard for Data TransportWes McKinney
 
Apache Arrow Workshop at VLDB 2019 / BOSS Session
Apache Arrow Workshop at VLDB 2019 / BOSS SessionApache Arrow Workshop at VLDB 2019 / BOSS Session
Apache Arrow Workshop at VLDB 2019 / BOSS SessionWes McKinney
 
End-to-End Data Pipelines with Apache Spark
End-to-End Data Pipelines with Apache SparkEnd-to-End Data Pipelines with Apache Spark
End-to-End Data Pipelines with Apache SparkBurak Yavuz
 
Large Scale Graph Analytics with JanusGraph
Large Scale Graph Analytics with JanusGraphLarge Scale Graph Analytics with JanusGraph
Large Scale Graph Analytics with JanusGraphP. Taylor Goetz
 
Microsoft's Big Play for Big Data
Microsoft's Big Play for Big DataMicrosoft's Big Play for Big Data
Microsoft's Big Play for Big DataAndrew Brust
 
Python Ireland Conference 2016 - Python and MongoDB Workshop
Python Ireland Conference 2016 - Python and MongoDB WorkshopPython Ireland Conference 2016 - Python and MongoDB Workshop
Python Ireland Conference 2016 - Python and MongoDB WorkshopJoe Drumgoole
 
Solr cloud the 'search first' nosql database extended deep dive
Solr cloud the 'search first' nosql database   extended deep diveSolr cloud the 'search first' nosql database   extended deep dive
Solr cloud the 'search first' nosql database extended deep divelucenerevolution
 
PyCon.DE / PyData Karlsruhe keynote: "Looking backward, looking forward"
PyCon.DE / PyData Karlsruhe keynote: "Looking backward, looking forward"PyCon.DE / PyData Karlsruhe keynote: "Looking backward, looking forward"
PyCon.DE / PyData Karlsruhe keynote: "Looking backward, looking forward"Wes McKinney
 
Introduction to apache spark
Introduction to apache sparkIntroduction to apache spark
Introduction to apache sparkUserReport
 
Presto Summit 2018 - 01 - Facebook Presto
Presto Summit 2018  - 01 - Facebook PrestoPresto Summit 2018  - 01 - Facebook Presto
Presto Summit 2018 - 01 - Facebook Prestokbajda
 
Paris Spark Meetup (Feb2015) ccarbone : SPARK Streaming vs Storm / MLLib / Ne...
Paris Spark Meetup (Feb2015) ccarbone : SPARK Streaming vs Storm / MLLib / Ne...Paris Spark Meetup (Feb2015) ccarbone : SPARK Streaming vs Storm / MLLib / Ne...
Paris Spark Meetup (Feb2015) ccarbone : SPARK Streaming vs Storm / MLLib / Ne...Cedric CARBONE
 
Presto at Hadoop Summit 2016
Presto at Hadoop Summit 2016Presto at Hadoop Summit 2016
Presto at Hadoop Summit 2016kbajda
 
Apache Arrow: Present and Future @ ScaledML 2020
Apache Arrow: Present and Future @ ScaledML 2020Apache Arrow: Present and Future @ ScaledML 2020
Apache Arrow: Present and Future @ ScaledML 2020Wes McKinney
 
Operationalizing Big Data Pipelines At Scale
Operationalizing Big Data Pipelines At ScaleOperationalizing Big Data Pipelines At Scale
Operationalizing Big Data Pipelines At ScaleDatabricks
 
Kafka website activity architecture
Kafka website activity architectureKafka website activity architecture
Kafka website activity architectureOmid Vahdaty
 

What's hot (20)

Ursa Labs and Apache Arrow in 2019
Ursa Labs and Apache Arrow in 2019Ursa Labs and Apache Arrow in 2019
Ursa Labs and Apache Arrow in 2019
 
Hugfr SPARK & RIAK -20160114_hug_france
Hugfr  SPARK & RIAK -20160114_hug_franceHugfr  SPARK & RIAK -20160114_hug_france
Hugfr SPARK & RIAK -20160114_hug_france
 
OpenStack Trove Day (19 Aug 2014, Cambridge MA) - Sahara
OpenStack Trove Day (19 Aug 2014, Cambridge MA)  - SaharaOpenStack Trove Day (19 Aug 2014, Cambridge MA)  - Sahara
OpenStack Trove Day (19 Aug 2014, Cambridge MA) - Sahara
 
Apache Arrow at DataEngConf Barcelona 2018
Apache Arrow at DataEngConf Barcelona 2018Apache Arrow at DataEngConf Barcelona 2018
Apache Arrow at DataEngConf Barcelona 2018
 
Apache Arrow Flight: A New Gold Standard for Data Transport
Apache Arrow Flight: A New Gold Standard for Data TransportApache Arrow Flight: A New Gold Standard for Data Transport
Apache Arrow Flight: A New Gold Standard for Data Transport
 
Apache Arrow Workshop at VLDB 2019 / BOSS Session
Apache Arrow Workshop at VLDB 2019 / BOSS SessionApache Arrow Workshop at VLDB 2019 / BOSS Session
Apache Arrow Workshop at VLDB 2019 / BOSS Session
 
End-to-End Data Pipelines with Apache Spark
End-to-End Data Pipelines with Apache SparkEnd-to-End Data Pipelines with Apache Spark
End-to-End Data Pipelines with Apache Spark
 
Large Scale Graph Analytics with JanusGraph
Large Scale Graph Analytics with JanusGraphLarge Scale Graph Analytics with JanusGraph
Large Scale Graph Analytics with JanusGraph
 
Microsoft's Big Play for Big Data
Microsoft's Big Play for Big DataMicrosoft's Big Play for Big Data
Microsoft's Big Play for Big Data
 
Python Ireland Conference 2016 - Python and MongoDB Workshop
Python Ireland Conference 2016 - Python and MongoDB WorkshopPython Ireland Conference 2016 - Python and MongoDB Workshop
Python Ireland Conference 2016 - Python and MongoDB Workshop
 
Solr cloud the 'search first' nosql database extended deep dive
Solr cloud the 'search first' nosql database   extended deep diveSolr cloud the 'search first' nosql database   extended deep dive
Solr cloud the 'search first' nosql database extended deep dive
 
PyCon.DE / PyData Karlsruhe keynote: "Looking backward, looking forward"
PyCon.DE / PyData Karlsruhe keynote: "Looking backward, looking forward"PyCon.DE / PyData Karlsruhe keynote: "Looking backward, looking forward"
PyCon.DE / PyData Karlsruhe keynote: "Looking backward, looking forward"
 
Introduction to apache spark
Introduction to apache sparkIntroduction to apache spark
Introduction to apache spark
 
Hadoop Ecosystem
Hadoop EcosystemHadoop Ecosystem
Hadoop Ecosystem
 
Presto Summit 2018 - 01 - Facebook Presto
Presto Summit 2018  - 01 - Facebook PrestoPresto Summit 2018  - 01 - Facebook Presto
Presto Summit 2018 - 01 - Facebook Presto
 
Paris Spark Meetup (Feb2015) ccarbone : SPARK Streaming vs Storm / MLLib / Ne...
Paris Spark Meetup (Feb2015) ccarbone : SPARK Streaming vs Storm / MLLib / Ne...Paris Spark Meetup (Feb2015) ccarbone : SPARK Streaming vs Storm / MLLib / Ne...
Paris Spark Meetup (Feb2015) ccarbone : SPARK Streaming vs Storm / MLLib / Ne...
 
Presto at Hadoop Summit 2016
Presto at Hadoop Summit 2016Presto at Hadoop Summit 2016
Presto at Hadoop Summit 2016
 
Apache Arrow: Present and Future @ ScaledML 2020
Apache Arrow: Present and Future @ ScaledML 2020Apache Arrow: Present and Future @ ScaledML 2020
Apache Arrow: Present and Future @ ScaledML 2020
 
Operationalizing Big Data Pipelines At Scale
Operationalizing Big Data Pipelines At ScaleOperationalizing Big Data Pipelines At Scale
Operationalizing Big Data Pipelines At Scale
 
Kafka website activity architecture
Kafka website activity architectureKafka website activity architecture
Kafka website activity architecture
 

Viewers also liked

CREATIVE SOUL PFOLIO 2016
CREATIVE SOUL PFOLIO 2016CREATIVE SOUL PFOLIO 2016
CREATIVE SOUL PFOLIO 2016Alan Arscott
 
Courtney Goldberg_examples of work
Courtney Goldberg_examples of workCourtney Goldberg_examples of work
Courtney Goldberg_examples of workCourtney Goldberg
 
From REST to Hypermedia APIs with Spring by Vladimir Tsukur
From REST to Hypermedia APIs with Spring by Vladimir TsukurFrom REST to Hypermedia APIs with Spring by Vladimir Tsukur
From REST to Hypermedia APIs with Spring by Vladimir TsukurJavaDayUA
 
Christine Quinn Resume_Aug2015
Christine Quinn Resume_Aug2015Christine Quinn Resume_Aug2015
Christine Quinn Resume_Aug2015Christine Quinn
 
Recommending Movies Using Neo4j
Recommending Movies Using Neo4j Recommending Movies Using Neo4j
Recommending Movies Using Neo4j Ilias Katsabalos
 
Best SEO Training Tutorial for Beginners
Best SEO Training Tutorial for BeginnersBest SEO Training Tutorial for Beginners
Best SEO Training Tutorial for BeginnersGourav Manuja
 
Fibre optics cable
Fibre optics cableFibre optics cable
Fibre optics cableMayank Bhatt
 
Spring batch introduction
Spring batch introductionSpring batch introduction
Spring batch introductionAlex Fernandez
 

Viewers also liked (12)

CREATIVE SOUL PFOLIO 2016
CREATIVE SOUL PFOLIO 2016CREATIVE SOUL PFOLIO 2016
CREATIVE SOUL PFOLIO 2016
 
Courtney Goldberg_examples of work
Courtney Goldberg_examples of workCourtney Goldberg_examples of work
Courtney Goldberg_examples of work
 
Презентация Sp Expert
Презентация Sp ExpertПрезентация Sp Expert
Презентация Sp Expert
 
From REST to Hypermedia APIs with Spring by Vladimir Tsukur
From REST to Hypermedia APIs with Spring by Vladimir TsukurFrom REST to Hypermedia APIs with Spring by Vladimir Tsukur
From REST to Hypermedia APIs with Spring by Vladimir Tsukur
 
Christine Quinn Resume_Aug2015
Christine Quinn Resume_Aug2015Christine Quinn Resume_Aug2015
Christine Quinn Resume_Aug2015
 
Recommending Movies Using Neo4j
Recommending Movies Using Neo4j Recommending Movies Using Neo4j
Recommending Movies Using Neo4j
 
Informe de solidos totales
Informe  de solidos totalesInforme  de solidos totales
Informe de solidos totales
 
Best SEO Training Tutorial for Beginners
Best SEO Training Tutorial for BeginnersBest SEO Training Tutorial for Beginners
Best SEO Training Tutorial for Beginners
 
JPA For Beginner's
JPA For Beginner'sJPA For Beginner's
JPA For Beginner's
 
Fibre optics cable
Fibre optics cableFibre optics cable
Fibre optics cable
 
Spring Services
Spring ServicesSpring Services
Spring Services
 
Spring batch introduction
Spring batch introductionSpring batch introduction
Spring batch introduction
 

Similar to introduction to Neo4j (Tabriz Software Open Talks)

Brett Ragozzine - Graph Databases and Neo4j
Brett Ragozzine - Graph Databases and Neo4jBrett Ragozzine - Graph Databases and Neo4j
Brett Ragozzine - Graph Databases and Neo4jBrett Ragozzine
 
Graph databases & data integration - the case of RDF
Graph databases & data integration - the case of RDFGraph databases & data integration - the case of RDF
Graph databases & data integration - the case of RDFDimitris Kontokostas
 
An Open Source NoSQL solution for Internet Access Logs Analysis
An Open Source NoSQL solution for Internet Access Logs AnalysisAn Open Source NoSQL solution for Internet Access Logs Analysis
An Open Source NoSQL solution for Internet Access Logs AnalysisJosé Manuel Ciges Regueiro
 
A Workload-Aware Middleware for Storing Massive RDF Graphs into NoSQL Databases
A Workload-Aware Middleware for Storing Massive RDF Graphs into NoSQL DatabasesA Workload-Aware Middleware for Storing Massive RDF Graphs into NoSQL Databases
A Workload-Aware Middleware for Storing Massive RDF Graphs into NoSQL DatabasesLuiz Henrique Zambom Santana
 
Apache Drill @ PJUG, Jan 15, 2013
Apache Drill @ PJUG, Jan 15, 2013Apache Drill @ PJUG, Jan 15, 2013
Apache Drill @ PJUG, Jan 15, 2013Gera Shegalov
 
Your Database Cannot Do this (well)
Your Database Cannot Do this (well)Your Database Cannot Do this (well)
Your Database Cannot Do this (well)javier ramirez
 
How to get started in Big Data for master's students
How to get started in Big Data for master's studentsHow to get started in Big Data for master's students
How to get started in Big Data for master's studentsMohamed Nadjib MAMI
 
Schema Design
Schema Design Schema Design
Schema Design MongoDB
 
AWS Big Data Demystified #2 | Athena, Spectrum, Emr, Hive
AWS Big Data Demystified #2 |  Athena, Spectrum, Emr, Hive AWS Big Data Demystified #2 |  Athena, Spectrum, Emr, Hive
AWS Big Data Demystified #2 | Athena, Spectrum, Emr, Hive Omid Vahdaty
 
AWS Big Data Demystified #1: Big data architecture lessons learned
AWS Big Data Demystified #1: Big data architecture lessons learned AWS Big Data Demystified #1: Big data architecture lessons learned
AWS Big Data Demystified #1: Big data architecture lessons learned Omid Vahdaty
 
NOSQL Databases for the .NET Developer
NOSQL Databases for the .NET DeveloperNOSQL Databases for the .NET Developer
NOSQL Databases for the .NET DeveloperJesus Rodriguez
 
Introducing Apache Spark's Data Frames and Dataset APIs workshop series
Introducing Apache Spark's Data Frames and Dataset APIs workshop seriesIntroducing Apache Spark's Data Frames and Dataset APIs workshop series
Introducing Apache Spark's Data Frames and Dataset APIs workshop seriesHolden Karau
 
Schema Design
Schema DesignSchema Design
Schema DesignMongoDB
 
Graph Databases
Graph DatabasesGraph Databases
Graph Databasesthai
 
Introduction to Apache Tajo: Data Warehouse for Big Data
Introduction to Apache Tajo: Data Warehouse for Big DataIntroduction to Apache Tajo: Data Warehouse for Big Data
Introduction to Apache Tajo: Data Warehouse for Big DataJihoon Son
 
Graph databases & data integration v2
Graph databases & data integration v2Graph databases & data integration v2
Graph databases & data integration v2Dimitris Kontokostas
 

Similar to introduction to Neo4j (Tabriz Software Open Talks) (20)

Brett Ragozzine - Graph Databases and Neo4j
Brett Ragozzine - Graph Databases and Neo4jBrett Ragozzine - Graph Databases and Neo4j
Brett Ragozzine - Graph Databases and Neo4j
 
Graph databases & data integration - the case of RDF
Graph databases & data integration - the case of RDFGraph databases & data integration - the case of RDF
Graph databases & data integration - the case of RDF
 
An Open Source NoSQL solution for Internet Access Logs Analysis
An Open Source NoSQL solution for Internet Access Logs AnalysisAn Open Source NoSQL solution for Internet Access Logs Analysis
An Open Source NoSQL solution for Internet Access Logs Analysis
 
Resident good: NoSQL
Resident good: NoSQLResident good: NoSQL
Resident good: NoSQL
 
A Workload-Aware Middleware for Storing Massive RDF Graphs into NoSQL Databases
A Workload-Aware Middleware for Storing Massive RDF Graphs into NoSQL DatabasesA Workload-Aware Middleware for Storing Massive RDF Graphs into NoSQL Databases
A Workload-Aware Middleware for Storing Massive RDF Graphs into NoSQL Databases
 
Apache Drill @ PJUG, Jan 15, 2013
Apache Drill @ PJUG, Jan 15, 2013Apache Drill @ PJUG, Jan 15, 2013
Apache Drill @ PJUG, Jan 15, 2013
 
TinkerPop 2020
TinkerPop 2020TinkerPop 2020
TinkerPop 2020
 
Your Database Cannot Do this (well)
Your Database Cannot Do this (well)Your Database Cannot Do this (well)
Your Database Cannot Do this (well)
 
How to get started in Big Data for master's students
How to get started in Big Data for master's studentsHow to get started in Big Data for master's students
How to get started in Big Data for master's students
 
Schema Design
Schema Design Schema Design
Schema Design
 
AWS Big Data Demystified #2 | Athena, Spectrum, Emr, Hive
AWS Big Data Demystified #2 |  Athena, Spectrum, Emr, Hive AWS Big Data Demystified #2 |  Athena, Spectrum, Emr, Hive
AWS Big Data Demystified #2 | Athena, Spectrum, Emr, Hive
 
AWS Big Data Demystified #1: Big data architecture lessons learned
AWS Big Data Demystified #1: Big data architecture lessons learned AWS Big Data Demystified #1: Big data architecture lessons learned
AWS Big Data Demystified #1: Big data architecture lessons learned
 
NOSQL Databases for the .NET Developer
NOSQL Databases for the .NET DeveloperNOSQL Databases for the .NET Developer
NOSQL Databases for the .NET Developer
 
Introducing Apache Spark's Data Frames and Dataset APIs workshop series
Introducing Apache Spark's Data Frames and Dataset APIs workshop seriesIntroducing Apache Spark's Data Frames and Dataset APIs workshop series
Introducing Apache Spark's Data Frames and Dataset APIs workshop series
 
Schema Design
Schema DesignSchema Design
Schema Design
 
MongoDB
MongoDBMongoDB
MongoDB
 
Graph Databases
Graph DatabasesGraph Databases
Graph Databases
 
Introduction to Apache Tajo: Data Warehouse for Big Data
Introduction to Apache Tajo: Data Warehouse for Big DataIntroduction to Apache Tajo: Data Warehouse for Big Data
Introduction to Apache Tajo: Data Warehouse for Big Data
 
Neo4j: Graph-like power
Neo4j: Graph-like powerNeo4j: Graph-like power
Neo4j: Graph-like power
 
Graph databases & data integration v2
Graph databases & data integration v2Graph databases & data integration v2
Graph databases & data integration v2
 

Recently uploaded

04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationshipsccctableauusergroup
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptxthyngster
 
DBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfDBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfJohn Sterrett
 
Call Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceCall Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceSapana Sha
 
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptSonatrach
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfLars Albertsson
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts ServiceSapana Sha
 
How we prevented account sharing with MFA
How we prevented account sharing with MFAHow we prevented account sharing with MFA
How we prevented account sharing with MFAAndrei Kaleshka
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...Florian Roscheck
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...Suhani Kapoor
 
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...soniya singh
 
RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998YohFuh
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Jack DiGiovanna
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingNeil Barnes
 
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一F La
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfgstagge
 
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...dajasot375
 

Recently uploaded (20)

04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
 
DBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfDBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdf
 
Call Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceCall Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts Service
 
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts Service
 
How we prevented account sharing with MFA
How we prevented account sharing with MFAHow we prevented account sharing with MFA
How we prevented account sharing with MFA
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
 
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
 
RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998
 
E-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptxE-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptx
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
 
Decoding Loan Approval: Predictive Modeling in Action
Decoding Loan Approval: Predictive Modeling in ActionDecoding Loan Approval: Predictive Modeling in Action
Decoding Loan Approval: Predictive Modeling in Action
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data Storytelling
 
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdf
 
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
 

introduction to Neo4j (Tabriz Software Open Talks)

  • 1. Neo4j Tabriz Software Open Talks #opentalks @silverman2OOO9 2015-10-29 / 1394-08-07 Farzin Bagheri
  • 2. Table of Contents Database Relational Databases NOSQL ● NOSQL Categories Neo4j ● Cypher ● Example ● Usage
  • 4. Relational Database ● Relational Database : SQL Server , MySQL , Oracle,... ● Concepts : Table , Row, Column,… But,is it enough?
  • 6. Why? ● Cost ● Need Powerful hardware ● Need Expert ● Sometimes we need only some feature
  • 10. 4 Type of NoSQL Databases : ● Key-Value : ○ Data mode : Key and value! for example : Set A 20 ○ Example : Redis , Riak , Dynamodb (Amazon) ,... ○ Use Case : Task Queue (Celery) , Cashing ,... ● Document : ○ Data model : collection of Key - value : { FName : “Farzin” , LName : ”Bagheri” , City : “Khoy” } ○ Example : MongoDB , couchDB ○ Use Case : Inserting a Log Record (Nginx or Apache) ● Column Family or BigTable : ○ Data model : big table! each rows has their own Schema. ○ Example : Hbase , Cassandra ○ Use Case : like Relational Databases but more flexible ● Graph Databases ○ Data mode : Node (Vertices) , Relationship (Edge) and Properties ○ Example : Neo4j , OrientDB , ArangoDB ,... ○ Use Case : Social network , Recommendation , Graph-Based Search,...
  • 11. 4 Type of NoSQL Databases : ● Key-Value : ○ Data mode : Key and value! for example : Set A 20 ○ Example : Redis , Riak , Dynamodb (Amazon) ,... ○ Use Case : Task Queue (Celery) , Cashing ,... ● Document : ○ Data model : collection of Key - value : { FName : “Farzin” , LName : ”Bagheri” , City : “Khoy” } ○ Example : MongoDB , couchDB ○ Use Case : Inserting a Log Record (Nginx or Apache) ● Column Family or BigTable : ○ Data model : big table! each rows has their own Schema. ○ Example : Hbase , Cassandra ○ Use Case : like Relational Databases but more flexible ● Graph Databases ○ Data mode : Node (Vertices) , Relationship (Edge) and Properties ○ Example : Neo4j , OrientDB , ArangoDB ,... ○ Use Case : Social network , Recommendation , Graph-Based Search,...
  • 12. 4 Type of NoSQL Databases : ● Key-Value : ○ Data mode : Key and value! for example : Set A 20 ○ Example : Redis , Riak , Dynamodb (Amazon) ,... ○ Use Case : Task Queue (Celery) , Cashing ,... ● Document : ○ Data model : collection of Key - value : { FName : “Farzin” , LName : ”Bagheri” , City : “Khoy” } ○ Example : MongoDB , couchDB ○ Use Case : Inserting a Log Record (Nginx or Apache) ● Column Family or BigTable : ○ Data model : big table! each rows has their own Schema. ○ Example : Hbase , Cassandra ○ Use Case : like Relational Databases but more flexible ● Graph Databases ○ Data mode : Node (Vertices) , Relationship (Edge) and Properties ○ Example : Neo4j , OrientDB , ArangoDB ,... ○ Use Case : Social network , Recommendation , Graph-Based Search,...
  • 13. 4 Type of NoSQL Databases : ● Key-Value : ○ Data mode : Key and value! for example : Set A 20 ○ Example : Redis , Riak , Dynamodb (Amazon) ,... ○ Use Case : Task Queue (Celery) , Cashing ,... ● Document : ○ Data model : collection of Key - value : { FName : “Farzin” , LName : ”Bagheri” , City : “Khoy” } ○ Example : MongoDB , couchDB ○ Use Case : Inserting a Log Record (Nginx or Apache) ● Column Family or BigTable : ○ Data model : big table! each rows has their own Schema. ○ Example : Hbase , Cassandra ○ Use Case : like Relational Databases but more flexible ● Graph Databases ○ Data mode : Node (Vertices) , Relationship (Edge) and Properties ○ Example : Neo4j , OrientDB , ArangoDB ,... ○ Use Case : Social network , Recommendation , Graph-Based Search,...
  • 14.
  • 16. Graph ● Nodes ● Relationships ● Properties http://neo4j.com/developer/graph-database/
  • 17. How to talk to Neo4j?
  • 20. Creating Node Getting CREATE ( : Person { Fname : "Farzin" , Lname : "Bagheri" } )
  • 21. Creating other Nodes CREATE ( :Person { Fname : "Arash" , Lname : "Milani" } ) , ( :Person { Fname : "Masoud" , Lname : "Sadri" } ) Getting All
  • 22. Going to be Social ! :)
  • 25. Finding Friend and Friend of Friend : ● Friend of Someone :
  • 26. Finding Friend and Friend of Friend : ● Friend of Friend of Someone : ● Other way :
  • 28. Cloud
  • 29.
  • 30. (app) -[:depend_on]-> (os) - [:depend_on] -> (VM) -[:depend_on] >(Server)-[::depend_on] -> (Power)
  • 36. MATCH ( p:person { name:"B" } ) -[ :Has ]-> ( o1:Order )-[ :include ]->( b:Book ) <-[ :include ] - ( o2:Order ) -[:include]-> ( otherBook ) where not o1-[:include]->(otherBook) return distinct ( otherBook.name)
  • 38. Usage ● Social network ● Network Analysis ● Recommendation systems ● Fraud Detection ● Path Finding (Shortest path , simple path ,...) ● Digital Marketing
  • 40. Neo4j in Iran & World
  • 42. References ● www.db-engines.com ● www.neo4j.com ● www.linkedin.com ● Graph Database , Ian Robinson , Jim Webber & Emil Eifrem