Query Answering and Ontology Population: An Inductive Approach