Neo4J, First Lab Day for Begineers

 

Neo4J Lab DAY 1


I have install Neo4J Desktop edition referring to Install Document

Now lets open Neo4J application from shortcut on my desktop.


Step1:  I will stop default DBMS "Movie DBS" which is available with installation.  Stopping will help if I have small amount of RAM.


Neo4J graph DB algaestudy NoSQL










It will take some time to stop depends on your machine configuration

Neo4J graph DB algaestudy NoSQL






Step 2: We will create our new project and database with same name Demo. you can choose name of your choice

Neo4J graph DB algaestudy NoSQL

Neo4J graph DB algaestudy NoSQL



Neo4J graph DB algaestudy NoSQL


Neo4J graph DB algaestudy NoSQL


Neo4J graph DB algaestudy NoSQL

Neo4J graph DB algaestudy NoSQL

  • Lets connect to database and understand how to use
  • Click on open  and choose "Neo4J Browser"


Neo4J Browser

  • This will open new window with respect to my project Demo.
  • here in left navigation I can choose database Demo

Neo4J graph DB algaestudy NoSQL

Neo4J graph DB algaestudy NoSQL

My Database is empty, so let me run a few codes


Creating the node without label

  • // Create a node and view it
  • CREATE (n)
  • WITH n 
  • match (n) return (n)


Neo4J graph DB algaestudy NoSQL

Creating nodes and tagging one node with label person and other with company with properties and also setup relation between them.

  • // Create 2 nodes with label and view it
  • CREATE p = (:Person {name:'Andy'})-[:WORKS_AT]->(:Company {name: 'Neo4j'})<-[:WORKS_AT]-(:Person {name: 'Michael'})
  • RETURN p


Neo4J graph DB algaestudy NoSQL






Please refer other post for referring further labs on Neo4J



No comments:
Write comments

Please do not enter spam links

Meet US

Services

More Services