Efficiently Constructing Relational Features from Background Knowledge for Inductive Machine Learning