A low-code software application system with reusable models
Through the combination of model engine and graph database, knowledge graphs are automatically discovered and reused, which solves the problem of insufficient model reuse in low-code platforms, achieves efficient reuse and accurate matching of models, and improves productivity and functional integrity.
Patent Information
- Application Number
- CN202410833473.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-06-26
AI Technical Summary
The lack of effective model reuse mechanism in low-code platforms results in models being wasted, affecting productivity and functional integrity.
Through the model engine and graph database, knowledge graphs are automatically discovered and reused, heterogeneous models are converted into RDF files and merged into a single graph, stored in the graph database, and corresponding code logic blocks are generated through the instance parsing engine, combined with the online learning module based on User feedback adjusts the weight and optimizes the recommendation algorithm.
It achieves efficient reuse of models, reduces the cumbersomeness and complexity of software development, improves productivity and functional integrity, and improves the accuracy of model matching.
Smart Images

Figure CN118377479B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of low-code application software development, and in particular, relates to a low-code software application system with reusable models. Background Art
[0002] Low-code development platform (LCDP) is a development platform that can quickly generate applications without coding or with a small amount of code. Application system developers only need to use the visual orchestration tools such as interface, logic, objects, and processes provided by the low-code development platform to complete a large amount of development work, reduce the uncertainty and complexity in software development, and thus greatly improve development efficiency, allowing enterprises to reduce development costs, lower technical barriers, quickly innovate applications, and achieve rapid trial and error, rapid development, and agile iteration. That is, through the method of visual application development, developers with different experience levels can use a graphical user interface, drag components and model-driven logic to create web pages and mobile applications.
[0003] The main goal of LCDP is to quickly build, develop, and deploy a highly reliable application system, so the reusability of LCDP models is very important. Different low-code platforms in similar fields tend to share models or some fragments of them. For example, retail systems tend to share some functional modules for customer, product, order, and payment management. In the absence of an effective discovery and reuse mechanism, these models are wasted and will be rebuilt from scratch in some scenarios. This will greatly waste the performance of the low-code platform, seriously affect the productivity of the low-code platform, and hinder the constraints of the functional integrity of the low-code system. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a low-code software application system with reusable models, which can realize the reusability of models, greatly reduce the tediousness and complexity of software development, and realize the production of enterprise-level application systems that meet the needs as quickly and easily as possible.
[0005] The technical solution adopted by the present invention to solve the above problems is: a low-code software application system with reusable models, specifically comprising:
[0006] A low-code platform for developing applications, accessing a model reuse tool, extracting data from the constructed model class name to trigger the model engine of the model reuse tool, and obtaining a model for the next step recommended by the knowledge graph that is automatically discovered and reused by the model engine when querying the graph database based on the extracted data;
[0007] The model reuse tool includes a model engine for querying a graph database and automatically discovering and reusing knowledge graphs.
[0008] A graph database, used to store knowledge graphs and manage them in a weighted manner;
[0009] The knowledge graph is constructed by merging RDF graphs from RDF files converted from heterogeneous models.
[0010] Compared with the prior art, the advantage of the present invention lies in that it converts heterogeneous models into homogeneous graphs, and then merges the homogeneous graphs into a single graph, which is stored in the graph database of the model reuse tool as the knowledge graph of the model. In the low-code platform, the constructed model class name is used as input, and the model engine queries the graph database to automatically discover and reuse the knowledge graph to predict the next modeling step, and parses the model into the corresponding code logic blocks through the instance parsing engine that relies on the low-code platform, so as to efficiently generate the corresponding domain model software system.
[0011] As an improvement, the model reuse tool also includes an insertion module for merging the RDF file converted from the newly built model on the low-code platform into the knowledge graph in the graph database, and training the graph database to update the weights. The newly built model is persisted in the graph database by converting the newly built model into an RDF file and merging it into the RDF graph in the graph database, and training the graph database again to update the weights.
[0012] Preferably, the model reuse tool also includes an online learning module for collecting feedback data from users when they build new models on the low-code platform and adjusting the weighted information of the model in the graph database; if the user selects and uses the model recommended by the model engine, the feedback data is positive, and the weight of the model is increased; if the user abandons or deletes the model recommended by the model engine, the feedback data is negative, and the weight of the model is reduced. When the user uses the model reuse tool, implicit feedback data will be collected, and the weighted information of the model data will be adjusted using the online learning algorithm Online Gradient Descent, realizing a dynamic learning mechanism based on user feedback, continuously optimizing the recommendation algorithm, and improving the accuracy of model matching.
[0013] Preferably, the weight update formula is: new weight = old weight + learning rate * feedback value; the learning rate is a parameter for the model reuse tool to adjust the weight step after receiving feedback data, which is used to adjust the amplitude of the model weight change. When the user selects and uses the recommended model, the feedback value is 1, and when the user abandons or deletes the recommended model, the feedback value is -1. Specifically, the learning rate determines the impact of each feedback on the model weight update: if the learning rate is set larger, the model weight update amplitude will be larger, on the contrary, if the learning rate is set smaller, the model weight update amplitude will be smaller; the appropriate learning rate can accelerate the model training process and avoid falling into the local optimal solution; in this low-code software application system, the learning rate is obtained by an online learning algorithm, such as an online gradient descent algorithm, and the learning rate is adjusted and optimized according to different application scenarios and data sets to achieve the best effect.
[0014] As a preferred method, N-grams algorithm is used to extract data from the constructed model class name. The class name semantics of the user-constructed model is analyzed to automatically discover and recommend related models to achieve high availability of the model.
[0015] Preferably, the Levenstein distance and WordNet synonyms are also used to extract data from the constructed model class names. In order to obtain matches from the model's graph database, even if the user has any typing errors or the class name of the model being constructed is inconsistent with any class name in the graph database, matches can be retrieved from the graph database. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 This is a data flow diagram of a low-code software application system with a reusable model according to the present invention.
[0017] Figure 2 A schematic diagram of a reusable low-code software application system based on a model of the present invention. DETAILED DESCRIPTION
[0018] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0019] like Figure 2The figure shows a specific embodiment of a model-reusable low-code software application system of the present invention. In this embodiment, the model reuse tool is BORA (Business Object Representation Method), and the low-code development platform (LCDP) is zAppDev; zAppDev accesses the functions of BORA by triggering any endpoint, and according to the request content of the endpoint, the relevant recommendation system (Recommender System) of BORA calls (uses) the repository (Repository) of BORA by triggering the relevant SPARQL query of the endpoint. The query result will be processed by the recommendation system, and the recommendation information will be provided to zAppDev as a response (response). If the user of zAppDev (or any other LCDP) wants to persist any model to the repository of BORA so that it can be reused later, the model can be inserted by triggering the relevant endpoint, which will instantiate the insertion module (Importer) of BORA, which persists the newly built model to the repository by converting the newly built model of the low-code development platform zAppDev into an RDF file, merging (add Models) into the RDF graph in the repository, and training the repository again to update the weight. When users want to get modeling suggestions using BORA, they just need to click on the "Business Object Suggestor" button on the modeling canvas of zAppDev, and BORA will provide recommended classes / attributes to the user. After the user selects the required recommended classes / attributes, they will be automatically integrated into the zAppDev platform. In the integration section of classes, not only the classes will be integrated, but also the respective class attributes, connection type, connection name, and the multiplicity of the recommended and selected classes with the class that triggered the recommendation.
[0020] From the above examples, we can see that the cycle of generating a reusable model consists of the following three stages, where the specific data flow process is shown in Figure 1 :
[0021] The first stage is: Abstraction of heterogeneous models
[0022] Abstraction is one of the key steps in the model reuse cycle, which is accomplished by transforming heterogeneous models into RDF graphs. To be precise, all heterogeneous models will eventually be converted into an RDF / XML file, and then these RDF / XML files (RDF Graphs) need to be merged into a single graph. The knowledge graph constructed in the graph will serve as the knowledge base for model recommendations. In order to be able to query and use the merged graph model data (RDF Knowledge Graph), these graph model data must be saved (storage) to a graph database (Graph Repository). In order to count the frequency of query keywords in the graph database, the graph model data is weighted (Weighting), such as Figure 1 In the example in , a time series database (TDB) is used to form a weighted graph. For example, we query the entire graph database to count the number of times any B class appears in class A, and this index is added as the weight between class A and class B. For the convenience of description, suppose class B appears 5 times in class A, then the connection between A and B will be weighted as 5, recorded as A-5-B. Finally, in order to keep these weights persistent in the graph database, the entire graph model data must be updated in the TDB.
[0023] In order to optimize the recommendation algorithm and improve the accuracy of model matching. The model reuse tool also has an online learning module. When users use the model reuse tool, implicit feedback data will be collected, such as the recommended model selected by the user, the usage time and other information. The collected feedback data will be cleaned and sorted, and the noise and outliers will be removed and stored in the feedback data repository. After the user provides feedback, the online learning algorithm (Online Gradient Descent) is immediately used to adjust the weighted information of the model data according to the user feedback information. If the feedback is positive (the user selects and uses the recommended model), the weight of the model is increased. If the feedback is negative (the user abandons or deletes the recommended model), the weight of the model is reduced. The weight update formula can be expressed as: new weight = old weight + learning rate * feedback value; the learning rate is the parameter for the model reuse tool to adjust the weight after receiving the feedback data. The learning rate is used to adjust the amplitude of the model weight change. When the user selects and uses the recommended model, the feedback value is 1, and when the user abandons or deletes the recommended model, the feedback value is -1. Specifically, the learning rate determines the impact of each feedback on the update of the model weight: if the learning rate is set larger, the update amplitude of the model weight will be larger, on the contrary, if the learning rate is set smaller, the update amplitude of the model weight will be smaller; a suitable learning rate can accelerate the training process of the model and avoid falling into the local optimal solution; in this low-code software application system, the learning rate is obtained by an online learning algorithm, such as an online gradient descent algorithm, and the learning rate is adjusted and optimized according to different application scenarios and data sets to achieve the best effect. Specifically, the initial learning rate should be set to a moderate value. In this embodiment, the initial value of the learning rate is 0.01, which is neither too high nor too low to ensure that the model can converge to a better solution quickly. Dynamically adjust the learning rate: According to the training effect of the model, use a learning rate scheduler (such as gradually reducing the learning rate or adaptively adjusting the learning rate) to optimize the learning process, and use the adaptive motion estimation algorithm (Adam) to adaptively adjust the learning rate according to the change of the gradient.
[0024] In short, graph model data is used as the storage format for model abstraction. In theory, any model based on other graphs can be converted into graph model data and can be automatically discovered and reused by the model engine (Recommender API).
[0025] The second stage is: model selection
[0026] The present invention uses SPARQL to query the graph database. The first step of the selection part is to obtain data from the constructed model (Model Under Construction). If triggered, it provides suggestions for related classes of the model recommended by the model engine. For example, the user will be triggered after clicking any class or space on the modeling canvas, then the SPARQL query input that extracts data from the model being constructed and uses it as a related class suggestion will be obtained. The present invention divides the areas recommended by the model into specific fields and non-specific fields. The same classes in different fields may also be related. For example, the "manager" class in the banking field may be connected to the "hospital", "department", "doctor", "nurse" and other classes. In order to automatically determine the field of the model being constructed, at least the names of two classes of the model need to be extracted. Next, SPARQL is used to query the previously stored knowledge base, and the model name is obtained by the name of the class in the model being constructed, and the field where the current model is located is also obtained. If the corresponding model can be found in the graph database through the two or three classes given in the currently constructed model, it can be concluded that the model in the graph database is a model related to the instance field of the model being constructed, so the current low-code platform will first look for potential reusable models from the graph database.
[0027] When there is only one class in the model under construction, the method recommended by the model engine will directly obtain the class name, query whether there is such a model name in the resource library, and use it as a model to provide domain-related suggestions. If the method uses a non-domain-specific query, the system will search for recommended models about the class in the entire graph database. When the relevant domain is found, you can start looking for potential model elements for reuse. The present invention uses N-grams semantic analysis as a prediction algorithm. Therefore, after the user gives a class "Class1", the system will trigger the model engine recommendation, first obtain the domain model related to the class, and then the system will find all classes connected to "Class1" in the domain model (or find non-domain-related queries in the entire graph database). The recommendation method will return a list of all classes connected to "Class1" (when using 1-grams) and sort them according to their term frequency. Classes that have already appeared in the model under construction will be deleted, and other classes will be recommended to the user in a ranked manner. When using 2-grams and 3-grams, the process is the same, and the system will perform relationship checks on "Class2" and "Class3" respectively.
[0028] The third stage is: model specialization
[0029] Specialization here refers to the use of abstract model elements to reuse a specific model format, that is, the format of the model being built, called the business object reproduction method. In the relevant semantic environment, this means just taking the parameters, that is, the suggestions provided by the method, and using these parameters for the integration process. Currently, this approach is integrated into zAppDev's LCDP and is called BORA (refer to Figure 2 ). BORA is available as a REST API whose endpoints can be accessed by other tools to obtain recommendations during the modeling process.
[0030] Additionally, in order to obtain matches from the repository even if there are any typing errors by the user or if the class name of the model being built does not match any class name in the repository, Levenstein distance is incorporated in the method to reacquire matches from the repository even if they differ by two characters. In order to match synonyms of words or words using conceptual semantics and lexical relations, synonyms from WordNet5 are also integrated to match the name of the model class being built.
[0031] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A low-code software application system with reusable models, characterized in that: Specifically include: A low-code platform for developing applications, accessing a model reuse tool, extracting data from the constructed model class name to trigger the model engine of the model reuse tool, and obtaining a model for the next step recommended by the knowledge graph that is automatically discovered and reused by the model engine when querying the graph database based on the extracted data; The model reuse tool includes: A model engine for querying graph databases and automatically discovering and reusing knowledge graphs; A graph database, used to store knowledge graphs and manage them in a weighted manner; Wherein, the knowledge graph is constructed by merging RDF graphs formed by RDF files converted from heterogeneous models; An insertion module for merging the RDF file converted from the newly built model on the low-code platform into the RDF graph in the graph database and training the graph database to update the weights; An online learning module is used to collect feedback data from users when they build new models on the low-code platform and adjust the weighted information of the model in the graph database; if the user selects and uses the model recommended by the model engine and the feedback data is positive, the weight of the model is increased; if the user abandons or deletes the model recommended by the model engine and the feedback data is negative, the weight of the model is reduced; The weight update formula is: new weight = old weight + learning rate * feedback value; the learning rate is a parameter for the model reuse tool to adjust the weight after receiving feedback data, which is obtained by adjusting and optimizing the online learning algorithm according to different application scenarios and data sets; the feedback value is 1 when the user selects and uses the recommended model, and the feedback value is -1 when the user abandons or deletes the recommended model.
2. The model-reusable low-code software application system according to claim 1, characterized in that: The N-grams algorithm is used to extract data from the constructed model class name.
3. The model-reusable low-code software application system according to claim 2, characterized in that: Levenstein distance and WordNet synonyms were also used to extract data from the constructed model class names.
