我在Windows 10上安装了neo4j,并尝试将我的LOAD-CSV-Commands复制到neo4j-shell中。我打开neo4j的命令提示符并启动neo4j-shell。
导入节点工作正常,但是当我尝试将以下行复制到neo4j-shell时:
LOAD CSV WITH HEADERS FROM "file:///C:/neo4j/CC/autor-streitschrift.csv"
AS line FIELDTERMINATOR '|'
// WITH line LIMIT 50
MATCH (from {id:line.Autor}), (to {id:line.Streitschrift}) create from-[:AUTOR_VON]->to
RETURN count(*);
......方括号不是coppied:
neo4j-sh (?)$ LOAD CSV WITH HEADERS FROM "file:///C:/neo4j/CC/autor-streitschrift.csv"
> AS line FIELDTERMINATOR '|'
> // WITH line LIMIT 50
> MATCH (from {id:line.Autor}), (to {id:line.Streitschrift}) create from-AUTOR_VON->to
> RETURN count(*);
62 ms
WARNING: Invalid input 'A': expected whitespace, [ or '-' (line 4, column 72 (offset: 195))
"MATCH (from {id:line.Autor}), (to {id:line.Streitschrift}) create from-AUTOR_VON->to"
^
neo4j-sh (?)$
我在windows7机器上重现了这个。
提前感谢任何提示,
安德烈亚斯
答案 0 :(得分:1)
我意识到这已经很晚了,但在我的情况下,我可以使用Alt + 91和Alt + 93输入方括号。这是在Windows 7上使用德语键盘布局。