Skip to main content

Posts

Showing posts with the label Spring-data-Neo4j

Neo4j - Basic Usecase Tutorial

  GraphDB GraphDB is a database concept where they save the data that we have in graph topology. That means they store data as nodes and edges which connect each node. Node can also have properties and edges can also have properties. This concept eases in finding relationship between nodes using edges, also traversing from node to node is easy. Using this concept there are many databases. In this example we will see  Neo4j . There are mainly three building blocks of a neo4j - Node, Relationship, Properties. Let us Consider a simple example to better understand it like social media. Here there will be entity Person he can have many friends, each person lives in a City, lets just consider this scenarios. RDBMS.  If we want to design this in RDBMS way - we can have three tables Person - with name(String), age(Int), id, city_id City - with name(String), id Friends - with id, id, fromYears(int) if one person is friend of another we store that in Friends table with id of both persons and whe