CN111666355B - Model construction method and device for field, data and scene three-layer model - Google Patents

Model construction method and device for field, data and scene three-layer model Download PDF

Info

Publication number
CN111666355B
CN111666355B CN202010536038.6A CN202010536038A CN111666355B CN 111666355 B CN111666355 B CN 111666355B CN 202010536038 A CN202010536038 A CN 202010536038A CN 111666355 B CN111666355 B CN 111666355B
Authority
CN
China
Prior art keywords
model
field
sub
data
scene
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
CN202010536038.6A
Other languages
Chinese (zh)
Other versions
CN111666355A (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.)
Yuanguang Software Co Ltd
Original Assignee
Yuanguang Software Co 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 Yuanguang Software Co Ltd filed Critical Yuanguang Software Co Ltd
Priority to CN202010536038.6A priority Critical patent/CN111666355B/en
Publication of CN111666355A publication Critical patent/CN111666355A/en
Application granted granted Critical
Publication of CN111666355B publication Critical patent/CN111666355B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • G06F16/288Entity relationship models
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/067Enterprise or organisation modelling

Abstract

The application relates to a model construction method and device for a field, data and scene three-layer model, belongs to the technical field of enterprise information management, and solves the problem that the reliability of the model is low because a graphical core service field model cannot be constructed by the existing method. Acquiring a domain sub-model frame corresponding to a service to be modeled based on the service domain to be modeled; dynamically generating a domain attribute unit and a domain field editing frame according to the domain sub-model frame; obtaining at least two field sub-models corresponding to the business to be modeled according to the field attribute unit and the field editing frame after the field sub-model name and the field sub-model field information are obtained; and obtaining a model relation between at least two field sub-models, and constructing to obtain a final field model of the business to be modeled. The field modeling of the graphics is realized, and the reliability of modeling is improved.

Description

Model construction method and device for field, data and scene three-layer model
Technical Field
The application relates to the technical field of enterprise information management, in particular to a model construction method and device for a three-layer model of the field, data and scene.
Background
When the software is developed, especially for large-scale software, an overall model architecture or a model is required to be built, and then micro-service codes of the application software are obtained through a manual programming mode. The mode of constructing the model is various, and different designers have different means or methods for constructing the model.
However, the existing method for constructing the model does not have the capability of defining the model from different levels, such as a domain model, a data model, a scene model and the like, and does not have the capability of defining different attributes of different levels of models and relationships among the models. The existing model construction method cannot design a corresponding scene model according to the requirement of a complex interface, does not influence a service layer and a data access layer, cannot independently adjust the data layer according to the storage environment and performance requirements of a database, and does not modify a field layer. Meanwhile, the reliability of the model is low due to the fact that the graphical core service field model cannot be built by the existing method.
Disclosure of Invention
In view of the above analysis, the embodiment of the application aims to provide a method and a device for constructing a three-layer model of a domain, data and scene, which are used for solving the problem that the reliability of the model is lower because the graphical core service domain model cannot be constructed by the existing method.
On one hand, the embodiment of the application provides a model construction method of a field, data and scene three-layer model, which comprises the following steps:
acquiring a domain sub-model frame corresponding to a service to be modeled based on the service domain to be modeled; the number of the field sub-models corresponding to the business to be modeled is at least two;
dynamically generating a domain attribute unit and a domain field editing frame according to the domain sub-model frame, acquiring a domain sub-model name, a storage mode and a database table name by using the domain attribute unit, and acquiring domain sub-model field information input by a user by using the field editing frame;
obtaining at least two field sub-models corresponding to the business to be modeled according to the field attribute unit and the field editing frame after the field sub-model name and the field sub-model field information are obtained;
and obtaining a model relation between the at least two field sub-models, and constructing and obtaining a field model corresponding to the service to be modeled.
Further, obtaining a model relationship between the at least two domain sub-models, comprising:
dynamically generating a domain relation unit according to the domain sub-model;
acquiring and displaying the names of the at least two field sub-models by using a field relation unit;
and obtaining the model relation of the field relation unit input by the user, and obtaining the model relation among the field sub-models.
Further, the method also comprises the step of generating a data model according to the obtained final field model of the business to be modeled, and comprises the following steps:
and constructing a data model of the business to be modeled based on the field sub-model names, the field sub-model field information and the model relation of the at least two field sub-models.
Further, dynamically generating a data field editing frame according to the data model, and acquiring a mapping name field by utilizing the data field editing frame, wherein the mapping name field corresponds to a column name of a database table;
and storing the model information in the data model into the corresponding database table according to the storage mode, the database table name and the column name of the database table.
Further, the method also comprises the step of dynamically generating a data attribute unit according to the data model, and acquiring the table name of the database by utilizing the attribute unit so as to split or merge the data tables in the database.
Further, generating a scene model according to the obtained final field model of the business to be modeled; the generating a scene model includes:
constructing a scene sub-model based on the field sub-model name, the field sub-model field information and the model relation of the at least two field sub-models;
introducing the scene sub-model into a scene and dynamically generating a scene attribute unit;
and acquiring a user story input by a user based on the scene attribute unit to obtain a scene model corresponding to the business to be modeled.
On the other hand, the embodiment of the application provides a model construction device of a field, data and scene three-layer model, which comprises the following modules:
the field sub-model frame acquisition module is used for acquiring a field sub-model frame corresponding to the service to be modeled based on the service field to be modeled; the number of the field sub-models corresponding to the business to be modeled is at least two;
the field attribute obtaining module is used for dynamically generating a field attribute unit and a field editing frame according to the field sub-model frame, obtaining a field sub-model name, a storage mode and a database table name by using the field attribute unit, and obtaining field sub-model field information input by a user by using the field editing frame;
the field sub-model obtaining module is used for obtaining at least two field sub-models corresponding to the business to be modeled according to the field attribute unit and the field editing frame after obtaining the field sub-model name and the field sub-model field information;
the domain model obtaining module is used for obtaining the model relation between the at least two domain sub-models and constructing a domain model corresponding to the business to be modeled.
Further, the model building device further comprises a model relation obtaining module, and the model relation obtaining module executes the following procedures:
dynamically generating a domain relation unit according to the domain sub-model;
acquiring and displaying the names of the at least two field sub-models by using a field relation unit;
and obtaining the model relation of the field relation unit input by the user, and obtaining the model relation among the field sub-models.
Further, the model building device further includes a data model obtaining module, configured to generate a data model according to the obtained final domain model of the service to be modeled, including:
and constructing a data model of the business to be modeled based on the field sub-model names, the field sub-model field information and the model relation of the at least two field sub-models.
Further, dynamically generating a data field editing frame based on the data model, and acquiring a mapping name field by utilizing the data field editing frame, wherein the mapping name field corresponds to a column name of a database table;
and storing the model information in the data model into the corresponding database table according to the storage mode, the database table name and the column name of the database table.
Compared with the prior art, the application has at least one of the following beneficial effects:
1. a method for constructing a model of a domain, data and scene three-layer model solves the problems that the reliability is low and the like caused by the fact that the existing method cannot graphically construct the domain model of a core service by graphically constructing the domain model corresponding to the service to be modeled, realizes online graphical construction of the domain model, and improves satisfaction and experience of users.
2. The data model or the scene model can be generated by pushing through the constructed field model, corresponding information of the data model is adjusted or modified, the field model or the data model is not affected, meanwhile, corresponding information of the scene model is adjusted or modified, the field model or the data model is not changed or affected, reusability of the field model is improved, and research and development efficiency of application software is further improved.
3. The data attribute unit is dynamically generated through the data model to acquire the table name of the database storing the data model information, so that the splitting or merging of the data tables in the database is realized, and the method is simple and easy to implement and is easy to implement.
4. The scene model is generated through the field model, so that the requirement of a user on products is met, the user can directly push and generate the scene sub-model on the basis of the established field model, and the related scene information is set on the basis of the scene sub-model, so that the final scene model is obtained, the problem of re-establishing the scene model again is avoided, and resources and time are saved. Meanwhile, the scene model can be independently adjusted or modified without affecting the field model and the data model, so that the requirement of a complex interface is met, and the modeling efficiency is improved.
5. The device for constructing the field model through the three-layer model of the field, the data and the scene can graphically construct the field model corresponding to the service to be modeled, solves the problems that the reliability is low and the like caused by the fact that the field model of the core service cannot be graphically constructed by the existing method, realizes the online graphical construction of the field model, and improves the satisfaction degree and the experience degree of users.
In the application, the technical schemes can be mutually combined to realize more preferable combination schemes. Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and drawings.
Drawings
The drawings are only for purposes of illustrating particular embodiments and are not to be construed as limiting the application, like reference numerals being used to refer to like parts throughout the several views.
FIG. 1 is a flow chart of a model building method of a domain, data and scene three-layer model;
FIG. 2 is a block diagram of a model building device for a domain, data, scene three-layer model;
reference numerals:
100-a field sub-model framework acquisition module; 200-a domain attribute obtaining module; 300-a field sub-model obtaining module; 400-domain model acquisition module.
Detailed Description
The following detailed description of preferred embodiments of the application is made in connection with the accompanying drawings, which form a part hereof, and together with the description of the embodiments of the application, are used to explain the principles of the application and are not intended to limit the scope of the application.
The model construction is a first step of developing application software, but the problem of lower modeling reliability is caused by the fact that the graphical core service field model cannot be constructed by the existing model construction method. Therefore, the application provides a method and a device for constructing a three-layer model of a field, data and scene, which solve the problems existing in the prior art by constructing a patterned core service field model and improve the modeling reliability, the satisfaction degree and the experience degree of users. Meanwhile, on the basis of constructing and obtaining the field model, a data model or a scene model can be generated by extracting model information and model relation of the field model, the data model can store the model information to meet the storage performance, the scene model can be introduced into a scene, and the user story can be increased through the scene model. Different layers of modeling on the user demands are realized, the selectivity is provided for modeling of the user, the reusability of the model is realized, and the efficiency of software development is improved.
The application discloses a model construction method of a domain, data and scene three-layer model, which is shown in figure 1. The method comprises the following steps:
step S1, acquiring a domain sub-model frame corresponding to a service to be modeled based on the service domain to be modeled; the number of the field sub-models corresponding to the business to be modeled is at least two. Specifically, the domain model is a key step of analysis of the requirements of the service to be modeled, and can help users and requirement analysts to build service concepts, determine the problem domain of the user service and the service range related to the system, so the domain model is the core sediment of the service to be modeled. Based on the modeling platform, a user can select a domain sub-model frame corresponding to the business to be modeled, and a foundation and support are provided for building a domain model. Meanwhile, for a business to be modeled, at least two field sub-models are included, and the exemplary business to be modeled is settlement application software for designing staff wages, and at least three field sub-models of staff, attendance and wages need to be built.
And S2, dynamically generating a domain attribute unit and a domain field editing frame according to the domain sub-model frame, acquiring a domain sub-model name, a storage mode and a database table name by using the domain attribute unit, and acquiring domain sub-model field information input by a user by using the field editing frame. Specifically, after obtaining a domain sub-model frame selected by a user, dynamically generating a domain attribute unit, through which the user can input a domain sub-model name, a type ID and an entity attribution, wherein whether the user has both a data model and a scene model or not can also be selected, and if the user has both the data model, a storage mode can be selected through the domain attribute unit, wherein the storage mode comprises a self-built table and a default storage mode, a database table name can be obtained based on the self-built table, and a storage path is provided for storing later-stage model information. Meanwhile, the field submodel framework can be double-clicked to dynamically generate a field editing frame, and the field editing frame can acquire submodel information input by a user, wherein the submodel information comprises item titles, item names, data types, reference definitions, lengths and accuracies, and the data types comprise characters, enumeration, integers, reference entities and the like.
And step S3, obtaining at least two field sub-models corresponding to the business to be modeled according to the field attribute unit and the field editing frame after the field sub-model name and the field sub-model field information are obtained. Specifically, the type of the model is selected, whether the model is a data model or a scene model is combined, and the field sub-model can be obtained after field information of the field model is newly added based on the field editing frame, and the field attribute unit or the field editing frame can be modified based on the requirement of a user in the later stage so as to modify the field sub-model.
And S4, obtaining a model relation between at least two field sub-models, and constructing to-be-modeled service final field models. After obtaining the domain sub-model of the service to be modeled, a model relationship between the domain sub-models needs to be established, and the model relationship is obtained based on user input.
Preferably, obtaining the model relationship between at least two domain sub-models includes:
dynamically generating a domain relation unit according to the domain sub-model;
acquiring and displaying at least two field sub-model names by using a field relation unit;
and obtaining the model relation of the user input field relation unit, and obtaining the model relation between the field sub-models.
Specifically, there are two methods for obtaining model relationships between the domain sub-models: one is based on the arrow representing the relationship between entity sub-models in the toolbar on the left of the modeling platform, and the user can click on the selected arrow and drag the arrow to the modeling graphics area to connect the two domain sub-models that need to be related. In another method, a model relation between entity sub-models is established according to a field relation unit dynamically generated by the field sub-models, wherein the field relation unit comprises three pull-down selection boxes of a corresponding relation, a source type and a reference type, and the relation between the entity sub-models is obtained through the pull-down selection boxes, the corresponding relation comprises one-to-one, one-to-many, many-to-one or many-to-many, and the source type and the reference type are two entity sub-models needing to be established. For example, if a model relationship between the two entity submodels of employee and attendance needs to be established, the source type selects the employee, the reference type selects the attendance, and the corresponding relationship is obtained based on user input or selection.
Compared with the prior art, the method for constructing the field, data and scene three-layer model provided by the embodiment solves the problem of low modeling reliability caused by the fact that the field model of the core service cannot be constructed graphically by the existing method by graphically constructing the field model corresponding to the service to be modeled, realizes online graphical construction of the field model, and improves satisfaction and experience of users.
Based on the different needs of the user, the user may choose to build different levels of models, such as a domain model, a data model, or a scene model. Consistent with the construction method of the field model, the modeling platform can also independently construct a data model or a scene model. Taking an example of separately constructing a data model, firstly, a data sub-model frame corresponding to a service to be modeled is obtained and a data attribute unit is dynamically generated. And obtaining the name, the type ID and the entity attribution of the submodel through the data attribute unit, dynamically generating a data field editing frame through double-clicking the data submodel, and adding fields such as project title, project name, data type, reference definition, length, precision, mapping name, allowed blank value, index or not through the field editing frame, wherein the data type field comprises characters, enumeration, integers, reference entities and the like, and the mapping name field corresponds to the column name of a database table so as to realize the storage of data model information. Obtaining data model information through the data attribute unit and the data field editing frame to obtain a data sub-model, and then obtaining the data model by establishing a model relation between the data sub-models. The model relationships between the data sub-models may also be obtained by dragging arrows representing the model relationships or dynamically generating data relationship elements. The scene model can also be independently built, and the process of building the scene model is consistent with the field model or the data model. Specifically, after the field model, the data model or the scene model is independently established, other models can be generated by pushing, specifically: the data model or the scene model can be generated through the field model, the field model can be generated through the scene model, and the field model can be generated through the data model. Meanwhile, the corresponding information of the data model is adjusted, the field model or the scene model is not influenced, the corresponding information of the scene model is adjusted, the field model or the data model is not changed or influenced, the reusability of the field model is improved, and the research and development efficiency of application software is further improved.
The modeling platform can be used for constructing a field model, a data model or a scene model corresponding to different requirements of a user, wherein the modeling process is realized in a graphical mode, the requirements of the user are met, and meanwhile, the satisfaction degree and the experience degree of the user are improved.
Preferably, the method further comprises generating a data model according to the obtained final field model of the business to be modeled, and comprises the following steps: and constructing a data model of the business to be modeled based on the field sub-model names, the field sub-model field information and the model relation of the at least two field sub-models.
Specifically, the name of the field sub-model, field sub-model field information and model relation of the field sub-model are obtained, and a data model of the business to be modeled is constructed, namely, corresponding information of the data model is consistent with the field model, but the data model needs to select a corresponding data table to store model information in order to meet the storage performance.
Preferably, a data field editing frame is dynamically generated according to the data model, a mapping name field is obtained by utilizing the data field editing frame, and the mapping name field corresponds to the column name of the database table; and storing the model information in the data model into the corresponding database table according to the storage mode, the database table name and the column name of the database table.
Specifically, the data model can be dynamically generated by double-clicking the data model, the fields such as item title, item name, data type, reference definition, length and precision in the field editing frame are brought in based on the field model, new addition is not needed, a mapping name field is needed to be added, the mapping name field corresponds to the column name of the database table, the storage position of the data model information is determined, and the model information in the data model can be stored in the corresponding database table according to the storage mode, the database table name and the column name of the database table.
Preferably, the method further comprises dynamically generating a data attribute unit according to the data model, and acquiring the table names of the database by utilizing the attribute unit so as to split or merge the data tables in the database. When one database table in the database is split into a plurality of tables or the plurality of database tables are combined into one table, the database table storing the data model needs to be changed, and a user can acquire the database table name of the modified storage path based on the data attribute unit dynamically generated by the data model so as to split or combine the data tables in the database.
The data attribute unit is dynamically generated through the data model to acquire the table name of the database storing the data model information, so that the splitting or merging of the data tables in the database is realized, meanwhile, the data model can be modified or adjusted through the data attribute unit and the data field editing frame of the data model, the field model or the scene model is not influenced, and the method is simple and easy to implement.
In addition to the user independently building a data model and generating the data model through domain model pushing, the user can store corresponding information of the data model to a database table at a specified position in advance, and then build the data model based on a modeling platform. For example, importing database tables at specified locations at a modeling platform includes: and acquiring the type, the connection format, the user name and the password of the database input by the user, selecting the corresponding database table name in the database table, importing the database table storing the corresponding information of the data model into a modeling platform, acquiring the corresponding model information of the data model in the database table, and constructing to obtain the data model. The user can select different modeling modes according to specific conditions so as to meet specific requirements of the user.
Preferably, the method further comprises the step of generating a scene model according to the obtained final field model of the business to be modeled; generating the scene model includes:
constructing a scene sub-model based on the field sub-model name, the field sub-model field information and the model relation of the at least two field sub-models;
introducing a scene sub-model into a scene and dynamically generating a scene attribute unit;
and acquiring a user story input by a user based on the scene attribute unit to obtain a final scene model corresponding to the business to be modeled.
Specifically, based on the obtained field model, the scene model can be directly generated in a pushing mode, so that the development efficiency of developers is improved, the modeling time of users is saved, and convenience is brought to the users. In detail, after a field model is obtained through modeling, a field sub-model name, field sub-model field information and a model relation of the field sub-model are obtained, a scene sub-model is generated through pushing on a modeling platform, then the scene sub-model is introduced into a scene through a scene introduction key in a toolbar, and a user story can be set through a dynamically generated scene attribute unit. The user story is the function and value realized by the business to be modeled and can be obtained through user input.
The scene model is generated through the field model, so that the requirement of a user on products is met, the user can directly push and generate the scene sub-model on the basis of the established field model, and the related scene information is set on the basis of the scene sub-model, so that the final scene model is obtained, the problem of re-establishing the scene model again is avoided, and the time is saved. Meanwhile, the scene model can be independently adjusted or modified without affecting the field model or the data model, so that the requirement of a complex interface is met, and the modeling efficiency is improved.
After the field model, the data model or the scene model is constructed, the corresponding model information can be input into a code generation engine to generate a micro-program service code, wherein the micro-program service code is the template code of the application software corresponding to the business to be modeled.
In another embodiment of the application, a model construction device for a domain, data and scene three-layer model is disclosed, as shown in fig. 2. The device comprises the following modules: the field sub-model frame acquisition module is used for acquiring a field sub-model frame corresponding to the service to be modeled based on the service field to be modeled; the field sub-models corresponding to the business to be modeled are at least two; the field attribute obtaining module is used for dynamically generating a field attribute unit and a field editing frame according to the field sub-model frame, obtaining a field sub-model name, a storage mode and a database table name by using the field attribute unit, and obtaining field sub-model field information input by a user by using the field editing frame; the field sub-model obtaining module is used for obtaining at least two field sub-models corresponding to the business to be modeled according to the field attribute unit and the field editing frame after obtaining the field sub-model name and the field sub-model field information; the domain model obtaining module is used for obtaining the model relation between at least two domain sub-models and constructing a final domain model of the business to be modeled.
Preferably, the model building apparatus further includes a model relationship obtaining module that performs the following procedure:
dynamically generating a domain relation unit according to the domain sub-model;
acquiring and displaying at least two field sub-model names by using a field relation unit;
and obtaining the model relation of the user input field relation unit, and obtaining the model relation between the field sub-models.
The device for constructing the field model through the three-layer model of the field, the data and the scene can graphically construct the field model corresponding to the service to be modeled, solves the problems that the field model of the core service cannot be graphically constructed by the existing method, and the user experience and satisfaction are low, realizes the online graphical construction of the field model, and improves the user satisfaction and experience.
Preferably, the model building device further includes a data model obtaining module, configured to generate a data model according to the obtained final domain model of the service to be modeled, including: and constructing a data model of the business to be modeled based on the field sub-model names, the field sub-model field information and the model relation of the at least two field sub-models. Preferably, a data field editing frame is dynamically generated based on the data model, a mapping name field is obtained by utilizing the data field editing frame, and the mapping name field corresponds to a column name of a database table; and storing the model information in the data model into the corresponding database table according to the storage mode, the database table name and the column name of the database table.
The data model obtaining module can be used for generating a data model according to the field model, and obtaining the table name of the database for storing the data model information according to the data attribute unit, so that the splitting or merging of the data tables in the database is realized, meanwhile, the data model can be modified or adjusted through the data attribute unit and the data field editing frame of the data model, the field model or the scene model cannot be influenced, the method is simple and easy to implement, the multiplexing rate of the field model is improved, and the research and development efficiency of application software is further improved.
Those skilled in the art will appreciate that all or part of the flow of the methods of the embodiments described above may be accomplished by way of a computer program to instruct associated hardware, where the program may be stored on a computer readable storage medium. Wherein the computer readable storage medium is a magnetic disk, an optical disk, a read-only memory or a random access memory, etc.
The present application is not limited to the above-mentioned embodiments, and any changes or substitutions that can be easily understood by those skilled in the art within the technical scope of the present application are intended to be included in the scope of the present application.

Claims (7)

1. A model construction method of a field, data and scene three-layer model is characterized by comprising the following steps:
acquiring a domain sub-model frame corresponding to a service to be modeled based on the service domain to be modeled; the number of the field sub-models corresponding to the business to be modeled is at least two;
dynamically generating a domain attribute unit and a domain field editing frame according to the domain sub-model frame, acquiring a domain sub-model name, a storage mode and a database table name by using the domain attribute unit, and acquiring domain sub-model field information input by a user by using the field editing frame;
obtaining at least two field sub-models corresponding to the business to be modeled according to the field attribute unit and the field editing frame after the field sub-model name and the field sub-model field information are obtained;
obtaining a model relation between the at least two field sub-models, and constructing a field model corresponding to the service to be modeled;
the method further comprises the steps of generating a data model according to the obtained final field model of the business to be modeled, and comprises the following steps:
based on the field sub-model names, field sub-model field information and model relations of at least two field sub-models, constructing and obtaining a data model of the business to be modeled;
generating a scene model according to the obtained field model corresponding to the business to be modeled; the generating a scene model includes:
constructing a scene sub-model based on the field sub-model name, the field sub-model field information and the model relation of the at least two field sub-models;
introducing the scene sub-model into a scene and dynamically generating a scene attribute unit;
and acquiring a user story input by a user based on the scene attribute unit to obtain a scene model corresponding to the business to be modeled.
2. The method for constructing a model of a three-layer model of a domain, data, and scene according to claim 1, wherein obtaining the model relationship between the at least two domain sub-models comprises:
dynamically generating a domain relation unit according to the domain sub-model;
acquiring and displaying the names of the at least two field sub-models by using a field relation unit;
and obtaining the model relation of the field relation unit input by the user, and obtaining the model relation among the field sub-models.
3. The method for constructing a model of a three-layer model of a field, data and scene according to claim 1, wherein a data field editing frame is dynamically generated according to the data model, and a mapping name field is obtained by using the data field editing frame, wherein the mapping name field corresponds to a column name of a database table;
and storing the model information in the data model into the corresponding database table according to the storage mode, the database table name and the column name of the database table.
4. The method for constructing a three-layer model of a field, data and scene according to claim 3, further comprising dynamically generating a data attribute unit according to the data model, and acquiring a database table name by using the attribute unit so as to split or merge the data tables in the database.
5. The model construction device of the field, data and scene three-layer model is characterized by comprising the following modules:
the field sub-model frame acquisition module is used for acquiring a field sub-model frame corresponding to the service to be modeled based on the service field to be modeled; the number of the field sub-models corresponding to the business to be modeled is at least two;
the field attribute obtaining module is used for dynamically generating a field attribute unit and a field editing frame according to the field sub-model frame, obtaining a field sub-model name, a storage mode and a database table name by using the field attribute unit, and obtaining field sub-model field information input by a user by using the field editing frame;
the field sub-model obtaining module is used for obtaining at least two field sub-models corresponding to the business to be modeled according to the field attribute unit and the field editing frame after obtaining the field sub-model name and the field sub-model field information;
the domain model obtaining module is used for obtaining the model relation between the at least two domain sub-models and constructing a domain model corresponding to the business to be modeled;
the model construction device further comprises a data model obtaining module, which is used for generating a data model according to the obtained final field model of the business to be modeled, and comprises the following steps:
based on the field sub-model names, field sub-model field information and model relations of at least two field sub-models, constructing and obtaining a data model of the business to be modeled;
the model construction device generates a scene model according to the obtained field model corresponding to the service to be modeled; the generating a scene model includes:
constructing a scene sub-model based on the field sub-model name, the field sub-model field information and the model relation of the at least two field sub-models;
introducing the scene sub-model into a scene and dynamically generating a scene attribute unit;
and acquiring a user story input by a user based on the scene attribute unit to obtain a scene model corresponding to the business to be modeled.
6. The model building device of a three-layer model of a domain, data, and scene according to claim 5, further comprising a model relationship obtaining module that performs the following procedure:
dynamically generating a domain relation unit according to the domain sub-model;
acquiring and displaying the names of the at least two field sub-models by using a field relation unit;
and obtaining the model relation of the field relation unit input by the user, and obtaining the model relation among the field sub-models.
7. The model construction device for a three-layer model of a field, data, and scene according to claim 5, wherein a data field edit box is dynamically generated based on the data model, and a mapping name field is acquired by using the data field edit box, the mapping name field corresponding to a column name of a database table;
and storing the model information in the data model into the corresponding database table according to the storage mode, the database table name and the column name of the database table.
CN202010536038.6A 2020-06-12 2020-06-12 Model construction method and device for field, data and scene three-layer model Active CN111666355B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010536038.6A CN111666355B (en) 2020-06-12 2020-06-12 Model construction method and device for field, data and scene three-layer model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010536038.6A CN111666355B (en) 2020-06-12 2020-06-12 Model construction method and device for field, data and scene three-layer model

Publications (2)

Publication Number Publication Date
CN111666355A CN111666355A (en) 2020-09-15
CN111666355B true CN111666355B (en) 2023-09-08

Family

ID=72387400

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010536038.6A Active CN111666355B (en) 2020-06-12 2020-06-12 Model construction method and device for field, data and scene three-layer model

Country Status (1)

Country Link
CN (1) CN111666355B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112991512A (en) * 2021-02-08 2021-06-18 北京京航计算通讯研究所 Rapid scene model construction method based on measurement and control task analysis system model base
CN112991513B (en) * 2021-02-08 2022-11-22 北京京航计算通讯研究所 Rapid scene model construction system based on measurement and control task analysis system model base
CN116521026B (en) * 2023-06-30 2023-10-03 北京机械工业自动化研究所有限公司 Visualization method, device and equipment for green factory evaluation

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103294475A (en) * 2013-06-08 2013-09-11 北京邮电大学 Automatic service generating system and automatic service generating method both of which are based on imaging service scene and field template
CN104991960A (en) * 2015-07-22 2015-10-21 北京京东尚科信息技术有限公司 Method and apparatus for building data inventory model
CN106446382A (en) * 2016-09-14 2017-02-22 中国人民解放军国防科学技术大学 Domain-entity oriented graphic modeling and analyzing environment and implementation method thereof
CN108509599A (en) * 2018-04-02 2018-09-07 北京中电普华信息技术有限公司 A kind of creation method and device of data model
CN108520008A (en) * 2018-03-15 2018-09-11 链家网(北京)科技有限公司 The construction method and construction device of data warehouse model
CN109947422A (en) * 2019-03-14 2019-06-28 浪潮通用软件有限公司 A kind of Business Entity realization method and system based on Domain Driven Design
CN110866123A (en) * 2019-11-06 2020-03-06 浪潮软件集团有限公司 Method for constructing data map based on data model and system for constructing data map

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103294475A (en) * 2013-06-08 2013-09-11 北京邮电大学 Automatic service generating system and automatic service generating method both of which are based on imaging service scene and field template
CN104991960A (en) * 2015-07-22 2015-10-21 北京京东尚科信息技术有限公司 Method and apparatus for building data inventory model
CN106446382A (en) * 2016-09-14 2017-02-22 中国人民解放军国防科学技术大学 Domain-entity oriented graphic modeling and analyzing environment and implementation method thereof
CN108520008A (en) * 2018-03-15 2018-09-11 链家网(北京)科技有限公司 The construction method and construction device of data warehouse model
CN108509599A (en) * 2018-04-02 2018-09-07 北京中电普华信息技术有限公司 A kind of creation method and device of data model
CN109947422A (en) * 2019-03-14 2019-06-28 浪潮通用软件有限公司 A kind of Business Entity realization method and system based on Domain Driven Design
CN110866123A (en) * 2019-11-06 2020-03-06 浪潮软件集团有限公司 Method for constructing data map based on data model and system for constructing data map

Also Published As

Publication number Publication date
CN111666355A (en) 2020-09-15

Similar Documents

Publication Publication Date Title
CN111666355B (en) Model construction method and device for field, data and scene three-layer model
CN102341781B (en) Software test bed generation
KR100558952B1 (en) Method for automation of software manufacturing process based on graphic user interface design, and computer readable medium having thereon computer executable instruction for performing the same
US7184940B2 (en) Collaboration session recording model
CN107391653A (en) A kind of distributed NewSQL Database Systems and image data storage method
Dong et al. Managing design information in enterprise-wide CAD usingsmart drawings'
US8881127B2 (en) Systems and methods to automatically generate classes from API source code
Wu Building knowledge modeling: Integrating knowledge in BIM
Nicolle et al. Semantic building information model and multimedia for facility management
CN114115883B (en) Method for quickly constructing front-end application by using middle station service capability
CN101488086A (en) Software generation method and apparatus based on field model
CN101714078A (en) Code generation method and device
CN109523423A (en) A kind of application system generation method, device, equipment and storage medium
Gargaro et al. Towards a multi-functional HBIM model
CN105243237A (en) Assembly technology structure tree and building method thereof
Hijazi et al. 3DCITYDB4BIM: A system architecture for linking bim server and 3d citydb for bim-gis-integration
CN106951593A (en) A kind of method and apparatus for the configuration file for generating protection supervisory equipment
CN114168117A (en) Credit low-code development tool based on designer and storage device
St-Aubin et al. A web based modeling and simulation environment to support the DEVS simulation lifecycle
US7574329B1 (en) Object model for decision and issue tracking
Gomez Conceptual structural design through knowledge hierarchies
CN115794967B (en) Method and device for synchronously generating relation data mapping and semantic ontology
CN110221827A (en) Data processing method and relevant apparatus
CN111666073B (en) Graphical model construction method and device based on field driving design
CN109634606A (en) A kind of method and device of defined function menu

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