Fuzzy entity query in Wikidata with Sparql times out
问题 I'm trying to do a fuzzy (ie.. partial or case-insensitive) entity label lookup in Wikidata with Sparql (via the online endpoint). Unfortunately these return a " QueryTimeoutException: Query deadline is expired. " I'm assuming this is because the query is returning too many results to run through the filter in Wikidata's 1 minute timeout. Here's the specific query: def findByFuzzyLabel(self, item_label): qstring = ''' SELECT ?item WHERE { ?item rdfs:label ?label . FILTER( lcase(str(?label)) =