我正在尝试迭代创建节点和关系。
我要在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树中的所有关系一起创建在不同的节点下