如何创建节点和关系生成功能,我可以在其中放置自定义节点名称,类型和关系

时间:2019-02-04 21:18:34

标签: neo4j py2neo

我正在尝试迭代创建节点和关系。

我要在neo4j的单个节点下创建以下图结构:

  (Person)-[:HAS {}]->(PhysicalFeatures)
  (Person)-[:HAS {}]->(PhysicalFeatures)-[:HAS {}]->(Gender)
  (Person)-[:HAS {}]->(PhysicalFeatures)-[:HAS {}]->(Height)
  (Person)-[:HAS {}]->(PhysicalFeatures)-[:HAS {}]->(Weight)
  (Person)-[:HAS {}]->(PhysicalFeatures)-[:HAS {}]->(HairColor)
  (Person)-[:HAS {}]->(PhysicalFeatures)-[:HAS {}]->(EyeColor)
  (Person)-[:HAS {}]->(Owner)
  (Person)-[:HAS {}]->(Owner)-[:HAS {}]->(Vehicles)
  (Person)-[:HAS {}]->(Owner)-[:HAS {}]->(Property)
  (Person)-[:HAS {}]->(Owner)-[:HAS {}]->(BusinessOwned)

我想迭代遍历每个父级和子级节点,并将它们与neo4j树中的所有关系一起创建在不同的节点下

0 个答案:

没有答案