Skip to content

Commit

Permalink
Schema and Data Refresh CL for congo_drc_demographics.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 598621841
  • Loading branch information
Data Commons authored and copybara-github committed Mar 26, 2024
1 parent b39202f commit c1fb644
Show file tree
Hide file tree
Showing 13 changed files with 6,149 additions and 160 deletions.
6 changes: 3 additions & 3 deletions core/WorldDevelopmentIndicators.mcf
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ description: "The activity of making, providing, purchasing, or selling goods or
Node: dcid:activitySource
name: "activitySource"
typeOf: schema:Property
domainIncludes: dcs:EconomicActivity
rangeIncludes: dcs:EconomicActivitySourceEnum
domainIncludes: dcs:EconomicActivity, dcid:Person, dcid:Debt
rangeIncludes: dcs:EconomicActivitySourceEnum, dcid:EnergyConsumptionSectorEnum, dcid:Production, dcid:Class
description: "The source of economic activity. For example, GDP & GNI."

Node: dcid:EconomicActivitySourceEnum
Expand Down Expand Up @@ -264,7 +264,7 @@ name: "medicalCondition"
typeOf: schema:Property
description: "A medical condition is a broad term that includes all diseases and disorders."
descriptionUrl: "https://en.wikipedia.org/wiki/Lists_of_diseases"
domainIncludes: schema:Person, dcs:Disease, dcs:WHO/PregnantWomen, dcs:MedicalConditionIncident
domainIncludes: schema:Person, dcs:Disease, dcs:WHO/PregnantWomen, dcs:MedicalConditionIncident, dcid:MortalityEvent
rangeIncludes: dcs:MedicalConditionIncidentTypeEnum, dcs:Disease, dcs:HealthOutcomeEnum, dcs:ICD10_113CausesOfDeath

Node: dcid:Alcohol
Expand Down
4 changes: 4 additions & 0 deletions core/census_enums.mcf
Original file line number Diff line number Diff line change
Expand Up @@ -2439,3 +2439,7 @@ Node: dcid:WorkedFromHome
typeOf: dcid:USC_CommuteModeEnum
description: "The worked from home mode has started from covid period and it is for a short time."
name: "WorkedFromHome"

Node: dcid:FirstBirth
typeOf: dcid:BirthEventStatusEnum
name: "First Birth"
4 changes: 3 additions & 1 deletion core/census_properties.mcf
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,8 @@ Node: typeOfSchool
dcid: "typeOfSchool"
name: "typeOfSchool"
typeOf: schema:Property
domainIncludes: dcid:School, dcid:ClassRoom, dcid:Student, dcid:Children, dcid:Teacher
rangeIncludes: dcid:PublicSchool, dcid:PrivateSchool

Node: veteranStatus
typeOf: schema:Property
Expand Down Expand Up @@ -389,7 +391,7 @@ Node: dcid:residentStatus
typeOf: schema:Property
name: "residentStatus"
description: "The status of a person's residence in a place, e.g. \"lived in the same house 1 year ago.\""
domainIncludes: dcs:Person
domainIncludes: dcs:Person, dcid:EconomicActivity
rangeIncludes: dcs:USC_ResidentStatusEnum, dcs:ResidentStatusEnum

Node: dcid:facilities
Expand Down
2 changes: 1 addition & 1 deletion core/climate.mcf
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ typeOf: dcs:LandCoverClassEnum
name: "Shrubland"

Node: dcid:Forest
typeOf: dcs:LandCoverClassEnum
typeOf: dcs:LandCoverClassEnum, dcid:EconomicActivitySourceEnum
name: "Forest"

Node: dcid:SnowIce
Expand Down
4 changes: 2 additions & 2 deletions core/currency.mcf
Original file line number Diff line number Diff line change
Expand Up @@ -1448,12 +1448,12 @@ Node: dcid:fromCurrency
typeOf: schema:Property
name: "fromCurrency"
description: "Exchange rate from currency."
domainIncludes: schema:Place
domainIncludes: schema:Place, dcid:Currency
rangeIncludes: dcs:Currency

Node: dcid:toCurrency
typeOf: schema:Property
name: "toCurrency"
description: "Exchange rate to currency."
domainIncludes: schema:Place
domainIncludes: schema:Place, dcid:Currency
rangeIncludes: dcs:Currency
232 changes: 84 additions & 148 deletions core/dcschema.mcf
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,7 @@ Node: dcid:grossDomesticProduct
typeOf: schema:Property
name: "grossDomesticProduct"
rangeIncludes: schema:MonetaryAmount
domainIncludes: schema:AdministrativeArea, dcs:NAICSEnum
domainIncludes: schema:AdministrativeArea, dcs:NAICSEnum, dcid:EconomicActivity
description: "Gross domestic product (GDP) is the monetary value of all the finished goods and services produced within a place in a specific time period"

Node: dcid:growthRate
Expand Down Expand Up @@ -1380,7 +1380,7 @@ Node: dcid:lendingEntity
typeOf: dcs:Property
name: "lendingEntity"
domainIncludes: dcid:Debt
rangeIncludes: dcid:LendingEntityEnum,dcid:Country
rangeIncludes: dcid:LendingEntityEnum,dcid:Country,dcid:DonationSourceEnum

Node: dcid:amountPrincipalRepayment
typeOf: dcs:Property
Expand Down Expand Up @@ -2936,8 +2936,8 @@ rangeIncludes: dcs:MedicalTestResultEnum
Node: dcid:economicSector
name: "economicSector"
typeOf: schema:Property
domainIncludes: schema:Person
rangeIncludes: dcs:NACEEnum, dcs:EconomicSectorEnum
domainIncludes: schema:Person, dcid:EconomicActivity
rangeIncludes: dcs:NACEEnum, dcs:EconomicSectorEnum, dcid:EmissionSourceEnum, dcid:EconomicActivitySourceEnum

Node: dcid:workPeriod
name: "workPeriod"
Expand Down Expand Up @@ -3449,7 +3449,8 @@ description: "Type of income a person received."
Node: dcid:incomeSource
typeOf: dcs:Property
name: "incomeSource"
rangeIncludes: dcs:IncomeSourceEnum
rangeIncludes: dcs:IncomeSourceEnum, dcid:EconomicActivitySourceEnum
domainIncludes: dcid:EconomicActivity
description: "Priority level of the job a person is getting an income from. A Main Job or All Jobs"

Node: dcid:consumerGoodsCategory
Expand Down Expand Up @@ -3817,164 +3818,99 @@ domainIncludes: dcs:StatisticalVariable
rangeIncludes: schema:StatisticalVariable
name: "denominatorForNormalization"
description: "Additional StatisticalVariable that can be used for normalizing this StatisticalVariable. If unspecified and `isNormalizable` is True, then `Count_Person` is the default."
Node: dcid:DRC_CasualPartners
typeOf: dcid:MaritalStatusEnum
name: "DRC_ Casual Partners"

Node: dcid:automaticRefreshSchedule
typeOf: schema:Property
domainIncludes: dcs:Provenance
rangeIncludes: schema:Text, dcs:FrequencyEnum
name: "automaticRefreshSchedule"
description: "Schedule for automatically updating a data import."

Node: dcid:automaticRefreshType
typeOf: schema:Property
domainIncludes: dcs:Provenance
rangeIncludes: dcs:AutomaticRefreshTypeEnum
name: "automaticRefreshType"
description: "Represents how a data import is automatically updated in Data Commons."
Node: dcid:DRC_FirstUnion
typeOf: dcid:MaritalStatusEnum
name: "DRC_ First Union"

Node: dcid:preResolutionDownloadPrefixDir
typeOf: schema:Property
domainIncludes: dcs:Provenance
rangeIncludes: dcs:Text
name: "preResolutionDownloadPrefixDir"
description: "Prefix of directory containing source files for auto-refresh."

Node: dcid:preResolutionDownloadVersionFile
typeOf: schema:Property
domainIncludes: dcs:Provenance
rangeIncludes: dcs:Text
name: "preResolutionDownloadVersionFile"
description: "Location of file containing the latest version directory name."

Node: dcid:provenanceCategory
typeOf: schema:Property
domainIncludes: dcs:Provenance
rangeIncludes: dcs:ProvenanceCategoryEnum
name: "provenanceCategory"
description: "Category of data in the provenance."

Node: dcid:dataBuildGroup
typeOf: schema:Property
domainIncludes: dcs:Provenance
rangeIncludes: dcs:DataBuildGroupEnum
name: "dataBuildGroup"
description: "The data build that a given data import is part of."

Node: dcid:earliestDataImportDate
typeOf: schema:Property
domainIncludes: dcs:Provenance
rangeIncludes: dcs:Text
name: "earliestDataImportDate"
description: "Date of the initial import into Data Commons for this provenance."
Node: dcid:inflationRate
typeOf: dcid:Property
name: "inflationRate"
domainIncludes: dcid:EconomicActivity

Node: dcid:processingMethod
typeOf: schema:Property
domainIncludes: dcs:Provenance
rangeIncludes: dcs:ProcessingMethodEnum
name: "processingMethod"
description: "Method by which the import artifacts were generated."
Node: dcid:priceIndex
typeOf: dcid:Property
name: "priceIndex"
domainIncludes: dcid:EconomicActivity, Household

Node: dcid:cachedSourceDataUrl
typeOf: schema:Property
domainIncludes: dcs:Provenance
rangeIncludes: dcs:Text
name: "cachedSourceDataUrl"
description: "Location of cached source data files."
Node: dcid:donationType
typeOf: dcid:Property
name: "donationType"
domainIncludes: dcid:EconomicActivity
rangeIncludes: dcid:DebtInstrumentEnum

Node: dcid:entityResolutionType
typeOf: schema:Property
domainIncludes: dcs:Provenance
rangeIncludes: dcs:EntityResolutionTypeEnum
name: "entityResolutionType"
description: "Type of entity resolution used for a data import."
Node: dcid:donationSource
typeOf: dcid:Property
name: "donationSource"
domainIncludes: dcid:EconomicActivity
rangeIncludes: dcid:DonationSourceEnum,Country

Node: dcid:lastDataRefreshDate
typeOf: schema:Property
domainIncludes: dcs:Provenance
rangeIncludes: dcs:Text
name: "lastDataRefreshDate"
description: "Most recent date of data refresh for the provenance."
Node: dcid:trade
typeOf: dcid:Property
name: "trade"
domainIncludes: dcid:EconomicActivity

Node: dcid:licenseAttribution
typeOf: schema:Property
domainIncludes: dcs:Provenance
rangeIncludes: dcs:Text
name: "licenseAttribution"
description: "Details about the license attribution for the provenance."
Node: dcid:amountDue
typeOf: dcid:Property
name: "amountDue"
domainIncludes: dcid:Debt

Node: dcid:licenseType
typeOf: schema:Property
domainIncludes: dcs:Provenance
rangeIncludes: dcs:LicenseTypeEnum
name: "licenseType"
description: "Type of data license for certain common types."
Node: dcid:amountService
typeOf: dcid:Property
name: "amountService"
domainIncludes: dcid:Debt

Node: dcid:nextDataRefreshDate
typeOf: schema:Property
domainIncludes: dcs:Provenance
rangeIncludes: dcs:Text
name: "nextDataRefreshDate"
description: "Date of next data refresh for importing from this provenance."
Node: dcid:arrears
typeOf: dcid:Property
name: "arrears"
domainIncludes: dcid:Debt

Node: dcid:resolvedTextMcfUrl
typeOf: schema:Property
domainIncludes: dcs:Provenance
rangeIncludes: dcs:Text
name: "resolvedTextMcfUrl"
description: "Location of text MCF files for the provenance that have been aligned with the Knowledge Graph."
Node: dcid:coverageRates
typeOf: dcid:Property
name: "coverageRates"
rangeIncludes: dcid:CoverageRatesEnum
domainIncludes: dcid:School

Node: dcid:resolvedProtoMcfUrl
typeOf: schema:Property
domainIncludes: dcs:Provenance
rangeIncludes: dcs:Text
name: "resolvedProtoMcfUrl"
description: "Location of resolved proto MCF files for the provenance."
Node: dcid:schoolManagementRegime
typeOf: dcid:Property
name: "schoolManagementRegime"
domainIncludes: School,dcid:ClassRoom,dcid:Establishment,dcid:Person,dcid:Children,dcid:Teacher,dcid:Student,dcid:Teachers
rangeIncludes: dcid:SchoolManagementRegimeEnum

Node: dcid:preResolutionCsvUrl
typeOf: schema:Property
domainIncludes: dcs:Provenance
rangeIncludes: dcs:Text
name: "preResolutionCsvUrl"
description: "Location of CSV files for the provenance that are not yet aligned with the Knowledge Graph."
Node: dcid:teachingExperience
typeOf: dcid:Property
name: "teachingExperience"
domainIncludes: Teacher,dcid:Person
rangeIncludes: dcid:TeachingExperienceEnum

Node: dcid:preResolutionTemplateMcfUrl
typeOf: schema:Property
domainIncludes: dcs:Provenance
rangeIncludes: dcs:Text
name: "preResolutionTemplateMcfUrl"
description: "Location of template-MCF files for the provenance."
Node: dcid:typeOfClassroom
typeOf: dcid:Property
name: "typeOfClassroom"
domainIncludes: dcid:ClassRoom
rangeIncludes: dcid:TypeOfClassroomEnum

Node: dcid:dataTransformationLogic
typeOf: schema:Property
domainIncludes: dcs:Provenance
rangeIncludes: dcs:Text
name: "dataTransformationLogic"
description: "Location of data transformation logic for importing the provenance."
Node: dcid:classroomCondition
typeOf: dcid:Property
name: "classroomCondition"
domainIncludes: dcid:ClassRoom
rangeIncludes: dcid:ClassroomConditionEnum

Node: dcid:nextSourceReleaseDate
typeOf: schema:Property
domainIncludes: dcs:Provenance
rangeIncludes: dcs:Text
name: "nextSourceReleaseDate"
description: "Date of next data release by the source."
Node: dcid:schoolEnrollment
typeOf: dcid:Property
name: "schoolEnrollment"
domainIncludes: Children,dcid:Student,dcid:Teachers

Node: dcid:importedSourceReleaseDate
typeOf: schema:Property
domainIncludes: dcs:Provenance
rangeIncludes: dcs:Text
name: "importedSourceReleaseDate"
description: "Date of current data release imported into Data Commons."
Node: dcid:typeOfActivity
typeOf: dcid:Property
name: "typeOfActivity"
domainIncludes: dcid:ClassRoom
rangeIncludes: dcid:TypeOfActivityEnum

Node: dcid:sourceReleaseFrequency
typeOf: schema:Property
domainIncludes: dcs:Provenance
rangeIncludes: dcs:FrequencyEnum
name: "sourceReleaseFrequency"
description: "Frequency of data release by the source."
Node: dcid:lethality
typeOf: dcid:Property
name: "lethality"
domainIncludes: dcid:MedicalConditionIncident

Node: dcid:sourceDataUrl
typeOf: schema:Property
domainIncludes: dcs:Provenance
rangeIncludes: dcs:Text
name: "sourceDataUrl"
description: "Location of source data to download."
Loading

0 comments on commit c1fb644

Please sign in to comment.