Skip to content

Latest commit

 

History

History
112 lines (81 loc) · 3.11 KB

README.adoc

File metadata and controls

112 lines (81 loc) · 3.11 KB
icon

Movies Graph Example

Description: Small example graph of popular movies and actors

model
Figure 1. Model
example
Figure 2. Example
Example Query:
MATCH (movie:Movie {title:$favorite})<-[:ACTED_IN]-(actor)-[:ACTED_IN]->(rec:Movie)
 RETURN distinct rec.title as title LIMIT 20

Setup

This is for Neo4j version: 3.5,4.0

The database is also available on https://demo.neo4jlabs.com:7473

Username "movies", password: "movies", database: "movies"

Rendered guide available via: :play https://guides.neo4j.com/sandbox/movies/index.html

Load graph data via the following:

Dump file: data/movies-40.dump

  • Drop the file into the Files section of a project in Neo4j Desktop. Then choose the option to Create new DBMS from dump option from the file options.

  • Use the neo4j-admin tool to load data from the command line with the command below.

bin/neo4j-admin load --from data/movies-40.dump [--database "database"]

Data load script: scripts/movies.cypher

bin/cypher-shell -u neo4j -p "password" -f scripts/movies.cypher [-d "database"]

Or import in Neo4j Browser by dragging or pasting the content of scripts/movies.cypher.

Code Examples

Feedback

Feel free to submit issues or pull requests for improvement on this repository.