j4ckofalltrades commited on
Commit
dfea2ca
·
verified ·
1 Parent(s): 05fa9c2

Add dataset

Browse files
Files changed (2) hide show
  1. README.md +195 -3
  2. dpwh_transparency_data.parquet +3 -0
README.md CHANGED
@@ -1,3 +1,195 @@
1
- ---
2
- license: cc0-1.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: cc0-1.0
5
+ tags:
6
+ - government
7
+ - infrastructure
8
+ - transparency
9
+ - philippines
10
+ - public-works
11
+ - geospatial
12
+ pretty_name: DPWH Infrastructure Transparency Dataset
13
+ size_categories:
14
+ - 1K<n<10K
15
+ task_categories:
16
+ - tabular-classification
17
+ - tabular-regression
18
+ configs:
19
+ - config_name: default
20
+ data_files:
21
+ - split: train
22
+ path: dpwh_transparency_data.parquet
23
+
24
+ dataset_info:
25
+ features:
26
+ - name: contractId
27
+ dtype: string
28
+ - name: description
29
+ dtype: string
30
+ - name: category
31
+ dtype: string
32
+ - name: componentCategories
33
+ dtype: string
34
+ - name: status
35
+ dtype: string
36
+ - name: budget
37
+ dtype: float64
38
+ - name: amountPaid
39
+ dtype: int64
40
+ - name: progress
41
+ dtype: float64
42
+ - name: contractor
43
+ dtype: string
44
+ - name: startDate
45
+ dtype: string
46
+ - name: completionDate
47
+ dtype: string
48
+ - name: infraYear
49
+ dtype: string
50
+ - name: programName
51
+ dtype: string
52
+ - name: sourceOfFunds
53
+ dtype: string
54
+ - name: isLive
55
+ dtype: bool
56
+ - name: livestreamUrl
57
+ dtype: string
58
+ - name: livestreamVideoId
59
+ dtype: string
60
+ - name: livestreamDetectedAt
61
+ dtype: string
62
+ - name: latitude
63
+ dtype: float64
64
+ - name: longitude
65
+ dtype: float64
66
+ - name: reportCount
67
+ dtype: int64
68
+ - name: location_province
69
+ dtype: string
70
+ - name: location_region
71
+ dtype: string
72
+ config_name: default
73
+ splits:
74
+ - name: train
75
+ num_bytes: 20785587
76
+ download_size: 20785587
77
+ dataset_size: 20785587
78
+ ---
79
+
80
+ # DPWH Infrastructure Transparency Dataset
81
+
82
+ ## Dataset Description
83
+
84
+ This dataset contains comprehensive information about infrastructure projects from the Department of Public Works and Highways (DPWH) of the Philippines. The data is sourced from DPWH's transparency initiatives and includes detailed information about public works contracts, budgets, progress tracking, and geospatial data.
85
+
86
+ ### Dataset Summary
87
+
88
+ The DPWH Infrastructure Transparency Dataset provides detailed records of infrastructure projects including:
89
+ - Contract and project identification
90
+ - Project descriptions and categorization
91
+ - Budget and financial tracking (budget allocation and amounts paid)
92
+ - Project progress and status monitoring
93
+ - Contractor information
94
+ - Temporal data (start dates, completion dates, infrastructure year)
95
+ - Funding sources and program details
96
+ - Livestream monitoring capabilities for select projects
97
+ - Geospatial coordinates (latitude/longitude)
98
+ - Regional and provincial location information
99
+ - Community engagement metrics (report counts)
100
+
101
+ This dataset is valuable for:
102
+ - Government transparency and accountability research
103
+ - Infrastructure project analysis and monitoring
104
+ - Budget allocation and spending pattern studies
105
+ - Geospatial analysis of public works distribution
106
+ - Contractor performance evaluation
107
+ - Project timeline and completion analysis
108
+
109
+ ### Supported Tasks
110
+
111
+ - **Tabular Classification**: Predict project status, category, or completion likelihood
112
+ - **Tabular Regression**: Predict project budgets, progress rates, or completion times
113
+ - **Geospatial Analysis**: Map infrastructure distribution across Philippine regions
114
+ - **Time Series Analysis**: Track project timelines and spending patterns
115
+
116
+ ### Languages
117
+
118
+ The dataset contains text primarily in English, with some project descriptions and location names in Filipino.
119
+
120
+ ## Dataset Structure
121
+
122
+ ### Data Fields
123
+
124
+ - `contractId` (string): Unique identifier for the contract
125
+ - `description` (string): Detailed description of the infrastructure project
126
+ - `category` (string): Main category of the infrastructure project
127
+ - `componentCategories` (string): Additional component categorizations
128
+ - `status` (string): Current status of the project
129
+ - `budget` (float64): Allocated budget for the project
130
+ - `amountPaid` (int64): Amount paid to date
131
+ - `progress` (float64): Project completion progress (0-100%)
132
+ - `contractor` (string): Name of the contracting company
133
+ - `startDate` (string): Project start date
134
+ - `completionDate` (string): Scheduled or actual completion date
135
+ - `infraYear` (string): Infrastructure fiscal year
136
+ - `programName` (string): Associated government program
137
+ - `sourceOfFunds` (string): Funding source(s)
138
+ - `isLive` (bool): Whether project has livestream monitoring
139
+ - `livestreamUrl` (string): URL to livestream if available
140
+ - `livestreamVideoId` (string): Video identifier for livestream
141
+ - `livestreamDetectedAt` (string): Timestamp of livestream detection
142
+ - `latitude` (float64): Geographic latitude coordinate
143
+ - `longitude` (float64): Geographic longitude coordinate
144
+ - `reportCount` (int64): Number of reports or updates
145
+ - `location_province` (string): Province where project is located
146
+ - `location_region` (string): Administrative region
147
+
148
+ ### Data Splits
149
+
150
+ The dataset is provided as a single training split containing all available records.
151
+
152
+ ## Dataset Creation
153
+
154
+ ### Source Data
155
+
156
+ This dataset aggregates data from the **DPWH Transparency Portal** (https://transparency.dpwh.gov.ph/), the official transparency platform of the Philippine Department of Public Works and Highways.
157
+
158
+ #### Initial Data Source
159
+
160
+ The original data is published by the Department of Public Works and Highways (DPWH) of the Philippines through their public transparency API:
161
+ - **Base API**: `https://api.transparency.dpwh.gov.ph/projects`
162
+ - **Contract Details API**: `https://api.transparency.dpwh.gov.ph/projects/{contractId}`
163
+
164
+ #### Data Collection
165
+
166
+ - **Collection Process**: Data was extracted using the [dpwh-transparency-data-api-scraper](https://github.com/csiiiv/dpwh-transparency-data-api-scraper) by [@csiiiv](https://github.com/csiiiv)
167
+ - **Collection Methodology**: The scraper employed two approaches:
168
+ - **Pagination-Based Extraction**: Concurrent threading to fetch bulk project listings across multiple pages
169
+ - **Individual Contract Extraction**: Detailed retrieval for specific contracts using contract IDs
170
+ - **Technical Implementation**: Uses curl-cffi with 70+ browser TLS fingerprints (Chrome, Firefox, Safari, Edge, Opera variants) to diversify request signatures, with intelligent retry logic and rate-limit detection
171
+ - **Annotation Process**: Data is provided as-is from government sources
172
+ - **Time Period**: Contains projects from various infrastructure years
173
+ - **Rate Limiting**: The DPWH API enforces approximately 300 requests per 10 minutes; data collection respects these limits
174
+
175
+ ### Personal and Sensitive Information
176
+
177
+ The dataset contains information about government contractors and public infrastructure projects. All information is from public government transparency portals. No personal information about private citizens is included.
178
+
179
+ ## Considerations for Using the Data
180
+
181
+ ### Social Impact
182
+
183
+ This dataset supports government transparency and accountability by making infrastructure project data accessible for analysis and monitoring.
184
+
185
+ ## Additional Information
186
+
187
+ ### Licensing
188
+
189
+ This dataset is licensed under the [CC0 1.0 Universal](https://creativecommons.org/publicdomain/zero/1.0/) license. This means you can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.
190
+
191
+ ### Contributions
192
+
193
+ Data sourced from the Philippine Department of Public Works and Highways (DPWH) [Transparency Portal](https://transparency.dpwh.gov.ph/). Dataset compiled and formatted for research and analysis purposes.
194
+
195
+ Special thanks to [@csiiiv](https://github.com/csiiiv) for developing the [dpwh-transparency-data-api-scraper](https://github.com/csiiiv/dpwh-transparency-data-api-scraper) tool that enabled systematic data collection from the DPWH Transparency API.
dpwh_transparency_data.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:08ebf7d0711f6d75e3af804841deffd01fdcfcb8f38f2fc91e9dd531aa279e77
3
+ size 20785587