Querying large wikibase instances can be quite slow. When querying Wikidata, I use the EntityService. However, when I try to do the same on a Wikibase instance, I get an error.
Here an example query:
``` SELECT DISTINCT ?m ?dc ?dp ?subj WHERE { { { OPTIONAL { ?pMatch http://www.w3.org/2000/01/rdf-schema#subPropertyOf* http://wikiba.se/ontology#lemma . } { SERVICE wikibase:mwapi { bd:serviceParam wikibase:api "EntitySearch" . bd:serviceParam wikibase:endpoint "unidive.wikibase.cloud" . bd:serviceParam wikibase:limit "once" . bd:serviceParam mwapi:search "1000" . bd:serviceParam mwapi:language "en" . ?subj wikibase:apiOutputItem mwapi:item . } { ?subj ?pMatch ?m . FILTER ( ( REGEX( STR( ?m ), "^1000$", "i" ) && ( LANGMATCHES( LANG( ?m ), "en" ) || LANGMATCHES( LANG( ?m ), "es" ) || LANG( ?m ) = "" ) ) ) } } } } OPTIONAL { { ?subj http://schema.org/description ?dc . FILTER ( ( LANGMATCHES( LANG( ?dc ), "en" ) || LANGMATCHES( LANG( ?dc ), "es" ) || LANG( ?dc ) = "" ) ) } } OPTIONAL { { ?subj http://www.w3.org/2002/07/owl#deprecated ?dp . FILTER ( ( LANGMATCHES( LANG( ?dp ), "en" ) || LANGMATCHES( LANG( ?dp ), "es" ) || LANG( ?dp ) = "" ) ) } } } LIMIT 2000 ```
And I get back an error
Host unidive.wikibase.cloud is not allowed
Any ideas?
Cheers,
-- Richard