Hi,
I'm trying to find Wikidata items based on label as follows:
SELECT ?item ?itemLabel WHERE { ?item rdfs:label ?itemLabel FILTER(CONTAINS(LCASE(?itemLabel),"*keyword*")). } limit 3
However, for some cases, the following error returns n some cases Query deadline is expired. I mean it works well for some words but fails with others. Could anyone help please?
Hi!
I'm trying to find Wikidata items based on label as follows:
SELECT ?item ?itemLabel WHERE { ?item rdfs:label ?itemLabel FILTER(CONTAINS(LCASE(?itemLabel),"*keyword*")). } limit 3
This particular query is probably better done by regular search: https://www.mediawiki.org/wiki/Wikibase/API#wbsearchentities or https://www.mediawiki.org/wiki/Wikibase/API#wbgetentities
However, for some cases, the following error returns n some cases Query deadline is expired.
This means query is taking more than allowed runtime (30 seconds currently). The best way in general to deal with it is to rewrite query to be faster or to use a different service, as per above, that is more efficient in this specific case.
wikidata-tech@lists.wikimedia.org