betty.ancestry.has_citations module

Tools to build data types have citations.

class betty.ancestry.has_citations.HasCitations[source]

Bases: Entity

An entity with citations that support it.

__init__(*args: Any, citations: Iterable[Citation] | None = None, **kwargs: Any)[source]
citations

A bidirectional many-to-many entity type association.

async dump_linked_data(project: Project) DumpMapping[Dump][source]

Dump this instance to JSON-LD.

async classmethod linked_data_schema(project: Project) Object[source]

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