Significantly extend the timeout for SPARQL queries to Wikidata

This commit is contained in:
Joshua Ramon Enslin 2021-08-13 13:07:29 +02:00
parent 87fd2a25df
commit 6d60d9eec7
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -191,7 +191,7 @@ final class NodaWikidataFetcher {
public static function sparqlQuery(string $sparqlQuery):array {
$url = 'https://query.wikidata.org/sparql?query=' . urlencode($sparqlQuery);
$result = MD_STD::runCurl($url, 10000, self::WIKIDATA_FETCH_HEADERS);
$result = MD_STD::runCurl($url, 100000000, self::WIKIDATA_FETCH_HEADERS);
return json_decode($result, true);