Re: [Wikidata-tech] Query Deadline is Expired error when Querying Wikidata

2016-08-02 Thread Stas Malyshev
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


[Wikidata-tech] Query Deadline is Expired error when Querying Wikidata

2016-07-29 Thread Abdulfattah Safa
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?
-- 
Regards,
Abdulfattah Safa
Senior Software Engineer
Mobile: (+972)(599)231600
Skype: fattah.safa

*P **Please consider the environment before printing this email*
___
Wikidata-tech mailing list
Wikidata-tech@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-tech