wikibaseintegrator.wbi_enums
- class wikibaseintegrator.wbi_enums.ActionIfExists(value)[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.
- APPEND_OR_REPLACE = 1
- FORCE_APPEND = 2
- KEEP = 3
- REPLACE_ALL = 4
- class wikibaseintegrator.wbi_enums.WikibaseDatatype(value)[source]
Bases:
Enum
An enumeration.
- COMMONSMEDIA = 'commonsMedia'
- EXTERNALID = 'external-id'
- FORM = 'wikibase-form'
- GEOSHAPE = 'geo-shape'
- GLOBECOORDINATE = 'globe-coordinate'
- ITEM = 'wikibase-item'
- LEXEME = 'wikibase-lexeme'
- 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.WikibaseDatePrecision(value)[source]
Bases:
Enum
An enumeration.
- BILLION_YEARS = 0
- CENTURY = 7
- DAY = 11
- DECADE = 8
- HUNDRED_THOUSAND_YEARS = 4
- MILLENNIUM = 6
- MILLION_YEARS = 3
- MONTH = 10
- YEAR = 9
- class wikibaseintegrator.wbi_enums.WikibaseRank(value)[source]
Bases:
Enum
An enumeration.
- DEPRECATED = 'deprecated'
- NORMAL = 'normal'
- PREFERRED = 'preferred'
- class wikibaseintegrator.wbi_enums.WikibaseSnakType(value)[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'