好的,我试图在neo4j中运行的每个查询或代码片段都是不会运行的。然后,我只是试着运行他们给我们的开始和...的示例代码。它们也没有运行:
我输入了:play movie graph
,一切都很顺利,但样例代码:
CREATE (TheMatrix:Movie {title:'The Matrix', released:1999, tagline:'Welcome to the Real World'})
CREATE (Keanu:Person {name:'Keanu Reeves', born:1964})
CREATE (Carrie:Person {name:'Carrie-Anne Moss', born:1967})
CREATE (Laurence:Person {name:'Laurence Fishburne', born:1961})
[... etc etc ... ]
CREATE (Hugo:Person {name:'Hugo Weaving', born:1960})
CREATE (LillyW:Person {name:'Lilly Wachowski', born:1967})
CREATE (LanaW:Person {name:'Lana Wachowski', born:1965})
CREATE
(Keanu)-[:ACTED_IN {roles:['Neo']}]->(TheMatrix),
(Carrie)-[:ACTED_IN {roles:['Trinity']}]->(TheMatrix),
(Laurence)-[:ACTED_IN {roles:['Morpheus']}]->(TheMatrix),
(Hugo)-[:ACTED_IN {roles:['Agent Smith']}]->(TheMatrix),
(LillyW)-[:DIRECTED]->(TheMatrix),
WITH TomH as a
MATCH (a)-[:ACTED_IN]->(m)<-[:DIRECTED]-(d) RETURN a,m,d LIMIT 10;
好吧,我只是复制了一些代码的一部分--这真的很大,但这里不是真正的要点--从new 4j本身。但它给出了错误:
ERROR: Neo.DatabaseError.Statement.ExecutionFailed
The following unsupported clauses were used: CREATE, CREATE, CREATE, CREATE, CREATE,
CREATE, CREATE, CREATE, CREATE, CREATE, CREATE, CREATE, CREATE, CREATE, CREATE,
CREATE, CREATE, CREATE, CREATE, CREATE, CREATE, CREATE, CREATE, CREATE, CREATE,
CREATE, CREATE, CREATE, CREATE, CREATE, CREATE, CREATE, CREATE, CREATE, CREATE,
CREATE, CREATE, CREATE, CREATE, CREATE, CREATE, CREATE, CREATE, CREATE, CREATE,
CREATE, CREATE, CREATE, CREATE, CREATE, CREATE, CREATE, CREATE, CREATE, CREATE,
CREATE, CREATE, CREATE, CREATE, CREATE, CREATE, CREATE, CREATE, CREATE, CREATE,
CREATE, CREATE, CREATE, CREATE, CREATE, CREATE, CREATE, CREATE, CREATE, CREATE,
CREATE, CREATE, CREATE, CREATE, CREATE, CREATE, CREATE, CREATE, CREATE, CREATE,
CREATE, CREATE, CREATE, CREATE, CREATE, CREATE, CREATE, MATCH, WITH.
The system database supports a restricted set of Cypher clauses. The supported clause
structure for procedure calls is: CALL, YIELD, RETURN. YIELD and RETURN clauses are optional.
The order of the clauses is fix and each can only occur once.
如果我使用其他语句,如LOAD CSV
或RETURN
,我会收到类似的错误,我不知道为什么会发生这种情况。
有人吗?
2条答案
按热度按时间sdnqo3pr1#
将您的创建脚本与查询脚本分开。因此,首先运行下面的脚本,并删除末尾的逗号
然后运行您的查询;
trnvg8h32#
看起来没有选择正确的数据库。我假设您使用的是Neo4j桌面应用程序,如果是这样的话,请确保您的数据库名称显示为