将CSV数据导入Neo4j

将CSV数据导入Neo4j,csv,neo4j,Csv,Neo4j,我正在尝试在neo4j中加载csv。但是,我得到以下错误:- @ position 9738 - there's a field starting with a quote and whereas it ends that quote there seems to be characters in that field after that ending quote. That isn't supported. This is what I read: ' 0 128 "

我正在尝试在neo4j中加载csv。但是,我得到以下错误:-

@ position 9738 -  there's a field starting with a quote and whereas it ends that quote there seems to be characters in that field after that ending quote. That isn't supported. This is what I read: '    0   128     "           
201 Filesystem  File                                    "dd'
主要原因是CSV文件中的一列包含多行文本(包括双引号)。我还附上一个这样的例子-

9029    AST AST_METHOD  MODIFIER_PUBLIC,MODIFIER_STATIC 33      0   9025    EMAIL   ""  37  get_email_content   "/**
     * Get the email content from the correct file.
     * @since  1.0.0
     * @static
     * @param  string $template_name Template to load.
     * @param  array  $args          Arguments passed to the template file.
     * @return string                Email contents.
     */" 
你能给我一个解决这个问题的方法吗?我认为有两种方法

  • 将多行转换为单行
  • 以将多行作为单行的方式读取CSV。

  • 我不知道如何做这两种方式。您也可以随意加入不同的想法。

    最好用您喜欢的脚本语言或Excel、Google电子表格等预处理您的CSV文件。最好用您喜欢的脚本语言或Excel、Google电子表格等预处理您的CSV文件。。。