How to query Wikidata items using its labels?

前端 未结 4 596
逝去的感伤
逝去的感伤 2021-02-05 15:55

How can I query Wikidata to get all items that have labels contain a word? I tried this but didn\'t work; it retrieved nothing.

SELECT ?item ?itemLabel WHERE {
          


        
4条回答
  •  南笙
    南笙 (楼主)
    2021-02-05 16:37

    As stated above, querying with case-insensitivity and truncation is very slow in SPARQL query service. I found this project on github: https://github.com/inventaire/entities-search-engine It sets up an ElasticSearch index which allows fast queries for use-cases like autocompletion.

提交回复
热议问题