No SQL Practical File
No SQL Practical File
NO SQL
3 Practical lab :- 3
4 Practical lab :- 4
PRACTICAL:-1
2)
3)
PRACTICAL :- 3
WORKING WITH NEO4J
NEO4J INSTALLATION
1) Download the latest release from Neo4j Download Center.
Select the appropriate ZIP distribution.
2) Check that the SHA hash of the downloaded file is correct:
a. To find the correct SHA hash, go to Neo4j Downloaded center and click
on SHA-256 which will be located below your downloaded file.
b. Using the appropriate commands for your platform, display the SHA-256
Hash for the file that you downloaded.
c. Ensure that the two are identical.
3) Right-click the downloaded file, click extract all.
4) Change the directory to the top level extracted directory.
Run bin\neo4j console
5) Stop the server by typing Ctrl-c in the console.
WINDOWS SERVICE
Neo4j can also be run as a windows service. Install the service with bin\neo4j
install-service, and start it with bin\neo4j start.
The available commands for bin\neo4j are: help, start, stop, restart, status, install-
service, uninstall-service, and update-service.
NEO4J COMMANDS AND SCREENSHOTS
1) Write a query to return all the movies that were released after the year
2000 limiting the result to 5 items.
2) Write a Query to retrieve all the movies released after the year 2005.
3) Write a query to return the count of movies released after the year 2005.
4) Write a query to return all person nodes who directed a movie that was
released after 2010.
5) Write a query to get all the people who acted in a movie that was released
after 2010.
8) Write a query to return movie nodes but with only the little and released
properties.
9) Write a query to get name and born properties of the person node.
10) Create a new person node with property name having value John
doe.
11) Write a query to find the movie with title “cloud atlas.
12) Write a query to get all the movies that were released between 2010
and 2015.
13) Write a query using merge to create a movie node with tittle
“Greyhound”. If the node does not exist then set its released property to
2020 and lastupdatedat property to the current time stamp. If the node
already exists, then only set lastupdatedat to the current time stamp.
Return the movie node.
PRACTICAL:- 4
4) INSTALLATION OF CASSSANDRA.
Step 1) Run the datastax community edition setup. After running the setup,
following page will be delayed. Here in the screenshot 64 bit version is being
installed. You can download 32 bit version as well according to your
requirements. But I recommended 64 bit version to use.
This page gives you information about the Cassandra version you are going to
install. Press the ‘next’ button.
Step 2) After pressing the ‘next’ button, following page will be displayed.
This page is about the license agreement. Mark the checkbox and press the next
button.
Step 3) After pressing the ‘next’ button, the following page will be displayed.
This page asks about the installation location.
1) Default location is C:\Program Files. You can change installation location if
you want to change. It is recommended not to change installation location.
2) After setting installation location, press the ‘next’ button
Step 4) After pressing ‘next’ button in above step, the following page will be
displayed. This page asks about whether you want to automatically start
Cassandra and OpsCenter.