我已经在本地安装了一个Blazegraph实例,并尝试加载从https://dumps.wikimedia.org/wikidatawiki/entities/下载的wikidata的JSON转储
尝试以下命令。
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
<input type="file" name="images[]" id="file_input" class="deletable" multiple />
<div id="viewUploadItems"></div>
它引发以下异常:
./dataLoader.sh ../bigdata-war-html/src/main/webapp/WEB-INF/RWStore.properties latest-all.json.gz
试图通过上述链接使用ttl.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)
导入转储的正确方法是什么?