简体   繁体   中英

Importing Data to neo4j

I am trying to import a Database on Game of Thrones for neo4j.

Github_link_to_the_data

I copied and pasted the code to my cypher browser but I keep getting errors. Can someone please instruct me how to import this data so I can start querying this database?

Here is the error I am getting:

Neo.ClientError.Statement.SyntaxError: Invalid input ')': expected 
whitespace,
 comment or an expression (line 630, column 3 (offset: 24452))
"CREATE (banner)-[:BANNERMAN_OF]->(euron);"

I would appreciate some help here. Thanks!

The Neo4j Browser has only recently been augmented with the ability to process multiple cypher statements in the query editor (separated by ; ), and there are still a couple bugs being worked out here as of 3.4.5.

Your best bet for processing these is via cypher-shell, you can pipe in the input file and it will take care of the rest.

Check out this section of the docs , and pay attention to example 10.17 on how to pipe the input file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM