Foundations of Onto-Relational Learning