Experiment No. 8: 1. Aim: 2. Objectives
Experiment No. 8: 1. Aim: 2. Objectives
8
1. Aim: Implement and analyse Graph Database using open source tool. Eg. Neo4J.
2. Objectives:
Understand and Analyze the concept of graph based using case studies.
Implement Graph database using Neo4J tool.
-depth look
at the Labeled Property Graph Model in the Neo4j database. It has the following components:
Nodes (equivalent to vertices in graph theory). These are the main data elements that
are interconnected through relationships. A node can have one or more labels (that
describe its role) and properties (i.e. attributes).
Relationships (equivalent to edges in graph theory). A relationship connects two
nodes that, in turn, can have multiple relationships. Relationships can have one or
more properties.
Labels. These are used to group nodes, and each node can be assigned multiple
labels. Labels are indexed to speed up finding nodes in a graph.
Properties. These are attributes of both nodes and relationships. Neo4j allows for
storing data as key-value pairs, which means properties can have any value (string,
number, or boolean).
52
of a simple graph data model in Neo4j:
As you can see, this graph contains two nodes (Alice and Bob) that are connected by
relationships. Both nodes share the same label, Person
properties, but in Neo4j every node and relationship can have properties.
think in terms of tables and rows but in terms of abstract objects and connections. In fact,
anything you can draw on a blackboard can be displayed with a graph.
6. Conclusion:
7. Viva Questions:
8. Reference books & Links:
1.
McGraw Hill
2. Hill.
53
Advanced Databases Lab
Experiment No. : 9
Design and Implement queries on
Temporal Database.
54