price = { convertPrice = sparql("SELECT ?x WHERE{<http://www.moxy.com.au/Wiki/a#Convert_Price> prop:RScript ?x}");
v = sparql("SELECT ?x WHERE{<http://www.moxy.com.au/Wiki/a#7500_Tonne_Furfural_Plant> prop:Price ?x}");
convertPrice(v, 'USD', '2010', 't');
}
qty = utConvert(sparql("SELECT ?x WHERE{<http://www.moxy.com.au/Wiki/a#7500_Tonne_Furfural_Plant> prop:Production ?x}"),'t/yr',1)
#Revenue in USD 2010
revenue = price * qty
plantAndEquipmentAssetTurnover = sparql("SELECT ?x WHERE{<http://www.moxy.com.au/Wiki/a#Nominal_Chemical_Plant> prop:PlantAndEquimpmentAssetTurnoverRatio ?x}")
#Ratio of Full Cost to Plant And Equipment Cost
ratio = sparql("SELECT ?x WHERE{<http://www.moxy.com.au/Wiki/a#Nominal_Chemical_Plant> prop:FullCost ?x}") / sparql("SELECT ?x WHERE{<http://www.moxy.com.au/Wiki/a#Nominal_Chemical_Plant> prop:PlantAndEquipmentCost ?x}");
fullCost = (revenue / plantAndEquipmentAssetTurnover) * ratio;
cat(fullCost/10^6, "M USD 2010")