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.
--
Stas Malyshev
smalys...@wikimedia.org
___
Wikidata-tech mailing list
Wikidata-tech@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-tech