Prepare CSV files¶
With Studio, you can bulk import vertex and edge data into Nebula Graph. Currently, only CSV files without headers are supported. Each file represents vertex or edge data of one type.
To create applicable CSV files, process the source data as follows:
-
Generate CSV files for vertex and edge data. Only commas are acceptable separator.
user.csv
: Contains the vertices representing users with theuserId
property.course.csv
: Contains the vertices representing courses with thecourseId
andcourseName
properties.-
actions.csv
contains:- The edges representing actions with the
actionId
,label
,duration
,feature0
,feature1
,feature2
, andfeature3
properties. For thelabel
column, 1 is replaced withTRUE
and 0 is replaced withFALSE
. - The
userId
column representing the source vertices of the edges. - The
courseName
column representing the destination vertices of the edges.
This figure shows an example of a CSV file with the header.
- The edges representing actions with the
-
Delete all the headers from the CSV files.