betty.ancestry.note module

Provide the Note entity type and utilities.

final class betty.ancestry.note.Note[source]

Bases: ShorthandPluginBase, UserFacingEntity, HasPrivacy, HasLinks, Entity

A note is a bit of textual information that can be associated with another entity.

__init__(text: ShorthandStaticTranslations, *, id: str | None = None, entity: HasNotes & Entity | ToZeroOrOneResolver[HasNotes] | ToOneResolver[HasNotes] | None = None, privacy: Privacy | None = None, public: bool | None = None, private: bool | None = None)[source]
async dump_linked_data(project: Project) DumpMapping[Dump][source]

Dump this instance to JSON-LD.

entity

The entity the note belongs to.

property label: Localizable

The entity’s human-readable label.

classmethod plugin_label_plural() Localizable[source]

The human-readable entity type label, plural.

text

The human-readable note text.