betty.entities.citation module#

Data types for citations.

final class betty.entities.citation.Citation#

Bases: HasAnyDate, HasFileReferences, HasLinks

The citation entity plugin.

Plugin ID

citation

Class

Citation

Configuration

not configurable

__init__(*, source: ToOneAssociate[Self, Source], facts: ToManyAssociates[Self, HasCitations] = (), id: ResolvableMachineName | None = None, location: ResolvableLocalizable | None = None, date: AnyDate | None = None, files: ToManyAssociates[Self, FileReference] = (), links: ToManyAssociates[Self, Link] = (), 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.