There's an identity where nominal GDP = real GDP * GDP deflator%, where the GDP deflator is a measure of inflation that also includes exports.
The calculation I described is basically just computing the components of GDP through the income approach, GDP = wages + rent + interest + net imports + taxes + profits. Then you do this for both nominal and real GDP. The ratio between them is inflation within each factor of production. A weighted sum of these individual inflation rates should give back the overall GDP deflator; comparing the contribution of an individual factor of production's term vs. the overall inflation number gives the percentage of inflation due to a particular factor of production.
The calculation I described is basically just computing the components of GDP through the income approach, GDP = wages + rent + interest + net imports + taxes + profits. Then you do this for both nominal and real GDP. The ratio between them is inflation within each factor of production. A weighted sum of these individual inflation rates should give back the overall GDP deflator; comparing the contribution of an individual factor of production's term vs. the overall inflation number gives the percentage of inflation due to a particular factor of production.