Attribute-based knowledge representation in the process of defect diagnosis