The invention relates to the field of
data modeling in the I-T
software industry, and discloses a method for detecting
data modeling quality, which comprises the following steps of: S1, sorting technical and business specifications in the industry or enterprise into preset rules, and classifying each rule into a plurality of units; s2, reading the modeling script, and performing
lexical analysis to generate an
abstract syntax tree containing key attribute information; s3, the
syntax tree is processed, irrelevant content is removed and classified, and a to-be-checked item set composed of a plurality of units is formed; and S4, sequentially checking the to-be-checked item set, and confirming defects of units which do not conform to a preset rule. The
syntax tree in the step S2 comprises all
table information, field information and key information of modeling. The
data modeling quality is detected in an automatic mode, the technical threshold of auditing and testing personnel is lowered, the cost is saved, the working efficiency is improved, maintenance is easy, flexible rule extension is supported, meanwhile,
automatic processing is achieved, the modeling delivery quality is improved, and the working specification is enhanced.