简体   繁体   English

Neo4j Gephi Cypher错误:在没有属性“ name”的节点上进行密码查询时出错

[英]Neo4j Gephi Cypher error: Error with cypher query on nodes without property “name”

This question is similar to the one asked in apoc.gephi.add doesn't work : NODE[25512922] has no property with propertyKey='name' yet, I want to add a few things: the issue is with Neo4j 3.2.12 and APOC version 3.2.0.3, if the node does not contain the property "name" (exactly this string), then it raises the error: 这个问题类似于apoc.gephi.add中的问题不起作用:NODE [25512922]尚无具有propertyKey ='name'的属性 ,我想添加一些内容:问题在于Neo4j 3.2.12和APOC版本3.2.0.3,如果节点不包含属性“名称”(正是此字符串),则会引发错误:

NODE[x] has no property with propertyKey='name' NODE [x]不具有propertyKey ='name'的属性

Even if the node contains properties with the substring 'name' (example, "propertyname"), it throws the same error. 即使节点包含带有子字符串“ name”的属性(例如“ propertyname”),它也会引发相同的错误。 On checking the code in https://raw.githubusercontent.com/neo4j-contrib/neo4j-apoc-procedures/3.2/src/main/java/apoc/gephi/Gephi.java , it looks like the last block of code in the method caption(Node n) should take care of it (the absence of a node property with string "name"). 在检查https://raw.githubusercontent.com/neo4j-contrib/neo4j-apoc-procedures/3.2/src/main/java/apoc/gephi/Gephi.java中的代码时,它看起来像是方法caption(Node n)应该照顾好它(缺少带有字符串“ name”的node属性)。 However, for some reason, it is not able to detect the substring "name" in the property names. 但是,由于某种原因,它无法检测属性名称中的子字符串“名称”。 Can someone shed some light on this issue? 有人可以阐明这个问题吗?

I have made some tests on the lastest version, and everything is working. 我已经对最新版本进行了一些测试,并且一切正常。

So I started to check the commit log of the procedure, and I have found this : https://github.com/neo4j-contrib/neo4j-apoc-procedures/commit/8b25b05fa461ae0177db1b0604f628b73f12e08d#diff-d27b3f05da2e50dbcd2c95ca367b0e65 所以我开始检查该过程的提交日志,发现了这个: https : //github.com/neo4j-contrib/neo4j-apoc-procedures/commit/8b25b05fa461ae0177db1b0604f628b73f12e08d#diff-d27b3f05da2e50dbcd2c95ca367b0e65

So it's a bug on the procedure, but it has been correted on the version 3.2.0.4 . 因此,这是该过程中的一个错误,但是在版本3.2.0.4已得到3.2.0.4 So you just have to upgrade your apoc version. 因此,您只需要升级您的apoc版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM