Created an object for iterating over the ontology axioms and generating a graph.