Water conservancy business scene-oriented multi-dimensional multi-layer data model construction method
By constructing a five-dimensional water conservancy business scenario model and unit data model, the problem of inability to effectively describe water conservancy business scenarios in the existing technology is solved, the integrity and flexibility of the data model are achieved, the response efficiency is improved and the operation and maintenance costs are reduced.
Patent Information
- Application Number
- CN202411527413.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-30
- Publication Date
- 2025-03-11
AI Technical Summary
In the construction of data model for water conservancy business scenarios, the existing technology cannot effectively describe business scenarios that do not use professional models, resulting in a lack of organic connections in data entities, low response efficiency, weak versatility, and high development and operation and maintenance costs.
The multi-dimensional and multi-layer data model construction method is adopted for water conservancy business scenarios. By constructing a five-dimensional water conservancy business scenario model (water conservancy objects, calculation materials, calculation models, calculation time, calculation results), and establishing the relationship between these dimensions, building unit data models and water conservancy object topology, realizing the dynamic organization and response of data.
It realizes the integrity of business scenario description and the clarity of data relationships, improves the efficiency of dynamic data organization, reduces development, operation and maintenance costs, and improves the flexibility and responsiveness of the system.
Smart Images

Figure CN119598702A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of data processing, and in particular relates to a method for constructing a multi-dimensional and multi-layer data model for water conservancy business scenarios. Background Art
[0002] The water conservancy data model is a data model proposed in the process of building a digital twin river basin. It is used to describe the spatial characteristics, business characteristics, relationship characteristics, and time characteristics of water conservancy objects, and to manage and organize data.
[0003] Water conservancy business is characterized by multiple goals, multiple levels, multiple objects, and complexity. According to business goals, it can be divided into flood control dispatching, water resources allocation, water environment protection, water ecological restoration, etc.; the same goal business can be disassembled layer by layer according to the nested relationship. For example, flood control dispatching can be subdivided into operation forecasting, flood control situation analysis, etc., among which operation forecasting can be subdivided into runoff and confluence, etc.; the same business can be further disassembled according to the water conservancy objects involved and their subordinate relationships. For example, reservoir runoff can be disassembled layer by layer into interval runoff and interval unit runoff. In the process of building a business system, it is necessary to combine businesses with different goals, businesses at different levels, and water conservancy objects at different levels according to changing business needs to form various business scenarios. Existing related technologies have achieved efficient and flexible construction of water conservancy business scenarios, but the modeling of business scenarios is limited to water conservancy objects, water conservancy businesses, and professional models. There is a lack of organization of other computing materials for business scenarios, and it is impossible to describe business scenarios that do not use professional models.
[0004] Water conservancy data is massive, multi-modal, multi-source, and changes with time and space. According to business characteristics, it can be divided into basic data, monitoring data, business management data, geospatial data, external shared data, etc.; according to data format, it can be divided into structured, semi-structured, unstructured, etc.; according to data source, it can be divided into external system acquisition, system internal acquisition, etc. The existing technology is to sort out the data content that may be included at the beginning of the construction of the business system, and classify the table structure according to the business characteristics of the data, such as dividing the flood control dispatch database table into basic information, water information, engineering information, etc., and then citing or referring to relevant standards and specifications to establish each table. Some further established data models for water conservancy objects, but the database tables are not related to the business, and the data entities lack organic connections. When executing business scenarios, all data are obtained through manually written data interfaces. When the business scenarios change, customized data interfaces need to be developed, with low response efficiency, weak versatility, and high development and operation and maintenance costs.
[0005] Some related technologies have proposed to extract and generate data models based on large language models or knowledge graphs, but since water conservancy business involves a lot of professional knowledge, training is difficult and costly, and the extracted high-quality information is relatively small. Therefore, there is an urgent need for a water conservancy data model construction method that can fully, flexibly, and standardize the organization of business scenario-related data. Summary of the invention
[0006] In view of the problems existing in the prior art, the present invention provides a method for constructing a multi-dimensional and multi-layer data model for water conservancy business scenarios, which can flexibly, completely and standardize the description of business scenarios and quickly respond to the dynamic data organization needs brought about by business changes.
[0007] To achieve the above objectives, the technical solution of the present invention is:
[0008] A method for constructing a multi-dimensional and multi-layer data model for water conservancy business scenarios, characterized in that the method comprises the following steps:
[0009] S1: Construct a five-dimensional water conservancy business scenario model, wherein the five dimensions include water conservancy objects, calculation materials, calculation models, calculation time, and calculation results, so as to describe the water conservancy business scenario through the data of the five dimensions of water conservancy objects, calculation materials, calculation models, calculation time, and calculation results, and determine the calculation materials according to the water conservancy business;
[0010] S2: Establish the relationship between the water conservancy business and the calculation material;
[0011] S3: Establish the relationship between the water conservancy business and the calculation results;
[0012] S4: construct the water conservancy object attribute table, calculation material attribute table, calculation model attribute table, calculation time attribute table, and calculation result attribute table respectively;
[0013] S5: construct a water conservancy unit business attribute table, where the unit business attribute table is used to describe information on water conservancy objects, calculation materials, calculation models, calculation time, and calculation results involved in the water conservancy unit business scenario;
[0014] S6: constructing a unit data model, and determining in the unit data model the association relationship between the water conservancy unit business attribute table and the water conservancy object attribute table, the calculation time attribute table, the calculation model attribute table, each calculation material, and the calculation result attribute table;
[0015] S7: According to the requirements of the water conservancy business scenario, the unit data models are combined to construct a water conservancy data model for a business scenario.
[0016] Furthermore, the S2 step constructs the relationship between the water conservancy business and the material, including constructing a business-computational material matrix, in which the business is represented by rows and is decomposed layer by layer from the domain business to the unit business, and the calculation material is represented by columns and divided according to the information type. The cell indicates whether the execution of the unit business requires the input of the calculation material. In the present invention, the domain business is a general term for a series of business processes in a certain professional field, such as flood control scheduling, water resources allocation, water environment protection, and water ecological restoration. The unit business refers to a business process that cannot be further decomposed.
[0017] Furthermore, the S3 step constructs the relationship between the water conservancy business and the calculation results, including constructing a business-calculation result matrix, using rows, columns, and cells to respectively represent unit business, calculation results, and whether the unit business has the output of the calculation results.
[0018] Furthermore, in the S4 step, the water conservancy object attribute table is divided into two layers, the first layer is the general attribute table of water conservancy objects, and the second layer is the attribute table of a certain type of water conservancy objects. Both tables store object type ID identification numbers, and the general attribute table of objects in the first layer is associated with the attributes of a certain type of water conservancy objects in the second layer through the object type ID.
[0019] Furthermore, a unit business attribute table in the unit data model of step S6 is directly associated with the first-layer object attribute table, the time attribute table, and the calculation material attribute table whose cells are "yes" in the business-calculation material matrix, and is indirectly associated with the other-layer object attribute table, the time attribute table, and the calculation material attribute table whose cells are "yes" in the business-calculation material matrix.
[0020] Furthermore, the step S7 combines the unit data models by constructing a water conservancy object topology, constructing a unit data model topology, and assigning a calculation time attribute.
[0021] Furthermore, the water conservancy object topology is constructed by connecting the water conservancy objects involved in executing the water conservancy business in sequence from upstream to downstream according to hydraulic relationships and subordinate relationships.
[0022] Furthermore, the unit data model topology is established according to the unit business, object topology and calculation flow involved in the water conservancy business scenario; the calculation flow has a hierarchical structure, and there are two types of calculation flows for different objects of the same type of unit data models: one is serial execution according to the hydraulics and subordinate relationships of the objects, and the other is parallel execution, that is, serial execution when there are hydraulics and subordinate relationships between objects, and parallel execution when there are no hydraulics and subordinate relationships, such as serial execution of upstream and downstream river channels in the evolution model calculation, and parallel execution of all interval units in the flow generation model calculation; there are two types of calculation flows for the same object of different types of unit data models: one is serial execution according to business logic, and the other is parallel execution, that is, serial execution when there is business logic in the water conservancy business, and parallel execution when there is no business logic.
[0023] Furthermore, the assigning of calculation time attributes is to assign different time attributes to the unit data model.
[0024] The beneficial effects of the present invention are:
[0025] 1. The business scenario description of the present invention is complete and the data relationship is clear: The present invention constructs a water conservancy business scenario model from five dimensions: water conservancy objects, computing materials, computing models, computing time, and computing results. It fully expresses the business characteristics, spatial (object) characteristics, time characteristics, and relationship characteristics of the water conservancy business, decomposes the water conservancy business layer by layer into unit business, and establishes a connection between massive, multi-modal, multi-source data that changes with time and space and unit business.
[0026] 2. The dynamic organization of data is efficient, and a one-time building block model can quickly respond to changes in business scenarios: The present invention constructs a unit data model for unit business, and flexibly arranges the unit data model according to the unit business involved in the water conservancy business scenario, the hydraulics, subordination relationships of the objects, and the calculation flow. By adding time attributes, dynamic organization of data related to various water conservancy business scenarios can be achieved, and there is no need to customize the development of data interfaces.
[0027] 3. The data table is highly versatile and reduces development and operation costs: The unit business, object, time, and various computing material attribute tables constructed by the present invention all adopt standardized definitions, with strong readability, usability, and reusability, which can save development and operation costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 This is a flow chart of the method for constructing a multi-dimensional and multi-layer data model for water conservancy business scenarios according to the present invention.
[0029] Figure 2 It is a schematic diagram of the five-dimensional water conservancy business scenario model of the present invention.
[0030] Figure 3 It is a schematic diagram of the business-computing material matrix of the present invention.
[0031] Figure 4 Schematic diagram of the business-computing results matrix of the present invention.
[0032] Figure 5 It is a schematic diagram of the unit data model of the present invention.
[0033] Figure 6 This is a schematic diagram of the water conservancy data model system architecture of the present invention.
[0034] Figure 7 This is a topological schematic diagram of the object of the present invention.
[0035] Figure 8 This is a schematic diagram of the multi-dimensional and multi-layer data model for water conservancy business scenarios of the present invention. DETAILED DESCRIPTION
[0036] In order to make the purpose, technical solutions and advantages of the invention clearer, the present invention is further described below with reference to the accompanying drawings.
[0037] The present invention provides a method for constructing a multi-dimensional and multi-layer data model for water conservancy business scenarios. Figure 1 As shown, the method comprises the following steps:
[0038] S1: Construct a five-dimensional water conservancy business scenario model. The five dimensions refer to water conservancy objects, calculation materials, calculation models, calculation time, and calculation results. Any water conservancy business scenario can be described using data from the five dimensions of water conservancy objects, calculation materials, calculation models, calculation time, and calculation results.
[0039] In the above technical solution, the five-dimensional water conservancy business scenario model is as follows Figure 2 shown.
[0040] Figure 2 In this document, water conservancy objects refer to objectively existing physical objects such as reservoirs, rivers, and measuring stations, as well as artificially defined objects such as intervals and interval units. The intervals mentioned above, for example, artificially divide a certain spatial range of water conservancy objects such as the upstream of a reservoir or a hydrological station into several blocks called intervals, and each block is further divided into small blocks called interval units; water conservancy models refer to water conservancy professional models, logical judgment models, etc.; calculation materials can be further expanded based on meteorology, rainfall conditions, water conditions, construction conditions, disaster conditions, dangerous conditions, social economy, model parameters, knowledge, geographic space, etc. according to actual needs.
[0041] The business scenario selected by the embodiment of the present invention is to calculate the flow production every 6 hours in the next 3 days based on the rainfall forecast and other information of a reservoir interval unit using a certain flow production model. In the present invention, flow production is defined as a unit business, reservoirs, hydrological stations, and interval units are water conservancy objects, every 6 hours in the next 3 days is the calculation time, the flow production model is the calculation model, the interval unit rainfall forecast and other information is the calculation material, and the flow production is the calculation result.
[0042] S2: Construct the relationship between water conservancy business and calculation materials. In a specific example, a business-calculation material matrix can be constructed. Businesses are represented by rows and broken down layer by layer from domain business to unit business. Calculation materials are represented by columns and divided according to information type. The cell indicates whether the input of the calculation material is required to execute the unit business.
[0043] The business-computing material matrix constructed is as follows Figure 3As shown, the field business selected by the embodiment of the present invention is flood control scheduling, which can be divided into unit businesses such as operation forecast. The unit business operation forecast is divided into unit businesses including: runoff generation, confluence, evolution, and correction; the calculation materials are divided into meteorology, rainfall conditions, water conditions, construction conditions, disaster conditions, dangerous conditions, social economy, model parameters, knowledge, geographic space, etc.; the cells judge whether the calculation materials need to be used for the execution of the unit business, row by row and column by column, "yes" means needed, and "no" means not needed. For example, the calculation materials for runoff generation include meteorology, rainfall conditions, model parameters, and geographic space.
[0044] S3: constructing a relationship between business and computing results. In a specific embodiment, a business-computing result matrix may be constructed, using rows, columns, and cells to represent unit business, computing results, and whether the unit business has output of the computing results;
[0045] Build a business-computing results matrix. Figure 4 As shown, the unit business selected in the embodiment of the present invention is flow generation, flow confluence, evolution, and correction. The selected output calculation results are flow generation, flow confluence, evolution flow, initial forecast flow, automatic correction forecast flow, and manual correction forecast flow. The cells are judged row by row and column by column according to whether the unit business has the output of the calculation result. "Yes" means output, and "No" means no output. For example, the flow generation output is flow generation, the flow confluence output is confluence, the evolution output is evolution flow, and the correction output is initial forecast flow, automatic correction forecast flow, and manual correction forecast flow.
[0046] S4: Construct attribute tables for water conservancy objects, calculation time, calculation model, various calculation materials, and calculation results respectively. Each attribute table adopts standardized and unified attribute definitions. The attributes should be as rich and unique as possible. Different attribute tables can contain the same attributes, that is, the same fields can appear in different attribute tables, but the field definitions need to be unified. Structured, semi-structured, and unstructured data are supported. For example, the data corresponding to the water conservancy object topology field is unstructured, and the data corresponding to the water conservancy object name field is structured.
[0047] Construct the water conservancy object, calculation time, calculation model, various calculation materials, and calculation result attribute tables respectively. Figure 5 As shown, the embodiment of the present invention selects water conservancy objects, calculation time, calculation model, calculation results, and four calculation materials of rainfall conditions, water conditions, model parameters, and geographic space to construct attribute tables respectively.
[0048] The water conservancy object, calculation time, calculation model, various calculation materials, and calculation result attribute table may have a hierarchical structure, and the attributes mainly have two sources: one is to select from relevant standard specifications, and the other is to create by customization.
[0049] Considering that the attributes of different types of water conservancy objects, such as reservoirs and measuring stations, are quite different, the water conservancy object attribute table can be divided into two layers. The first layer is the general attribute table of each water conservancy object; the second layer is the attribute table of a certain type of water conservancy object, such as Figure 5 The interval (unit) attribute table in. Both tables have object type IDs, which can be set as primary key and foreign key to realize the automatic association between the first-layer object general attribute table and a certain type of water conservancy object attribute in the second layer through the object type ID; the water conservancy object general attribute table stores general attributes such as water conservancy object ID, water conservancy object name, water conservancy object type ID, water conservancy object topology, minimum administrative division, etc., and then associates with various types of object attribute tables through object type ID. The attributes of different types of objects are quite different. For example, the reservoir attribute table has characteristic storage capacity and reservoir scheduling mode, while the hydrological station attribute table does not; the object topology in the present invention is as follows Figure 7 As shown, object topology refers to the relationship between water conservancy objects, such as upstream and downstream, inclusion relationships, etc.; object type ID is the ID of a certain type of water conservancy object, such as reservoir ID, hydrological station ID, and object ID is the ID of a specific water conservancy object, such as the Three Gorges Reservoir ID, Gezhouba Reservoir ID, Zhijiang Hydrological Station ID, and Shashi Hydrological Station ID.
[0050] The calculation time attribute table stores attributes such as year, month, ten days, day, 12h, and 6h.
[0051] The calculation model attribute table stores the calculation model ID, calculation model name, calculation model type, calculation model status and other attributes.
[0052] The calculation material attribute table, for example, the meteorological attribute table stores attributes such as weather situation raster maps and satellite cloud maps; the rainfall attribute table stores attributes such as forecast rainfall time series data ID and forecast rainfall; the model parameter attribute table stores attributes such as model parameter ID, model parameter name, and model parameter unit of multiple different models; the geographic space attribute table stores attributes such as digital elevation model DEM, digital orthophoto map DOM, and administrative division code; the calculation result attribute table stores attributes such as flow production and flow confluence. The DEM and DOM are classified as geospatial data in accordance with the industry's digital twin technology requirements.
[0053] S5: Construct unit business attribute tables. Each attribute table adopts standardized and unified attribute definitions, that is, the attributes should clearly and completely describe the five-dimensional information of the unit business scenario, support structured, semi-structured, and unstructured data, and different attribute tables can contain the same attributes;
[0054] Construct a unit business attribute table. Figure 5As shown, the unit business selected by the embodiment of the present invention is runoff generation, and the runoff generation business attribute table stores five-dimensional information that can fully express the business, including: runoff generation scheme ID, runoff generation scheme name, forecast rainfall time series data ID, water conservancy object topology, calculation model ID, model parameter ID, forecast start and end time, forecast period step, flow generation, etc. In the present invention, one model can use multiple sets of parameters for calculation, so the model parameter ID is set to distinguish each set of model parameters.
[0055] In the above technical solution, the unit business attribute table has no hierarchical structure, and its attributes mainly come from four sources: one is selected from the calculation material attribute table with a cell of "yes" in the business-calculation material matrix, the second is selected from the business-calculation result matrix, the third is selected from the object attribute table and the time attribute table, and the fourth is custom creation.
[0056] S6: construct a unit data model, and determine the association between the unit business attribute table and the water conservancy object attribute table, the calculation time attribute table, the calculation model attribute table, each calculation material, and the calculation result attribute table in the unit data model;
[0057] Construct the unit data model. Figure 5 As shown, the unit data model selected in the embodiment of the present invention is the runoff data model, and the runoff attribute table is directly associated with the general attribute table of water conservancy objects, the calculation time attribute table, the calculation model attribute table, and the calculation result attribute table, and is indirectly associated with the interval (unit) attribute table. According to the business-calculation material information matrix, it is also directly associated with the rainfall attribute table, the water attribute table, the model parameter attribute table, and the geographic space attribute table.
[0058] Regarding the present invention, the flow attribute table is directly associated with the general attribute table of water conservancy objects, and indirectly associated with the interval (unit) attribute table. For example, the ID of the object type in the general attribute table of water conservancy objects selects the ID identification number of the interval (unit), thereby realizing the direct association between the flow attribute table and the general attribute of the water conservancy object. Then, according to the needs of the unit business, a specific interval (unit) ID identification number is selected from the interval (unit) attribute table, thereby realizing the indirect association between the flow attribute table and the interval (unit) attribute. Each unit data model is summarized upward layer by layer according to the water conservancy business hierarchy, forming a Figure 6 The multi-layer water conservancy data model architecture shown.
[0059] In the above technical scheme, a unit business attribute table in the unit data model is directly associated with the first-layer water conservancy object attribute table, the calculation model attribute table, the calculation time attribute table, the calculation material attribute table with cells "yes" in the business-calculation material matrix, and the calculation results attribute table, and is indirectly associated with other layers of water conservancy object attribute tables, calculation model attribute tables, calculation time attribute tables, the calculation material attribute tables with cells "yes" in the business-calculation material matrix, and the calculation results attribute tables.
[0060] S7: Construct a water conservancy business scenario data model, including three sub-steps: constructing water conservancy object topology, constructing unit data model topology, and assigning calculation time attributes.
[0061] S7-1. Construct the water conservancy object topology and arrange the water conservancy objects involved in the water conservancy business according to the hydraulic relationship and subordinate relationship. Figure 7 As shown, the trapezoid represents a reservoir, the triangle represents a hydrological station, the ellipse represents an interval (unit), the diamond represents a river, the solid line represents a subordinate relationship, and the solid arrow represents a hydraulic relationship. The water conservancy business scenario selected in the embodiment of the present invention is operation forecasting. The objects, hydraulics and subordinate relationships involved in this business scenario are as follows: Reservoir 1 includes interval 1.1 and interval 1.2, and each interval includes two interval units. Reservoir 3 includes interval 3.1, and interval 3.1 includes two interval units. Hydrological station 5 includes interval 5.1, and interval 5.1 includes two interval units. Reservoir 1, river 2, reservoir 3, river 4 and hydrological station 5 are connected in sequence from upstream to downstream.
[0062] S7-2, build the unit data model topology. Figure 8 As shown, the water conservancy business scenario selected in the embodiment of the present invention is operation forecasting, and the rectangle represents the unit data model, wherein the letter represents the unit data model type (A represents the runoff data model, B represents the confluence data model, C represents the evolution data model, and D represents the correction data model), and the number represents Figure 7 The object number in the figure, the dotted arrow indicates the calculation flow, and the unit data models and calculation flows involved are: the runoff data models of each interval unit in calculation layer 1 are calculated in parallel; the confluence data models (B1, B3, B5) of reservoir 1, reservoir 3, and hydrological station 5 in calculation layer 2 are calculated in parallel, and must be calculated after the runoff data models in the dotted boxes in calculation layer 1 are calculated, such as B1 must be calculated after A1.1.1~A1.2.2 are calculated; the evolution data model (C2) of river channel 2 in calculation layer 3 must be calculated after the confluence data model (B1) of reservoir 1 in calculation layer 2 is calculated, and the evolution data model (C4) of river channel 4 must be calculated after the evolution data model (C5) of river channel 2 is calculated. After the data model (C2) and the confluence data model (B3) of reservoir 3 are calculated; the correction models (D1, D3, D5) of reservoir 1, reservoir 3 and hydrological station 5 in the calculation layer 4 are calculated in parallel. At the same time, the correction data model (D1) of reservoir 1 must be calculated after the confluence data model (B1) of reservoir 1 is calculated, the correction data model (D3) of reservoir 3 must be calculated after the evolution data model (C2) of river channel 2 and the confluence data model (B3) of reservoir 3 are calculated, and the correction data model (D5) of hydrological station 5 must be calculated after the evolution data model (C4) of river channel 4 and the confluence data model (B5) of hydrological station 5 are calculated.
[0063] S7-3, assigning calculation time attributes. Assign different time attributes to the S7-2 unit data model topology, such as once every 6 hours in the next 3 days, to obtain 12 groups of unit data model topologies, which together constitute the multi-dimensional and multi-layer data model of the water conservancy business scenario.
[0064] In the above technical scheme, the water conservancy object topology is established according to the hydraulic relationship and subordinate relationship of the objects involved in the water conservancy business scenario; the unit data model topology is established according to the unit business involved in the water conservancy business scenario, the water conservancy object topology and the calculation flow; the calculation flow has a hierarchical structure, and the same type of unit data model has two kinds of calculation flows for different objects: serial calculation when there are hydraulic and subordinate relationships between water conservancy objects, and parallel calculation when there are no hydraulic or subordinate relationships, such as all interval units are executed in parallel when calculating the flow generation model, and the upstream and downstream rivers are calculated in series when calculating the evolution model; there are two kinds of calculation flows for the same object of different types of unit data models: serial calculation when there is a logical relationship between different types of water conservancy businesses, and parallel calculation when there is no logical relationship. For example, for reservoirs, there is business logic for confluence and correction, that is, confluence first and then correction, so it is serial.
[0065] In the present invention, step S1 specifies five major categories of tables to be established and determines the subtables included in the calculation material class; step S2 specifies the unit business table to be established, obtains the overall architecture of the model, and determines the calculation material class subtable related to each unit business table; step S3 specifies the calculation results output by each unit business; step S4 specifies the fields included in other tables except the unit business table, wherein the calculation result attribute table uses the results of step S3; step S5 specifies the fields included in the unit business table, and according to the relationship between the unit business table and the calculation material class subtable established in step S2, selects the fields to be placed in the unit business table from the relevant results fields of step S4, and supplements the relevant fields according to the results of step S3, and supplements other fields at the same time; step S6 establishes the association relationship between the results of step S4 and step S5 based on the results of step S2, thereby establishing a unit business data model; step S7 combines the unit data models according to the unit business, water conservancy object topology and calculation flow involved in the water conservancy business scenario according to the business scenario requirements, thereby establishing a water conservancy data model for a business scenario.
[0066] Finally, it should be noted that the contents not described in detail in this specification belong to the prior art known to professional and technical personnel in this field. The above description is only the preferred embodiment of the present invention and is not used to limit the present invention. Although the present invention is described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions recorded in the aforementioned embodiments, or to replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for constructing a multi-dimensional and multi-layer data model for water conservancy business scenarios, characterized in that: The method comprises the following steps: S1: Construct a five-dimensional water conservancy business scenario model, where the five dimensions include water conservancy objects, calculation materials, calculation models, calculation time, and calculation results; S2: Establish the relationship between the water conservancy business and the calculation material; S3: Establish the relationship between the water conservancy business and the calculation results; S4: construct the attribute tables of water conservancy objects, calculation materials, calculation models, calculation time, and calculation results respectively; S5: construct a water conservancy unit business attribute table, where the unit business attribute table is used to describe information on water conservancy objects, calculation materials, calculation models, calculation time, and calculation results involved in the water conservancy unit business scenario; S6: constructing a unit data model, and determining in the unit data model the association relationship between the water conservancy unit business attribute table and the water conservancy object attribute table, the calculation time attribute table, the calculation model attribute table, each calculation material, and the calculation result attribute table; S7: According to the requirements of the water conservancy business scenario, the unit data models are combined to form a water conservancy data model for a business scenario.
2. The method for constructing a multi-dimensional and multi-layered data model for water conservancy business scenarios according to claim 1 is characterized in that: The S2 step constructs the relationship between the water conservancy business and the material, including constructing a business-computational material matrix, in which the business is represented by rows and is broken down layer by layer from the domain business to the unit business, and the calculation material is represented by columns and divided according to the information type, and the cell indicates whether the input of the calculation material is required to execute the unit business.
3. The method for constructing a multi-dimensional and multi-layered data model for water conservancy business scenarios according to claim 1 is characterized in that: The step S3 constructs the relationship between the water conservancy business and the calculation results, including constructing a business-calculation result matrix, using rows, columns, and cells to represent unit business, calculation results, and whether the unit business has the output of the calculation results.
4. The method for constructing a multi-dimensional and multi-layered data model for water conservancy business scenarios according to claim 1 is characterized in that: In the S4 step, the water conservancy object attribute table is divided into two layers, the first layer is the general attribute table of water conservancy objects, and the second layer is the attribute table of a certain type of water conservancy objects. Both tables store object type ID identification numbers. The general attribute table of objects in the first layer is associated with the attributes of a certain type of water conservancy objects in the second layer through the object type ID.
5. The method for constructing a multi-dimensional and multi-layered data model for water conservancy business scenarios according to claim 1 is characterized in that: A unit business attribute table in the unit data model of step S6 is directly associated with the first-layer object attribute table, time attribute table, and calculation material attribute table whose cells are "yes" in the business-calculation material matrix, and is indirectly associated with other layers of object attribute tables, time attribute tables, and calculation material attribute tables whose cells are "yes" in the business-calculation material matrix.
6. The method for constructing a multi-dimensional and multi-layered data model for water conservancy business scenarios according to claim 1 is characterized in that: The step S7 combines the unit data models, including constructing water conservancy object topology, constructing unit data model topology, and assigning calculation time attributes.
7. The method for constructing a multi-dimensional and multi-layered data model for water conservancy business scenarios according to claim 6 is characterized in that: The water conservancy object topology is constructed by sequentially connecting the water conservancy objects involved in executing the water conservancy business from upstream to downstream according to hydraulic relationships and subordinate relationships.
8. The method for constructing a multi-dimensional and multi-layered data model for water conservancy business scenarios according to claim 6 is characterized by: The unit data model topology is established according to the unit business, object topology and calculation flow involved in the water conservancy business scenario; the calculation flow has a hierarchical structure, and there are two types of calculation flows for different objects of the same type of unit data model: one is serial execution based on the object hydraulics and subordinate relationships, and the other is parallel execution; there are two types of calculation flows for the same object of different types of unit data models: one is serial execution based on business logic, and the other is parallel execution.
9. The method for constructing a multi-dimensional and multi-layered data model for water conservancy business scenarios according to claim 6, characterized in that: The assigning of calculation time attributes is to assign different time attributes to the unit data model.