betty.entities.person module

Data types describing persons.

final class betty.entities.person.Person

Bases: HasFileReferences, HasCitations, HasNotes, HasLinks, HasPrivacy

The person entity plugin.

Plugin ID

person

Class

Person

Configuration

not configurable

__init__(id: str | None = None, *, file_references: ToManyAssociates[FileReference] = (), citations: ToManyAssociates[Citation] = (), links: ToManyAssociates[Link] = (), notes: ToManyAssociates[Note] = (), privacy: Privacy = Privacy.UNDETERMINED, parents: ToManyAssociates[Person] = (), children: ToManyAssociates[Person] = (), presences: ToManyAssociates[Presence] = (), names: ToManyAssociates[PersonName] = (), gender: Gender | None = None)
property ancestors: Iterator[Person]

All ancestors.

children

The person’s children.

property descendants: Iterator[Person]

All descendants.

async dump_linked_data(project: Project, /) PortableMapping

Dump this instance to JSON-LD.

gender

The person’s gender.

property label: Localizable

The entity’s human-readable label.

async classmethod linked_data_schema(project: Project, /) JsonLdObject

Define the JSON Schema for betty.linked_data.LinkedDataDumpable.dump_linked_data().

names

The person’s names.

parents

The person’s parents.

presences

The person’s presences at events.

property siblings: Iterator[Person]

All siblings.