{
 "projects": {
  "title": "DPWH infrastructure projects (one row per canonical contract; re-imported duplicates removed)",
  "source": "DPWH Transparency portal (https://transparency.dpwh.gov.ph) via bettergovph/dpwh-transparency-data; locations computed by lovethephilippines.com",
  "license": "CC BY 4.0",
  "columns": [
   {
    "name": "id",
    "type": "uuid",
    "description": "Stable project id on lovethephilippines.com"
   },
   {
    "name": "dpwh_contract_id",
    "type": "text",
    "description": "DPWH contract id"
   },
   {
    "name": "title",
    "type": "text",
    "description": "Project title as published by DPWH"
   },
   {
    "name": "type_of_work",
    "type": "text",
    "description": "DPWH type of work"
   },
   {
    "name": "cost_php",
    "type": "number",
    "description": "Contract cost in PHP"
   },
   {
    "name": "progress_pct",
    "type": "integer",
    "description": "Reported physical progress %"
   },
   {
    "name": "status",
    "type": "text",
    "description": "DPWH status (e.g. Completed, On-Going)"
   },
   {
    "name": "infra_year",
    "type": "text",
    "description": "DPWH infra year"
   },
   {
    "name": "start_date",
    "type": "date",
    "description": "Start date"
   },
   {
    "name": "target_end_date",
    "type": "date",
    "description": "Target completion"
   },
   {
    "name": "actual_end_date",
    "type": "date",
    "description": "Actual completion if reported"
   },
   {
    "name": "contractor_org_id",
    "type": "uuid",
    "description": "Contractor organization id"
   },
   {
    "name": "contractor_name",
    "type": "text",
    "description": "Contractor (firm-like names only; personal-looking names blanked)"
   },
   {
    "name": "region_name",
    "type": "text",
    "description": "DPWH region label"
   },
   {
    "name": "province_name",
    "type": "text",
    "description": "DPWH province label"
   },
   {
    "name": "region_psgc",
    "type": "text",
    "description": "PSGC region code"
   },
   {
    "name": "province_psgc",
    "type": "text",
    "description": "PSGC province code"
   },
   {
    "name": "citymun_psgc",
    "type": "text",
    "description": "PSGC city/municipality code"
   },
   {
    "name": "lat",
    "type": "number",
    "description": "Latitude"
   },
   {
    "name": "lon",
    "type": "number",
    "description": "Longitude"
   },
   {
    "name": "citation",
    "type": "text",
    "description": "Source citation"
   },
   {
    "name": "source_url",
    "type": "text",
    "description": "DPWH portal page for the contract"
   },
   {
    "name": "page_url",
    "type": "text",
    "description": "Page on lovethephilippines.com"
   }
  ]
 },
 "contractors": {
  "title": "Contractor record-completeness grades (companies and JVs only)",
  "source": "DPWH contract records; grade method at https://lovethephilippines.com/methodology",
  "license": "CC BY 4.0",
  "columns": [
   {
    "name": "id",
    "type": "uuid",
    "description": "Organization id"
   },
   {
    "name": "name",
    "type": "text",
    "description": "Registered/normalized firm name (personal-looking names blanked)"
   },
   {
    "name": "type",
    "type": "text",
    "description": "company or jv"
   },
   {
    "name": "project_count",
    "type": "integer",
    "description": "Linked DPWH projects"
   },
   {
    "name": "grade_status",
    "type": "text",
    "description": "Grade status"
   },
   {
    "name": "letter_grade",
    "type": "text",
    "description": "A-F record grade (not an integrity rating)"
   },
   {
    "name": "score",
    "type": "number",
    "description": "Score 0-100"
   },
   {
    "name": "refreshed_on",
    "type": "date",
    "description": "When the grade was computed"
   },
   {
    "name": "page_url",
    "type": "text",
    "description": "Page on lovethephilippines.com"
   }
  ]
 },
 "indicators": {
  "title": "Published anomaly indicators (statistical anomalies, not findings or accusations)",
  "source": "Rules documented at https://lovethephilippines.com/methodology; each row cites its source records",
  "license": "CC BY 4.0",
  "columns": [
   {
    "name": "id",
    "type": "uuid",
    "description": "Indicator id"
   },
   {
    "name": "rule_id",
    "type": "text",
    "description": "Rule id"
   },
   {
    "name": "subject_type",
    "type": "text",
    "description": "project, agency_award, organization, office, procuring_office"
   },
   {
    "name": "subject_id",
    "type": "uuid",
    "description": "Subject record id"
   },
   {
    "name": "severity",
    "type": "integer",
    "description": "Severity 1-5 (anomaly strength, not guilt)"
   },
   {
    "name": "published_at",
    "type": "timestamp",
    "description": "Publication time (UTC)"
   },
   {
    "name": "claim",
    "type": "text",
    "description": "One-line description of the anomaly"
   },
   {
    "name": "explanation",
    "type": "text",
    "description": "Plain explanation"
   },
   {
    "name": "sources",
    "type": "json",
    "description": "Cited source records/URLs"
   },
   {
    "name": "region_psgc",
    "type": "text",
    "description": "Region of the subject project (project indicators only)"
   },
   {
    "name": "province_psgc",
    "type": "text",
    "description": "Province (project indicators only)"
   },
   {
    "name": "citymun_psgc",
    "type": "text",
    "description": "City/municipality (project indicators only)"
   },
   {
    "name": "url",
    "type": "text",
    "description": "Indicator page with right-of-reply link"
   }
  ]
 },
 "lgu_summaries": {
  "title": "All PSGC LGUs (region to barangay) with linked public-record stats",
  "source": "PSA PSGC publication datafile (https://psa.gov.ph/classification/psgc); stats from DPWH/PhilGEPS records",
  "license": "CC BY 4.0",
  "columns": [
   {
    "name": "psgc",
    "type": "text",
    "description": "10-digit PSGC code"
   },
   {
    "name": "name",
    "type": "text",
    "description": "LGU name"
   },
   {
    "name": "level",
    "type": "text",
    "description": "Reg/Prov/City/Mun/SubMun/Bgy"
   },
   {
    "name": "parent_psgc",
    "type": "text",
    "description": "Parent LGU"
   },
   {
    "name": "region_psgc",
    "type": "text",
    "description": "Region"
   },
   {
    "name": "province_psgc",
    "type": "text",
    "description": "Province"
   },
   {
    "name": "city_psgc",
    "type": "text",
    "description": "City/municipality (barangays)"
   },
   {
    "name": "income_class",
    "type": "text",
    "description": "Income class"
   },
   {
    "name": "population_2024",
    "type": "integer",
    "description": "2024 POPCEN population (PSA)"
   },
   {
    "name": "psgc_release",
    "type": "text",
    "description": "PSGC release"
   },
   {
    "name": "stats_basis",
    "type": "text",
    "description": "How records were linked"
   },
   {
    "name": "project_count",
    "type": "integer",
    "description": "Linked DPWH projects"
   },
   {
    "name": "project_total_php",
    "type": "number",
    "description": "Their total cost"
   },
   {
    "name": "completed_count",
    "type": "integer",
    "description": "Completed"
   },
   {
    "name": "flood_count",
    "type": "integer",
    "description": "Flood-control projects"
   },
   {
    "name": "published_flag_count",
    "type": "integer",
    "description": "Published anomaly indicators"
   },
   {
    "name": "award_count",
    "type": "integer",
    "description": "PhilGEPS awards"
   },
   {
    "name": "award_total_php",
    "type": "number",
    "description": "Award total"
   },
   {
    "name": "page_url",
    "type": "text",
    "description": "Page on lovethephilippines.com"
   }
  ]
 },
 "districts": {
  "title": "Congressional district FY2027 NEP vs HB 10858 DPWH office summaries",
  "source": "FY2027 NEP (DBM) and HB 10858 (House) PDFs; page citations on each district page",
  "license": "CC BY 4.0",
  "columns": [
   {
    "name": "slug",
    "type": "text",
    "description": "District slug"
   },
   {
    "name": "name",
    "type": "text",
    "description": "District"
   },
   {
    "name": "region",
    "type": "text",
    "description": "Region"
   },
   {
    "name": "province",
    "type": "text",
    "description": "Province"
   },
   {
    "name": "office",
    "type": "text",
    "description": "DPWH engineering office"
   },
   {
    "name": "hb_items",
    "type": "integer",
    "description": "HB 10858 line items"
   },
   {
    "name": "hb_total_php",
    "type": "number",
    "description": "HB 10858 total"
   },
   {
    "name": "nep_total_php",
    "type": "number",
    "description": "NEP total"
   },
   {
    "name": "added_items",
    "type": "integer",
    "description": "Items added vs NEP"
   },
   {
    "name": "added_total_php",
    "type": "number",
    "description": "Added amount"
   },
   {
    "name": "increased",
    "type": "integer",
    "description": "Items increased"
   },
   {
    "name": "decreased",
    "type": "integer",
    "description": "Items decreased"
   },
   {
    "name": "dropped",
    "type": "integer",
    "description": "Items dropped"
   },
   {
    "name": "past_projects",
    "type": "integer",
    "description": "Past DPWH projects of the office"
   },
   {
    "name": "flagged",
    "type": "integer",
    "description": "Of which with published indicators"
   },
   {
    "name": "page_url",
    "type": "text",
    "description": "District page"
   }
  ]
 }
}