wikibase-cli icon indicating copy to clipboard operation
wikibase-cli copied to clipboard

duplicating refs via known reference-hashes

Open rwst opened this issue 5 years ago • 3 comments

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?

rwst avatar Jun 22 '20 07:06 rwst

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

maxlath avatar Jun 23 '20 07:06 maxlath

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

rwst avatar Jun 23 '20 07:06 rwst

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.

rwst avatar Oct 15 '22 14:10 rwst