Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/neo4j/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xslt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Neo4j:以Graphml格式导入数据库时出错_Neo4j - Fatal编程技术网

Neo4j:以Graphml格式导入数据库时出错

Neo4j:以Graphml格式导入数据库时出错,neo4j,Neo4j,使用neo4j外壳工具以graphpml格式导入neo4j图形数据库时,我遇到以下错误 XMLStreamException:ParseError位于[row,col]:[2542885,95]消息:一个 元素内容中发现无效的XML字符Unicode:0x8 该文件的附件 下面是sed-n'2542842542886p'路径_到_文件的输出 export | grep LANG返回declare-x LANG=en_US.UTF-8,这表明终端支持UTF-8字符,因此,如果存在UTF-8字符,则

使用neo4j外壳工具以graphpml格式导入neo4j图形数据库时,我遇到以下错误

XMLStreamException:ParseError位于[row,col]:[2542885,95]消息:一个 元素内容中发现无效的XML字符Unicode:0x8 该文件的附件

下面是sed-n'2542842542886p'路径_到_文件的输出

export | grep LANG返回declare-x LANG=en_US.UTF-8,这表明终端支持UTF-8字符,因此,如果存在UTF-8字符,则应该显示该字符

原始数据库运行良好。为什么会这样?如何解决这个问题?任何绕过错误并导入数据库的方法。

错误已解决


我正在压缩graphml文件以进行传输,然后在导入时解压缩。我猜压缩/解压过程就是在graphml文件中添加这样的字符。在没有压缩解压缩过程的情况下传输完整的文件不会引发此错误。

也许检查一下行/列?您尝试导入的GraphML文档似乎有问题。此错误看起来与neo4jHi无关,只是执行sed-n'25428842542886p'PATH_to_FILE以grep所需行,找不到任何问题。请检查输出的更新问题..Unicode:0x8通常是一个退格字符,我在您提供的数据中没有看到。您在文本编辑器中看到类似^H的内容了吗?我在控制台中运行了上面的命令,输出中没有类似^H的内容。输出与上面相同。上校,我对这一行的解释正确吗?
<node id="n2479058" labels=":Genre"><data key="labels">:Genre</data><data key="name">myron returns to play ball to find missing player</data><data key="indexed_genre_name">myronreturnstoplayballtofindmissingplayer</data></node>
<node id="n2479059" labels=":Genre"><data key="labels">:Genre</data><data key="name">see others</data><data key="indexed_genre_name">seeothers</data></node>
<node id="n2479060" labels=":Genre"><data key="labels">:Genre</data><data key="name">series: myron bolitar</data><data key="indexed_genre_name">series:myronbolitar</data></node>