Method, system and terminal for creating atlas based on data model
Through the graph creation method based on the data model, the business data model is identified and established, which solves the problem of inaccurate creation of knowledge graph relationships in the existing technology and achieves a more accurate and clear representation of graph relationships.
Patent Information
- Application Number
- CN202411476429.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-22
- Publication Date
- 2025-01-21
AI Technical Summary
In the prior art, knowledge graph construction methods through semantic text mining and multi-source data fusion cannot improve the accuracy of knowledge graph relationship creation.
Using the graph creation method based on the data model, by obtaining the conceptual data model, perform information classification and attribute information extraction, convert it into a logical data model, identify business data relationships, establish business attribute data models and business event data models, and finally create business relationship data model and target data model to form a graph.
Improved the accuracy of knowledge graph relationship creation, enabling business logic and relationships to be mapped and represented more clearly.
Smart Images

Figure CN119337982A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a graph creation method, system, terminal and computer-readable storage medium based on a data model. Background Art
[0002] At present, in the prior art, knowledge graphs are widely used in visual knowledge domain mapping. In the creation methods of knowledge graphs, most knowledge graphs are created based on scenarios, such as knowledge graphs of hospital scenarios, school scenarios, shopping mall scenarios, etc. Knowledge graphs are called knowledge domain visualization or knowledge domain mapping maps, which are a series of various graphics that show the knowledge development process and structural relationship. The construction methods of knowledge graphs can include knowledge graph construction methods based on semantic text mining and knowledge graph construction methods based on multi-source data fusion. However, the relationships between knowledge graphs created by these two knowledge graph creation methods are relatively simple, and the relationships between deep knowledge graphs cannot be accurately mined.
[0003] Therefore, the prior art still needs to be improved and developed. Summary of the invention
[0004] The main purpose of the present invention is to provide a graph creation method, system and computer-readable storage medium based on a data model, aiming to solve the problem in the prior art that the knowledge graph construction method that requires semantic text mining and the knowledge graph construction method based on multi-source data fusion cannot improve the accuracy of knowledge graph relationship creation.
[0005] To achieve the above object, the present invention provides a method for creating a graph based on a data model, and the method for creating a graph based on a data model comprises the following steps:
[0006] Acquire a conceptual data model, classify information of the conceptual data model, obtain attribute information of the conceptual data model, and convert the conceptual data model into a logical data model of a target business according to the attribute information;
[0007] Identify the business data relationship of the logical data model according to the attribute information, and process the identified business data relationship to obtain business attribute data and business event data;
[0008] Establishing a business attribute data model and a business event data model according to the business attribute data and the business event data;
[0009] Establishing a business relationship data model according to the business attribute data model and the business event data model;
[0010] The business data of the target business is obtained, a target data model of the target business is established according to the business data, and a graph is created according to the business relationship data model and the target data model.
[0011] Optionally, identifying business data relationships of the logical data model according to the attribute information, and processing the identified business data relationships to obtain business attribute data and business event data specifically includes:
[0012] Identifying business data relationships in the logical data model according to the attribute information, and processing the identified business data relationships to obtain multiple business data sets;
[0013] Based on the plurality of business data sets, a mapping rule for mapping the logical data model to the physical model is determined, and the business data sets are converted according to the mapping rule to obtain business attribute data and business event data.
[0014] Optionally, the graph creation method based on the data model, wherein the step of establishing a business attribute data model and a business event data model according to the business attribute data and the business event data, specifically includes:
[0015] According to the attribute relationship structure between the business attribute data, the plurality of business data sets are divided into a first point set and a first edge set in the graph, the first point set and the first edge set are calculated, and a business attribute data model is established;
[0016] According to the event relationship structure between the business event data, the business data set is divided into a second point set and a second edge set in the graph, the second point set and the second edge set are calculated, and a business event data model is established.
[0017] Optionally, the graph creation method based on the data model, wherein the step of establishing a business relationship data model according to the business attribute data model and the business event data model, specifically includes:
[0018] Integrate the relationship between the business attribute data and the business event data in the business attribute data model and the business event data model to obtain business relationship data information of the target business;
[0019] A business relationship data model is established according to the business relationship data information.
[0020] Optionally, the graph creation method based on the data model, wherein the acquiring of the business data of the target business, establishing a target data model of the target business according to the business data, and creating the graph according to the business relationship data model and the target data model, specifically comprises:
[0021] Collect business data of target business, filter the business data according to preset business rules, and obtain data indicators;
[0022] A target data model for the target business is established according to the data indicators, the business data in the target data model is stored in a module corresponding to the business relationship data model, the business data is processed according to the business relationship data model, and a graph of the business data is constructed.
[0023] Optionally, the graph creation method based on the data model, wherein the graph creation method based on the data model further comprises:
[0024] Receive custom incremental data entered by the user;
[0025] The graph is trained according to the custom incremental data, and a graph model is created.
[0026] Optionally, the graph creation method based on the data model, wherein the graph creation method based on the data model further comprises:
[0027] The created graph is encrypted and stored in the blockchain.
[0028] In addition, to achieve the above-mentioned purpose, the present invention also provides a graph creation system based on a data model, wherein the graph creation system based on a data model:
[0029] A logical model conversion module is used to obtain a conceptual data model, classify information of the conceptual data model, obtain attribute information of the conceptual data model, and convert the conceptual data model into a logical data model of a target business according to the attribute information;
[0030] A business data relationship processing module, used to identify business data relationships of the logical data model according to the attribute information, and process the identified business data relationships to obtain business attribute data and business event data;
[0031] A first model building module, used to build a business attribute data model and a business event data model according to the business attribute data and the business event data;
[0032] A second model building module, used to build a business relationship data model according to the business attribute data model and the business event data model;
[0033] A graph construction module is used to obtain the business data of the target business, establish a target data model of the target business based on the business data, and create a graph based on the business relationship data model and the target data model.
[0034] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a graph creation program based on a data model, and when the graph creation program based on a data model is executed by a processor, the steps of the graph creation method based on a data model as described above are implemented.
[0035] In the present invention, a conceptual data model is obtained, information classification is performed on the conceptual data model, attribute information of the conceptual data model is obtained, and the conceptual data model is converted into a logical data model of the target business according to the attribute information; business data relationships are identified on the logical data model according to the attribute information, and the identified business data relationships are processed to obtain business attribute data and business event data; a business attribute data model and a business event data model are established according to the business attribute data and the business event data; a business relationship data model is established according to the business attribute data model and the business event data model; the business data of the target business is obtained, a target data model of the target business is established according to the business data, and a graph is created according to the business relationship data model and the target data model. The present invention constructs a logical data model according to the conceptual data model, identifies business data relationships and establishes a business attribute data model and a business event data model, and finally creates a business relationship data model and a target data model to form a graph, which can improve the accuracy of knowledge graph relationship creation. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 It is a flow chart of a preferred embodiment of the method for creating a graph based on a data model of the present invention;
[0037] Figure 2 It is a structural diagram of a preferred embodiment of a graph creation system based on a data model of the present invention;
[0038] Figure 3 It is a structural diagram of a preferred embodiment of the terminal of the present invention. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solution and advantages of the present invention clearer and more specific, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0040] The existing technology requires knowledge graph construction methods based on semantic text mining and knowledge graph construction methods based on multi-source data fusion, but cannot improve the accuracy of knowledge graph relationship creation. Therefore, a graph creation method based on a data model is needed, which can improve the accuracy of graph relationship creation through a data model.
[0041] The method for creating a graph based on a data model according to a preferred embodiment of the present invention is as follows: Figure 1 As shown, the graph creation method based on the data model includes the following steps:
[0042] Step S10: Acquire a conceptual data model, classify information of the conceptual data model, obtain attribute information of the conceptual data model, and convert the conceptual data model into a logical data model of the target business according to the attribute information.
[0043] Specifically, a conceptual data model is obtained (a conceptual data model describes database information through abstraction, induction, generalization, classification, etc., and is embodied in the form of a subject database name and its content description), information classification is performed on the conceptual data model, and attribute information of the conceptual data model is obtained (a metamodel layer corresponding to the conceptual data model is established, model information is classified within the metamodel layer, and the type of attribute information of all model information contained in the metamodel layer is obtained), and according to the attribute information, the conceptual data model is converted into a logical data model of the target business (based on the type of attribute information, the content of all model information contained in the metamodel layer is determined in order to obtain the type of attribute information of the model information contained in the metamodel layer). and the relationship structure between each other; based on the respective contents of all model information and the relationship structure between each other, determine the type of graph data information corresponding to each model information contained in the metamodel layer in the logical model of the graph data structure; based on the type of the graph data information, distinguish all model elements contained in the metamodel layer into point sets and edge sets in the graph data; then import the point sets and the edge sets into the graph computing engine to obtain the logical model of the graph data structure; the logical data model adds attribute elements on the basis of the conceptual data model, and defines business activities, business logic, and business rules more clearly, providing clear definitions and representations for business needs).
[0044] Step S20: identifying business data relationships of the logical data model according to the attribute information, and processing the identified business data relationships to obtain business attribute data and business event data.
[0045] Specifically, the business data relationships of the logical data model are identified according to the attribute information, and the identified business data relationships are processed to obtain multiple business data sets (all point elements under the logical model are identified according to the attribute information to obtain association relationship information between different point elements, all business data relationships contained in the logical model are extracted based on the association relationship information, and all business data relationships are re-abstracted and reclassified with respect to relationship types and relationship attributes, thereby obtaining multiple business data sets); based on the multiple business data sets, a mapping rule for mapping the logical data model to a physical model is determined (based on the multiple business data sets, different combinations of all edges contained in the point set under the metamodel layer of the logical model are determined; and based on all the combinations, a mapping rule for mapping the logical model to the physical model is determined), and the business data sets are converted according to the mapping rules to obtain business attribute data and business event data.
[0046] Step S30: Establish a business attribute data model and a business event data model according to the business attribute data and the business event data.
[0047] Specifically, according to the attribute relationship structure between the business attribute data, the multiple business data sets are divided into a first point set and a first edge set in the graph, the first point set and the first edge set are calculated, and a business attribute data model is established (the first point set and the first edge set are imported into the attribute calculation engine to obtain a business attribute data model of the attribute data structure); according to the event relationship structure between the business event data, the business data sets are divided into a second point set and a second edge set in the graph, the second point set and the second edge set are calculated, and a business event data model is established (the second point set and the second edge set are imported into the event calculation engine to obtain a business event data model of the event data structure).
[0048] Step S40: Establish a business relationship data model based on the business attribute data model and the business event data model.
[0049] Specifically, the relationship between the business attribute data and the business event data in the business attribute data model and the business event data model is integrated, that is, the relationship between multiple business information data and the business data is sorted out, clustered and summarized to obtain business relationship data information of the target business; based on the business relationship data information, a business relationship data model is established.
[0050] Among them, sorting out the relationship between the business information data and the business data is an important step in creating a knowledge graph, which can improve the accuracy of graph relationship creation.
[0051] Step S50: Acquire the business data of the target business, establish a target data model of the target business according to the business data, and create a graph according to the business relationship data model and the target data model.
[0052] Specifically, the business data of the target business is collected, and the business data is filtered according to preset business rules to obtain data indicators; a target data model of the target business is established according to the data indicators, and the business data in the target data model is stored in a module corresponding to the business relationship data model (the business data in the target data model is extracted, and the extracted target business data is stored in a module corresponding to the business relationship data model), the business data is processed according to the business relationship data model, and a graph of the business data is constructed (the business data is used as basic data for creating a knowledge graph).
[0053] Furthermore, receiving custom incremental data input by the user; training the graph according to the custom incremental data, and creating a graph model, wherein the custom incremental data is data generated by the user in actual applications, and in order to further improve the accuracy of the graph created by the model, the above-mentioned custom incremental data can be used to train the graph to create a graph model.
[0054] As an example, the created graph is encrypted and stored in the blockchain to facilitate the subsequent extraction and storage of information. The server can be a node in a distributed system, wherein the distributed system can be a blockchain system, and the blockchain system can be a distributed system formed by connecting multiple nodes through network communication. The nodes can form a peer-to-peer (P2P) network. Any form of computer equipment, such as servers, terminals and other electronic devices, can become a node in the blockchain system by joining the peer-to-peer network. The blockchain includes a series of blocks that are connected to each other in the order of their generation. Once a new block is added to the blockchain, it will not be removed. The block records the record data submitted by the nodes in the blockchain system. The blockchain is an emerging application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, and encryption algorithm. It is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains information about a batch of network transactions, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. The blockchain can include the blockchain underlying platform, the platform product service layer, and the application service layer.
[0055] Furthermore, if Figure 2As shown, based on the above-mentioned graph creation method based on the data model, the present invention also provides a graph creation system based on the data model, wherein the graph creation system based on the data model includes:
[0056] The logical model conversion module 51 is used to obtain a conceptual data model, classify information of the conceptual data model, obtain attribute information of the conceptual data model, and convert the conceptual data model into a logical data model of a target business according to the attribute information;
[0057] A business data relationship processing module 52 is used to identify business data relationships of the logical data model according to the attribute information, and process the identified business data relationships to obtain business attribute data and business event data;
[0058] The first model building module 53 is used to obtain the information type in the initial judgment information, determine whether the information type is an abnormal type, and if the information type is an abnormal type, generate the movement trajectory of the object and issue an early warning;
[0059] A second model building module 54, used to build a business relationship data model according to the business attribute data model and the business event data model;
[0060] The graph construction module 55 is used to obtain the business data of the target business, establish a target data model of the target business according to the business data, and create a graph according to the business relationship data model and the target data model.
[0061] Furthermore, if Figure 3 As shown, based on the above-mentioned data model-based graph creation method and system, the present invention also provides a terminal accordingly, and the terminal includes a processor 10, a memory 20 and a display 30. Figure 3 Only some components of the terminal are shown, but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.
[0062] The memory 20 may be an internal storage unit of the terminal in some embodiments, such as a hard disk or memory of the terminal. The memory 20 may also be an external storage device of the terminal in other embodiments, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. equipped on the terminal. Further, the memory 20 may also include both an internal storage unit of the terminal and an external storage device. The memory 20 is used to store application software and various types of data installed in the terminal, such as the program code of the installation terminal. The memory 20 may also be used to temporarily store data that has been output or is to be output. In one embodiment, a graph creation program 40 based on a data model is stored on the memory 20, and the graph creation program 40 based on a data model can be executed by the processor 10, thereby realizing the graph creation method based on a data model in the present application.
[0063] In some embodiments, the processor 10 may be a central processing unit (CPU), a microprocessor or other data processing chip, used to run the program code or process data stored in the memory 20, such as executing the data model-based graph creation method.
[0064] In some embodiments, the display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 30 is used to display information on the terminal and to display a visual user interface. The components of the terminal communicate with each other via a system bus.
[0065] In one embodiment, when the processor 10 executes the data model-based graph creation program 40 in the memory 20, the following steps are implemented:
[0066] Acquire a conceptual data model, classify information of the conceptual data model, obtain attribute information of the conceptual data model, and convert the conceptual data model into a logical data model of a target business according to the attribute information;
[0067] Identify the business data relationship of the logical data model according to the attribute information, and process the identified business data relationship to obtain business attribute data and business event data;
[0068] Establishing a business attribute data model and a business event data model according to the business attribute data and the business event data;
[0069] Establishing a business relationship data model according to the business attribute data model and the business event data model;
[0070] The business data of the target business is obtained, a target data model of the target business is established according to the business data, and a graph is created according to the business relationship data model and the target data model.
[0071] The identifying of business data relationships of the logical data model according to the attribute information and processing of the identified business data relationships to obtain business attribute data and business event data specifically includes:
[0072] Identifying business data relationships in the logical data model according to the attribute information, and processing the identified business data relationships to obtain multiple business data sets;
[0073] Based on the plurality of business data sets, a mapping rule for mapping the logical data model to the physical model is determined, and the business data sets are converted according to the mapping rule to obtain business attribute data and business event data.
[0074] Wherein, establishing a business attribute data model and a business event data model according to the business attribute data and the business event data specifically includes:
[0075] According to the attribute relationship structure between the business attribute data, the plurality of business data sets are divided into a first point set and a first edge set in the graph, the first point set and the first edge set are calculated, and a business attribute data model is established;
[0076] According to the event relationship structure between the business event data, the business data set is divided into a second point set and a second edge set in the graph, the second point set and the second edge set are calculated, and a business event data model is established.
[0077] The step of establishing a business relationship data model based on the business attribute data model and the business event data model specifically includes:
[0078] Integrate the relationship between the business attribute data and the business event data in the business attribute data model and the business event data model to obtain business relationship data information of the target business;
[0079] A business relationship data model is established according to the business relationship data information.
[0080] The acquiring of the business data of the target business, establishing a target data model of the target business according to the business data, and creating a graph according to the business relationship data model and the target data model specifically include:
[0081] Collect business data of target business, filter the business data according to preset business rules, and obtain data indicators;
[0082] A target data model for the target business is established according to the data indicators, the business data in the target data model is stored in a module corresponding to the business relationship data model, the business data is processed according to the business relationship data model, and a graph of the business data is constructed.
[0083] The data model-based graph creation method further includes:
[0084] Receive custom incremental data entered by the user;
[0085] The graph is trained according to the custom incremental data, and a graph model is created.
[0086] The data model-based graph creation method further includes:
[0087] The created graph is encrypted and stored in the blockchain.
[0088] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a graph creation program based on a data model, and when the graph creation program based on a data model is executed by a processor, the steps of the graph creation method based on a data model as described above are implemented.
[0089] In summary, the present invention provides a method, system and computer-readable storage medium for creating a graph based on a data model, the method comprising: obtaining a conceptual data model, classifying information on the conceptual data model, obtaining attribute information of the conceptual data model, and converting the conceptual data model into a logical data model of a target business according to the attribute information; identifying business data relationships on the logical data model according to the attribute information, processing the identified business data relationships, and obtaining business attribute data and business event data; establishing a business attribute data model and a business event data model according to the business attribute data and the business event data; establishing a business relationship data model according to the business attribute data model and the business event data model; obtaining business data of the target business, establishing a target data model of the target business according to the business data, and creating a graph according to the business relationship data model and the target data model. The present invention constructs a logical data model according to the conceptual data model, identifies business data relationships and establishes a business attribute data model and a business event data model, and finally creates a business relationship data model and a target data model to form a graph, which can improve the accuracy of knowledge graph relationship creation.
[0090] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or terminal system including the element.
[0091] Of course, those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware (such as a processor, a controller, etc.) through a computer program, and the program can be stored in a computer-readable storage medium that can be read by a computer, and the program can include the processes of the above-mentioned method embodiments when executed. The computer-readable storage medium can be a memory, a disk, an optical disk, etc.
[0092] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.
Claims
1. A graph creation method based on a data model, characterized in that: The graph creation method based on the data model includes: Acquire a conceptual data model, classify information of the conceptual data model, obtain attribute information of the conceptual data model, and convert the conceptual data model into a logical data model of a target business according to the attribute information; Identify the business data relationship of the logical data model according to the attribute information, and process the identified business data relationship to obtain business attribute data and business event data; Establishing a business attribute data model and a business event data model according to the business attribute data and the business event data; Establishing a business relationship data model according to the business attribute data model and the business event data model; The business data of the target business is obtained, a target data model of the target business is established according to the business data, and a graph is created according to the business relationship data model and the target data model.
2. The method for creating a graph based on a data model according to claim 1, characterized in that: The identifying of the business data relationship of the logical data model according to the attribute information, and processing the identified business data relationship to obtain business attribute data and business event data specifically includes: Identifying business data relationships in the logical data model according to the attribute information, and processing the identified business data relationships to obtain multiple business data sets; Based on the plurality of business data sets, a mapping rule for mapping the logical data model to the physical model is determined, and the business data sets are converted according to the mapping rule to obtain business attribute data and business event data.
3. The method for creating a graph based on a data model according to claim 2, characterized in that: The establishing of a business attribute data model and a business event data model according to the business attribute data and the business event data specifically includes: According to the attribute relationship structure between the business attribute data, the plurality of business data sets are divided into a first point set and a first edge set in the graph, the first point set and the first edge set are calculated, and a business attribute data model is established; According to the event relationship structure between the business event data, the business data set is divided into a second point set and a second edge set in the graph, the second point set and the second edge set are calculated, and a business event data model is established.
4. The method for creating a graph based on a data model according to claim 3, characterized in that: The establishing of the business relationship data model according to the business attribute data model and the business event data model specifically includes: Integrate the relationship between the business attribute data and the business event data in the business attribute data model and the business event data model to obtain business relationship data information of the target business; A business relationship data model is established according to the business relationship data information.
5. The method for creating a graph based on a data model according to claim 1, characterized in that: The acquiring of the business data of the target business, establishing a target data model of the target business according to the business data, and creating a graph according to the business relationship data model and the target data model specifically includes: Collect business data of target business, filter the business data according to preset business rules, and obtain data indicators; A target data model for the target business is established according to the data indicators, the business data in the target data model is stored in a module corresponding to the business relationship data model, the business data is processed according to the business relationship data model, and a graph of the business data is constructed.
6. The method for creating a graph based on a data model according to claim 1, characterized in that: The graph creation method based on the data model also includes: Receive custom incremental data entered by the user; The graph is trained according to the custom incremental data, and a graph model is created.
7. The method for creating a graph based on a data model according to claim 1, characterized in that: The graph creation method based on the data model also includes: The created graph is encrypted and stored in the blockchain.
8. A graph creation system based on a data model, characterized in that: The data model-based graph creation system includes: A logical model conversion module is used to obtain a conceptual data model, classify information of the conceptual data model, obtain attribute information of the conceptual data model, and convert the conceptual data model into a logical data model of a target business according to the attribute information; A business data relationship processing module, used to identify business data relationships of the logical data model according to the attribute information, and process the identified business data relationships to obtain business attribute data and business event data; A first model building module, used to build a business attribute data model and a business event data model according to the business attribute data and the business event data; A second model building module, used to build a business relationship data model according to the business attribute data model and the business event data model; A graph construction module is used to obtain the business data of the target business, establish a target data model of the target business based on the business data, and create a graph based on the business relationship data model and the target data model.
9. A terminal, characterized in that: The terminal includes: a memory, a processor, and a data model-based graph creation program stored in the memory and executable on the processor. When the data model-based graph creation program is executed by the processor, the steps of the data model-based graph creation method as described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a graph creation program based on a data model, and when the graph creation program based on a data model is executed by a processor, the steps of the graph creation method based on a data model as described in any one of claims 1-7 are implemented.