早上好,
我是neo4j的新手,我正在开发一个使用neo4j处理XML数据的项目。
我们的记录如下:
<iati-activity last-updated-datetime="2013-10-31T00:00:00-05:00" default-currency="CAD" hierarchy="1">
<iati-identifier>CA-3-A018823001</iati-identifier>
<activity-status code="4"/>
<reporting-org ref="CA-3" type="10"/>
<title xml:lang="en">National Water Quality and Availability Management </title>
<description xml:lang="en">Results as of the project’s conclusion on May 1, 2010: The project ... </description>
</iati-activity>
以下查询
START activity = node:entities(type="iati-activity")
MATCH status-[?:`activity-status`]-activity-[:`reporting-org`]-org,
activity-[?:title]-title,
activity-[?:description]-description,
activity-[?:`iati-identifier`]-id WHERE HAS(org.ref) RETURN COALESCE(activity.title?, title.title) AS title
发出以下错误: Node
上不存在“reporting-org”属性但是,将标记更改为以下作品:
<reporting-org ref="CA-3" type="10">Foreign Affairs, Trade and
Development Canada</reporting-org>
如何使用Cypher工作?非常感谢。