2. Neo4j, Inc. All rights reserved 2022
Neo4j is a Native Graph Database
2
3. Neo4j, Inc. All rights reserved 2022
Relational VS Graph models
3
Relational Model Graph Model
KNOWS
KNOWS
KNOWS
ANDREAS
TOBIAS
MICA
DELIA
Person Friend
Person-Friend
ANDREAS
DELIA
TOBIAS
MICA
4. Neo4j, Inc. All rights reserved 2022
Labeled property graph model components
● Nodes
- Represent objects in the graph
● Relationships
- Relate nodes by type and direction
● Properties
- Name-value pairs that can go
on nodes and relationships
- Can have indexes and composite indexes
(types: String, Number, Long, Date, Spatial, byte
and arrays of those)
● Labels
- Group nodes
- Shape the domain
4
CAR
DRIVES
name: “Dan”
born: May 29, 1970
twitter: “@dan”
name: “Ann”
born: Dec 5, 1975
since:
Jan 10,
2011
brand: “Volvo”
model: “V70”
LOVES
LIVES WITH
O
W
N
S
PERSON PERSON
LOVES