I used to execute successfully the following query:
SELECT (COUNT(?r) AS ?count) WHERE { [] <http://www.wikidata.org/prop/direct/P31> ?r }
on http://wdqs-beta.wmflabs.org/bigdata/namespace/wdq/sparql
However, now this endpoint has been stopped, and when I execute the same query on official wikidata endpoint service: https://query.wikidata.org
I get the following error:
java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: org.openrdf.query.QueryInterruptedException: java.lang.RuntimeException: java.util.concurrent.ExecutionException: com.bigdata.bop.engine.QueryTimeoutException: Query deadline is expired.
This means that the query has exceeded the limit time.
Is there a way to expand executing time, or is there another SPARQL endpoint that allows me to execute the query?