A method, apparatus and storage medium for multi-view presentation of data
By constructing a basic model and knowledge graph, the problem of automating the multi-view display of heterogeneous data in the Industrial Internet of Things is solved, enabling efficient multi-angle data analysis and meeting users' personalized needs.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BINZHOU WEIQIAO NATIONAL SCIENCE & TECHNOLOGY ADVANCED TECHNOLOGY RESEARCH INSTITUTE
- Filing Date
- 2026-02-28
- Publication Date
- 2026-06-09
AI Technical Summary
Existing technologies for displaying heterogeneous data in the Industrial Internet of Things (IIoT) rely on manual operation, have low automation, and can only display a single view, failing to meet users' needs for multi-angle data analysis.
The data receiving service unit receives industrial data messages from heterogeneous connectors, uses the data modeling engine to build a basic model, and combines the OPC UA address space unit to save and maintain it. The knowledge graph unit creates a knowledge graph, and the unified interface service layer generates multi-view results for display.
It enables multi-angle display of heterogeneous data, reduces manual configuration and coding workload, improves modeling efficiency, and can generate personalized view results according to different business requests, meeting users' diverse data analysis needs.
Smart Images

Figure CN122173560A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and in particular to a method, apparatus, device, and storage medium for displaying data in multiple views. Background Technology
[0002] With the development of the Industrial Internet of Things (IIoT), time-series data generated in industrial environments exhibit typical characteristics of multi-source heterogeneity. These data originate from different types of sensors, devices, and systems, and differ significantly in format, frequency, semantics, and accuracy. To effectively utilize this data, existing technologies typically require its organization, analysis, and visualization.
[0003] However, current data modeling processes are often involved in displaying views, but these processes rely heavily on manual operation and have low automation. Furthermore, the models built can only interact with specified SQL query interfaces to display a single view. Therefore, the existing data display methods cannot meet the needs of users' data analysis. Summary of the Invention
[0004] This invention provides a method, apparatus, device, and storage medium for displaying data from multiple perspectives, enabling the display of heterogeneous data from multiple angles and facilitating comprehensive data analysis.
[0005] According to a first aspect of the present invention, a method for displaying data in multiple views is provided, comprising: receiving industrial data messages sent by heterogeneous connectors through a data bus via the data receiving service unit, and sending the industrial data messages to the data modeling engine, wherein the industrial data messages are in JSON format; The data modeling engine constructs a basic model based on the industrial data message, and the basic model is saved and maintained through the OPC UA address space unit; The knowledge graph unit retrieves the basic model from the OPC UA address space unit and creates a knowledge graph based on the basic model. The unified interface service layer retrieves the basic model or the knowledge graph based on the received business request, generates a matching view result based on the basic model or the knowledge graph, and then visualizes the view result.
[0006] According to another aspect of the present invention, a multi-view data display device is provided, the device comprising: An industrial data message transmission module is used to receive industrial data messages sent by various heterogeneous connectors through the data bus via the data receiving service unit, and send the industrial data messages to the data modeling engine, wherein the industrial data messages are in JSON format; The basic model building module is used to build a basic model based on the industrial data message through the data modeling engine, and to save and maintain the basic model through the OPC UA address space unit; The knowledge graph creation module is used to retrieve the basic model from the OPC UA address space unit through the knowledge graph unit, and create a knowledge graph based on the basic model; The view result generation module is used to retrieve the basic model or the knowledge graph based on the received business request through the unified interface service layer, generate matching view results based on the basic model or the knowledge graph, and visualize the view results.
[0007] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising: one or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any embodiment of the present invention.
[0008] According to another aspect of the present invention, a storage medium for computer-executable instructions is provided, on which a computer program is stored, which, when executed by a processor, implements the method as described in any of the embodiments of the present invention.
[0009] The technical solution of this invention automatically identifies industrial data messages and builds basic models through a data modeling engine, reducing the workload of manual configuration and coding, improving modeling efficiency, and receiving different types of business requests through a unified interface service layer. Based on the basic model and knowledge graph, it generates matching view results for personalized view display to meet different data analysis needs of users.
[0010] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0011] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0012] Figure 1This is a flowchart of a multi-view data display method provided in Embodiment 1 of the present invention; Figure 2 This is a schematic diagram of the structure of a multi-view modeling system provided in Embodiment 1 of the present invention; Figure 3 This is a flowchart of another method for displaying data in multiple views according to Embodiment 2 of the present invention; Figure 4 This is a schematic diagram of the structure of a multi-view data display device provided in Embodiment 3 of the present invention; Figure 5 This is a structural block diagram of an electronic device provided in Embodiment 4 of the present invention. Detailed Implementation
[0013] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0014] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, apparatus, product, or terminal device that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or terminal devices.
[0015] Example 1 Figure 1 This is a flowchart of a multi-view data display method provided in Embodiment 1 of the present invention. This embodiment is applicable to situations where industrial anomaly data is displayed in multiple views as needed. The method can be executed by a multi-view data display device, which can be implemented in hardware and / or software, and can be integrated into an electronic device with data processing capabilities. Figure 1 As shown, the method includes: S101, the data receiving service unit receives industrial data messages sent by each heterogeneous connector through the data bus, and sends the industrial data messages to the data modeling engine.
[0016] This embodiment is mainly applied to multi-view modeling systems, such as... Figure 2 The diagram shows the system's structure. The multi-view modeling system includes an Object Linking and Embedding for Process Control Unified Architecture (OPC UA) address space unit, a data modeling engine and a knowledge graph unit connected to the OPC UA address space unit, and a unified interface service layer connected to the OPC UA address space unit and the knowledge graph unit. The multi-view modeling system communicates with multiple heterogeneous connectors via a data bus. Each connector connects to different types of industrial data sources, such as sensors, programmable logic controllers (PLCs), or supervisory control and data acquisition (SCADA) systems. This implementation can be applied to industrial data analysis scenarios. However, this implementation is merely illustrative and does not limit the type of industrial data source or the content of the collected data. After receiving industrial data from each heterogeneous connector, the data bus performs standardized conversion according to JSON format to obtain industrial data messages. Each industrial data message contains multiple data entries from the same heterogeneous connector. The data receiving service unit receives industrial data messages in real time and performs preliminary preprocessing operations such as verification, buffering, and classification. Finally, it sends the preprocessed industrial data messages to the data modeling engine.
[0017] S102, the data modeling engine constructs a basic model based on the industrial data message, and the basic model is saved and maintained by the OPC UA address space unit.
[0018] Optionally, constructing a basic model based on the industrial data message using the data modeling engine includes: extracting hierarchical metadata from the industrial data message using the data modeling engine, wherein the hierarchical metadata includes objects and hierarchical relationships between objects, and the types of objects include factories, branches, work areas, equipment, and measurement points; converting each object in the OPC UA address space unit according to the OPC UA protocol to obtain the converted objects; and associating the converted objects with related relationships according to the hierarchical relationships to construct the basic model.
[0019] Optionally, the basic model is saved and maintained through the OPC UA address space unit, including: saving the basic model in a specified spatial location through the OPC UA address space unit; when it is determined that there is updated information based on the latest industrial data message sent by the data receiving service unit, the basic model is adjusted according to the updated information, wherein the updated information includes object update information or hierarchical relationship update information.
[0020] In this embodiment, the data modeling engine, upon receiving industrial data messages with multi-source, heterogeneous, and sequential characteristics, establishes a unified and standardized basic model based on the industrial data messages. The core of this basic model is a hierarchical structure built from macro to micro levels, based on the physical composition and affiliation of industrial assets. This basic model systematically describes the complete hierarchical relationship from the group to the bottom measurement point in a top-down manner. For example, a typical structure of this basic model can be represented as follows: Of course, this implementation method is only an example and does not limit the specific structural form of the basic model.
[0021] In one specific implementation, the data modeling engine automatically parses industrial data messages and obtains hierarchical metadata. This metadata includes objects and their hierarchical relationships. Object types include groups, branches, factories, work areas, equipment, and measuring points. Hierarchical relationships can include subordinate, parallel, or limiting relationships. For example, when an industrial data message is received for the first time, parsing it yields objects such as "Factory A - Work Area 1 - Machine Tool X - Spindle Temperature," with subordinate relationships between these objects. Since the data modeling engine primarily creates models within OPC UA address space units, it converts each object according to the OPC UA protocol to obtain the converted objects, ensuring the format matches the OPC UA address space units. Based on predefined model structure rules and hierarchical relationships, it associates the converted objects to construct the basic model. The entire model construction process requires no manual intervention, achieving real-time and automated mapping from data flow to object models. This significantly reduces the manual configuration and coding workload required by traditional methods, greatly improving modeling efficiency, accuracy, and maintainability.
[0022] It should be noted that in this embodiment, after the basic model is constructed, it will be saved in the OPC UA address space unit. The OPC UA address space unit is responsible for the subsequent maintenance of the initially established basic model. For example, when the latest industrial data message is received, the latest industrial data message is parsed. When it is determined from the parsing results that there is updated information, such as object update information or hierarchical relationship update information, the basic model will be adjusted according to the updated information to quickly respond to the dynamic changes of industrial field equipment and data sources, so that the basic model saved in the OPC UA address space unit always matches the real data in the industrial field.
[0023] S103 retrieves the basic model from the OPC UA address space unit through the knowledge graph unit and creates a knowledge graph based on the basic model.
[0024] Optionally, a knowledge graph is created based on the base model, including: extracting attribute information from each object and connecting the objects in a graph structure according to hierarchical relationships to construct an initial structure graph; and labeling the attribute information in the matching objects in the initial structure graph to obtain the knowledge graph.
[0025] Specifically, since the basic model only provides annotated, real-time data access and does not support complex relational queries and precise data acquisition, a knowledge graph supporting data queries will be further created based on the basic model to meet more comprehensive data analysis needs. The knowledge graph unit extracts attribute information from objects and connects objects with hierarchical relationships using a graph structure to obtain an initial structure graph. Each object is treated as a node in the initial structure graph, and attribute information is labeled on the matching object nodes. Then, graph database technology is used to store object nodes, hierarchical relationships, and attributes. Because the hierarchical relationships between nodes in the knowledge graph are in graphical form, it supports complex semantic queries and reasoning operations.
[0026] It should be noted that the OPC UA address space unit and the knowledge graph unit in this embodiment are dynamically and in real time associated. On the one hand, the knowledge graph unit can actively retrieve the basic model to create the knowledge graph. On the other hand, when the basic model in the OPC UA address space unit is updated, it will also generate a model update prompt. The model update prompt specifically includes the adjustment content of the basic model, such as the differences between the adjusted basic model and the original basic model. The knowledge graph unit can then update the current knowledge graph in real time according to the model update prompt, thereby ensuring that the knowledge graph and the basic model are always kept in sync.
[0027] S104 retrieves the basic model or knowledge graph based on the received business request through the unified interface service layer, generates a matching view result based on the basic model or knowledge graph, and then visualizes the view result.
[0028] Optionally, the unified interface service layer retrieves the basic model or knowledge graph based on the received business request, and generates matching view results based on the basic model or knowledge graph. This includes: identifying the type of the received business request through the unified interface service layer, where the type includes query business requests and preview access business requests; assigning the preview access business request to the OPC UA interface, and retrieving the basic model through the OPC UA interface to obtain single object information matching the preview access business request, and generating a first view result based on the single object information, where the first view result includes a details display table; assigning the query business request to the GraphQL interface, and retrieving the knowledge graph through the GraphQL interface to obtain multi-object information matching the query business request, and generating a second view result based on the multi-object information, where the second view result includes a production management view and an equipment health management view.
[0029] Optionally, the knowledge graph is retrieved via the GraphQL interface to obtain multi-object information matching the query business request, and a second view result is generated based on the multi-object information. This includes: when the query business request consists of query target objects, the knowledge graph is retrieved to obtain a first query object with a hierarchical relationship with the target object, and a production management view is generated based on the first query object and the hierarchical relationship, wherein the target object includes a factory, branch office, or work area; when the query request is to query the status of the target object, the knowledge graph is retrieved to obtain a second query object with a limited hierarchical relationship with the target object, and a device health management view is generated based on the second query object and the limited hierarchical relationship, wherein the target object includes a device or device type.
[0030] Specifically, the unified interface service layer in this embodiment includes an OPC UA interface and a GraphQL interface. The OPC UA interface is connected to the OPC UA address space unit, and the GraphQL interface is connected to the knowledge graph unit. The OPC UA and GraphQL interfaces respectively receive and process different types of business requests. The OPC UA interface receives and processes query business requests, providing standardized, real-time data access for the industrial automation field, suitable for traditional industrial clients such as SCADA, MES, and control software. The GraphQL interface receives and processes preview access business requests, providing flexible declarative queries for modern web applications, mobile applications, and data analysis platforms, supporting complex relational queries and precise data retrieval. Therefore, after receiving a business request, the unified interface service layer first identifies the type of request and assigns the request to the matching interface. For example, when a preview access request is received to "view the operating status parameters of device A", the preview request will be assigned to the OPC UA interface. The OPC UA interface will then retrieve the basic model from the connected OPC UA address space unit to obtain the detailed display table of device A, which will be used as the first view result. When a query request is received to "query the device distribution under factory X", the query request will be assigned to the GraphQL interface. The GraphQL interface will then automatically aggregate all the "device" nodes under factory X from the connected knowledge graph unit according to the production management view generation rules, starting from factory X and following the relationship path. Then, through the associated streaming computing engine, it will calculate the comprehensive output and downtime of the work area in real time, and generate a production management view based on the multi-object information. When a query request "Query the health status of type A devices" is received, the request is assigned to the GraphQL interface. The GraphQL interface then automatically filters all devices of this type from the connected knowledge graph units according to the health management view generation rules, locates key health measurement points, calculates health indicators in real time, and generates a device health management view based on multi-object information. From the above analysis, it can be seen that the OPC UA interface can only preview or view a single object; for example, the specific situation of a single device can be viewed in the form of a details table. In contrast, the GraphQL interface can view multiple objects simultaneously. For example, the health status of a certain type of device can be viewed in the form of a device health management view, or the distribution of devices in a factory can be viewed in the form of a production management view. This allows for processing different interfaces within a unified interface service layer based on different user business needs, and provides corresponding results.
[0031] In this embodiment, multiple customized data views are automatically derived and constructed based on different business needs and analytical perspectives (such as production management, quality control, and equipment health). This capability enables a single data source to simultaneously support the analytical needs of multiple business scenarios, greatly enhancing the adaptability and business value of the data model. Furthermore, this embodiment provides a unified and rich set of standardized access interfaces. Compared to existing technologies that typically only support single SQL queries, this invention supports multiple interface methods, including OPC UA information model services and graph queries. This allows the constructed data model and knowledge graph to be directly, flexibly, and efficiently integrated and invoked by various upper-layer applications, analytical tools, and control systems, completely breaking the application limitations of traditional models and achieving "model once, serve multiple places."
[0032] The technical solution of this invention automatically identifies industrial data messages and builds basic models through a data modeling engine, reducing the workload of manual configuration and coding, improving modeling efficiency, and receiving different types of business requests through a unified interface service layer. Based on the basic model and knowledge graph, it generates matching view results for personalized view display to meet different data analysis needs of users.
[0033] Example 2 Figure 3 This is a flowchart of another method for displaying data in multiple views according to an embodiment of the present invention. Based on the above embodiments, this embodiment, after visually displaying the view results, further includes receiving view adjustment instructions from the user through a visual interface, and adjusting the view results according to the view adjustment instructions to obtain the adjusted view results, such as... Figure 3 As shown, the method includes: S201 receives industrial data messages sent by various heterogeneous connectors through the data bus via the data receiving service unit, and sends the industrial data messages to the data modeling engine.
[0034] S202 constructs a basic model based on industrial data messages through a data modeling engine, and saves and maintains the basic model through OPC UA address space units.
[0035] Optionally, a basic model is constructed based on industrial data messages using a data modeling engine, including: extracting hierarchical metadata from industrial data messages using the data modeling engine, the hierarchical metadata including objects and hierarchical relationships between objects, wherein the types of objects include factories, branches, work areas, equipment and measurement points; converting each object in the OPC UA address space unit according to the OPC UA protocol to obtain the converted objects; and associating the converted objects with relationships according to the hierarchical relationships to construct the basic model.
[0036] Optionally, the basic model can be saved and maintained through the OPC UA address space unit, including: saving the basic model in a specified space location through the OPC UA address space unit; when it is determined that there is updated information based on the latest industrial data message sent by the data receiving service unit, the basic model is adjusted according to the updated information, wherein the updated information includes object update information or hierarchical relationship update information.
[0037] S203 retrieves the basic model from the OPC UA address space unit through the knowledge graph unit and creates a knowledge graph based on the basic model.
[0038] Optionally, a knowledge graph is created based on the base model, including: extracting attribute information from each object and connecting the objects in a graph structure according to hierarchical relationships to construct an initial structure graph; and labeling the attribute information in the matching objects in the initial structure graph to obtain the knowledge graph.
[0039] S204 uses a unified interface service layer to retrieve the basic model or knowledge graph based on the received business request, generates a matching view result based on the basic model or knowledge graph, and then visualizes the view result.
[0040] Optionally, the unified interface service layer retrieves the basic model or knowledge graph based on the received business request, and generates matching view results based on the basic model or knowledge graph. This includes: identifying the type of the received business request through the unified interface service layer, where the type includes query business requests and preview access business requests; assigning the preview access business request to the OPC UA interface, and retrieving the basic model through the OPC UA interface to obtain single object information matching the preview access business request, and generating a first view result based on the single object information, where the first view result includes a details display table; assigning the query business request to the GraphQL interface, and retrieving the knowledge graph through the GraphQL interface to obtain multi-object information matching the query business request, and generating a second view result based on the multi-object information, where the second view result includes a production management view and an equipment health management view.
[0041] Optionally, the knowledge graph is retrieved via the GraphQL interface to obtain multi-object information matching the query business request, and a second view result is generated based on the multi-object information. This includes: when the query business request consists of query target objects, the knowledge graph is retrieved to obtain a first query object with a hierarchical relationship with the target object, and a production management view is generated based on the first query object and the hierarchical relationship, wherein the target object includes a factory, branch office, or work area; when the query request is to query the status of the target object, the knowledge graph is retrieved to obtain a second query object with a limited hierarchical relationship with the target object, and a device health management view is generated based on the second query object and the limited hierarchical relationship, wherein the target object includes a device or device type.
[0042] S205 receives view adjustment instructions from users through a visual interface, adjusts the view results according to the view adjustment instructions, and obtains the adjusted view results.
[0043] Specifically, in this embodiment, after displaying the view results through a visual interface, the user's view adjustment commands can also be received on the visual interface to meet different data analysis needs. For example, when the production management view displays the equipment and output of each work area under factory A, upon receiving the user's adjustment command "get the work area with the highest output," the output of each tool's equipment will be summarized and added together, and the work areas will be sorted in descending order according to equipment output to obtain the work area sequence. The first work area in the sequence will be marked in the production management view. That is, this embodiment supports adding a mark to the view results. When the equipment health management view displays the values of various health indicators of type A equipment, upon receiving the user's adjustment command "delete equipment with insufficient computing resources," the current resource occupancy of type A equipment will be calculated, and type A equipment with remaining resources below 30% will be filtered out and deleted in the health management view. That is, this embodiment supports deleting the view results. Of course, this embodiment is only an example. In actual applications, it also supports operations such as adding, statistical operations, and modifying connection relationships. This embodiment does not limit the specific adjustment methods. In this embodiment, by adjusting the view results, the view results can be processed again, thereby further meeting the different data analysis needs of users and improving the efficiency of data analysis.
[0044] The technical solution of this invention automatically identifies industrial data messages and builds basic models through a data modeling engine, reducing the workload of manual configuration and coding, improving modeling efficiency, and receiving different types of business requests through a unified interface service layer. Based on the basic model and knowledge graph, it generates matching view results for personalized view display to meet different data analysis needs of users.
[0045] Example 3 Figure 4 This is a schematic diagram of the structure of a multi-view data display device provided in an embodiment of the present invention. Figure 4 As shown, the device includes: an industrial data message transmission module 310, a basic model construction module 320, a knowledge graph creation module 330, and a view result generation module 340.
[0046] The industrial data message transmission module 310 is used to receive industrial data messages sent by various heterogeneous connectors through the data bus via the data receiving service unit, and send the industrial data messages to the data modeling engine. The industrial data messages are in JSON format. The basic model building module 320 is used to build a basic model based on industrial data messages through the data modeling engine, and to save and maintain the basic model through the OPC UA address space unit; The knowledge graph creation module 330 is used to retrieve the basic model from the OPC UA address space unit through the knowledge graph unit and create a knowledge graph based on the basic model. The view result generation module 340 is used to retrieve the basic model or knowledge graph based on the received business request through the unified interface service layer, generate matching view results based on the basic model or knowledge graph, and visualize the view results.
[0047] Optionally, the basic model building module includes basic model building units, which are used to extract hierarchical metadata from industrial data messages through the data modeling engine. The hierarchical metadata includes objects and hierarchical relationships between objects. The types of objects include groups, branches, factories, work areas, equipment, and measuring points. In the OPC UA address space unit, each object is converted according to the OPC UA protocol to obtain the converted object; The transformed objects with hierarchical relationships are associated to construct a basic model.
[0048] Optionally, the basic model building module includes a basic model maintenance unit, which is used to save the basic model in a specified space location through OPC UA address space units; When it is determined that there is updated information based on the latest industrial data message sent by the data receiving service unit, the basic model is adjusted according to the updated information, which includes object update information or hierarchical relationship update information.
[0049] Optionally, a knowledge graph creation module is used to extract attribute information from each object and connect the objects in the form of a graph structure according to the hierarchical relationship to build an initial structure graph; In the initial structure graph, attribute information is labeled in the matched objects to obtain the knowledge graph.
[0050] Optionally, the view result generation module is used to identify the type of the received business request through the unified interface service layer, where the type includes query business requests and preview access business requests. The preview access service request is assigned to the OPC UA interface, and the basic model is retrieved through the OPC UA interface to obtain the single object information that matches the preview access service request. The first view result is generated based on the single object information, and the first view result includes a details display table. The query business request is assigned to the GraphQL interface, and the knowledge graph is retrieved through the GraphQL interface to obtain multi-object information that matches the query business request. Based on the multi-object information, a second view result is generated, which includes a production management view and an equipment health management view.
[0051] Optionally, the view result generation module is also used to retrieve the knowledge graph to obtain the first query object with a hierarchical relationship with the target object when the query business request is composed of the query target object, and generate a production management view based on the first query object and the hierarchical relationship, wherein the target object includes factories, branches or work areas. When the query request is to query the status of the target object, the knowledge graph is retrieved to obtain a second query object that has a limited hierarchical relationship with the target object. The device health management view is then generated based on the second query object and the limited hierarchical relationship. The target object includes the device or device type.
[0052] Optionally, the device also includes a view result adjustment module for receiving view adjustment instructions from users through a visual interface, wherein the view adjustment instructions include the adjustment object and the adjustment method; Adjust the view result according to the view adjustment instructions to obtain the adjusted view result.
[0053] The multi-view data display device provided in this embodiment of the invention can execute the multi-view data display method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0054] Example 4 Figure 5 A schematic diagram of an electronic device 10, which can be used to implement embodiments of the present invention, is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile 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.
[0055] The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the invention described and / or claimed herein.
[0056] like Figure 5 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 can also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0057] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other electronic devices through computer networks such as the Internet and / or various telecommunications networks.
[0058] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as multi-view display methods for data.
[0059] That is, the data receiving service unit receives the industrial data messages sent by each heterogeneous connector through the data bus and sends the industrial data messages to the data modeling engine. The industrial data messages are in JSON format. The basic model is built based on industrial data messages through the data modeling engine, and the basic model is saved and maintained through OPC UA address space units; The basic model is retrieved from the OPC UA address space unit through the knowledge graph unit, and a knowledge graph is created based on the basic model; The unified interface service layer retrieves the basic model or knowledge graph based on the received business request, generates matching view results based on the basic model or knowledge graph, and then visualizes the view results.
[0060] In some embodiments, the data multi-view display method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the data multi-view display method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to execute the data multi-view display method by any other suitable means (e.g., by means of firmware).
[0061] Various embodiments of the apparatuses and techniques described above herein can be implemented in digital electronic circuit devices, integrated circuit devices, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), device-on-a-chip (SoC) devices, complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable device including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage device, at least one input device, and at least one output device, and transmitting data and instructions to the storage device, the at least one input device, and the at least one output device.
[0062] Computer programs used to implement the multi-view data display method of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to the processor of a general-purpose computer, a special-purpose computer, or other business-uninterrupted data migration device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The computer programs can be executed entirely on the machine, partially on the machine, as a standalone software package partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0063] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution apparatus, device, or electronic device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage electronics, magnetic storage electronics, or any suitable combination thereof.
[0064] To provide interaction with a user, the devices and techniques described herein can be implemented on an electronic device having: a display device (e.g., a touchscreen) for displaying information to the user; and buttons through which the user can provide input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0065] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0066] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A method for displaying data in multiple views, characterized in that, An application is made to a multi-view modeling system, the multi-view modeling system including objects for process control and embedded unified architecture OPC UA address space units, a data modeling engine and a knowledge graph unit respectively connected to the OPC UA address space units, and a unified interface service layer connected to the OPC UA address space units and the connected units, the method including: The data receiving service unit receives industrial data messages sent by each heterogeneous connector through the data bus and sends the industrial data messages to the data modeling engine, wherein the industrial data messages are in JSON format; The data modeling engine constructs a basic model based on the industrial data message, and the basic model is saved and maintained through the OPC UA address space unit; The knowledge graph unit retrieves the basic model from the OPC UA address space unit and creates a knowledge graph based on the basic model. The unified interface service layer retrieves the basic model or the knowledge graph based on the received business request, generates a matching view result based on the basic model or the knowledge graph, and then visualizes the view result.
2. The method according to claim 1, characterized in that, The step of constructing a basic model based on the industrial data message using the data modeling engine includes: The data modeling engine extracts hierarchical metadata from the industrial data message. The hierarchical metadata includes objects and hierarchical relationships between objects. The types of objects include groups, branches, factories, work areas, equipment, and measuring points. In the OPC UA address space unit, each object is converted according to the OPC UA protocol to obtain the converted object; The transformed objects with related relationships are associated according to the hierarchical relationship to construct the basic model.
3. The method according to claim 1, characterized in that, The process of saving and maintaining the basic model through the OPC UA address space unit includes: The basic model is saved in a specified spatial location using the OPC UA address space unit; When it is determined that there is updated information based on the latest industrial data message sent by the data receiving service unit, the basic model is adjusted according to the updated information, wherein the updated information includes object update information or hierarchical relationship update information.
4. The method according to claim 3, characterized in that, The creation of a knowledge graph based on the base model includes: Attribute information is extracted from each of the objects, and the objects are connected in the form of a graph structure according to the hierarchical relationship to construct an initial structure graph; The attribute information is labeled in the matching objects in the initial structure graph to obtain a knowledge graph.
5. The method according to claim 1, characterized in that, The unified interface service layer includes an OPC UA interface and a GraphQL interface. The OPC UA interface is connected to the OPC UA address space unit, and the GraphQL interface is connected to the knowledge graph unit. The unified interface service layer retrieves the basic model or the knowledge graph based on the received business request, and generates a matching view result based on the basic model or the knowledge graph, including: The unified interface service layer identifies the type of the received business request and obtains the type of the business request, which includes query business requests and preview access business requests. The preview access service request is assigned to the OPC UA interface, and the basic model is retrieved through the OPC UA interface to obtain single object information matching the preview access service request. A first view result is generated based on the single object information, wherein the first view result includes a details display table. The query service request is assigned to the GraphQL interface, and the knowledge graph is retrieved through the GraphQL interface to obtain multi-object information matching the query service request. A second view result is generated based on the multi-object information, wherein the second view result includes a production management view and an equipment health management view.
6. The method according to claim 5, characterized in that, The step of retrieving the knowledge graph through the GraphQL interface to obtain multi-object information matching the query business request, and generating a second view result based on the multi-object information, includes: When the query request is composed of a target object, the knowledge graph is retrieved to obtain a first query object that has a hierarchical relationship with the target object, and the production management view is generated based on the first query object and the hierarchical relationship, wherein the target object includes a factory, branch office or work area; When the query request is to query the status of a target object, the knowledge graph is retrieved to obtain a second query object that has a defined hierarchical relationship with the target object, and the device health management view is generated based on the second query object and the defined hierarchical relationship, wherein the target object includes a device or device type.
7. The method according to claim 1, characterized in that, After visualizing the view results, the process also includes: The system receives view adjustment commands from users through a visual interface, wherein the view adjustment commands include the adjustment object and the adjustment method. The view result is adjusted according to the view adjustment command to obtain the adjusted view result.
8. A multi-view data display device, characterized in that, The device includes: An industrial data message transmission module is used to receive industrial data messages sent by various heterogeneous connectors through the data bus via the data receiving service unit, and send the industrial data messages to the data modeling engine, wherein the industrial data messages are in JSON format; The basic model building module is used to build a basic model based on the industrial data message through the data modeling engine, and to save and maintain the basic model through the OPC UA address space unit; The knowledge graph creation module is used to retrieve the basic model from the OPC UA address space unit through the knowledge graph unit, and create a knowledge graph based on the basic model; The view result generation module is used to retrieve the basic model or the knowledge graph based on the received business request through the unified interface service layer, generate matching view results based on the basic model or the knowledge graph, and visualize the view results.
9. An electronic device, characterized in that, The electronic device includes: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of claims 1-7.
10. A storage medium for computer-executable instructions, wherein a computer program is stored thereon, characterized in that, When the program is executed by the processor, it implements the method as described in any one of claims 1-7.