Skip to main content
Version: Next

Step 5: Import Data

Now you fill the movie database with the sample data. Background: Import Mapper.

The Sample Files​

Download the files if you have not done so yet: movies.csv, actors.csv, cast.csv.

movies.csv — the column names match the technical names of the properties, and the genre is the value of the enum entry:

movies.csv
title,release_year,runtime_minutes,genre
The Godfather,1972,175,crime
Casablanca,1942,102,drama
Star Wars,1977,121,science_fiction
Jurassic Park,1993,127,adventure
The Matrix,1999,136,science_fiction
Toy Story,1995,81,animation
Pulp Fiction,1994,154,crime
Titanic,1997,195,drama
Amélie,2001,122,comedy
Spirited Away,2001,125,animation

actors.csv:

actors.csv
first_name,last_name,birth_date
Marlon,Brando,1924-04-03
Al,Pacino,1940-04-25
Humphrey,Bogart,1899-12-25
Ingrid,Bergman,1915-08-29
Mark,Hamill,1951-09-25
Harrison,Ford,1942-07-13
Keanu,Reeves,1964-09-02
Carrie-Anne,Moss,1967-08-21
Tom,Hanks,1956-07-09
Uma,Thurman,1970-04-29
John,Travolta,1954-02-18
Leonardo,DiCaprio,1974-11-11
Kate,Winslet,1975-10-05
Audrey,Tautou,1976-08-09
Jeff,Goldblum,1952-10-22
Sam,Neill,1947-09-14

If you kept Casablanca and Humphrey Bogart from the earlier steps, remove their lines from the files first.

Import the Movies​

  1. Open Administration → Integrations → Import Mapper.
  2. Enter a Mapping Name, for example movies_csv.
  3. Under Source — Upload Pattern, click Choose file and choose movies.csv. The columns of the file appear under Source Fields.
  4. Under Target — Entity Type, choose Movie. Its properties appear under Target Fields.
  5. Map each source field to the property with the same name: title → Title, release_year → Release year, runtime_minutes → Runtime (minutes), genre → Genre. The AI may already suggest these mappings.
  6. Click Save mapping, so you can reuse it later.
  7. Click Load data and choose movies.csv again — this time as the data to import. The dialog Import Data shows a Mapping Summary with ten movies.
  8. Click Upload.

All ten movies are written in one batch: if one line fails, nothing is written. Check the result on the search page /search/movie — the movies appear with labels such as The Matrix (1999).

Import the Actors​

Repeat the same steps with actors.csv and the target entity type Actor, with a new mapping name such as actors_csv.

cast.csv lists who played whom. Link the actors for two or three movies by hand:

  1. Open a movie, for example The Matrix (1999), tab Cast.
  2. Click Link existing, select Keanu Reeves and Carrie-Anne Moss, enter the role in the relationship properties and click Submit.

Check​

  • The search page /search/movie lists ten movies, sortable by Release year and filterable by Genre.
  • The Matrix (1999) shows its cast with roles; Keanu Reeves shows the movie in his tab Movies.
  • In the graph browser, a movie and its actors appear as connected nodes.

Next: Step 6: Menu Entry