wikibaseintegrator.wbi_enums

class wikibaseintegrator.wbi_enums.ActionIfExists(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[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
class wikibaseintegrator.wbi_enums.WikibaseDatatype(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: Enum

COMMONSMEDIA = 'commonsMedia'
EDTF = 'edtf'
ENTITYSCHEMA = 'entity-schema'
EXTERNALID = 'external-id'
FORM = 'wikibase-form'
GEOSHAPE = 'geo-shape'
GLOBECOORDINATE = 'globe-coordinate'
ITEM = 'wikibase-item'
LEXEME = 'wikibase-lexeme'
LOCALMEDIA = 'localMedia'
MATH = 'math'
MONOLINGUALTEXT = 'monolingualtext'
MUSICALNOTATION = 'musical-notation'
PROPERTY = 'wikibase-property'
QUANTITY = 'quantity'
SENSE = 'wikibase-sense'
STRING = 'string'
TABULARDATA = 'tabular-data'
TIME = 'time'
URL = 'url'
class wikibaseintegrator.wbi_enums.WikibaseRank(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: Enum

DEPRECATED = 'deprecated'
NORMAL = 'normal'
PREFERRED = 'preferred'
class wikibaseintegrator.wbi_enums.WikibaseSnakType(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: Enum

The snak type of the Wikibase data snak, three values possible, depending if the value is a known (value), not existent (novalue) or unknown (somevalue). See Wikibase documentation.

KNOWN_VALUE = 'value'
NO_VALUE = 'novalue'
UNKNOWN_VALUE = 'somevalue'
class wikibaseintegrator.wbi_enums.WikibaseTimePrecision(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: Enum

BILLION_YEARS = 0
CENTURY = 7
DAY = 11
DECADE = 8
HUNDRED_MILLION_YEARS = 1
HUNDRED_THOUSAND_YEARS = 4
MILLENNIUM = 6
MILLION_YEARS = 3
MONTH = 10
TEN_MILLION_YEARS = 2
TEN_THOUSAND_YEARS = 5
YEAR = 9