pwb.py harvest_template -template:Foo "Bar" P123
when is imported incorrect value and somebody deletes it on WIkidata only, on next run bot will reimport this from Wikipedia. In some cases there should be reverting war.
Scripts should check if there was not recently deleted this property with same value
some kind of this control (but without checking value) was in
if str(item.getVersionHistory(total=50)).find("wbremoveclaims-remove:1| */ [[Property:" + pid) is not -1: pywikibot.output('%s cannot be added as it was recently removed from the item' % (pid,)) else: claim = wdhelper.matchDatatype(pid, value, page, item) }