ActionIfExists#

class wikibaseintegrator.wbi_enums.ActionIfExists(*values)[source]#

Bases: Enum

Action to take if a statement with a property already exists on the entity.

APPEND_OR_REPLACE: Add the new element to the property if it does not exist, otherwise replace the existing element. FORCE_APPEND: Forces the addition of the new element to the property, even if it already exists. KEEP: Does nothing if the property already has elements stated. REPLACE_ALL: Replace all elements with the same property number. MERGE_REFS_OR_APPEND: Add the new element to the property if it does not exist, otherwise merge the references, adding the references for the new claim as a new reference block.

APPEND_OR_REPLACE = 1#
FORCE_APPEND = 2#
KEEP = 3#
MERGE_REFS_OR_APPEND = 5#
REPLACE_ALL = 4#