In previous work, we propose several mechanisms for distributed SWS publication and discovery. As same as some other applications of Semantic Web, they require users to provide concepts which are defined in domain ontology. However, users usually can not give an exact concept defined in ontology for a word in an open environment. For the reason, we propose a distributed ontology publication approach, through which we can publish ontology to P2P network, so that for a "word" user can find the ontologies that the "word" is defined in. Accordingly, a user can easily select an appropriate ontology to represent a concept for the "word". Then we apply the approach to our previous work to aid users to discover Web Service. With the testing work, the approach proves to be practical and effective approach to ontology publication and discovery.