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.
Graph Model rules represents information in Relationships, Nodes and properties.
Relationships and Nodes contains the properties.
Relationships interfaces nodes.
Properties are key esteem sets.
Relationships are represented using arrow keys and Nodes are represented using circle.
Relationships contains both Bi directional and unidirectional.
All the relationship contains starting node to an end node.
Building Blocks of Data Model
Description
And following are the major building blocks in Neo4j Graph Database. Such as:
Node
Relationships
Properties
Node
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
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
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
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.