Sample datasets
Memgraph publishes sample graph datasets that you can load to try Cypher queries, graph algorithms and Memgraph Lab visualizations. Each dataset is a CYPHERL file: Cypher queries that create its indexes, nodes and relationships.
Load a dataset
Load a dataset into an empty database. Loading it again, or into a database that already has data, adds a second copy of its nodes and relationships. To empty the database first, run:
MATCH (n) DETACH DELETE n;You can load a dataset with mgconsole or with Memgraph Lab.
With mgconsole
If Memgraph runs in Docker, download the dataset’s file and pipe it into mgconsole inside the container. This command loads Capital cities and borders:
curl -fsSL https://download.memgraph.com/datasets/country-capitals/cypherl/dataset.cypherl.gz | gunzip | docker exec -i CONTAINER_NAME mgconsoleCONTAINER_NAME is the name of your Memgraph container: memgraph-mage if
you started Memgraph with the Getting started
installer. For another dataset,
use its file link from the list of datasets.
Check that the counts match the dataset’s row in the list. For Capital cities and borders:
MATCH (n) RETURN count(n) AS nodes;+-------+
| nodes |
+-------+
| 212 |
+-------+With Memgraph Lab
In Memgraph Lab, open Datasets in the sidebar, find the dataset and click Load dataset. Lab lists the datasets from the same catalog as the list below.
Available datasets
The datasets are listed by title. The slug is the dataset’s name in its file
link, and the file link is what the mgconsole command
loads. The same list is available as JSON at
https://download.memgraph.com/datasets/items.v1.json, with each dataset’s
graph model and sample queries.
| Dataset | Slug | Description | Nodes | Relationships | File |
|---|---|---|---|---|---|
| Analysis of energy management systems | energy-management-system | Energy management model with connected power generators across Europe. | 8,422 | 11,437 | CYPHERL |
| Base station network of Zagreb | base-station-network-of-zagreb | Artificially generated geographic data about 200 base stations in Zagreb, Croatia. | 200 | 2,388 | CYPHERL |
| Business process management | business-process-management | Sample dataset of business process definitions and their recorded executions across an organization. | 32,594 | 112,131 | CYPHERL |
| Capital cities and borders | country-capitals | Network of capital cities connected as neighboring countries. | 212 | 369 | CYPHERL |
| CORA: Scientific publications classified into seven categories | cora-scientific-publications | 2708 scientific publications classified into one of seven classes. | 2,708 | 5,278 | CYPHERL |
| Country import and export trades | country-trade-imports-exports | International merchandise and commercial services trade data per country. | 190 | 27,779 | CYPHERL |
| Drug combinations database | drug-combinations | Drug combinations database is comprehensive collection of drug combinations from various sources. | 2,956 | 191,387 | CYPHERL |
| Europe backpacking | europe-backpacking | Tourist prices and other data for 56 of the most popular European cities. See the tutorial. | 92 | 349 | CYPHERL |
| Europe gas pipelines | europe-gas-pipelines-scigrid | SciGRID_gas dataset of European natural gas transmission infrastructure. | 1,604 | 2,181 | CYPHERL |
| Europe road network | europe-road-network | Road network of 999 major European cities from 39 countries. See the tutorial. | 1,038 | 65,379 | CYPHERL |
| Eurovision voting results | eurovision-voting-results | Eurovision Song Contest results from 1975 to 2023. | 54 | 38,415 | CYPHERL |
| F1 races from 1950 to 2022 | f1-races | Dataset containing historic F1 race results, with individual drivers and constructors. | 4,372 | 48,658 | CYPHERL |
| Football player’s transfers | football-player-transfers | Football transfers in famous five European football leagues. See the tutorial. | 14,577 | 56,622 | CYPHERL |
| Football Premier league games | football-premier-league-games | Football matches across world’s most popular leagues. See the tutorial. | 78,380 | 155,570 | CYPHERL |
| Game of Thrones deaths | game-of-thrones-deaths | Kills and deaths of various characters from the Game of Thrones TV show. See the tutorial. | 2,677 | 11,967 | CYPHERL |
| Global supply chain | global-supply-chain | Sample dataset of a multi-tier electronics supply chain, from raw materials and suppliers to customer deliveries and the risks that disrupt them. | 14,400 | 61,616 | CYPHERL |
| Graph technology landscape | graph-technology-landscape | Network of popular graph technologies and the categories they belong to. | 349 | 368 | CYPHERL |
| Hetionet: network of biology, disease, and pharmacology | hetionet | Hetionet is a hetnet — network with multiple node and edge (relationship) types — which encodes biology, disease, and pharmacology. | 47,031 | 2,250,197 | CYPHERL |
| High-energy physics citation network | physics-citation-network | High-energy physics citation graph is from the e-print arXiv and covers some of the citations within a dataset of 395 nodes and 1106 edges. | 395 | 1,106 | CYPHERL |
| Identity and access management | iam-memgraph | A sample of identity and access management model on Memgraph. | 27 | 37 | CYPHERL |
| Karate club friendship network | karate-club-friendship-network | Zachary’s karate club as a social network of a university karate club. | 34 | 78 | CYPHERL |
| Knowledge graph of parts dependencies | dependencies-knowledge-graph | A sample of Knowledge Graph of parts dependencies. | 38 | 57 | CYPHERL |
| Marvel Cinematic Universe | marvel-cinematic-universe | Social network of various comics interactions between heroes from MCU. See the tutorial. | 21,732 | 682,943 | CYPHERL |
| MovieLens: Movies, genres and users | movielens | MovieLens dataset of users, genres and movie ratings. See the tutorial. | 32,436 | 122,920 | CYPHERL |
| Music genres social network | music-genres-social-network | Network of users and genres from the music streaming platform Deezer. | 2,001 | 5,170 | CYPHERL |
| Network of air traffic | air-traffic | Dataset containing airways, airports and waypoints. | 188 | 559 | CYPHERL |
| Protein-protein interaction network | protein-interactions | Protein-protein interaction (PPI) networks are mathematical representations of the physical contacts between proteins in the cell. | 262 | 784 | CYPHERL |
| Python dependency vulnerabilities | python-dependency-vulnerabilities | Sample dataset used for cybersecurity analysis of Python dependency packages. | 284 | 158 | CYPHERL |
| S&P 500 stock prices | sp-500-stock-prices | Stock price dataset containing 503 stocks that are currently part of s&p 500. | 538 | 17,639 | CYPHERL |
| Subreddit network explorer | subreddit-network-explorer | Subset of posts and comments from the subreddit /r/worldnews. | 852 | 744 | CYPHERL |
| Supply chain analysis | supply-chain-analysis | Sample dataset used for the analysis of a common supply chain. | 34 | 49 | CYPHERL |
| TED talks | ted-talks | Shows 97 TED talks filled with interconnected speakers, talks, events, and tags. See the tutorial. | 354 | 2,259 | CYPHERL |
| The Pandora Papers | icij-pandora-papers | A sample of the Pandora Papers containing offshore entities, world leaders and public officials. | 389 | 740 | CYPHERL |
| Twitter Christmas retweets | twitter-christmas-retweets | A Twitter network of retweets that contain the hashtag #Christmas. | 1,868 | 1,967 | CYPHERL |
| USA national parks | national-parks | Various data about animals, plants and details of national parks they live in. | 13,629 | 43,204 | CYPHERL |
| Vehicle insurance data | vehicle-insurance | Generated sample dataset of vehicle insurance claims and policies. | 8,582 | 12,128 | CYPHERL |
| Video game sales | video-game-sales | Large amount of information on video game sales from 1980 till 2016. | 8,825 | 27,065 | CYPHERL |
| Wikipedia articles | wiki-articles | Various Contents and contexts of 339 featured Wikipedia articles. | 78,181 | 310,227 | CYPHERL |