Graph Metadata
Build bounded Eurostat dataset, dimension, and member graphs for search, lineage, and NLQ systems.
Eurostat metadata can expand quickly. getDatasetGraphMetadata() keeps expansion explicit by using strategies.
Strategies
By default, full expansion throws for datasets above maxObservationCount unless allowLarge: true is passed.
Declared structure and fidelity
Every result carries a fidelity marker:
observed— dimensions and members come from an actual data slice, so members are only the values present in that slice.declared— dimensions and members come from the dataset's structure definition (DSD), so members are the full codelist declared by Eurostat.
strategy: 'structure' fetches the DSD directly (as SDMX-ML, at the version advertised in the catalog) and returns fidelity: 'declared'. The other strategies also fall back to the declared structure automatically when a slice is too large to describe — Eurostat answers those with a 413 or a warning envelope — so oversized cubes still return metadata instead of throwing.
Graph shape
Use filtered graph metadata when you want a reproducible slice that can be cited or searched without importing an entire Eurostat cube.