Skip to main content Skip to complementary content

Preparing the CSV files

Headers of CSV files used by the tNeo4jv4ImportTool component need to meet specific requirements. See CSV header format for related information.

Procedure

  1. Create an empty CSV file, enter the following lines in the file, and save it as D:/test/actors.csv.
    personID:ID,name,:LABEL
    keanu,"Keanu Reeves",Actor
    laurence,"Laurence Fishburne",Actor
    carrieanne,"Carrie-Anne Moss",Actor

    This file is used to create Actor nodes.

  2. Create an empty CSV file, enter the following lines in the file, and save it as D:/test/movies.csv.
    movieID:ID,title,year:int,:LABEL
    tt0133093,"The Matrix",1999,Movie
    tt0234215,"The Matrix Reloaded",2003,Movie;Sequel
    tt0242653,"The MAtrix Revolutions",2003,Movie;Sequel

    This file is used to create Movie nodes.

  3. Create an empty CSV file, enter the following lines in the file, and save it as D:/test/roles.csv.
    :START_ID,role,:END_ID,:TYPE
    keanu,"Neo",tt0133093,ACTED_IN
    keanu,"Neo",tt0234215,ACTED_IN
    keanu,"Neo",tt0242653,ACTED_IN
    laurence,"Morpheus",tt0133093,ACTED_IN
    laurence,"Morpheus",tt0234215,ACTED_IN
    laurence,"Morpheus",tt0242653,ACTED_IN
    carrieanne,"Trinity",tt0133093,ACTED_IN
    carrieanne,"Trinity",tt0234215,ACTED_IN
    carrieanne,"Trinity",tt0242653,ACTED_IN

    This file is used to create the relationships among the Actor nodes and the Movie nodes.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!