Wikidata Virtuoso SPAQRL Endpoint - How to get more than 100,000 results


I need to get Wikidata artifacts (instance-types, redirects and disambiguations) for a project.

As the original Wikidata endpoint has time constraints when it comes to querying, I have come across Virtuoso Wikidata endpoint.

The problem I have is that if I try to get for example the redirects with this query it only returns 100,000 results at most:

CONSTRUCT {?resource owl:sameAs ?resource2}
?resource owl:sameAs ?resource2


I’m writing to ask if you know of any way to get more than 100,000 results. I would like to be able to achieve the maximum number of possible results.

Once the results are obtained, I must have 3 files (or as few files as possible) in the Ntriples format: wikidata_intance_types.nt, wikidata_redirecions.nt and wikidata_disambiguations.nt.

Thank you very much in advance.

All the best,

Jose Manuel

Hi @jmdu99 ,

You can use OFFSET and LIMIT to page through the data.