Public
Edited
Feb 25, 2024
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
nb_artworks = lodexport.data.artworks.length
Insert cell
artworksLOD = lodexport.data.artworks
Insert cell
Insert cell
Insert cell
Insert cell
duplicate_artworks = artworks.data.filter(d => d.duplicates != null)
Insert cell
Insert cell
titres = artworks.data.map(d => d.title.fr)
Insert cell
typesTitres = _.uniqBy(titres.map(d => typeof(d)))
Insert cell
objectsTitres = titres.filter(d => typeof(d) == "object")
Insert cell
Insert cell
Insert cell
dates_production_0101 = artworksLOD.filter(d => d.produced_at && d.produced_at.includes("-01-01"))
Insert cell
Insert cell
Insert cell
dates_productionLOD_null = artworksLOD.filter(d => d.produced_at == null)
Insert cell
dates_production_notNull = artworks.data.filter(d => d.produced_at != null)
Insert cell
Insert cell
dates_production_0000 = artworks.data.filter(d => d.produced_at == "0000-00-00")
Insert cell
Insert cell
dates_production_API_set = new Set(artworks.data.map(d => d.produced_at).sort())
Insert cell
dates_production_LOD_set = new Set(artworksLOD.map(d => d.produced_at).sort())
Insert cell
Insert cell
Insert cell
urls = artworksLOD.filter(d => d.url != null)
Insert cell
Insert cell
artworks.data[0].url.fr
Insert cell
artworksLOD.url
Insert cell
Insert cell
Insert cell
artisteStrates = artworksLOD[0].artists
Insert cell
infoArtiste31 = lodexport.data.artists.find(d => d.MONA_id == 31)
Insert cell
Insert cell
valeursUniquesPourArtistes = new Set(artworksLOD.map(d => d.artists).sort())
Insert cell
typesUniquesPourArtistes = new Set(artworksLOD.map(d => typeof(d.artists)))
Insert cell
oeuvres_plusieursArtistes = artworks.data.filter(d => d.artists && d.artists.length > 1)
Insert cell
Insert cell
oeuvre_45_LOD = artworksLOD.find(d => d.MONA_id == 45)
Insert cell
Insert cell
Insert cell
sourcesEnsemble = new Set(artworksLOD.map(d => d.source))
Insert cell
sourcesVides = artworksLOD.filter(d => d.source == "")
Insert cell
artworks182_api = artworks.data.filter(d => d.duplicates && d.duplicates.includes(182))
Insert cell
Insert cell
Insert cell
sourcesEnsemble_api = new Set(artworks.data.map(d => d.source))
Insert cell
sourcesVides_api = artworks.data.filter(d => d.source == "" )
Insert cell
artwork1853_api = artworks.data.find(d => d.id == 1853)
Insert cell
import {toc} from "@lenamk/toc"
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more