I am using OrientDB ETL module to import a data from a CSV file to graph database. The format of the CSV file is as follows:
urlid_1,urlid_2,score
a,b,10
a,c,20
a,d,30
b,a,40
b,c,50
b,d,60
c,a,70
c,b,80
c,d,90
d,a,100
d,b,110
d,c,120
I want that once I import this into orientdb, each of a
, b
, c
and d
gets saved as a vertex in class and an edge is created starting from urlid_1
to urlid_2
with the edge weight as the corresponding score
in the csv file.
Can anyone help me with the configuration (JSON) file for ETL??
I have tried the solution suggested here:Easiest way to import a simple csv file to a graph with OrientDB ETL but did not get expected results.