添加关系导致图数据科学库出错

问题描述

我在数据库中导入了 500k 个节点和 1M 个关系( Neo4j (1.4.7) 版本 4.2.1) 没有任何问题。

此外,我已经安装了插件 APOC (4.2.0.0) 和 Graph Data Science Library (1.4.1),没有任何错误

我可以在 Neo4j 浏览器中检查所有节点和关系,但是当我尝试使用 GDSL 时发生错误,我必须将以下行添加到我的 neo4j.conf 中:

dbms.security.procedures.unrestricted=,jwt.security.*,gds.*,apoc.*

我在配置中添加了该行,但错误仍然发生。

所以我试图找出错误发生的时间。

当我跳过这种关系时,它可以在 Neo4j 浏览器和 GDSL 中运行。但是当我添加这个关系时,它只能在 Neo4j 浏览器中工作。

关系如下所示:

match(p:packages)
with p
match(c:commits)
where p.projectid = c.projectid
create(p)-[:commits]->(c)

没什么特别的。

我的提交节点:

Data columns (total 3 columns):
 #   Column     Non-Null Count  Dtype
---  ------     --------------  -----
 0   projectid  25622 non-null  int64
 1   counts     25622 non-null  int64
 2   counts2    25622 non-null  int64
dtypes: int64(3)

我的包节点如下所示:

     #   Column       Non-Null Count  Dtype 
---  ------       --------------  ----- 
 0   packagename  26023 non-null  object
 1   versions     26023 non-null  int64 
 2   projectid    26023 non-null  int64 
 3   ownerid      26023 non-null  int64 
 4   projectname  26023 non-null  object
 5   language     26023 non-null  object

我不是在寻找具体的解决方案,但我没有任何想法可能是什么错误

已经尝试了不同的版本。不同的进口等等...

有谁知道为什么特定关系只能在 Neo4j 浏览器中工作,而不能在 GDSL 中工作?

谢谢

解决方法

问题是关系的名称已经用于节点。 我更改了关系的名称,现在可以使用了。

似乎 GDSL 也需要不同的节点和关系标签。