SPOOK: A System for Probabilistic Object-Oriented Knowledge Representation