A method and system for intelligent cleaning of heterogeneous data

Through intelligent cleaning methods and systems for heterogeneous data, heterogeneous data are cleaned into entity trees and evidence trees, and open source component knowledge graphs are constructed to solve the difficulties of heterogeneous data management and utilization and achieve efficient integration and utilization of data.

CN117688308BActive Publication Date: 2024-09-10THE QUARTERMASTER RES INST OF THE GENERAL LOGISTICS DEPT OF THE CPLA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410110116.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-26
Publication Date
2024-09-10
Estimated Expiration
2044-01-26

AI Technical Summary

Technical Problem

The diversity and complexity of heterogeneous data lead to difficulties in data management, sharing and utilization, and it is difficult for existing technologies to effectively integrate and utilize data from different data sources.

Method used

Propose an intelligent cleaning method and system for heterogeneous data. Through template management, information extraction, information association and persistence modules, heterogeneous data is cleaned into entity trees and evidence trees, and a knowledge graph of open source components is constructed and stored in a graph database. middle.

Benefits of technology

It realizes the extraction of effective information and associated information from heterogeneous data, builds a knowledge graph of open source components, improves the availability and utilization efficiency of data, and solves the problem of data islands and the shortcomings of traditional relational databases in processing a large number of associated relationships.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117688308B
    Figure CN117688308B
Patent Text Reader

Abstract

The present invention proposes a method and system for intelligent cleaning of heterogeneous data, which belongs to the field of data processing technology. The method cleans heterogeneous data based on a heterogeneous data cleaning system to extract valid information and associated information of the heterogeneous data, thereby constructing a knowledge graph of an open source component. Call a template management module to obtain a customized template for data extraction. Call an information extraction module to extract data structured information from heterogeneous data using a customized template, and generate an entity tree and meta information based on the data structured information, with the meta information serving as valid information. Call an information association module to extract associated information from heterogeneous information to form an evidence tree, and construct a knowledge graph of an open source component based on the evidence tree and the entity tree. Call a persistence module to store the meta information in a Mysql database, and form a graphSql file from the knowledge graph of the open source component and store it in a Neo4j database.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of data processing, and in particular, relates to a method and system for intelligent cleaning of heterogeneous data. Background Art

[0002] In reality, we often face heterogeneous data sets, such as patient medical records in the healthcare field, experimental data in the chemical field, and transaction data in the financial field. The economic losses caused by defective data are also staggering. In the era of big data, data preprocessing has become an important research topic, attracting more and more attention from researchers in academia and industry. Data may come from different data sources, with different formats and structures, and even different semantics and attributes between different data. With the advent of the big data era, the data scale and complexity of heterogeneous data sets are increasing. Therefore, how to effectively integrate and utilize these data has become an important issue. However, due to the wide variety of heterogeneous data and the huge volume of data, it is difficult to unify them, resulting in some difficulties in data management, sharing and utilization. Summary of the invention

[0003] In order to solve the above technical problems, the present invention proposes a solution for intelligent cleaning of heterogeneous data.

[0004] A first aspect of the present invention provides a method for intelligent cleaning of heterogeneous data.

[0005] The method cleans heterogeneous data based on a heterogeneous data cleaning system to extract valid information and associated information of the heterogeneous data, thereby constructing a knowledge graph of open source components;

[0006] The data cleaning system includes a template management module, an information extraction module, an information association module and a persistence module;

[0007] The method specifically comprises:

[0008] Step S1, calling the template management module to obtain a basic template for data extraction, adjusting the basic template according to the data source type of the heterogeneous data, and obtaining a customized template for the heterogeneous data;

[0009] Step S2, calling the information extraction module, extracting data structured information from the heterogeneous data using the customized template, and generating an entity tree and meta information based on the data structured information, wherein the meta information serves as the effective information;

[0010] Step S3: calling the information association module to extract the association information from the heterogeneous data to form an evidence tree, and constructing a knowledge graph of the open source component based on the evidence tree and the entity tree;

[0011] Step S4, calling the persistence module, storing the meta information in the Mysql database, forming the knowledge graph of the open source component into a graphSql file and storing it in the Neo4j database;

[0012] The heterogeneous data includes component information, vulnerability information and version information of the open source component.

[0013] According to the method of the first aspect of the present invention, in the step S1, the template management module adds, modifies, deletes and customizes the maintained basic template, and stores the customized template for the heterogeneous data as a new basic template.

[0014] According to the method of the first aspect of the present invention, in step S2, the information extraction module extracts the data structured information from the heterogeneous data using the customized template that matches the data source type of the heterogeneous data, and obtains the meta-information by aligning the data structured information.

[0015] According to the method of the first aspect of the present invention, in step S2, the types of the entity tree generated based on the data structure information include software tree, vulnerability tree and license tree; wherein:

[0016] The format of the software tree is: pkg->type->name->version; wherein pkg is a fixed value, indicating a software tree, type is the type of the package, name is the name of the package, and version is the version of the package;

[0017] The format of the vulnerability tree is: source->ID; where source represents the source information of the vulnerability, and ID represents the vulnerability number;

[0018] The format of the license tree is: type->name; wherein type indicates the type of the license, and name indicates the license version.

[0019] According to the method of the first aspect of the present invention, in step S3, the evidence tree represents the relationship between entities based on the association information, associates different entity trees, and forms a knowledge graph of the open source component; the format of the evidence tree is: source node->evidence node->target node; wherein the source node is the version node of the software tree, the version node of the vulnerability tree, or the name node of the license tree, the evidence node represents the association relationship between entities, and the target node represents the version node of the software tree.

[0020] The second aspect of the present invention proposes a heterogeneous data intelligent cleaning system. The system extracts valid information and associated information of the heterogeneous data by cleaning the heterogeneous data, thereby constructing a knowledge graph of open source components; the system includes a template management module, an information extraction module, an information association module and a persistence module; wherein:

[0021] The template management module is configured to: obtain a basic template for data extraction, adjust the basic template according to the data source type of the heterogeneous data, and obtain a customized template for the heterogeneous data;

[0022] The information extraction module is configured to: extract data structured information from the heterogeneous data using the customized template, and generate an entity tree and meta information based on the data structured information, the meta information being used as the effective information;

[0023] The information association module is configured to: extract the association information from the heterogeneous data to form an evidence tree, and construct a knowledge graph of the open source component based on the evidence tree and the entity tree;

[0024] The persistence module is configured to: store the meta information in a Mysql database, form a graphSql file of the knowledge graph of the open source component and store it in a Neo4j database;

[0025] The heterogeneous data includes component information, vulnerability information and version information of the open source component.

[0026] According to the system of the second aspect of the present invention, the template management module is configured to: add, modify, delete and customize the maintained basic template, and store the customized template for the heterogeneous data as a new basic template.

[0027] According to the system of the second aspect of the present invention, the information extraction module is configured to: extract the data structured information from the heterogeneous data using the customized template that matches the data source type of the heterogeneous data, and obtain the meta-information by aligning the data structured information.

[0028] According to the system of the second aspect of the present invention, the information extraction module is configured to:

[0029] The entity tree is generated based on the data structured information, and the types of the entity tree include software tree, vulnerability tree and license tree; wherein:

[0030] The format of the software tree is: pkg->type->name->version; wherein pkg is a fixed value, indicating a software tree, type is the type of the package, name is the name of the package, and version is the version of the package;

[0031] The format of the vulnerability tree is: source->ID; where source represents the source information of the vulnerability, and ID represents the vulnerability number;

[0032] The format of the license tree is: type->name; wherein type indicates the type of the license, and name indicates the license version.

[0033] According to the system of the second aspect of the present invention, the evidence tree represents the relationship between entities based on the association information, and the information association module is configured to use the evidence tree to associate different entity trees to form a knowledge graph of the open source component; the format of the evidence tree is: source node->evidence node->target node; wherein the source node is the version node of the software tree, the version node of the vulnerability tree or the name node of the license tree, the evidence node represents the association relationship between entities, and the target node represents the version node of the software tree.

[0034] The third aspect of the present invention discloses an electronic device, which includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the method for intelligent cleaning of heterogeneous data described in the first aspect of the present disclosure are implemented.

[0035] The fourth aspect of the present invention discloses a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps in the method for intelligent cleaning of heterogeneous data described in the first aspect of the present disclosure are implemented.

[0036] In summary, the technical solution proposed in the present invention, with the help of template capabilities, can clean various data source data into entity trees and evidence trees, and finally merge them into open source component knowledge graphs, which are persisted in the graph database. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0038] Figure 1 Schematic diagram of a heterogeneous data intelligent cleaning process according to an embodiment of the present invention.

[0039] Figure 2 Schematic diagram of Diango1.11.1 and 1.11.2 component information representation according to an embodiment of the present invention.

[0040] Figure 3 Schematic diagram of associating CVE information with Django information according to an embodiment of the present invention.

[0041] Figure 4 Schematic diagram of the execution process of the template management module according to an embodiment of the present invention.

[0042] Figure 5 It is a schematic diagram of the execution process of the information extraction module according to an embodiment of the present invention.

[0043] Figure 6 Schematic diagram of the execution process of the information association module according to an embodiment of the present invention.

[0044] Figure 7 The figure is a schematic diagram of the execution process of the persistence module according to an embodiment of the present invention.

[0045] Figure 8 The figure is a structural diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0047] The open source movement is profoundly changing the way software is developed and produced. New technologies, new models, and new applications such as artificial intelligence, cloud computing, blockchain, industrial Internet, and ubiquitous perception are all related to open source components. In the field of open source software, open source software and related information, such as vulnerabilities, licenses, and other data, are the most core and valuable production factors of the open source movement. At present, open source components are scattered across major open source platforms, and their vulnerability information is managed by websites such as CVE and NVD, and the problem of data islands is very serious. Therefore, it is very valuable to clean data from different data sources and then associate and merge the data. The present invention proposes a method of open source component knowledge graph to integrate various information in open source components, such as vulnerability information and license information, into one graph, and with the help of the multi-graph operation capability of the graph database, it is convenient for users to use open source knowledge quickly and conveniently. The present invention proposes a heterogeneous data intelligent cleaning solution, which can clean various data source data into entity trees and evidence trees with the help of template capabilities, and finally merge them into an open source component knowledge graph, which is permanently saved in the graph database.

[0048] Data cleaning and information fusion of heterogeneous data sources have always been key issues of concern in the industry. In the field of open source components, open source component information comes from a wide range of sources, such as component information, vulnerability information, license information, etc. At the same time, component information has different sources, such as Github or Maven. There are different associations between different information from these different sources, such as dependencies between components, vulnerabilities or license data need to be marked to component versions, and so on. These associations are very important. If these information are not related, the availability of the data will be out of the question. Traditional relational databases have obvious drawbacks when there are a large number of associations between information. Therefore, the present invention is a graph-based open source component knowledge representation solution. Based on the excellent capabilities of the graph database, various information can be efficiently and conveniently associated.

[0049] The first aspect of the present invention provides a method for intelligent cleaning of heterogeneous data. The method cleans heterogeneous data based on a heterogeneous data cleaning system to extract valid information and associated information of the heterogeneous data, thereby constructing a knowledge graph of open source components. The data cleaning system includes a template management module, an information extraction module, an information association module, and a persistence module.

[0050] like Figure 1 As shown, the method specifically includes:

[0051] Step S1, calling the template management module to obtain a basic template for data extraction, adjusting the basic template according to the data source type of the heterogeneous data, and obtaining a customized template for the heterogeneous data;

[0052] Step S2, calling the information extraction module, extracting data structured information from the heterogeneous data using the customized template, and generating an entity tree and meta information based on the data structured information, wherein the meta information serves as the effective information;

[0053] Step S3: calling the information association module to extract the association information from the heterogeneous data to form an evidence tree, and constructing a knowledge graph of the open source component based on the evidence tree and the entity tree;

[0054] Step S4, calling the persistence module, storing the meta information in the Mysql database, forming the knowledge graph of the open source component into a graphSql file and storing it in the Neo4j database;

[0055] The heterogeneous data includes component information, vulnerability information and version information of the open source component.

[0056] According to the method of the first aspect of the present invention, in the step S1, the template management module adds, modifies, deletes and customizes the maintained basic template, and stores the customized template for the heterogeneous data as a new basic template.

[0057] According to the method of the first aspect of the present invention, in step S2, the information extraction module extracts the data structured information from the heterogeneous data using the customized template that matches the data source type of the heterogeneous data, and obtains the meta-information by aligning the data structured information.

[0058] According to the method of the first aspect of the present invention, in step S2, the types of the entity tree generated based on the data structure information include software tree, vulnerability tree and license tree; wherein:

[0059] The format of the software tree is: pkg->type->name->version; wherein pkg is a fixed value, indicating a software tree, type is the type of the package, name is the name of the package, and version is the version of the package;

[0060] The format of the vulnerability tree is: source->ID; where source represents the source information of the vulnerability, and ID represents the vulnerability number;

[0061] The format of the license tree is: type->name; wherein type indicates the type of the license, and name indicates the license version.

[0062] According to the method of the first aspect of the present invention, in step S3, the evidence tree represents the relationship between entities based on the association information, associates different entity trees, and forms a knowledge graph of the open source component; the format of the evidence tree is: source node->evidence node->target node; wherein the source node is the version node of the software tree, the version node of the vulnerability tree, or the name node of the license tree, the evidence node represents the association relationship between entities, and the target node represents the version node of the software tree.

[0063] Specifically, the graph-based open source component knowledge representation method effectively integrates all open source component information into a graph, making it easier for users to extract the desired open source component knowledge information. Specifically, in order to represent the information in the open source components and the connections between the information, this representation method uses two abstract trees, the entity tree and the evidence tree.

[0064] Entity trees are used to represent knowledge information, such as component versions, CVE information, etc. Currently, the types of entity trees include software trees, vulnerability trees, and license trees.

[0065] The format of the software tree is: pkg -> type -> name -> version

[0066] pkg: Fixed value, marking this tree as a software tree.

[0067] Type: The type of package, such as maven, pypi, etc.

[0068] Name: The name of the package.

[0069] Version: The version of the package.

[0070] The format of the vulnerability tree is: Source -> ID

[0071] Source: Source information of public vulnerabilities, such as CVE, GHSA, etc.

[0072] ID: The vulnerability ID, such as CVEID.

[0073] The format of the license tree is: Type->Name,

[0074] Type: The type of license, such as GPL, APACHE, etc.

[0075] Name: Specific license version, such as GPL2.0, APACHE2.0, etc.

[0076] like Figure 2 As shown in the figure, Diango1.11.1 and Diango1.11.12 are used as examples to show how the software tree represents component information. Among them, pypi is the type, django is the component name, and 1.11.1 and 1.11.12 are the versions. These two components are derived from different versions of the same component, so the component name and source information are merged and a fork is made in the version information.

[0077] The evidence tree is used to connect the relationship between two entities. It uses the original association relationship in the data information. Its format is: source node -> evidence node -> target node

[0078] Source node: the version node of the vulnerability tree, the name node of the evidence tree, or the version node of the software tree.

[0079] Evidence node: the relationship between the two, such as dependency (DEPENDENCY), open source vulnerability relationship (OSV), etc.

[0080] Target node: the version node of the software tree.

[0081] Specifically, Figure 3As shown in the figure, the CVE vulnerability information is associated with the Django 1.11.1 version through the OSV node of the evidence tree. The CVE vulnerability information is represented in the form of a vulnerability tree, and Django is defined in the form of a software tree. The relationship between the two is associated through the evidence tree, and the OSV evidence node indicates that the Django 1.11.1 version has the CVE-2022-123 vulnerability.

[0082] By combining the entity tree and the evidence tree, various open source related information and their relationships can be represented as a graph. This representation method is very efficient and convenient when searching, and it is also very intuitive and easy to use when presented to users. Based on the above representation method, the present invention proposes a complete process of data cleaning method. Useful information and knowledge can be cleaned from the extracted and crawled heterogeneous data and stored persistently.

[0083] The second aspect of the present invention proposes a heterogeneous data intelligent cleaning system. The system extracts valid information and associated information of the heterogeneous data by cleaning the heterogeneous data, thereby constructing a knowledge graph of open source components; the system includes a template management module, an information extraction module, an information association module and a persistence module; wherein:

[0084] The template management module is configured to: obtain a basic template for data extraction, adjust the basic template according to the data source type of the heterogeneous data, and obtain a customized template for the heterogeneous data;

[0085] The information extraction module is configured to: extract data structured information from the heterogeneous data using the customized template, and generate an entity tree and meta information based on the data structured information, the meta information being used as the effective information;

[0086] The information association module is configured to: extract the association information from the heterogeneous data to form an evidence tree, and construct a knowledge graph of the open source component based on the evidence tree and the entity tree;

[0087] The persistence module is configured to: store the meta information in a Mysql database, form a graphSql file of the knowledge graph of the open source component and store it in a Neo4j database;

[0088] The heterogeneous data includes component information, vulnerability information and version information of the open source component.

[0089] According to the system of the second aspect of the present invention, the template management module is configured to: add, modify, delete and customize the maintained basic template, and store the customized template for the heterogeneous data as a new basic template.

[0090] According to the system of the second aspect of the present invention, the information extraction module is configured to: extract the data structured information from the heterogeneous data using the customized template that matches the data source type of the heterogeneous data, and obtain the meta-information by aligning the data structured information.

[0091] According to the system of the second aspect of the present invention, the information extraction module is configured to:

[0092] The entity tree is generated based on the data structured information, and the types of the entity tree include software tree, vulnerability tree and license tree; wherein:

[0093] The format of the software tree is: pkg->type->name->version; wherein pkg is a fixed value, indicating a software tree, type is the type of the package, name is the name of the package, and version is the version of the package;

[0094] The format of the vulnerability tree is: source->ID; where source represents the source information of the vulnerability, and ID represents the vulnerability number;

[0095] The format of the license tree is: type->name; wherein type indicates the type of the license, and name indicates the license version.

[0096] According to the system of the second aspect of the present invention, the evidence tree represents the relationship between entities based on the association information, and the information association module is configured to use the evidence tree to associate different entity trees to form a knowledge graph of the open source component; the format of the evidence tree is: source node->evidence node->target node; wherein the source node is the version node of the software tree, the version node of the vulnerability tree or the name node of the license tree, the evidence node represents the association relationship between entities, and the target node represents the version node of the software tree.

[0097] The intelligent cleaning system for heterogeneous data consists of four modules: template management module, information extraction module, information association module and persistence module. The template management module is used to manage templates and can support the addition, modification, deletion and customized development of templates. The information extraction module uses the generated templates to extract data for different data types and extract useful data information. The information association module is used to fuse the extracted data information based on the association relationship, such as marking the vulnerability of the component, the license of the component, etc., and associating the component information with the vulnerability information or license information. The persistence module is used to save the extracted data information and associations.

[0098] When performing detection, the administrator will set the template for the data to be parsed through the template management module. Then the information management module will read the template and heterogeneous data at the same time, including component information data, vulnerability information data and version information data, and use the parsing template to parse the entity tree and meta information. The meta information is saved to the Mysql database by the persistence module, and the information association module reads the heterogeneous data to generate the evidence tree, and combines the entity tree to generate the final open source component knowledge graph. The open source component knowledge graph is persisted to Neo4j by the persistence module.

[0099] The template management module is used to provide the functions of adding, deleting, modifying and checking templates. The template management module reduces the development workload of extracting operations for different data sources by providing customized development capabilities based on basic templates, thereby achieving the purpose of improving efficiency. Figure 4 As shown, the system administrator manually adds the basic template; based on the new data source requirements, the system administrator customizes and develops a new template for a specific data source based on the basic template.

[0100] The information extraction module extracts a unified information representation method from the data based on the template of a specific data source. Figure 5 As shown, specifically: determine the data source type; select the template that needs to be used corresponding to the data source type; call the template to parse the data to obtain structured information; align the extracted structured information to obtain the metadata of the data; generate an entity tree from the structured information according to the type and format of the entity tree.

[0101] The information association module associates the extracted data information together to form data with richer expressions. Figure 6 As shown in the figure, the specific execution steps of this module are as follows: Get the association relationship from the data information. For example, CVE information not only marks the vulnerability description, source and other related information, but also includes the affected components. The extracted association relationship is formed into an evidence tree of entity relationship according to the requirements of the evidence tree; the evidence tree and the entity are associated to form an open source component knowledge graph.

[0102] The persistence module is used to save the extracted information. Figure 7 As shown, the specific execution steps of this module are as follows: obtain the extracted meta information and save it to Mysql; obtain the open source component knowledge graph, form graphSql, and save it to Neo4j.

[0103] The third aspect of the present invention discloses an electronic device, which includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the method for intelligent cleaning of heterogeneous data described in the first aspect of the present disclosure are implemented.

[0104] Figure 8 is a structural diagram of an electronic device according to an embodiment of the present invention, such as Figure 8 As shown, the electronic device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the electronic device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, near field communication (NFC) or other technologies. The display screen of the electronic device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the housing of the electronic device, or an external keyboard, touchpad or mouse, etc.

[0105] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a structural diagram of the part related to the technical solution of the present disclosure, and does not constitute a limitation on the electronic device to which the technical solution of the present application is applied. The specific electronic device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0106] The fourth aspect of the present invention discloses a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps in the method for intelligent cleaning of heterogeneous data described in the first aspect of the present disclosure are implemented.

[0107] In summary, the technical solution proposed in the present invention, with the help of template capabilities, can clean various data source data into entity trees and evidence trees, and finally merge them into open source component knowledge graphs, which are persisted in the graph database.

[0108] Please note that the technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification. The above-mentioned embodiments only express several implementation methods of the present application, and their descriptions are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that for ordinary technicians in this field, without departing from the concept of the present application, several variations and improvements can be made, which all belong to the scope of protection of the present application. Therefore, the scope of protection of the patent in this application shall be based on the attached claims.

Claims

1. A method for intelligent cleaning of heterogeneous data, characterized by: The method cleans heterogeneous data based on a heterogeneous data cleaning system to extract valid information and associated information of the heterogeneous data, thereby constructing a knowledge graph of open source components; The heterogeneous data cleaning system includes a template management module, an information extraction module, an information association module and a persistence module; The method specifically comprises: Step S1, calling the template management module to obtain a basic template for data extraction, adjusting the basic template according to the data source type of the heterogeneous data, and obtaining a customized template for the heterogeneous data; Step S2, calling the information extraction module, extracting data structured information from the heterogeneous data using the customized template, and generating an entity tree and meta information based on the data structured information, wherein the meta information serves as the effective information; Wherein, in the step S2, the types of the entity tree generated based on the data structured information include software tree, vulnerability tree and license tree; wherein: The format of the software tree is: pkg->type->name->version; wherein pkg is a fixed value, indicating a software tree, type is the type of the package, name is the name of the package, and version is the version of the package; The format of the vulnerability tree is: source->ID; where source represents the source information of the vulnerability, and ID represents the vulnerability number; The format of the license tree is: type->name; where type indicates the type of license, and name indicates the license version; Step S3, calling the information association module, extracting the association information from the heterogeneous data to form an evidence tree, and constructing a knowledge graph of the open source component based on the evidence tree and the entity tree; Wherein, in step S3: The evidence tree represents the relationship between entities based on the association information, and associates different entity trees to form a knowledge graph of the open source component; The format of the evidence tree is: source node->evidence node->target node; Wherein, the source node is the version node of the software tree, the version node of the vulnerability tree or the name node of the license tree, the evidence node represents the association relationship between entities, and the target node represents the version node of the software tree; Step S4, calling the persistence module, storing the meta information in the Mysql database, forming the knowledge graph of the open source component into a graphSql file and storing it in the Neo4j database; The heterogeneous data includes component information, vulnerability information and version information of the open source component.

2. The method for intelligent cleaning of heterogeneous data according to claim 1, characterized in that: In the step S1, the template management module adds, modifies, deletes and customizes the maintained basic template, and stores the customized template for the heterogeneous data as a new basic template.

3. A heterogeneous data intelligent cleaning method according to claim 2, characterized in that: In the step S2, the information extraction module extracts the data structured information from the heterogeneous data using the customized template that matches the data source type of the heterogeneous data, and obtains the meta information by aligning the data structured information.

4. A heterogeneous data intelligent cleaning system, characterized in that: The system extracts valid information and associated information from heterogeneous data by cleaning the heterogeneous data, thereby constructing a knowledge graph of open source components; the system includes a template management module, an information extraction module, an information association module and a persistence module; wherein: The template management module is configured to: obtain a basic template for data extraction, adjust the basic template according to the data source type of the heterogeneous data, and obtain a customized template for the heterogeneous data; The information extraction module is configured to: extract data structured information from the heterogeneous data using the customized template, and generate an entity tree and meta information based on the data structured information, the meta information being used as the effective information; The types of entity trees generated based on the data structured information include software trees, vulnerability trees and license trees; wherein: The format of the software tree is: pkg->type->name->version; wherein pkg is a fixed value, indicating a software tree, type is the type of the package, name is the name of the package, and version is the version of the package; The format of the vulnerability tree is: source->ID; where source represents the source information of the vulnerability, and ID represents the vulnerability number; The format of the license tree is: type->name; where type indicates the type of license, and name indicates the license version; The information association module is configured to: extract the association information from the heterogeneous data to form an evidence tree, and construct a knowledge graph of the open source component based on the evidence tree and the entity tree; wherein: The evidence tree represents the relationship between entities based on the association information, and associates different entity trees to form a knowledge graph of the open source component; The format of the evidence tree is: source node->evidence node->target node; Wherein, the source node is the version node of the software tree, the version node of the vulnerability tree or the name node of the license tree, the evidence node represents the association relationship between entities, and the target node represents the version node of the software tree; The persistence module is configured to: store the meta information in a Mysql database, form a graphSql file of the knowledge graph of the open source component and store it in a Neo4j database; The heterogeneous data includes component information, vulnerability information and version information of the open source component.

5. The intelligent cleaning system for heterogeneous data according to claim 4 is characterized by: The template management module is configured to: add, modify, delete and customize the maintained basic template, and store the customized template for the heterogeneous data as a new basic template; The information extraction module is configured to: extract the data structured information from the heterogeneous data using the customized template that matches the data source type of the heterogeneous data, and obtain the meta information by aligning the data structured information.

6. An electronic device, characterized in that: The electronic device includes a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, the steps in the method for intelligent cleaning of heterogeneous data described in any one of claims 1 to 3 are implemented.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the method for intelligent cleaning of heterogeneous data described in any one of claims 1 to 3 are implemented.