maxlath / wikibase-cli

read and edit a Wikibase instance from the command line
MIT License
227 stars 24 forks source link

removing qualifier in lexeme form, invalid guid #181

Open robertsilen opened 12 months ago

robertsilen commented 12 months ago

Hello, I need to remove a few thousand qualifiers for properties of lexeme forms in Wikidata. I asked for help in Wikidata Request a Query, and was suggested this tool. I'm trying to remove the qualifier P407 for the properties P898 in Lexeme:L235116#F1. As an example, I have figured out that the guid for the value 'aːbɔr' with: guid = data['forms'][0]['claims']['P898'][4]['id'] hash = data['forms'][0]['claims']['P898'][4]['qualifiers']['P407'][0]['hash'] but when I run the following: wb rq 'L235116-F1$6E538A76-DDE7-4ED4-AE4F-6BCCFD6B74A5' 'e41efcf0acaa18ea8fca63b87e2e0c24618f5664' I get: invalid guid { guid: 'L235116$F1$6E538A76-DDE7-4ED4-AE4F-6BCCFD6B74A5' } it would be much appreciated if somebody could explain how to get this to work, thank yoU!

maxlath commented 12 months ago

Thanks for reporting, that was a bug, which should now fixed in v17.0.6: the command you passed now works.