LeMyst / WikibaseIntegrator

A Python module to manipulate data on a Wikibase instance (like Wikidata) through the MediaWiki Wikibase API and the Wikibase SPARQL endpoint.
MIT License
67 stars 17 forks source link

fix missing sitelinks in item.write() #764

Closed dabu1111 closed 2 months ago

dabu1111 commented 2 months ago

The latest version had a little bug, leading to sitelinks not being written, and in fact being lost in the write() process. Also shortly described in Issue #763

This PR should fix it.

I added an exception for the case that sitelinks are not unique, which could be more verbose - however seemed to somewhat fit into how exceptions are handled at the moment. Please let me know if anything is needed so we can merge!

Cheers