Importing the movies data into Neo4j - 7.0

Neo4j

author
Talend Documentation Team
EnrichVersion
7.0
EnrichProdName
Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Open Studio for Big Data
Talend Real-Time Big Data Platform
task
Data Governance > Third-party systems > Database components > Neo4j components
Data Quality and Preparation > Third-party systems > Database components > Neo4j components
Design and Development > Third-party systems > Database components > Neo4j components
EnrichPlatform
Talend Studio

Procedure

  1. Double-click the second tFileInputDelimited component to open its Basic settings view on the Component tab.
  2. In the File name/Stream field, specify the path to the CSV file that contains the information of the movies.
    The input CSV file used in this example is as follows:
    Title;Released;Tagline
    The Matrix;03-31-1999;Welcome to the Real World
    The Matrix Reloaded;05-07-2003;Free Your Mind
    The Matrix Revolutions;10-27-2003;Everything that has a Beginning has an End
  3. In the Header field, specify the number of rows to skip as header rows. In this example, the first row of the CSV file is the header row.
  4. Click the [...] button next to Edit schema to open the [Schema] dialog box, and define the input schema based on the structure of the input file. In this example, the input schema is composed of three columns, title (type String), released (type Date), and tagline (type String).
    When done, click OK to close the [Schema] dialog box and propagate the schema to the next component.
  5. Click the second tNeo4jOutput component and select the Component tab to open its Basic settings view.
  6. Select the Use an existing connection check box to reuse the Neo4j database connection opened by the tNeo4jConnection component, which is the only connection component used in this example.
  7. Double-click the tNeo4jOutput component or click the Mapping button on the component's Basic settings view to open the index and relationship mapping editor.
  8. With the title column selected from the schema panel, click the Index creation tab, click the [+] button to add a row in the table, and create an index named title on this column:
    • In the Name field, enter title between double quotation marks.

    • In the Key field, enter title between double quotation marks to give the index a key.

    Then click in the schema panel to validate your index creation, and click OK to close the mapping editor.
  9. Select the Use label (Neo4j > 2.0) check box and enter Movies between double quotation marks in the Label name field so that the nodes to be created will be labeled Movies.