A Framework for Bayesian Networks.