Wikidata API wbsearchentities: why are results not the same in Python than in Wikidata?

前端 未结 1 1549
既然无缘
既然无缘 2020-12-19 21:03

I\'m using wbsearchentities (wikidata api) in a python request and I\'m wondering why returned results are not the same that those seen on Wikidata. For example, the followi

相关标签:
1条回答
  • 2020-12-19 21:39

    The search box in the top right of Wikidata uses the wbsearchentities API module to provide the auto suggestion dropdown search.

    If you press enter after entering your search instead of clicking on one of the suggestions you will end up on the Special:Search page.

    As you can see they API result returns no results but the special page does.

    That is due to these searches working in entirely different ways.

    • The Special:Search page is a MediaWiki concept that Wikibase provides data to.
    • The wbsearchentities API module provided by Wikibase itself.
    0 讨论(0)
提交回复
热议问题