SlideShare a Scribd company logo
Otávio Santana @otaviojava
The new
generation of
data persistence
with Graph
Evolution
Goods
● Land
● Gold
● Oil
● Information
Machines
The information is
not enough
Big Data
Web 3.0
Web Semantic
Next?
Recommendation
The new generation of data persistence with graph
JCP
Ajax
Search
The new generation of data persistence with graph
The new generation of data persistence with graph
Stark
Rogers
Romanoff
Banners
Berlin
São Paulo
Moscow
San
Francisco
Medellin
Travel
Stark
Rogers
Romanoff
Banners
New York
São Paulo
Moscow
San
Francisco
Medellin
Travel
Business
Fun
Reasons why
travel
1. Fun
2. Conferences
3. Music
4. Geek Conf
5. Family
6. History
7. Language
8. Honeymoon
9. Work
10. Meetings
11. University
12. Shopping
13. Relax
More Information
name Tony Stark
nationality American
hero Iron man
power rich
when 2011
why Save the world
who flying
type Fun
name San Francisco
country USA
State California
Founded 1776
Travels
NoSQL
● Database
● Doesn't use structure
● Not Transaction
● BASE
● Five different types
SQL Key-value Column Document Graph
Table Bucket Column
Family
Collection
Row Key/value
pair
Column Document Vertex
Column Key/value
pair
Key/value pair Vertex and Edge
property
Relationship Link Edge
SQL vs NoSQL
Scalability vs Complexity
S
c
a
l
a
b
i
l
i
t
y Complexity
key-value
Column
Document
Graph
CAP
Graph
● Neo4j
● InfoGrid
● Sones
● HyperGraphDB
Apollo Ares
Kratoswas killed by was killed by
Is brother
killed killed
Graph
Grace Hopper
label Person
id ada
name Ada Lovelace
occupation scientist
Ada Lovelace
label Person
id grace
name Grace Hopper
occupation scientist
Knows
Vertex Vertex
Edge
Graph
Radioactive
label Person
id marie_curie
name Marie Curie
occupation scientist
Marie Curie
label nature
id radioactive
name Radioactive
discovers
when 1867
where Europe
Graph Database
TinkerPop
TinkerPop
Grace Hopper
label Person
id grace
name Grace Hopper
occupation scientist
Vertex
grace = graph.addVertex(
T.label, "person",
"id", "grace",
"name", "Grace Hopper",
"occupation", "scientist");
TinkerPop
Grace
Hopper
Ada
Lovelace
Knows
grace.addEdge("knows", ada);
Edges
Out ->
In <-
Both
Marketing
Campaign
● Engineer
● Salary 3000
● Age between 20 and 25 years
SQLId name Occupation Salary age gender
... ... ... ... ... ...
SELECT * FROM Person WHERE
occupation = "Engineer" AND
salary > 3000 and age BETWEEN 20
AND 25
TinkerPopGrace
Hopper
Ada
Lovelace
Knows
g.V().has("occupation","Engineer")
.has("salary", gt(3000))
.has("age", between(20, 25));
Their Friends
SQLId name Occupation Salary age gender
... ... ... ... ... ...
SELECT * FROM Person WHERE
occupation = "Engineer" AND
salary > 3000 and age BETWEEN 20
AND 25//...joins
Id know
... ...
TinkerPopGrace
Hopper
Ada
Lovelace
Knows
g.V().has("occupation","Engineer")
.has("salary", gt(3000))
.has("age", between(20, 25))
.out("knows");
Falling in love
SQLId name Occupation Salary age gender
... ... ... ... ... ...
SELECT * FROM Person WHERE
occupation = "Engineer" AND
salary > 3000 and age BETWEEN 20
AND 25//...joins
Id know
... ...
Id love
... ...
TinkerPopGrace
Hopper
Ada
Lovelace
Knows
g.V().has("occupation","Engineer")
.has("salary", gt(3000))
.has("age", between(20, 25))
.outE("knows")
.has("feel", "love")
.bothV();
g.V().repeat(out("eats"))
.times(3);
g.V().repeat(out("eats"))
.until(has("name", "grass"));
//path().by("name");
Otávio Santana @otaviojava

More Related Content

PDF
NoSQL design pitfalls with Java
PDF
Modern Cloud-Native Jakarta EE Frameworks: tips, challenges, and trends.
PDF
Architecting Cloud Computing Solutions with Java [1.1]
PDF
Arquitetando soluções de computação em nuvem com Java
PDF
Build, run, and scale your Java applications end to end
PDF
Jakarta NoSQL: Meet the first Jakarta EE specification in the Cloud
PDF
ORMs: Heroes or Villains Inside the Architecture?
PDF
Jakarta EE Meets NoSQL at the Cloud Age
NoSQL design pitfalls with Java
Modern Cloud-Native Jakarta EE Frameworks: tips, challenges, and trends.
Architecting Cloud Computing Solutions with Java [1.1]
Arquitetando soluções de computação em nuvem com Java
Build, run, and scale your Java applications end to end
Jakarta NoSQL: Meet the first Jakarta EE specification in the Cloud
ORMs: Heroes or Villains Inside the Architecture?
Jakarta EE Meets NoSQL at the Cloud Age

More from Otávio Santana (20)

PDF
Boost your APIs with GraphQL 1.0
PDF
Jakarta EE Meets NoSQL in the Cloud Age [DEV6109]
PDF
Let’s Make Graph Databases Fun Again with Java [DEV6043]
PDF
Eclipse JNoSQL: One API to Many NoSQL Databases - BYOL [HOL5998]
PDF
Eclipse JNoSQL updates from JCP September 11
PDF
Stateless Microservice Security via JWT and MicroProfile - Guatemala
PDF
Stateless Microservice Security via JWT and MicroProfile - Mexico
PDF
Eclipse JNoSQL: The Definitive Solution for Java and NoSQL Database
PDF
Polyglot persistence
PDF
Management 3.0 and open source
PDF
Building a Recommendation Engine with Java EE
PDF
Cassandra NoSQL, NoLimits!
PDF
Disasters of the century NoSQL
PDF
Building a recommendation engine with tinker pop
PDF
NoSQL, no Limits, lots of Fun!
PDF
MicroProfile: uma nova forma de desenvolver aplicações corporativas na era do...
PDF
The JNoSQL Eclipse Foundation.
PDF
Let's talk about NoSQL Standard
PDF
Java ME API Next
PDF
Open Source e Humanidade: mas o que minha carreira tem com isso?
Boost your APIs with GraphQL 1.0
Jakarta EE Meets NoSQL in the Cloud Age [DEV6109]
Let’s Make Graph Databases Fun Again with Java [DEV6043]
Eclipse JNoSQL: One API to Many NoSQL Databases - BYOL [HOL5998]
Eclipse JNoSQL updates from JCP September 11
Stateless Microservice Security via JWT and MicroProfile - Guatemala
Stateless Microservice Security via JWT and MicroProfile - Mexico
Eclipse JNoSQL: The Definitive Solution for Java and NoSQL Database
Polyglot persistence
Management 3.0 and open source
Building a Recommendation Engine with Java EE
Cassandra NoSQL, NoLimits!
Disasters of the century NoSQL
Building a recommendation engine with tinker pop
NoSQL, no Limits, lots of Fun!
MicroProfile: uma nova forma de desenvolver aplicações corporativas na era do...
The JNoSQL Eclipse Foundation.
Let's talk about NoSQL Standard
Java ME API Next
Open Source e Humanidade: mas o que minha carreira tem com isso?
Ad

Recently uploaded (20)

PPTX
A Presentation on Artificial Intelligence
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
KodekX | Application Modernization Development
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Empathic Computing: Creating Shared Understanding
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Approach and Philosophy of On baking technology
PPT
Teaching material agriculture food technology
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
Big Data Technologies - Introduction.pptx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
cuic standard and advanced reporting.pdf
A Presentation on Artificial Intelligence
Building Integrated photovoltaic BIPV_UPV.pdf
KodekX | Application Modernization Development
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
Understanding_Digital_Forensics_Presentation.pptx
Spectral efficient network and resource selection model in 5G networks
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Empathic Computing: Creating Shared Understanding
Chapter 3 Spatial Domain Image Processing.pdf
Approach and Philosophy of On baking technology
Teaching material agriculture food technology
Digital-Transformation-Roadmap-for-Companies.pptx
Big Data Technologies - Introduction.pptx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
cuic standard and advanced reporting.pdf
Ad

The new generation of data persistence with graph