Mining Bayesian Networks out of ontologies