neo4j-graph-examples / movies

Built-in Movie Graph Example

Home Page:https://sandbox.neo4j.com/?usecase=movies

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Built-in Movie Graph Example

https://sandbox.neo4j.com/?usecase=movies


Languages

Language:Cypher 83.8%Language:Go 5.3%Language:Java 3.6%Language:C# 3.2%Language:JavaScript 2.3%Language:Python 1.8%