I am able to migrate a csv file into GRAKN using templates. I am looking to define relationships based on a logic on the csv data . Eg. the CSV file has a row showing the employee and the supervisor and i am trying to define an employment relationship with employee and supervisor as roles. I am looking forward to do this while loading the CSV data using templates.Can anyone help me on this?
I tired loading relationship after i loaded the graph entity data by running the GRAQL
match isa emp_table has ID $e isa emp_table has SUPERVISOR_ID $s;offset 0; limit 50;insert (employee: $e, supervisor: $s) isa employment;
, but i am getting the below error
The type [ID] of role player  is not allowed to play RoleType [employee]
The type [SUPERVISOR_ID] of role player  is not allowed to play RoleType [supervisor]
Also, i did declare roles which the entity needs to play
emp_table sub entity
employment sub relation
employee sub role;
supervisor sub role;
Kindly let me know on any update needed.