Expressing Relational and Temporal Knowledge in Visual Probabilistic Networks