Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wikidata - request limit for SPARQL queries

Tags:

wikidata

Is there a limit for queries on Wikidata (SPARQL queries only, not editing)? I couldn't find any official documentation about this. I wonder how strong queries are limited per minute/hour (and per IP-address).

like image 691
nichoio Avatar asked Mar 02 '17 22:03

nichoio


People also ask

What is WDT wikidata?

The /entity/ (wd:) represents Wikidata entity (Q-number values). The /prop/direct/ (wdt:) is a "truthy" property — a value we would expect most often when looking at the statement. The truthy properties are needed because some statements could be "truer" than others.

How do I query wikidata API?

You can query the data in Wikidata through our SPARQL endpoint, the Wikidata Query Service. The service can be used both as an interactive web interface, or programmatically by submitting GET or POST requests to https://query.wikidata.org/sparql .

What is optional SPARQL?

OPTIONAL is a binary operator that combines two graph patterns. The optional pattern is any group pattern and may involve any SPARQL pattern types. If the group matches, the solution is extended, if not, the original solution is given (q-opt3. rq).


1 Answers

Yes, there are limits.

Single query is currently limited to 1 minute runtime. Docs are here: https://www.mediawiki.org/wiki/Wikidata_query_service/User_Manual

Also, each IP is limited to 5 concurrent requests currently. There's no limit on how many sequential requests can be processed.

These limits may be adjusted depending on capacity and traffic.

like image 53
StasM Avatar answered Sep 19 '22 23:09

StasM