Repository navigation
data: BAFU:2026 v1 full inventory (11,947 processes, 420,063 exchanges, 11 sectors) - #2
Merged
Merged
Conversation
…s, 11 sectors) Adds the complete BAFU:2026 v1 LCI database as sector-partitioned processes/exchanges parquet, generated by the sentier-importers bafu source family: - fills the existing 01-agriculture, 02-electricity, 03-chemicals sectors and adds 04-transport through 10-building-services plus the 99-obsolete quarantine sector (wholly-obsolete categories kept as technosphere link targets) - exchanges.flow uses process UUIDs for technosphere links (0 unresolved) and the published uuid5 recipe for elementary flows, matching the BAFU terms delivered to sentier-vocab - metadata.json per sector regenerated with row_counts and the ToU §2.3 citation Source: Life Cycle Inventory database of the Swiss Federal Administration, BAFU:2026.
Mirrors the sentier-mappings pattern: a self-contained scripts/validate.py run by a single CI job. Per data/<NN>-<sector>/ folder it checks metadata.json (JSON Schema + row_counts vs actual), parquet columns against schema/process.yaml + schema/exchange.yaml (unknown columns, required non-null, types, enum values), process_id uniqueness, and the exchanges -> processes foreign key. All-null optional columns pass the type check; optional columns may be omitted.
Drops the 'BAFU:2026 v1 datasets, regenerated locally' phrasing — which source supplied which rows is not recorded in this repo (see README); only the ToU §2.3 citation stays.
Contributor
Author
|
Format review applied (2026-08-07): this repo already follows the platform delivery rule — payloads split per sector folder, size-limited files, no source-named data files. Only change needed was trimming the sector metadata descriptions to the bare ToU §2.3 citation (d47c427). The companion vocab delivery was restructured to the same rule (per-sector process files, per-compartment flow files) and amended into the merged sentier-vocab commit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the complete BAFU:2026 v1 LCI database as sector-partitioned parquet, generated by the
bafusource family in sentier-importers (spec:sentier-importers/docs/specs/2026-08-01-bafu-2026-import.md):01-agriculture,02-electricity,03-chemicals) and adds04-transport…10-building-servicesplus99-obsolete(wholly-obsolete BAFU categories quarantined but kept — live processes link into them)processes.parquet/exchanges.parquetper sector conform toschema/process.yaml/schema/exchange.yamlunchangedexchanges.flow: technosphere links resolve to process UUIDs (0 unresolved of 114,369); elementary flows use the published deterministic uuid5 recipe, identical to the BAFU flow terms in sentier-vocab — vocabulary and inventory are joinable by constructionmetadata.jsonper sector regenerated (row_counts, provenance, ToU §2.3 citation)These payloads were regenerated locally and held back from public git until BAFU's written §2.2 redistribution consent; they now ship as a normal data PR. Companion vocab PR: sentier-dev/sentier-vocab#31.
Citation: Life Cycle Inventory database of the Swiss Federal Administration, BAFU:2026.
Test plan
metadata.jsonrow_counts match actual parquet row countsmetadata.jsonvalidate againstschema/metadata.schema.json