1

私は localhost で実行されている Fuseki サーバーを持っており、十分な大きさのデータセット (約 700 万のトリプル) を持っています (ロードされたファイルは N3 @ 370mb でした)。

クエリでできる限り多くのデータを取得しようとしてきましたが、タイムアウトに問題がありました。簡単なクエリを実行して、機能しないクエリを取得するまで上向きに変更していた制限付きのすべてを取得しています。

SELECT *
FROM <myGraph>
WHERE {
    ?s ?p ?o
}
LIMIT 200000

このクエリの興味深い点は、提供されている Web サーバー インターフェイスで動作することlocalhost:3030です (ただし、Firefox 側で少し作業が必要です) が、コマンド ライン経由で実行すると動作しません。

./s-query --service=http://localhost:3030/dataset/query --query=queryFile.rq

私が得るエラーは次のとおりです。

##  Query cancelled due to timeout during execution   ##
##  ****          Incomplete results           ****   ##

および Fuseki ログ (日付と時刻を置き換えたもの):

[date time] Fuseki     INFO  [5] exec/select
[date time] Fuseki     INFO  [5] Query Cancelled - results truncated (but 200 already sent)
[date time] Fuseki     INFO  [5] 200 OK (11.370 s)

また、常に 11 秒であるとは限らないことにも注意してください。多いときもあれば少ないときもあります。しかし、それは (私が見た限りでは、常にこの 1 秒か 2 秒以内です)。

s-query ファイルを変更http.read_timeoutしてresponse_no_body()とに変更しようとしましresponse_print_body()た。しかし、それは何も変わりません。

ja:context [ ja:cxtName "arq:queryTimeout" ; ja:cxtValue "30000" ] ;提案どおりに行を追加しようとしましconfig.ttlたが、やはり何も変わらないようです。

/run/ 内の「config.ttl」ファイルの内容

# Licensed under the terms of http://www.apache.org/licenses/LICENSE-2.0

## Fuseki Server configuration file.

@prefix :        <#> .
@prefix fuseki:  <http://jena.apache.org/fuseki#> .
@prefix rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
@prefix ja:      <http://jena.hpl.hp.com/2005/11/Assembler#> .

[] rdf:type fuseki:Server ;

# Example::
# Server-wide query timeout.   
# 
# Timeout - server-wide default: milliseconds.
# Format 1: "1000" -- 1 second timeout
# Format 2: "10000,60000" -- 10s timeout to first result, 
#                            then 60s timeout for the rest of query.
#
# See javadoc for ARQ.queryTimeout for details.
# This can also be set on a per dataset basis in the dataset assembler.
#
# ja:context [ ja:cxtName "arq:queryTimeout" ;  ja:cxtValue "30000" ] ;

# Add any custom classes you want to load.
# Must have a "public static void init()" method.
# ja:loadClass "your.code.Class" ;   

# End triples.
.

どんな助けでも大歓迎です。

布石バージョン: 2.0.0

4

0 に答える 0