betty.entities.file module¶
Data types representing files on disk.
- final class betty.entities.file.File¶
Bases:
HasDescription,HasLinks,HasMediaType,HasNotes,HasCitationsThe
fileentityplugin.Plugin ID
fileClass
Configuration
not configurable
- __init__(path: StrPath, *, id: ResolvableMachineName | None = None, name: str | None = None, media_type: ResolvableMediaType | None = None, description: ResolvableLocalizable | None = None, notes: ToManyAssociates[Self, Note] = (), citations: ToManyAssociates[Self, Citation] = (), privacy: Privacy = Privacy.UNDETERMINED, links: ToManyAssociates[Self, Link] = (), copyright_notice: CopyrightNotice | None = None, license: License | None = None)¶
- copyright_notice: CopyrightNotice | None¶
The copyright notice for this file.
- 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().
- path¶
The file’s path on disk.
- referees¶
Other entities referencing this file.