How nationalgalleryofart/opendata works
This repository publishes the National Gallery of Art’s collection data as downloadable CSVs, with records for artworks and artists plus related collection information. Its principal workflow is extracting data from SQL Server, formatting it to match the published CSV conventions, and writing files to the data directory. The README also describes identifiers and image references as dataset capabilities; image files themselves are not included. The source excerpt shows the extractor’s structure and some table queries, but not every query or the full output-writing flow, so the graph keeps those relationships at the dataset level.
Main entry points: data Downloadable CSV dataset · extract_opendata.py CSV extractor · objects.csv Artwork records · constituents.csv Artist records
Components 14
Extraction
- CSV extractor
scripts/extract_opendata.py
Collection records
- Artwork records
data/objects.csv - Artist records
data/constituents.csv - Locations
data/locations.csv
Related records
- Artwork details
data/objects_dimensions.csv - Artwork artists
data/objects_constituents.csv - Artwork terms
data/objects_terms.csv - Historical data
data/objects_historical_data.csv - Text entries
data/objects_text_entries.csv - Alternative identifiers
data/alternative_identifiers.csv - Published image references
data/published_images.csv
Open data
Other components
- Researchers and public
- Collection SQL Server
Connections 13
- Collection SQL Server → CSV extractor: provides source data
scripts/extract_opendata.py - CSV extractor → Downloadable CSV dataset: writes CSVs
scripts/extract_opendata.py - Downloadable CSV dataset → Researchers and public: supports research
README.md - Artwork records → Downloadable CSV dataset: included in
README.md - Artist records → Downloadable CSV dataset: included in
README.md - Locations → Downloadable CSV dataset: included in
README.md - Artwork details → Downloadable CSV dataset: included in
README.md - Artwork artists → Downloadable CSV dataset: included in
README.md - Artwork terms → Downloadable CSV dataset: included in
README.md - Historical data → Downloadable CSV dataset: included in
README.md - Text entries → Downloadable CSV dataset: included in
README.md - Alternative identifiers → Downloadable CSV dataset: included in
README.md - Published image references → Downloadable CSV dataset: includes references
README.md