Method and device for online data service of power grid information model

By establishing a GIM data analysis rule library and using the GIM data engine to parse model files, the fine-grained data service of the power grid information model files is realized, the problems of data resource access control and data update in the existing technology are solved, and the GIM data is improved Application scope and application scenarios.

CN118964457APending Publication Date: 2024-11-15POWERCHINA HEBEI ELECTRIC POWER SURVEY & DESIGN INST CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411001757.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

The prior art is difficult to realize fine-grained data resource access control of power grid information model files and data integration of distributed multi-data sources, and cannot support local data updates, which limits the application scope and application scenarios of GIM format data.

Method used

By establishing a GIM data analysis rule library, defining the parsing portal, parsing depth, parsing scope and data formatting requirements, using the GIM data engine to parse GIM model files, and performing two-way binding of data and files in memory to provide fine-grained data Service, supports read and write operations, and realizes local data modification and permission control.

Benefits of technology

It realizes fine-grained dynamic and controllable data services based on GIM model files, solves the data supply problems of different dimensions, depths and granularity in GIM model files, supports the application of distributed data services and privacy computing, and realizes user access Permission control over content scope and depth.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118964457A_ABST
    Figure CN118964457A_ABST
Patent Text Reader

Abstract

The invention discloses a power grid information model online data service method and device, and belongs to the technical field of geographic information system.The method comprises the steps that a GIM data analysis rule base is established, and a GIM file is defined to guide a GIM data engine to analyze the GIM file; a GIM data service resident on the GIM data server responds to the data service request, and an optional request protocol is an HTTP request; the GIM data engine processes a GIM file, parses a GIM model file according to the requirements of parsing depth, parsing range, data format and the like defined in a GIM parsing rule, bidirectionally binds data and files in a memory, and returns a parsing result to the GIM data service; and the GIM model file service supports storage and management of GIM model files and provides read-write operation of the GIM model files. According to the method, the problem of data supply of different dimensions, depths and granularities in the GIM model file is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of geographic information systems, and in particular relates to a method and a device for online data service of a power grid information model. Background Art

[0002] The Grid Information Model (GIM) is a digital grid component element carried by the State Grid with the help of the Geographic Information System (GIS). It strives to standardize the objects, processes, and results of the grid components and covers the technical standard system of all disciplines and processes. In practical applications, the GIM model file is often converted into the current GIS data, and the data service and visualization are provided by GIS services, which makes the update and maintenance of GIM data extremely difficult. The GIM model file is used as a service mode to provide file services in the form of GIM model file packages. This mode is to transmit the entire GIM model file, which cannot meet the fine-grained data resource access control within the GIM model file, nor can it achieve data integration of distributed multi-data sources. When updating the data, it does not support and cannot achieve local data, which limits the application scope and application scenarios of GIM format data.

[0003] Currently, there is no solution to directly use the GIM model format and files as data services. The entire model file is often used as a file service. At this time, data updates are often not supported, and fine-grained content updates and modifications cannot be performed when the entire model file is replaced and updated. The GIM model file is used as intermediate data and imported into other data for use. When providing external data services, data updates and modifications will not be returned to the GIM model file. Summary of the invention

[0004] In view of the deficiencies in the prior art, the present invention provides a method for online data service of a power grid information model, which realizes a fine-grained dynamically controllable data service method based on a GIM model file.

[0005] To achieve the above purpose, the technical solution adopted by the present invention is: A method for online data service of a power grid information model comprises the following steps: Step S1: Establish a GIM data parsing rule base, define a GIM model file to guide the GIM data engine to parse the GIM model file; Step S2: The GIM data service resident on the GIM data server responds to the data service request, and the optional request protocol is HTTP request; Step S3: The GIM data engine processes the GIM file, parses the GIM model file according to the parsing depth, parsing range and data format defined in the GIM parsing rules, and performs two-way binding between the data and the file in the memory, and returns the parsing result to the GIM data service; Step S4: GIM model file service supports the storage and management of GIM model files and provides read and write operations of GIM model files.

[0006] A further improvement of the technical solution of the present invention is that: in step S1, a GIM model file is defined, including a set of parsing entry, parsing depth, parsing range and data formatting requirements, each rule corresponds to a parsing solution, and there are parsing combinations of global sub-rules and local sub-rules.

[0007] A further improvement of the technical solution of the present invention is that the type of request in step S2 is reading, querying, adding, modifying or deleting the GIM data content; the data range to be read or queried is a list of engineering documents, a certain level in the engineering model, a physical model or a combined model starting from an in-depth data query request, or data of a specific system or profession in the GIM model file.

[0008] A further improvement of the technical solution of the present invention is that when the request is for reading or querying data, the corresponding data parsing rules are read according to the user of the data user and the target GIM model file information contained in the request, and the GIM data engine is started to parse the GIM model file to form the GIM sub-model data under the current request. The data includes the GIM organizational structure data and related model data required in this data request, thereby realizing the local generation of the required data according to the request requirements without the need to transfer the entire file.

[0009] A further improvement of the technical solution of the present invention is that when the request is to add, modify or delete the read or queried data, the GIM data engine is started to modify the GIM model file.

[0010] A further improvement of the technical solution of the present invention is that in step S3, when the GIM data service submits a modification to a data item in the parsing result, the GIM data engine modifies the data based on the unique identifier of the data item and the corresponding subfile in the GIM model file bidirectionally bound thereto.

[0011] A further improvement of the technical solution of the present invention is that: Step S4 can optionally be the file system of the server, a database such as MongoDB, or other file service systems.

[0012] A device for online data service of a power grid information model, comprising a GIM data service module, a GIM data engine module, a GIM data parsing rule base and a GIM model file service; The GIM data service module provides common service protocols and data service responses for data users. It processes the access and modification of GIM data through the GIM data engine, and implements fine-grained access control and modification operations on GIM model files. GIM data parsing rule base, used to guide the GIM data engine to parse GIM model files, including the deep parsing strategy of hierarchical structure relationships in GIM files, the formatting strategy of numerical data, the assembly strategy of primitive geometric model files, and the parsing and formatting strategy of attribute data; The GIM data engine module automatically parses the GIM model file according to the GIM parsing rules through its core module - the GIM syntax parser - to form the result data; GIM model file service, which supports the storage and management of GIM model files and provides read and write operations of GIM model files; A further improvement of the technical solution of the present invention is that a GIM service data cache is configured in the GIM model file service to provide temporary caching of intermediate data and result data in the system memory during the online data service process, thereby reducing the reading of data on the hard disk and reducing repeated parsing of GIM files, thereby improving the service speed.

[0013] Further improvements to the technical solution of the present invention are: the GIM data parsing library can be stored in the form of a database, XML file or JSON file; the result data in the GIM data engine module can be a sub-GIM model file extracted from the GIM model file, attribute data in JSON format, hierarchical relationship data in JSON format and its related primitive geometry model data package, and three-dimensional slice data; the primitive geometry model data package includes a compressed file of the geometry model file in the GIM model and the primitive geometry model file after assembly and splicing; the GIM data engine realizes two-way binding of data and files through the unique identification of the data item and the original file index of the data. When the GIM data service obtains a data update or modification request, it can update the corresponding content of the target file of the GIM model file to realize the local data update logic of the GIM service.

[0014] Due to the adoption of the above technical solution, the technical progress achieved by the present invention is: The present invention realizes a data parsing engine based on GIM data semantics, and provides data services based on dynamic parsing results, which solves the problem of data supply of different dimensions, depths and granularities in GIM model files, and is helpful for the promotion and application of GIM data in distributed data services and privacy computing in the power grid industry; provides a solution for two-way binding between data services and sub-files in GIM model files, and solves the problem of local data modification when GIM model files are used as services; further, when the parsing rules are bound to the requesting user, it can also realize the permission control of the scope and depth of user access to content; provides a semantic-based GIM data automatic parsing solution, which is helpful to improve the semantic system of GIM technology. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 It is a schematic diagram of a device for online data service of a power grid information model of the present invention; Figure 2 It is a schematic diagram of the regular structure of the present invention; Figure 3 It is a schematic diagram of parsing a GIM file using the method of the present invention. DETAILED DESCRIPTION

[0016] The present invention is further described in detail below in conjunction with embodiments: like Figure 1 The figure shows a schematic diagram of a device for online data service of a power grid information model, including a GIM data service module, a GIM data engine module, a GIM data parsing rule base, a GIM model file service, and optionally a GIM service data cache.

[0017] The GIM data service module provides data service responses based on common service protocols for data users, processes GIM data access, modification and other operations through the GIM data engine, and implements fine-grained access control and modification operations on GIM model files.

[0018] When a specific rule parses a specific file, the result data will be cached with the corresponding identifier. The next time a request is made, if real-time parsing is not specified or the GIM data has not changed, you can choose to respond with the cached data to improve the response speed of the data service.

[0019] When GIM data is modified, the GIM data service will update the cached service data. The operation of updating cached data can be selected after submitting the data, or when requesting row data, if data modification is found, re-parse and respond to the data request and then update the data cache.

[0020] The GIM data parsing rule base is used to guide the GIM data engine's parsing strategy for GIM model files, including the deep parsing strategy of the hierarchical structure relationship in the GIM file, the formatting strategy of numerical data, the assembly strategy of the primitive geometry model file, and the attribute data parsing and formatting strategy.

[0021] A parsing rule includes the recognition mode of the node, and the sub-rules determine the recognition and parsing of each syntax in the file. Sub-rules are divided into global sub-rules and local sub-rules. Global sub-rules can be inherited by the sub-rules of descendant nodes, thereby reducing redundant rule configuration.

[0022] The recognition scope of the parsing rules can be from the engineering document list, from a certain level in the engineering model, from the physical model or the combined model, or it may only parse the data of a specific system or profession in the GIM model file.

[0023] Different GIM model files can share the same parsing rules, and the same GIM model file can also have multiple different parsing rules, thus achieving on-demand data services.

[0024] The GIM data parsing library can be stored in the form of a database, XML file or JSON file.

[0025] The GIM data engine module automatically parses the GIM model file according to the GIM parsing rules through its core module - the GIM syntax parser, converts the file into result data, and binds the data query, addition, modification, and deletion operations into file operations in real time, thereby providing basic operations for the GIM data service.

[0026] The result data may be a sub-GIM model file extracted from the GIM model file, attribute data in JSON format, hierarchical relationship data in JSON format and its related primitive geometry model data package, and 3D slice data.

[0027] The primitive geometry model data package may be a compressed file of the geometry model file in the GIM model, or may be a primitive geometry model file after assembly and splicing.

[0028] The GIM data engine implements two-way binding of data and files through the unique identifier of the data item and the original file index of the data. Therefore, when the GIM data service receives a data update or modification request, it can update the corresponding content of the target file of the GIM model file, thereby implementing the local data update logic of the GIM service.

[0029] The GIM data engine does not necessarily need to start parsing through the project file list project.cbm in the GIM model file every time. It can support parsing using the rule base according to the specified hierarchical structure file.

[0030] GIM model file service supports the storage and management of GIM model files and provides read and write operations for GIM model files.

[0031] GIM service data cache provides temporary cache of intermediate data and result data during online data service, which helps to improve the speed of service.

[0032] A method for providing online data service of a power grid information model is as follows: Step 1: Establish a GIM data parsing rule base, which defines a set of requirements for GIM model files, such as parsing entry, parsing depth, parsing scope, and data formatting. Each rule corresponds to a parsing scheme, and there are parsing combinations of global sub-rules and local sub-rules, thereby guiding the GIM data engine to parse the GIM model files.

[0033] Step 2: The GIM data service resident on the GIM data server responds to the data service request, and the optional request protocol is HTTP request. The type of the request can be to read, query, add, modify or delete the GIM data content. The data range to be read or queried can be a list of engineering files, a certain level in the engineering model, a physical model or a combination model to start an in-depth data query request, or it can be data of a specific system or profession in the GIM model file. When the request is to read or query data, according to the user of the data user and the target GIM model file information contained in the request, the corresponding data parsing rules are read, and the GIM data engine is started to parse the GIM model file to form the GIM sub-model data under the current request. The data includes the GIM organizational structure data and related model data required in this data request, so as to achieve local generation of the required data according to the request requirements without the need to transfer the entire file. When the request is to add, modify or delete the read or queried data, the GIM data engine is started to modify the GIM model file.

[0034] Step 3: The GIM data engine processes the GIM file, parses the GIM model file according to the parsing depth, parsing range and data format defined in the GIM parsing rules, and performs two-way binding between the data and the file in memory, and returns the parsing result to the GIM data service. When the GIM data service submits a modification to the data item in the parsing result, the GIM data engine modifies the data based on the unique identifier of the data item and the corresponding sub-file in the GIM model file that is two-way bound to it.

[0035] Step 4: GIM model file service supports the storage and management of GIM model files and provides read and write operations of GIM model files. The options are the server's file system, databases such as Mongo DB, or other file service systems.

[0036] Optionally, configure GIM service data cache in the GIM model file service to provide temporary caching of intermediate data and result data in the system memory during the online data service process, reduce the reading of data on the hard disk and reduce repeated parsing of GIM files, and improve the service speed.

[0037] like Figure 2 The figure shows the structure of the parsing rules. A GIM model file can have various parsing rules, and the parsing rules can be used between GIM model files. By binding the parsing rules to the user / user group / role of the service request, authorized access with different permissions based on the user / user group / role is achieved, which solves the problem of being unable to determine the permission control of the data in the model when the GIM model file is used as a file service.

[0038] A parsing rule includes a set of global sub-rules and a set of local sub-rules. The sub-rules define the current node matching mode such as keyword matching, keyword regular matching, value matching strategy, attribute data parsing rules, formatting strategy of the node value, and primitive geometry model file assembly strategy. When the current node is a file index, the next level of sub-rules under the sub-rules can be defined to guide the parsing of the next level of files.

[0039] like Figure 3 Shown is an example of the application of parsing rules to a GIM model file for a transmission line project.

[0040] The parsing rules guide the GIM data engine to load the GIM model file into formatted data and a graphic source model file group according to the parsing entry, parsing depth, parsing range and data formatting defined by the parsing rules, and generate: 1. A subset of GIM model files that are also in the GIM format and only contain the GIM model file subset determined by the parsing rules; 2. A Json format data and graphic element model file package that only contain the GIM model file hierarchical structure determined by the parsing rules.

[0041] Under the default rules, the GIM model file is parsed into JSON format data and source model file packages, and users can also only access local content data such as partial segments / tension ends / equipment groups.

[0042] The present invention realizes a data parsing engine based on GIM data semantics, and provides data services based on dynamic parsing results, which solves the problem of data supply of different dimensions, depths and granularities in GIM model files, and is helpful for the promotion and application of GIM data in distributed data services and privacy computing in the power grid industry; provides a solution for two-way binding between data services and sub-files in GIM model files, and solves the problem of local data modification when GIM model files are used as services; further, when the parsing rules are bound to the requesting user, it can also realize the permission control of the scope and depth of user access to content; provides a semantic-based GIM data automatic parsing solution, which is helpful to improve the semantic system of GIM technology.

Claims

1. A method for online data service of power grid information model, characterized in that The following steps are involved: Step S1: Establish a GIM data parsing rule base, define a GIM model file to guide the GIM data engine to parse the GIM model file; Step S2: The GIM data service resident on the GIM data server responds to the data service request, and the optional request protocol is HTTP request; Step S3: The GIM data engine processes the GIM file, parses the GIM model file according to the parsing depth, parsing range and data format defined in the GIM parsing rules, and performs two-way binding between the data and the file in the memory, and returns the parsing result to the GIM data service; Step S4: GIM model file service supports the storage and management of GIM model files and provides read and write operations of GIM model files.

2. A method for online data service of a power grid information model according to claim 1, characterized in that: In step S1, a GIM model file is defined, including a set of parsing entry, parsing depth, parsing range and data formatting requirements. Each rule corresponds to a parsing scheme, and there are parsing combinations of global sub-rules and local sub-rules.

3. The method for online data service of a power grid information model according to claim 1, characterized in that: The type of request in step S2 is to read, query, add, modify or delete the GIM data content; the data scope to be read or queried is the engineering file list, a certain level in the engineering model, a physical model or a combined model to start in-depth data query requests, or data of a specific system or profession in the GIM model file.

4. A method for online data service of a power grid information model according to claim 3, characterized in that: When the request is for reading or querying data, the corresponding data parsing rules are read according to the user of the data user and the target GIM model file information contained in the request, and the GIM data engine is started to parse the GIM model file to form the GIM sub-model data under the current request. This data includes the GIM organizational structure data and related model data required in this data request, so as to achieve local generation of the required data according to the request requirements without the need to transfer the entire file.

5. The method for online data service of a power grid information model according to claim 3, characterized in that: When the request is to add, modify or delete the read or queried data, the GIM data engine is started to modify the GIM model file.

6. A method for online data service of a power grid information model according to claim 1, characterized in that: In step S3, when the GIM data service submits a modification to a data item in the parsing result, the GIM data engine modifies the data according to the unique identifier of the data item and the corresponding sub-file in the GIM model file bidirectionally bound thereto.

7. A method for online data service of a power grid information model according to claim 1, characterized in that: Step S4 may optionally be a file system of the server, a database such as Mongo DB, or other file service systems.

8. A device for online data service of power grid information model, characterized in that: Including GIM data service module, GIM data engine module, GIM data parsing rule base and GIM model file service; The GIM data service module provides data service responses based on common service protocols for data users, processes GIM data access and modification operations through the GIM data engine, and implements fine-grained access control and modification operations on GIM model files; GIM data parsing rule base, which is used to guide the GIM data engine to parse GIM model files, including the deep parsing strategy of hierarchical structure relationships in GIM files, the formatting strategy of numerical data, the assembly strategy of primitive geometric model files, and the parsing and formatting strategy of attribute data; The GIM data engine module automatically parses the GIM model file according to the GIM parsing rules through its core module - the GIM syntax parser - to form the result data; GIM model file service supports the storage and management of GIM model files and provides read and write operations for GIM model files.

9. The device for online data service of power grid information model according to claim 8, characterized in that: Configure GIM service data cache in the GIM model file service to provide temporary caching of intermediate data and result data in the system memory during the online data service process, reduce the reading of data on the hard disk and reduce repeated parsing of GIM files, and improve the service speed.

10. The device for online data service of power grid information model according to claim 8, characterized in that: The GIM data parsing library can be stored in the form of a database, XML file or JSON file; the result data in the GIM data engine module can be a sub-GIM model file extracted from the GIM model file, attribute data in JSON format, hierarchical relationship data in JSON format and its related primitive geometry model data package, and three-dimensional slice data; the primitive geometry model data package includes a compressed file of the geometry model file in the GIM model and the primitive geometry model file after assembly and splicing; the GIM data engine realizes two-way binding of data and files through the unique identification of data items and the original file index of the data. When the GIM data service obtains a data update or modification request, it can update the corresponding content of the target file of the GIM model file to realize the local data update logic of the GIM service.

Citation Information

Patent Citations

  • GIM file visualization processing method and system, readable storage medium and computer

    CN111161406A

  • Method for converting grid information model (GIM) into an FBX three-dimensional model and storing attributes

    CN113221297A

  • GIM file analysis method and device, equipment and storage medium

    CN114490519A

  • Rapid rendering and construction progress simulation method for power grid information model

    CN115080558A

  • File exporting method and device, electronic equipment and readable storage medium

    CN116775576A