check_wikibase#
- wikibaseintegrator.wbi_helpers.check_wikibase(mediawiki_api_url=None, sparql_endpoint_url=None, wikibase_url=None, check_sparql=True, login=None, **kwargs)[source]#
Check the features of a Wikibase instance: the MediaWiki version, the installed extensions, the entity types and the datatypes it supports, and whether the SPARQL endpoint answers. It also checks the configuration of WikibaseIntegrator: a ‘WIKIBASE_URL’ not matching the concept URIs of the instance breaks the SPARQL queries built by WikibaseIntegrator (fast run mode, …). The problems found are listed in the ‘problems’ attribute.
Example: print(check_wikibase())
- Parameters:
mediawiki_api_url (
str|None, default:None) – The URL to the MediaWiki API. Default config[‘MEDIAWIKI_API_URL’].sparql_endpoint_url (
str|None, default:None) – The URL to the SPARQL endpoint. Default config[‘SPARQL_ENDPOINT_URL’].wikibase_url (
str|None, default:None) – The Wikibase URL compared with the concept URIs of the instance. Default config[‘WIKIBASE_URL’].check_sparql (
bool, default:True) – Send a test query to the SPARQL endpoint.login (
_Login|None, default:None) – A login instance, to check a private instance.kwargs (
Any) – More arguments for mediawiki_api_call_helper()
- Return type:
- Returns:
A WikibaseCheck object