How do I exclude a csv filed in this case "strength" from being imported into a vertex but is added as a property to the Edge


#1

Iam using orientdb-3.0.14

CSV example

id,parent_id,name,strength
1,1,santhosh,0.4
2,1,santhosh devadiga kadri,0.98
3,1,santhosh d kadri,0.56

ETL file

{
“source”: { “file”: { “path”: “/home/mis/attrl3.csv” } },
“extractor”: { “csv”: {}
},
“transformers”: [
{ “vertex”: { “class”: “E3” } },
{ “edge”: {
“class”: “NG”,
“joinFieldName”: “parent_id”,
“lookup”: “E3.id”,
“direction”: “in”
“edgeFields”: {“strength”: “${input.strength}” }
}

    }

],
“loader”: {
“orientdb”: {
“dbURL”: “plocal:/opt/orientdb/orientdb-3.0.14/databases/insight”,
“dbType”: “graph”,
“classes”: [

     {"name": "E3", "extends": "V"},
     {"name": "NG", "extends": "E"}
   ],
   "indexes": [
     {"class":"E3", "fields":["id:integer"], "type":"UNIQUE" }
   ]
}

}
}