An Approach Based on Instances Flow Analysis for Maintaining Consistency in Ontology Structure