A metadata model-based full-link dynamic attribute extension method and system

By using a full-link dynamic attribute extension method based on a metadata model, database structures and front-end pages are automatically generated, solving the problems of insufficient flexibility and limited adaptability of the underlying architecture in enterprise-level projects, and achieving dynamic attribute management with zero-coding real-time response and high reusability.

CN122431663APending Publication Date: 2026-07-21NINGBO HOLLYSYS INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
NINGBO HOLLYSYS INTELLIGENT TECH CO LTD
Filing Date
2026-04-10
Publication Date
2026-07-21

AI Technical Summary

Technical Problem

In enterprise-level project development, existing technologies suffer from insufficient flexibility, chaotic metadata management, and limited adaptability of the underlying architecture, resulting in long response cycles for dynamic attribute management tools, a large amount of repetitive development work, and low cross-project reuse rates.

Method used

A full-link dynamic attribute extension method based on a metadata model is adopted. Dynamic attribute definition information is obtained through a visual interface, a unified metadata model is constructed, and a dynamic parsing engine is used to automatically generate the database structure, backend validation logic and frontend pages, achieving full-link extension without manual coding.

Benefits of technology

It achieves end-to-end zero-coding dynamic expansion, shortens the response cycle to real-time effectiveness, improves system flexibility and reusability, reduces underlying customization costs, and enhances data query efficiency and security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122431663A_ABST
    Figure CN122431663A_ABST
Patent Text Reader

Abstract

The application discloses a kind of full-link dynamic attribute extension methods based on metadata model, comprising: obtaining the dynamic attribute definition information input by user through visual interface, and unified metadata model is constructed based on the dynamic attribute definition information;Dynamic analysis engine is called to the unified metadata model is parsed, and attribute configuration parameter is extracted;Based on the attribute configuration parameter, automatically generate database structure update instruction, to automatically establish main table and the extension attribute table associated with the main table by main foreign key in underlying database;Based on the attribute configuration parameter, automatically generate the back-end check logic rule corresponding to the dynamic attribute definition information;Based on the attribute configuration parameter, automatically render the front-end form page corresponding to the dynamic attribute definition information in front-end application, to realize the full-link dynamic attribute extension without manual coding.It realizes the high compatibility of underlying architecture and the high efficiency of data retrieval.The application introduces plug-in adaptation layer, can seamlessly dock diversified enterprise intranet framework and localization database, greatly reduces underlying customization cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computers, and in particular to a method and system for extending dynamic attributes across the entire data link based on a metadata model. Background Technology

[0002] In enterprise-level project development and iteration, business requirements often face frequent changes. When a business system needs to dynamically add new data attributes, traditional development models require simultaneous modifications to front-end form pages, back-end validation logic, and underlying database table structures, resulting in a large amount of repetitive coding. This type of repetitive development workload often accounts for more than 30% of the overall project. Existing dynamic attribute management tools generally suffer from several structural defects: First, they lack flexibility. Traditional attribute extensions heavily rely on hard-coded or fixed XML configuration files. Adding new attributes requires modifying the source code and restarting the entire system to take effect, resulting in a requirement response cycle of 1 to 2 weeks. Second, metadata management is extremely chaotic. It fails to systematically integrate metadata describing attribute types, structural metadata describing entity relationships, and management metadata describing permissions, resulting in extremely low attribute reuse rates across projects. Third, there are limitations in underlying architecture adaptability. General-purpose attribute extension tools often cannot directly adapt to enterprise-specific intranet frameworks or domestic databases, requiring expensive customization development, and compatibility is difficult to guarantee. Summary of the Invention

[0003] To address the aforementioned issues, this invention proposes a full-link dynamic attribute extension method based on a metadata model, comprising: acquiring dynamic attribute definition information input by a user through a visual interface, and constructing a unified metadata model based on the dynamic attribute definition information; calling a dynamic parsing engine to parse the unified metadata model and extract attribute configuration parameters; automatically generating database structure update instructions based on the attribute configuration parameters to automatically establish a main table and an extended attribute table associated with the main table via primary and foreign keys in the underlying database; automatically generating backend validation logic rules corresponding to the dynamic attribute definition information based on the attribute configuration parameters; and automatically rendering a frontend form page corresponding to the dynamic attribute definition information in the frontend application based on the attribute configuration parameters, thereby achieving full-link dynamic attribute extension without manual coding.

[0004] Furthermore, the unified metadata model includes descriptive metadata, structural metadata, and management metadata; The descriptive metadata includes attribute names, data type definitions, and data validation rules; The structural metadata includes entity mapping relationships and attribute inheritance rules; The management metadata includes attribute permission control policies and version change logs.

[0005] Furthermore, the step of automatically generating backend validation logic rules corresponding to the dynamic attribute definition information based on the attribute configuration parameters includes: Extract the data validation rules from the description metadata. The data validation rules include at least one or more of the following: length limit, mobile phone number format validation, email address encoding format validation, and regular expressions. The data verification rules are encapsulated into executable backend interception and verification code logic, and automatically mounted at the server-side interface layer.

[0006] Furthermore, the step of automatically generating database structure update instructions based on the attribute configuration parameters to automatically create a main table and an extended attribute table associated with the main table via primary and foreign keys in the underlying database includes: Extract the entity mapping relationship from the structure metadata, wherein the entity mapping relationship includes at least one-to-one association relationship and one-to-many association relationship; Through a plug-in adaptation layer, the entity mapping relationship is transformed into database table creation and update statements that match the dialect of the target underlying database, and then automatically sent out for execution. The target underlying database includes an enterprise intranet framework database or a domestically produced database.

[0007] Furthermore, after establishing the main table and the extended attribute table associated with the main table via primary and foreign keys, the process further includes: The primary and foreign key association mapping relationship between the main table and the extended attribute table, as well as the frequently accessed extended attribute data, are loaded into the cache layer of the supporting technology layer; In response to a data query request for the dynamic attribute, the target attribute data is extracted from the cache layer and returned first, so as to improve the query efficiency of extended attribute data and the performance of business applications.

[0008] Furthermore, the rendering of the front-end form page and the data access of the back-end interface are also constrained by the management metadata: Parse the attribute permission control policy in the management metadata to determine the read and write permission level of the current operating subject; If the permission level is read-only, the corresponding dynamic attribute input box will be rendered as uneditable on the front-end form page, and modification or deletion requests for the dynamic attribute will be intercepted on the back-end.

[0009] The second aspect of this application discloses a full-link dynamic attribute extension system based on a metadata model, comprising: a metadata definition module, used to acquire dynamic attribute definition information input by the user through a visual interface, and to construct a unified metadata model based on the dynamic attribute definition information; The dynamic parsing engine module is used to parse the unified metadata model and extract attribute configuration parameters; The database generation module is used to automatically generate database structure update instructions based on the attribute configuration parameters, so as to automatically create a main table and an extended attribute table associated with the main table through a primary and foreign key in the underlying database. The backend validation generation module is used to automatically generate backend validation logic rules corresponding to the dynamic attribute definition information based on the attribute configuration parameters. The front-end rendering module is used to automatically render the front-end form page corresponding to the dynamic attribute definition information in the front-end application based on the attribute configuration parameters.

[0010] Furthermore, the system also includes: a plug-in adaptation module, set in the supporting technology layer, used to interface with different enterprise intranet frameworks and domestic databases, so as to be compatible with the execution of the database structure update instructions; The caching support module is used to cache the associated data between the main table and the extended attribute table to improve the query efficiency of business data.

[0011] A third aspect of this application discloses an electronic device, comprising: a processor; a memory for storing a computer program; wherein the processor executes the computer program to implement the method described above.

[0012] The fourth aspect of this application discloses a computer-readable storage medium having a computer program stored thereon, characterized in that the computer program, when executed by a processor, implements the above-described method.

[0013] In summary, compared with existing technologies, this application has the following significant advantages: First, it achieves dynamic expansion with zero coding across the entire chain, greatly improving system flexibility. Through a unified metadata model, upon receiving a new attribute definition, the dynamic parsing engine can automatically generate database structure update instructions for the main table and extended tables, and simultaneously automatically generate backend validation logic and render the frontend form page. This mechanism completely eliminates the drawbacks of traditional source code modification and system restarts, shortening the response cycle from weekly to real-time, significantly improving overall enterprise operational efficiency. Second, it constructs a highly reusable, systematic metadata model. This invention innovatively abstracts metadata into a three-layer architecture: descriptive metadata, structural metadata, and management metadata. By uniformly integrating data types, entity mapping relationships, and read / write permission policies, it achieves high reusability across projects and scenarios, significantly reducing the workload of repetitive system-level development. Third, it achieves high compatibility of the underlying architecture and high efficiency in data retrieval. This invention introduces a plug-in adaptation layer, which can seamlessly connect to diverse enterprise intranet frameworks and domestic databases, significantly reducing the cost of underlying customization. Attached Figure Description

[0014] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0015] Figure 1 This is a flowchart provided in an exemplary embodiment of the present invention; Detailed Implementation

[0016] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0017] This embodiment provides a method for extending dynamic attributes across the entire metadata model, including: Step S10: Obtain the dynamic attribute definition information input by the user through the visual interface, and construct a unified metadata model based on the dynamic attribute definition information; Step S20: Call the dynamic parsing engine to parse the unified metadata model and extract attribute configuration parameters; Step S30: Based on the attribute configuration parameters, automatically generate a database structure update instruction to automatically create a main table and an extended attribute table associated with the main table through a primary and foreign key in the underlying database; Step S40: Based on the attribute configuration parameters, automatically generate backend validation logic rules corresponding to the dynamic attribute definition information; Step S50: Based on the attribute configuration parameters, automatically render the front-end form page corresponding to the dynamic attribute definition information in the front-end application to achieve end-to-end dynamic attribute extension without manual coding.

[0018] In some embodiments, the unified metadata model includes descriptive metadata, structural metadata, and administrative metadata; The descriptive metadata includes attribute names, data type definitions, and data validation rules; The structural metadata includes entity mapping relationships and attribute inheritance rules; The management metadata includes attribute permission control policies and version change logs.

[0019] By abstracting and structuring the chaotic attribute configurations into three independent yet interconnected metadata layers—description, structure, and management—this systematic design not only ensures the rigor of dynamic attribute data definitions but also thoroughly solves the problem of chaotic metadata management in traditional tools. This allows the dynamic models generated by the configuration to be seamlessly migrated and reused at a high rate as independent assets across different projects and enterprise applications.

[0020] In some embodiments, automatically generating backend validation logic rules corresponding to the dynamic attribute definition information based on the attribute configuration parameters includes: Extract the data validation rules from the description metadata. The data validation rules include at least one or more of the following: length limit, mobile phone number format validation, email address encoding format validation, and regular expressions. The data verification rules are encapsulated into executable backend interception and verification code logic, and automatically mounted at the server-side interface layer.

[0021] By directly extracting the regular expressions, length, and formatting rules defined in the description metadata and automatically generating backend validation code, a closed-loop development model of "definition as validation" is achieved. This eliminates the workload of front-end and back-end developers manually writing tedious data validation logic, while ensuring the security and legitimacy of dynamically expanded data written to the database from the server-side perspective.

[0022] In some embodiments, the step of automatically generating database structure update instructions based on the attribute configuration parameters to automatically create a main table and an extended attribute table associated with the main table via primary and foreign keys in the underlying database includes: Extract the entity mapping relationship from the structure metadata, wherein the entity mapping relationship includes at least one-to-one association relationship and one-to-many association relationship; Through a plug-in adaptation layer, the entity mapping relationship is transformed into database table creation and update statements that match the dialect of the target underlying database, and then automatically sent out for execution. The target underlying database includes an enterprise intranet framework database or a domestically produced database.

[0023] By leveraging a plug-in adaptation layer, generic entity mapping relationships are dynamically translated into dialect scripts specific to certain databases. This design breaks through the architectural bottleneck of traditional attribute management tools being tightly bound to specific database vendors, enabling the system to smoothly integrate with highly customized enterprise intranet frameworks and various domestically produced databases at extremely low modification costs without altering the core logic, significantly improving the system's underlying compatibility.

[0024] In some embodiments, after establishing the main table and the extended attribute table associated with the main table through a primary foreign key, the following steps are further included: Load the primary foreign key association mapping relationship between the main table and the extended attribute table, as well as the frequently accessed extended attribute data, into the cache layer of the support technology layer; In response to a data query request for the dynamic attributes, preferentially extract the target attribute data from the cache layer and return it to improve the query efficiency of the extended attribute data and the business application performance.

[0025] Abandoning the traditional wide table or inefficient JSON serialization storage, adopting a normalized relational physical storage model of the main table plus the extended attribute table, ensures strong consistency of the extended data and the structured retrieval ability. Combined with the preheated cache layer design, it can respond to multi-table association query requests in complex businesses with extremely low latency, completely reversing the passive situation in traditional tools where extended attributes are only for front-end display and difficult to participate in business calculations, making the application efficiency achieve a qualitative leap.

[0026] In some embodiments, the rendering of the front-end form page and the data access of the back-end interface are also restricted by the management metadata: Analyze the attribute permission control policy in the management metadata to determine the read and write permission levels of the current operation subject; If the permission level is read-only, render the corresponding dynamic attribute input box as non-editable on the front-end form page, and intercept modification or deletion requests for this dynamic attribute at the back-end.

[0027] Directly sinking the security control mechanism to the management metadata layer realizes fine-grained read, write, and delete permission control. Through linkage parsing, the system automatically shields unauthorized input boxes on the front-end form and intercepts at the back-end interface, constructing a complete permission closed-loop from front-end rendering to back-end processing, ensuring data security and operation compliance in the dynamic expansion process of enterprise-level configuration systems.

[0028] This application also discloses a full-link dynamic attribute extension system based on a metadata model, which includes: A metadata definition module 10 for obtaining the dynamic attribute definition information input by the user through a visual interface and constructing a unified metadata model based on the dynamic attribute definition information; A dynamic parsing engine module 20 for parsing the unified metadata model and extracting attribute configuration parameters; A database generation module 30 for automatically generating database structure update instructions based on the attribute configuration parameters to automatically establish a main table and an extended attribute table associated with the main table through a primary foreign key in the underlying database; The backend validation generation module 40 is used to automatically generate backend validation logic rules corresponding to the dynamic attribute definition information based on the attribute configuration parameters. The front-end rendering module 50 is used to automatically render the front-end form page corresponding to the dynamic attribute definition information in the front-end application based on the attribute configuration parameters.

[0029] By explicitly abstracting plugin adaptation and caching into independent system-level support modules, the core dynamic parsing engine remains lightweight. This loosely coupled system architecture not only improves the overall stability and robustness of the system but also reserves standardized expansion interfaces for smooth integration with more types of external caching middleware or new domestic databases in the future.

[0030] In some embodiments, the system further includes: a pluggable adaptation module, set in the supporting technology layer, for interfacing with different enterprise intranet frameworks and domestic databases, so as to be compatible with the execution of the database structure update instructions; The caching support module is used to cache the associated data between the main table and the extended attribute table to improve the query efficiency of business data.

[0031] This application also discloses an electronic device, comprising: a processor; a memory for storing a computer program; wherein the processor executes the computer program to implement the method described above.

[0032] This application also discloses a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-described method.

[0033] For components that are functionally identical or similar, existing mature devices can be used for replacement, and the implementation method is not limited to the structure shown in this specification.

[0034] The present invention can also be implemented in the form of software, hardware, or a combination of software and hardware; wherein the software can be stored in a computer-readable medium and executed by a processor to perform the corresponding function.

[0035] Applicable computer-readable media include, but are not limited to, hard disks, flash memory, read-only memory (ROM), random access memory (RAM), and other media capable of storing program code.

[0036] The execution order of the steps described in the flowchart or logic block diagram can be adjusted or parallelized as needed, provided that it does not affect the implementation of the function.

[0037] The accompanying drawings referenced in this specification are for illustrative purposes only. Their dimensions, scale, or colors may be adjusted according to actual production needs. The reference numerals in the drawings should not be construed as limiting the scope of protection.

[0038] All the technical features disclosed in this invention can be combined in any way to form an interactive or collaborative structure, as long as the combination does not contradict each other or conflict with the technology.

[0039] Although embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations all fall within the scope of protection claimed by the present invention.

Claims

1. A method for extending dynamic attributes across the entire value chain based on a metadata model, characterized in that, include: Obtain dynamic attribute definition information input by the user through a visual interface, and construct a unified metadata model based on the dynamic attribute definition information; The dynamic parsing engine is invoked to parse the unified metadata model and extract attribute configuration parameters; Based on the attribute configuration parameters, a database structure update instruction is automatically generated to automatically create a main table and an extended attribute table that is associated with the main table through a primary and foreign key in the underlying database. Based on the attribute configuration parameters, backend validation logic rules corresponding to the dynamic attribute definition information are automatically generated. Based on the attribute configuration parameters, the front-end form page corresponding to the dynamic attribute definition information is automatically rendered in the front-end application to achieve end-to-end dynamic attribute extension without manual coding.

2. The method according to claim 1, characterized in that, The unified metadata model includes descriptive metadata, structural metadata, and management metadata; The descriptive metadata includes attribute names, data type definitions, and data validation rules; The structural metadata includes entity mapping relationships and attribute inheritance rules; The management metadata includes attribute permission control policies and version change logs.

3. The method according to claim 2, characterized in that, The automatic generation of backend validation logic rules corresponding to the dynamic attribute definition information based on the attribute configuration parameters includes: Extract the data validation rules from the description metadata. The data validation rules include at least one or more of the following: length limit, mobile phone number format validation, email address encoding format validation, and regular expressions. The data verification rules are encapsulated into executable backend interception and verification code logic, and automatically mounted at the server-side interface layer.

4. The method according to claim 2, characterized in that, The automatic generation of database structure update instructions based on the attribute configuration parameters, to automatically create a main table and an extended attribute table associated with the main table via primary and foreign keys in the underlying database, includes: Extract the entity mapping relationship from the structure metadata, wherein the entity mapping relationship includes at least one-to-one association relationship and one-to-many association relationship; Through a plug-in adaptation layer, the entity mapping relationship is transformed into database table creation and update statements that match the dialect of the target underlying database, and then automatically sent out for execution. The target underlying database includes an enterprise intranet framework database or a domestically produced database.

5. The method according to claim 1, characterized in that, After establishing the main table and the extended attribute table associated with the main table via primary and foreign keys, the process further includes: The primary and foreign key association mapping relationship between the main table and the extended attribute table, as well as the frequently accessed extended attribute data, are loaded into the cache layer of the supporting technology layer; In response to a data query request for the dynamic attribute, the target attribute data is extracted from the cache layer and returned first, so as to improve the query efficiency of extended attribute data and the performance of business applications.

6. The method according to claim 2, characterized in that, The rendering of the front-end form page and the data access of the back-end interface are also subject to the constraints of the managed metadata: Parse the attribute permission control policy in the management metadata to determine the read and write permission level of the current operating subject; If the permission level is read-only, the corresponding dynamic attribute input box will be rendered as uneditable on the front-end form page, and modification or deletion requests for the dynamic attribute will be intercepted on the back-end.

7. A full-link dynamic attribute extension system based on a metadata model, characterized in that, include: The metadata definition module is used to obtain dynamic attribute definition information input by the user through a visual interface, and to construct a unified metadata model based on the dynamic attribute definition information. The dynamic parsing engine module is used to parse the unified metadata model and extract attribute configuration parameters; The database generation module is used to automatically generate database structure update instructions based on the attribute configuration parameters, so as to automatically create a main table and an extended attribute table associated with the main table through a primary and foreign key in the underlying database. The backend validation generation module is used to automatically generate backend validation logic rules corresponding to the dynamic attribute definition information based on the attribute configuration parameters. The front-end rendering module is used to automatically render the front-end form page corresponding to the dynamic attribute definition information in the front-end application based on the attribute configuration parameters.

8. The system according to claim 7, characterized in that, The system also includes: a plug-in adaptation module, set in the supporting technology layer, used to connect to different enterprise intranet frameworks and domestic databases to be compatible with the execution of the database structure update instructions; The caching support module is used to cache the associated data between the main table and the extended attribute table to improve the query efficiency of business data.

9. An electronic device, characterized in that, include: processor; A memory for storing a computer program; the processor, when executing the computer program, implements the method as described in any one of claims 1 to 6.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1 to 6.