使用多个边缘属性将CSV导入OrientDB

时间:2013-11-25 11:42:35

标签: database graph orientdb

给出如下的CSV文件:

vertex1,vertex2,edgeProperty1,edgeProperty2 (两个顶点和它们之间有两个属性的边)

将此导入OrientDB的最简单方法是什么?

OrientDB控制台脚本中的Insert语句和SQLCreateEdge的组合可能吗?

1 个答案:

答案 0 :(得分:0)

LVC @ https://groups.google.com/forum/#!topic/orient-database/wjaotdHioVQ

给出的答案
create edge Likes from (create vertex People set name ="Alice") to (create vertex People set name ="Bob") set property1="something", property2= "somethingElse"

或者如果有多个边的顶点:

INSERT INTO People (name) values ("Alice")
INSERT INTO People (name) values ("Bob")

Create Edge Likes from (select from People where name ="Alice") to (select from People where name ="Bob") set property1="something", property2= "somethingElse"