DEV Community

Sudhir Dontha
Sudhir Dontha

Posted on • Edited on

What is Neo4j? Why it is used? What is graph Database? Neo4j - 1

  • This will be a series of article's , #1 of Neo4j series

Q.What is a graph DB?

  • Database that uses graph structures for semantic queries with nodes, edges and properties to store data! Can perform CRUD operations too..

Cypher Query language

  • Neo4j provides a powerful declarative query language known as Cypher, to represent the graph visually.
    The commands of this language are in human readable format

  • Cypher is easy to learn and can be used to create and retrieve relations between data without using the complex queries like Joins.

  • Support's two kinds of Java API:

    • Cypher API and
    • Native Java API to develop Java applications.

      RDBMS -> Graph Database
      Tables -> Graphs
      Rows -> Nodes
      Columns and Data -> Properties and its values
      Constraints -> Relationships
      Joins -> Traversal

Neo4j Graph Database has the following building blocks
-> Nodes - represents entities or items (users, accounts..)
-> Edges - Lines that connect nodes to other nodes or nodes to properties (Graphs or relationships)
-> Properties - or Attributes which hold the info related to nodes
-> Relationships
-> Labels
-> Data Browser
Example

properties are represented in the circle / rectangle area and the relationship is represented using the lines between the properties

Top comments (0)