From Stochastic Thermodynamics to Thermodynamic Inference