betty.entities.source module#
Data types to describe information sources.
- final class betty.entities.source.Source#
Bases:
HasAnyDate,HasFileReferences,HasNotes,HasLinksThe
sourceentityplugin.Plugin ID
sourceClass
Configuration
not configurable
- __init__(name: ResolvableLocalizable | None = None, *, id: ResolvableMachineName | None = None, author: ResolvableLocalizable | None = None, publisher: ResolvableLocalizable | None = None, contained_by: Associate[Self, Source] | None = None, contains: ToManyAssociates[Self, Source] = (), notes: ToManyAssociates[Self, Note] = (), date: AnyDate | None = None, files: ToManyAssociates[Self, FileReference] = (), links: ToManyAssociates[Self, Link] = (), privacy: Privacy = Privacy.UNDETERMINED)#
- author#
The source’s author.
- citations#
The citations referencing this source.
- contained_by#
Another source that contains this source.
- contains#
Other sources this source contains.
- 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().
- name#
The source’s name.
- publisher#
The source’s publisher.