Hi all,
@Jesper, thank you for your code! It helped me a lot!
@Aidan, just a short comment: Jesper's wikibase-insert is adapted to Wikibase 1.34 and `wb_terms` is the table where the labels, aliases and descriptions were stored (https://www.mediawiki.org/wiki/Wikibase/Schema/wb_terms). I started to develop RaiseWikibase based on WB 1.34 as well and inserted data into `wb_terms`, but during development the Wikibase 1.35.1 was realeased, so I adapted RaiseWikibase to 1.35.1. Since Wikibase 1.35.1 `wb_terms` is deprecated and the secondary storage for items and properties was introduced (https://doc.wikimedia.org/Wikibase/master/php/md_docs_storage_terms.html).
Kind regards, Renat