Building a complex output and ranking the records in Neo4j
问题 This issue is directly related to the previous post: How to calculate rank for float values in Neo4j? I am trying to merge the "rank" and "weight" values with origin and path. I could successfully do this for origin: CALL apoc.load.json("file:///.../input.json") YIELD value UNWIND value.origin AS orig MATCH(origin:concept{name:orig.label}) WITH value, collect(origin) as origins UNWIND value.target AS tar MATCH(target:concept{name:tar.label}) UNWIND origins AS origin WITH origin, target CALL