Is this possible, like the wikidata autocomplete combo works, in a speedy way, with a filter of "itemlabel strings start with..." ?

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

SELECT ?item ?itemLabel ?fecha_de_nacimiento  WHERE {

  ?item wdt:P31 wd:Q5.
  ?item schema:dateModified ?modified
  SERVICE wikibase:label { bd:serviceParam wikibase:language "es,en,it,fr,de,cs,[AUTO_LANGUAGE]". }
  OPTIONAL { ?item wdt:P569 ?fecha_de_nacimiento. }

  FILTER(?fecha_de_nacimiento > "1900-01-01T00:00:00Z"^^xsd:dateTime)


I suppose the problem is not that you're not familiar with STRSTARTS, but rather performance.

This page contains some introductory remarks.

Search in multiple languages

If you really want to search in multiple languages, then, I'm afraid, the only option is to use wikidata.dbpedia.org as described in this answer on Stack Overflow.

Search in single language

If you want to search in a single language (according to your own question on Stack Overflow ), you can use Suggest API or call Mediawiki API from SPARQL.


The Wikibase Mediawiki API extension allows to use some special keywords on Wikidata, e. g. haswbstatement:P31=Q5.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.