betty.entities.presence module

Data types for people’s presences at events.

final class betty.entities.presence.Presence

Bases: HasPrivacy, Entity

The presence entity plugin. A person’s presence at an event.

Plugin ID

presence

Class

Presence

Configuration

not configurable

__init__(person: ToOneAssociate[Person], role: Role, event: ToOneAssociate[Event], *, privacy: Privacy = Privacy.UNDETERMINED)
async dump_linked_data(project: Project, /) PortableMapping

Dump this instance to JSON-LD.

event

The event the person was present at.

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

person

The person whose presence is described.

role: Role

The role the person performed at the event.