The invention discloses a method for obtaining irregular knowledge used for constructing a mechanical product design knowledge base. Aiming at the requirements for knowledge processing and knowledge base system development in the mechanical product design field, the invention defines the irregular knowledge, discloses a computation module for dividing irregular knowledge granularity by adopting granularity calculation principle, studies mechanical product design irregular knowledge base structure system and basic format, discloses an irregular knowledge base display method based on metadata, and invents a method for obtaining semantic matching, irregular knowledge base in serial data source, and multi-mode irregular knowledge based on irregular example knowledge obtaining of cluster analysis; and on the basis, designs a system frame and a prototype software system for mechanical product design knowledge base system construction and application. The invention can be used to solve the technical problem of treating irregular knowledge in an information processing system such as CAD (computer-aided design), CAM (computer-aided manufacturing), CAE (computer-aided engineering) or PDM (products data management) in manufacturing industry, so as to satisfy the requirements for the deepening development of the manufacturing industry information project technology.