betty.entities.citation module

Data types for citations.

final class betty.entities.citation.Citation

Bases: HasAnyDate, HasFileReferences, HasPrivacy, HasLinks

The citation entity plugin.

Plugin ID

citation

Class

Citation

Configuration

not configurable

__init__(*, source: ToOneAssociate[Source], id: str | None = None, facts: ToManyAssociates[HasCitations] = (), location: ResolvableLocalizable | None = None, date: AnyDate | None = None, file_references: ToManyAssociates[FileReference] = (), privacy: Privacy = Privacy.UNDETERMINED)
async dump_linked_data(project: Project, /) PortableMapping

Dump this instance to JSON-LD.

facts

The other entities that reference these citations to back up their claims.

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().

location

The location within the source this citation references.

source

The source this citation references.