Discriminative Structure Learning of Markov Logic Networks