neo4j-neo4j 3.0的导入工具文档

时间:2016-05-04 16:54:27

标签: windows neo4j

是否有适用于neo4j 3.0的neo4j-import命令行工具的文档?我在neo4j 2.3.3中使用了命令行工具和powershell脚本版本,但在使用Windows 64位版本时,相同的命令对neo4j 3.0 不起作用。我可以使用Linux / UNIX(tar)版本的neo4j 3.0成功运行导入。

bin\neo4j-import.bat --into "C:\Neo4j\TBR_3\data\databases\graph.db" --nodes "C:\Developer\Neo4j_Staging\TBR\header_person_neo4j.psv,C:\Developer\Neo4j_Staging\TBR\nodes_person_neo4j.psv" --nodes "C:\Developer\Neo4j_Staging\TBR\header_address_neo4j.psv,C:\Developer\Neo4j_Staging\TBR\nodes_address_neo4j.psv" --nodes "C:\Developer\Neo4j_Staging\TBR\header_telephone_neo4j.psv,C:\Developer\Neo4j_Staging\TBR\nodes_telephone_neo4j.psv" --relationships "C:\Developer\Neo4j_Staging\TBR\header_personAddress_neo4j.psv,C:\Developer\Neo4j_Staging\TBR\rels_personAddress_neo4j.psv" --relationships "C:\Developer\Neo4j_Staging\TBR\header_personTelephone_neo4j.psv,C:\Developer\Neo4j_Staging\TBR\rels_personTelephone_neo4j.psv" --delimiter "|"

给了我:

'")"' is not recognized as an internal or external command,
operable program or batch file.

为了了解我使用的标头的结构,header_person_neo4j.psv文件包含:

masterIndividualKey:ID(Person)|matchIndividualKey:int|individualKey:int|stdTitle:string[]|stdTitleAlias:string[]|stdForename:string[]|stdForenameAlias:string[]|stdForenameNYSIIS:string[]|stdForenameSoundex:string[]|stdForenameDoubleMetaphone:string[]|stdOthername:string[]|stdOthernameAlias:string[]|stdOthernameNYSIIS:string[]|stdOthernameSoundex:string[]|stdOthernameDoubleMetaphone:string[]|stdSurname:string[]|stdSurnameNYSIIS:string[]|stdSurnameSoundex:string[]|stdSurnameDoubleMetaphone:string[]|stdGender:string[]|stdNameQuality:int[]|stdDOB:string|stdDOBMax:string|stdDOBMin:string|stdHierarchy:int[]|stdRecency:string[]|stdRecencyMax:string|stdHierarchyMin:int|stdPreferredName:int|stdGenderCombined:string|title:string|forename:string|surname:string|gender:string|nameScore:int|dateOfBirth:string|dateOfDeath:string|deathDateActual:string|:LABEL

1 个答案:

答案 0 :(得分:1)

以下是import tool documentation,其中通过示例进行了解释。问题在于您的文件URL,在Windows中您必须使用不同的文件URL,例如如下:

neo4j-import --into C:/neo4j/data/databases/MEDIUM_GRAPH --id-type integer --stacktrace --nodes:STORE "C:/nodes/store_header.csv,C:/nodes/dimstore.csv"

这个blog对于理解不同的方法技巧也很有用。默认情况下,所有数据都在neo4j中导入为string,因此您无需在csv头中指定字符串数据类型。请参阅此document以获取有关csv文件头格式的信息。