A relational data-based metrology data aggregation method and system
By developing a measurement data aggregation method and system based on relational data, the problem of low efficiency in multi-source power data aggregation has been solved, achieving efficient and accurate data aggregation and meeting the data processing needs of power companies.
Patent Information
- Application Number
- CN202211235428.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-10
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2042-10-10
AI Technical Summary
Existing technologies lack effective methods for collecting and aggregating multi-source power data, resulting in insufficient data processing speed and analysis accuracy.
This paper provides a method and system for aggregation of measurement data based on relational data. By determining the measurement data source to be aggregated, configuring data aggregation rules, generating data aggregation tasks, and performing data aggregation when the network is normal, the paper supports task monitoring and re-execution.
It achieves efficient aggregation of relational data, reduces development work, improves the efficiency and accuracy of data aggregation, supports periodic or real-time data aggregation, and meets the data processing needs of power companies.
Smart Images

Figure CN116226076B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of big data processing, and more specifically, to a method and system for aggregation of measurement data based on relational data. Background Technology
[0002] In recent years, the rapid development of high-tech such as artificial intelligence, big data, and smart grids has provided power companies with new means to store and utilize massive amounts of measurement data. Currently, the power information network has achieved automatic data collection from hundreds of millions of operating smart meters and full data collection across all stages of the metering asset lifecycle. Facing massive amounts of power grid operation status information and power equipment operation status data, the collection and aggregation of multi-source data to accelerate data processing speed and improve analysis accuracy has become an urgent problem to be solved. Currently, power big data collection and aggregation has wide applications in various fields such as the power market, residential electricity consumption, power system safety assessment, and power grid disaster early warning. Therefore, the analysis and research of relational data collection and aggregation technologies are of paramount importance. Summary of the Invention
[0003] To address the technical problem of the lack of effective methods for collecting and aggregating multi-source power data in existing technologies, this invention provides a measurement data aggregation method and system based on relational data.
[0004] According to one aspect of the present invention, a method for aggregation of measurement data based on relational data is provided, the method comprising:
[0005] Determine the measurement data sources to be aggregated;
[0006] Configure the data aggregation rules and generate a data aggregation task;
[0007] Data aggregation is performed based on the identified measurement data sources to be aggregated and the generated data aggregation task.
[0008] Optionally, the data source to be aggregated is configured before determining the data source to be aggregated, wherein:
[0009] For the proposed new measurement data source, set the data source parameters, which include data source name, data source type, IP address, database name, username, password, port, and service name;
[0010] Verify the data link based on the data source parameters;
[0011] When the network is normal and the data connection is successfully verified, the proposed new measurement data source will be stored as a valid data source in the database specified in the data source parameters.
[0012] Optionally, determining the measurement data sources to be aggregated includes:
[0013] Select the initial measurement data source to be aggregated from the configured valid data sources;
[0014] Verify the data link based on the data source parameters of the initial measurement data source;
[0015] When the network is normal and the verification data connection is successful, the initial measurement data source will be used as the measurement data source to be aggregated.
[0016] Optionally, the data aggregation rules can be configured to generate data aggregation tasks, including:
[0017] Configure data aggregation rules, which include task start time, task end time, and data aggregation method;
[0018] Generate a data aggregation task based on the configured data aggregation rules.
[0019] Optionally, before performing data aggregation based on the determined measurement data source to be aggregated and the generated data aggregation task, the following steps are also included:
[0020] The validity of the generated data aggregation task shall be verified. Data aggregation shall be performed only if the generated data aggregation task is valid, based on the determined measurement data source to be aggregated and the generated data aggregation task.
[0021] Optionally, the method further includes monitoring the execution progress and results of the created aggregation tasks, and reactivating failed data aggregation tasks with a single click for re-execution.
[0022] According to another aspect of the present invention, a measurement data aggregation system based on relational data is provided, the system comprising:
[0023] The data source determination unit is used to determine the measurement data sources to be aggregated.
[0024] The aggregation task unit is used to configure data aggregation rules and generate data aggregation tasks;
[0025] The data aggregation unit is used to aggregate data based on the determined measurement data source to be aggregated and the generated data aggregation task.
[0026] Optionally, the system further includes a data source configuration unit for configuring the data source, wherein:
[0027] For the proposed new measurement data source, set the data source parameters, which include data source name, data source type, IP address, database name, username, password, port, and service name;
[0028] Verify the data link based on the data source parameters;
[0029] When the network is normal and the data connection is successfully verified, the proposed new measurement data source will be stored as a valid data source in the database specified in the data source parameters.
[0030] Optionally, the data source determination unit determines the measurement data sources to be aggregated, including:
[0031] Select the initial measurement data source to be aggregated from the configured valid data sources;
[0032] Verify the data link based on the data source parameters of the initial measurement data source;
[0033] When the network is normal and the verification data connection is successful, the initial measurement data source will be used as the measurement data source to be aggregated.
[0034] Optionally, the aggregation task unit configures data aggregation rules and generates data aggregation tasks, including:
[0035] Configure data aggregation rules, which include task start time, task end time, and data aggregation method;
[0036] Generate a data aggregation task based on the configured data aggregation rules.
[0037] Optionally, the system further includes a task review unit, which is used to review the validity of the generated data aggregation task. If the generated data aggregation task is valid, the system performs data aggregation based on the determined measurement data source to be aggregated and the generated data aggregation task.
[0038] Optionally, the system also includes an aggregation management unit, which monitors the execution progress and results of created aggregation tasks, and reactivates failed data aggregation tasks with one click for re-execution.
[0039] The present invention provides a method and system for aggregation of measurement data based on relational data. The method includes determining the measurement data source to be aggregated, configuring data aggregation rules, and generating a data aggregation task; and performing data aggregation based on the determined measurement data source and the generated data aggregation task. This method and system efficiently aggregate relational data to a data center or big data platform through task scheduling, thereby achieving real-time, on-demand data aggregation. This reduces the development work required for data aggregation and enables periodic or real-time data aggregation through rapid customization of data aggregation tasks, achieving both high development and operational efficiency. Attached Figure Description
[0040] Exemplary embodiments of the present invention can be more fully understood by referring to the following figures:
[0041] Figure 1 This is a flowchart illustrating a measurement data aggregation method based on relational data according to a preferred embodiment of the present invention.
[0042] Figure 2 This is a flowchart illustrating a measurement data aggregation method based on relational data according to another preferred embodiment of the present invention.
[0043] Figure 3 This is a schematic diagram of the structure of a measurement data aggregation system based on relational data according to a preferred embodiment of the present invention. Detailed Implementation
[0044] Exemplary embodiments of the invention will now be described with reference to the accompanying drawings. However, the invention may be embodied in many different forms and is not limited to the embodiments described herein. These embodiments are provided to fully and completely disclose the invention and to fully convey its scope to those skilled in the art. The terminology used in the exemplary embodiments illustrated in the drawings is not intended to limit the invention. In the drawings, the same units / elements are referred to by the same reference numerals.
[0045] Unless otherwise stated, the terms used herein (including technical terms) have their common meaning as understood by one of ordinary skill in the art. Furthermore, it is understood that terms defined in commonly used dictionaries should be understood to have a meaning consistent with the context of their relevant field, and not to be interpreted as having an idealized or overly formal meaning.
[0046] Figure 1 This is a flowchart illustrating a measurement data aggregation method based on relational data according to a preferred embodiment of the present invention. Figure 1 As shown, the measurement data aggregation method based on relational data described in this preferred embodiment starts from step 101.
[0047] In step 101, the measurement data source to be aggregated is determined.
[0048] Preferably, the method further includes configuring the data source before determining the measurement data source to be aggregated, wherein:
[0049] For the proposed new measurement data source, set the data source parameters, which include data source name, data source type, IP address, database name, username, password, port, and service name;
[0050] Verify the data link based on the data source parameters;
[0051] When the network is normal and the data connection is successfully verified, the proposed new measurement data source will be stored as a valid data source in the database specified in the data source parameters.
[0052] Preferably, determining the measurement data source to be aggregated includes:
[0053] Select the initial measurement data source to be aggregated from the configured valid data sources;
[0054] Verify the data link based on the data source parameters of the initial measurement data source;
[0055] When the network is normal and the verification data connection is successful, the initial measurement data source will be used as the measurement data source to be aggregated.
[0056] In one embodiment, by pre-establishing a database to store the measurement data sources that can be aggregated, it is convenient to directly call the pre-configured data sources from the database each time an aggregation task is performed. Of course, the measurement data sources can also be created directly before creating the data aggregation task; this application does not impose any limitations on this.
[0057] In step 102, the data aggregation rules are configured to generate a data aggregation task.
[0058] Preferably, configuring data aggregation rules to generate a data aggregation task includes:
[0059] Configure data aggregation rules, which include task start time, task end time, and data aggregation method;
[0060] Generate a data aggregation task based on the configured data aggregation rules.
[0061] In one embodiment, the data aggregation method may be an SQL query statement or other data calculation types.
[0062] In step 103, data aggregation is performed based on the determined measurement data source to be aggregated and the generated data aggregation task.
[0063] Preferably, before performing data aggregation based on the determined measurement data source to be aggregated and the generated data aggregation task, the method further includes:
[0064] The validity of the generated data aggregation task shall be verified. Data aggregation shall be performed only if the generated data aggregation task is valid, based on the determined measurement data source to be aggregated and the generated data aggregation task.
[0065] Preferably, the method further includes monitoring the execution progress and results of the created aggregation tasks, and reactivating failed data aggregation tasks with one click for re-execution.
[0066] In one embodiment, data aggregation is performed based on the determined measurement data source to be aggregated and the generated data aggregation task. The data aggregation task needs to be sent to the measurement data source to be aggregated through an interface. Generally, the measurement data source to be aggregated is the provincial data acquisition system in the power system. After the data data source to be aggregated completes data acquisition according to the data aggregation task, the data collected by the data source to be aggregated is received through the corresponding interface and displayed.
[0067] Figure 2 This is a flowchart illustrating a measurement data aggregation method based on relational data according to another preferred embodiment of the present invention. Figure 2 As shown, the measurement data aggregation method based on relational data described in this preferred embodiment starts from step 201.
[0068] In step 201, the measurement data source to be aggregated is determined. The parameters of the measurement data source include the data source IP address, database name, username, password, port, service name, etc.
[0069] In step 202, a new data aggregation task is created. The task can be an SQL query statement or a data calculation model.
[0070] In step 203, the data aggregation task is reviewed. If the data aggregation task is valid, step 204 is executed. If the data aggregation task is invalid, the aggregation process ends.
[0071] In step 204, the data aggregation task is sent to the measurement data source to be aggregated. The task sending can be implemented through a RESTful interface. The execution progress and execution results of the measurement data source to be aggregated are received when the data aggregation is performed according to the task start time, end time and aggregation method configured in the data aggregation task. The receipt of the execution progress and execution results can be implemented through a Kafka interface.
[0072] Figure 3 This is a schematic diagram of the structure of a measurement data aggregation system based on relational data according to a preferred embodiment of the present invention. Figure 3 As shown, the measurement data aggregation system based on relational data in this preferred embodiment includes:
[0073] Data source determination unit 301 is used to determine the measurement data source to be aggregated;
[0074] The data aggregation task unit 302 is used to configure data aggregation rules and generate data aggregation tasks.
[0075] The data aggregation unit 303 is used to aggregate data based on the determined measurement data source to be aggregated and the generated data aggregation task.
[0076] Preferably, the system further includes a data source configuration unit for configuring the data source, wherein:
[0077] For the proposed new measurement data source, set the data source parameters, which include data source name, data source type, IP address, database name, username, password, port, and service name;
[0078] Verify the data link based on the data source parameters;
[0079] When the network is normal and the data connection is successfully verified, the proposed new measurement data source will be stored as a valid data source in the database specified in the data source parameters.
[0080] Preferably, the data source determination unit determines the measurement data source to be aggregated by including:
[0081] Select the initial measurement data source to be aggregated from the configured valid data sources;
[0082] Verify the data link based on the data source parameters of the initial measurement data source;
[0083] When the network is normal and the verification data connection is successful, the initial measurement data source will be used as the measurement data source to be aggregated.
[0084] Preferably, the data aggregation task unit configures the data aggregation rules and generates the data aggregation task, including:
[0085] Configure data aggregation rules, which include task start time, task end time, and data aggregation method;
[0086] Generate a data aggregation task based on the configured data aggregation rules.
[0087] Preferably, the system further includes a task review unit, which is used to review the validity of the generated data aggregation task. If the generated data aggregation task is valid, the system performs data aggregation based on the determined measurement data source to be aggregated and the generated data aggregation task.
[0088] Preferably, the system further includes an aggregation management unit, which is used to monitor the execution progress and results of the created aggregation tasks, and to reactivate failed data aggregation tasks with one click and re-execute them.
[0089] The steps of the measurement data aggregation system based on relational data described in this preferred embodiment for collecting and aggregating multi-source data are the same as those of the measurement data aggregation method based on relational data, and the technical effects achieved are also the same, so they will not be repeated here.
[0090] The invention has been described with reference to a few embodiments. However, as will be known to those skilled in the art, and as defined in the appended claims, other embodiments besides those disclosed above fall equivalently within the scope of the invention.
[0091] Generally, all terms used in the claims are to be interpreted according to their ordinary meaning in the art, unless otherwise expressly defined herein. All references to “a / the / the [device, component, etc.]” are openly interpreted as at least one instance of said device, component, etc., unless otherwise expressly stated. The steps of any method disclosed herein need not be performed in the exact order disclosed unless explicitly stated otherwise.
[0092] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can 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, etc.) containing computer-usable program code.
[0093] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0094] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0095] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0096] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that modifications or equivalent substitutions can still be made to the specific implementation of the present invention. Any modifications or equivalent substitutions that do not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. A measurement data aggregation method based on relational data, characterized in that, The method includes: Configure the data source, including: for the proposed new measurement data source, set the data source parameters, which include data source name, data source type, IP address, database name, username, password, port, and service name; verify the data connection based on the data source parameters; When the network is normal and the data connection is successfully verified, the proposed new measurement data source will be stored as a valid data source in the database specified in the data source parameters. Determining the measurement data source to be aggregated includes: selecting the initial measurement data source to be aggregated from the configured valid data sources; verifying the data link according to the data source parameters of the initial measurement data source; when the network is normal and the data link verification is successful, using the initial measurement data source as the measurement data source to be aggregated. Configure data aggregation rules and generate data aggregation tasks, including: Configure data aggregation rules, which include task start time, task end time and data aggregation method, wherein the aggregation method includes SQL query statements or other data calculation types; Generate a data aggregation task based on the configured data aggregation rules; The validity of the generated data aggregation task is verified. If the generated data aggregation task is valid, the data aggregation task is sent to the measurement data source to be aggregated through the RESTful interface only. The data aggregation is performed based on the determined measurement data source to be aggregated and the generated data aggregation task, and the execution progress and results are received through the Kafka interface. The execution progress and results are monitored, and failed data aggregation tasks can be reactivated with one click and re-executed.
2. A measurement data aggregation system based on relational data, characterized in that, The system includes: The data source configuration unit is used to configure the data source, wherein: for the proposed new measurement data source, data source parameters are set, including data source name, data source type, IP address, database name, username, password, port, and service name; the data connection is verified according to the data source parameters; when the network is normal and the data connection is successfully verified, the proposed new measurement data source is stored as a valid data source in the database specified in the data source parameters; The data source determination unit is used to determine the measurement data source to be aggregated, including: selecting the initial measurement data source to be aggregated from the configured valid data sources; verifying the data link according to the data source parameters of the initial measurement data source; when the network is normal and the data link verification is successful, using the initial measurement data source as the measurement data source to be aggregated. The aggregation task unit is used to configure data aggregation rules and generate data aggregation tasks, including: Configure data aggregation rules, which include task start time, task end time and data aggregation method, wherein the aggregation method includes SQL query statements or other data calculation types; Generate a data aggregation task based on the configured data aggregation rules; The task review unit is used to review the validity of the generated data aggregation task. If the generated data aggregation task is valid, the data aggregation task is sent to the measurement data source to be aggregated through the RESTful interface. The data aggregation unit is used to aggregate data based on the determined measurement data sources to be aggregated and the generated data aggregation task. The aggregation management unit is used to receive the execution progress and results of data aggregation through the Kafka interface, monitor the execution progress and results, and reactivate failed data aggregation tasks with one click for re-execution.
Citation Information
Patent Citations
Data aggregation method and device and electronic equipment
CN113094393A
