A power system data updating system and method, device, equipment and storage medium
Patent Information
- Application Number
- CN202610720551.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-05-25
- Publication Date
- 2026-08-18
AI Technical Summary
[0004]本发明提供了一种电力系统数据更新方法、装置、设备及存储介质,以解决现有技术中电力系统数据更新的效率低、无法及时且准确响应新数据更新的技术问题
本发明的技术方案通过各标准数据库调取的第一数据对象,构建第一数据对象集合后进行抽取和结构化解析,得到各个第一数据对象的标准ID,并通过电力系统数据库获取预存的第二数据对象集合,提取对应各个第二数据对象的标准ID,从而能够从中确定目标新增标准ID和目标删除标准ID,以此实现电力系统中数据对象的快速且准确地更新,通过自动化算法替代人工操作,极大提升了统计和比对的效率和准确性,同时易于集成到标准管理信息系统中,避免了过于复杂的识别算法和模型,能够快速实现对新标准发布的自动监控和分析。
Smart Images

Figure CN122593818A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of power system data processing technology, and in particular to a power system data updating method, apparatus, equipment and storage medium. Background Technology
[0002] As the construction of the new power system database continues to advance, its supporting standard system documents are also undergoing rapid iteration and dynamic improvement. The power system database mainly stores various types of document data, and each document data corresponds to a data entry. Each data entry includes a document data index header, document content data, etc. Currently, the management of data entry processing objects in the power system database is still mainly based on document collection and manual statistics. That is, documents are collected and counted manually from various standard databases, and then the corresponding updated data is stored in the power system database. This results in insufficient digitalization and intelligence in updating the power system database, making it difficult to adapt to the data management needs of the rapidly evolving overall power system architecture.
[0003] The existing data management model has several significant shortcomings: First, the data entries are multi-layered and massive in volume, making manual statistics inefficient and prone to errors. Second, it is difficult to quickly quantify and compare the differences between old and new versions of data entries, and it is impossible to quickly and accurately identify the updates, additions, obsolescence, and retention status of data entries corresponding to data document information in various standard databases, especially when massive amounts of data need to be updated to the power system, making it difficult to quickly complete the quantitative comparison of old and new data objects. Third, there is a lack of an automated dynamic data monitoring mechanism, which cannot promptly capture changes in data objects in the standard database, making it difficult to support standard development and revision planning and technical route decisions. Therefore, the power system database update efficiency is low, and it cannot respond to new data updates in a timely and accurate manner. Summary of the Invention
[0004] This invention provides a method, apparatus, device, and storage medium for updating power system data, in order to solve the technical problems of low efficiency and inability to respond to new data updates in a timely and accurate manner in the prior art.
[0005] To address the aforementioned technical problems, embodiments of the present invention provide a power system data update system, comprising: a cloud server, a power system database and various standard databases communicatively connected to the cloud server; Each of the standard databases is used to retrieve the first data object to construct the first data object set, and to extract the first data object set to obtain the standard ID corresponding to each first data object; The power system database is used to retrieve a set of second data objects, including a number of preset second data objects, and to extract the second data object set to obtain the standard ID of each second data object. The cloud server is used to obtain and determine the target addition standard ID and the target deletion standard ID based on the standard ID of the first data object and the standard ID of the second data object; and to update the power system database based on the target addition standard ID and the target deletion standard ID. The first data object and the second data object are both data information entries stored in the corresponding database.
[0006] As a preferred embodiment, the step of retrieving the first data object and constructing the first data object set specifically includes: Retrieve the first data object stored in each standard database; each standard database stores several first data objects. Integrate all the first data objects to construct a first data object set.
[0007] As a preferred embodiment, the step of extracting the first data object set to obtain the standard ID corresponding to each first data object specifically includes: Extract the first data object from the first data object set, and perform structured parsing on the extracted first data object to obtain the first standard text stream corresponding to each first data object; Based on the preset pre-trained model, the first standard text stream is adaptively adjusted to the domain, and the standard level, standard name and version number corresponding to each first data object are identified as the standard ID of the corresponding first data object.
[0008] As a preferred embodiment, the retrieval includes a preset set of second data objects, and the extraction of the set of second data objects to obtain the standard ID corresponding to each second data object, specifically including: Retrieve the second set of data objects stored in the power system database; The second data objects in the second data object set are extracted, and the extracted second data objects are parsed in a structured manner to obtain the second standard text stream corresponding to each second data object; Based on the preset pre-trained model, the second standard text stream is adaptively adjusted to the domain, and the standard level, standard name and version number corresponding to each second data object are identified as the standard ID of the corresponding second data object.
[0009] As a preferred embodiment, the step of obtaining and determining the target addition standard ID and the target deletion standard ID based on the standard ID of the first data object and the standard ID of the second data object specifically includes: Obtain the standard level, standard name, and version number of the first data object corresponding to each standard database, and the standard level, standard name, and version number of the second data object in the power system database; Compare the standard level, standard name, and version number of all first data objects with the standard level, standard name, and version number of all second data objects to obtain first and second data objects with non-overlapping standard IDs; Based on the first and second data objects with non-overlapping standard IDs, extract the standard IDs that exist only in the first data object as the target new standard IDs, and extract the standard IDs that exist in the second data object as the target delete IDs.
[0010] As a preferred embodiment, after comparing the standard level, standard name, and version number of all first data objects with the standard level, standard name, and version number of all second data objects, the method further includes: Extract the first and second data objects that have the same standard level and standard name, and identify the version number in the overlapping first and second data objects; If the version numbers are the same, the overlapping second data objects in the power system remain unchanged; If the version numbers are different, the overlapping first data object will be updated in the power system, and the corresponding overlapping second data object will be deleted.
[0011] As a preferred embodiment, updating the power system database based on the target newly added standard ID and the target deleted standard ID specifically includes: Store the first data object corresponding to the target newly added standard ID into the power system, and delete the second data object corresponding to the target deleted standard ID in the power system.
[0012] Accordingly, the present invention also provides a power system data update method, implemented based on a power system database, various standard databases, and a cloud server, comprising: Retrieve the first data object to construct the first data object set, and extract the first data object set to obtain the standard ID of each first data object; Retrieve a set of second data objects, including a number of preset second data objects, and extract the second data object set to obtain the standard ID of each second data object; Obtain and determine the target addition standard ID and target deletion standard ID based on the standard ID of the first data object and the standard ID of the second data object; update the power system database based on the target addition standard ID and target deletion standard ID; The first data object and the second data object are both data information entries stored in the corresponding database.
[0013] Accordingly, the present invention also provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor executes the computer program to implement the power system data update method as described above.
[0014] Accordingly, the present invention also provides a computer-readable storage medium comprising a stored computer program, wherein, when the computer program is executed, it controls the device where the computer-readable storage medium is located to perform the power system data update method as described above.
[0015] Compared with the prior art, the embodiments of the present invention have the following beneficial effects: The technical solution of this invention retrieves first data objects from various standard databases, constructs a first data object set, extracts and performs structured parsing to obtain the standard ID of each first data object, and obtains a pre-stored second data object set from the power system database, extracting the standard ID of each corresponding second data object. This allows for the determination of target new standard IDs and target deleted standard IDs, thereby achieving rapid and accurate updates of data objects in the power system. By replacing manual operation with automated algorithms, the efficiency and accuracy of statistics and comparison are greatly improved. At the same time, it is easy to integrate into the standard management information system, avoiding overly complex identification algorithms and models, and enabling rapid automatic monitoring and analysis of new standard releases. Attached Figure Description
[0016] Figure 1 : A structural diagram of a power system data update system provided in an embodiment of the present invention; Figure 2 : This is a flowchart of a power system data update method provided in an embodiment of the present invention.
[0017] The reference numerals for the accompanying drawings in the specification are as follows: Power system database 01, various standard databases 02, cloud server 03. Detailed Implementation
[0018] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. 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 are within the scope of protection of the present invention.
[0019] Example 1 Please refer to Figure 1 The present invention provides a power system data update system, comprising: a cloud server 03 and a power system database 01 and various standard databases 02 that are communicatively connected to the cloud server 03.
[0020] Each of the standard databases 02 is used to retrieve the first data object to construct the first data object set, and to extract the first data object set to obtain the standard ID of each first data object.
[0021] As a preferred embodiment, the step of retrieving the first data object and constructing the first data object set specifically includes: Retrieve the first data object stored in each standard database 02; wherein each standard database 02 stores several first data objects; Integrate all the first data objects to construct a first data object set.
[0022] In this embodiment, the standard database 02 can continuously call the data information stored in its corresponding standard management platforms to update the corresponding standard system documents. It can also automatically retrieve data at different collection cycles according to actual needs, or respond to the update command of the remote server 03 to control the retrieval. It is understood that the power system database 01 can also retrieve the corresponding data information automatically or respond to the update command to control the retrieval. It should be noted that each standard management platform's standard database 02 stores several standard system documents. Each standard system document is a data entry, and each data entry is the first data object that can be called in each standard database 02. The standard system documents in each standard database 02 are updated and uploaded by local units. Finally, the cloud server 03 controls the retrieval of data objects in each standard database 02, and then summarizes all data objects and compares and updates them with the data objects pre-stored in the power system database 01. This realizes an automated dynamic monitoring mechanism. At the same time, it can promptly detect changes in the standard system document data stored in the power system through the automated execution of the power system database 01, and achieve efficient and accurate management of the new power system standard system documents. It should be noted that the cloud database is communicatively connected to the power system and each standard database 02, and each standard database 02 is a lower-level database node of the power system.
[0023] In this embodiment, data entries corresponding to the power sector are retrieved and extracted in batches from various independent databases through standard database 02 as the first data object, thereby realizing unified access to multi-source standard data. After completing the collection of scattered standard individual data, all the acquired first data objects are integrated, collected, and uniformly organized. Data is summarized according to the preset collection logic, and finally a complete and unified set of first data objects is constructed to realize the structured aggregation of scattered standard data. Then, it is sent to cloud server 03 to realize the automated data update of the power system.
[0024] In this embodiment, by obtaining data from various standard databases 02 through the cloud server 03, the situation of independent and isolated data among the various standard databases 02 can be broken, and the automatic retrieval and centralized integration of cross-database standard resources can be completed efficiently, reducing manual archiving operations; it can quickly aggregate power data objects across the entire domain and form a standardized system set, providing a complete and unified data foundation for subsequent standard comparison, quantity statistics, status assessment and dynamic management, effectively improving the comprehensiveness and efficiency of power standard system document data collection.
[0025] As a preferred embodiment, the step of extracting the first data object set to obtain the standard ID corresponding to each first data object specifically includes: Extract the first data object from the first data object set, and perform structured parsing on the extracted first data object to obtain the first standard text stream corresponding to each first data object; Based on the preset pre-trained model, the first standard text stream is adaptively adjusted to the domain, and the standard level, standard name and version number corresponding to each first data object are identified as the standard ID of the corresponding first data object.
[0026] In this embodiment, the first data object is defined as S i Each first data object S i Each has a corresponding standard ID, and each standard ID includes the standard level L. i Version number V i and standard name. For example, standard level L i Including national standard L g 、line mark L h Landmark L d Group Standard L t Enterprise Standard L q The first data object set N = {S1, S2, ..., S...} i}
[0027] In this embodiment, the first data objects within the first data object set are extracted in a targeted manner. The extracted data objects undergo refined structured parsing to remove non-critical and redundant content, generating a corresponding first standard text stream. Based on a pre-deployed pre-trained model, adaptive fine-tuning and domain-specific optimization are performed using characteristics of the power standards domain. Deep semantic recognition is then conducted on the standardized text stream to accurately extract three core key information categories from each data object: standard level, standard name, and version number. These associated attributes are then combined and bound to construct a unique standard ID. It should be noted that the pre-trained model can be a Transformer-structured pre-trained model.
[0028] For example, based on a Transformer pre-trained model, the first standard text stream of the first data object can be domain-adaptive fine-tuned to identify key attributes such as standard level, standard number, and standard name. Furthermore, the Transformer pre-trained model can be used in conjunction with regular expressions and a knowledge base to match standard number prefixes, such as "GB" corresponding to the standard code, "DL" to the power industry code, and "T / CEC" to the group code, thereby determining the standard level L. i For the version number, the version number information can be extracted from the standard number or release date; if the version number information is missing, the file generation time is used by default. For the standard name, the BERT-CRF model can be used to label and identify the standard name. Furthermore, a combined coding rule is used to confirm the standard level L of each data object. i Version number V i The standard name is used to ultimately obtain the standard ID. It should be noted that the electricity BERT-CRF model is built upon an electricity-domain optimized BERT (Transformer-based bidirectional encoder) as the base encoding layer, combined with a CRF (Conditional Random Field) decoding layer. It is specifically adapted to the characteristics of electricity standard texts, which contain numerous technical terms and have fixed formatting specifications. Relying on the electricity standard corpus, it completes domain-specific fine-tuning learning, enabling sequence labeling of the parsed standard text stream, accurately capturing key entity fields such as standard name, number, and classification category, and completing the automated extraction and accurate segmentation of key textual information from electricity data objects.
[0029] Understandably, structured parsing can achieve the standardized transformation of unstructured standard text, regulate data expression, and reduce the difficulty of subsequent feature recognition. Combined with a domain-adaptive optimized pre-trained model, it can efficiently and accurately complete the automatic identification of multi-dimensional standard attributes and the construction of unique identifiers, replacing manual information sorting and entry methods, ensuring the uniqueness and standardization of data object identification, and providing accurate and unified data support for subsequent standard comparison, classification statistics, and status determination.
[0030] The power system database 01 is used to retrieve a set of second data objects, which includes a number of preset second data objects, and extract the set of second data objects to obtain the standard ID of each second data object.
[0031] The first data object and the second data object are both data information entries stored in the corresponding database.
[0032] As a preferred embodiment, the retrieval of a set of second data objects including a preset set of several second data objects, and the extraction of the set of second data objects to obtain the standard ID corresponding to each second data object, specifically includes: Retrieve the second set of data objects stored in the power system database 01; The second data objects in the second data object set are extracted, and the extracted second data objects are parsed in a structured manner to obtain the second standard text stream corresponding to each second data object; Based on the preset pre-trained model, the second standard text stream is adaptively adjusted to the domain, and the standard level, standard name and version number corresponding to each second data object are identified as the standard ID of the corresponding second data object.
[0033] In this embodiment, the second data object is defined as S j Each first data object S j Each has a corresponding standard ID, and each standard ID includes the standard level L. j Version number V j and standard name. For example, standard level L j This also includes the national standard L. g 、line mark L h Landmark L d Group Standard L t Enterprise Standard L q The second data object set O = {S1, S2, ..., S} j}
[0034] In this embodiment, the second data objects within the second data object set can be extracted continuously or spontaneously according to a preset period, or extraction can be performed in response to control commands from the cloud server. The extracted data objects undergo refined structured parsing to remove non-critical and redundant content, generating a corresponding second standard text stream. Based on a pre-deployed pre-trained model, adaptive fine-tuning and domain adaptation optimization are performed using characteristics of the power standards domain. Deep semantic recognition is then performed on the standardized text stream to accurately extract three core key information categories from each data object: standard level, standard name, and version number. These associated attributes are then combined and bound to construct a unique standard ID. It should be noted that the pre-trained model can be a Transformer-structured pre-trained model.
[0035] It should be noted that the second data object is pre-stored in the power system database 01, meaning that the second data object stored in the power system database 01 is the original, older version of the standard system document. The old standard data system file data of the corresponding power system is obtained through the cloud server 03, thereby facilitating real-time monitoring of the corresponding data updates.
[0036] In this embodiment, a set of second data objects pre-stored locally, retrieved from the power system database, is obtained via cloud server 03. The second data objects within the set are extracted in batches, and various types of standard raw data are cleaned and structured parsed to convert unstructured standard content into independent, standardized second standard text streams. A pre-trained general model is used, combined with professional scenarios related to power standards, for domain-adaptive fine-tuning. Based on the optimized model, the second standard text streams are intelligently identified, accurately capturing key information such as the standard level, standard name, and version number of each second data object. This information is then combined to generate a unique standard ID for each second data object.
[0037] In this embodiment, by extracting and identifying the second data object from the power system database, the automated retrieval and standardized parsing of the existing data object set are achieved, unifying the text format and data structure of the existing standard data. Through domain-adaptive intelligent identification, core attribute extraction and identity encoding are automatically completed, reducing manual processing and data entry workload, ensuring the uniqueness and consistency of existing data object identifiers, and providing standardized and reliable data support for subsequent comparison of differences between old and new standard system documents, classification statistics, and full lifecycle management.
[0038] The cloud server 03 is used to obtain and determine the target addition standard ID and the target deletion standard ID based on the standard ID of the first data object and the standard ID of the second data object; and to update the power system database based on the target addition standard ID and the target deletion standard ID.
[0039] As a preferred embodiment, the step of obtaining and determining the target addition standard ID and the target deletion standard ID based on the standard ID of the first data object and the standard ID of the second data object specifically includes: Obtain the standard level, standard name, and version number of the first data object corresponding to each standard database 02, and the standard level, standard name, and version number of the second data object in the power system database 01; Compare the standard level, standard name, and version number of all first data objects with the standard level, standard name, and version number of all second data objects to obtain first and second data objects with non-overlapping standard IDs; Based on the first and second data objects with non-overlapping standard IDs, extract the standard IDs that exist only in the first data object as the target new standard IDs, and extract the standard IDs that exist in the second data object as the target delete IDs.
[0040] In this embodiment, a comprehensive cross-comparison is performed on the standard level, standard name, and version number corresponding to the first and second data objects. Based on a uniformly constructed standard ID, a two-way matching screening is completed to identify data objects whose standard IDs do not overlap between the two sets. Using these non-overlapping data objects as the basis for analysis, standard IDs that exist independently only in the first data object are extracted and designated as target new standard IDs. Simultaneously, standard IDs belonging only to the second data object are extracted and identified as target deleted standard IDs.
[0041] In this embodiment, the standard status determination rules include addition criteria and deletion criteria. For example, the rule for adding a new criterion is: First data object S i If the standard ID exists in the first data object set N but not in the second data object set O, then the first data object S will be... i As a newly added standard ID. The rule for deleting a standard is: Second data object S j If the standard ID exists in the second data object set O but not in the first data object set N, then the second data object S will be... j This serves as the standard ID for deletion. For example, for newly added standards, the number of newly added standards and the national standards for these new standards are calculated using the following formula: New Total = |N\O| =Σ{S i ∈N}I(S i ∉O) New Count(L) =Σ{ S i ∈N} I(S i ∉O and L i = L g ) Among them, New Total This represents the total number of newly added standards, N\O represents the difference operation between the first data object set N and the second data object set O, I(.) function represents the indicator function, and represents S. i ∉O takes the value 1 when true and 0 when false; New Count(L) This indicates the number of newly added national standards.
[0042] For other standard levels L in the first data object i That is, national standard L g 、line mark L h Landmark L d Group Standard L t Enterprise Standard L q The above principles can also be used for calculation.
[0043] The following formula outlines the number of deletion criteria and the national standards for those criteria: Deleted Total =|O\N| =Σ{ S j ∈O} I(S j ∉N) Deleted Count(L) =Σ{S j ∈O} I(S j ∉N and L j = L g ) Among them, Deleted Total This indicates the total number of deletions. O\N represents the difference operation between sets O and N. Deleted Count(L) This indicates the deletion of national standard numbers.
[0044] For other standard levels L in the second data object j That is, national standard L g 、line mark L h Landmark L d Group Standard L t Enterprise Standard L q The above principles can also be used for calculation.
[0045] In this embodiment, by comparing multi-dimensional attributes and accurately matching standard IDs, the differentiated data between two sets of data objects can be quickly distinguished, and the newly added and deleted standard entries can be accurately classified. The entire process relies on automated comparison rules to replace manual identification, effectively improving the efficiency and accuracy of identifying differences in standard system documents, clearly clarifying the changes in the iterative updates of standard system documents, and providing a reliable basis for subsequent standard change statistics, version difference analysis, and dynamic optimization of standard system documents.
[0046] As a preferred embodiment, after comparing the standard level, standard name, and version number of all first data objects with the standard level, standard name, and version number of all second data objects, the method further includes: Extract the first and second data objects that have the same standard level and standard name, and identify the version number in the overlapping first and second data objects; If the version numbers are the same, the overlapping second data objects in the power system remain unchanged; If the version numbers are different, the overlapping first data object will be updated in the power system, and the corresponding overlapping second data object will be deleted.
[0047] In this embodiment, multi-dimensional matching verification is performed on the first data object and the second data object. Using standard level and standard name as the core matching conditions, standard entries with completely overlapping levels and names are selected from the two types of objects. Version number information corresponding to each overlapping object is extracted and compared. For overlapping entries with the same version number, it is determined that the standard has not been changed, and the storage state of the original second data object in the power system remains unchanged. For overlapping entries with different version numbers, it is determined that the standard needs to be iteratively updated. The first data object is synchronously updated to the power system, and the corresponding overlapping old version of the second data object is synchronously deleted, completing the version iteration and data deduplication of the standard system document.
[0048] In this embodiment, the standard state determination rule further includes: maintaining the standard and updating the standard. The rule for maintaining the standard is the first data object S. i The standard ID exists simultaneously in both the second data object set O and the first data object set N, and its corresponding version number V i Same. The rule for updating the standard is the first standard system document S. i The ID exists in both the second data object set O and the first data object set N, but its corresponding version number V i They are different. For example, for updated standards, the number of updated standards and the national standards for those updated standards are calculated as follows: Updated Total =Σ{ S i ∈N} I(S i ∈O and V i (N)≠V j (O)) Updated Count(L) =Σ{S i ∈N} I(S i ∈O and V i (N)≠V j (O) and L i = L g ) Among them, Updated Total V represents the total number of updates. i (N) represents the version number in the first data object set N, V j (O) represents the version number in the second data object set O; Updated Count(L) This indicates the number of updated national standards.
[0049] Regarding the maintenance of standards, the number of standards maintained and the national standards for maintaining standards are calculated as follows: Unchanged Total =Σ{ S i ∈N} I(S i ∈O and V i (N) = V j (O)) Unchanged Count(L) =Σ{ S i ∈N} I(S i ∈O and V i (N) = V j (O) and L i = L g ) Among them, Unchanged Total Indicates maintaining the standard quantity, Unchanged Count(L) This indicates the number of national standards that are maintained.
[0050] For other standard levels L in the first data object i That is, national standard L g 、line mark L h Landmark L d Group Standard L t Enterprise Standard L q The above principles can also be used for calculation.
[0051] In this embodiment, by identifying version numbers, version differences of standards with the same level and name in old and new standard system documents can be accurately identified, realizing automated identification and full lifecycle management of standard versions. By automatically distinguishing between "maintain" and "updated" states through version number comparison, it ensures the stable retention of unchanged standards while efficiently replacing new standards and cleaning up redundant data from older versions. This avoids problems such as version conflicts and data duplication, significantly improving the accuracy and automation level of power standard system document version management, and providing reliable technical support for the dynamic maintenance and compliance control of standard system documents.
[0052] As another preferred embodiment, the standard level L in the first data object can also be counted. i The corresponding quantities, i.e., national standard Lg 、line mark L h Landmark L d Group Standard L t Enterprise Standard L q ; and the standard level L in the statistical second data object j The corresponding quantities. For example, taking the first data object set as an example, the quantity of standards at each level can be counted. For instance, the quantity of national standards in the standard system documents is calculated as follows: Count(L i , N) = |{ S i | S i ∈N and L i = L g}| Where Count(L i , N) represents the number of national standards in the first data object set.
[0053] Furthermore, the number of industry standards in the statistical standards system document is as follows: Count(L i , X) = |{ S i | S i ∈X and L i = L h}| Where Count(L i X) represents the number of row numbers in the first data object set.
[0054] Similarly, we can count the number of standard levels corresponding to each first data object in the first data object set, and we can also count the number of standard levels corresponding to each second data object in the second data object set.
[0055] As a preferred embodiment, updating the power system database based on the target addition standard ID and the target deletion standard ID specifically includes: Store the first data object corresponding to the target newly added standard ID into the power system, and delete the second data object corresponding to the target deleted standard ID in the power system.
[0056] In this embodiment, based on the identified target new standard ID, the corresponding first data object is located and data verification is completed. The new data objects that meet the requirements are written into the power system in batches, completing the inclusion of the new standard into the system. At the same time, based on the target deleted standard ID, the corresponding second data object in the power system is accurately retrieved, and a targeted deletion operation is performed to remove the obsolete old standard entries, realizing the synchronous closed-loop processing of incremental supplementation and stock cleanup of standard system documents.
[0057] In this embodiment, new standards are automatically added to the database and obsolete standards are accurately deleted based on standard IDs. This efficiently completes the iterative update of the old and new standard system documents, completely replacing manual addition and deletion operations and avoiding human errors such as missed additions and accidental deletions. It ensures that the power system standard library is promptly included with the latest standards and removes invalid and redundant data, maintaining the integrity, timeliness, and accuracy of the standard system documents, and providing a solid data foundation for the compliant operation of the power system and the dynamic management and control of standards.
[0058] Furthermore, based on the target addition and deletion standard IDs obtained above, the corresponding quantities are counted and visualized in chart form, generating a structured report and storing it in the corresponding database. It is understood that cloud server 03 can display the final processing results in structured data (JSON) and charts (PNG / PDF).
[0059] Implementing the above embodiments has the following effects: The technical solution of this invention retrieves first data objects from various standard databases, constructs a set of first data objects, and then extracts and performs structured parsing to obtain the standard ID of each first data object. It then retrieves a pre-stored set of second data objects from the power system database and extracts the standard IDs corresponding to each second data object. This allows for the identification of target new standard IDs and target deleted standard IDs, thereby enabling rapid and accurate updates of data objects in the power system. By replacing manual operations with automated algorithms, the efficiency and accuracy of statistics and comparisons are greatly improved. Furthermore, it is easily integrated into standard management information systems, avoiding overly complex identification algorithms and models, and enabling rapid automatic monitoring and analysis of new standard releases.
[0060] Example 2 Please see Figure 2 This invention provides a power system data update method, which is implemented based on a power system database, various standard databases, and a cloud server, and includes the following steps S101-S103: S101: Retrieve the first data object to construct the first data object set, and extract the first data object set to obtain the standard ID of each first data object; S102: Retrieve a set of second data objects including a number of preset second data objects, and extract the set of second data objects to obtain the standard ID of each second data object; S103: Obtain and determine the target addition standard ID and the target deletion standard ID based on the standard ID of the first data object and the standard ID of the second data object; update the power system database based on the target addition standard ID and the target deletion standard ID; The first data object and the second data object are both data information entries stored in the corresponding database.
[0061] As a preferred embodiment, the step of retrieving the first data object and constructing the first data object set specifically includes: Retrieve the first data object stored in each standard database; each standard database stores several first data objects. Integrate all the first data objects to construct a first data object set.
[0062] As a preferred embodiment, the step of extracting the first data object set to obtain the standard ID corresponding to each first data object specifically includes: Extract the first data object from the first data object set, and perform structured parsing on the extracted first data object to obtain the first standard text stream corresponding to each first data object; Based on the preset pre-trained model, the first standard text stream is adaptively adjusted to the domain, and the standard level, standard name and version number corresponding to each first data object are identified as the standard ID of the corresponding first data object.
[0063] As a preferred embodiment, the retrieval includes a preset set of second data objects, and the extraction of the set of second data objects to obtain the standard ID corresponding to each second data object, specifically including: Retrieve the second set of data objects stored in the power system database; The second data objects in the second data object set are extracted, and the extracted second data objects are parsed in a structured manner to obtain the second standard text stream corresponding to each second data object; Based on the preset pre-trained model, the second standard text stream is adaptively adjusted to the domain, and the standard level, standard name and version number corresponding to each second data object are identified as the standard ID of the corresponding second data object.
[0064] As a preferred embodiment, the step of obtaining and determining the target addition standard ID and the target deletion standard ID based on the standard ID of the first data object and the standard ID of the second data object specifically includes: Obtain the standard level, standard name, and version number of the first data object corresponding to each standard database, and the standard level, standard name, and version number of the second data object in the power system database; Compare the standard level, standard name, and version number of all first data objects with the standard level, standard name, and version number of all second data objects to obtain first and second data objects with non-overlapping standard IDs; Based on the first and second data objects with non-overlapping standard IDs, extract the standard IDs that exist only in the first data object as the target new standard IDs, and extract the standard IDs that exist in the second data object as the target delete IDs.
[0065] As a preferred embodiment, after comparing the standard level, standard name, and version number of all first data objects with the standard level, standard name, and version number of all second data objects, the method further includes: Extract the first and second data objects that have the same standard level and standard name, and identify the version number in the overlapping first and second data objects; If the version numbers are the same, the overlapping second data objects in the power system remain unchanged; If the version numbers are different, the overlapping first data object will be updated in the power system, and the corresponding overlapping second data object will be deleted.
[0066] As a preferred embodiment, updating the power system database based on the target newly added standard ID and the target deleted standard ID specifically includes: Store the first data object corresponding to the target newly added standard ID into the power system, and delete the second data object corresponding to the target deleted standard ID in the power system.
[0067] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working process of the method described above can be referred to the corresponding process in the aforementioned system embodiments, and will not be repeated here.
[0068] Implementing the above embodiments has the following effects: The technical solution of this invention retrieves first data objects from various standard databases, constructs a first data object set, extracts and performs structured parsing to obtain the standard ID of each first data object, and obtains a pre-stored second data object set from the power system database, extracting the standard ID of each corresponding second data object. This allows for the determination of target new standard IDs and target deleted standard IDs, thereby achieving rapid and accurate updates of data objects in the power system. By replacing manual operation with automated algorithms, the efficiency and accuracy of statistics and comparison are greatly improved. At the same time, it is easy to integrate into the standard management information system, avoiding overly complex identification algorithms and models, and enabling rapid automatic monitoring and analysis of new standard releases.
[0069] Example 3 Accordingly, the present invention also provides a terminal device, comprising: a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor executes the computer program to implement the power system data update method as described in any of the above embodiments.
[0070] The terminal device in this embodiment includes a processor, a memory, and a computer program and computer instructions stored in the memory and executable on the processor. When the processor executes the computer program, it implements the various steps described in Embodiment 1 above, for example... Figure 2 The steps S101 to S103 are shown. Alternatively, when the processor executes the computer program, it implements the functions of each module / unit in the above-described device embodiment.
[0071] For example, the computer program may be divided into one or more modules / units, which are stored in the memory and executed by the processor to complete the present invention. The one or more modules / units may be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of the computer program in the terminal device.
[0072] The terminal device may be a desktop computer, laptop, handheld computer, or cloud server, etc. The terminal device may include, but is not limited to, a processor and memory. Those skilled in the art will understand that the schematic diagram is merely an example of a terminal device and does not constitute a limitation on the terminal device. It may include more or fewer components than illustrated, or combine certain components, or different components. For example, the terminal device may also include input / output devices, network access devices, buses, etc.
[0073] The processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor. The processor is the control center of the terminal device, connecting all parts of the terminal device via various interfaces and lines.
[0074] The memory can be used to store the computer programs and / or modules. The processor implements various functions of the terminal device by running or executing the computer programs and / or modules stored in the memory and by calling data stored in the memory. The memory may mainly include a program storage area and a data storage area. The program storage area may store the operating system, applications required for at least one function, etc.; the data storage area may store data created based on the use of the mobile terminal, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as hard disk, RAM, plug-in hard disk, smart media card (SMC), secure digital card (SD card), flash card, at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0075] Wherein, if the modules / units integrated in the terminal device are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of the present invention can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by a processor, it can implement the steps of the various method embodiments described above. Wherein, the computer program includes computer program code, which can be in the form of source code, object code, executable file, or some intermediate form, etc. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, portable hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content contained in the computer-readable medium can be appropriately added or removed according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electrical carrier signals and telecommunication signals.
[0076] Example 4 Accordingly, the present invention also provides a computer-readable storage medium comprising a stored computer program, wherein, when the computer program is executed, it controls the device where the computer-readable storage medium is located to perform the power system data update method as described in any of the above embodiments.
[0077] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above descriptions are merely specific embodiments of the present invention and are not intended to limit the scope of protection of the present invention. In particular, it should be noted that any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention for those skilled in the art.
Claims
1. A power system data update system, characterized in that, include: Cloud servers and power system databases and various standard databases that communicate with cloud servers; Each of the standard databases is used to retrieve the first data object to construct the first data object set, and to extract the first data object set to obtain the standard ID corresponding to each first data object; The power system database is used to retrieve a set of second data objects, including a number of preset second data objects, and to extract the set of second data objects to obtain the standard ID of each second data object. The cloud server is used to obtain and determine the target addition standard ID and the target deletion standard ID based on the standard ID of the first data object and the standard ID of the second data object; The power system database is updated based on the target newly added standard ID and the target deleted standard ID; The first data object and the second data object are both data information entries stored in the corresponding database.
2. The power system data update system as described in claim 1, characterized in that, The step of retrieving the first data object and constructing the first data object set specifically includes: Retrieve the first data object stored in each standard database; each standard database stores several first data objects. Integrate all the first data objects to construct a first data object set.
3. The power system data update method as described in claim 1, characterized in that, The step of extracting the first data object set to obtain the standard ID corresponding to each first data object specifically includes: Extract the first data object from the first data object set, and perform structured parsing on the extracted first data object to obtain the first standard text stream corresponding to each first data object; Based on the preset pre-trained model, the first standard text stream is adaptively adjusted to identify the standard level, standard name and version number corresponding to each first data object, which are used as the standard ID of the corresponding first data object.
4. The power system data update method as described in claim 3, characterized in that, The retrieval includes a pre-defined set of second data objects, and the second data object set is parsed to obtain the standard ID corresponding to each second data object, specifically including: Retrieve the second set of data objects stored in the power system database; The second data objects in the second data object set are extracted, and the extracted second data objects are parsed in a structured manner to obtain the second standard text stream corresponding to each second data object; Based on the preset pre-trained model, the second standard text stream is adaptively adjusted to the domain, and the standard level, standard name and version number corresponding to each second data object are identified as the standard ID of the corresponding second data object.
5. A power system data update method as described in claim 4, characterized in that, The step of obtaining and determining the target addition standard ID and the target deletion standard ID based on the standard ID of the first data object and the standard ID of the second data object specifically includes: Obtain the standard level, standard name, and version number of the first data object corresponding to each standard database, and the standard level, standard name, and version number of the second data object in the power system database; Compare the standard level, standard name, and version number of all first data objects with the standard level, standard name, and version number of all second data objects to obtain first and second data objects with non-overlapping standard IDs; Based on the first and second data objects with non-overlapping standard IDs, extract the standard IDs that exist only in the first data object as the target new standard IDs, and extract the standard IDs that exist in the second data object as the target delete IDs.
6. A power system data update method as described in claim 5, characterized in that, After comparing the standard level, standard name, and version number of all first data objects with the standard level, standard name, and version number of all second data objects, the process further includes: Extract the first and second data objects that have the same standard level and standard name, and identify the version number in the overlapping first and second data objects; If the version numbers are the same, the overlapping second data objects in the power system remain unchanged; If the version numbers are different, the overlapping first data object will be updated in the power system, and the corresponding overlapping second data object will be deleted.
7. A power system data update method as described in any one of claims 1-6, characterized in that, The process of updating the power system database based on the target newly added standard ID and the target deleted standard ID specifically includes: Store the first data object corresponding to the target newly added standard ID into the power system, and delete the second data object corresponding to the target deleted standard ID in the power system.
8. A method for updating power system data, characterized in that, Implemented based on power system databases, various standard databases, and cloud servers, including: Retrieve the first data object to construct the first data object set, and extract the first data object set to obtain the standard ID of each first data object; Retrieve a set of second data objects, including a number of preset second data objects, and extract the second data object set to obtain the standard ID of each second data object; Obtain and determine the target addition standard ID and target deletion standard ID based on the standard ID of the first data object and the standard ID of the second data object; update the power system database based on the target addition standard ID and target deletion standard ID; The first data object and the second data object are both data information entries stored in the corresponding database.
9. A terminal device, characterized in that, It includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor executes the computer program to implement the power system data update method as described in claim 8.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored computer program, wherein, when the computer program is executed, it controls the device where the computer-readable storage medium is located to perform the power system data update method as described in claim 8.