WikibaseIntegrator
WikibaseIntegrator copied to clipboard
A Python module to manipulate data on a Wikibase instance (like Wikidata) through the MediaWiki Wikibase API and the Wikibase SPARQL endpoint.
Hi, I rewrote LexUtils and decided to extend the WBI models instead of rolling my own. Since WBI know the baseurl etc it should be trivial to add a url...
currently the exception handling for api calls is limited and makes debugging hard: ```python try: json_result: dict = mediawiki_api_call_helper(data=payload, login=login, allow_anonymous=allow_anonymous, is_bot=is_bot, **kwargs) except Exception: logging.exception('Error while writing to the...
It seems the exception don't give enough informations in some cases. For my example, I tried to create a new entity (a property) with already used Labels on the same...
A new function that checks whether the wikibase is set up with cirrussearch, lexemes etc.
as a user I want to know whats wrong so I can fix it and I would like WBI to tell me clearly
as a user I want clear errors from WBI and avoid cryptic errors from the Wikibase api whenever possible so I understand what went wrong and how to fix my...
See https://github.com/LeMyst/WikibaseIntegrator/discussions/462 for user story and background
- [ ] [wbavailablebadges](https://www.wikidata.org/w/api.php?action=help&modules=wbavailablebadges) Queries available badge items. - [ ] [wbcheckconstraintparameters](https://www.wikidata.org/w/api.php?action=help&modules=wbcheckconstraintparameters) Checks the constraint parameters of constraint statements. - [ ] [wbcheckconstraints](https://www.wikidata.org/w/api.php?action=help&modules=wbcheckconstraints) Performs constraint checks on any entity you...
Currently the *WikibaseIntegrator / WikidataIntegrator* section just refers the reader to the [release notes](https://github.com/LeMyst/WikibaseIntegrator/releases) ... however looking at them, these are all mostly minor details such as: * Create auto-assign-issue.yaml...
I wanted to import P5192, which has the datatype wikibase-lexeme. This is the result of entity.get_json(): _{'labels': {'en': {'language': 'en', 'value': 'Wikidata property example for lexemes'}, 'de': {'language': 'de', 'value':...