Logical physical connection mapping method and system based on element marking and medium
Through the feature tagging method, the semi-automated connection between big data components and resource models is realized, which solves the problem of high complexity of logical physical mapping, improves the accuracy and scalability of mapping, and reduces development complexity and learning costs. .
Patent Information
- Application Number
- CN202411120177.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2024-07-30
- Filing Date
- 2024-08-15
- Publication Date
- 2024-11-29
AI Technical Summary
The existing logical physical connection mapping is complex and time-consuming, especially difficult to achieve for ordinary users. The degree of convenience and automation is insufficient, resulting in high development complexity and high learning costs.
Using a feature tagging method, by creating resource models and configuring feature tags, users recommend labeling feature sets, and implementing connection and mapping between big data components and resource models based on marking information, providing a semi-automated mapping process.
It realizes convenient connection between different types of big data components and resource models, reduces development complexity and learning costs, improves mapping accuracy and scalability, and simplifies the use and management of big data components.
Smart Images

Figure CN119046182A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a method, system and medium for logical-physical connection mapping based on element marking. Background Art
[0002] With the development and innovation of big data technology and the diversified needs of the market, various types and versions of big data components have emerged. If big data components are directly accessed for business use, users need to have a deep understanding of the underlying details and be able to use the corresponding API or query language to operate. This is difficult for ordinary users and requires high training and learning costs, which is not suitable for business promotion. Therefore, big data components are usually connected and mapped with logical models. Through logical modeling, the complex and huge underlying data can be abstracted and simplified. At the same time, the connection and mapping relationship between big data components and logical models is also an important part of data processing and analysis, and related research and practice have also received more and more attention. Therefore, how to make the connection and mapping between logic and physics more convenient and achieve semi-automation / automation must be the development direction of big data systems.
[0003] Logical-physical connection mapping is a complex and time-consuming task. Currently, there are several main mapping methods: manual, metadata-driven, rule engine, and automatic learning and optimization. Among them, manual mapping is flexible but labor-intensive; metadata-driven mapping can improve consistency and maintainability, but is limited by metadata quality; rule engine mapping provides flexible configuration but requires specific technical knowledge; automated learning and optimization can automatically derive and optimize rules, but relies on training data and computing resources. Summary of the invention
[0004] In order to solve the shortcomings of existing logical-physical connection mapping that is complex and time-consuming, the present invention provides a logical-physical connection mapping method, system and medium based on element labeling, which drives the rapid connection and mapping of logical models and physical data through element labeling, and has good scalability and flexibility.
[0005] The present invention adopts the following technical solution:
[0006] In a first aspect, a logical-physical connection mapping method based on element marking includes:
[0007] According to the description attributes of the big data component, a resource model based on the big data component is created;
[0008] Based on the database connection requirements, build a logical-physical connection mapping adaptation strategy; based on the built element tag list, configure element tags for big data components;
[0009] Based on the logical-physical connection mapping adaptation strategy, a set of elements that need to be annotated for the resource model is recommended, the set of elements is recommended to the user for annotation, and the element tags of the resource model annotated by the user are received; wherein the tag content includes model tags and element tags;
[0010] Create database connections between big data components and resource models based on the configuration information of the logical-physical connection mapping adaptation strategy;
[0011] After the big data component is connected to the resource model, based on the element tags of the big data component and the element tags of the resource model, the matching information of the elements with the same tags in the big data component and the resource model is recommended to realize element mapping.
[0012] Preferably, the attribute types of the logical-physical connection mapping adaptation strategy include basic information and matching object information; the basic information includes policy code, policy Chinese name and scenario description; the matching object information includes model elements, supplementary rules and recommended element sets; wherein, the policy code is a unique code for the policy; the model element is a matching model element identifier; and the recommended element set is a feature set that needs to be labeled based on the recommended elements of the resource model.
[0013] Preferably, the matching object information is modified accordingly according to different big data components.
[0014] Preferably, the element tag list includes an element tag field and an element tag Chinese name field.
[0015] Preferably, configuring element tags for the big data component based on the constructed element tag list specifically includes:
[0016] Based on the value of the feature tag field in the constructed feature tag list, a corresponding value is configured in the feature tag field of the big data component library table; at the same time, a resource model name is configured in the attribute value field of the big data component library table.
[0017] Preferably, the model tag matches the resource model name configured in the attribute value field in the big data component library table; the element tag matches the value of the element tag field configured in the big data component library table.
[0018] Preferably, after receiving the element tags of the resource model annotated by the user, the method further includes:
[0019] Perform information completeness check. If any information is missing, the corresponding content will be fed back to the user for re-annotation or resource model elements will be added before the content is fed back to the user for re-annotation.
[0020] In a second aspect, a logical-physical connection mapping system based on element labeling includes:
[0021] A resource model creation module is used to create a resource model based on the big data component according to the description attributes of the big data component;
[0022] The big data component element tag configuration module is used to build a logical-physical connection mapping adaptation strategy based on database connection requirements; based on the built element tag list, configure element tags for the big data component;
[0023] The resource model element tag configuration module is used to recommend the element set that needs to be annotated for the resource model based on the logical-physical connection mapping adaptation strategy, recommend the element set to the user for tagging, and receive the element tags of the resource model annotated by the user; wherein the tag content includes model tags and element tags;
[0024] The component model connection module is used to create a database connection between the big data component and the resource model based on the configuration information of the logical-physical connection mapping adaptation strategy;
[0025] The element mapping module is used to recommend element matching information with the same tags in the big data component and the resource model based on the element tags of the big data component and the element tags of the resource model after the big data component is connected to the resource model to achieve element mapping.
[0026] In a third aspect, a computer device comprises a processor, a memory and a communication interface, wherein the memory stores a computer program, the computer program is configured to be executed by the processor, and the computer program includes instructions for executing the steps in a logical-physical connection mapping method based on element tags.
[0027] In a fourth aspect, a computer-readable storage medium stores a computer program, wherein the computer program enables a computer to execute to implement the element tag-based logical-physical connection mapping method.
[0028] The present invention has the following beneficial effects:
[0029] (1) The present invention recommends users to tag through unified element tags, combined with rule strategies, to generate the same parsing structure and realize the connection between different types of big data components and resource models; the present invention can decouple the upper-level resource model from the underlying big data components, shielding the technical complexity brought by the underlying diversified big data components; when it is necessary to replace or upgrade big data components such as underlying service components or underlying storage components, only the corresponding element tags and adaptation strategies need to be adjusted without affecting the upper-level resource model and application. This loosely coupled design helps to cope with changes in big data components and improve scalability and flexibility; at the same time, it can reduce development complexity and simplify learning costs, allowing R&D personnel in the business line to focus more on business applications and lower the threshold for R&D personnel to use big data components;
[0030] (2) In the present invention, the abstract concept is marked by data elements, and the previous specific mapping between tables and fields is abstracted into a conceptual match. The back-end big data components are mapped and associated with the front-end resource models, and the influence of different components is isolated. The automation of logical and physical connection mapping is realized, which not only greatly reduces the workload of benchmarking, improves the accuracy of mapping, reduces the difficulty of development, but also provides strong support for big data governance and analysis. At the same time, the core components of a certain scenario are specified through the adaptation strategy, which provides support for the implementation of subsequent scenario modeling.
[0031] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 A logical schematic diagram of a logical-physical connection mapping method based on element marking according to an embodiment of the present invention;
[0033] Figure 2 It is a flow chart of a logical-physical connection mapping method based on element marking according to an embodiment of the present invention;
[0034] Figure 3 It is an implementation flow chart of a logical-physical connection mapping method based on element marking according to an embodiment of the present invention;
[0035] Figure 4 A flowchart of element marking of a resource model according to an embodiment of the present invention;
[0036] Figure 5 A schematic diagram of a resource model based on big data components according to an embodiment of the present invention;
[0037] Figure 6 A schematic diagram of resource model marking according to an embodiment of the present invention;
[0038] Figure 7 A schematic diagram of mapping big data components and resource models according to an embodiment of the present invention;
[0039] Figure 8 It is a structural block diagram of a logical-physical connection mapping system based on element marking according to an embodiment of the present invention;
[0040] Fig. 9 Schematic diagram of the structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0041] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention; it is obvious that the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments, and all other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making creative work are within the scope of protection of the present invention.
[0042] In the description of the present invention, it should be noted that the terms "comprises", "includes" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. 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 device including the element.
[0043] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, step identifiers S101, S102, S103, etc. are only used for convenient expression and do not represent the execution order. The corresponding execution order can be adjusted as needed.
[0044] When different subjects and personnel perform resource modeling, due to inconsistent habits and reference standards, the model element names, unique identifier representation methods and other contents are also inconsistent, so it is not convenient to carry out unified program development. The present invention proposes a logical-physical connection mapping method based on element marking, which drives the connection and mapping of logical models and physical data through element marking.
[0045] See also Figure 1As shown in the figure, in order to shield the problems of inconsistent description methods and program reuse at both ends, the elements of the two ends that need to be connected are marked with unified structures, and the adaptation strategy is designed according to the scenario requirements. By identifying the necessary information for connection in the strategy, the connection between the logical model and the physical data is realized, and mapping is performed based on the element markings at both ends. Among them, the element marking is a mark for the field, which is used to indicate that the field corresponds to a certain concept in the real world. For example, if a field is port, the field can be marked with ys-port, corresponding to the port number. The element marking is a mark that is separated from the specific library table structure and only focuses on the concept itself. The logical and physical connection through the element marking no longer focuses on the identifier of the field, but on the matching of the same concept. If the objects at both ends have the same concept and meet the adaptation strategy, they can be automatically matched for recommendation, and the connection is completed after the user confirms. With the accumulation of business knowledge, it is very necessary to achieve more accurate element marking recommendations in combination with learning technologies such as large models.
[0046] See also Figure 2 and Figure 3 As shown, a logical-physical connection mapping method based on element labeling is characterized in that it includes the following steps.
[0047] S101, creating a resource model based on the big data component according to the description attributes of the big data component.
[0048] Specifically, a big data component resource model is created according to different description attributes of different components, such as MySQL, Hive, etc.
[0049] S102, constructing a logical-physical connection mapping adaptation strategy based on database connection requirements; and configuring element tags for the big data component based on the constructed element tag list.
[0050] Taking JDBC connection as an example, based on the information required by JDBC connection, the logical-physical connection mapping adaptation strategy is designed. Based on this, the big data component is connected with the resource model attribute to achieve the recommendation of feature tag. The description attributes of the logical-physical connection adaptation strategy are shown in Table 1.
[0051] Table 1 Logical and physical connection adaptation strategy attributes
[0052]
[0053] If the big data components are different, just modify the content of "matching object information" accordingly.
[0054] Based on the maintained knowledge of feature tags, configure feature tags for source-side big data components.
[0055] S103, based on the logical-physical connection mapping adaptation strategy, recommend a set of elements that need to be annotated for the resource model, recommend the set of elements to the user for annotation, and receive the element tags of the resource model annotated by the user; wherein the tag content includes a model tag and an element tag.
[0056] See also Figure 4 As shown, the main execution logic of S103 is: according to the information such as "model elements, supplementary rules" in the logical and physical connection adaptation strategy, match the element tags of the model layer, and recommend the element set that needs to be annotated; and push these information that needs to be annotated to the user for annotation; after the user submits the annotation, the information completeness is automatically checked. If the information is missing, the corresponding content is fed back to the user to re-annotate or add model elements until the information is matched completely. Modelers are the ones who know the model information best. By annotating the model, they can interpret the meaning of the model to the greatest extent.
[0057] S104: Create a database connection between the big data component and the resource model based on the configuration information of the logical-physical connection mapping adaptation strategy.
[0058] The JDBC connection method that defines the logical and physical connection is: jdbc:database type: / / database address:database port / database table name / parameter 1¶meter 2&...
[0059] By reading the logical-physical connection adaptation information table (i.e., the instantiated Table 1, which refers to the record information after filling in the specific content according to the requirements of Table 1), the connection information between the resource model and the big data component is identified (the resource model is marked with corresponding elements according to the "recommended element set, factorsList" in the adaptation strategy; the marked content is the parameter information of the connection. The JDBC program identifier then identifies the corresponding parameters and generates a connection string for connection. The program identifier is a piece of code written according to the parameter information and solidified as a tool), a JDBC connection URL is generated, based on which the connection between the two ends is realized. At the same time, this step is implemented by the program, and there is no need for the implementer to reconfigure it (develop once and reuse).
[0060] S105, after the big data component is connected to the resource model, based on the element tags of the big data component and the element tags of the resource model, the matching information of the elements with the same tags in the big data component and the resource model is recommended to realize element mapping.
[0061] Specifically, based on the element tags, matches with the same tags are recommended for both ends of the connection, and a mapping relationship is established after confirmation by the user.
[0062] Through the above steps S101 to S105, semi-automation of logical and physical connection and mapping can be achieved. The implementation personnel change from the previous customized development to focusing on the marking of elements and modifying the adaptation strategy.
[0063] The following uses the MySQL big data component as an example to illustrate the logical and physical connections.
[0064] Step 1: Create a MySQL big data component resource model.
[0065] Using UML modeling, big data components are divided into four categories: instance, library, table, and field. The relationship between classes is combined into a MySQL big data component resource model. The unique identifier of the stored resource model is MySQL. For details of the resource model, see Figure 5 shown.
[0066] There is no limitation on the expression of resource models, and you can choose a suitable model expression according to business needs.
[0067] Step 2: Fill in the logical and physical adaptation method, including the following steps.
[0068] a) Maintain good element marking
[0069] As shown in Table 2, first of all, the knowledge of feature tags should be maintained to ensure that the entire big data component is consistent with the understanding of feature tags in the resource model.
[0070] Table 2 List of element markings
[0071]
[0072]
[0073] b) For the MySQL big data resource model, the necessary information for the connection is: IP address, port, authentication type, authentication information, and authentication user. Therefore, the logical and physical connection adaptation strategy of MySQL is shown in Table 3.
[0074] Table 3 MySQL logical and physical connection adaptation strategy
[0075]
[0076] c) For the source end big data component library table, identify the element tags as shown in Table 4 below.
[0077] Table 4 MySQL big data component information
[0078] Property Name Attribute English name Property Value Feature tagging Component Name bigDataComponentName MySQL Component Chinese name bigDataComponentCnName MySQL Big Data Component Version Number version 8.0.1 ip ip 129.168.0.1 ys.ip port port 3306 ys.port Authentication authenticationMethod 01(Account and Password) ys.rzlx Certification Information authenticationPassword ******** ys.rzxx Authenticating Users authenticationUser admin ys.userid Notes explanatory Note — Table name identifier test ys.tableName …… …… …… ……
[0079] You can also modify / add element tags as needed later. The big data component administrator only needs to complete the configuration once, without repeated configuration.
[0080] Step 3: Combine the recommended elements and tag the resource model.
[0081] Through the logical-physical connection mapping adaptation strategy, users are reminded to mark the elements of the big data component resource model. The marking content is divided into model marking and element marking. Model marking refers to the matching of component name and model name (or model type) in Table 4; element marking refers to the matching of elements and model elements under this type of component. For marking results, see Figure 6 shown.
[0082] This method focuses on explaining the implementation principles and methods of the method. No additional requirements or explanations are made for the resource model storage and element tag storage involved.
[0083] Step 4: Identify the feature tag object and create a JDBC connection.
[0084] Based on the above tag information, generate the JDBC connection URL: jdbc:mysql: / / 129.168.0.1:3306 / test
[0085] Divided into two tags: jdbc and mysql.
[0086] Among them, JDBC (Java DataBase Connectivity) is a set of APIs that use Java language to connect to and operate relational databases; jdbc here is a connection method. When other methods are selected to connect to the database, jdbc will be replaced with other types, such as ODBC, PHP, ADO.NET, etc.
[0087] The tag information of mysql comes from the model name when the resource model of the big data component is created, that is, Figure 5 The name saved when the resource model is created is shown.
[0088] This is equivalent to first matching the attribute value of the component name in Table 4 with the resource model name or type, and then matching the element information. Based on the matching information, the necessary parameters for the connection are identified.
[0089] Step 5: Implement element mapping based on the element tags at both ends.
[0090] After the connection is established, see Figure 7 As shown, matching information of elements with the same tags at both ends is recommended, and a mapping relationship is established after confirmation by the user.
[0091] See also Figure 8As shown, the present invention also discloses a logical-physical connection mapping system based on element marking, comprising:
[0092] The resource model creation module 801 is used to create a resource model based on the big data component according to the description attributes of the big data component;
[0093] The big data component element tag configuration module 802 is used to construct a logical-physical connection mapping adaptation strategy based on database connection requirements; configure element tags for the big data component based on the constructed element tag list;
[0094] The resource model element tag configuration module 803 is used to recommend the element set that needs to be annotated for the resource model based on the logical-physical connection mapping adaptation strategy, recommend the element set to the user for tagging, and receive the element tags of the resource model annotated by the user; wherein the tag content includes model tags and element tags;
[0095] The component model connection module 804 is used to create a database connection between the big data component and the resource model based on the configuration information of the logical-physical connection mapping adaptation strategy;
[0096] The element mapping module 805 is used to recommend matching information of elements with the same tags in the big data component and the resource model based on the element tags of the big data component and the element tags of the resource model after the big data component is connected to the resource model, so as to realize element mapping.
[0097] A specific implementation of a logical-physical connection mapping system based on element marking and a logical-physical connection mapping method based on element marking are not repeatedly described in this embodiment.
[0098] See also Fig. 9 9 is a schematic diagram of the structure of the computer device provided by the present invention. The computer device 900 includes a processor 910, a memory 920 and a communication interface 930. The processor 910, the memory 920 and the communication interface 930 are interconnected via a bus 950.
[0099] The memory 920 stores a computer program 940 , and the computer program 940 is configured to be executed by the processor 910 .
[0100] If the Internet end host is a structure of the above-mentioned computer device, the computer program 940 includes steps for executing a logical-physical connection mapping method based on element tags.
[0101] In addition, the embodiment of the present application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program can be operated to cause a computer to execute to implement part or all of the steps of any method described in the embodiment of the method for mapping logical physical connections based on element tags. The computer program product can be a software installation package, and the computer includes a computer device or a server.
[0102] The above is only a preferred specific implementation of the present invention; however, the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical solution and its improved conception within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. A logical-physical connection mapping method based on element labeling, It is characterized in that include: According to the description attributes of the big data component, a resource model based on the big data component is created; Based on the database connection requirements, build a logical-physical connection mapping adaptation strategy; based on the built element tag list, configure element tags for big data components; Based on the logical-physical connection mapping adaptation strategy, a set of elements that need to be annotated for the resource model is recommended, the set of elements is recommended to the user for annotation, and the element tags of the resource model annotated by the user are received; wherein the tag content includes model tags and element tags; Create database connections between big data components and resource models based on the configuration information of the logical-physical connection mapping adaptation strategy; After the big data component is connected to the resource model, based on the element tags of the big data component and the element tags of the resource model, the matching information of the elements with the same tags in the big data component and the resource model is recommended to realize element mapping.
2. The method for mapping logical and physical connections based on element marking according to claim 1, It is characterized in that The attribute types of the logical-physical connection mapping adaptation strategy include basic information and matching object information; the basic information includes policy code, policy Chinese name and scenario description; the matching object information includes model elements, supplementary rules and recommended element sets; wherein the policy code is the unique code of the policy; the model element is the matching model element identifier; the recommended element set is a feature set that needs to be labeled based on the recommended elements of the resource model.
3. The method for logical-physical connection mapping based on element marking according to claim 2, It is characterized in that The matching object information is modified accordingly according to different big data components.
4. The method for mapping logical and physical connections based on element marking according to claim 1, It is characterized in that The element tag list includes an element tag field and an element tag Chinese name field.
5. The method for logical-physical connection mapping based on element marking according to claim 4, It is characterized in that Based on the constructed feature tag list, configure feature tags for the big data component, including: Based on the value of the feature tag field in the constructed feature tag list, a corresponding value is configured in the feature tag field of the big data component library table; at the same time, a resource model name is configured in the attribute value field of the big data component library table.
6. The method for mapping logical and physical connections based on element marking according to claim 5, It is characterized in that The model tag matches the resource model name configured in the attribute value field in the big data component library table; the element tag matches the value of the element tag field configured in the big data component library table.
7. The method for logical-physical connection mapping based on element marking according to claim 1, It is characterized in that After receiving the element tags of the resource model annotated by the user, it also includes: Perform information completeness check. If any information is missing, the corresponding content will be fed back to the user for re-annotation or resource model elements will be added before the content is fed back to the user for re-annotation.
8. A logical-physical connection mapping system based on element labeling, It is characterized in that include: A resource model creation module is used to create a resource model based on the big data component according to the description attributes of the big data component; The big data component element tag configuration module is used to build a logical-physical connection mapping adaptation strategy based on database connection requirements; based on the built element tag list, configure element tags for the big data component; The resource model element tag configuration module is used to recommend the element set that needs to be annotated for the resource model based on the logical-physical connection mapping adaptation strategy, recommend the element set to the user for tagging, and receive the element tags of the resource model annotated by the user; wherein the tag content includes model tags and element tags; The component model connection module is used to create a database connection between the big data component and the resource model based on the configuration information of the logical-physical connection mapping adaptation strategy; The element mapping module is used to recommend matching information of elements with the same tags in the big data component and the resource model based on the element tags of the big data component and the element tags of the resource model after the big data component is connected to the resource model, so as to realize element mapping.
9. A computer device, It is characterized in that The method comprises a processor, a memory and a communication interface, wherein the memory stores a computer program, the computer program is configured to be executed by the processor, and the computer program comprises instructions for executing the steps in any one of the methods of claims 1 to 7.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, which enables a computer to execute to implement the method according to any one of claims 1 to 7.
