betty.entities.place module

Provide the place entity.

final class betty.entities.place.Place

Bases: HasLinks, HasFileReferences, HasNotes, HasPrivacy

The place entity plugin.

Plugin ID

place

Class

Place

Configuration

not configurable

__init__(*, id: str | None = None, names: Iterable[PlaceName] = (), events: ToManyAssociates[Event] = (), enclosers: ToManyAssociates[Enclosure] = (), enclosees: ToManyAssociates[Enclosure] = (), notes: ToManyAssociates[Note] = (), coordinates: Point | None = None, links: ToManyAssociates[Link] = (), privacy: Privacy = Privacy.UNDETERMINED, place_type: PlaceType | None = None)
coordinates

The place’s coordinates.

async dump_linked_data(project: Project, /) PortableMapping

Dump this instance to JSON-LD.

enclosees

Other places contained by this one.

enclosers

Other places containing this one.

events

The events that happened here.

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

property names: MutableSequence[PlaceName]

The place’s names.

The first name is considered the place label.

place_type

The type of this place.