Semantic web makes the applications understand by the machines. Ontology is the building block of semantic web because it provides semantics to the information. OWL is the knowledge representation language for creating ontology and helps the system to automatically process and integrate the information. UML is unified modelling language which provides a set of graphical notation to create visual models. UML helps in designing and documenting a system and many enterprises have their schemas in UML. By using the existing UML models, OWL can be generated because similar properties exist between them. The class diagram plays a major role in conversion because both are based on classes, their relationships and instances. During conversion problems like inconsistency and redundancy in UML models gets reflected in the OWL. So we propose an approach for resolving the inconsistency by converting UML to Description Logics. Check for the consistency using reasoning properties of DL. Resolve the inconsistency using the resolving algorithm and map the resultant DL to OWL code.