The invention relates to the technical field of
data processing, in particular to a header generation method and
system. According to the method, the header
knowledge graph is successfully constructed by defining the header entities, the relationship between the header entities and the attributes of the header entities, the total row number and the total column number of the header are calculated by utilizing the constructed header
knowledge graph, the header array is generated, each header entity in the header entity
knowledge graph is traversed, and the header entity knowledge graph is constructed. Calculating a row number and a column number of an
initial cell of a content coverage area of each header entity, generating the content, the position and the attribute of the header entity into a
JSON format in a key-value pair form, storing the content, the position and the attribute in a position corresponding to the header array, traversing non-empty elements in the header array storing the content and the attribute information of the header entity, and storing the content, the position and the attribute information of the header entity; generating a header based on the content, position and attribute of the header entity; according to the method, dynamic generation and flexible management of the report header are realized by utilizing the characteristics of flexibility, multi-level and expandability of the knowledge graph and efficient
information integration, association and retrieval capabilities.