c4rv3r j4ckofalltrades commited on
Commit
ebbd2cb
·
0 Parent(s):

Duplicate from bettergovph/dpwh-transparency-data

Browse files

Co-authored-by: Jordan Duabe <j4ckofalltrades@users.noreply.huggingface.co>

.gitattributes ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.lz4 filter=lfs diff=lfs merge=lfs -text
12
+ *.mds filter=lfs diff=lfs merge=lfs -text
13
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
14
+ *.model filter=lfs diff=lfs merge=lfs -text
15
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
16
+ *.npy filter=lfs diff=lfs merge=lfs -text
17
+ *.npz filter=lfs diff=lfs merge=lfs -text
18
+ *.onnx filter=lfs diff=lfs merge=lfs -text
19
+ *.ot filter=lfs diff=lfs merge=lfs -text
20
+ *.parquet filter=lfs diff=lfs merge=lfs -text
21
+ *.pb filter=lfs diff=lfs merge=lfs -text
22
+ *.pickle filter=lfs diff=lfs merge=lfs -text
23
+ *.pkl filter=lfs diff=lfs merge=lfs -text
24
+ *.pt filter=lfs diff=lfs merge=lfs -text
25
+ *.pth filter=lfs diff=lfs merge=lfs -text
26
+ *.rar filter=lfs diff=lfs merge=lfs -text
27
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
28
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
29
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
30
+ *.tar filter=lfs diff=lfs merge=lfs -text
31
+ *.tflite filter=lfs diff=lfs merge=lfs -text
32
+ *.tgz filter=lfs diff=lfs merge=lfs -text
33
+ *.wasm filter=lfs diff=lfs merge=lfs -text
34
+ *.xz filter=lfs diff=lfs merge=lfs -text
35
+ *.zip filter=lfs diff=lfs merge=lfs -text
36
+ *.zst filter=lfs diff=lfs merge=lfs -text
37
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
38
+ # Audio files - uncompressed
39
+ *.pcm filter=lfs diff=lfs merge=lfs -text
40
+ *.sam filter=lfs diff=lfs merge=lfs -text
41
+ *.raw filter=lfs diff=lfs merge=lfs -text
42
+ # Audio files - compressed
43
+ *.aac filter=lfs diff=lfs merge=lfs -text
44
+ *.flac filter=lfs diff=lfs merge=lfs -text
45
+ *.mp3 filter=lfs diff=lfs merge=lfs -text
46
+ *.ogg filter=lfs diff=lfs merge=lfs -text
47
+ *.wav filter=lfs diff=lfs merge=lfs -text
48
+ # Image files - uncompressed
49
+ *.bmp filter=lfs diff=lfs merge=lfs -text
50
+ *.gif filter=lfs diff=lfs merge=lfs -text
51
+ *.png filter=lfs diff=lfs merge=lfs -text
52
+ *.tiff filter=lfs diff=lfs merge=lfs -text
53
+ # Image files - compressed
54
+ *.jpg filter=lfs diff=lfs merge=lfs -text
55
+ *.jpeg filter=lfs diff=lfs merge=lfs -text
56
+ *.webp filter=lfs diff=lfs merge=lfs -text
57
+ # Video files - compressed
58
+ *.mp4 filter=lfs diff=lfs merge=lfs -text
59
+ *.webm filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,140 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: dpwh_transparency_data.parquet
21
+ ---
22
+
23
+ # DPWH Infrastructure Transparency Dataset
24
+
25
+ ## Dataset Description
26
+
27
+ 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.
28
+
29
+ ### Dataset Summary
30
+
31
+ The DPWH Infrastructure Transparency Dataset provides detailed records of infrastructure projects including:
32
+ - Contract and project identification
33
+ - Project descriptions and categorization
34
+ - Budget and financial tracking (budget allocation and amounts paid)
35
+ - Project progress and status monitoring
36
+ - Contractor information
37
+ - Temporal data (start dates, completion dates, infrastructure year)
38
+ - Funding sources and program details
39
+ - Livestream monitoring capabilities for select projects
40
+ - Geospatial coordinates (latitude/longitude)
41
+ - Regional and provincial location information
42
+ - Community engagement metrics (report counts)
43
+
44
+ This dataset is valuable for:
45
+ - Government transparency and accountability research
46
+ - Infrastructure project analysis and monitoring
47
+ - Budget allocation and spending pattern studies
48
+ - Geospatial analysis of public works distribution
49
+ - Contractor performance evaluation
50
+ - Project timeline and completion analysis
51
+
52
+ ### Supported Tasks
53
+
54
+ - **Tabular Classification**: Predict project status, category, or completion likelihood
55
+ - **Tabular Regression**: Predict project budgets, progress rates, or completion times
56
+ - **Geospatial Analysis**: Map infrastructure distribution across Philippine regions
57
+ - **Time Series Analysis**: Track project timelines and spending patterns
58
+
59
+ ### Languages
60
+
61
+ The dataset contains text primarily in English, with some project descriptions and location names in Filipino.
62
+
63
+ ## Dataset Structure
64
+
65
+ ### Data Fields
66
+
67
+ - `contractId` (string): Unique identifier for the contract
68
+ - `description` (string): Detailed description of the infrastructure project
69
+ - `category` (string): Main category of the infrastructure project
70
+ - `componentCategories` (string): Additional component categorizations
71
+ - `status` (string): Current status of the project
72
+ - `budget` (float64): Allocated budget for the project
73
+ - `amountPaid` (int64): Amount paid to date
74
+ - `progress` (float64): Project completion progress (0-100%)
75
+ - `location` (struct): Location information
76
+ - `province` (string): Province where project is located
77
+ - `region` (string): Administrative region
78
+ - `contractor` (string): Name of the contracting company
79
+ - `startDate` (date32): Project start date
80
+ - `completionDate` (date32): Scheduled or actual completion date
81
+ - `infraYear` (string): Infrastructure fiscal year
82
+ - `programName` (string): Associated government program
83
+ - `sourceOfFunds` (string): Funding source(s)
84
+ - `isLive` (bool): Whether project has livestream monitoring
85
+ - `livestreamUrl` (string): URL to livestream if available
86
+ - `livestreamVideoId` (string): Video identifier for livestream
87
+ - `livestreamDetectedAt` (string): Timestamp of livestream detection
88
+ - `latitude` (float64): Geographic latitude coordinate
89
+ - `longitude` (float64): Geographic longitude coordinate
90
+ - `reportCount` (int64): Number of reports or updates
91
+ - `hasSatelliteImage` (bool): Whether satellite imagery is available for this project
92
+
93
+ ### Data Splits
94
+
95
+ The dataset is provided as a single training split containing all available records.
96
+
97
+ ## Dataset Creation
98
+
99
+ ### Source Data
100
+
101
+ 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.
102
+
103
+ #### Initial Data Source
104
+
105
+ The original data is published by the Department of Public Works and Highways (DPWH) of the Philippines through their public transparency API:
106
+ - **Base API**: `https://api.transparency.dpwh.gov.ph/projects`
107
+ - **Contract Details API**: `https://api.transparency.dpwh.gov.ph/projects/{contractId}`
108
+
109
+ #### Data Collection
110
+
111
+ - **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)
112
+ - **Collection Methodology**: The scraper employed two approaches:
113
+ - **Pagination-Based Extraction**: Concurrent threading to fetch bulk project listings across multiple pages
114
+ - **Individual Contract Extraction**: Detailed retrieval for specific contracts using contract IDs
115
+ - **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
116
+ - **Annotation Process**: Data is provided as-is from government sources
117
+ - **Time Period**: Contains projects from various infrastructure years
118
+ - **Rate Limiting**: The DPWH API enforces approximately 300 requests per 10 minutes; data collection respects these limits
119
+
120
+ ### Personal and Sensitive Information
121
+
122
+ 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.
123
+
124
+ ## Considerations for Using the Data
125
+
126
+ ### Social Impact
127
+
128
+ This dataset supports government transparency and accountability by making infrastructure project data accessible for analysis and monitoring.
129
+
130
+ ## Additional Information
131
+
132
+ ### Licensing
133
+
134
+ 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.
135
+
136
+ ### Contributions
137
+
138
+ 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.
139
+
140
+ 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:5b411cf3f112fabd1913c70681791e5e2b78b43a8393f489f48bd882f154e123
3
+ size 24330129
dpwh_transparency_data_all_details.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:953f0bf99d162c062210219cc5f75c22df85049c24c0dae602c1f4dc976a7c97
3
+ size 114819143