我想在Neo4j中创建我的第一个项目,我试图从csv文件导入数据。
数据如下所示:
category, film, name, winner(y/n), year
我的表没有空值或空行。当我尝试这个陈述时,它给了我以下错误:
无法使用null属性值为值
合并节点
但是,我在年份栏中没有空。
LOAD CSV FROM "file:///golden_globe.csv" AS row WITH { category: row[0], film: row[1], nomination_name: row[2],
winner: row[3], year: row[4]} AS data
SKIP 1
MERGE (y:Year {value:data.year})
MERGE (c:Category {name: data.category})
MERGE (n:Nomination {name: data.nomination_name})
MERGE (m:Movie {title: data.film})
CREATE (a:Golden_Globe) SET a = data
CREATE (c)<-[:IN_CATEGORY]-(a)-[:IN_YEAR]->(y)
CREATE (a)-[:NOMINATED]->(n), (a)-[:FOR_MOVIE]->(m)
MERGE (n)-[:ACTED_IN]->(m)
WITH * WHERE data.winner = "yes" SET a:Winners;
导致错误的原因是什么?