Yago2s转储到N-Triples转换

时间:2019-05-06 00:10:17

标签: semantic-web dbpedia

我从https://www.mpi-inf.mpg.de/departments/databases-and-information-systems/research/yago-naga/yago/archive/下载了Turtle格式的YAGO 2.5.3 dump。我试图使用提取框架https://github.com/dbpedia/extraction-framework/blob/dump/scripts/src/main/bash/process-yago.txt将转储转换为N-Triples格式,但出现以下错误:

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.155 s
[INFO] Finished at: 2019-05-05T17:04:57-07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project core: Could not resolve dependencies for project org.dbpedia.extraction:core:jar:4.0-SNAPSHOT: Failed to collect dependencies at org.sweble.wikitext:swc-engine:jar:1.1.1-SNAPSHOT: Failed to read artifact descriptor for org.sweble.wikitext:swc-engine:jar:1.1.1-SNAPSHOT: Could not transfer artifact org.sweble.wikitext:swc-engine:pom:1.1.1-SNAPSHOT from/to osr-public-releases (http://mojo.informatik.uni-erlangen.de/nexus/content/repositories/public-releases): Access denied to: http://mojo.informatik.uni-erlangen.de/nexus/content/repositories/public-releases/org/sweble/wikitext/swc-engine/1.1.1-SNAPSHOT/swc-engine-1.1.1-SNAPSHOT.pom , ReasonPhrase:Forbidden. -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :core

是否有其他方法可以将Yago转储转换为N-Triples。

1 个答案:

答案 0 :(得分:0)

您可以使用Raptor RDF syntax parsing and serializing utility在不同的RDF序列化之间进行转换。

用法:

rapper -i turtle -o ntriples /path/to/my/file.ttl > /path/to/output.nt