Ontology, the core of semantic web, is usually limited by specific domain or created by given meaning passively. But, the generation of ontology is not only very difficult but also taking very long time. Therefore, the automatic generation of ontology takes very important part in semantic web. In this paper, we suggest the ways that make and renew the ontology, which are related with the keywords that users input in the search engine, automatically for the automatic generation of ontology that is not limited by specific domain. Input keyword and relation keywords become OWL, and the relation among the created OWL is expressed by Graph. The result is shown after the test of validity that W3C offers to verify the grammatical propriety of created OWL. The way of automatic generation of ontology that is being suggested, discharges generation and renewal of ontology automatically whenever searching is completed in the search engine. By the web based dictionary and thesaurus, the generation of ontology, for the new and related words, has become possible.