【发布时间】:2013-05-12 16:36:14
【问题描述】:
您好,我是 neo4j 和 cypher 的新手。我已经建立了我的数据库,以便您可以从图表中的多个深度开始。在我的示例中,图是一棵树,根节点是索引,第 4 级的节点是索引。我正在使用 py2neo 开发图形,并按照以下方式使用 get_or_create_indexed_node 方法:py2neo documentation
patient_node = graph_db.get_or_create_indexed_node('patients', 'name',
patients[patient_id])
但是当我运行密码查询以使我登陆索引节点时,我只能获取 id。例如,当我这样做时:
start n=node:rootnode(name='root'), p=node:patients('name:*')
match n-[:chrm]-()-[:pos]-()-[:patient]-p-[:variant]->vars
where (has(vars.mutations)) return p.name"
我收到错误消息: 节点上不存在属性“名称”[84361]
我做错了什么?
【问题讨论】: