Database Reference
In-Depth Information
As you can see, the result is just as you'd expect, based on the graph in figure 6.1 . User 1
(John Johnson) has indeed seen only one movie: Fargo . You're returning movie nodes in
the query, so the result is represented as such. Fargo is a node in the database, with an in-
ternal ID of 4 and two properties, name and type , with expected values, and the Cypher
output illustrates that.
And that's it; you've executed your first Cypher query. You got the expected result by
simply describing the subgraph you're interested in, without having to write any Java code
and without worrying about transactions.
Executing Cypher using the Web Admin Console
The Neo4j server comes with another useful operational tool, the Web Admin Console, a
browser-based rich web interface to a Neo4j instance. It has plenty of features, allowing
you to query, manipulate, and visualize Neo4j graph data, manage Lucene indexes, and
maintain and monitor a Neo4j configuration. You can find more details about the Web Ad-
min Console in chapter 11 .
To access the Neo4j Web Admin Console, you need a running Neo4j server configured to
point to your database location, such as /var/neo4j/db from the previous example. Follow
these steps:
1 . Install the Neo4j server by downloading the correct version and following the in-
structions detailed in appendix A of this topic.
2 . Edit the main Neo4j server configuration file, located at $NEO4J_HOME/conf/
neo4j-server.properties. Locate the following line,
org.neo4j.server.database.location=data/graph.db
andreplace thedata directory soitpoints tothegraphdatabase youcreated inthepre-
vious section:
org.neo4j.server.database.location=/var/neo4j/db
3 . Save the configuration file.
4 . Start the Neo4j server using the following command:
Search WWH ::




Custom Search