Snak#

class wikibaseintegrator.models.snak.Snak(snaktype=WikibaseSnakType.KNOWN_VALUE, property_number=None, hash=None, datavalue=None, datatype=None)[source]#

Bases: BaseModel

from_json(json_data)[source]#
Return type:

Self

get_json()[source]#
Return type:

dict[str, str]

property datatype: WikibaseDatatype | str | None#
property datavalue#
Setter accepts:

dict | None

property hash#
Setter accepts:

str | None

property property_number#
Setter accepts:

str | int | None

property snaktype#
Setter accepts:

WikibaseSnakType