Statement

class Statement(*args, **kwargs)[source]

Bases: ClosedTerm

Statement.

Parameters:
  • subject – Entity.

  • snak – Snak.

template_class

alias of StatementTemplate

variable_class

alias of StatementVariable

classmethod check(arg: Any, function: Callable[[...], Any] | str | None = None, name: str | None = None, position: int | None = None) Self[source]

Coerces arg into an instance of this class.

If arg cannot be coerced, raises an error.

Parameters:
  • arg – Value.

  • function – Function or function name.

  • name – Argument name.

  • position – Argument position.

Returns:

Object.

__init__(subject: VTEntity, snak: VTSnak) None[source]
property subject: Entity

The subject of statement.

get_subject() Entity[source]

Gets the subject of statement.

Returns:

Subject.

property snak: Snak

The snak of statement.

get_snak() Snak[source]

Gets the snak of statement.

Returns:

Snak.