Foundations for Energy Data Analytics