WikibaseIntegrator icon indicating copy to clipboard operation
WikibaseIntegrator copied to clipboard

Add wb_cirrus_search

Open LeMyst opened this issue 3 years ago • 2 comments

https://www.mediawiki.org/wiki/Help:Extension:WikibaseCirrusSearch

LeMyst avatar Dec 18 '21 00:12 LeMyst

This should fix the bug that the build system complains about:

search_string = (
                f"{search_string} "
                f"haswbstatement:{statement.mainsnak.property_number}="
                f"{statement.mainsnak.datavalue}"
            )

dpriskorn avatar Dec 20 '21 10:12 dpriskorn

Here is my suggestion for warning the user

    if max_results > 10000:
        log.warning("Wikidata has a hardcoded limit of 10.000 results "
                    "maximum. Setting max_results=10000")
        max_results = 10000

dpriskorn avatar Dec 20 '21 10:12 dpriskorn