Page MenuHomePhabricator

[feature request] make Wikidata site search available as a service at query.wikidata.org
Closed, DuplicatePublic

Description

Wikimedia currently offers (among others) the following three ways of doing string search for items:

  1. at query.wikidata.org with SPARQL "contains" (this tends to time out)
  2. at www.wikidata.org with site search, e.g. https://www.wikidata.org/w/index.php?search=john+doe&title=Special:Search&go=Go (this isn't formatted)
  3. at quarry.wmflabs.org by using SQL on the terms table (this may be decommissioned)

The idea is to make (2) available at query.wikidata.org :

  SERVICE wikibase:sitesearch { 
		?item wdt:P31 ?instance .
      bd:serviceParam wikibase:searchsite "wikidatawiki"  . 
      bd:serviceParam wikibase:searchterm "John Doe"  . 
      bd:serviceParam wikibase:searchlang "en"  . 
      bd:serviceParam wikibase:searchresultlimit "500" . 
      bd:serviceParam wikibase:searchresultoffset "10" . 
  }

Maybe there is already a ticket for this.