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
Neo4j-Can';t从CSV加载所有字段_Neo4j - Fatal编程技术网

Neo4j-Can';t从CSV加载所有字段

Neo4j-Can';t从CSV加载所有字段,neo4j,Neo4j,这是我的加载命令: neo4j-sh (?)$ USING PERIODIC COMMIT LOAD CSV WITH HEADERS FROM "file:/Users/levi/data/woka-data/atom_description.csv" AS row CREATE (:Description {language: row.content.language, value: row.content.value, woka_id: row.woka_id}); 这是我的CSV文件中

这是我的加载命令:

neo4j-sh (?)$ USING PERIODIC COMMIT
LOAD CSV WITH HEADERS FROM "file:/Users/levi/data/woka-data/atom_description.csv" AS row
CREATE (:Description {language: row.content.language, value: row.content.value, woka_id: row.woka_id});
这是我的CSV文件中的前几行(第一行是标题): content.language,content.value,woka_id

"eng","This handbook is the first of its kind to discuss infection control guidelines that directly relate to surgical environments. It is particularly useful to nurses who need to meet OSHA and JCAHO requirements for practice in perioperative, PACU, ambulatory, and endoscopy settings. Procedure guidelines are concisely described and followed by rationales referenced to AORN standards, CDC guidelines, and other resources.","97800000003300000000"
"eng","Practitioners and academics dealing with the Middle East can turn to the Yearbook of Islamic and Middle Eastern Law for an instant source of information on the developments over an entire year in the region. The Yearbook covers Islamic and non-Islamic legal subjects, including the laws themselves, of some twenty Arab and other Islamic countries. The publication's practical features include: <br>- articles on current topics, <br>-country surveys reflecting important new legislation and amendments to existing legislation per country, <br>- the text of a selection of documents and important court cases, <br>- a Notes and News section, and<br>- book reviews. <br>","97800000222400000000"

我在这里遗漏了什么?

您不应该在csv的标题字段中有点。在标题行和加载CSV命令中,用下划线替换它们。

CSV标题字段中不应有点。在标题行和加载CSV命令中,用下划线替换它们。

CSV标题字段中不应有点。在标题行和加载CSV命令中,用下划线替换它们。

CSV标题字段中不应有点。在标题行和
加载CSV
命令中用下划线替换它们。

或者,您可以尝试用点和反勾号引用字段名:
创建(:说明{language:row.`content.language`,…
或者您可以跳过标题行并使用列号:WITH row skip 1 CREATE(:Description{language:row[0],value:row[1],woka_id:row[2]});成功了。我以后会避免字段名中的点。或者,您可以尝试使用点并使用反勾号引用字段名:
CREATE(:Description{language:row.`content.language`,…
),或者您可以跳过标题行并使用列号:with row skip 1 CREATE(:Description{language:row[0],value:row[1],woka_id:row[2]});它起作用了。我以后会避免字段名中的点。或者,您可以尝试使用点并使用反勾来引用字段名:
CREATE(:Description{language:row.`content.language`,…
,或者您可以跳过标题行并使用列号:with row skip 1 CREATE(:Description{language:row[0],value:row[1],woka_id:row[2]});它起作用了。我以后会避免在字段名中使用点。或者,您可以尝试使用点和反勾号引用字段名:
CREATE(:Description{language:row.`content.language`,…
或者您可以跳过标题行并使用列号:WITH row skip 1 CREATE(:Description{language:row[0],value:row[1],woka_id:row[2]});这很有效。我以后将避免字段名中出现点。
neo4j-sh (?)$ match (n: Description) return (n) limit 10;                                              

+------------------------------------------------+
| n                                              |
+------------------------------------------------+
| Node[26293467]{woka_id:"97800000003300000000"} |
| Node[26293468]{woka_id:"97800000222400000000"} |
| Node[26293469]{woka_id:"97800000255240000000"} |
| Node[26293470]{woka_id:"97800002099930000000"} |
| Node[26293471]{woka_id:"97800002966650000000"} |
| Node[26293472]{woka_id:"97800010161180000000"} |
| Node[26293473]{woka_id:"97800010161320000000"} |
| Node[26293474]{woka_id:"97800010161560000000"} |
| Node[26293475]{woka_id:"97800010162170000000"} |
| Node[26293476]{woka_id:"97800010162310000000"} |
+------------------------------------------------+
10 rows
27 ms