diff --git a/statvar_imports/SouthAfrica/Budget/README.md b/statvar_imports/SouthAfrica/Budget/README.md new file mode 100644 index 000000000..5625a66c4 --- /dev/null +++ b/statvar_imports/SouthAfrica/Budget/README.md @@ -0,0 +1,17 @@ +# ZAF - Budget Data + +- source: + +- how to download data: Manual download from source. + +- type of place: Metropolitan Municipality. + +- statvars: Economy + +- years: 2018 to 2023 + +- place_resolution: Resolved Metropolitan Municipality name to wikidata Id manually. + +### How to run: + +`python3 stat_var_processor.py --input_data=.csv --pv_map=statvar_imports/SouthAfrica/Budget/pv_map/_pvmap.csv --config=statvar_imports/SouthAfrica/Budget/ZAF_Budget_metadata.csv --output_path=--output_path=` diff --git a/statvar_imports/SouthAfrica/Budget/ZAF_Budget_metadata.csv b/statvar_imports/SouthAfrica/Budget/ZAF_Budget_metadata.csv new file mode 100644 index 000000000..43398ca83 --- /dev/null +++ b/statvar_imports/SouthAfrica/Budget/ZAF_Budget_metadata.csv @@ -0,0 +1,10 @@ +parameter,value +url, +description,South Africa coutry budget +start_date,2018 +end_date,2023 +release_frequency,Yearly +process, +comments, +output_columns,"observationAbout, observationDate, value, variableMeasured" +header_rows,1 diff --git a/statvar_imports/SouthAfrica/Budget/pv_map/ZAF_Budget_pvmap.csv b/statvar_imports/SouthAfrica/Budget/pv_map/ZAF_Budget_pvmap.csv new file mode 100644 index 000000000..670a0db8f --- /dev/null +++ b/statvar_imports/SouthAfrica/Budget/pv_map/ZAF_Budget_pvmap.csv @@ -0,0 +1,131 @@ +key,Prop,Value,,,,,, +Buffalo,observationAbout,wikidataId/Q1002006,observationDate,2018,populationType,EconomicActivity,, +revenuebysource,populationType,EconomicActivity,measuredProperty,revenue,,,, +PropertyRates,revenueSource,PropertyRate,measuredProperty,revenue,,,, +ServiceChargesElectricityRevenue,revenueSource,ElectricityServiceChargeRevenue,measuredProperty,revenue,,,, +ServiceChargesWaterRevenue,revenueSource,WaterServiceChargeRevenue,measuredProperty,revenue,,,, +ServiceChargesSanitationRevenue,revenueSource,SanitationServiceChargeRevenue,measuredProperty,revenue,,,, +ServiceChargesRefuseRevenue,revenueSource,RefuseServiceChargeRevenue,measuredProperty,revenue,,,, +ServiceChargesOther,revenueSource,ZA_OtherServiceCharge,measuredProperty,revenue,,,, +RentalOfFacilitiesAndEquipment,revenueSource,FacilityAndEquipmentRental,measuredProperty,revenue,,,, +InterestEarnedExternalInvestments,revenueSource,Interest,investmentSource,ExternalInvestment,measuredProperty,revenue,, +InterestEarnedOutstandingDebtors,revenueSource,Interest,investmentSource,OutstandingDebt,measuredProperty,revenue,, +DividendsReceived,revenueSource,Dividend,measuredProperty,revenue,,,, +FinesAndPenaltiesAndForfeits,revenueSource,FineOrPenaltyOrForfeit,measuredProperty,revenue,,,, +LicencesAndPermits,revenueSource,LicenceAndPermit,measuredProperty,revenue,,,, +AgencyServices,revenueSource,AgencyService,measuredProperty,revenue,,,, +OtherRevenue,revenueSource,ZA_OtherRevenue,measuredProperty,revenue,,,, +revenuebysource_TransfersAndSubsidies,revenueSource,TransferAndSubsidy,measuredProperty,revenue,,,, +GainsOnDisposalOfPPE,revenueSource,PPEDisposalGain,measuredProperty,revenue,,,, +TotalRevenueExcludingCapitalTransfersAndContributions,revenueSource,RevenueExcludingCapitalTransferAndContribution,measuredProperty,revenue,,,, +expenditurebytype,populationType,EconomicActivity,measuredProperty,expenditure,,,, +EmployeeRelatedCosts,expenditureType,EmployeeExpenditure,measuredProperty,expenditure,,,, +RemunerationOfCouncillors,expenditureType,CouncillorRemuneration,measuredProperty,expenditure,,,, +DebtImpairment,expenditureType,DebtImpairment,measuredProperty,expenditure,,,, +DepreciationAndAssetImpairment,expenditureType,DepreciationOrAssetImpairment,measuredProperty,expenditure,,,, +FinanceCharges,expenditureType,FinanceCharge,measuredProperty,expenditure,,,, +BulkPurchases,expenditureType,BulkPurchase,measuredProperty,expenditure,,,, +InventoryConsumed,expenditureType,InventoryConsumed,measuredProperty,expenditure,,,, +OtherMaterials,expenditureType,ZA_OtherMaterialExpenditure,measuredProperty,expenditure,,,, +ContractedServices,expenditureType,ContractedService,measuredProperty,expenditure,,,, +expenditurebytype_TransfersAndSubsidies,expenditureType,TransferAndSubsidy,measuredProperty,expenditure,,,, +OtherExpenditure,expenditureType,ZA_OtherExpenditure,measuredProperty,expenditure,,,, +LossOnDisposalOfPPE,expenditureType,PPEDisposalLoss,measuredProperty,expenditure,,,, +TotalExpenditure,measuredProperty,expenditure,,,,,, +TransfersAndSubsidiesRelatedToCapitalMonetaryAllocationsForNationalOrProvincialAndDistrict,measuredProperty,amount,activitySource,TransfersAndSubsidyCapitalNationalProvincialDistrict,,,, +TransfersAndSubsidiesCapitalRelatedToCapitalMonetaryAllocationsForNationalOrProvincialDepartmentalAgenciesAndHouseholdsAndNonProfitInstitutionsAndPrivateEnterprisesAndPublicCorporatonsAndHigherEducationalInstitutions,measuredProperty,amount,activitySource,TransfersAndSubsidyCapitalNationalProvincialAgency,,,, +TransfersAndSubsidiesrelatedToCapitalInKindAll,measuredProperty,amount,activitySource,TransfersAndSubsidyCapitalInKindAll,,,, +SurplusOrDeficitAfterCapitalTransfersAndContributions,measuredProperty,amount,activitySource,TransfersAndSubsidyCapital,,,, +ExecutiveSupportServices,economicSector,ExecutiveSupportService,value,{Number},#Multiply,1000,unit,ZAR +MunicipalManager,economicSector,MunicipalManagerService,value,{Number},#Multiply,1000,unit,ZAR +HumanSettlementsAndHousing,economicSector,HumanSettlementAndHousingSector,value,{Number},#Multiply,1000,unit,ZAR +ChiefFinancialOfficer,economicSector,ChiefFinancialOfficerService,value,{Number},#Multiply,1000,unit,ZAR +CorporateServices,economicSector,CorporateService,value,{Number},#Multiply,1000,unit,ZAR +InfrastructureServices,economicSector,InfrastructureService,value,{Number},#Multiply,1000,unit,ZAR +EconomicDevelopmentAndPlanning,economicSector,EconomicDevelopmentAndPlanningSector,value,{Number},#Multiply,1000,unit,ZAR +HealthOrPublicSafetyAndEmergency,economicSector,HealthService__PublicSafetyAndEmergencyService,value,{Number},#Multiply,1000,unit,ZAR +MunicipalServices,economicSector,MunicipalService,value,{Number},#Multiply,1000,unit,ZAR +EconomicDevelopmentAndAgencies,economicSector,EconomicDevelopmentAndAgency,value,{Number},#Multiply,1000,unit,ZAR +SolidWasteAndEnvironmentalAndHealthManagement,economicSector,SolidWasteOrEnvironmentalOrHealthManagement,value,{Number},#Multiply,1000,unit,ZAR +SportsAndRecreation,economicSector,SportAndRecreation,value,{Number},#Multiply,1000,unit,ZAR +Total,value,{Number},#Multiply,1000,unit,ZAR,, +AreaBasedServiceDelivery,economicSector,AreaBasedDeliveryService,value,{Number},#Multiply,1000,unit,ZAR +AssetsAndFacilitiesManagement,economicSector,AssetAndFacilityManagement,value,{Number},#Multiply,1000,unit,ZAR +OfficeOfTheCityManager,economicSector,OfficeCityManagerService,value,{Number},#Multiply,1000,unit,ZAR +Energy,economicSector,EnergyService,value,{Number},#Multiply,1000,unit,ZAR +Finance,economicSector,FinanceService,value,{Number},#Multiply,1000,unit,ZAR +InformalSettlementsWaterAndWasteServices,economicSector,InformalSettlementWaterAndWasteService,value,{Number},#Multiply,1000,unit,ZAR +SafetyAndSecurity,economicSector,SafetyAndSecurityService,value,{Number},#Multiply,1000,unit,ZAR +SocialServices,economicSector,SocialService,value,{Number},#Multiply,1000,unit,ZAR +TransportAndUrbanDevelopmentAuthority,economicSector,TransportAndUrbanDevelopmentAuthority,value,{Number},#Multiply,1000,unit,ZAR +SpatialPlanningAndEnvironment,economicSector,EnvironmentAndSpatialPlanning,value,{Number},#Multiply,1000,unit,ZAR +TransportPlanningAndProvisioning,economicSector,ProvisioningAndTransportPlanning,value,{Number},#Multiply,1000,unit,ZAR +UrbanManagement,economicSector,UrbanManagement,value,{Number},#Multiply,1000,unit,ZAR +WaterAndWaste,economicSector,WaterAndWasteService,value,{Number},#Multiply,1000,unit,ZAR +CommunityServicesAndHealth,economicSector,HealthService__CommunityService,value,{Number},#Multiply,1000,unit,ZAR +EconomicOpportunitiesAndAssetManagemnt,economicSector,EconomicOpportunityAndAssetManagement,value,{Number},#Multiply,1000,unit,ZAR +EnergyAndClimateChange,economicSector,EnergyAndClimateChangeSector,value,{Number},#Multiply,1000,unit,ZAR +FuturePlanningAndResilience,economicSector,FuturePlanningAndResilienceSector,value,{Number},#Multiply,1000,unit,ZAR +UrbanMobility,economicSector,UrbanMobilityService,value,{Number},#Multiply,1000,unit,ZAR +WaterAndSanitation,economicSector,WaterService__SanitationService,value,{Number},#Multiply,1000,unit,ZAR +EconomicGrowth,economicSector,EconomicGrowth,value,{Number},#Multiply,1000,unit,ZAR +ExecutiveAndCouncil,economicSector,ExecutiveOrCouncilSercive,value,{Number},#Multiply,1000,unit,ZAR +FinanceAndCorporateServices,economicSector,FinanceService__CorporateService,value,{Number},#Multiply,1000,unit,ZAR +WasteAndFleetManagement,economicSector,WasteAndFleetManagement,value,{Number},#Multiply,1000,unit,ZAR +CityPlanning,economicSector,CityPlanning,value,{Number},#Multiply,1000,unit,ZAR +EconomicDevelopment,economicSector,EconomicDevelopment,value,{Number},#Multiply,1000,unit,ZAR +DisasterAndEmergencyManagement,economicSector,DisasterOrEmergencyManagement,value,{Number},#Multiply,1000,unit,ZAR +HealthAndSocialDevelopment,economicSector,HealthService__SocialDevelopment,value,{Number},#Multiply,1000,unit,ZAR +EnvironmentalResourceManagement,economicSector,EnvironmentalResourceManagement,value,{Number},#Multiply,1000,unit,ZAR +MetroPolice,economicSector,MetroPoliceService,value,{Number},#Multiply,1000,unit,ZAR +RoadsAndStormwater,economicSector,RoadOrStormwater,value,{Number},#Multiply,1000,unit,ZAR +Other,economicSector,ZA_OtherService,value,{Number},#Multiply,1000,unit,ZAR +CityManagerOperations,economicSector,CityManagerOperation,value,{Number},#Multiply,1000,unit,ZAR +OfficeOfTheStrategicManagement,economicSector,StrategicManagementOffice,value,{Number},#Multiply,1000,unit,ZAR +Governance,economicSector,Governance,value,{Number},#Multiply,1000,unit,ZAR +CorporateAndHumanServices,economicSector,CorporateAndHumanService,value,{Number},#Multiply,1000,unit,ZAR +CommunityAndEmergencyServices,economicSector,CommunityAndEmergencyService,value,{Number},#Multiply,1000,unit,ZAR +TradingServices,economicSector,TradingService,value,{Number},#Multiply,1000,unit,ZAR +DurbanICC,economicSector,DurbanICC,value,{Number},#Multiply,1000,unit,ZAR +UshakaMarine,economicSector,UshakaMarine,value,{Number},#Multiply,1000,unit,ZAR +CommunityDevelopment,economicSector,CommunityDevelopment,value,{Number},#Multiply,1000,unit,ZAR +HealthDepartment,economicSector,HealthDepartment,value,{Number},#Multiply,1000,unit,ZAR +SocialDevelopment,economicSector,SocialDevelopment,value,{Number},#Multiply,1000,unit,ZAR +ForensicInvestigationServices,economicSector,ForensicInvestigationService,value,{Number},#Multiply,1000,unit,ZAR +OfficeOfTheOmbudsman,economicSector,OmbudsmanOffice,value,{Number},#Multiply,1000,unit,ZAR +SpeakerLegislativeArmOfCouncil,economicSector,SpeakerLegislativeArmOfCouncilService,value,{Number},#Multiply,1000,unit,ZAR +InformationAndCommunicationTechnology,economicSector,InformationAndCommunicationTechnology,value,{Number},#Multiply,1000,unit,ZAR +CorporateAndSharedServices,economicSector,CorporateAndSharedService,value,{Number},#Multiply,1000,unit,ZAR +DevelopmentPlanning,economicSector,DevelopmentPlanning,value,{Number},#Multiply,1000,unit,ZAR +MunicipalEntitiesAccounts,economicSector,MunicipalEntitiesAccount,value,{Number},#Multiply,1000,unit,ZAR +Electricty,economicSector,ElectricitySector,value,{Number},#Multiply,1000,unit,ZAR +Water,economicSector,WaterService,value,{Number},#Multiply,1000,unit,ZAR +RoadsAndTransportDepartment,economicSector,RoadsAndTransportDepartment,value,{Number},#Multiply,1000,unit,ZAR +Metrobus,economicSector,MetrobusService,value,{Number},#Multiply,1000,unit,ZAR +JohannesburgCityParksAndZoo,economicSector,JohannesburgCityParksAndZooService,value,{Number},#Multiply,1000,unit,ZAR +JohannesburgDevelopmentAgency,economicSector,JohannesburgDevelopmentAgency,value,{Number},#Multiply,1000,unit,ZAR +PropertyManagementDepartment,economicSector,PropertyManagementDepartment,value,{Number},#Multiply,1000,unit,ZAR +MetropolitanTradingCompany,economicSector,MetropolitanTradingCompany,value,{Number},#Multiply,1000,unit,ZAR +JoburgMarket,economicSector,JoburgMarket,value,{Number},#Multiply,1000,unit,ZAR +JohannesburgSocialHousingCompany,economicSector,JohannesburgSocialHousingCompany,value,{Number},#Multiply,1000,unit,ZAR +JoburgCityTheatres,economicSector,JoburgCityTheatre,value,{Number},#Multiply,1000,unit,ZAR +JohannesburgTourismCompany,economicSector,JohannesburgTourismCompany,value,{Number},#Multiply,1000,unit,ZAR +OfficeOfTheExecutiveMayor,economicSector,ExecutiveMayorOfficeService,value,{Number},#Multiply,1000,unit,ZAR +Engineering,economicSector,EngineeringService,value,{Number},#Multiply,1000,unit,ZAR +Miscellaneous,economicSector,ZA_MiscellaneousService,value,{Number},#Multiply,1000,unit,ZAR +NalediAndSoutpan,economicSector,NalediAndSoutpan,value,{Number},#Multiply,1000,unit,ZAR +StrategicProjects,economicSector,StrategicProject,value,{Number},#Multiply,1000,unit,ZAR +CommunityAndSocialDevelopmentServiceDepartment,economicSector,CommunityAndSocialDevelopmentServiceDepartment,value,{Number},#Multiply,1000,unit,ZAR +EmergencyServicesDepartment,economicSector,EmergencyServicesDepartment,value,{Number},#Multiply,1000,unit,ZAR +EnvironmentAndAgricultureManagementDepartment,economicSector,EnvironmentAndAgricultureManagementDepartment,value,{Number},#Multiply,1000,unit,ZAR +AuditAndRiskDepartment,economicSector,AuditAndRiskDepartment,value,{Number},#Multiply,1000,unit,ZAR +RegionalOperationsAndCoordinationDepartment,economicSector,RegionalOperationsAndCoordinationDepartment,value,{Number},#Multiply,1000,unit,ZAR +SharedServicesDepartment,economicSector,SharedServicesDepartment,value,{Number},#Multiply,1000,unit,ZAR +UtilityServicesDepartment,economicSector,UtilityServicesDepartment,value,{Number},#Multiply,1000,unit,ZAR +EconomicDevelopmentTourismAndAgriculture,economicSector,EconomicDevelopmentTourismAndAgriculture,value,{Number},#Multiply,1000,unit,ZAR +InfrastructureAndEngineeringUnit,economicSector,InfrastructureService__EngineeringService,value,{Number},#Multiply,1000,unit,ZAR +Sanitation,economicSector,SanitationService,value,{Number},#Multiply,1000,unit,ZAR +ElectricityAndEnergy,economicSector,ElectricitySector__EnergySector,value,{Number},#Multiply,1000,unit,ZAR +MandelaBayStadium,economicSector,MandelaBayStadium,value,{Number},#Multiply,1000,unit,ZAR +SpecialProjectsAndProgrammes,economicSector,SpecialProjectAndProgram,value,{Number},#Multiply,1000,unit,ZAR +BudgetAndTreasury,economicSector,BudgetAndTreasury,value,{Number},#Multiply,1000,unit,ZAR \ No newline at end of file