wikibaseintegrator.models.references
- class wikibaseintegrator.models.references.Reference(snaks=None, snaks_order=None)[source]
Bases:
BaseModel
- Parameters:
snaks (Snaks | None) –
snaks_order (list | None) –
- __init__(snaks=None, snaks_order=None)[source]
- Parameters:
snaks (Snaks | None) –
snaks_order (list | None) –
- add(snak=None, action_if_exists=ActionIfExists.REPLACE_ALL)[source]
- Return type:
- Parameters:
action_if_exists (ActionIfExists) –
- property hash
- property snaks
- property snaks_order
- class wikibaseintegrator.models.references.References[source]
Bases:
BaseModel
- add(reference=None, action_if_exists=ActionIfExists.REPLACE_ALL)[source]
- Return type:
- Parameters:
action_if_exists (ActionIfExists) –
- property references: list[wikibaseintegrator.models.references.Reference]