System and method for generating an index topology graph based on an analytical expression
The indicator topology graph system based on analytical expressions automatically generates indicator topology graphs, solving the problem of time-consuming and labor-intensive traditional manual graphing, and realizing real-time data analysis and multi-dimensional indicator analysis.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SUPCON TECH CO LTD
- Filing Date
- 2024-11-28
- Publication Date
- 2026-05-08
AI Technical Summary
Traditional indicator data analysis relies on manually creating topology maps, which is time-consuming and labor-intensive, and cannot achieve real-time or near-real-time data analysis.
A system for generating indicator topology diagrams based on analytical expressions is provided, including an indicator topology configuration module, a task scheduling module, an indicator calculation module, and a data display module. The system automatically generates indicator topology diagrams through entity recognition and parsing, task scheduling, and indicator calculation.
It enables the automated generation of indicator topology diagrams, improves analysis efficiency, supports real-time data updates and multi-dimensional indicator analysis, and meets the needs of different business scenarios.
Smart Images

Figure CN119739478B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer processing technology, and more specifically, to a system and method for generating index topology graphs based on analytical expressions. Background Technology
[0002] With the continuous development of industrial internet technology, indicator data analysis has become an important part of enterprise operation and management, enabling better optimization of business processes. However, traditional indicator data analysis typically relies on manually creating indicator topology diagrams to standardize collected data and present analysis results through topology diagrams and alerts. But for the large amounts of data often involved in indicator analysis, manually creating indicator topology diagrams is time-consuming, labor-intensive, and inefficient. Furthermore, manually updating indicator topology diagrams usually takes a considerable amount of time, making real-time or near real-time data analysis impossible. Summary of the Invention
[0003] The present invention aims to solve the above-mentioned problems.
[0004] To address the aforementioned problems, this invention provides a system and method for generating index topology graphs based on analytical expressions.
[0005] In a first aspect, the present invention provides a system for generating an indicator topology graph based on an analytical expression, including an indicator topology configuration module, a task scheduling module, an indicator calculation module, and a data display module;
[0006] The indicator topology configuration module is used to perform entity recognition and parsing on multiple user-input expression texts to obtain the corresponding indicator topology structure, and then send it to the task scheduling module.
[0007] The task scheduling module is used to create tasks for each of the indicator topologies according to preset scheduling rules to obtain corresponding indicator calculation tasks.
[0008] The indicator calculation module is used to calculate the task priority based on all the indicator calculation tasks to obtain indicator priority calculation data.
[0009] The data display module is used to receive the indicator priority calculation data and obtain the target topology map through the indicator priority calculation data.
[0010] Optionally, the step of performing entity recognition and parsing on multiple user-input expression texts to obtain the corresponding indicator topology structure and sending it to the task scheduling module includes:
[0011] Each user input expression text is analyzed using entity recognition to obtain the corresponding indicator entity, indicator type, and text mathematical operator;
[0012] The indicator topology is obtained by matching the indicator entity, the indicator type, and the text mathematical operator with the indicator reference function. The indicator reference function includes IDXM, IDXT, IDXE, and IDXB. IDXM is used to represent the measured value of the current indicator, IDXT is used to represent the target value of the current indicator, IDXE is used to represent the equivalent value of the current indicator, and IDXB is used to represent the equilibrium value of the current indicator.
[0013] Optionally, obtaining the indicator topology by matching the indicator reference function based on the indicator entity, the indicator type, and the text mathematical operator includes:
[0014] Based on the indicator type and the text mathematical operator, the indicator reference function is matched with the indicator entity to obtain the indicator topology relationship;
[0015] Based on the indicator function, the indicator topology structure is obtained by calling the indicator standard data through the indicator topology relationship.
[0016] Optionally, the indicator standard data includes indicator values, volatility, and anomaly duration. After obtaining the indicator topology structure by calling the indicator standard data through the indicator topology relationship, the method further includes:
[0017] When the indicator value is less than or equal to the first preset value, the data monitoring result is normal.
[0018] When the indicator value is greater than the first preset value and less than or equal to the second preset value, and the amplitude is within the preset amplitude range, a data slight anomaly monitoring result is obtained, wherein the second preset value is greater than the first preset value;
[0019] When the indicator value is greater than the second preset value and the abnormal duration is within the preset abnormal duration range, a moderate abnormality monitoring result is obtained.
[0020] When the indicator value is greater than the second preset value and the abnormal duration is not within the preset abnormal duration range, a serious data anomaly monitoring result is obtained.
[0021] Optionally, the step of creating corresponding indicator calculation tasks for each indicator topology according to preset scheduling rules includes:
[0022] The corresponding business types are obtained through the topological structure of each indicator, wherein the business types include metering, power statistics, production reporting, cost accounting, process analysis, and process stability rate.
[0023] The indicator calculation task is obtained by creating a task based on the indicator topology according to the business type and the preset scheduling rules, wherein the preset scheduling rules include the preset settlement time corresponding to each of the business types.
[0024] Optionally, the indicator calculation module includes multiple indicator calculation units, and the step of calculating the indicator priority calculation data based on the task priority of all the indicator calculation tasks includes:
[0025] The indicator calculation tasks of each indicator calculation unit are obtained according to the calculation requirements of each indicator calculation task. The indicator calculation unit includes an automatic calculation unit, an offline calculation unit, a recalculation unit, a value modification calculation unit, a value writing calculation unit, a topology calculation unit, and an event-triggered calculation unit.
[0026] The indicator priority calculation data is obtained by performing task priority calculation on the indicator calculation tasks of each indicator calculation unit.
[0027] Optionally, the step of calculating the task priority of each indicator calculation unit to obtain the indicator priority calculation data includes:
[0028] The number of times an indicator is cited is obtained based on the indicator calculation task of each indicator calculation unit.
[0029] The priority of the unit indicators is obtained by sorting all the indicators in descending order of their reference counts.
[0030] The indicator priority calculation data is obtained based on the unit indicator priority and the indicator calculation task of the indicator calculation unit.
[0031] Optionally, the system for generating indicator topology maps further includes a heterogeneous data access module, which is used for:
[0032] Acquire heterogeneous data;
[0033] The standard data for the indicators is obtained by standardizing the heterogeneous data.
[0034] The standard data of the indicators is sent to the indicator topology configuration module.
[0035] Optionally, the data display module further includes a visualization unit, which is used to visualize the topology map.
[0036] Secondly, the present invention provides a method for generating an indicator topology graph based on parsing expressions, comprising: an indicator topology configuration module performing entity recognition and parsing on multiple user-input expression texts to obtain the corresponding indicator topology structure, and sending it to a task scheduling module;
[0037] The task scheduling module creates corresponding indicator calculation tasks for each indicator topology according to preset scheduling rules.
[0038] The indicator calculation module calculates the task priority based on all the indicator calculation tasks to obtain indicator priority calculation data.
[0039] The data display module receives the indicator priority calculation data and obtains the target topology map through the indicator priority calculation data.
[0040] The beneficial effects of the system and method for generating indicator topology maps based on analytical expressions of the present invention are as follows: The indicator topology configuration module performs entity recognition and parsing based on multiple user-input expression texts to obtain the corresponding indicator topology structure, automatically extracting key information from the text to achieve more accurate text classification. The task scheduling module creates indicator calculation tasks based on the indicator topology structure according to preset scheduling rules to meet the execution requirements of different tasks. The indicator calculation module sorts all the indicator calculation tasks by task priority and performs task calculation to obtain indicator priority calculation data, eliminating the need for manual calculation and enabling rapid calculation results. The data display module receives the indicator priority calculation data and obtains the target topology map through the indicator priority calculation data, improving the efficiency of topology map generation and enabling real-time updates of indicator data analysis. Attached Figure Description
[0041] Figure 1 This is a schematic diagram of a system for generating index topology graphs based on analytical expressions, according to an embodiment of the present invention.
[0042] Figure 2 This is a schematic diagram of the index topology structure according to an embodiment of the present invention;
[0043] Figure 3 This is a flowchart illustrating the method for generating an index topology graph based on an analytical expression according to an embodiment of the present invention.
[0044] Figure 4 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention. Detailed Implementation
[0045] To make the above-mentioned objects, features, and advantages of the present invention more apparent and understandable, specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings. Although some embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present invention. It should be understood that the accompanying drawings and embodiments of the present invention are for illustrative purposes only and are not intended to limit the scope of protection of the present invention.
[0046] It should be understood that the various steps described in the method embodiments of the present invention may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present invention is not limited in this respect.
[0047] The term "comprising" and its variations as used herein are open-ended, meaning "including but not limited to"; the term "based on" means "at least partially based on"; the term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments"; and the term "optionally" means "optional embodiments". Definitions of other terms will be given in the following description. It should be noted that the concepts of "first," "second," etc., mentioned in this invention are used only to distinguish different devices, modules, or units, and are not intended to limit the order of functions performed by these devices, modules, or units or their interdependencies.
[0048] It should be noted that the terms "a" and "a plurality of" used in this invention are illustrative rather than restrictive. Those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0049] The names of the messages or information exchanged between the multiple devices in the embodiments of the present invention are for illustrative purposes only and are not intended to limit the scope of these messages or information.
[0050] To address the problems existing in the aforementioned related technologies, this embodiment provides a system and method for generating index topology graphs based on analytical expressions.
[0051] like Figure 1 As shown in the figure, an embodiment of the present invention provides a system for generating indicator topology diagrams based on analytical expressions, including an indicator topology configuration module, a task scheduling module, an indicator calculation module, and a data display module;
[0052] The indicator topology configuration module is used to perform entity recognition and parsing on multiple user-input expression texts to obtain the corresponding indicator topology structure, and then send it to the task scheduling module.
[0053] The task scheduling module is used to create tasks for each of the indicator topologies according to preset scheduling rules to obtain corresponding indicator calculation tasks.
[0054] The indicator calculation module is used to calculate the task priority based on all the indicator calculation tasks to obtain indicator priority calculation data.
[0055] The data display module is used to receive the indicator priority calculation data and obtain the target topology map through the indicator priority calculation data.
[0056] Specifically, the indicator topology configuration module uses entity recognition technology to identify user-input expression text and obtain the corresponding indicator topology structure. Entity recognition is an important task in Natural Language Processing (NLP), aiming to identify, classify, and name entities from text. The task scheduling module creates calculation tasks for each indicator topology structure according to preset scheduling rules, adding them to the task calculation queue. The preset scheduling rules create calculation tasks based on the preset settlement time corresponding to each business type. The indicator calculation module prioritizes all indicator calculation tasks to determine the calculation order and executes the calculation tasks sequentially, thereby obtaining indicator priority calculation data. The data display module receives the indicator priority calculation data and obtains the target topology map from it. The target topology map has multiple display types, including bar charts, line charts, scatter plots, radar charts, pie charts, and maps.
[0057] In this embodiment, the indicator topology configuration module performs entity recognition and parsing based on multiple user-input expression texts to obtain the corresponding indicator topology structure, automatically extracting key information from the text for more accurate text classification. The task scheduling module creates indicator calculation tasks based on the indicator topology structure according to preset scheduling rules to meet the execution requirements of different tasks. The indicator calculation module prioritizes all the indicator calculation tasks and performs task calculations to obtain indicator priority calculation data, eliminating the need for manual calculations and enabling rapid results. The data display module receives the indicator priority calculation data and uses it to obtain the target topology map, improving the efficiency of topology map generation and enabling real-time updates of indicator data analysis.
[0058] Optionally, the step of performing entity recognition and parsing on multiple user-input expression texts to obtain the corresponding indicator topology structure and sending it to the task scheduling module includes:
[0059] Each user input expression text is analyzed using entity recognition to obtain the corresponding indicator entity, indicator type, and text mathematical operator;
[0060] The indicator topology is obtained by matching the indicator entity, the indicator type, and the text mathematical operator with the indicator reference function. The indicator reference function includes IDXM, IDXT, IDXE, and IDXB. IDXM is used to represent the measured value of the current indicator, IDXT is used to represent the target value of the current indicator, IDXE is used to represent the equivalent value of the current indicator, and IDXB is used to represent the equilibrium value of the current indicator.
[0061] Specifically, the system first parses the user-input text to identify the possible indicator entities, such as: gross industrial output, main business revenue, ending inventory balance, beginning inventory balance, operating profit, etc. Named entities are used to identify the possible indicator types in the text, such as: gross output, revenue, expenditure, balance, loss, total, cost, expense, etc. The system then parses the textual mathematical operators in the user-input expression, such as: +, -, *, / , <, >, ==, =, ≥, ≤, etc. Based on keywords and syntax rules in the text, the system infers the topological relationships between indicators, which are implemented through custom indicator functions for referencing between indicators. For example, IDXM, IDXT, IDXE, and IDXT represent indicator referencing functions used to reference another indicator, supporting configuration of up to 10 indicator value dimensions.
[0062] In some more specific embodiments, combined with Figure 2 As shown, the user-input expression text is: Enterprise Industrial Production Value = Main Business Revenue + Ending Balance of Inventory - Beginning Balance of Inventory, Main Business Revenue = Operating Profit + Main Business Cost + Other Business Cost + Taxes and Surcharges - Other Business Revenue, Main Business Cost = Operating Expenses + Selling Expenses + Financial Expenses - Investment Income + Asset Impairment Loss. Matching the indicator reference function with the indicator entity yields the indicator topology: Enterprise Industrial Production Value = IDXM(Main Business Revenue) + IDXM(Ending Balance of Inventory) - IDXM(Beginning Balance of Inventory), Main Business Revenue = IDXM(Operating Profit) + IDXM(Main Business Cost) + IDXM(Other Business Costs) + IDXM(Taxes and Surcharges) - IDXM(Other Business Revenue), Main Business Cost = IDXM(Operating Expenses) + IDXM(Selling Expenses) + IDXM(Financial Expenses) - IDXM(Investment Income) + IDXM(Asset Impairment Loss).
[0063] In this optional embodiment, key information is automatically extracted from a large amount of text through entity recognition, which allows for a better understanding of the text's theme and content, thereby enabling more accurate text classification and clustering. By recognizing different indicator reference functions, the system can support multi-dimensional indicator analysis to meet the needs of different business scenarios.
[0064] Optionally, obtaining the indicator topology by matching the indicator reference function based on the indicator entity, the indicator type, and the text mathematical operator includes:
[0065] Based on the indicator type and the text mathematical operator, the indicator reference function is matched with the indicator entity to obtain the indicator topology relationship;
[0066] Based on the indicator function, the indicator topology structure is obtained by calling the indicator standard data through the indicator topology relationship.
[0067] Specifically, the indicator calculation expressions are configured, and users implement business calculation logic using different functions. Indicator function functions include TAGBGN, TAGEND, IFS, GV, ABS, IF, AND, OR, COUNTIF, DATEIF, GETSUM, GETAVG, GETMAX, GETMIN, GETDATE, GETVALUE, GETDAY, etc. TAGBGN: A function to mark the start position. Typically used to identify the start position of a paragraph or data block in text or data streams. TAGEND: A function to mark the end position. IFS: A multi-condition function. Used to return corresponding values based on multiple conditions. GV: A function to get the value of a variable. ABS: An absolute value function. Returns the absolute value of a given value. IF: A conditional function. Returns different values based on given conditions. AND: A logical AND function. Returns the result when all conditions are true. OR: A logical OR function. Returns the result when any one condition is true. COUNTIF: A conditional counting function. Used to count the number of cells that meet a specific condition. DATEIF: A date difference function. Used to calculate the difference between two dates. GETSUM: A summation function. GETAVG: Average function. GETMAX: Maximum function. GETMIN: Minimum function. GETDATE: Function to get the current date. GETVALUE: Function to get the value of a specified cell or variable. GETDAY: Function to get the number of days in a date. By linking the indicator topology relationships through these indicator functions, standard indicator data is called to obtain the indicator topology structure.
[0068] After obtaining the indicator topology structure by calling the indicator standard data through the indicator topology relationship, the process also includes: viewing the generated indicator topology structure and indicators, and entering the indicator topology configuration interface, where users can easily configure indicators. In the indicator topology configuration interface, users can add, delete, or modify indicators as needed, thereby customizing and optimizing the indicator topology diagram. The process also includes configuring and maintaining basic indicator information, including release status, indicator version, indicator name, Chinese display name, English display name, unit of measurement, data precision, calculation expression, data connection name, indicator type, calculation rules, and aggregation method. Indicator visualization parameters can be configured, including the style of icons, colors, fonts, and line types, to beautify charts and improve readability, allowing users to understand the data more intuitively. Finally, indicator access permissions can be configured to restrict access for different user groups, for example, allowing only specific user groups to access the data.
[0069] Optionally, the indicator standard data includes indicator values, volatility, and anomaly duration. After obtaining the indicator topology structure by calling the indicator standard data through the indicator topology relationship, the method further includes:
[0070] When the indicator value is less than or equal to the first preset value, the data monitoring result is normal.
[0071] When the indicator value is greater than the first preset value and less than or equal to the second preset value, and the amplitude is within the preset amplitude range, a data slight anomaly monitoring result is obtained, wherein the second preset value is greater than the first preset value;
[0072] When the indicator value is greater than the second preset value and the abnormal duration is within the preset abnormal duration range, a moderate abnormality monitoring result is obtained.
[0073] When the indicator value is greater than the second preset value and the abnormal duration is not within the preset abnormal duration range, a serious data anomaly monitoring result is obtained.
[0074] Specifically, when the indicator value is greater than the first preset value and less than or equal to the second preset value, and the amplitude is not within the preset amplitude range, a moderate anomaly monitoring result is obtained. The monitoring result is notified to relevant personnel via email, SMS, WeChat, or other means.
[0075] In this optional embodiment, the acquired indicator standard data is monitored, and relevant personnel are alerted when abnormal data is detected, thereby further improving data accuracy.
[0076] Optionally, the step of creating corresponding indicator calculation tasks for each indicator topology according to preset scheduling rules includes:
[0077] The corresponding business types are obtained through the topological structure of each indicator, wherein the business types include metering, power statistics, production reporting, cost accounting, process analysis, and process stability rate.
[0078] The indicator calculation task is obtained by creating a task based on the indicator topology according to the business type and the preset scheduling rules, wherein the preset scheduling rules include the preset settlement time corresponding to each of the business types.
[0079] In some more specific embodiments, after receiving the indicator topology, the task scheduling module immediately creates indicator calculation tasks based on the indicator type, task level, and business type of the indicator topology and adds them to the task calculation queue. The priority of the tasks is determined automatically by preset scheduling rules. Based on the business type in the indicator topology corresponding to the business type in the preset scheduling rules, the module retrieves the settlement time corresponding to this business type in the preset scheduling rules and creates indicator calculation tasks based on this settlement time. For example: metering tasks are executed once each at 8:00, 17:00, and 1:00 daily; power statistics tasks are executed once at 0:00 daily; production reporting tasks are executed at 8:30 daily; cost accounting tasks are settled once every Friday at 16:00; process analysis tasks are executed once per hour; and process stability rate indicators are executed once per minute.
[0080] In this optional embodiment, based on the company's work calendar and shift scheduling rules, after the business begins, the corresponding indicator calculation task is immediately generated by triggering the scheduling algorithm under certain conditions, and the task is added to the calculation queue for processing.
[0081] Optionally, the indicator calculation module includes multiple indicator calculation units, and the step of calculating the indicator priority calculation data based on the task priority of all the indicator calculation tasks includes:
[0082] The indicator calculation tasks of each indicator calculation unit are obtained according to the calculation requirements of each indicator calculation task. The indicator calculation unit includes an automatic calculation unit, an offline calculation unit, a recalculation unit, a value modification calculation unit, a value writing calculation unit, a topology calculation unit, and an event-triggered calculation unit.
[0083] The indicator priority calculation data is obtained by performing task priority calculation on the indicator calculation tasks of each indicator calculation unit.
[0084] Specifically, the type of computing unit to be run is determined based on the computational requirements of each metric calculation task. Each computing unit corresponds to specific computational logic and processes to meet business computational needs. For example, automatic calculation is suitable for real-time computation and online monitoring scenarios, offline calculation is suitable for batch computation and data anomaly monitoring scenarios, and topology calculation is suitable for network topology analysis scenarios. The computation module includes various computing units such as automatic calculation, offline calculation, recalculation, value modification calculation, value writing calculation, topology calculation, and event-triggered calculation. Automatic calculation: This is the most commonly used metric calculation task, automatically initiated by the scheduling task after the task expires, suitable for real-time computation and online monitoring scenarios. Offline calculation: This involves initiating metric calculation tasks through the provided command-line program, supporting execution by time period and multi-condition command combinations, suitable for batch recalculation of historical metrics. This method consumes significant computational resources and is therefore designed for offline operation. Recalculation: This refers to the process of recalculating and verifying already calculated data. After the metric recalculation is completed, it will be associated with metric communication failures, server recovery after anomalies, calculation formula modifications, and calculation rule adjustments. **Modified Value Calculation:** This method involves manually modifying data when errors occur. After modification, the system recalculates the dependent indicators based on the indicator topology and calculation rules. The indicator value must be locked immediately after confirmation. **Write-in Value Calculation:** This process writes pre-selected values to specific indicators. During write-in value calculation, related indicators are also immediately updated based on the indicator topology. Manually entered indicator values and script writes are supported, but writing values to future times is not supported, except for target values or terminal-entered indicators. **Topology Calculation:** This calculation is based on the topology structure. When a topology calculation is initiated for any indicator in the topology diagram, all indicators on its topology network will be recalculated. **Event-Triggered Calculation:** This method performs real-time responses and calculations when certain operations or conditions are met, such as production order completion events, process scheme switching, data changes, and manually triggered ledger report queries.
[0085] Optionally, the step of calculating the task priority of each indicator calculation unit to obtain the indicator priority calculation data includes:
[0086] The number of times an indicator is cited is obtained based on the indicator calculation task of each indicator calculation unit.
[0087] The priority of the unit indicators is obtained by sorting all the indicators in descending order of their reference counts.
[0088] The indicator priority calculation data is obtained based on the unit indicator priority and the indicator calculation task of the indicator calculation unit.
[0089] In some more specific embodiments, during the preprocessing stage, after determining the computing unit, the priority processing logic for index calculation is entered. Typically, a computing unit will receive N index calculation tasks simultaneously. To ensure the correctness of the calculation logic, the priority preprocessing unit will pre-calculate the reference count of each index based on the dependencies between these indexes, and sort the indexes according to the reference count. The rule is that the index with the higher the reference count, the higher the priority, and the index will be executed earlier. For example, if the reference count is 10, which is the bottom layer of the topology, all indexes of this layer will be calculated first during the calculation process. Then, the topology layers with reference counts of 9, 8, 7, etc., will be calculated, and so on, until the index with a reference count of 0 is calculated, thus completing the top-level index calculation process. In the indicator calculation phase, the expression calculation engine is responsible for calculating the indicators and parsing the indicator expressions. This includes matching the text in the expression with the indicator functions, and calling the corresponding indicator calculation function based on the matching result of the function name and text. Among them, the IDXM / T / E / B functions are used to enter the indicator internals to implement indicator topology calculation, thereby realizing the association and dependency resolution between indicators. This process is repeated recursively until the indicator is calculated, and then the result is passed up to the upper-level expression to enter the execution of the next indicator calculation function, finally completing the calculation of the current indicator. In the result storage phase, after the calculation of a single indicator is completed, it is first placed in the cache. After all indicators in the calculation unit are completed, they are batch saved to the indicator database. To facilitate subsequent data query, analysis, or display, the calculation results are usually stored according to time granularity, such as hour, day, week, month, quarter, year, etc.
[0090] Optionally, the system for generating indicator topology maps further includes a heterogeneous data access module, which is used for:
[0091] Acquire heterogeneous data;
[0092] The standard data for the indicators is obtained by standardizing the heterogeneous data.
[0093] The standard data of the indicators is sent to the indicator topology configuration module.
[0094] Specifically, heterogeneous data (from different systems, databases, and formats) is acquired and integrated into this system. Through data extraction, transformation, and loading, the data from different sources is refined, quantified, and standardized, making it universal and standardized. Depending on the system type and its interface protocol (e.g., common Enterprise Resource Planning (ERP) systems use SOAP or RESTful interfaces, while IoT device data uses MQTT or CoAP), corresponding interface programs are designed and developed based on the interface or API documentation. These programs can connect to the business system using appropriate methods according to different interface protocols and obtain standard data such as current and historical values. To ensure timely updates of real-time data, mechanisms such as polling or publish / subscribe are used to guarantee data updates and transmission.
[0095] In this optional embodiment, heterogeneous data is integrated and unified to break down data silos and establish a universal standard data access interface. Data from different sources is refined, indexed, and standardized to make the data universal and standardized, thereby achieving the goals of data interoperability, data sharing, and data utilization.
[0096] Optionally, the data display module further includes a visualization unit, which is used to visualize the topology map.
[0097] Specifically, topology diagrams include various chart display methods, such as bar charts, line charts, scatter plots, radar charts, pie charts, maps, and combinations thereof, which can easily display various data types and scenarios.
[0098] In this optional embodiment, the visualization unit is used to display business data in a visual manner, enabling users to intuitively and clearly understand the information contained in the data, thus facilitating better analysis and decision-making. It can easily display various data types and scenarios. Through this module, users can conveniently and simply perform functions such as viewing indicator topology diagrams, data verification, data locking, data unlocking, and data recalculation.
[0099] In some more specific embodiments, the indicator topology map generation system further includes an indicator interface module, which receives indicator data call requests from the report or visualization module. This module supports interface access from both mobile and PC clients, encapsulates the business logic for data querying and calculation, and provides a series of open API interfaces, allowing different clients to call different API interfaces to request indicator data. The interface module provides interfaces for querying, recalculating, modifying values, writing, locking, unlocking, topology analysis, and data drill-down.
[0100] like Figure 3As shown in the figure, an embodiment of the present invention provides a method for generating an index topology graph based on an analytical expression, comprising:
[0101] Step 310: The indicator topology configuration module performs entity recognition and parsing on multiple user-input expression texts to obtain the corresponding indicator topology structure, and sends it to the task scheduling module.
[0102] Step 320: The task scheduling module creates tasks for each of the indicator topologies according to preset scheduling rules to obtain corresponding indicator calculation tasks.
[0103] Step 330: The indicator calculation module performs task priority calculation based on all the indicator calculation tasks to obtain indicator priority calculation data.
[0104] Step 340: The data display module receives the indicator priority calculation data and obtains the target topology map through the indicator priority calculation data.
[0105] The method for generating indicator topology graphs based on analytical expressions in this embodiment is applied to the system for generating indicator topology graphs based on analytical expressions. Its advantages over the prior art are the same as those of the system for generating indicator topology graphs based on analytical expressions compared to the prior art, and will not be repeated here.
[0106] like Figure 4 As shown, an electronic device 400 provided in this embodiment of the invention includes a memory 410 and a processor 420; the memory 410 is used to store a computer program; the processor 420 is used to implement the method for generating an index topology map based on an analytical expression as described above when the computer program is executed.
[0107] Alternatively, an electronic device 400 includes a memory 410 and a processor 420 coupled to the memory 410; the memory 410 is configured to store a computer program; and the processor 420 is configured to perform the following operations when the computer program is executed:
[0108] The indicator topology configuration module performs entity recognition and parsing on multiple user-input expression texts to obtain the corresponding indicator topology structure, and sends it to the task scheduling module.
[0109] The task scheduling module creates corresponding indicator calculation tasks for each indicator topology according to preset scheduling rules.
[0110] The indicator calculation module calculates the task priority based on all the indicator calculation tasks to obtain indicator priority calculation data.
[0111] The data display module receives the indicator priority calculation data and obtains the target topology map through the indicator priority calculation data.
[0112] This invention provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it implements the method for generating an index topology graph based on an analytical expression as described above.
[0113] Alternatively, a non-volatile computer-readable storage medium storing a computer program that, when executed by a processor, causes the processor to perform the following operations:
[0114] The indicator topology configuration module performs entity recognition and parsing on multiple user-input expression texts to obtain the corresponding indicator topology structure, and sends it to the task scheduling module.
[0115] The task scheduling module creates corresponding indicator calculation tasks for each indicator topology according to preset scheduling rules.
[0116] The indicator calculation module calculates the task priority based on all the indicator calculation tasks to obtain indicator priority calculation data.
[0117] The data display module receives the indicator priority calculation data and obtains the target topology map through the indicator priority calculation data.
[0118] The present invention will now be described an electronic device 400 that can serve as a server or client of the present invention, which is an example of a hardware device that can be applied to various aspects of the present invention. Electronic device 400 is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic device 400 can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0119] Electronic device 400 includes a computing unit that can perform various appropriate actions and processes based on a computer program stored in read-only memory (ROM) or a computer program loaded from a storage unit into random access memory (RAM). The RAM may also store various programs and data required for device operation. The computing unit, ROM, and RAM are interconnected via a bus. Input / output (I / O) interfaces are also connected to the bus.
[0120] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc. In this application, the units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of the embodiments of the present invention according to actual needs. Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated units can be implemented in hardware or as software functional units.
[0121] While the present invention has been disclosed above, its scope of protection is not limited thereto. Those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention, and all such changes and modifications will fall within the scope of protection of the present invention.
Claims
1. A system for generating index topology graphs based on analytical expressions, characterized in that, It includes an indicator topology configuration module, a task scheduling module, an indicator calculation module, and a data display module; The indicator topology configuration module is used to perform entity recognition and parsing on multiple user-input expression texts to obtain the corresponding indicator topology structure, and then send it to the task scheduling module, including: Each user input expression text is analyzed using entity recognition to obtain the corresponding indicator entity, indicator type, and text mathematical operator; The indicator topology is obtained by matching the indicator entity, the indicator type, and the text mathematical operator with the indicator reference function. The indicator reference function includes IDXM, IDXT, IDXE, and IDXB. IDXM is used to represent the measured value of the current indicator, IDXT is used to represent the target value of the current indicator, IDXE is used to represent the equivalent value of the current indicator, and IDXB is used to represent the equilibrium value of the current indicator. The step of obtaining the indicator topology by matching the indicator reference function based on the indicator entity, the indicator type, and the text mathematical operator includes: Based on the indicator type and the text mathematical operator, the indicator reference function is matched with the indicator entity to obtain the indicator topology relationship; Based on the indicator function, the indicator topology structure is obtained by calling the indicator standard data through the indicator topology relationship; The task scheduling module is used to create tasks for each of the indicator topologies according to preset scheduling rules to obtain corresponding indicator calculation tasks. The indicator calculation module is used to calculate the task priority based on all the indicator calculation tasks to obtain indicator priority calculation data. The data display module is used to receive the indicator priority calculation data and obtain the target topology map through the indicator priority calculation data.
2. The system for generating index topology graphs based on analytical expressions according to claim 1, characterized in that, The indicator standard data includes indicator values, volatility, and anomaly duration. After obtaining the indicator topology structure by calling the indicator standard data through the indicator topology relationship, the following is also included: When the indicator value is less than or equal to the first preset value, the data monitoring result is normal. When the indicator value is greater than the first preset value and less than or equal to the second preset value, and the amplitude is within the preset amplitude range, a data slight anomaly monitoring result is obtained, wherein the second preset value is greater than the first preset value; When the indicator value is greater than the second preset value and the abnormal duration is within the preset abnormal duration range, a moderate abnormality monitoring result is obtained. When the indicator value is greater than the second preset value and the abnormal duration is not within the preset abnormal duration range, a serious data anomaly monitoring result is obtained.
3. The system for generating index topology graphs based on analytical expressions according to claim 1, characterized in that, The step of creating corresponding indicator calculation tasks for each indicator topology according to preset scheduling rules includes: The corresponding business types are obtained through the topological structure of each indicator, wherein the business types include metering, power statistics, production reporting, cost accounting, process analysis, and process stability rate. The indicator calculation task is obtained by creating a task based on the indicator topology according to the business type and the preset scheduling rules, wherein the preset scheduling rules include the preset settlement time corresponding to each of the business types.
4. The system for generating index topology graphs based on analytical expressions according to claim 1, characterized in that, The indicator calculation module includes multiple indicator calculation units. The step of calculating the indicator priority calculation data based on the task priority of all indicator calculation tasks includes: The indicator calculation tasks of each indicator calculation unit are obtained according to the calculation requirements of each indicator calculation task. The indicator calculation unit includes an automatic calculation unit, an offline calculation unit, a recalculation unit, a value modification calculation unit, a value writing calculation unit, a topology calculation unit, and an event-triggered calculation unit. The indicator priority calculation data is obtained by performing task priority calculation on the indicator calculation tasks of each indicator calculation unit.
5. The system for generating index topology graphs based on analytical expressions according to claim 4, characterized in that, The step of calculating the task priority of each indicator calculation unit to obtain the indicator priority calculation data includes: The number of times an indicator is cited is obtained based on the indicator calculation task of each indicator calculation unit. The priority of the unit indicators is obtained by sorting all the indicators in descending order of their reference counts. The indicator priority calculation data is obtained based on the unit indicator priority and the indicator calculation task of the indicator calculation unit.
6. The system for generating index topology graphs based on analytical expressions according to any one of claims 1-5, characterized in that, The system for generating the indicator topology map also includes a heterogeneous data access module, which is used for: Acquire heterogeneous data; The standard data for the indicators is obtained by standardizing the heterogeneous data. The standard data of the indicators is sent to the indicator topology configuration module.
7. The system for generating index topology graphs based on analytical expressions according to any one of claims 1-5, characterized in that, The data display module also includes a visualization unit, which is used to visualize the target topology map.
8. A method for generating index topology graphs based on analytical expressions, characterized in that, The system for generating indicator topology graphs based on analytical expressions as described in any one of claims 1-7, wherein the method for generating indicator topology graphs based on analytical expressions comprises: The indicator topology configuration module performs entity recognition and parsing on multiple user-input expression texts to obtain the corresponding indicator topology structure, and sends it to the task scheduling module, including: Each user input expression text is analyzed using entity recognition to obtain the corresponding indicator entity, indicator type, and text mathematical operator; The indicator topology is obtained by matching the indicator entity, the indicator type, and the text mathematical operator with the indicator reference function. The indicator reference function includes IDXM, IDXT, IDXE, and IDXB. IDXM is used to represent the measured value of the current indicator, IDXT is used to represent the target value of the current indicator, IDXE is used to represent the equivalent value of the current indicator, and IDXB is used to represent the equilibrium value of the current indicator. The step of obtaining the indicator topology by matching the indicator reference function based on the indicator entity, the indicator type, and the text mathematical operator includes: Based on the indicator type and the text mathematical operator, the indicator reference function is matched with the indicator entity to obtain the indicator topology relationship; Based on the indicator function, the indicator topology structure is obtained by calling the indicator standard data through the indicator topology relationship; The task scheduling module creates corresponding indicator calculation tasks for each indicator topology according to preset scheduling rules. The indicator calculation module calculates the task priority based on all the indicator calculation tasks to obtain indicator priority calculation data. The data display module receives the indicator priority calculation data and obtains the target topology map through the indicator priority calculation data.
Citation Information
Patent Citations
Physical location-based audio and video equipment state graphical display equipment and method
CN113407764A
Cluster node selection scheduling method and device, electronic equipment and storage medium
CN116866440A