Neo4j - SPLessons

Neo4j Data Modeling

Home > Lesson > Chapter 9
SPLessons 5 Steps, 3 Clicks
5 Steps - 3 Clicks

Neo4j Data Modeling

Neo4j Data Modeling

shape Description

The graph database product that encounter very flexible  and cannot be used for a fixed schema or a node. That means one can add or delete and property of nodes without affecting already stored nodes. Because of that, a graph database responds well in an agile environment where course change of a product are very common. All graph databases support one or more query language to retrieve and store data. Graph database also implement the property great model. Earlier that a graph model contains nodes and relationships. It follows the Property Graph Model to manages and store its information. Following are the properties of Graph Data Model.

Building Blocks of Data Model

shape Description

And following are the major building blocks in Neo4j Graph Database. Such as:

Node

shape Description

The major unit of a graph is said to be node.It consists of the properties with the key esteems combination. It contain all the details of an employee such as id, name, deptno and salary.
Emp_id Ename Deptno Salary
1001 David 10 25000
1002 Miller 20 35000

Relationships

shape Description

Relationships are another significant building block of a Graph Database. It associate two nodes as shown below. Here Employee and Department are two different nodes and combination is the relationship among the two nodes Employee and Department. A relationship exists between the employee and department.And the node start with the employee and the node ends with department.

Properties

shape Description

Properties are the key esteem combinations to characterize the Relationships and a Graph Nodes. Key = value
  • Here key is the combination of strings
  • Value represented by using any Neo4j Data types.

Summary

shape Key Points

  • Neo4j Data Modeling - Is a product that encounter the flexible in the graph database.
  • Building Blocks of Data Model - Describes the basic functionality of neo4j graph database.