Museum of Modern Art Paintings and Artists
The Museum of Modern Art (MoMA) maintains a public dataset at https://github.com/MuseumofModernArt/collection containing detailed information on its holdings. Here, you can make use of a custom entity store derived from this data to study the dimensions of MoMA paintings, as well as to investigate the longevity of their artists.
First, load the prebuilt entity store from a ResourceObject.
momaStore = ResourceData[
ResourceObject[
Association[
"Name" -> "Museum of Modern Art Holdings and Artists",
"UUID" -> "38f47cc0-667d-4988-8ebe-6c1bef23fdc6",
"ResourceType" -> "DataResource", "Version" -> "1.0.0",
"Description" -> "Holdings and artists of The Museum of Modern \
Art", "ContentSize" -> Association["EntityStore" -> 0],
"ContentElements" -> {"EntityStore"}]]]
Register the store for this session.
PrependTo[$EntityStores, momaStore];
Obtain a list of artwork properties from the entity store using the "MoMAHolding" entity type.
EntityProperties["MoMAHolding"]
List representative property values for a particular piece.
DeleteMissing[
EntityValue[Entity["MoMAHolding", "79802"],
"PropertyAssociation" ]] // Take[#, 15] &
Make a date histogram of the completion dates of all works at MoMA.
DateHistogram[
DeleteMissing[EntityValue["MoMAHolding", "CompletionDate"]]]
Tally the types of works in the collection.
TextGrid[SortBy[
Tally[EntityValue["MoMAHolding",
EntityProperty["MoMAHolding", "Classification"]]], Last] //
Reverse, Dividers -> All,
Background -> {Automatic, {{LightBlue, None}}},
Alignment -> {{Left, Decimal}, Automatic}]
Use implicitly defined entity classes to retrieve MoMA paintings.
paintings =
EntityClass[
"MoMAHolding", {EntityProperty["MoMAHolding", "Classification"] ->
"Painting"}];
Plot histograms of painting aspect ratios and areas. At default binning width, the distribution of aspect ratios appears to be trimodal.
Table[Histogram[EntityValue[paintings, prop],
PlotLabel ->
prop], {prop, {EntityProperty["MoMAHolding", "AspectRatio"],
EntityProperty["MoMAHolding", "Area"]}}]
Now obtain a list of properties associated with artists using the "MoMAArtist" entity type.
EntityProperties["MoMAArtist"]
View properties for the artist Vincent van Gogh as a "PropertyAssociation".
EntityValue[
Entity["MoMAArtist", "Vincent van Gogh"], "PropertyAssociation"]
Visualize the distribution of work counts at MoMA for all artists.
Histogram[
Length /@ EntityValue["MoMAArtist", "MoMAPieces"], {"Log", 20}]
Explore the average lifespan of deceased artists by first selecting artists having both birth and death dates defined, then taking the date difference between the two, and finally, computing the average.
deceasedArtists =
Select[EntityList["MoMAArtist"],
AllTrue[# /@ {"BirthDate", "DeathDate"}, DateObjectQ] &];
Mean[DateDifference[#["BirthDate"], #["DeathDate"], "Year"] & /@
deceasedArtists] // N
Create collages of some randomly selected MoMA pieces from each decade of the twentieth century.