Course · Part of Sharpen your Cypher

Importing Data Fundamentals

Import data into Neo4j with confidence. Load CSV files, map relationships, and use Cypher and the Data Importer to build a graph from your own data.

2 hours13 lessons across 3 modules
About this course

In this 2-hour course, you will learn

Modeling a graph is only half the job. At some point you have to load real data into Neo4j, and the shape of your source files rarely matches the shape of your graph. This course teaches you how to bridge that gap using the Neo4j Full definition for Data Importer (opens in a new tab)The Neo4j tool for loading CSV files into a graph by mapping their columns onto nodes and relationships., a visual tool that maps CSV files to Full definition for node (opens in a new tab)A vertex in a graph. In a property graph it can carry labels and properties., Full definition for relationship (opens in a new tab)A named, directed connection between two nodes. Every relationship has a type, a start node and an end node., and Full definition for property (opens in a new tab)A named value stored on a node or a relationship. without writing any Full definition for Cypher (opens in a new tab)Neo4j's implementation of GQL, the ISO standard query language for graph databases. It is declarative: you describe the pattern to find, and the database decides how to find it..

Over roughly two hours, you will import a set of movie and user rating CSV files into a Neo4j database. You will also step back to inspect your source data and think about what its structure means for the graph you are building.

  • Importing Data into Neo4j

    Load CSV files into a Neo4j database, mapping columns to nodes and relationships to build a fully connected graph from structured data.

  • Options for Importing Data

    Compare Neo4j's available import methods — LOAD CSV, the Data Importer, and the neo4j-admin tool — and choose the right approach for your data size and workflow.

  • Using Neo4j Import Tool

    Configure and run the Neo4j Data Importer to visually map source data to a graph model, then execute the import without writing a single Cypher statement.

  • Who this course is for

    This course is for data engineers and developers who need to get data into Neo4j and want a reliable, repeatable way to do it. If you have already modeled a graph and now need to turn a folder of CSV files into a running graph, this is where that work becomes concrete. You do not need to be a Full definition for Cypher (opens in a new tab)Neo4j's implementation of GQL, the ISO standard query language for graph databases. It is declarative: you describe the pattern to find, and the database decides how to find it. expert, because the Full definition for Data Importer (opens in a new tab)The Neo4j tool for loading CSV files into a graph by mapping their columns onto nodes and relationships. does the heavy lifting through a visual interface, but you should know the basics covered in Neo4j Fundamentals, Cypher Fundamentals, and Graph Data Modeling Fundamentals so you can describe what the importer creates and query the result to confirm the import worked as intended.

  • What you'll do

    This is a hands-on course built around a single practical task: importing a movie dataset into Neo4j from CSV. You will start with an overview of the different ways to import data, from LOAD CSV and the official drivers to the neo4j-admin database import command, so you can pick the right tool for a given job.

    Then you do the work. You will open the Neo4j Full definition for Data Importer (opens in a new tab)The Neo4j tool for loading CSV files into a graph by mapping their columns onto nodes and relationships., load a set of CSV files, and map their columns onto a graph model. You will create Movie Full definition for node (opens in a new tab)A vertex in a graph. In a property graph it can carry labels and properties. and give them Full definition for property (opens in a new tab)A named value stored on a node or a relationship. with explicit data types, so numbers and dates are stored correctly rather than everything landing as a string. You will set a unique ID for each node and back it with a uniqueness Full definition for constraint (opens in a new tab)A rule the database enforces on every node or relationship with a given label or type, rejecting any write that breaks it., add an index to speed up lookups, create Full definition for directed relationship (opens in a new tab)A relationship that runs one way, from its start node to its end node. Every relationship Neo4j stores is directed. between your nodes, and import user rating data that connects people to the movies they have watched. By the end you will have taken a folder of flat files and produced a connected graph you can query, using a workflow that transfers directly to your own data.

  • Where to go next

    The Full definition for Data Importer (opens in a new tab)The Neo4j tool for loading CSV files into a graph by mapping their columns onto nodes and relationships. is a great starting point, but not the only approach worth knowing. Importing CSV data into Neo4j shows you how to import data using Full definition for Cypher (opens in a new tab)Neo4j's implementation of GQL, the ISO standard query language for graph databases. It is declarative: you describe the pattern to find, and the database decides how to find it. directly, giving you finer control than the visual tool and a path to scripting your imports, while LOAD CSV Data Import goes deep on the LOAD CSV clause, including larger files and Full definition for transaction (opens in a new tab)A unit of work that either succeeds in full or leaves no trace.. Importing is also a topic on the exam for the Neo4j Certified Professional certification, so the skills you build here count toward earning that credential.