Graph Databases O'reilly 书中包含不完整的示例,这些示例不起作用。我尝试了成功的创建莎士比亚图。但是,当我查询刚刚创建的图形时,查询无法识别某些实体。这就是我所指的:
START theater=node:venue(name='Theatre Royal'),
newcastle=node:city(name='Newcastle'),
bard=node:author(lastname='Shakespeare')
MATCH (newcastle)<-[:STREET|CITY*1..2]-(theater) <-[:VENUE]-()-[:PERFORMANCE_OF]->()-[:PRODUCTION_OF]-> (play)<-[:WROTE_PLAY]-(bard)
RETURN DISTINCT play.title AS play
作者从未参与 CREATE 声明。我错过了什么?
我真的很感谢你的帮助!
-艾哈迈德