betty.attrs.description module

Data that has human-readable descriptions.

class betty.attrs.description.HasDescription

Bases: LinkedDataDumpableWithSchemaJsonLdObject, HasProps

Data with a description.

__init__(*args: Any, description: ResolvableLocalizable | None = None, **kwargs: Any)
description

The description.

async dump_linked_data(project: Project, /) PortableMapping

Dump this instance to JSON-LD.

async classmethod linked_data_schema(project: Project, /) JsonLdObject

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