A visual data connection method and device based on data model

Through the visual data connection method based on the data model, the problem of data connection configuration complexity and correlation description in the existing technology is solved, the integrity and consistency management of the complex data model is realized, and the user operation experience and data connection efficiency are improved. .

CN118467549BActive Publication Date: 2024-10-11NAT UNIV OF DEFENSE TECH
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410937870.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-12
Publication Date
2024-10-11
Estimated Expiration
2044-07-12

AI Technical Summary

Technical Problem

When existing data linking software tools handle complex data models, user operations are complicated and it is difficult to fully and completely describe the correlation between data tables or data entities, resulting in configuration difficulties.

Method used

Using a visual data connection method based on the data model, by obtaining and improving the data table description information at the data source, selecting entity tables and dictionary tables related to business objects, configuring the relationship information between data tables, and storing this information in multiple dimensions In the metadata description template, a metadata description model is generated to assist users in building and configuring data connections.

Benefits of technology

It improves the integrity and convenience of data connection configuration, supports the rapid and accurate construction of complex data models, realizes comprehensive and complete metadata recording and management of complex business data objects, and reduces user technical ability requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118467549B_ABST
    Figure CN118467549B_ABST
Patent Text Reader

Abstract

The present application relates to a method and device for visual data connection based on a data model. The method includes: proposing a connection data model description method to describe the characteristics of complex data structures from multiple dimensions, and realizing comprehensive and complete metadata recording and management of complex business data objects; based on the design of the connection data model, proposing a matching visual modeling method to support the rapid and accurate construction of the connection data model; designing a comprehensive connection configuration template to support the automatic generation and execution of connection code based on the template configuration information. The present invention constructs a set of universal, extensible, and data management system-independent connection data models to adapt to complex and heterogeneous connection data structures, and ensures the integrity of the data description under the premise of controlling the complexity of the model. Then, based on this data model description method, a dynamic, intuitive, and concise human-computer interaction method is designed to guide users to complete data connection work quickly and conveniently.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing, and in particular to a method and device for visual data connection based on a data model. Background Art

[0002] The existing major data import software tools mainly read the data in the data table and related data files from the source database, convert the table structure and field format, and then store them in the target database.

[0003] However, in actual applications, it is generally necessary to organically organize several data tables (entities) to form a data model to support a complete description of business objects.

[0004] When using ordinary data connection methods to connect data based on complex data models, there are difficulties such as complex human-computer interaction operations in data connection configuration, high requirements on user technical capabilities, and difficulty in fully and comprehensively describing the relationships between data tables or data entities. Summary of the invention

[0005] Based on this, it is necessary to provide a visual data connection method and device based on a data model to address the above technical problems, and to summarize a general and universal connection data model description method for complex and heterogeneous external data structures to assist users in building connection data models and improve the integrity and convenience of data connection configuration.

[0006] A visual data connection method based on a data model, the method comprising:

[0007] Obtain and complete the description information of all data tables on the data source side, and mark the table type of each data table; table types include: entity table, relationship table, and dictionary table;

[0008] For the business object to be linked, select an entity table containing the identification information of the business object from the data table on the data source end as the central table of the linked data model, select the entity table and dictionary table related to the central table that can describe the attributes of the business object and add them to the linked data model, and configure the relationship information between the data tables in the linked data model;

[0009] The data table description information in the access data model, the description information of the data fields in the data table, and the relationship information between the data tables are stored in a pre-built multi-dimensional metadata description template to obtain a metadata description model corresponding to the business object; wherein the multi-dimensional metadata description template specifically includes: a data table metadata table, a data field metadata table, and a data table relationship metadata table; the data table metadata table is used to describe the metadata information of all data tables in the data model corresponding to the business data object; one business data object corresponds to one data model; the data field metadata table is used to describe the metadata information of all data fields contained in each data table in the data model; the data table relationship metadata table is used to describe the metadata information of the relationship between all data tables in the data model;

[0010] Design the connection template in combination with the metadata description model configuration, and complete the data connection based on the connection template.

[0011] A visual data connection device based on a data model, the device comprising:

[0012] The description information acquisition module is used to obtain and improve the description information of all data tables on the data source side, and mark the table type of each data table; the table types include: entity table, relationship table and dictionary table;

[0013] The connection data model construction module is used to select an entity table containing identification information of the business object from the data table at the data source end as the central table of the connection data model for the business object to be connected, select entity tables and dictionary tables related to the central table that can describe the attributes of the business object to add to the connection data model, and configure the relationship information between the data tables in the connection data model;

[0014] The description template filling module is used to store the data table description information in the access data model, the description information of the data fields in the data table, and the relationship information between the data tables into the pre-built multi-dimensional metadata description template to obtain the metadata description model corresponding to the business object; wherein the multi-dimensional metadata description template specifically includes: a data table metadata table, a data field metadata table, and a data table relationship metadata table; the data table metadata table is used to describe the metadata information of all data tables in the data model corresponding to the business data object; one business data object corresponds to one data model; the data field metadata table is used to describe the metadata information of all data fields contained in each data table in the data model; the data table relationship metadata table is used to describe the metadata information of the relationship between all data tables in the data model;

[0015] The induction task execution module is used to design the induction template in combination with the metadata description model configuration and complete the data induction based on the induction template.

[0016] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0017] Obtain and complete the description information of all data tables on the data source side, and mark the table type of each data table; table types include: entity table, relationship table, and dictionary table;

[0018] For the business object to be linked, select an entity table containing the identification information of the business object from the data table on the data source end as the central table of the linked data model, select the entity table and dictionary table related to the central table that can describe the attributes of the business object and add them to the linked data model, and configure the relationship information between the data tables in the linked data model;

[0019] The data table description information in the access data model, the description information of the data fields in the data table, and the relationship information between the data tables are stored in a pre-built multi-dimensional metadata description template to obtain a metadata description model corresponding to the business object; wherein the multi-dimensional metadata description template specifically includes: a data table metadata table, a data field metadata table, and a data table relationship metadata table; the data table metadata table is used to describe the metadata information of all data tables in the data model corresponding to the business data object; one business data object corresponds to one data model; the data field metadata table is used to describe the metadata information of all data fields contained in each data table in the data model; the data table relationship metadata table is used to describe the metadata information of the relationship between all data tables in the data model;

[0020] Design the connection template in combination with the metadata description model configuration, and complete the data connection based on the connection template.

[0021] A visual data connection method and device based on a data model, including: proposing a connection data model description method to describe the characteristics of complex data structures from multiple dimensions, and realizing comprehensive and complete metadata recording and management of complex business data objects; based on the design of the connection data model, proposing a matching visual modeling method to support the rapid and accurate construction of the connection data model; designing a comprehensive connection configuration template to support the automatic generation and execution of connection codes based on template configuration information. The present invention constructs a set of universal, extensible, and data management system-independent connection data models to adapt to complex and heterogeneous connection data structures, and ensures the integrity of data description under the premise of controlling the complexity of the model. Then, based on this data model description method, a dynamic, intuitive, and concise human-computer interaction method is designed to guide users to quickly and conveniently complete data connection work. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1A schematic diagram of a flow chart of a visual data connection method based on a data model in an embodiment;

[0023] Figure 2 A schematic diagram of a data connection operation process specification in one embodiment;

[0024] Figure 3 A schematic diagram of selecting a center table and dragging it to the center of the interface in an embodiment;

[0025] Figure 4 A schematic diagram of dragging a related dictionary table and an entity table onto an interface and configuring the relationship between the dictionary table and the central table in an embodiment;

[0026] Figure 5 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0027] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0028] In one embodiment, Figure 1 As shown, a visual data connection method based on a data model is provided, comprising the following steps:

[0029] Step 102: Obtain and complete the description information of all data tables at the data source end, and mark the table type of each data table.

[0030] Get the description information of all data tables from the data source, including table names, table comments, etc., which can be displayed in a list to obtain a data source table description information list. In the data source table description information list, manually configure the type of each table (mainly including entity tables, relationship tables, and dictionary tables), and supplement the table description information (such as the Chinese name of the table, table comments, etc.).

[0031] All data tables here refer to all data tables that can be obtained from the data source. For example, if the data source is a database of an information management system, when you have permission to access the database connection, you can obtain the description information of all data tables in the database (subject to database permissions).

[0032] Step 104, for the business object to be linked, select an entity table containing the identification information of the business object from the data table on the data source end as the central table of the linked data model, select entity tables and dictionary tables related to the central table that can describe the attributes of the business object and add them to the linked data model, and configure the relationship information between the data tables in the linked data model.

[0033] In actual database applications, a business object is often not only described by one entity table, but may include multiple components and need to be described by multiple related entity tables and other types of data tables. For example, to describe the properties of a certain model of aircraft, you need a basic information table of the aircraft + a technical parameter table of the sensors equipped on the aircraft + a technical parameter table of the engines equipped on the aircraft + a large number of dictionary tables (aircraft type, country, etc.).

[0034] Step 106, storing the data table description information in the reference data model, the description information of the data fields in the data table, and the relationship information between the data tables into a pre-built multi-dimensional metadata description template to obtain a metadata description model corresponding to the business object.

[0035] Among them, the multi-dimensional metadata description template specifically includes: data table metadata table, data field metadata table and data table relationship metadata table. When importing data, the data information of one or more business objects should be obtained on demand, rather than simply migrating all the content in the data table. This requires a complete and comprehensive description of the relevant data tables, table relationships and data elements in the table corresponding to the business objects to ensure the integrity and consistency of the imported data. The specific metadata description is recorded in three metadata tables: data table metadata table, data field metadata table and data table relationship metadata table. The three tables are explained as follows:

[0036] The data table metadata table is used to describe the metadata information of all data tables in the data model corresponding to the business data object. One business data object corresponds to one data model.

[0037] The data field metadata table is used to describe the metadata information of all data fields contained in each data table in the data model.

[0038] The data table relationship metadata table is used to describe the metadata information of the relationship between all data tables in the data model.

[0039] The multi-dimensional metadata description model of "table information + (in the table) data field information + table relationship information" is adopted to achieve comprehensive and complete metadata recording and management of complex business data objects. It can comprehensively and completely describe the data structure to be introduced and ensure the integrity and consistency of the introduced data in business semantics.

[0040] Step 108, design an initiation template in combination with the metadata description model configuration, and complete data initiation based on the initiation template.

[0041] The import template refers to the collection of all relevant configuration information involved in the data import process. Various configuration information can be reused, and the user is guided through the visual interface to select or add or modify various configuration information to form a complete import template. During the import process, data processing or calculation can be performed based on the import template information to support the completion of data import.

[0042] The above-mentioned visual data connection method based on data model can be well applied to scenarios of accurately connecting required data content to business data objects, and has strong versatility and scalability. It can realize automatic generation and execution of connection code on the premise of detailed description of connection data model and connection template.

[0043] It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0044] In one embodiment, in a multi-dimensional metadata description template:

[0045] Each row in the data table metadata table records: the identifier, name, description, and table type of a specific data table; table types include: entity table, relationship table, and dictionary table;

[0046] Each row in the data field metadata table records: the identifier, name, data table, description, data type, length, precision, dimension, access control level, and format constraints (regular expression specifications can be used) of a specific data field;

[0047] Each row in the data table relationship metadata table records: the relationship between two specific data tables, including the identifiers of the two data tables, the identifiers of the data fields that reference each other in the two data tables, and the relationship type between the two data tables; relationship types include: one-to-many, many-to-one, one-to-one, and many-to-many, etc.

[0048] In order to be compatible with unstructured data, each row in the data table metadata table can record the description information of a structured data table in a database, or the overall name and identifier of a group of related files, including unstructured data files such as videos and pictures, and semi-structured data files such as XML / EXCEL. This group of related files is regarded as a data table, in which each file is an entity with a unique identifier (which can be an access path).

[0049] In one embodiment, an entity table containing identification information of a business object is selected from a data table at a data source end as a central table of a connection data model, an entity table and a dictionary table related to the central table that can describe attributes of the business object are selected and added to the connection data model, and relationship information between the data tables in the connection data model is configured, including:

[0050] Select an entity table containing business object identification information from the data table at the data source end as the central table of the connected data model, and display it on the visualization interface as the first icon. Drag the central table to the interface, and use a circular pattern as a mark.

[0051] Select the entity table that can describe the attributes of the business object related to the central table as the other entity table to be connected to the data model, and display it on the visual interface with the second icon. On the visual interface, connect the existing entity tables consisting of the central table and other entity tables, and mark the corresponding associated fields between the two entity tables on the line; if the two entity tables are associated through a relationship table, the corresponding relationship table and the associated fields between the two entity tables and the relationship table need to be marked on the line. Drag other entity tables to the interface, and you can use an elliptical pattern as a mark. The existing entity table here refers to the central table (essentially also an entity table) that has been dragged to the graphical interface with the first icon + multiple other entity tables displayed with the second icon. The connection here includes the connection between the central table and other entity tables, as well as the connection between other entity tables.

[0052] Select the dictionary table that can describe the attributes of the business object related to the central table as the dictionary table for the data model, and display it on the visualization interface with the third icon. Drag the existing entity table and the dictionary table on the visualization interface, and mark the corresponding associated fields between the entity table and the dictionary table on the line. Drag the dictionary table to the interface, and use a diamond pattern as a mark. The entity table and the dictionary table are connected, and the dictionary tables do not need to be connected because the content of the dictionary table is only the value range of the enumeration field.

[0053] Click the icon corresponding to any table on the diagram to display the definition information of each data field in the table, including field name, field comment, field type, whether it is empty, field length, etc. This information may be obtained directly from the data source and can be further supplemented and improved. After completing the graphical data model configuration, save the access data model. The description information of the access data model configured on the visual interface is saved in the three metadata tables defined in the access data model description method.

[0054] Each data model has only one central table. Based on all the table information on the same data source, multiple data models can be configured. For example, if the data source is a database of a course scheduling system, then a data model centered on student information can be configured, a data model centered on course information can be configured, or a data model centered on department information can be configured. The configuration steps of each data model can be carried out in sequence according to the above steps, that is, by performing the operations in the above steps, a new data model can be created based on all the table spaces on the data source. In summary, based on the design of the interface data model, a supporting visual modeling method is proposed to support interface operators to quickly and accurately build the interface data model by dragging, clicking, and configuring on the graphical interface. Data tables are represented by icons of different shapes, and the relationship between data tables is represented by connecting lines. Right-click menus are provided on icons and connecting lines to support editing and configuration of data tables and their relationships. The main operations include configuration of data table types, determination of the model central table, drag-and-drop layout of data tables included in the model, format configuration of each data field in each data table in the model, and configuration of the relationship between each data table in the model.

[0055] In one embodiment, a design of an induction template is combined with the metadata description model configuration, and data induction is completed based on the induction template, including:

[0056] Create an induction task and associate it with an induction template; the induction template includes data source information, data destination information, metadata description model information, induction filtering rules, induction data conversion rules, induction data verification rules and induction data quality evaluation rules.

[0057] Automatically parse the boot template to execute the boot task.

[0058] The connection template (including connection data model) formed by guided visual configuration contains a large amount of configuration information such as data source configuration information, data destination configuration information, connection data model information, connection filtering rules, connection data conversion rules, connection data verification rules, connection data quality evaluation rules, connection performance parameter configuration information, etc. In the actual data connection execution process, the connection template configuration information can be automatically converted into executable code and executed to realize automatic data connection based on the connection template.

[0059] In one embodiment, a connection template refers to a collection of all relevant configuration information involved in the data connection process, including data source information, data destination information, connection data model information, connection filtering rules, connection data conversion rules, connection data verification rules, connection data quality evaluation rules, connection performance parameter configuration information, etc.

[0060] Data source information includes: data source type, data source access address, data source name, and data source description. When data is connected, the source end may be in the form of a database, data file, data interface, etc.

[0061] The data destination information includes the data destination type, data destination access address, data destination name, data destination description, etc. When data is linked, the destination is generally a local database or data warehouse.

[0062] Imported data model information: The imported data model refers to a data set description that combines multiple data entities (tables) at the source end to support information representation and operation, based on application needs, including descriptions of the constituent entities (tables), relationships between entities (tables), structures within entities (tables), formats and descriptions of data elements (fields) within entities (tables), etc. The imported data model information is the result of configuration according to step 104.

[0063] The induction filtering rules are built on the central table of the induction data model and are associated with the induction tasks. By limiting the filtering conditions of each data field on the central table, the data content that needs to be inducted is filtered out from the central table, and the required data content is extracted from the related tables through the relationship information between the data tables in the metadata description model information;

[0064] The data conversion rules for the connection configure and record the corresponding data field format conversion rules of the source and destination, and support the automatic conversion of the source data format to the destination data format. The data structure of the connection data source and destination may be different, which may be caused by the different models of the databases or data files at both ends. For example, if the format of a field on the source is number, the destination needs to convert it to decimal. If the format of a field on the source is string (from Excel), the destination needs to convert it to numeric format.

[0065] The imported data verification rules are used to verify the standardization, integrity, and consistency of the data after the data is imported locally. After the data is imported locally, it is necessary to organize the data to find and solve the problems in the data, mainly focusing on the standardization, integrity, and consistency of the data. Based on the table relationships, business rules in the tables, and table relationships in the selected data model, the verification rules can be further improved and refined to support automatic verification of data to find problems.

[0066] The imported data quality evaluation rules are used to comprehensively evaluate the quality of the imported data to decide whether to save the data. After the data is imported locally, the data quality can be evaluated to quantitatively assess the overall quality level of the data. When the data quality level is poor, the specific reasons are analyzed and the data is reorganized or re-imported according to the reasons to improve the data quality. The quality inspection rules are the basis for quality evaluation, and their configuration mainly includes the scoring rules for various types of questions and their weight settings.

[0067] The boot performance parameter information is used to configure the boot performance parameters when executing the boot task, including: whether it is multi-threaded, and the size of the data cache occupied, etc.

[0068] It can be understood that this method is highly versatile and can be applied to the induction applications of various complex heterogeneous data. By flexibly configuring the induction configuration template information including the induction data model, induction data source, induction filtering conditions, etc., the reusability and scalability of the induction configuration can be improved.

[0069] In summary, the present invention constructs a universal, extensible, and data management system-independent access data model to adapt to complex and heterogeneous access data structures, while ensuring the integrity of data descriptions while controlling model complexity. Based on this data model description method, a dynamic, intuitive, and concise human-computer interaction method is designed to guide users to complete data access work quickly and conveniently.

[0070] In one embodiment, the data verification rules mainly include field verification, entity verification, and relationship verification;

[0071] Field validation includes non-emptiness validation, value range validation, and format validation, etc.

[0072] Entity verification mainly includes entity data element integrity verification and entity data duplication verification;

[0073] Relationship verification mainly includes consistency verification of relationships between entities (including dictionaries), that is, consistency verification of relationships between entity tables, and consistency verification of relationships between entity tables and dictionary tables.

[0074] In one embodiment, the configuration of the data quality evaluation rules includes: scoring rules and weight settings for various types of quality issues;

[0075] Quality issues mainly include:

[0076] 1) Problems such as missed data and incorrect data conversion recorded during the connection process monitoring;

[0077] 2) When compiling data, problems such as incorrect data format, incorrect data value precision, and non-standard data content are discovered using the data verification rules;

[0078] 3) Issues discovered and recorded after manually reviewing the data structure and content.

[0079] In order to improve the planning and standardization of external data connection operations with complex data structures and ensure data integrity and consistency, a general data connection process specification is proposed based on the aforementioned data model and connection template design. It mainly includes three steps: connection task creation and template configuration, connection task execution and process monitoring, and connection data compilation and quality assessment. Figure 2 .

[0080] 1) Create a new task and configure a template

[0081] First, create an induction task. If there is an available induction template, associate it with the induction task; if there is no reusable induction template, you need to create a new induction template.

[0082] In the connection template configuration, it is necessary to configure the data source information, connection data model information, connection filtering condition information, connection conversion rules, etc. of the source and destination ends respectively. The entire template configuration and each configuration step can be quickly configured by searching and adjusting the configuration information saved in the selection system.

[0083] In addition, you can also configure execution parameters for the induction task, including timed execution configuration, execution performance parameter settings, etc.

[0084] 2) Task execution and process monitoring

[0085] After completing the induction task configuration, you can execute the induction task.

[0086] When executing the connection task, according to the carefully described connection template, the code can be generated and executed by automatically parsing the template to complete the data connection process.

[0087] During the execution of the induction task, activities such as induction template verification, induction template parsing, and induction code execution will generate some process information, which needs to be recorded in the induction task log.

[0088] In order to monitor the execution progress of the induction task, a graphical interactive interface can be provided to show the user the induction progress, data source information, storage location information, elapsed time, remaining time and other information (optional).

[0089] 3) Data compilation and quality assessment

[0090] After executing the induction task and saving the external data to the local database, the data needs to be further compiled and quality assessed, and then the data that meets the quality requirements is retained.

[0091] First, you can set data validation rules to automatically validate the imported data and find problems in the data. These rules can be mainly divided into two categories: field validation rules and data table validation rules.

[0092] Then, based on the problems found, you can set data processing rules and perform some operations such as batch filling and replacement of data.

[0093] Quality problems in the data can also be corrected by manually reviewing and compiling the data, where data quality problems can be automatically discovered by the verification rules and prompted to the user.

[0094] Finally, we review and summarize the data quality issues obtained and recorded from multiple channels, including obtaining quality issues that occur during the connection process from the connection monitoring log files, obtaining and recording data quality issues discovered based on verification rules during compilation, and manually recording quality issues during compilation, etc. We conduct a comprehensive evaluation of the quality of the connection data to decide whether to save the data.

[0095] In summary, based on the data model and interface template design, a general data interface process specification is proposed, which mainly includes interface task creation, interface template configuration (reuse), interface task execution and process monitoring, interface data compilation and quality assessment, etc. It can support the planning and normalization of external data with complex data structures, standardize interface operations, and ensure data integrity and consistency.

[0096] Taking the aircraft platform and technical parameter data model in a certain system as an example, the application mode and function of the method of the present invention are explained.

[0097] 1) Analysis of the data structure to be introduced

[0098] It is necessary to access the platform and technical parameter data of certain aircraft models in a database. The relevant data tables include entity tables such as aircraft model information table, aircraft sensor technical parameter table, aircraft engine technical parameter table, and aircraft type, country, etc. Since there is a many-to-many relationship between aircraft model and sensor model, aircraft model and engine model, it is necessary to add a special aircraft-sensor relationship table and aircraft-engine relationship table to describe this relationship.

[0099] The above mentioned data tables and their data element analysis are shown in Table 1.

[0100] Table 1 Aircraft platform and technical parameter data structure composition

[0101]

[0102] Note: The data tables and data elements actually used to describe the aircraft platform and technical parameters are relatively complex, and only some of the contents are listed in the above table as examples.

[0103] 2) Metadata structure design for storing data model information

[0104] The information of the linked data model is recorded in three metadata tables, namely, the data table metadata table, the data field metadata table, and the data table relationship metadata table, as shown in Table 2, Table 3, and Table 4 below.

[0105] Table 2 Data table metadata table

[0106]

[0107] Table 3 Data field metadata table

[0108]

[0109] Table 4 Data table relationship metadata table

[0110]

[0111] 3) Visualized data model construction process

[0112] Build data models on a visual interface. Figure 3 and Figure 4 A schematic diagram of the visualization configuration process is given.

[0113] exist Figure 3 In the visualization interface, a list of related data tables is listed on the left side, and marked as entity tables, relationship tables, dictionary tables, etc. Drag the aircraft basic information table as the central table to the interface and display it as a circular icon; right-click on the icon to configure the relationship between the table and other data tables.

[0114] exist Figure 4 In the diagram, the relationship between the center table and the other two data tables has been configured. The oval icon represents an entity table (sensor technical parameter table), the diamond icon represents a dictionary table (aircraft type table), and the line between the icons represents the association between the two tables.

[0115] The name, type and other table description information of the data table represented by each icon will be stored in the data table metadata table and automatically assigned a unique identifier; the field name, format and other information of the data field in the data table represented by each icon will be stored in the data field metadata table and automatically assigned a unique identifier; the association relationship information on the connection line, including the unique identifiers of the data tables on both sides and the unique identifiers of the associated data fields, will be stored in the table relationship metadata table.

[0116] 4) Data integration based on integration process specifications

[0117] According to the data connection process specification in the invention content, the entire data connection process is completed.

[0118] In one embodiment, a visual data connection device based on a data model is provided, comprising: a description information acquisition module, a connection data model construction module, a description template filling module and a connection task execution module, wherein:

[0119] The description information acquisition module is used to obtain and improve the description information of all data tables on the data source side, and mark the table type of each data table; the table types include: entity table, relationship table and dictionary table;

[0120] The connection data model construction module is used to select an entity table containing identification information of the business object from the data table at the data source end as the central table of the connection data model for the business object to be connected, select entity tables and dictionary tables related to the central table that can describe the attributes of the business object to add to the connection data model, and configure the relationship information between the data tables in the connection data model;

[0121] The description template filling module is used to store the data table description information in the access data model, the description information of the data fields in the data table, and the relationship information between the data tables into the pre-built multi-dimensional metadata description template to obtain the metadata description model corresponding to the business object; wherein the multi-dimensional metadata description template specifically includes: a data table metadata table, a data field metadata table, and a data table relationship metadata table; the data table metadata table is used to describe the metadata information of all data tables in the data model corresponding to the business data object; one business data object corresponds to one data model; the data field metadata table is used to describe the metadata information of all data fields contained in each data table in the data model; the data table relationship metadata table is used to describe the metadata information of the relationship between all data tables in the data model;

[0122] The induction task execution module is used to design the induction template in combination with the metadata description model configuration and complete the data induction based on the induction template.

[0123] For the specific definition of the visual data connection device based on the data model, please refer to the definition of the visual data connection method based on the data model above, which will not be repeated here. Each module in the above-mentioned visual data connection device based on the data model can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0124] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 5 As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer 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 network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a visual data connection method based on a data model is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

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

[0126] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method in the above embodiment when executing the computer program.

[0127] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method in the above embodiment are implemented.

[0128] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0129] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are 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.

[0130] The above embodiments only express several implementation methods of the present application, and the descriptions thereof 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 a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A visual data connection method based on a data model, characterized in that: The method comprises: Obtain and complete the description information of all data tables at the data source end, and mark the table type of each data table; the table types include: entity table, relationship table and dictionary table; For the business object to be linked, select an entity table containing the identification information of the business object from the data table on the data source end as the central table of the linked data model, select the entity table and dictionary table related to the central table that can describe the attributes of the business object and add them to the linked data model, and configure the relationship information between the data tables in the linked data model; The data table description information in the access data model, the description information of the data fields in the data table, and the relationship information between the data tables are stored in a pre-built multi-dimensional metadata description template to obtain the metadata description model corresponding to the business object; the multi-dimensional metadata description template specifically includes: a data table metadata table, a data field metadata table, and a data table relationship metadata table; the data table metadata table is used to describe the metadata information of all data tables in the data model corresponding to the business data object; one business data object corresponds to one data model; the data field metadata table is used to describe the metadata information of all data fields contained in each data table in the data model; the data table relationship metadata table is used to describe the metadata information of the relationship between all data tables in the data model; Combining the metadata description model configuration to design an induction template, and completing data induction based on the induction template; Select an entity table containing business object identification information from the data table on the data source side as the central table of the access data model, select entity tables and dictionary tables related to the central table that can describe business object attributes and add them to the access data model, and configure the relationship information between the data tables in the access data model, including: Select an entity table containing identification information of a business object from a data table at the data source end as a central table for the linked data model, and display it on the visualization interface as a first icon; An entity table that can describe the attributes of a business object and is related to the central table is selected as another entity table for the data model, and is displayed on the visualization interface with a second icon. A line is drawn between the existing entity tables formed by the central table and the other entity tables on the visualization interface, and the corresponding associated fields between the two entity tables are marked on the line. If the two entity tables are associated through a relationship table, the corresponding relationship table and the associated fields between the two entity tables and the relationship table need to be marked on the line. A dictionary table that can describe business object attributes related to the central table is selected as the dictionary table for the linked data model, and is displayed as a third icon. A line is drawn between the existing entity table and the dictionary table on the visual interface, and the corresponding associated fields between the entity table and the dictionary table are marked on the line.

2. The method according to claim 1, characterized in that In the multi-dimensional metadata description template: Each row in the data table metadata table records: the identifier, name, description and table type of a specific data table; table types include: entity table, relationship table and dictionary table; Each row in the data field metadata table records: the identifier, name, data table to which it belongs, description, data type, length, precision, dimension, access control level and format constraint information of a specific data field; Each row in the data table relationship metadata table records: the relationship between two specific data tables, specifically including the identifiers of the two data tables, the data field identifiers that reference each other in the two data tables, and the relationship type between the two data tables; the relationship types include: one-to-many, many-to-one, one-to-one, and many-to-many.

3. The method according to claim 1, characterized in that Combining the metadata description model configuration to design an induction template, and completing data induction based on the induction template, including: Creating an induction task and associating an induction template with it; the induction template includes data source information, data destination information, metadata description model information, induction filtering rules, induction data conversion rules, induction data verification rules, and induction data quality evaluation rules; Automatically parse the introduction template to execute the introduction task.

4. The method according to claim 3, characterized in that In the lead template: The data source information includes: data source type, data source access address, data source name and data source description; The data purpose information includes the data purpose type, the data purpose access address, the data purpose name, and the data purpose description; The access filtering rules filter out the data content that needs to be accessed from the central table by limiting the filtering conditions of each data field on the central table, and extract the required data content from the related tables through the relationship information between the data tables in the metadata description model information; The data conversion rules are configured and recorded for the corresponding data field format conversion rules of the source and destination ends, supporting the automatic conversion of the source data format to the destination data format; The data verification rules are used to verify the standardization, integrity and consistency of the data after it is imported to the local area. The quality evaluation rules for imported data are used to comprehensively evaluate the quality of imported data to decide whether to save the data.

5. The method according to claim 4, characterized in that The imported data validation rules include field validation, entity validation, and relationship validation; Field validation includes non-emptiness validation, value range validation, and format validation; Entity verification includes entity data element integrity verification and entity data duplication verification; Relationship verification includes consistency verification of the relationship between entity tables and consistency verification of the relationship between entity tables and dictionary tables.

6. The method according to claim 4, characterized in that The configuration of the data quality evaluation rules includes: scoring rules and weight settings for various types of quality issues; The quality issues mentioned include: 1) Problems with missed data and incorrect data conversion recorded during the connection process monitoring; 2) Problems such as incorrect data format, incorrect data value precision, and non-standard data content discovered by using the data verification rules during data compilation; 3) Issues discovered and recorded after manually reviewing the data structure and content.

7. The method according to claim 1, characterized in that The induction template also includes: induction performance parameter information, which is used to configure the induction performance parameters when executing the induction task, including: whether it is multi-threaded, and the size of the occupied data cache.

8. A visual data connection device based on a data model, characterized in that: The device comprises: A description information acquisition module is used to acquire and improve the description information of all data tables at the data source end, and mark the table type of each data table; the table types include: entity table, relationship table and dictionary table; The connection data model construction module is used to select an entity table containing identification information of the business object from the data table at the data source end as the central table of the connection data model for the business object to be connected, select entity tables and dictionary tables related to the central table that can describe the attributes of the business object to add to the connection data model, and configure the relationship information between the data tables in the connection data model; The description template filling module is used to store the data table description information in the access data model, the description information of the data fields in the data table, and the relationship information between the data tables into the pre-built multi-dimensional metadata description template to obtain the metadata description model corresponding to the business object; wherein the multi-dimensional metadata description template specifically includes: a data table metadata table, a data field metadata table, and a data table relationship metadata table; the data table metadata table is used to describe the metadata information of all data tables in the data model corresponding to the business data object; one business data object corresponds to one data model; the data field metadata table is used to describe the metadata information of all data fields contained in each data table in the data model; the data table relationship metadata table is used to describe the metadata information of the relationship between all data tables in the data model; A connection task execution module, used to configure and design a connection template in combination with the metadata description model, and complete data connection based on the connection template; The access data model construction module is also used to select an entity table containing business object identification information from the data table at the data source end as the central table of the access data model, and display it on the visualization interface with a first icon; select an entity table related to the central table that can describe the business object attributes as other entity tables of the access data model, and display it on the visualization interface with a second icon, connect the existing entity tables consisting of the central table and other entity tables on the visualization interface, and mark the corresponding association fields between the two entity tables on the line; if the two entity tables are associated through a relationship table, the corresponding relationship table and the association fields between the two entity tables and the relationship table need to be marked on the line; select a dictionary table related to the central table that can describe the business object attributes as the dictionary table of the access data model, and display it with a third icon, connect the existing entity table and the dictionary table on the visualization interface, and mark the corresponding association fields between the entity table and the dictionary table on the line.

Citation Information

Cited By

  • User-oriented visual data model design method

    CN119917582A