CN114036781B - Data processing method, data display method and device and electronic equipment - Google Patents

Data processing method, data display method and device and electronic equipment Download PDF

Info

Publication number
CN114036781B
CN114036781B CN202210001334.5A CN202210001334A CN114036781B CN 114036781 B CN114036781 B CN 114036781B CN 202210001334 A CN202210001334 A CN 202210001334A CN 114036781 B CN114036781 B CN 114036781B
Authority
CN
China
Prior art keywords
code
model
change
metadata
model metadata
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210001334.5A
Other languages
Chinese (zh)
Other versions
CN114036781A (en
Inventor
王学文
黄玮
沐维维
晁成汗
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Cloud Computing Ltd
Original Assignee
Alibaba Cloud Computing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Cloud Computing Ltd filed Critical Alibaba Cloud Computing Ltd
Priority to CN202210001334.5A priority Critical patent/CN114036781B/en
Publication of CN114036781A publication Critical patent/CN114036781A/en
Application granted granted Critical
Publication of CN114036781B publication Critical patent/CN114036781B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a data processing method, a data display device, electronic equipment and computer storage; the data display method is applied to a model platform and comprises the following steps: obtaining a difference between the change model metadata and the modified change code model metadata; displaying the difference between the change model metadata and the modified change code model metadata on a page of the model platform in a significant mode; the display method can obtain the difference between the change model metadata and the modified change code model metadata, and display the difference in a significant mode, and meanwhile, the change model metadata represents the structure of the change data model being changed, and the modified change code model metadata can represent the structure of the correction code, so that an enterprise user can clearly know the code modified by a code developer for the data model based on the displayed difference between the change model metadata and the modified change code model metadata.

Description

Data processing method, data display method and device and electronic equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a data processing method, a data display method, a data processing apparatus, a data display apparatus, an electronic device, and a computer storage medium.
Background
With the expansion of the enterprise digitalization and informatization market scale, the graphical modeling tool is more and more widely applied to enterprise users. The graphical modeling tool can provide an intuitive and easily understood data model creation mode for enterprise users. For example, an enterprise user may create a data model by dragging a graphic in a graphical modeling tool in a manner similar to the manner in which data models are created by writing code. The graphical modeling tool can avoid enterprise users from creating data models by writing codes, and great convenience is brought to the enterprise users.
The code corresponding to the data model created by the enterprise user through the graphical modeling tool may need to be modified, and specifically, the code corresponding to the created data model may be provided to a code platform, so that a code developer of the code platform changes the code corresponding to the data model or modifies the code corresponding to the data model to change the data model subsequently. In the existing graphical modeling tool, if the code corresponding to the created data model is provided to a code platform, it is assumed that a code developer changes or corrects the code corresponding to the data model, and an enterprise user cannot judge whether the code after the correction operation meets requirements or conditions. Also, enterprise users are not able to clearly understand the code that code developers modify with respect to the data model.
Disclosure of Invention
The application provides a data display method, which aims to solve the problem that an enterprise user cannot clearly know codes modified by a code developer aiming at a data model through the conventional graphical modeling tool. The application also provides a data processing method, a data display device, a data processing device, an electronic device and a computer storage medium.
The application provides a data display method, which is applied to a model platform and comprises the following steps:
obtaining a difference between the change model metadata and the modified change code model metadata;
displaying the difference between the change model metadata and the modified change code model metadata on a page of the model platform in a significant mode;
wherein the change model metadata is used to represent a structure of a change data model being changed; the modified altered code model metadata is model metadata corresponding to amended code, the amended code is code obtained based on an amendment operation of a code platform for original code, and the original code is converted according to the altered data model being amended.
Optionally, the method further includes: and displaying difference reason information aiming at the difference on a page of the model platform.
Optionally, the method further includes: and displaying processing suggestion information aiming at the difference on a page of the model platform.
Optionally, the displaying the difference between the changed model metadata and the modified changed code model metadata in a significant manner includes:
and displaying the difference between the change model metadata and the modified change code model metadata in a mutual comparison mode based on the structural hierarchy corresponding to the change model metadata and the modified change code model metadata.
Optionally, the displaying, on a page of the model platform, a difference between the change model metadata and the modified change code model metadata in a manner of significance includes:
in response to detecting a confirmation-triggered operation directed to the presentation of the difference between the code model metadata and the model metadata on the page of the model platform, the difference between the altered model metadata and the modified altered code model metadata is presented in a manner that is significant on the page of the model platform.
Optionally, the change model metadata and the modified change code model metadata are both expressed by a tree-shaped visual structure.
Optionally, the obtaining the difference between the change model metadata and the modified change code model metadata includes:
obtaining a changed data model being changed;
obtaining, from the altered data model, altered model metadata representing a structure of the altered data model;
converting the change model metadata into original codes, providing the original codes to a code platform, obtaining correction codes provided by the code platform, and obtaining the modified change code model metadata based on the correction codes;
and comparing the modified change code model metadata with the change model metadata to obtain the difference between the change model metadata and the modified change code model metadata.
Optionally, the method further includes: determining whether the modified change code model metadata meets requirements and/or conditions for changing the change data model based on differences between the displayed change model metadata and the modified change code model metadata;
and if so, changing the changed data model based on the modified changed code model metadata to obtain an updated changed data model.
Optionally, the modifying the changed data model based on the modified changed code model metadata to obtain an updated changed data model includes:
according to the change shown by the modified change code model metadata, correspondingly modifying the change model metadata to obtain updated change model metadata;
and changing the changed data model based on the updated changed model metadata to obtain the updated changed data model.
Optionally, the comparing the modified change code model metadata with the change model metadata to obtain a difference between the change model metadata and the modified change code model metadata includes:
comparing, at a corresponding structural level, corresponding elements of the altered model metadata and the modified altered code model metadata; elements that do not correspond to each other are determined to have a difference.
Optionally, the obtaining of the correction code provided by the code platform includes:
and responding to the code report request sent by the code platform, and obtaining the correction code provided by the code platform.
The application provides a data processing method applied to a code platform, comprising the following steps:
obtaining original code provided by a model platform, wherein the original code is converted according to a changed data model which is being changed;
and providing the corrected code after the correction operation to the model platform in response to detecting the correction operation of the code developer on the original code.
The application provides an electronic device, including:
a processor;
and the memory is used for storing a computer program which is run by the processor and used for executing the data presentation method and the data processing method.
The application provides a computer storage medium, which stores a computer program, and the computer program is run by a processor to execute the data presentation method and the data processing method.
Compared with the prior art, the embodiment of the application has the following advantages:
the application provides a data display method, which is applied to a model platform and comprises the following steps: obtaining a difference between the change model metadata and the modified change code model metadata; displaying the difference between the change model metadata and the modified change code model metadata on a page of the model platform in a significant mode; wherein the change model metadata is used to represent a structure of a change data model being changed; the modified altered code model metadata is model metadata corresponding to amended code, the amended code is code obtained based on an amendment operation of a code platform for original code, and the original code is converted according to the altered data model being amended. The display method can obtain the difference between the change model metadata and the modified change code model metadata, and display the difference in a significant mode, and meanwhile, the change model metadata represents the structure of the change data model being changed, and the modified change code model metadata is the model metadata corresponding to the correction code, namely the modified change code model metadata can represent the structure of the correction code, so that an enterprise user can clearly know the code modified by a code developer aiming at the data model based on the displayed difference between the two.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art according to the drawings.
FIG. 1 is a schematic diagram illustrating the differences between modified change code model metadata and change model metadata.
Fig. 2 is a flowchart of a data display method according to a first embodiment of the present application.
Fig. 3 is a flowchart of a data processing method according to a second embodiment of the present application.
Fig. 4 is a schematic view of a data display device according to a third embodiment of the present application.
Fig. 5 is a schematic diagram of a data processing apparatus according to a fourth embodiment of the present application.
Fig. 6 is a schematic view of an electronic device according to a fifth embodiment of the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit of this application and is therefore not limited to the specific implementations disclosed below.
The application provides a data processing method, a data display device, electronic equipment and a computer storage medium. The following describes a data processing method, a data presentation method, an apparatus, an electronic device, and a computer storage medium, respectively, with specific embodiments.
The data display method is mainly used for comparing the change model metadata corresponding to the change data model on the model platform with the change code model metadata after modification on the structural level, and displaying the difference between the change code model metadata after modification and the change model metadata in a significant mode, so that an enterprise user or a modeling user can clearly know the codes modified by a code developer aiming at the data model.
Specifically, the change model metadata is metadata indicating a structure of a change data model being changed. On the model platform, an enterprise user or a modeling user may proceed to create or alter a data model, for example, by dragging a graphic to create a data model. After the data model is created, the data model may need to be changed, and the data model needing to be changed is taken as a changed data model. When the changed data model is changed, a code developer based on the code platform corrects the code corresponding to the changed data model so as to change the changed data model subsequently. Of course, the modified data model may be a model in which a user who has presented a design task in the model platform performs a modification operation.
More specifically, the process of changing the changed data model is as follows: first, change model metadata for representing a structure of a change data model is obtained; then, the change model metadata is converted into change generation metadata. After the modified code element data is obtained, a code can be generated based on the modified model metadata, and the generated code is an original code which corresponds to the modified data model.
After the original code is generated, the model platform provides the original code to the code platform, and the code platform obtains the corrected code after the correcting operation based on the correction of the code by a code developer. The code platform then provides the correction code to the model platform.
After the model platform obtains the correction codes provided by the code platform, the changed data model can be changed based on the correction codes.
The specific process of changing the changed data model based on the correction code after the correction operation is as follows: first, modified change code model metadata is obtained based on the modified code after the modification operation.
After the modified change code model metadata is obtained, correspondingly modifying the change model metadata according to the change shown by the modified change code model metadata to obtain updated change model metadata; based on the updated change model metadata, the change data model can be changed to obtain the updated change data model.
However, when a code developer makes a modification to code, the specific process of the modification may not meet the requirements or conditions for making changes to the changed data model. At this time, a modeling user on the model platform is required to check the correction code after the correction operation, and the changed data model can be changed only when the correction code after the check and correction operation meets the requirement or condition for changing the changed data model.
Modeling users may not understand the meaning of the code as it is expressed clearly. In order to clearly show how a code developer corrects a code to a modeling user so that the modeling user reviews the corrected code after correction operation, the data display method converts the corrected code into modified change code model metadata on a model platform, compares the change model metadata on the model platform with the obtained modified change code model metadata on a corresponding structural level, and displays the difference between the modified change code model metadata and the change model metadata on a page of the model platform in a significant manner, so that the modeling user can clearly know the code modified by the code developer for a data model.
Because the difference between the modified change code model metadata and the change model metadata is displayed on the page of the model platform in a significant manner, a modeling user can clearly know the code modified by a code developer for the data model, and the modified change code model metadata is the model metadata which is obtained based on the modified code and is used for representing the modified code. In fact, the modified code model metadata is also model metadata in nature, but is model metadata corresponding to the code related to the model, and the code related to the model is the correction code.
Specifically, please refer to fig. 1, which is a diagram illustrating a difference between modified change code model metadata and change model metadata. Compared with the modified code model metadata in fig. 1, when modifying the code, the modified code model metadata deletes the specific content of the object relationship, adds the specific content of the object attribute, and modifies the specific content of the application service. Based on the contrasted differences between the modified change code model metadata and the change model metadata shown in FIG. 1, a modeling user may clearly understand the code that a code developer modified for a data model.
The manner of significance in the present application may refer to a visually intuitive manner. In particular, the approach as presented in fig. 1 can be adopted, namely: displaying objects and elements of the objects corresponding to the structural hierarchy in a horizontal parallel mode; alternatively, the objects and the changes of the elements of the objects corresponding to each other are illustrated using an explicit visually easily distinguishable manner, and the easily distinguishable manner may include: the method comprises the following steps of adding a deleting symbol, using a colored or highlighted font, adding bold or underline and the like, which are specially matched with the part for identifying the change, the change mode and the like.
For modelers, the modified change code model metadata and the change model metadata of the present application both adopt tree-shaped visualized and structured expressions, and therefore, based on the comparison between the tree-shaped visualized and structured model metadata, namely: and comparing the difference between the modified change code model metadata and the change model metadata, so that the modeling user can clearly know the code modified by the code developer aiming at the data model.
First embodiment
A first embodiment of the present application provides a data display method, which is described below with reference to fig. 2.
Please refer to fig. 2, which is a flowchart illustrating a data displaying method according to a first embodiment of the present application. It should be noted that some details about the present embodiment have been described in the foregoing description, and are not described herein again.
The data display method of the embodiment of the application is applied to a model platform and comprises the following steps:
step S201: differences between the change model metadata and the modified change code model metadata are obtained.
In the present embodiment, change model metadata is used to represent the structure of the change data model being changed; the modified altered code model metadata is model metadata corresponding to modified code, which is code obtained based on a modification operation of the code platform with respect to the original code, which is converted from the altered data model being altered.
More specifically, in the data presentation method of the present embodiment, as one embodiment of obtaining a difference between the change model metadata and the modified change code model metadata, a manner described below may be adopted:
first, a change data model that is being changed is obtained.
In this embodiment, the changed data model being changed involves a change operation, and the change operation includes an operation of creating a data model and may also include an operation of updating the data model. For example, initially, a data model needs to be built on the model platform, and the data model needs to be updated. Then, both the operation of building the data model and the subsequent operation of updating the data model may be modification operations. In this embodiment, the modified data model may be a model in which a user who has presented a design task performs a modification operation in the model platform.
Then, change model metadata indicating the structure of the change data model is obtained from the change data model.
In the present application, there is a correspondence between the data model and the model metadata. Therefore, as an embodiment of obtaining change model metadata indicating a structure of a change data model from the change data model, the change model metadata may be: and obtaining change model metadata for representing the structure of the change data model according to the corresponding relation among the change data model, the data model and the model metadata.
More specifically, when obtaining change model metadata indicating the structure of a change data model from the change data model, the change model metadata indicating the structure of the change data model is actually obtained from the structural form inherent in the change data model.
In this embodiment, when a model is created, model metadata corresponding to the model is generated, and the model metadata carries various types of information of the model for performing abstract description on the model. When obtaining the modified model metadata, modified model metadata indicating the structure of the modified data model may be obtained based on the model metadata corresponding to the model. In particular, the data model has a defined descriptive relationship with the model metadata, which may be used, in particular, to describe the data model textually.
After obtaining alteration model metadata for representing a structure of an alteration data model, the alteration model metadata is converted into original code and the original code is provided to a code platform, and correction code provided by the code platform is obtained, modified alteration code model metadata is obtained based on the correction code.
The above describes how to obtain the meta data of the modified model on the model platform, after the model platform obtains the meta data of the modified model, the meta data of the modified model is converted into the original code and the original code is provided to the code platform, and the modified code provided by the code platform is obtained, and the meta data of the modified code model is obtained based on the modified code.
In this embodiment, after obtaining the meta data of the change model on the model platform, the meta data of the change model may be specifically converted into meta data of change code, and then the meta data of the change code may be converted into the original code.
Specifically, the above process relates to conversion between the change model metadata and the change code metadata, and conversion between the change model metadata and the change code metadata is enabled because there is a mapping correspondence between the model metadata and the code metadata, and the change model metadata can be converted into change generation metadata by the mapping correspondence. For example, when the model metadata is: < Field name =, "'desc =," "' type =" ">; correspondingly, the code metadata may be expressed as: @ Field (name = "", desc = ""). There is a mapping correspondence between the two, and the above-described interconversion can be realized based on the mapping correspondence.
The model platform, after converting the change model metadata to change code metadata, may then convert the change code metadata to the original code. The change code metadata may actually be referred to as change code model metadata, which is distinguished from change model metadata in that the change code metadata focuses on representing the model metadata in code form in order to generate the original code based on the change code metadata.
The above process involves generating a code based on the altered code metadata so that a code can be generated based on the altered code metadata because there is also a correspondence between the code metadata and the code, and thus a code can be generated based on the altered code metadata.
The model platform may provide the original code to the code platform after generating the original code.
After the code platform obtains the original code provided by the model platform, a code developer can revise the original code, and then the code platform can obtain the corrected code after the correction operation. After the code platform obtains the correction code, the correction code is provided to the model platform. Specifically, after obtaining the original code, the code platform may determine whether a code developer has modified the original code. If the code developer corrects the original code, the code platform can provide the corrected code to the model platform, and more specifically, if the code developer corrects the original code, the code platform scans and reports the corrected code to the model platform.
The model platform may convert the revised code after the revision operation is performed on the original code into revised change code model metadata. Specifically, converting the modified code obtained by performing the modification operation on the original code into modified change code model metadata may refer to: and converting the modified code into modified change code model metadata according to the internal structural form of the modified code.
After the model platform obtains the correction codes provided by the code platform, the modified change code model metadata can be obtained based on the correction codes. More specifically, after obtaining the modified code, the model platform performs structured parsing on the modified code, and searches for corresponding code metadata to obtain modified code model metadata.
In this embodiment, the obtaining, by the model platform, the correction code provided by the code platform may refer to: and responding to the detected code reporting request sent by the code platform, and obtaining the correction code provided by the code platform.
It should be noted that, as long as a code developer of the code platform corrects the code, the code platform sends a code report request to the model platform.
And finally, comparing the modified change code model metadata with the change model metadata to obtain the difference between the change model metadata and the modified change code model metadata.
Specifically, comparing the modified change code model metadata with the change model metadata to obtain a difference between the change model metadata and the modified change code model metadata may be: comparing the change model metadata with corresponding elements of the modified change code model metadata on a corresponding structural level; elements that do not correspond to each other are determined to have a difference.
In this embodiment, both the change model metadata and the modified change code model metadata have corresponding elements, and the change model metadata and the corresponding elements thereof have corresponding relationships, and similarly, the modified change code model metadata and the corresponding elements thereof also have corresponding relationships. And the correspondence may be stored in the correspondence table in advance so as to acquire the correspondence.
At the corresponding structural level, an example of comparing corresponding elements of the change model metadata and the modified change code model metadata is as follows, for example, as shown in fig. 1: similarly, at the structural level of "Object 03", the "Object property" of the modified change code model metadata and the "Object property" of the change model metadata are compared, and the "Object property" of the modified change code model metadata and the "Object property" of the change model metadata are an example of corresponding elements of the modified change code model metadata and the change model metadata.
It is found by comparison that changing the code model metadata after modification adds the content of the "Object property", in other words, the code developer adds the code of the "Object property" to "Object 03" when modifying the code. Through the above comparison, the modeler can clearly perceive that the code developer added the code of the "Object property" to "Object 03" when correcting the code. However, as can be seen from the right side of fig. 1, the "object property" of the change model metadata does not have more details. Therefore, the "object attribute" of the modified change code model metadata and the "object attribute" of the change model metadata are elements that cannot be associated with each other, and it is possible to determine that the "object attribute" is a difference element.
Meanwhile, the "Object relationship" of the modified change code model metadata is compared with the "Object relationship" of the change model metadata, and it is found by the comparison that the modified change code model metadata deletes the content of the "Object relationship", in other words, the code developer deletes the code of the "Object relationship" to "Object 03" when correcting the code. Through the above comparison, the modeler can clearly perceive that the code developer has deleted the code of the "Object relation" to "Object 03" when correcting the code. However, as can be seen from the right side of fig. 1, the "object relationship" of the modified model metadata has more detailed contents. Therefore, the "object relationship" of the modified change code model metadata and the "object relationship" of the change model metadata are also elements that cannot be associated with each other, and the "object relationship" can be determined as a difference element.
With continued reference to fig. 1, also at the structural level of "application services", the modified change code model metadata is compared with the change model metadata, and the difference in type between the two can be seen, namely: through the comparison, a modeler can clearly perceive that a code developer has modified the code of the "type" to the "application service" when modifying the code. Therefore, the "type" of the "application service" of the modified change code model metadata and the "type" of the "application service" of the change model metadata are also elements that cannot be associated with each other, and the "type" of the "application service" can also be determined to be a difference element.
Based on the contrasted differences between the modified change code model metadata and the change model metadata shown in FIG. 1, a modeling user may clearly understand the code that a code developer modified for a data model.
The reason why the comparison between the modified change code model metadata and the change model metadata is facilitated in this embodiment is that the change model metadata and the modified change code model metadata are both tree-shaped, visual and structured data, and the comparison between the tree-shaped, visual and structured data facilitates the comparison between the modified change code model metadata and the change model metadata.
By comparing the change model metadata with the modified change code model metadata, the modeler can clearly understand and perceive the modification of the code. Specifically, in this embodiment, the change model metadata is expressed by using a tree-like visual structure, which may specifically refer to a structure illustrated on the right side of fig. 1. The modified change code model metadata is also expressed by a tree-shaped visual structure, which can be specifically referred to as the structure illustrated on the left side of fig. 1.
Step S202: differences between the altered model metadata and the modified altered code model metadata are shown in a significant manner on pages of the model platform.
After obtaining the differences representing the change model metadata and the modified change code model metadata, the differences are presented in a significant manner.
The manner of significance in the present application may refer to a visually intuitive manner. In particular, the approach as presented in fig. 1 can be adopted, namely: displaying objects and elements of the objects corresponding to the structural hierarchy in a horizontal parallel mode; alternatively, the objects and the changes of the elements of the objects corresponding to each other are illustrated using an explicit visually easily distinguishable manner, and the easily distinguishable manner may include: the method comprises the following steps of adding a deleting symbol, using a colored or highlighted font, adding bold or underline and the like, which are specially matched with the part for identifying the change, the change mode and the like.
In this embodiment, the model platform further determines whether the modified change code model metadata meets the requirement and/or condition for changing the change data model based on the difference between the displayed change model metadata and the modified change code model metadata; and if so, changing the changed data model based on the modified changed code model metadata to obtain an updated changed data model.
Specifically, in this embodiment, when a change is made to the changed data model, there may be a need and/or a condition for making a change to the changed data model, and if a change is made to the changed data model, it is necessary to determine whether the changed code model metadata after the change meets the need and/or condition for making a change to the changed data model based on a difference between the presented changed model metadata and the changed code model metadata after the change; and if so, changing the changed data model based on the modified changed code model metadata to obtain an updated changed data model.
In this embodiment, the requirement and/or condition for changing the data model may be a requirement and/or condition preset on the model platform by a modeler, or may refer to a rule condition to be provided for changing the data model.
Specifically, changing the changed data model based on the modified changed code model metadata to obtain an updated changed data model may refer to: according to the change shown by the modified change code model metadata, correspondingly modifying the change model metadata to obtain updated change model metadata; and changing the changed data model based on the updated changed model metadata to obtain the updated changed data model.
The change model metadata is modified correspondingly according to the change shown by the modified change code model metadata to obtain the updated change model metadata, and as shown in fig. 1, the content related to the object relationship in the change model metadata is deleted, the content related to the object attribute in the change model metadata is added, and the content related to the application service in the change model metadata is modified.
In this embodiment, the elements of the change model metadata and the elements of the modified change code model metadata may each include at least one type of structural data: object attribute elements, object relationship elements, application service elements.
In the embodiment, the modified model metadata and the modified code model metadata can be compared, and a preset mapping relationship exists between the model metadata and the code model metadata, and the modified model metadata and the modified code model metadata can be mutually converted through the preset mapping relationship between the model metadata and the code model metadata.
Meanwhile, in order to facilitate a modeling user to more clearly understand the reason of the original code modification by a code developer and how to process the difference between the change model metadata and the modified change code model metadata, difference reason information and processing suggestion information for the difference are also displayed on a page of the model platform.
In this embodiment, the showing of the difference between the change model metadata and the modified change code model metadata in a significant manner may refer to: and displaying the difference between the change model metadata and the modified change code model metadata in a mutual comparison mode based on the structural hierarchy corresponding to the change model metadata and the modified change code model metadata. For example, in fig. 1, also at the structural level of "Object 03", the "Object property" of the modified change code model metadata and the "Object property" of the change model metadata are compared, and the "Object property" of the modified change code model metadata and the "Object property" of the change model metadata are an example showing the difference between the change model metadata and the modified change code model metadata in a manner of being collated with each other.
In this embodiment, the difference between the changed model metadata and the modified changed code model metadata is shown in a manner of significance on a page of the model platform, and may be: in response to detecting a confirmation-triggered operation directed to the presentation of the difference between the code model metadata and the model metadata on the page of the model platform, the difference between the altered model metadata and the modified altered code model metadata is presented in a manner that is significant on the page of the model platform. For example, after the modeling user clicks on a page of the model platform to confirm the component showing the difference between the two, the difference between the two is shown.
The display method can obtain the difference between the metadata of the change model and the metadata of the changed code model after modification, and display the difference in a significant way, and meanwhile, the metadata of the change model represents the structure of the change data model being changed, and the metadata of the changed code model after modification is the model metadata corresponding to the correction code, namely the metadata of the changed code model after modification can represent the structure of the correction code, so that an enterprise user can clearly know the code modified by a code developer aiming at the data model based on the displayed difference between the two.
Second embodiment
Corresponding to the first embodiment, a second embodiment of the present application further provides a data processing method. Since the content of the second embodiment is described in detail in the first embodiment, the same parts in the second embodiment as those in the first embodiment will not be described again, specifically, refer to the relevant parts of the first embodiment.
Please refer to fig. 3, which is a flowchart illustrating a data processing method according to a second embodiment of the present application.
The data processing method of the embodiment of the application is applied to a code platform and comprises the following steps:
step S301: original code provided by the model platform is obtained, the original code being transformed according to the altered data model being altered.
Step S302: and in response to detecting the correction operation of the code developer on the original code, providing the corrected code after the correction operation to the model platform.
In this embodiment, when the code platform detects that the code developer performs a correction operation on the original code, the correction code is provided to the model platform, so that the model platform can further obtain modified change code model metadata based on the obtained modification code, to facilitate subsequent obtaining and exposing differences between the change model metadata and the modified change code model metadata, also, since the change model metadata is indicative of the structure of the change data model being changed, the modified change code model metadata is the model metadata corresponding to the revision code, namely, the modified change code model metadata can represent the structure of the modified code, so that an enterprise user can clearly know the code modified by a code developer aiming at the data model based on the difference between the two displayed results.
Third embodiment
Corresponding to the data display method provided in the first embodiment of the present application, a third embodiment of the present application also provides a data display device. Since the device embodiment is substantially similar to the first embodiment, it is relatively simple to describe, and reference may be made to some descriptions of the first embodiment for relevant points. The device embodiments described below are merely illustrative.
Please refer to fig. 4, which is a schematic diagram of a data display apparatus according to a third embodiment of the present application.
The data display device is applied to a model platform and comprises:
a difference obtaining unit 401 for obtaining a difference between the change model metadata and the modified change code model metadata;
a display unit 402, configured to display, on a page of the model platform, a difference between the change model metadata and the modified change code model metadata in a manner of significance;
wherein the change model metadata is used to represent a structure of a change data model being changed; the modified altered code model metadata is model metadata corresponding to amended code, the amended code is code obtained based on an amendment operation of a code platform for original code, and the original code is converted according to the altered data model being amended.
Optionally, the display unit is further configured to: and displaying difference reason information aiming at the difference on a page of the model platform.
Optionally, the display unit is further configured to: and displaying processing suggestion information aiming at the difference on a page of the model platform.
Optionally, the display unit is specifically configured to:
and displaying the difference between the change model metadata and the modified change code model metadata in a mutual comparison mode based on the structural hierarchy corresponding to the change model metadata and the modified change code model metadata.
Optionally, the display unit is specifically configured to:
in response to detecting a confirmation-triggered operation directed to the presentation of the difference between the code model metadata and the model metadata on the page of the model platform, the difference between the altered model metadata and the modified altered code model metadata is presented in a manner that is significant on the page of the model platform.
Optionally, the change model metadata and the modified change code model metadata are both expressed by a tree-shaped visual structure.
Optionally, the difference obtaining unit is specifically configured to:
obtaining a changed data model being changed;
obtaining, from the altered data model, altered model metadata representing a structure of the altered data model;
converting the change model metadata into original codes, providing the original codes to a code platform, obtaining correction codes provided by the code platform, and obtaining the modified change code model metadata based on the correction codes;
and comparing the modified change code model metadata with the change model metadata to obtain the difference between the change model metadata and the modified change code model metadata.
Optionally, the method further includes: a changing unit, specifically configured to: determining whether the modified change code model metadata meets requirements and/or conditions for changing the change data model based on differences between the displayed change model metadata and the modified change code model metadata;
and if so, changing the changed data model based on the modified changed code model metadata to obtain an updated changed data model.
Optionally, the changing unit is specifically configured to:
according to the change shown by the modified change code model metadata, correspondingly modifying the change model metadata to obtain updated change model metadata;
and changing the changed data model based on the updated changed model metadata to obtain the updated changed data model.
Optionally, the difference obtaining unit is specifically configured to:
comparing, at a corresponding structural level, corresponding elements of the altered model metadata and the modified altered code model metadata; elements that do not correspond to each other are determined to have a difference.
Optionally, the difference obtaining unit is specifically configured to:
and responding to the code report request sent by the code platform, and obtaining the correction code provided by the code platform. Fourth embodiment
Corresponding to the data processing method provided in the second embodiment of the present application, a fourth embodiment of the present application also provides a data processing apparatus. Since the apparatus embodiment is substantially similar to the second embodiment, it is relatively simple to describe, and reference may be made to some descriptions of the second embodiment for relevant points. The device embodiments described below are merely illustrative.
Fig. 5 is a schematic diagram of a data processing apparatus according to a fourth embodiment of the present application.
The data processing device is applied to a code platform and comprises:
an original code obtaining unit 501, configured to obtain an original code provided by a model platform, where the original code is converted according to a modified data model being modified;
a providing unit 502, configured to provide the corrected code after the correction operation to the model platform in response to detecting the correction operation performed on the original code by the code developer.
Fifth embodiment
Corresponding to the methods of the first to second embodiments of the present application, a fifth embodiment of the present application further provides an electronic device.
As shown in fig. 6, fig. 6 is a schematic view of an electronic device provided in a fifth embodiment of the present application. The electronic device includes: a processor 601; a memory 602 for storing a computer program to be executed by the processor for performing the methods of the first to second embodiments.
Sixth embodiment
In correspondence with the methods of the first to second embodiments of the present application, a sixth embodiment of the present application also provides a computer storage medium storing a computer program that is executed by a processor to perform the methods of the first to second embodiments.
Although the present application has been described with reference to the preferred embodiments, it is not intended to limit the present application, and those skilled in the art can make variations and modifications without departing from the spirit and scope of the present application, therefore, the scope of the present application should be determined by the claims that follow.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory. The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
1. Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer-readable medium does not include non-transitory computer-readable storage media (non-transitory computer readable storage media), such as modulated data signals and carrier waves.
2. As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.

Claims (14)

1. A data display method is applied to a model platform and comprises the following steps:
obtaining a difference between the change model metadata and the modified change code model metadata;
displaying the difference between the change model metadata and the modified change code model metadata on a page of the model platform in a significant mode;
wherein the change model metadata is used to represent a structure of a change data model being changed; the modified altered code model metadata is model metadata corresponding to amended code, the amended code is code obtained based on an amendment operation of a code platform for original code, and the original code is converted according to the altered data model being amended.
2. The data presentation method of claim 1, further comprising: and displaying difference reason information aiming at the difference on a page of the model platform.
3. The data presentation method of claim 1, further comprising: and displaying processing suggestion information aiming at the difference on a page of the model platform.
4. The data presentation method of claim 1, wherein presenting differences between the change model metadata and the modified change code model metadata in a significant manner comprises:
and displaying the difference between the change model metadata and the modified change code model metadata in a mutual comparison mode based on the structural hierarchy corresponding to the change model metadata and the modified change code model metadata.
5. The data presentation method of claim 1, wherein presenting the differences between the change model metadata and the modified change code model metadata in a significant manner on a page of a model platform comprises:
in response to detecting a confirmation-triggered operation directed to the presentation of the difference between the code model metadata and the model metadata on the page of the model platform, the difference between the altered model metadata and the modified altered code model metadata is presented in a manner that is significant on the page of the model platform.
6. The data presentation method of claim 1, wherein the change model metadata and the modified change code model metadata are both expressed in a tree-like visual structure.
7. The method of claim 1, wherein obtaining the difference between the change model metadata and the modified change code model metadata comprises:
obtaining a changed data model being changed;
obtaining, from the altered data model, altered model metadata representing a structure of the altered data model;
converting the change model metadata into original codes, providing the original codes to a code platform, obtaining correction codes provided by the code platform, and obtaining the modified change code model metadata based on the correction codes;
and comparing the modified change code model metadata with the change model metadata to obtain the difference between the change model metadata and the modified change code model metadata.
8. The data presentation method of claim 1, further comprising: determining whether the modified change code model metadata meets requirements and/or conditions for changing the change data model based on differences between the presented change model metadata and the modified change code model metadata;
and if so, changing the changed data model based on the modified changed code model metadata to obtain an updated changed data model.
9. The method of claim 8, wherein the modifying the changed data model based on the modified changed code model metadata to obtain an updated changed data model comprises:
according to the change shown by the modified change code model metadata, correspondingly modifying the change model metadata to obtain updated change model metadata;
and changing the changed data model based on the updated changed model metadata to obtain the updated changed data model.
10. The method of claim 7, wherein comparing the modified change code model metadata with the change model metadata to obtain a difference between the change model metadata and the modified change code model metadata comprises:
comparing, at a corresponding structural level, corresponding elements of the altered model metadata and the modified altered code model metadata; elements that do not correspond to each other are determined to have a difference.
11. The data presentation method of claim 7, wherein the obtaining of the revision code provided by the code platform comprises:
and responding to the code report request sent by the code platform, and obtaining the correction code provided by the code platform.
12. A data processing method applied to a code platform comprises the following steps:
obtaining original code provided by a model platform, wherein the original code is converted according to a changed data model which is being changed;
in response to detecting a correction operation of a code developer on the original code, providing the corrected code after the correction operation to the model platform; wherein the revision code is configured to obtain modified change code model metadata, to compare the modified change code model metadata with change model metadata representing a structure of a change data model, to obtain a difference between the change model metadata and the modified change code model metadata.
13. An electronic device, comprising:
a processor;
a memory for storing a computer program for execution by the processor to perform the method of any one of claims 1 to 12.
14. A computer storage medium, characterized in that it stores a computer program that is executed by a processor to perform the method of any one of claims 1-12.
CN202210001334.5A 2022-01-04 2022-01-04 Data processing method, data display method and device and electronic equipment Active CN114036781B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210001334.5A CN114036781B (en) 2022-01-04 2022-01-04 Data processing method, data display method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210001334.5A CN114036781B (en) 2022-01-04 2022-01-04 Data processing method, data display method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN114036781A CN114036781A (en) 2022-02-11
CN114036781B true CN114036781B (en) 2022-05-06

Family

ID=80147286

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210001334.5A Active CN114036781B (en) 2022-01-04 2022-01-04 Data processing method, data display method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN114036781B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1254879A (en) * 1998-11-12 2000-05-31 白金技术知识产权公司 Back-and-forth method and device for software design
CN101799753A (en) * 2009-12-17 2010-08-11 中国电力科学研究院 Method and device for realizing tree structure
CN103235729A (en) * 2013-04-18 2013-08-07 南京大学 Software model synchronization method based on code modification
CN103605516A (en) * 2013-11-12 2014-02-26 国家电网公司 Flexible Web display frame model architecture designing method
CN105303465A (en) * 2015-11-13 2016-02-03 国网山东省电力公司电力科学研究院 Tree-shaped view defining and displaying method based on CIM model
CN110209565A (en) * 2018-02-28 2019-09-06 华为软件技术有限公司 A kind of metadata schema adjustment method and its device
CN112749194A (en) * 2020-06-03 2021-05-04 腾讯科技(深圳)有限公司 Visualized data processing method and device, electronic equipment and readable storage medium
EP3839727A1 (en) * 2019-12-16 2021-06-23 British Telecommunications public limited company Multi-model code management
CN113434173A (en) * 2021-06-24 2021-09-24 青岛海尔科技有限公司 Data processing method, data processing device, storage medium and electronic equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8856726B2 (en) * 2009-09-14 2014-10-07 The Mathworks, Inc. Verification of computer-executable code generated from a slice of a model
US8768902B2 (en) * 2010-06-11 2014-07-01 Microsoft Corporation Unified concurrent changes to data, schema, and application
CN102880547A (en) * 2012-09-05 2013-01-16 无锡江南计算技术研究所 Source code change influence analyzing and testing method for software units and components with combination of phase

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1254879A (en) * 1998-11-12 2000-05-31 白金技术知识产权公司 Back-and-forth method and device for software design
CN101799753A (en) * 2009-12-17 2010-08-11 中国电力科学研究院 Method and device for realizing tree structure
CN103235729A (en) * 2013-04-18 2013-08-07 南京大学 Software model synchronization method based on code modification
CN103605516A (en) * 2013-11-12 2014-02-26 国家电网公司 Flexible Web display frame model architecture designing method
CN105303465A (en) * 2015-11-13 2016-02-03 国网山东省电力公司电力科学研究院 Tree-shaped view defining and displaying method based on CIM model
CN110209565A (en) * 2018-02-28 2019-09-06 华为软件技术有限公司 A kind of metadata schema adjustment method and its device
EP3839727A1 (en) * 2019-12-16 2021-06-23 British Telecommunications public limited company Multi-model code management
CN112749194A (en) * 2020-06-03 2021-05-04 腾讯科技(深圳)有限公司 Visualized data processing method and device, electronic equipment and readable storage medium
CN113434173A (en) * 2021-06-24 2021-09-24 青岛海尔科技有限公司 Data processing method, data processing device, storage medium and electronic equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"基于元数据驱动设计的项目生命周期集成管理平台的设计与实现";赵明;《中国优秀硕士学位论文全文数据库 信息科技辑》;20171015(第10期);全文 *
Amir L. Liaghati ; W. David Pan."Evaluation of the biased run-length coding method on binary images generated by a modified Ising model".《SoutheastCon 2016》.2016, *

Also Published As

Publication number Publication date
CN114036781A (en) 2022-02-11

Similar Documents

Publication Publication Date Title
JP6033235B2 (en) Formatting data by example
US8352914B2 (en) Impact analysis of software change requests
US9607060B2 (en) Automatic generation of an extract, transform, load (ETL) job
US11526481B2 (en) Incremental dynamic document index generation
CN108762743B (en) Data table operation code generation method and device
US10223698B2 (en) Integrating a web-based CRM system with a PIM client application
CN107315764B (en) Method and system for updating non-relational database associated data
EP2724258A2 (en) Dynamically updating a running page
US9646004B2 (en) Hierarchical database report generation with automated query generation for placeholders
US7752542B2 (en) Dynamic external entity resolution in an XML-based content management system
WO2023130933A1 (en) Model processing method and apparatus, code aquisition method and apparatus, and electronic device
US9678856B2 (en) Annotated test interfaces
JP2012529711A (en) Software extension analysis method and system
CN115599386A (en) Code generation method, device, equipment and storage medium
CN114036781B (en) Data processing method, data display method and device and electronic equipment
WO2023109648A1 (en) Model-code synchronization method
CN112883695B (en) Method, device, equipment and medium for generating report template and displaying data report
CN114328965A (en) Knowledge graph updating method and device and computer equipment
US10379970B2 (en) Automatic design discrepancy reporting
CN113918664B (en) Data processing method and device
CN112764763A (en) Code conversion method, system, equipment and computer readable storage medium
US20110246870A1 (en) Validating markup language schemas and semantic constraints
CN112446196A (en) File revision method, device and equipment
CN112380281A (en) Platform layer code generation method and device, electronic equipment and storage medium
CN118259874A (en) Analysis method, system and electronic equipment for product design

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40067482

Country of ref document: HK