Skip to content

Commit

Permalink
Schema CL and Data Manifest CL for Two Way Trade (import and export) …
Browse files Browse the repository at this point in the history
…between US and different countries annually for different years.

PiperOrigin-RevId: 584823973
  • Loading branch information
Data Commons authored and copybara-github committed Nov 23, 2023
1 parent 69f6daa commit 7e116a8
Show file tree
Hide file tree
Showing 3 changed files with 326 additions and 1 deletion.
6 changes: 6 additions & 0 deletions core/energy.mcf
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,12 @@ rangeIncludes: schema:Quantity
domainIncludes: schema:Electricity, schema:Energy, schema:Fuel
name: "exports"

###US ITA Addition
Node: dcid:tradePartner
typeOf: dcs:Property
name: "tradePartner"
rangeIncludes: dcid:Country

Node: dcid:reserves
typeOf: schema:Property
rangeIncludes: schema:Quantity
Expand Down
8 changes: 7 additions & 1 deletion core/wto_trade_schema.mcf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Node: dcid:product
typeOf: dcs:Property
name: "product"
domainIncludes: dcid:EconomicActivity
rangeIncludes: dcid:ProductEnum,dcid:FarmInventoryTypeEnum
rangeIncludes: dcid:ProductEnum,dcid:FarmInventoryTypeEnum,dcid:EconomicActivity
isProvisional: dcs:True

Node: dcid:ProductEnum
Expand Down Expand Up @@ -30,6 +30,12 @@ domainIncludes: dcid:EconomicActivity
rangeIncludes: dcid:Country,dcid:Place,dcid:ContinentalUnion
isProvisional: dcs:True

###US ITA Addition
Node: dcid:tradePartner
typeOf: dcs:Property
name: "tradePartner"
rangeIncludes: dcid:Country

Node: dcid:RestOfTheWorld
typeOf: dcid:Country
name: "RestOfTheWorld"
Expand Down
313 changes: 313 additions & 0 deletions stat_vars/us_ita_two_way_trade.mcf
Original file line number Diff line number Diff line change
@@ -0,0 +1,313 @@
Node: dcid:Annual_TwoWayTrade_EconomicActivity_CountryUSA
typeOf: dcid:StatisticalVariable
populationType: dcid:EconomicActivity
measuredProperty: dcid:twoWayTrade
measurementQualifier: dcid:Annual
statType: dcid:measuredValue
tradePartner: dcid:country/USA

Node: dcid:Annual_TwoWayTrade_EconomicActivity_AgriculturalProducts_CountryUSA
typeOf: dcid:StatisticalVariable
populationType: dcid:EconomicActivity
measuredProperty: dcid:twoWayTrade
measurementQualifier: dcid:Annual
statType: dcid:measuredValue
product: dcid:AgriculturalProducts
tradePartner: dcid:country/USA

Node: dcid:Annual_TwoWayTrade_EconomicActivity_LiveStockProduct_CountryUSA
typeOf: dcid:StatisticalVariable
populationType: dcid:EconomicActivity
measuredProperty: dcid:twoWayTrade
measurementQualifier: dcid:Annual
statType: dcid:measuredValue
product: dcid:LiveStockProduct
tradePartner: dcid:country/USA

Node: dcid:Annual_TwoWayTrade_EconomicActivity_ForestryProduct_CountryUSA
typeOf: dcid:StatisticalVariable
populationType: dcid:EconomicActivity
measuredProperty: dcid:twoWayTrade
measurementQualifier: dcid:Annual
statType: dcid:measuredValue
product: dcid:ForestryProduct
tradePartner: dcid:country/USA

Node: dcid:Annual_TwoWayTrade_EconomicActivity_FishProductOrOtherMarineProduct_CountryUSA
typeOf: dcid:StatisticalVariable
populationType: dcid:EconomicActivity
measuredProperty: dcid:twoWayTrade
measurementQualifier: dcid:Annual
statType: dcid:measuredValue
product: dcid:FishProduct__OtherMarineProduct
tradePartner: dcid:country/USA

Node: dcid:Annual_TwoWayTrade_EconomicActivity_AgricultureForestrySupportingProduct_CountryUSA
typeOf: dcid:StatisticalVariable
populationType: dcid:EconomicActivity
measuredProperty: dcid:twoWayTrade
measurementQualifier: dcid:Annual
statType: dcid:measuredValue
product: dcid:AgricultureForestrySupportingProduct
tradePartner: dcid:country/USA

Node: dcid:Annual_TwoWayTrade_EconomicActivity_OilOrGas_CountryUSA
typeOf: dcid:StatisticalVariable
populationType: dcid:EconomicActivity
measuredProperty: dcid:twoWayTrade
measurementQualifier: dcid:Annual
statType: dcid:measuredValue
product: dcid:Oil__Gas
tradePartner: dcid:country/USA

Node: dcid:Annual_TwoWayTrade_EconomicActivity_MineralsOrOres_CountryUSA
typeOf: dcid:StatisticalVariable
populationType: dcid:EconomicActivity
measuredProperty: dcid:twoWayTrade
measurementQualifier: dcid:Annual
statType: dcid:measuredValue
product: dcid:Minerals__Ores
tradePartner: dcid:country/USA

Node: dcid:Annual_TwoWayTrade_EconomicActivity_ProcessedFood_CountryUSA
typeOf: dcid:StatisticalVariable
populationType: dcid:EconomicActivity
measuredProperty: dcid:twoWayTrade
measurementQualifier: dcid:Annual
statType: dcid:measuredValue
product: dcid:ProcessedFood
tradePartner: dcid:country/USA

Node: dcid:Annual_TwoWayTrade_EconomicActivity_BeveragesAndTobaccoProduct_CountryUSA
typeOf: dcid:StatisticalVariable
populationType: dcid:EconomicActivity
measuredProperty: dcid:twoWayTrade
measurementQualifier: dcid:Annual
statType: dcid:measuredValue
product: dcid:BeveragesAndTobaccoProduct
tradePartner: dcid:country/USA

Node: dcid:Annual_TwoWayTrade_EconomicActivity_TextileAndFabric_CountryUSA
typeOf: dcid:StatisticalVariable
populationType: dcid:EconomicActivity
measuredProperty: dcid:twoWayTrade
measurementQualifier: dcid:Annual
statType: dcid:measuredValue
product: dcid:TextileAndFabric
tradePartner: dcid:country/USA

Node: dcid:Annual_TwoWayTrade_EconomicActivity_TextileMillProduct_CountryUSA
typeOf: dcid:StatisticalVariable
populationType: dcid:EconomicActivity
measuredProperty: dcid:twoWayTrade
measurementQualifier: dcid:Annual
statType: dcid:measuredValue
product: dcid:TextileMillProduct
tradePartner: dcid:country/USA

Node: dcid:Annual_TwoWayTrade_EconomicActivity_ApparelAndAccessories_CountryUSA
typeOf: dcid:StatisticalVariable
populationType: dcid:EconomicActivity
measuredProperty: dcid:twoWayTrade
measurementQualifier: dcid:Annual
statType: dcid:measuredValue
product: dcid:ApparelAndAccessories
tradePartner: dcid:country/USA

Node: dcid:Annual_TwoWayTrade_EconomicActivity_LeatherAndAlliedProduct_CountryUSA
typeOf: dcid:StatisticalVariable
populationType: dcid:EconomicActivity
measuredProperty: dcid:twoWayTrade
measurementQualifier: dcid:Annual
statType: dcid:measuredValue
product: dcid:LeatherAndAlliedProduct
tradePartner: dcid:country/USA

Node: dcid:Annual_TwoWayTrade_EconomicActivity_WoodAndWoodProducts_CountryUSA
typeOf: dcid:StatisticalVariable
populationType: dcid:EconomicActivity
measuredProperty: dcid:twoWayTrade
measurementQualifier: dcid:Annual
statType: dcid:measuredValue
product: dcid:WoodAndWoodProducts
tradePartner: dcid:country/USA

Node: dcid:Annual_TwoWayTrade_EconomicActivity_Paper_CountryUSA
typeOf: dcid:StatisticalVariable
populationType: dcid:EconomicActivity
measuredProperty: dcid:twoWayTrade
measurementQualifier: dcid:Annual
statType: dcid:measuredValue
product: dcid:Paper
tradePartner: dcid:country/USA

Node: dcid:Annual_TwoWayTrade_EconomicActivity_PrintedMatter_CountryUSA
typeOf: dcid:StatisticalVariable
populationType: dcid:EconomicActivity
measuredProperty: dcid:twoWayTrade
measurementQualifier: dcid:Annual
statType: dcid:measuredValue
product: dcid:PrintedMatter
tradePartner: dcid:country/USA

Node: dcid:Annual_TwoWayTrade_EconomicActivity_PetroleumProductOrCoalProduct_CountryUSA
typeOf: dcid:StatisticalVariable
populationType: dcid:EconomicActivity
measuredProperty: dcid:twoWayTrade
measurementQualifier: dcid:Annual
statType: dcid:measuredValue
product: dcid:PetroleumProduct__CoalProduct
tradePartner: dcid:country/USA

Node: dcid:Annual_TwoWayTrade_EconomicActivity_ChemicalProduct_CountryUSA
typeOf: dcid:StatisticalVariable
populationType: dcid:EconomicActivity
measuredProperty: dcid:twoWayTrade
measurementQualifier: dcid:Annual
statType: dcid:measuredValue
product: dcid:ChemicalProduct
tradePartner: dcid:country/USA

Node: dcid:Annual_TwoWayTrade_EconomicActivity_PlasticProductOrRubberProduct_CountryUSA
typeOf: dcid:StatisticalVariable
populationType: dcid:EconomicActivity
measuredProperty: dcid:twoWayTrade
measurementQualifier: dcid:Annual
statType: dcid:measuredValue
product: dcid:PlasticProduct__RubberProduct
tradePartner: dcid:country/USA

Node: dcid:Annual_TwoWayTrade_EconomicActivity_NonMetallicMineralProducts_CountryUSA
typeOf: dcid:StatisticalVariable
populationType: dcid:EconomicActivity
measuredProperty: dcid:twoWayTrade
measurementQualifier: dcid:Annual
statType: dcid:measuredValue
product: dcid:NonMetallicMineralProducts
tradePartner: dcid:country/USA

Node: dcid:Annual_TwoWayTrade_EconomicActivity_MetalProducts_CountryUSA
typeOf: dcid:StatisticalVariable
populationType: dcid:EconomicActivity
measuredProperty: dcid:twoWayTrade
measurementQualifier: dcid:Annual
statType: dcid:measuredValue
product: dcid:MetalProducts
tradePartner: dcid:country/USA

Node: dcid:Annual_TwoWayTrade_EconomicActivity_FabricatedMetalProduct_CountryUSA
typeOf: dcid:StatisticalVariable
populationType: dcid:EconomicActivity
measuredProperty: dcid:twoWayTrade
measurementQualifier: dcid:Annual
statType: dcid:measuredValue
product: dcid:FabricatedMetalProduct
tradePartner: dcid:country/USA

Node: dcid:Annual_TwoWayTrade_EconomicActivity_MachineryExceptElectricalProduct_CountryUSA
typeOf: dcid:StatisticalVariable
populationType: dcid:EconomicActivity
measuredProperty: dcid:twoWayTrade
measurementQualifier: dcid:Annual
statType: dcid:measuredValue
product: dcid:MachineryExceptElectricalProduct
tradePartner: dcid:country/USA

Node: dcid:Annual_TwoWayTrade_EconomicActivity_ComputerProductOrElectronicProduct_CountryUSA
typeOf: dcid:StatisticalVariable
populationType: dcid:EconomicActivity
measuredProperty: dcid:twoWayTrade
measurementQualifier: dcid:Annual
statType: dcid:measuredValue
product: dcid:ComputerProduct__ElectronicProduct
tradePartner: dcid:country/USA

Node: dcid:Annual_TwoWayTrade_EconomicActivity_ElectricalEquipmentAppliancesComponent_CountryUSA
typeOf: dcid:StatisticalVariable
populationType: dcid:EconomicActivity
measuredProperty: dcid:twoWayTrade
measurementQualifier: dcid:Annual
statType: dcid:measuredValue
product: dcid:ElectricalEquipmentAppliancesComponent
tradePartner: dcid:country/USA

Node: dcid:Annual_TwoWayTrade_EconomicActivity_TransportEquipment_CountryUSA
typeOf: dcid:StatisticalVariable
populationType: dcid:EconomicActivity
measuredProperty: dcid:twoWayTrade
measurementQualifier: dcid:Annual
statType: dcid:measuredValue
product: dcid:TransportEquipment
tradePartner: dcid:country/USA

Node: dcid:Annual_TwoWayTrade_EconomicActivity_FurnitureAndFixture_CountryUSA
typeOf: dcid:StatisticalVariable
populationType: dcid:EconomicActivity
measuredProperty: dcid:twoWayTrade
measurementQualifier: dcid:Annual
statType: dcid:measuredValue
product: dcid:FurnitureAndFixture
tradePartner: dcid:country/USA

Node: dcid:Annual_TwoWayTrade_EconomicActivity_MiscellaneousManufacturedProduct_CountryUSA
typeOf: dcid:StatisticalVariable
populationType: dcid:EconomicActivity
measuredProperty: dcid:twoWayTrade
measurementQualifier: dcid:Annual
statType: dcid:measuredValue
product: dcid:MiscellaneousManufacturedProduct
tradePartner: dcid:country/USA

Node: dcid:Annual_TwoWayTrade_EconomicActivity_NewspaperAndOtherPublishedMatter_CountryUSA
typeOf: dcid:StatisticalVariable
populationType: dcid:EconomicActivity
measuredProperty: dcid:twoWayTrade
measurementQualifier: dcid:Annual
statType: dcid:measuredValue
product: dcid:NewspaperAndOtherPublishedMatter
tradePartner: dcid:country/USA

Node: dcid:Annual_TwoWayTrade_EconomicActivity_WasteAndScrap_CountryUSA
typeOf: dcid:StatisticalVariable
populationType: dcid:EconomicActivity
measuredProperty: dcid:twoWayTrade
measurementQualifier: dcid:Annual
statType: dcid:measuredValue
product: dcid:WasteAndScrap
tradePartner: dcid:country/USA

Node: dcid:Annual_TwoWayTrade_EconomicActivity_UsedSecondHandMerchandise_CountryUSA
typeOf: dcid:StatisticalVariable
populationType: dcid:EconomicActivity
measuredProperty: dcid:twoWayTrade
measurementQualifier: dcid:Annual
statType: dcid:measuredValue
product: dcid:UsedSecondHandMerchandise
tradePartner: dcid:country/USA

Node: dcid:Annual_TwoWayTrade_EconomicActivity_UsedSecondHandMerchandise_CountryUSA
typeOf: dcid:StatisticalVariable
populationType: dcid:EconomicActivity
measuredProperty: dcid:twoWayTrade
measurementQualifier: dcid:Annual
statType: dcid:measuredValue
product: dcid:UsedSecondHandMerchandise
tradePartner: dcid:country/USA

Node: dcid:Annual_TwoWayTrade_EconomicActivity_ExportReturned_CountryUSA
typeOf: dcid:StatisticalVariable
populationType: dcid:EconomicActivity
measuredProperty: dcid:twoWayTrade
measurementQualifier: dcid:Annual
statType: dcid:measuredValue
product: dcid:ExportReturned
tradePartner: dcid:country/USA

Node: dcid:Annual_TwoWayTrade_EconomicActivity_OtherSpeciallyClassifiedProvision_CountryUSA
typeOf: dcid:StatisticalVariable
populationType: dcid:EconomicActivity
measuredProperty: dcid:twoWayTrade
measurementQualifier: dcid:Annual
statType: dcid:measuredValue
product: dcid:OtherSpeciallyClassifiedProvision
tradePartner: dcid:country/USA

0 comments on commit 7e116a8

Please sign in to comment.