csv file format
src,target,relation,time,date,code
pwdapjJmpOCz3/==,pwpa3jpEpwpI36==,focus,1399910400,20141029,00
pwdapjJmpOJI3/==,pOpzpLbzpwdz36==,focus,1390579200,20141029,00
src and target may duplicate, and both are person id. The graph should like
person -> person, and person.id should be unique.
any idea?
find it's hard to import to graph db.
My etl json is like below, but i think it should not work.
{
"source": { "file": { "path": "/samba/anonymous/000108_0.csv" } },
"extractor": { "row": {} },
"transformers": [
{ "csv": {} },
{ "vertex": { "class": "Person" } },
{ "edge": { "class": "Follow",
"joinFieldName": "target",
"lookup": "Person.name",
"direction": "out"
}
}
],
"loader": {
"orientdb": {
"dbURL": "remote:10.0.128.246/weibo",
"dbType": "graph",
"classes": [
{"name": "Person", "extends": "V"},
{"name": "Follow", "extends": "E"}
], "indexes": [
{"class":"Person", "fields":["name:string"], "type":"UNIQUE" }
]
}
}
}
--
---
You received this message because you are subscribed to the Google Groups
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.