Change ACTOR.roles to a function

Description

ROLE.performer always holds the reference to Actor playing the role. The ACTOR.roles can be always derived form that datapoint, it does not need to be part of the source ACTOR also. Hence the proposal to change roles attribute from ACTOR class to a function.

This is needed in order to avoid graph-like structure of Demographic Information Model, solving various problems mentioned in the REST API discussions on Demographic API.

See also Pablo's REST API proposal on Discourse, and somehow related

Activity

Thomas Beale November 2, 2024 at 3:54 PM

Normally, ‘roles’ (i.e. professional personas) of an Actor are determined by the Actor, so it would make more sense to retain Actor.roles and get rid of ROLE.performer, I would have thought. I’ll leave this for further discussion before I do anything.

Details

Reporter

Raised By

Sebastian Iancu

Components

Affects versions

Created September 15, 2024 at 9:47 AM
Updated November 2, 2024 at 3:54 PM