Doing multiple nodes and relations from 1 csv

How can I create the following from 1 csv file:

  1. Nodes:
  • App
  • Category
  • Content Rating
  • Genre
  1. Relationships:
  • BELONGS_TO_CATEGORY: Connects App nodes to Category nodes.
  • HAS_CONTENT_RATING: Connects App nodes to Content Rating nodes.
  • HAS_GENRE: Connects App nodes to Genre nodes.
  1. Node Properties:
  • App: Name, Rating, Reviews, Size, Installs, Type, Price, Last Updated, Current Ver, Android Ver
  • Category: Name
  • Content Rating: Name
  • Genre: Name

That can be done but you may have to parse it more than once, either loading everything into a graph first and then refactoring, or making multiple passes through the CSV.

1 Like

What does each row represent? It looks like one node from each type. If so, are they all related in one row?

The 'App' attributes are not the same for each row. Do you want to create a new 'App' node for each row, and then link it to each of the other nodes identified in the row?