-
Notifications
You must be signed in to change notification settings - Fork 21
Description
This is part of a production activity.
How can I best convey the data for the role and displayOrder listed below? Wrangling the JSON generation code to convey the ordering via the natural ordering within the JSON seems unlikely to cause that ordering to be retained if the data is manipulated in various ways, so I'd prefer to be explicit about it. It's certainly tied to the "view" but I it's also expressive of a desired curatorial ordering so it should be present in more than just the order of the array in which it appears I think. Also, in the context of object creation, the creator is always listed with a roleType of "artist" in our particular data, but there are numerous sub-roles under "artist", e.g. painter, sculpture, etc. and those roles are specific to the intersection of the created object and the creator, not a general professional capacity the artist has.
Is there a way to express either or both of these in the data without having to resort to a custom property container like custom_metadata?
"carried_out_by": [
{
"id": "https://id.nga.gov/1c36bc84-1afa-4a6d-972a-f9b437e94bd4",
"type": "Actor",
"_label": "Arbo, Aurelia",
"custom_metadata": {
"roleType": "artist",
"role": "artist",
"displayOrder": 1
}
}
],