Blazegraph Импортирует свалку Wikidata - PullRequest
0 голосов
/ 04 марта 2019

Я установил экземпляр Blazegraph в своем локальном компьютере и пытался загрузить JSON-дамп викиданных, загруженных из https://dumps.wikimedia.org/wikidatawiki/entities/

. Попробовал следующую команду.

./dataLoader.sh ../bigdata-war-html/src/main/webapp/WEB-INF/RWStore.properties latest-all.json.gz

Выдаетследующее исключение:

java.lang.RuntimeException: Could not parse file: latest-all.json.gz
    at com.bigdata.rdf.store.DataLoader.loadFiles(DataLoader.java:1378)
    at com.bigdata.rdf.store.DataLoader.main(DataLoader.java:2085)
Caused by: org.openrdf.rio.RDFParseException: Expected SPARQL Results JSON document to start with an Object
    at com.bigdata.rdf.rio.json.BigdataSPARQLResultsJSONParserForConstruct.parse(BigdataSPARQLResultsJSONParserForConstruct.java:75)
    at com.bigdata.rdf.rio.json.BigdataSPARQLResultsJSONParserForConstruct.parse(BigdataSPARQLResultsJSONParserForConstruct.java:84)
    at com.bigdata.rdf.rio.BasicRioLoader.loadRdf2(BasicRioLoader.java:236)
    at com.bigdata.rdf.rio.BasicRioLoader.loadRdf(BasicRioLoader.java:176)
    at com.bigdata.rdf.store.DataLoader.loadData4_ParserErrors_Not_Trapped(DataLoader.java:1595)
    at com.bigdata.rdf.store.DataLoader.loadFiles(DataLoader.java:1359)
    ... 1 more
Caused by: org.openrdf.query.resultio.QueryResultParseException: Expected SPARQL Results JSON document to start with an Object
    at com.bigdata.rdf.rio.json.SPARQLJSONParserBase.parseQueryResultInternal(SPARQLJSONParserBase.java:142)
    at com.bigdata.rdf.rio.json.SPARQLJSONParserBase.parseQueryResult(SPARQLJSONParserBase.java:125)
    at com.bigdata.rdf.rio.json.BigdataSPARQLResultsJSONParserForConstruct.parse(BigdataSPARQLResultsJSONParserForConstruct.java:73)

Попытка импорта с использованием файла ttl.gz по приведенной выше ссылке.Это бросает ниже исключение.

Caused by: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: context not bound: < TermId(516U), TermId(185U), TermId(186U) : Explicit >
    at com.bigdata.rdf.spo.SPORelation.insert(SPORelation.java:2272)
    at com.bigdata.rdf.store.AbstractTripleStore.addStatements(AbstractTripleStore.java:4392)
    at com.bigdata.rdf.rio.StatementBuffer$Batch.writeSPOs(StatementBuffer.java:2179)
    at com.bigdata.rdf.rio.StatementBuffer$Batch.addStatements(StatementBuffer.java:2027)
    at com.bigdata.rdf.rio.StatementBuffer$Batch.writeNow(StatementBuffer.java:1912)
    at com.bigdata.rdf.rio.StatementBuffer$Batch.access$1000(StatementBuffer.java:1645)
    at com.bigdata.rdf.rio.StatementBuffer$DrainQueueCallable.call(StatementBuffer.java:819)
    at com.bigdata.rdf.rio.StatementBuffer$DrainQueueCallable.call(StatementBuffer.java:795)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at com.bigdata.util.concurrent.LatchedExecutor$1.run(LatchedExecutor.java:121)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: context not bound: < TermId(516U), TermId(185U), TermId(186U) : Explicit >
    at java.util.concurrent.FutureTask.report(FutureTask.java:122)
    at java.util.concurrent.FutureTask.get(FutureTask.java:192)
    at com.bigdata.rdf.spo.SPORelation.logFuture(SPORelation.java:2298)
    at com.bigdata.rdf.spo.SPORelation.insert(SPORelation.java:2253)
    ... 12 more
Caused by: java.lang.IllegalArgumentException: context not bound: < TermId(516U), TermId(185U), TermId(186U) : Explicit >
    at com.bigdata.rdf.spo.SPOIndexWriter.call(SPOIndexWriter.java:266)
    at com.bigdata.rdf.spo.SPOIndexWriter.call(SPOIndexWriter.java:68)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    ... 3 more

Как правильно импортировать дамп?

...