以下的 neosemantics 版本默认都是指的 4.0 以上的。
neo4j配置neosemantics
1、导入后,label 前总是显示 ns0__ 需要给导入命令增加: {handleVocabUris: "IGNORE"}CALL semantics.importRDF('/NLP/KG/Wikidata/other/xxx.rdf', 'Turtle',{handleVocabUris: "IGNORE"})
2、4.4版本的 Noe4j 依赖的是 jdk11,否则会报下面的错
警告: ERROR! Neo4j cannot be started using java version 1.8.0_251
警告: * Please use Oracle(R) Java(TM) 11, OpenJDK(TM) 11 to run Neo4j Server.
* Please see https://neo4j.com/docs/ for Neo4j installation instructions.
Invoke-Neo4j : This instance of Java is not supported
所在位置 E:neo4j-community-4.4.4binneo4j.ps1:21 字符: 7
+ Exit (Invoke-Neo4j -Verbose:$Arguments.Verbose -CommandArgs $Argument ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-Neo4j
3、导入的 RDF 文件必须是 xml 格式的,否则报下面的错
报错:"前言中不允许有内容。 [line 1, column 1]"4、导入的时候使用 n10s.rdf.import.fetch
使用 n10s.onto.import.fetch 有问题,导入会报错
5、导入的时候,省略 url 展示CALL semantics.importRDF("/NLP/KG/Wikidata/other/end2_harrypotter_end.rdf", "Turtle", {shortenUrls: true})
6、使用4.0之前版本导入的时候。命令如下
CALL semantics.importRDF(x, x, x)
必须为三个参数。参数为:(url :: STRING?, format :: STRING?, props :: MAP?)
否则报错:
Procedure call does not provide the required number of arguments: got 2 expected at least 3 (total: 3, 0 of which have default values).



