Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/neo4j/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Neo4j到OrientDB:导入数据库图形HML未导入节点和关系的属性_Neo4j_Orientdb_Graphml - Fatal编程技术网

Neo4j到OrientDB:导入数据库图形HML未导入节点和关系的属性

Neo4j到OrientDB:导入数据库图形HML未导入节点和关系的属性,neo4j,orientdb,graphml,Neo4j,Orientdb,Graphml,我按照步骤将数据从Neo4j迁移到OrientDB orientdb {db=test}> IMPORT DATABASE /tmp/out.graphml Importing GRAPHML database from DATABASE /tmp/out.graphml... Transaction 14 has been committed in 0ms orientdb {db=test}> classes CLASSES ------------

我按照步骤将数据从Neo4j迁移到OrientDB

orientdb {db=test}> IMPORT DATABASE /tmp/out.graphml Importing GRAPHML database from DATABASE /tmp/out.graphml... Transaction 14 has been committed in 0ms orientdb {db=test}> classes CLASSES ----------------------------------------------+------------------------------------+------------+----------------+ NAME | SUPERCLASS | CLUSTERS | RECORDS | ----------------------------------------------+------------------------------------+------------+----------------+ E | | 10 | 0 | FacebookUser | V | 11 | 2190 | KNOWS | E | 14 | 171 | out.graphml文件包含标签、类型和属性信息。下面文件中的代码片段

<node id="n259" labels=":FacebookUser:_FacebookUser"><data key="labels">:FacebookUser:_FacebookUser</data><data key="__type__">com.czen.social.model.FacebookUser</data><data key="firstName">Test</data><data key="lastName">Name</data><data key="id">1000085</data></node>

<edge id="e1172175" source="n402940" target="n5457" label="KNOWS"><data key="label">KNOWS</data><data key="__type__">com.czen.social.model.Relationship</data><data key="hired">true</data><data key="hiredTlm">Tue Apr 21 05:16:36 EDT 2015</data><data key="weight">35</data></edge>
:facebook用户:_facebook用户com.czen.social.model.facebook用户测试名称1000085
KNOWScom.czen.social.model.RelationshiptrueTue四月21日05:16:36美国东部夏令时201535
获取graphml后,我尝试将其导入OrientDB

orientdb {db=test}> IMPORT DATABASE /tmp/out.graphml Importing GRAPHML database from DATABASE /tmp/out.graphml... Transaction 14 has been committed in 0ms orientdb {db=test}> classes CLASSES ----------------------------------------------+------------------------------------+------------+----------------+ NAME | SUPERCLASS | CLUSTERS | RECORDS | ----------------------------------------------+------------------------------------+------------+----------------+ E | | 10 | 0 | FacebookUser | V | 11 | 2190 | KNOWS | E | 14 | 171 | orientdb{db=test}>导入数据库/tmp/out.graphml 正在从数据库/tmp/out.GRAPHML导入GRAPHML数据库。。。 事务14已在0毫秒内提交 orientdb{db=test}>类 班级 ----------------------------------------------+------------------------------------+------------+----------------+ 名称|超类|簇|记录| ----------------------------------------------+------------------------------------+------------+----------------+ E | 10 | 0| facebook用户| V | 11 | 2190| 知道| E | 14 | 171| 我们可以看到FacebookUser的类名,但当我们查看其信息时,它没有列出任何属性

orientdb {db=test}> info class FacebookUser Class................: FacebookUser Super class..........: V Default cluster......: facebookuser (id=11) Supported cluster ids: [11] Cluster selection....: round-robin orientdb{db=test}>info类FacebookUser 类别:FacebookUser 超级级…………:V 默认群集……:facebookuser(id=11) 支持的群集ID:[11] 群集选择…:循环 将其导入OrientDB时是否缺少任何内容


谢谢

如果在模式中看不到任何属性,这意味着您在无模式模式下工作,但可以正确导入图形。尝试执行以下操作:

select * from V
以及:

select * from E

您可以查看属性吗?

使用新的2.1快照解决了此问题。我必须用uid替换字段id,否则它会被忽略,并且不会显示在类信息中。
感谢Luca为快照提供了修复程序。

这是a运行此程序时得到的结果。没有看到任何属性。orientdb{db=test}>选择*from V---+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----0 | 9:0 | V | null | null 1 | V | null | 9:1 | V | null | null | null | null | null | null | null | null | 2 | Vん| null | null模式如何改变它来解决这个问题?,我也面临同样的问题。你能帮忙吗