Although WSDL and UDDI are widely accepted as standards for web service discovery, they can not guarantee scalable, flexible and automatic service discovery. Therefore, Semantic Web Services (SWS) is proposed to ensure high-quality service discovery. However, an effective and dedicated semantic registry for SWS discovery is still desired. Accordingly, in the paper we propose an approach and implement it for SWS publication and discovery. First, we discuss the basic idea of the approach. Next, present the architecture and operation principle of a SWS registry based on the approach. Then, we simply discuss its implementation and testing work. Finally, point out the highlighted merits of the approach. In fact, through analysis and a large number of experiments, the approach proves to be a simple and effective method to publish and discover SWS.