rsLDA: A Bayesian hierarchical model for relational learning