Use Neo4j Bloom with Aura Database
We will learn how to connect Neo4j Bloom with a Neo4j cloud Aura instance.
We should have created and started a Neo4j Aura database instance. If we have not already, we can follow the instructions in the getting started guide to step through the process.
If you have worked with Neo4j previously, you may already be familiar with the movie graph used in other tutorials and examples. This graph is a small data set of movie and person entities and the relationships between them for people who acted in or directed the films.
Neo4j has already set up a script and guide to help users import this data into Neo4j. To access it, we can open a Neo4j Browser window.
In the Neo4j Aura console (console.neo4j.io), choose the blue button at the right of the instance for
Open with and choose
Once we have Neo4j Browser open, we can click in the command line input at the top, type in
:play movie-graph, then click the
play button to the right of the input.
A slideshow will appear beneath the command line, and we can use the next button to see the next page of the Browser guide.
Click on the Cypher statement (in grey dotted lines on the right).
This will copy it to the command line above, and then we can click the
play button again to run that statement.
It will return a piece of the graph and display it in another result pane that appears below the command line.
We will also need to add indexes for the Person and Movie labels, which we will do by running the following two Cypher statements:
CREATE INDEX ON :Person(name);
CREATE INDEX ON :Movie(title);
Copy each one into the command line, running each one by clicking the
Let’s explore the movie data with Neo4j Bloom!
First, we launch our Bloom application by clicking again on the
Open with button on the Neo4j Aura console, selecting
Neo4j Bloom this time.
We will need to provide the username and password for our Aura instance before we can continue.
It will then ask us to choose a perspective, which we will allow Bloom to do for us by clicking on the
Create Perspective, and then the
Generate Perspective button.
This will create a new perspective that we will then choose - select by clicking on the
Use Perspective button.
To view some data, we can type in
Movie Person in the search bar and click on the first suggestion that appears underneath it.
That will show us all the
Movie nodes who have
Person nodes connected to them.
We can zoom in (using the
- icons in the lower right) to view more details about all of the nodes, and we can move about the graph by clicking in an empty space in the scene and dragging it around.
This is quite a bit more data than we probably want to start with, so let us query something with a bit narrower scope.
We can clear the scene by right-mouse clicking on an empty space in the scene and choosing the
Clear Scene option in the menu.
Next, we can write a query to look for a specific movie and the people who are connected to it.
To do this, type
The Polar Express Person into the search bar and click on the first suggestion that appears beneath it.
This will display the results of the query in the scene and allow us to explore a bit more.
We can see that there are two people connected to this movie in our dataset -
Tom Hanks and
We can find out if these two
Person nodes have any other connections by expanding those nodes.
For this, click on one of the persons where a white border appears around the node.
Then right-mouse click and choose the
Expand, and then
All options from the menu.
Once complete for both
Robert Zemeckis and
Tom Hanks, we can see that both people were also involved in the
Cast Away movie.
Both times, Robert directed the movies and Tom Hanks acted in them (relationship types
Was this page helpful?