Hinge-Loss Markov Random Fields and Probabilistic Soft Logic