我想通过计算节点的Jaccard索引来比较Neo4j中的两个图,这些节点具有多个属性,并且当且仅当它们的所有属性相等时,两个节点相等。我尝试了以下代码,但是当我尝试比较多个属性时,它返回一个无效列表:
MATCH (p1:PolicyID {ID_POLICY: 'aaa'})-[:HAS_OBJECTS]->(:PolicyObjects)-[:HAS_ATTRIBUTES]->(a1:ObjectAttributes)
MATCH (p2:PolicyID {ID_POLICY: 'ccc'})-[:HAS_OBJECTS]->(:PolicyObjects)-[:HAS_ATTRIBUTES]->(attrObj2:ObjectAttributes)
WHERE (a1.ID_OBJ_ATT = attrObj2.ID_OBJ_ATT and a1.OAT_VAL = attrObj2.OAT_VAL)
RETURN attrObj2.ID_OBJ_ATT
关于Cypher正确语法的任何线索吗?