DataDrivenConstruction commited on
Commit
9f46fda
·
verified ·
1 Parent(s): 3e82c8c

Add dataset card

Browse files
Files changed (1) hide show
  1. README.md +242 -0
README.md ADDED
@@ -0,0 +1,242 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - ar
5
+ - bg
6
+ - cs
7
+ - de
8
+ - en
9
+ - es
10
+ - fr
11
+ - hi
12
+ - hr
13
+ - id
14
+ - it
15
+ - ja
16
+ - ko
17
+ - nl
18
+ - pl
19
+ - pt
20
+ - ro
21
+ - ru
22
+ - sv
23
+ - th
24
+ - tr
25
+ - vi
26
+ - zh
27
+ tags:
28
+ - construction
29
+ - cost-estimation
30
+ - quantity-surveying
31
+ - BIM
32
+ - construction-rates
33
+ - bill-of-quantities
34
+ - tabular
35
+ - parquet
36
+ - multilingual
37
+ size_categories:
38
+ - 1M<n<10M
39
+ pretty_name: CWICR — Construction Works, Items, Costs & Resources (30 Countries)
40
+ configs:
41
+ - config_name: default
42
+ data_files:
43
+ - split: ar
44
+ path: AR/*.parquet
45
+ - split: au
46
+ path: AU/*.parquet
47
+ - split: bg
48
+ path: BG/*.parquet
49
+ - split: cs
50
+ path: CS/*.parquet
51
+ - split: de
52
+ path: DE/*.parquet
53
+ - split: en
54
+ path: EN/*.parquet
55
+ - split: es
56
+ path: ES/*.parquet
57
+ - split: fr
58
+ path: FR/*.parquet
59
+ - split: hi
60
+ path: HI/*.parquet
61
+ - split: hr
62
+ path: HR/*.parquet
63
+ - split: id
64
+ path: ID/*.parquet
65
+ - split: it
66
+ path: IT/*.parquet
67
+ - split: ja
68
+ path: JA/*.parquet
69
+ - split: ko
70
+ path: KO/*.parquet
71
+ - split: mx
72
+ path: MX/*.parquet
73
+ - split: ng
74
+ path: NG/*.parquet
75
+ - split: nl
76
+ path: NL/*.parquet
77
+ - split: nz
78
+ path: NZ/*.parquet
79
+ - split: pl
80
+ path: PL/*.parquet
81
+ - split: pt
82
+ path: PT/*.parquet
83
+ - split: ro
84
+ path: RO/*.parquet
85
+ - split: ru
86
+ path: RU/*.parquet
87
+ - split: sv
88
+ path: SV/*.parquet
89
+ - split: th
90
+ path: TH/*.parquet
91
+ - split: tr
92
+ path: TR/*.parquet
93
+ - split: uk
94
+ path: UK/*.parquet
95
+ - split: us
96
+ path: US/*.parquet
97
+ - split: vi
98
+ path: VI/*.parquet
99
+ - split: za
100
+ path: ZA/*.parquet
101
+ - split: zh
102
+ path: ZH/*.parquet
103
+ ---
104
+
105
+ # CWICR — Construction Works, Items, Costs & Resources
106
+
107
+ **A multilingual, machine-readable database of national construction rate books for 30 countries / language locales.** Each rate is fully decomposed into its work composition and resource breakdown (labour, machinery, materials), with unit prices, hierarchical classification, and physical parameters preserved in the source language.
108
+
109
+ This dataset is the **tabular source-of-truth** behind the [`cwicr-vector-db-bgem3-v3`](https://huggingface.co/datasets/DataDrivenConstruction/cwicr-vector-db-bgem3-v3) Qdrant snapshots. Use this repository when you need raw numeric data (prices, quantities, time norms); use the vector DB repository when you need semantic search over rate descriptions.
110
+
111
+ ## Contents per country
112
+
113
+ Each language directory (`AR/`, `BG/`, `CS/`, `DE/`, …) contains:
114
+
115
+ | File | Description |
116
+ |---|---|
117
+ | `<LANG>_<CITY>_workitems_costs_resources_DDC_CWICR.parquet` | Primary table — one row per (rate × resource). ~900K rows per country, 84 columns. |
118
+ | `DDC_CWICR_<LANG>_<CITY>_Catalog.csv` | Compact catalogue — one row per unique `rate_code` with title, unit, collection, hierarchy. ~55K rows per country. |
119
+ | `DDC_CWICR_<LANG>_<CITY>_Catalog.xlsx` | Same catalogue, Excel-formatted (auto-widths, frozen headers). |
120
+ | `README_DDC_CWICR_TABULAR_<LANG>_<CITY>.pdf` | Localised PDF documentation for that country's rate book. |
121
+ | `README.md` | Per-country quick reference (locale, collections, schema notes). |
122
+
123
+ Excel exports of the full table (`*_FORMATTED.xlsx`, `*_SIMPLE.xlsx`) are reproducible from the parquet and are kept in the source GitHub repository as Git LFS objects.
124
+
125
+ ## Schema (parquet — 84 columns)
126
+
127
+ The parquet preserves the full rate decomposition. A rate (e.g. *"Excavator 15 m³, soil class 2"*) is unfolded into multiple rows, one per resource it consumes (the excavator itself, fuel, operator labour, transport, etc.). Each row carries both rate-level fields (replicated across the rate's rows) and resource-level fields (unique per row).
128
+
129
+ Column groups:
130
+
131
+ - **Identification**: `rate_code`, `rate_original_name`, `rate_final_name`, `rate_unit`, `is_abstract` (parent aggregator vs. specific variant)
132
+ - **Hierarchy**: `category_type`, `department_code`, `department_name`, `section_name`, `subsection_name`, `collection_name`
133
+ - **Physical params**: `mass_name`, `mass_value`, `mass_unit` (preserves original semantics: "масса 1 шт.", "Gewicht", etc.)
134
+ - **Costs**: `rate_total_cost`, `rate_labour_cost`, `rate_materials_cost`, `rate_machinery_cost`, `rate_overhead`, `rate_profit`, `currency`
135
+ - **Work composition**: `work_composition_text` — full natural-language description of the work performed
136
+ - **Resources** (one row each): `resource_code`, `resource_name`, `resource_type`, `resource_quantity`, `resource_unit`, `resource_unit_cost`, `resource_total_cost`
137
+ - **Machinery taxonomy**: `machine_class1_name` … `machine_class3_name` — classification of machinery resources
138
+ - **Provenance**: `source_book`, `source_year`, `source_publisher`, `source_url`
139
+
140
+ All text fields are in the **source language of the rate book** (Russian, German, Chinese, Hindi, etc.). Unit symbols and numeric values are kept verbatim from the original publication.
141
+
142
+ ## Quick start (Python)
143
+
144
+ ```python
145
+ from datasets import load_dataset
146
+
147
+ # Load all rates for one country (parquet → in-memory Arrow table)
148
+ ds = load_dataset("DataDrivenConstruction/cwicr-construction-rates", split="de")
149
+ print(ds.column_names)
150
+ print(ds[0])
151
+
152
+ # Or load lazily with polars (recommended for >100K rows)
153
+ import polars as pl
154
+ df = pl.scan_parquet(
155
+ "hf://datasets/DataDrivenConstruction/cwicr-construction-rates/DE/DE_BERLIN_workitems_costs_resources_DDC_CWICR.parquet"
156
+ ).filter(pl.col("collection_name").str.contains("Erdarbeiten")).collect()
157
+ ```
158
+
159
+ ## Quick start (CLI)
160
+
161
+ ```bash
162
+ # Download one country
163
+ huggingface-cli download DataDrivenConstruction/cwicr-construction-rates \
164
+ --include "DE/*" --repo-type dataset --local-dir ./cwicr_de
165
+
166
+ # Convert to CSV for quick inspection
167
+ python -c "import polars as pl; pl.read_parquet('cwicr_de/DE/DE_BERLIN_workitems_costs_resources_DDC_CWICR.parquet').write_csv('de.csv')"
168
+ ```
169
+
170
+ ## Coverage
171
+
172
+ **30 locale-specific rate books** spanning **23 languages**:
173
+
174
+ | Region | Locales |
175
+ |---|---|
176
+ | Russian-speaking | RU (St. Petersburg / federal) |
177
+ | English-speaking | EN (Toronto), UK (London / GBP), US (USA / USD), AU (Sydney), NZ (Auckland), NG (Lagos), ZA (Johannesburg) |
178
+ | Spanish/Portuguese | ES (Barcelona), MX (Mexico City), PT (São Paulo) |
179
+ | Central/Eastern Europe | DE (Berlin), FR (Paris), IT (Rome), NL (Amsterdam), PL (Warsaw), CS (Prague), HR (Zagreb), BG (Sofia), RO (Bucharest), SV (Stockholm), TR (Istanbul) |
180
+ | Middle East / South Asia | AR (Dubai), HI (Mumbai) |
181
+ | East / Southeast Asia | ZH (Shanghai), JA (Tokyo), KO (Seoul), TH (Bangkok), VI (Hanoi), ID (Jakarta) |
182
+
183
+ Each rate book uses its **native classification system** (Russian СНиП codes, German DIN structures, US MasterFormat-style hierarchies, Chinese GB classifiers, etc.). The schema is unified across countries but the *values* in `collection_name` / `department_code` / etc. are in the source language and follow each country's own taxonomy.
184
+
185
+ ## Use cases
186
+
187
+ - **Cost estimation**: BIM quantity takeoff → match elements to rates → compute project cost in local currency
188
+ - **Cross-country price benchmarking**: compare the unit cost of equivalent works (e.g. concrete pouring) across markets
189
+ - **Construction-specific LLM fine-tuning**: rich multilingual corpus of technical construction language with structured grounding
190
+ - **Resource normalization research**: align machinery / material / labour ontologies across national catalogues
191
+ - **Quantity surveying education**: realistic worked examples in 23 languages
192
+
193
+ ## Related artifacts
194
+
195
+ - **Vector DB snapshots** (Qdrant, hybrid BGE-M3 dense + sparse + resources, ready to restore):
196
+ → [`DataDrivenConstruction/cwicr-vector-db-bgem3-v3`](https://huggingface.co/datasets/DataDrivenConstruction/cwicr-vector-db-bgem3-v3)
197
+ - **Source code / pipelines** (encoders, classifiers, search demos, BIM matchers):
198
+ → [`github.com/datadrivenconstruction/OpenConstructionEstimate-DDC-CWICR`](https://github.com/datadrivenconstruction/OpenConstructionEstimate-DDC-CWICR)
199
+
200
+ ## Data sources
201
+
202
+ CWICR aggregates publicly available national rate catalogues:
203
+
204
+ - **RU**: Federal Unified Rates (ФЕР / ТЕР), Ministry of Construction RF, regional indices.
205
+ - **EU**: National building cost compendia for each member state.
206
+ - **US/CA**: RSMeans-style cost data, MasterFormat-aligned.
207
+ - **CN/JP/KR/TH/VN/ID**: Government-published quota / norm catalogues.
208
+ - **Other**: Country-specific official sources cited in each rate's `source_book` field.
209
+
210
+ The CWICR pipeline normalises these into a single schema; the **rate codes, prices, and work compositions are preserved verbatim** from the originals. License applicability of underlying codes follows each catalogue's terms; this redistribution is for research and reference. Where redistribution is restricted, only derived metrics or anonymised samples are included.
211
+
212
+ ## Reproducibility
213
+
214
+ The CWICR pipeline (parsers, normalisers, classifiers) is open-source. Each parquet here is built by:
215
+
216
+ 1. Source-specific parser → standard `workitems_costs_resources` raw frame
217
+ 2. `v3_classifier.enrich_v3` → 29 indexed payload fields (collections, departments, physical params)
218
+ 3. `ost_ifc_mapping.base_code` → cross-language rate-code normalisation (lang/unit suffixes + inline tags)
219
+
220
+ See the source repository for full pipeline scripts.
221
+
222
+ ## License
223
+
224
+ Released under **Apache-2.0** for the dataset structure, normalisation pipeline, and derived metadata. Underlying rate codes and prices are sourced from publicly available national catalogues — each catalogue's terms of use apply to commercial redistribution of raw numeric values.
225
+
226
+ ## Citation
227
+
228
+ ```bibtex
229
+ @dataset{cwicr_rates_2026,
230
+ author = {Boiko, Artem and DataDrivenConstruction},
231
+ title = {CWICR — Construction Works, Items, Costs \& Resources (30 Countries)},
232
+ year = {2026},
233
+ publisher = {Hugging Face},
234
+ url = {https://huggingface.co/datasets/DataDrivenConstruction/cwicr-construction-rates}
235
+ }
236
+ ```
237
+
238
+ ## Contact
239
+
240
+ - Source code & issue tracker: <https://github.com/datadrivenconstruction/OpenConstructionEstimate-DDC-CWICR>
241
+ - Author: Artem Boiko (DataDrivenConstruction)
242
+ - Email: boikoartem@gmail.com