A method for building a data model with integrity based on a tree-shaped atomic model structure relates to the field of computers, in particular to computer management information system service modeling technology. The method includes: firstly, completing definition of data domains, definition of atoms and atomic entities, definition of expression atom types, definition of expression character string rules and definition of expression operational characters in a system; secondly, decomposing atomic entities of a service model and building the service model according to service attributes; thirdly, listing and defining attributes of the decomposed atomic entities in the system according to rules of the data domain definition, the atom and atomic entity definition, the expression atom type definition, the expression character string definition and expression operational character definition; and lastly, building entity integrity, referential integrity and user-defined integrity of the service model.