Modeling, Learning And Reasoning With Structured Bayesian Networks