I am running a simple SPARQL query which aims at counting instances of data and object properties across entities of a given class, i.e. how many organizations have been provided with a name, an address, and so on. There is only one type of entity currently loaded in the triple store so no need to filter on ?
s below:
select ?attribName
from <http://example.com/graphs/orgs>
where
{
?s ?attribName ?attribValue .
}
group by
?attribName
This query times out. I can alternatively select distinct to obtain 5 or 6, but putting a higher limit will also time out after 30 seconds. There are a a few million entities.
I would like to know how to modify the timeout for SPARQL queries (not optimize the query). I've tried various timeouts in the admin console, but none seems to have an impact. This happens both when running the query from the query console or through the rest API, but nothing we change seems to have an impact on the timeout we observe.
Any idea what the right way to achieve this is? Thanks.