Signage data processing method, device, computer equipment and storage medium
By storing and modifying signage data and metadata respectively in the blockchain network, the problem of low signage data processing efficiency in the existing technology is solved, and simplified operations and data security are achieved.
Patent Information
- Application Number
- CN202110280727.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-16
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2041-03-16
AI Technical Summary
When the existing sign data processing method modifies the data structure of the sign list, both the metadata and the sign data need to be modified accordingly, resulting in cumbersome operations and low efficiency.
By storing the metadata and signage data in the signage list in different nodes in the blockchain network, blockchain technology is used to realize the association and modification of metadata and signage data. Only the metadata and signage data need to be modified. Automatic updates to simplify the operation process.
It improves the efficiency of signage data processing, simplifies data structure modification operations, and ensures data security and consistency.
Smart Images

Figure CN112783871B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of nuclear power information construction, and in particular to a sign data processing method, device, computer equipment and storage medium. Background Art
[0002] Nuclear power plants generate electricity through the heat energy generated by nuclear fuel in nuclear reactors. Due to the particularity of nuclear power plants, the most basic safety of nuclear power plants must be guaranteed. There are many types of nuclear power equipment in nuclear power plants, and the management of nuclear power equipment is difficult. Affixing corresponding signs to each nuclear power equipment in a nuclear power plant can facilitate the management of each nuclear power equipment and ensure the safety of the nuclear power plant. A large number of signs correspond to a large amount of sign data, and the sign data is recorded in the sign list. The current sign data processing method usually stores the metadata and sign data in the sign list in the same node.
[0003] However, when modifying the data structure of the sign list, the current sign data processing method needs to perform corresponding modification operations on both the metadata and the sign data in the sign list, which is cumbersome and leads to low efficiency in sign data processing. Summary of the invention
[0004] Based on this, it is necessary to provide a sign data processing method, device, computer equipment and storage medium that can improve the efficiency of sign data processing in response to the above technical problems.
[0005] A method for processing sign data, the method comprising:
[0006] Obtaining a sign list; the sign list includes metadata and sign data corresponding to at least one nuclear power equipment;
[0007] Associating the signage data corresponding to each nuclear power equipment with the metadata in the signage list;
[0008] The associated metadata and the sign data are sent to the blockchain network; the sent metadata and the sign data are used to instruct the first node in the blockchain network to store the metadata, and the second node in the blockchain network to store the sign data;
[0009] When a data structure modification instruction for the sign list is obtained, the corresponding metadata in the first node is modified according to the data structure modification instruction; the modified metadata is used to instruct the second node to make corresponding modifications to the sign data associated with the modified metadata.
[0010] In one embodiment, the method further comprises:
[0011] When a query trigger operation is detected, a nameplate list query instruction is generated; the nameplate list query instruction carries the equipment identification of the nuclear power equipment;
[0012] In response to the sign list query instruction, metadata is queried from the first node according to the equipment identifier; the queried metadata is used to indicate that the sign data associated with the queried metadata and corresponding to the nuclear power equipment is queried from the second node;
[0013] The metadata found by the first node and the corresponding sign data found by the second node are received, and the metadata and the corresponding sign data are displayed in a sign list display interface.
[0014] In one embodiment, before associating the signage data corresponding to each nuclear power equipment with the metadata in the signage list, the method further includes:
[0015] Inputting the sign list into a pre-trained metadata extraction model to obtain metadata in the sign list;
[0016] The nameplate list is input into a pre-trained nameplate data extraction model to obtain the nameplate data in the nameplate list and corresponding to each nuclear power equipment respectively.
[0017] In one embodiment, inputting the sign list into a pre-trained metadata extraction model to obtain metadata in the sign list includes:
[0018] Inputting the sign list into a pre-trained metadata extraction model and determining a target data format set in the metadata extraction model;
[0019] The metadata in the sign list is extracted according to the target data format to obtain the metadata in the sign list; the data format of the extracted metadata conforms to the target data format.
[0020] In one embodiment, when a data structure modification instruction for the sign list is obtained, modifying corresponding metadata in the first node according to the data structure modification instruction includes:
[0021] When a data structure modification instruction for the sign list is obtained, a data structure modification interface is displayed; the data structure modification interface displays metadata corresponding to the sign list stored in the first node;
[0022] When a modification operation on the metadata displayed in the data structure modification interface is detected, the modified metadata corresponding to the modification operation is sent to the first node for update storage.
[0023] In one embodiment, the blockchain network further includes a first observer node and a second observer node; the first observer node is used to pull metadata from the first node, and the second observer node is used to pull sign data from the second node; the method further includes:
[0024] When it is detected that the first node fails, controlling the first observer node to replace the failed first node;
[0025] When it is monitored that the second node fails, the second observer node is controlled to replace the failed second node.
[0026] A sign data processing device, comprising:
[0027] An acquisition module, used to acquire a nameplate list; the nameplate list includes metadata and nameplate data corresponding to at least one nuclear power equipment;
[0028] An association module, used to associate the signage data corresponding to each nuclear power equipment with the metadata in the signage list;
[0029] A sending module, used to send the associated metadata and the sign data to the blockchain network; the sent metadata and the sign data are used to instruct the first node in the blockchain network to store the metadata, and the second node in the blockchain network to store the sign data;
[0030] The modification module is used to modify the corresponding metadata in the first node according to the data structure modification instruction when a data structure modification instruction for the sign list is obtained; the modified metadata is used to instruct the second node to make corresponding modifications to the sign data associated with the modified metadata.
[0031] In one of the embodiments, the modification module is also used to display a data structure modification interface when a data structure modification instruction for the sign list is obtained; the data structure modification interface displays metadata corresponding to the sign list stored in the first node; when a modification operation on the metadata displayed in the data structure modification interface is detected, the modified metadata corresponding to the modification operation is sent to the first node for updating and storage.
[0032] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
[0033] Obtaining a sign list; the sign list includes metadata and sign data corresponding to at least one nuclear power equipment;
[0034] Associating the signage data corresponding to each nuclear power equipment with the metadata in the signage list;
[0035] The associated metadata and the sign data are sent to the blockchain network; the sent metadata and the sign data are used to instruct the first node in the blockchain network to store the metadata, and the second node in the blockchain network to store the sign data;
[0036] When a data structure modification instruction for the sign list is obtained, the corresponding metadata in the first node is modified according to the data structure modification instruction; the modified metadata is used to instruct the second node to make corresponding modifications to the sign data associated with the modified metadata.
[0037] A computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0038] Obtaining a sign list; the sign list includes metadata and sign data corresponding to at least one nuclear power equipment;
[0039] Associating the signage data corresponding to each nuclear power equipment with the metadata in the signage list;
[0040] The associated metadata and the sign data are sent to the blockchain network; the sent metadata and the sign data are used to instruct the first node in the blockchain network to store the metadata, and the second node in the blockchain network to store the sign data;
[0041] When a data structure modification instruction for the sign list is obtained, the corresponding metadata in the first node is modified according to the data structure modification instruction; the modified metadata is used to instruct the second node to make corresponding modifications to the sign data associated with the modified metadata.
[0042] The above-mentioned sign data processing method, device, computer equipment and storage medium obtain the metadata and sign data in the sign list by obtaining the sign list. The sign data corresponding to each nuclear power equipment is associated with the metadata in the sign list, so that the metadata and sign data corresponding to the same nuclear power equipment are associated. The associated metadata and sign data are sent to the blockchain network, so that the security of the metadata and sign data is guaranteed. The first node in the blockchain network stores the metadata, and the second node in the blockchain network stores the sign data. When the data structure modification instruction for the sign list is obtained, the corresponding metadata in the first node is modified according to the data structure modification instruction. The modified metadata can instruct the second node to modify the sign data associated with the modified metadata accordingly. In this way, when the data structure of the sign list is modified, only the metadata in the sign list needs to be modified accordingly, and the sign data in the sign list can be automatically modified based on the modified metadata, which is simple to operate, thereby improving the efficiency of sign data processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 This is an application scenario diagram of a sign data processing method in an embodiment;
[0044] Figure 2 A schematic diagram of a process of processing a sign data in one embodiment;
[0045] Figure 3 This is an application scenario diagram of a sign data processing method in another embodiment;
[0046] Figure 4 is a structural block diagram of a sign data processing device in one embodiment;
[0047] Figure 5 is a structural block diagram of a sign data processing device in another embodiment;
[0048] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0050] The sign data processing method provided in this application can be applied to Figure 1In the application environment shown. The application environment includes a terminal 102 and a blockchain network 104. The blockchain network 104 includes a first node 1041 and a second node 1042. The terminal 102 communicates with the blockchain network 104 through a network. Among them, the terminal 102 may specifically include a desktop terminal or a mobile terminal. The mobile terminal may specifically include at least one of a mobile phone, a tablet computer, a laptop computer, etc. It can be understood by those skilled in the art that Figure 1 The application environment shown in is only a part of the scenarios related to the present application solution and does not constitute a limitation on the application environment of the present application solution.
[0051] Terminal 102 obtains a sign list; the sign list includes metadata and sign data corresponding to at least one nuclear power device. Terminal 102 associates the sign data corresponding to each nuclear power device with the metadata in the sign list. Terminal 102 sends the associated metadata and sign data to blockchain network 104; the sent metadata and sign data are used to instruct the first node in blockchain network 104 to store the metadata, and the second node in blockchain network 104 to store the sign data. When a data structure modification instruction for the sign list is obtained, terminal 102 modifies the corresponding metadata in the first node according to the data structure modification instruction; the modified metadata is used to instruct the second node to make corresponding modifications to the sign data associated with the modified metadata.
[0052] In one embodiment, Figure 2 As shown, a method for processing sign data is provided, which is applied to Figure 1 The terminal 102 in the example is used as an example to illustrate, and the following steps are included:
[0053] S202, obtaining a nameplate list; the nameplate list includes metadata and nameplate data corresponding to at least one nuclear power equipment.
[0054] Among them, the label list is a file used to record the label information corresponding to the nuclear power equipment. The label list includes metadata and label data corresponding to at least one nuclear power equipment. Metadata is a type of data that defines a data structure. It can be understood that when the label list is a table file, the header data in the table is metadata, and the body data in the table is label data. The label data is the data on the label affixed to the nuclear power equipment, which is used to describe the functions and characteristics of the corresponding nuclear power equipment.
[0055] In one embodiment, the sign list may be stored in a third-party computer device. The third-party computer may communicate with the terminal. The terminal may generate a sign list acquisition request and send the sign list acquisition request to the third-party computer device. After receiving the sign list acquisition request, the third-party computer device may send the corresponding sign list to the terminal. The terminal may receive the sign data fed back by the third-party computer device. The third-party computer device may be a third-party terminal or a third-party server.
[0056] In one embodiment, the signage data includes at least one of the name of the nuclear power equipment, equipment identification, room number of the room where the nuclear power equipment is located, environment type, function of the nuclear power equipment, and equipment operation instructions.
[0057] S204, associating the nameplate data corresponding to each nuclear power equipment with the metadata in the nameplate list.
[0058] Specifically, there are many nuclear power equipment in a nuclear power plant, and each nuclear power equipment corresponds to its own nameplate data. The terminal can associate the nameplate data corresponding to each nuclear power equipment with the metadata in the nameplate list.
[0059] S206, sending the associated metadata and sign data to the blockchain network; the sent metadata and sign data are used to instruct the first node in the blockchain network to store the metadata, and the second node in the blockchain network to store the sign data.
[0060] Among them, the blockchain network is the carrier and organizational method for running blockchain technology. Blockchain technology, referred to as BT (Blockchain Technology), is also known as distributed ledger technology and is an Internet database technology. The characteristics of blockchain technology are decentralization, openness and transparency, allowing everyone to participate in data recording. Blockchain technology can verify and store data through block chain data structures, generate and update data through distributed node consensus algorithms, ensure the security of data transmission and access through cryptography, and program and operate data through smart contracts composed of automated script codes. It is a new distributed infrastructure and computing method. The node can be a computer device, such as a terminal or a server. The first node is a node for storing metadata in the sign list. The second node is a node for storing sign data in the sign list. It should be noted that the first node and the second node are not limited to storing data, but can also be used for other processing.
[0061] Specifically, the blockchain network may include a first node and a second node. The terminal may send the associated metadata and signage data to the blockchain network. After receiving the metadata and signage data, the first node in the blockchain network may perform a consensus operation on the metadata. After the consensus operation is passed, the first node may store the metadata locally. And the second node in the blockchain network may perform a consensus operation on the signage data. After the consensus operation is passed, the second node may store the signage data locally.
[0062] S208, when a data structure modification instruction for the sign list is obtained, the corresponding metadata in the first node is modified according to the data structure modification instruction; the modified metadata is used to instruct the second node to make corresponding modifications to the sign data associated with the modified metadata.
[0063] The data structure modification instruction is an instruction for modifying the data structure of the sign list.
[0064] Specifically, the terminal may obtain a data structure modification instruction for the sign list. When it is detected that a data structure modification instruction for the sign list is obtained, the terminal may modify the corresponding metadata in the first node according to the data structure modification instruction. The second node may monitor the status of the corresponding metadata in the first node in real time. When the second node detects that the corresponding metadata in the first node has been modified, the second node may modify the sign data associated with the modified metadata accordingly.
[0065] In one embodiment, when the terminal modifies the corresponding metadata in the first node, the modification operation corresponding to the modification may specifically be any one of an adding operation, a deleting operation and an updating operation on the metadata.
[0066] In the above-mentioned signboard data processing method, the metadata and signboard data in the signboard list are obtained by obtaining the signboard list. The signboard data corresponding to each nuclear power equipment is associated with the metadata in the signboard list, so that the metadata and signboard data corresponding to the same nuclear power equipment are associated. The associated metadata and signboard data are sent to the blockchain network, so that the security of the metadata and signboard data is guaranteed. The first node in the blockchain network stores the metadata, and the second node in the blockchain network stores the signboard data. When the data structure modification instruction for the signboard list is obtained, the corresponding metadata in the first node is modified according to the data structure modification instruction. The modified metadata can instruct the second node to modify the signboard data associated with the modified metadata accordingly. In this way, when the data structure of the signboard list is modified, only the metadata in the signboard list needs to be modified accordingly, and the signboard data in the signboard list can be automatically modified based on the modified metadata, which is simple to operate, thereby improving the efficiency of signboard data processing.
[0067] In addition, the metadata and sign data in the sign list are sent to the blockchain network for storage, which can prevent the metadata and sign data in the sign list from being maliciously tampered with, thereby ensuring the security of the metadata and sign data in the sign list.
[0068] In one embodiment, the sign data processing method specifically also includes: when a query trigger operation is detected, generating a sign list query instruction; the sign list query instruction carries the equipment identification of the nuclear power equipment; in response to the sign list query instruction, querying metadata from the first node according to the equipment identification; the queried metadata is used to indicate that the sign data associated with the queried metadata and corresponding to the nuclear power equipment is queried from the second node; receiving the metadata found by the first node and the corresponding sign data found by the second node, and displaying the metadata and the corresponding sign data in the sign list display interface.
[0069] Among them, the sign list query instruction is a query instruction generated by the terminal when a query trigger operation is detected, and is used to query the sign list of the corresponding nuclear power equipment. The equipment identifier is a string that uniquely identifies the nuclear power equipment. The equipment identifier may include at least one of numbers, letters, and special characters. Special characters may include at least one of underscores, dots, and percent signs. The sign list display interface is an interface set on the terminal for displaying the queried sign list.
[0070] Specifically, a sign list query interface is provided on the terminal. The user can trigger the corresponding query button based on the sign list query interface, and then the terminal can detect the corresponding query trigger operation. When the terminal detects the query trigger operation, the terminal can generate a sign list query instruction. The sign list query instruction carries the equipment identification of the nuclear power equipment. The terminal can query metadata from the first node according to the sign list query instruction and the equipment identification, and the first node can return the queried metadata to the terminal. The second node can monitor the status of the metadata in the first node in real time. When the second node detects that the metadata in the first node is queried, the second node can query the sign data associated with the queried metadata and corresponding to the nuclear power equipment from the local, and the second node can return the queried sign data to the terminal. The terminal can receive the metadata found by the first node and the corresponding sign data found by the second node, and display the metadata and the corresponding sign data in the sign list display interface.
[0071] In the above embodiment, metadata is queried from the first node through the equipment identification of the nuclear power equipment, and the corresponding signage data of the nuclear power equipment is automatically queried based on the queried metadata. Then, the metadata and the corresponding signage data are displayed in the signage list display interface. In this way, the time required for the query is saved, and the signage list of the corresponding nuclear power equipment can be quickly found.
[0072] In one embodiment, before step S204, that is, the step of associating the nameplate data corresponding to each nuclear power equipment with the metadata in the nameplate list, the nameplate data processing method specifically also includes: inputting the nameplate list into a pre-trained metadata extraction model to obtain the metadata in the nameplate list; inputting the nameplate list into a pre-trained nameplate data extraction model to obtain the nameplate data in the nameplate list and corresponding to each nuclear power equipment respectively.
[0073] The metadata extraction model is a data model that can extract metadata from the sign list. The sign data extraction model is a data model that can extract sign data from the sign list.
[0074] Specifically, the terminal may use the sign list as the input of a pre-trained metadata extraction model, and input the sign list into the pre-trained metadata extraction model. The metadata extraction model may process the sign list accordingly and output the metadata in the sign list. Then the terminal may obtain the metadata in the sign list. The terminal may use the sign list as the input of a pre-trained sign data extraction model, and input the sign list into the pre-trained sign data extraction model. The sign data extraction model may process the sign list accordingly and output the sign data in the sign list that corresponds to each nuclear power equipment respectively. Then the terminal may obtain the sign data in the sign list that corresponds to each nuclear power equipment respectively.
[0075] In the above embodiment, by inputting the sign list input into the pre-trained metadata extraction model and the pre-trained sign data extraction model respectively, the metadata and sign data in the sign list can be quickly extracted.
[0076] In one embodiment, the step of inputting the sign list into a pre-trained metadata extraction model to obtain the metadata in the sign list specifically includes: inputting the sign list into a pre-trained metadata extraction model, and determining the target data format set in the metadata extraction model; extracting the metadata in the sign list according to the target data format to obtain the metadata in the sign list; the data format of the extracted metadata conforms to the target data format.
[0077] The target data format is a data format set in the metadata extraction model and used to extract metadata.
[0078] Specifically, a target data format for extracting metadata is set in the metadata extraction model. The terminal can determine the target data format set in the metadata extraction model. Then, the terminal can input the sign list into the pre-trained metadata extraction model. The terminal can extract metadata from the sign list according to the target data format of the metadata extraction model to obtain metadata in the sign list. The data format of the extracted metadata conforms to the target data format.
[0079] In one embodiment, the metadata extraction model may specifically be a CWM (Common Warehouse Metamodel) model. The target data format of the metadata extraction model is an XML (eXtensible Markup Language) format. The terminal may input the sign list into a pre-trained CWM model, and extract the metadata in the sign list according to the XML format to obtain the metadata in the sign list. The data format of the extracted metadata complies with the XML format.
[0080] In the above embodiment, the metadata in the sign list is extracted by using the target data format set in the metadata extraction model to obtain the metadata in the sign list. In this way, the metadata in the sign list can be extracted quickly, and the accuracy of the extraction is also improved.
[0081] In one embodiment, step S208, that is, when a data structure modification instruction for the sign list is obtained, the step of modifying the corresponding metadata in the first node according to the data structure modification instruction, specifically includes: when a data structure modification instruction for the sign list is obtained, displaying a data structure modification interface; the data structure modification interface displays the metadata corresponding to the sign list stored in the first node; when a modification operation on the metadata displayed in the data structure modification interface is detected, the modified metadata corresponding to the modification operation is sent to the first node for update and storage.
[0082] The data structure modification interface is an interface set on the terminal for modifying the data structure of the sign list.
[0083] Specifically, the user triggers the corresponding data structure modification button based on the sign list display interface. Then, the terminal can generate a data structure modification instruction for the sign list in response to the user's trigger operation. The terminal can obtain the data structure modification instruction for the sign list. When it is detected that the terminal obtains the data structure modification instruction for the sign list, the terminal can display the data structure modification interface. The data structure modification interface displays the metadata corresponding to the sign list stored in the first node. Based on the data structure modification interface, the user can perform corresponding modification operations on the metadata displayed in the data structure modification interface. Then, the terminal can detect the modification operation on the metadata displayed in the data structure modification interface. When the terminal detects the modification operation on the metadata displayed in the data structure modification interface, the terminal can send the modified metadata corresponding to the modification operation to the first node for update storage.
[0084] In one embodiment, the first node may instruct the second node in the blockchain network to perform a corresponding modification operation on the signage data associated with the modified metadata after the first node updates the stored metadata. The second node may then store the updated signage data associated with the modified metadata.
[0085] In the above embodiment, the metadata corresponding to the sign list stored in the first node is modified through the data structure modification interface, and the modified metadata is sent to the first node for update storage. In this way, the modification of metadata becomes visual, and the modification efficiency of metadata is improved.
[0086] In one embodiment, Figure 3As shown, the terminal 102 communicates with the blockchain network through a network connection. The blockchain network 104 includes a first node 1041, a second node 1042, a first observer node 1041a, and a second observer node 1042b. The first observer node 1041a is used to pull metadata from the first node 1041, and the second observer node 1042b is used to pull sign data from the second node 1042. The sign data processing method specifically also includes: when the first node 1041 is detected to have a fault, the first observer node 1041a is controlled to replace the first node 1041 that has a fault; when the second node 1042 is detected to have a fault, the second observer node 1042b is controlled to replace the second node 1042 that has a fault.
[0087] The first observer node 1041a is a backup node of the first node 1041. The second observer node 1042b is a backup node of the second node 1042.
[0088] Specifically, the terminal 102 can monitor the operating status of the first node and the second node in the blockchain network in real time. When the terminal 102 detects that the first node 1041 fails, the terminal can control the first observer node 1041a to replace the failed first node 1041. When the terminal detects that the second node 1042 fails, the terminal can control the second observer node 1042b to replace the failed second node 1042.
[0089] In the above embodiment, by setting a first observer node for the first node in the blockchain network, the first observer node pulls metadata from the first node in real time. And a second observer node for the second node, the second observer node pulls the sign data from the second node in real time. When the first node fails, the first observer node replaces the failed first node, and when the second node fails, the second observer node replaces the failed second node. In this way, the disaster recovery performance of the blockchain network is improved and the stability of the blockchain network is guaranteed.
[0090] It should be understood that although Figure 2 The steps are shown in order, but they are not necessarily executed in order. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Figure 2 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0091] In one embodiment, Figure 4 As shown, a sign data processing device 400 is provided, comprising: an acquisition module 401, an association module 402, a sending module 403 and a modification module 404, wherein:
[0092] The acquisition module 401 is used to acquire a nameplate list; the nameplate list includes metadata and nameplate data corresponding to at least one nuclear power equipment.
[0093] The association module 402 is used to associate the label data corresponding to each nuclear power equipment with the metadata in the label list.
[0094] The sending module 403 is used to send the associated metadata and sign data to the blockchain network; the sent metadata and sign data are used to instruct the first node in the blockchain network to store the metadata, and the second node in the blockchain network to store the sign data.
[0095] The modification module 404 is used to modify the corresponding metadata in the first node according to the data structure modification instruction when obtaining the data structure modification instruction for the sign list; the modified metadata is used to instruct the second node to make corresponding modifications to the sign data associated with the modified metadata.
[0096] In one embodiment, the modification module 404 is also used to display a data structure modification interface when a data structure modification instruction for the sign list is obtained; the data structure modification interface displays metadata corresponding to the sign list stored in the first node; when a modification operation on the metadata displayed in the data structure modification interface is detected, the modified metadata corresponding to the modification operation is sent to the first node for update and storage.
[0097] refer to Figure 5 In one embodiment, the sign data processing device 400 further includes: a generating module 405, a querying module 406, a receiving module 407, an extracting module 408 and a controlling module 409, wherein:
[0098] The generating module 405 is used to generate a label list query instruction when a query trigger operation is detected; the label list query instruction carries the equipment identification of the nuclear power equipment.
[0099] The query module 406 is used to query metadata from the first node according to the equipment identification in response to the label list query instruction; the queried metadata is used to indicate to query the label data associated with the queried metadata and corresponding to the nuclear power equipment from the second node.
[0100] The receiving module 407 is used to receive the metadata found by the first node and the corresponding sign data found by the second node, and display the metadata and the corresponding sign data in the sign list display interface.
[0101] The extraction module 408 is used to input the sign list into a pre-trained metadata extraction model to obtain the metadata in the sign list; input the sign list into a pre-trained sign data extraction model to obtain the sign data in the sign list that corresponds to each nuclear power equipment.
[0102] The control module 409 is used to control the first observer node to replace the failed first node when a failure of the first node is detected; and to control the second observer node to replace the failed second node when a failure of the second node is detected.
[0103] In one embodiment, the extraction module 408 is also used to input the sign list into a pre-trained metadata extraction model and determine the target data format set in the metadata extraction model; extract the metadata in the sign list according to the target data format to obtain the metadata in the sign list; the data format of the extracted metadata conforms to the target data format.
[0104] The above-mentioned sign data processing device obtains the metadata and sign data in the sign list by acquiring the sign list. The sign data corresponding to each nuclear power equipment is associated with the metadata in the sign list, so that the metadata and sign data corresponding to the same nuclear power equipment are associated. The associated metadata and sign data are sent to the blockchain network, so that the security of the metadata and sign data is guaranteed. The first node in the blockchain network stores the metadata, and the second node in the blockchain network stores the sign data. When the data structure modification instruction for the sign list is obtained, the corresponding metadata in the first node is modified according to the data structure modification instruction. The modified metadata can instruct the second node to modify the sign data associated with the modified metadata accordingly. In this way, when the data structure of the sign list is modified, only the metadata in the sign list needs to be modified accordingly, and the sign data in the sign list can be automatically modified based on the modified metadata, which is simple to operate, thereby improving the efficiency of sign data processing.
[0105] For the specific definition of the sign data processing device, please refer to the definition of the sign data processing method above, which will not be repeated here. Each module in the above-mentioned sign data processing device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0106] In one embodiment, a computer device is provided, which may be the above-mentioned Figure 1 The terminal 102 in FIG. 1 may have an internal structure as shown in FIG. Figure 6 As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a sign data processing method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0107] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0108] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the above-mentioned signage data processing method. The steps of the signage data processing method here may be the steps of the signage data processing method in the above-mentioned various embodiments.
[0109] In one embodiment, a computer readable storage medium is provided, which stores a computer program, and when the computer program is executed by a processor, the processor executes the steps of the above-mentioned sign data processing method. The steps of the sign data processing method here can be the steps of the sign data processing method in the above-mentioned various embodiments.
[0110] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0111] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0112] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A method for processing sign data, characterized in that: The method comprises: Obtaining a sign list; the sign list includes metadata and sign data corresponding to at least one nuclear power equipment; Associating the signage data corresponding to each nuclear power equipment with the metadata in the signage list; The associated metadata and the sign data are sent to the blockchain network; the sent metadata and the sign data are used to instruct the first node in the blockchain network to store the metadata, and the second node in the blockchain network to store the sign data; Performing a consensus operation on the metadata through the first node in the blockchain network, and after the consensus operation is passed, storing the metadata locally through the first node; Performing a consensus operation on the sign data through the second node in the blockchain network, and after the consensus operation is passed, storing the sign data locally through the second node; When a data structure modification instruction for the sign list is obtained, the corresponding metadata in the first node is modified according to the data structure modification instruction; the modified metadata is used to instruct the second node to make corresponding modifications to the sign data associated with the modified metadata, and the second node is used to monitor the status of the corresponding metadata in the first node in real time. When the second node detects that the corresponding metadata in the first node is modified, the second node makes corresponding modifications to the sign data associated with the modified metadata; The method further comprises: When a query trigger operation is detected, a nameplate list query instruction is generated; the nameplate list query instruction carries the equipment identification of the nuclear power equipment; In response to the sign list query instruction, query metadata from the first node according to the device identifier; When the second node monitors that the metadata in the first node is queried, the second node queries the signboard data associated with the queried metadata and corresponding to the nuclear power equipment; The metadata found by the first node and the corresponding sign data found by the second node are received, and the metadata and the corresponding sign data are displayed in a sign list display interface.
2. The method according to claim 1, characterized in that The data structure modification instruction includes any one of an adding operation, a deleting operation and an updating operation on the metadata.
3. The method according to claim 1, characterized in that Before associating the signage data corresponding to each nuclear power equipment with the metadata in the signage list, the method further includes: Inputting the sign list into a pre-trained metadata extraction model to obtain metadata in the sign list; The nameplate list is input into a pre-trained nameplate data extraction model to obtain the nameplate data in the nameplate list and corresponding to each nuclear power equipment respectively.
4. The method according to claim 3, characterized in that The step of inputting the sign list into a pre-trained metadata extraction model to obtain metadata in the sign list includes: Inputting the sign list into a pre-trained metadata extraction model and determining a target data format set in the metadata extraction model; The metadata in the sign list is extracted according to the target data format to obtain the metadata in the sign list; the data format of the extracted metadata conforms to the target data format.
5. The method according to claim 1, characterized in that When the data structure modification instruction for the sign list is obtained, the corresponding metadata in the first node is modified according to the data structure modification instruction, including: When a data structure modification instruction for the sign list is obtained, a data structure modification interface is displayed; the data structure modification interface displays metadata corresponding to the sign list stored in the first node; When a modification operation on the metadata displayed in the data structure modification interface is detected, the modified metadata corresponding to the modification operation is sent to the first node for update storage.
6. The method according to any one of claims 1 to 5, characterized in that The blockchain network also includes a first observer node and a second observer node; the first observer node is used to pull metadata from the first node, and the second observer node is used to pull sign data from the second node; The method further comprises: When it is detected that the first node fails, controlling the first observer node to replace the failed first node; When it is monitored that the second node fails, the second observer node is controlled to replace the failed second node.
7. A sign data processing device, characterized in that: The device comprises: An acquisition module, used to acquire a nameplate list; the nameplate list includes metadata and nameplate data corresponding to at least one nuclear power equipment; An association module, used to associate the signage data corresponding to each nuclear power equipment with the metadata in the signage list; A sending module, used to send the associated metadata and the sign data to the blockchain network; the sent metadata and the sign data are used to instruct the first node in the blockchain network to store the metadata, and the second node in the blockchain network to store the sign data; A modification module, used for, when a data structure modification instruction for the sign list is obtained, modifying the corresponding metadata in the first node according to the data structure modification instruction; the modified metadata is used to instruct the second node to make corresponding modifications to the sign data associated with the modified metadata, and the second node is used to monitor the status of the corresponding metadata in the first node in real time, and when the second node detects that the corresponding metadata in the first node is modified, the second node makes corresponding modifications to the sign data associated with the modified metadata; The sending module is also used for: The first node in the blockchain network performs a consensus operation on the metadata, and after the consensus operation is passed, the metadata is stored locally through the first node; the second node in the blockchain network performs a consensus operation on the sign data, and after the consensus operation is passed, the sign data is stored locally through the second node; The modification module is also used for: When a query trigger operation is detected, a nameplate list query instruction is generated; the nameplate list query instruction carries the equipment identification of the nuclear power equipment; In response to the sign list query instruction, query metadata from the first node according to the device identifier; When the second node monitors that the metadata in the first node is queried, the second node queries the signboard data associated with the queried metadata and corresponding to the nuclear power equipment; The metadata found by the first node and the corresponding sign data found by the second node are received, and the metadata and the corresponding sign data are displayed in a sign list display interface.
8. The device according to claim 7, characterized in that The modification module is also used to display a data structure modification interface when a data structure modification instruction for the sign list is obtained; the data structure modification interface displays metadata corresponding to the sign list stored in the first node; When a modification operation on the metadata displayed in the data structure modification interface is detected, the modified metadata corresponding to the modification operation is sent to the first node for update storage.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
