Neo4j Graph Examples
Status: Backlog — not shipped in v0.5.0 (see Datasets overview).
Planned support for Neo4j’s curated collection of example graph datasets.
Overview
Section titled “Overview”Neo4j Graph Examples provides educational and demonstration datasets that are perfect for learning Cypher and exploring graph concepts.
Dataset Source
Section titled “Dataset Source”- URL: https://github.com/neo4j-graph-examples
- License: Apache 2.0 (most datasets)
- Category: Educational, Demonstrations
Available Datasets
Section titled “Available Datasets”Popular Examples
Section titled “Popular Examples”| Dataset | Nodes | Edges | Size | Description |
|---|---|---|---|---|
| movie-graph | ~170 | ~250 | ~50 KB | Classic movie database |
| northwind | ~1K | ~3K | ~100 KB | Northwind business data |
| game-of-thrones | ~800 | ~3K | ~150 KB | Character relationships |
| stackoverflow | ~50K | ~200K | ~15 MB | Q&A network |
| ~2K | ~8K | ~500 KB | Twitter interactions |
Schema Examples
Section titled “Schema Examples”Movie Graph
Section titled “Movie Graph”Nodes:
Person(actors, directors)Movie
Relationships:
ACTED_INDIRECTEDPRODUCEDREVIEWED
from graphforge import GraphForgefrom graphforge.datasets import load_dataset
# Load the movie graphgf = GraphForge()load_dataset(gf, "neo4j-movie-graph")
# Find movies and actorsresults = gf.execute(""" MATCH (p:Person)-[:ACTED_IN]->(m:Movie) WHERE m.released > 2000 RETURN p.name, m.title, m.released ORDER BY m.released DESC""")Example Queries
Section titled “Example Queries”Movie Recommendations
Section titled “Movie Recommendations”MATCH (p:Person {name: 'Tom Hanks'})-[:ACTED_IN]->(m:Movie)<-[:ACTED_IN]-(coActor:Person)MATCH (coActor)-[:ACTED_IN]->(rec:Movie)WHERE NOT (p)-[:ACTED_IN]->(rec)RETURN DISTINCT rec.title AS recommendationLIMIT 10Director Analysis
Section titled “Director Analysis”MATCH (d:Person)-[:DIRECTED]->(m:Movie)RETURN d.name AS director, count(m) AS moviesDirectedORDER BY moviesDirected DESCCLI Usage
Section titled “CLI Usage”# List Neo4j example datasetsgraphforge list-datasets --source neo4j-examples
# Load movie graphgraphforge load-dataset neo4j-movie-graphLearning Resources
Section titled “Learning Resources”These datasets are ideal for:
- Learning Cypher syntax
- Understanding graph modeling
- Demonstrations and presentations
- Testing queries before production