maxlath / wikibase-cli

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

duplicating refs via known reference-hashes #118

Open rwst opened 4 years ago

rwst commented 4 years ago

This is more of a question. When I query using SPARQL ?stmt prov:wasDerivedFrom ?ref I get as result a hash which is presumably the same as what you call "reference-hash" in your description of wb remove-reference. The question: would it be possible to duplicate an existing reference on a new statement if we have the hash?

maxlath commented 4 years ago

there is no command to do that easily at the moment I'm afraid

rwst commented 4 years ago

It would only be useful if it improved edit speed, anyway.

rwst commented 1 year ago

I would like to reopen this, as the question came up in a different task, where I want to merge identical statements having different references. I want to collect all references on a single statement, and the references are very complicated. It would be nice to copy them to one statement, and delete the other statements. But now I need to query for the content of the references to create them again.