Neo4j Import Tool Binding Back

I need to import a huge dataset and I use the neo4j-import tool. However, my data set follows below:

1,"lorem1", "ipsum1","foo1"
2,"lorem2", "ipsum2","foo2"
3,"lorem3", "ipsum3","\"

And it gives an error message when it reads "\". I know this is a backslash character, which means it is waiting for a quote. I would like to know if backslash value can be deactivated in neo4j-import tool?

+4
source share
1 answer

I think this is a problem with the tool that you used to export CSV with a different idea that the standard is CSV than Neo4j. This is understandable because the CSV format is not very standardized;)

According to neo4j-import --help:

--quote <quotation-character>
  Character to treat as quotation character for values in CSV data. The default
  option is ". Quotes inside quotes escaped like """Go away"", he said." and "\"Go
  away\", he said." are supported. If you have set "'" to be used as the quotation
  character, you could write the previous example like this instead: '"Go away",
  he said.'

, , Neo4j (""), (\"). , , , , , , .

, , :

1,"lorem1", "ipsum1","foo1"
2,"lorem2", "ipsum2","foo2"
3,"lorem3", "ipsum3","\\"

(, ' |). , CSV .

, , Neo4j , CSV.

+7

Source: https://habr.com/ru/post/1598886/


All Articles