KIF_ObjectSet

class KIF_ObjectSet(*args: Any)[source]

Bases: KIF_Object, Generic[_TObj]

Set of KIF objects.

Parameters:

objects – KIF objects.

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.

union(*others: Self) Self[source]

Computes the union of self and others.

Parameters:

others – KIF object sets.

Returns:

The resulting KIF object set.

class ValueSet(*values: TValue)[source]

Bases: KIF_ObjectSet[Value]

Set of values.

Parameters:

values – Values.

children_class

alias of Value

__init__(*values: TValue) None[source]
class TextSet(*texts: TText)[source]

Bases: ValueSet

Set of texts.

Parameters:

texts – Texts.

children_class

alias of Text

__init__(*texts: TText) None[source]
class SnakSet(*snaks: Snak)[source]

Bases: KIF_ObjectSet[Snak]

Set of snaks.

Parameters:

snaks – Snaks.

children_class

alias of Snak

__init__(*snaks: Snak) None[source]
class ReferenceRecordSet(*reference_records: TReferenceRecord)[source]

Bases: KIF_ObjectSet[ReferenceRecord]

Set of reference records.

Parameters:

reference_records – Reference records.

children_class

alias of ReferenceRecord

__init__(*reference_records: TReferenceRecord) None[source]
class AnnotationRecordSet(*annotation_records: AnnotationRecord)[source]

Bases: KIF_ObjectSet[AnnotationRecord]

Set of annotation records.

Parameters:

annotation_records – Annotation records.

children_class

alias of AnnotationRecord

__init__(*annotation_records: AnnotationRecord) None[source]