Resource asset checking result data quality inspection method and device, terminal and medium
Through the matching method of the RETE algorithm and the quality inspection rule database, the complexity of data quality detection of natural resource asset inventory results is solved, efficient and accurate data quality detection is achieved, and work efficiency and data uniformity are improved.
Patent Information
- Application Number
- CN202510484662.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-17
- Publication Date
- 2025-08-01
AI Technical Summary
Due to the diverse sources and complex structure of the existing natural resource asset inventory data, it is impossible to obtain the attribute information of the national natural resource assets through simple superposition and comprehensive analysis, which makes it difficult to accurately detect data quality problems.
The method of matching the RETE algorithm with the quality inspection rule database is adopted, and standard data quality inspection processes are constructed through the integration of processing and rule engine technology to detect the quality problems of natural resource asset inventory results.
It realizes efficient and accurate data quality detection, reduces systematic and accidental errors, improves work efficiency, and ensures the unity and consistency of data.
Smart Images

Figure CN120407548A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of natural resource management, and particularly relates to a quality inspection method, device, terminal and medium for the achievement data of resource asset inventory. Background Art
[0002] The inventory of natural resource assets is a systematic investigation work aimed at finding out the quantity, distribution and usage of natural resources owned by the whole people, and finally establishing a set of natural resource "database" and "one map" with clear resources and efficient management. The inventory of natural resource assets is an important prerequisite for implementing the statistics of natural resource assets owned by the whole people, and is also the basis for uniformly exercising the responsibilities of the owners of natural resource assets owned by the whole people. This investigation work relies on existing various special investigation results, covering information such as resource ownership, quantity, quality, usage, distribution and resource type boundaries. Under the unified reference time point, the inventory also needs to supplement data such as the price, right of use and income of natural resource assets, evaluate the physical quantity of natural resource assets, calculate their economic value, and comprehensively sort out management information such as the status of the right of use, the performance of the responsibilities of the owners, the protection and utilization, and the protection of rights and interests.
[0003] In order to meet the filling requirements of the inventory of natural resource assets owned by the whole people for physical quantity, value quantity, status of the right of use, the main body of the performance of the responsibilities of the owners and other management information, it is necessary to make full use of existing data materials related to various resource assets. By extracting, integrating and reflecting the patch and attribute information related to the physical quantity and value quantity of natural resource assets owned by the whole people, a spatial data set that can systematically display the current distribution of natural resource assets is constructed, and it is ensured that it meets the quality standards of the inventory. This will provide necessary data support for the management work of natural resource assets owned by the whole people.
[0004] However, the results of various existing natural resource surveys (such as monitoring and right confirmation, etc.) are distributed in different fields. According to incomplete statistics, except for the result data of the third national land survey (annual land change survey), the integration of spatial information data required for asset inventory involves 25 special topic data in 7 categories. By sorting out and analyzing these data sources of attribute information, it can be found that various special topic data adopt mathematical bases, result accuracies, content indicators, etc. that adapt to their respective management requirements, showing characteristics such as diverse basic data sources, complex data structures, different mathematical bases, inconsistent result accuracies, differences in index concepts, and uneven result qualities. These complexities make it impossible to comprehensively obtain the attribute information of national natural resources assets such as land, minerals, forests, grasslands, wetlands, and oceans through simple superposition, thus unable to meet the actual needs of unified asset management. Therefore, integration and processing are urgently needed. The integration and processing of spatial information involve the summary of various spatial data, facing complex characteristics such as numerous resource categories, extensive data sources, and diverse data structures. Its basic attributes include spatial location characteristics, special topic attribute characteristics, and time characteristics. During the acquisition, processing, and integration of multi-source data, data quality problems may occur. How to accurately and efficiently detect these data quality problems has become the primary requirement of current natural resource management work. Summary of the Invention
[0005] Aiming at the deficiencies of the existing technology, the present invention proposes a quality inspection method for the result data of resource asset inventory, aiming to accurately and efficiently detect the quality problems of the result data of natural resource asset inventory.
[0006] In the first aspect, an embodiment of the present application provides a quality inspection method for the result data of resource asset inventory, including:
[0007] Obtain the result data of natural resource asset inventory;
[0008] Perform integration and processing on the result data of the natural resource asset inventory to obtain integrated result data;
[0009] Use the RETE algorithm to match the integrated result data with the rules in the quality inspection rule database, and obtain the data quality inspection result, where the quality inspection rule database is constructed according to the result data quality inspection rules.
[0010] Optionally, using the RETE algorithm to match the integrated result data with the rules in the quality inspection rule database to obtain the data quality inspection result includes:
[0011] Construct a quality inspection rule database according to the result data quality inspection rules;
[0012] Check and match the integrated result data with each quality inspection item in the quality inspection rule database item by item level by level to obtain the data quality inspection result.
[0013] Optionally, a quality inspection rule database is constructed according to the achievement data quality inspection rules, including:
[0014] Obtain the achievement data quality inspection rules, where the achievement data quality inspection rules include: a template rule set, a quality inspection rule judgment logic, and a quality inspection rule execution logic; the template rule set includes a layer integrity quality inspection item, a layer correctness quality inspection item, a layer logical consistency quality inspection item, a spatial topology correctness quality inspection item, a data attribute integrity quality inspection item, and an attribute accuracy quality inspection item;
[0015] Perform hierarchical classification design on the quality inspection items in the template rule set according to the quality inspection rule execution logic and the quality inspection rule judgment logic to obtain a quality inspection rule database.
[0016] Optionally, check and match the integrated achievement data with each quality inspection item in the quality inspection rule database item by item at each level to obtain a data quality inspection result, including:
[0017] According to the RETE algorithm, call the quality inspection items in the template rule set item by item at each level according to the quality inspection rule execution logic and check and match them with the integrated achievement data according to the quality inspection rule judgment logic;
[0018] If all the quality inspection rule execution logics are executed and all the quality inspection rule judgment logics are qualified, a qualified data quality inspection result is obtained;
[0019] If not all the quality inspection rule execution logics are executed or one of the quality inspection rule judgment logics is unqualified, an unqualified data quality inspection result is obtained.
[0020] Optionally, perform integration processing on the natural resource asset inventory results to obtain integrated achievement data, including:
[0021] Perform preprocessing on the natural resource asset inventory results to obtain preprocessed achievement data;
[0022] Perform integration processing on the preprocessed achievement data to obtain integrated achievement data.
[0023] Optionally, perform integration processing on the preprocessed achievement data to obtain integrated achievement data, including:
[0024] Extract the physical quantity inventory scope information and the performing entity inventory scope information from the preprocessed achievement data, and perform spatial matching on the physical quantity inventory scope information and the performing entity inventory scope information to obtain spatially matched inventory scope information;
[0025] Check and analyze the attribute table of the preprocessed achievement data item by item according to the resource categories, and sort out the attribute table of the preprocessed achievement data to obtain attribute sorted achievement data;
[0026] The spatial data in the spatial matching inventory range information and attribute sorting result data are cropped, masked, and attribute-linked to eliminate redundant patches to obtain matching result data;
[0027] Perform topological inspection and error correction on the matching result data to obtain inspection and correction result data;
[0028] The inspection and correction result data are attached with value attributes to obtain integrated result data.
[0029] Optionally, the natural resource asset inventory results are pre-processed to obtain pre-processed results data, including:
[0030] Converting the data format of the natural resource asset inventory results into a universal geographic information data storage format to obtain results data in a unified format;
[0031] Performing mathematical basis conversion on the format unified result data to obtain mathematical basis unified result data;
[0032] The key information missing in the unified mathematical foundation result data is supplemented according to the patent data set to obtain preprocessing result data.
[0033] In a second aspect, an embodiment of the present application provides a resource asset inventory results data quality inspection device, comprising:
[0034] Results acquisition module, used to obtain the results of natural resource asset inventory;
[0035] A data integration module is used to integrate the natural resource asset inventory results to obtain integrated results data;
[0036] The result determination module uses the RETE algorithm to match the integrated results data with the rules in the quality inspection rule database to obtain the data quality inspection results. The quality inspection rule database is constructed based on the results data quality inspection rules.
[0037] In a third aspect, an embodiment of the present application provides a terminal device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the method for quality inspection of resource asset inventory results data as described in any one of the first aspects above is implemented.
[0038] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the resource asset inventory results data quality inspection method as described in any one of the first aspects above.
[0039] Fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product runs on a terminal device, the terminal device is caused to execute the quality inspection method for the resource asset inventory result data described in any one of the above first aspects.
[0040] In the embodiments of the present application, the natural resource asset inventory results are obtained; the natural resource asset inventory results are integrated and processed to obtain integrated result data; the RETE algorithm is used to match the integrated result data with the rules in the quality inspection rule database, and a data quality inspection result is obtained. The quality inspection rule database is constructed according to the result data quality inspection rules. It can accurately and efficiently detect the quality problems of the natural resource asset inventory results. By forming a standard data integration processing chain, the present application can simultaneously process data topology errors, and the quality inspection templates established based on the rule engine are standardized and unified, without systematic and accidental errors, and can achieve automatic quality inspection of the natural resource asset inventory result data with high precision. Through the standard data integration processing chain, the present application can accelerate data processing to generate standard data to be quality inspected; the established quality inspection rules can achieve quality inspection of all natural resource asset inventory result data, reducing work steps and improving work efficiency compared with traditional manual and software quality inspections. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required for use in the description of the specific embodiments or the prior art. In all the drawings, similar elements or parts are generally identified by similar reference numerals. In the drawings, the elements or parts are not necessarily drawn to scale.
[0042] Figure 1 is a schematic flowchart of a quality inspection method for resource asset inventory result data provided by an embodiment of the present application;
[0043] Figure 2 is a schematic flowchart of a second embodiment of the quality inspection method for resource asset inventory result data provided by the present application;
[0044] Figure 3 is a schematic flowchart of a third embodiment of the quality inspection method for resource asset inventory result data provided by the present application;
[0045] Figure 4 is a template rule matching flowchart of the quality inspection method for resource asset inventory result data provided by the present application;
[0046] Figure 5 is a quality inspection rule engine framework diagram of the quality inspection method for resource asset inventory result data provided by the present application;
[0047] Figure 6It is a schematic structural diagram of the quality inspection device for the resource asset inventory result data provided by the embodiments of the present application;
[0048] Figure 7 It is a schematic structural diagram of the terminal device provided by the embodiments of the present application. Specific embodiments
[0049] In the following description, for the purpose of illustration rather than limitation, specific details such as specific system structures and technologies are proposed to thoroughly understand the embodiments of the present application. However, those skilled in the art should clearly understand that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid unnecessary details from interfering with the description of the present application.
[0050] It should be understood that when used in the specification of the present application and the appended claims, the term "comprising" indicates the presence of the described features, wholes, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components, and / or their combinations.
[0051] It should also be understood that the term "and / or" used in the specification of the present application and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0052] The execution subject of the resource asset inventory result data quality inspection method provided by the embodiments of the present application can be a resource asset inventory result data quality inspection device. The resource asset inventory result data quality inspection device obtains the natural resource asset inventory results; performs integration processing on the natural resource asset inventory results to obtain integrated result data; uses the RETE algorithm to match the integrated result data with the rules in the quality inspection rule database to obtain a data quality inspection result, and the quality inspection rule database is constructed according to the result data quality inspection rules.
[0053] Figure 1 The schematic flowchart of the resource asset inventory result data quality inspection provided by the embodiments of the present application is shown. As an example rather than a limitation, this method can be applied to the above-mentioned resource asset inventory result data quality inspection device, or it can also be a method for users or operators to perform operations and judgments on the resource asset inventory result data quality inspection device. As Figure 1 shown, this method may include:
[0054] S10, obtaining the natural resource asset inventory results;
[0055] The resource asset inventory result data quality inspection device obtains the natural resource asset inventory results.
[0056] Among them, the inventory result data of natural resource assets are spatial data, non-spatial data, document data, map data, etc. of all types of natural resource assets owned by the whole people within the area to be quality-checked. Among them, the data of each type of natural resource asset include agricultural land resource assets, construction land use right resource assets (state-owned construction land with undetermined users), unused land resource assets, mineral resource assets, forest resource assets, grassland resource assets, wetland resource assets, water resource assets, marine resource assets, etc. The number of types of natural resource assets to be collected is determined according to the types included in the area to be inspected. The area to be inspected can be administrative region divisions such as provinces, cities, districts, towns, etc., or it can be a region designated by demand.
[0057] S20. Integrate and process the inventory result of the natural resource assets to obtain integrated result data;
[0058] After obtaining the inventory result of the natural resource assets, the quality inspection device for the inventory result data of natural resource assets integrates and processes the inventory result of the natural resource assets to obtain integrated result data.
[0059] Further, referring to Figure 2 , Figure 2 is a schematic flowchart of the second embodiment of the quality inspection method for the inventory result data of natural resource assets of the present invention. Based on the above Figure 2 shown embodiment, integrate and process the inventory result of the natural resource assets to obtain integrated result data, specifically including:
[0060] S21. Preprocess the inventory result of the natural resource assets to obtain preprocessed result data;
[0061] After obtaining the inventory result of the natural resource assets, the quality inspection device for the inventory result data of natural resource assets preprocesses the inventory result of the natural resource assets to obtain preprocessed result data;
[0062] To ensure that the final inventory result data is uniformly mapped and stored in the database for subsequent use, the above-mentioned collected inventory result data of natural resource assets is preprocessed, including unifying the data formats and mathematical bases of each data source, and completing the supplementary recording of missing key information with reference to other basic data.
[0063] As an implementation manner, preprocessing the inventory result of the natural resource assets to obtain preprocessed result data may include: converting the data format of the inventory result of the natural resource assets into a general geographic information data storage format to obtain format-unified result data; performing a mathematical basis conversion on the format-unified result data to obtain mathematically basis-unified result data; and supplementing the missing key information in the mathematically basis-unified result data according to the patent dataset to obtain preprocessed result data.
[0064] When preprocessing the results of natural resource asset inventory, first, unify the data format and convert the data format of the collected natural resource asset inventory results into a common and general geographic information data storage format. Subsequently, unify the mathematical basis, convert the mathematical basis of the collected natural resource asset inventory results, and uniformly adopt the "2000 National Geodetic Coordinate System" (CGCS2000) and the "1985 National Elevation Datum"; when using a plane rectangular coordinate, use the "Gauss-Kruger" (GaussKruger) projection and divide it into zones by 3° (CGCS2000_3_Degree_GK_Zone_XX). Further, perform data supplementation, supplement the missing key information according to relevant technical requirements based on various thematic data sets and other information, and finally generate the preprocessed data, denoted as Q0-level data, which is also the preprocessing result data.
[0065] S22. Integrate and process the preprocessing result data to obtain the integrated result data.
[0066] After obtaining the preprocessing result data, the quality inspection device for natural resource asset inventory results integrates and processes the preprocessing result data to obtain the integrated result data.
[0067] Through processes such as information extraction and sorting, data overlay and processing, and post-processing after data overlay on the preprocessed natural resource asset inventory results data of each category, form a data set to be inspected for the natural resource asset inventory results of all categories.
[0068] As an implementation method, integrating and processing the preprocessing result data to obtain the integrated result data may include: extracting the physical quantity inventory scope information and the performing entity inventory scope information from the preprocessing result data, and performing spatial matching on the physical quantity inventory scope information and the performing entity inventory scope information to obtain spatially matched inventory scope information; checking and analyzing the attribute table of the preprocessing result data item by item according to the resource categories, and sorting out the attribute table of the preprocessing result data to obtain the attribute sorting result data; performing clipping, masking, and attribute attachment on the spatial data in the spatially matched inventory scope information and the attribute sorting result data, and removing redundant patches to obtain the overlaid result data; performing topological inspection and error correction on the overlaid result data to obtain the inspected and corrected result data; attaching value attributes to the inspected and corrected result data to obtain the integrated result data.
[0069] When integrating and processing the results of the natural resource asset inventory, first extract the inventory scope information for the physical quantity inventory, usage rights status, and owner responsibilities and performance subject information, complete the spatial matching of the two inventory scopes, and unify the inventory scope spatial information; then check and analyze the attribute tables item by item according to each resource category, organize the attribute information, delete attribute fields that are not related to the asset inventory content, and check the data attribute field values, marking attribute information with missing or non-standard attribute values. Through the above steps, the information extraction and organization of the natural resource asset inventory results data are completed, and the generated processed data is recorded as Q1-level data, that is, the spatial matching inventory scope information and attribute organization results data.
[0070] Subsequently, the data is fitted and processed. The spatial data layer in the sorted Q1-level data is integrated and processed through means such as cropping, masking and attribute attachment, and redundant patches that are not within the scope of the natural resource asset inventory of each category are eliminated. In accordance with the requirements of the technical guidelines for the minimum area of the upper map patch of the natural resource asset inventory, the data missing patches in the results of the spatial data integration of each category that are smaller than the minimum survey upper map area are directly incorporated into the adjacent patches; for patches that exceed the minimum survey upper map area, their attribute characteristics are determined in combination with relevant data such as remote sensing images or field surveys. At the same time, the missing parts within the inventory scope are searched, and the necessary corrections are made to the broken patches, patches with missing information and patches with attribute value problems, and the final integrated processing results are recorded as Q2-level data, which is also the fitted result data.
[0071] After completing the data matching process, the Q2-level data is topologically checked and errors are corrected. Based on this, the calculation of the map area and the inventory of the physical quantity, usage rights, and owner responsibility information are completed, and the relevant value attributes are attached. After the standardization of the dataset layers, attributes, and attribute values, the final result data for quality inspection is formed, which is recorded as Q3-level data, that is, the integrated result data. When performing topological checks and error corrections, the topology check is first performed, and after the error problems are found, the errors are corrected. The purpose of performing topological error checks and corrections is to ensure that the common edges of the geometric elements that share edges are completely consistent. Simply put, adjacent spaces cannot overlap.
[0072] This application constructs a spatial information integration and processing system for all categories of natural resource asset inventory data through a series of processes, including data collection, data preprocessing, information extraction and organization, data alignment, and post-alignment processing. This system ensures that all categories of natural resource asset inventory results form a standardized dataset for inspection. This method can standardize the spatial integration and processing process for natural resource asset inventory data, realize the construction of a standardized dataset for inspection for all categories of asset inventory results, and reduce quality issues caused by data integration and processing.
[0073] S30. Use the RETE algorithm to match the integrated result data with the rules in the quality inspection rule database to obtain the data quality inspection result. The quality inspection rule database is constructed according to the result data quality inspection rules.
[0074] After obtaining the integrated result data, the quality inspection device for the results of natural resource asset inventory uses the RETE algorithm to match the integrated result data with the rules in the quality inspection rule database to obtain the data quality inspection result. The quality inspection rule database is constructed according to the result data quality inspection rules.
[0075] Among them, the Rete algorithm is a forward rule fast matching algorithm.
[0076] Further, referring to Figure 3 , Figure 3 is the flowchart of the third embodiment of the method for quality inspection of the results of natural resource asset inventory of the present invention. Based on the above Figure 3 shown embodiment, using the RETE algorithm to match the integrated result data with the rules in the quality inspection rule database to obtain the data quality inspection result. The quality inspection rule database is constructed according to the result data quality inspection rules, specifically including:
[0077] S31. Construct a quality inspection rule database according to the result data quality inspection rules;
[0078] After obtaining the integrated result data, the quality inspection device for the results of natural resource asset inventory constructs a quality inspection rule database according to the result data quality inspection rules;
[0079] As an implementation method, constructing a quality inspection rule database according to the result data quality inspection rules may include: obtaining the result data quality inspection rules. Among them, the result data quality inspection rules include: template rule set, quality inspection rule judgment logic, and quality inspection rule execution logic; the template rule set includes layer integrity inspection items, layer correctness inspection items, layer logical consistency inspection items, spatial topology correctness inspection items, data attribute integrity inspection items, and attribute accuracy inspection items; perform hierarchical classification design on the inspection items in the template rule set according to the quality inspection rule execution logic and quality inspection rule judgment logic to obtain the quality inspection rule database.
[0080] For the quality inspection of the results of natural resource asset inventory, the sources of data quality errors are diverse and complex. Therefore, when writing quality inspection rules, the flexibility of later modification needs to be considered. Therefore, this patent uses the rule engine technology to construct a standard template rule set. This method separates rule writing from software code, not only improving the efficiency of data quality inspection, but also providing the possibility for subsequent changes in data quality inspection requirements.
[0081] The operating mechanism of the rule engine mainly involves comparing the input data with the business rules encapsulated within the engine. When the two match, the corresponding business rules are activated and executed according to their logic. In short, rule engine technology can effectively separate business rules from technical decisions, enabling centralized management of rules, thereby ensuring that these rules can be dynamically adjusted and modified during operation, making the software system more flexible.
[0082] The rule engine mainly consists of three parts: the fact database, the template rule base, and the inference matcher. The fact database stores various facts, namely the inventory results database of natural resources assets to be quality inspected. The template rule base stores a set of quality inspection rules for the result data, that is, the integrated result data is stored in the fact database. The inference matcher (pattern matcher) is responsible for matching the fact data according to the template rule base. If the match is successful, the rules that meet the preconditions will be activated and processed one by one according to the priority of the rules. The template rule matching process is as Figure 4 shown:
[0083] The quality inspection rules for the result data include: the template rule set, the quality inspection rule judgment logic, and the quality inspection rule execution logic. The quality inspection rules for the result data, as the basis of the rule engine, clarify the logic that the rule engine needs to follow when processing business rules, including the quality inspection rule judgment logic and the quality inspection rule execution logic, which runs through the entire process of propositional logic derivation. The rule set is divided into the compilation and processing of conditions and results. When constructing, it is necessary to ensure that the name of each rule is unique to ensure that each rule in the same rule set has a different name. Among them, the quality inspection rule judgment logic is whether the integrated result data in the fact database conforms to the inspection contents in Tables 1 to 6. If it conforms, it is judged as qualified; if it does not conform, it is judged as unqualified. The quality inspection rule execution logic is to execute the execution order of the inspection contents in the template rule set, that is, to determine the order of Tables 1 to 6, and to determine the execution order according to the order and level of Tables 1 to 6. For example, first execute the inspection content of the "first level" mathematical basis accuracy in Table 1, and then execute the inspection content of the "and" mathematical structure accuracy in Table 2.
[0084] Adopt the method of hierarchical classification and division to design the quality inspection items of the inventory results data of natural resources assets, and complete the construction of the template rule set to ensure the evaluation of the result data in terms of "consistency", "correctness", "integrity", and "accuracy", etc. The template rule set is as follows:
[0085] Table 1: The layer integrity inspection mainly focuses on the correctness of the plane coordinate system, elevation coordinate system, projection method, etc.
[0086]
[0087] Table 2: Layer correctness check mainly focuses on the accuracy of data structure and data attributes.
[0088]
[0089] Table 3: Layer logical consistency check focuses on the consistency of attributes within the layer.
[0090]
[0091] Table 4: Spatial topology correctness check refers to the topology check rules in ArcGIS, which mainly involves whether the topological relationships between point, line and surface elements and their mutual relationships are correct.
[0092]
[0093] Table 5: Data attribute integrity check mainly involves the integrity check of the attribute table and its attribute items. The focus of this check is on the integrity of the attribute table and the integrity of the attribute items of the natural resource asset inventory results data.
[0094]
[0095] Table 6: Attribute accuracy checks mainly include data structure checks, code checks, value range checks, number uniqueness checks, and field non-empty checks, etc., to verify whether each table field complies with the requirements for the submission of the results of the inventory of all natural resources assets owned by the whole people.
[0096]
[0097]
[0098] S32, checking and matching the integration result data with each quality inspection item in the quality inspection rule database level by level and item by item to obtain data quality inspection results.
[0099] After obtaining the quality inspection rule database, the resource asset inventory result data quality inspection device checks and matches the integrated result data with each quality inspection item in the quality inspection rule database level by level and item by item to obtain the data quality inspection result.
[0100] As an implementation method, the integration results data is checked and matched with each quality inspection item in the quality inspection rule database step by step, and obtaining the data quality inspection result may include: according to the RETE algorithm, according to the quality inspection rule execution logic, calling the quality inspection items in the template rule set step by step and item by item to check and match with the integration results data according to the quality inspection rule judgment logic; if the quality inspection rule execution logic is fully executed and the quality inspection rule judgment logic is all qualified, a qualified data quality inspection result is obtained; if the quality inspection rule execution logic is not fully executed or one item in the quality inspection rule judgment logic is unqualified, an unqualified data quality inspection result is obtained.
[0101] Because the inventory result data of natural resource assets involve many and complex resource categories, and the data volume is huge when integrating and quality inspecting the inventory result data, the rules for quality inspecting the inventory result data are correspondingly numerous. To ensure the matching speed and improve the reasoning efficiency, this patent adopts the RETE algorithm as the pattern matching algorithm for the quality inspection rule engine of natural resource asset inventory result data. In a complete RETE algorithm, five elements are involved: facts, rules, action, production, and WME (working memory elements). These five elements represent the input items of the algorithm network, the template rule set, one or more rules plus actions, the processing logic corresponding to the rule match, and the elements generated when facts are placed into the rule engine respectively. The RETE algorithm is an efficient pattern matching algorithm for production systems. In a production system, the data to be processed is called working memory (i.e., facts, the input factual data), and the template rules for judgment are divided into two parts: LHS (premise) and RHS (conclusion).
[0102] The main process of RETE matching can be composed of the following 4 steps:
[0103] 1. match: Find the set of working memory that meets the LHS part;
[0104] 2. conflict: Select a rule whose conditions are met;
[0105] 3. action: Execute the content of RHS;
[0106] 4. Return 1 until all rules are processed.
[0107] Among them, when the integrated result data is checked and matched item by item with each quality inspection item in the quality inspection rule database to obtain the data quality inspection result, the data quality inspection template rule set formulated according to the natural resource asset inventory result data and the Q3-level data (integrated result data) generated by integration processing are loaded together during the initialization of the rule engine. Subsequently, the rule engine completes the matching of the rules through the interpreter and executor, selects the matching configuration mode for different data quality inspection items, so as to obtain the inspection result of the data quality inspection. At the same time, a rule engine update module is added. When the data quality inspection template rule set of natural resource asset inventory results needs to be updated later, the rule engine update module can receive the rules entering from the outside, convert them into the language stored inside the rule engine, and uniformly store them in the template rule library. Natural resource asset inventory result data quality inspection rule engine framework Figure 5 as shown:
[0108] In summary, obtain the results of the natural resource asset inventory; perform integration processing on the results of the natural resource asset inventory to obtain integrated result data; use the RETE algorithm to match the integrated result data with the rules in the quality inspection rule database, and obtain the data quality inspection results. The quality inspection rule database is constructed according to the result data quality inspection rules. The quality problems of the natural resource asset inventory results can be detected accurately and efficiently.
[0109] This application uses the technology of the rule engine to construct a standard template rule set for data quality inspection, expresses the requirements of quality inspection in the form of rules, realizes the separation of the quality inspection business logic from the working system, enables the technology to update the quality inspection rule set in real time according to tasks in the future, improves the expandability of the technology in data quality inspection, reduces the operation time of the quality inspection process, and improves the ease of operation of quality inspection at the same time.
[0110] This application automatically matches the dataset to be inspected with the constructed standard template rule set through the pattern matching method based on the rule engine to detect problematic data, and can realize the automatic quality inspection of the natural resource asset inventory result data with high quality.
[0111] This application forms a standard data integration processing chain, processes data topology errors at the same time, and the quality inspection templates established based on the rule engine are standardized and unified, without systematic and accidental errors. It can realize the automatic quality inspection of the natural resource asset inventory result data with high precision.
[0112] This application can accelerate data processing to generate standard data to be quality inspected through the standard data integration processing chain; the established quality inspection rules can realize the quality inspection of all natural resource asset inventory result data, reduce the work steps and improve the work efficiency compared with the traditional manual and software quality inspections.
[0113] Consistent with the above, please refer to Figure 6 , which is a schematic structural diagram of a device for quality inspection of natural resource asset inventory result data provided by an embodiment of this application. As Figure 6 Figure 6 shown, the device includes:
[0114] An achievement acquisition module 601, configured to obtain the results of the natural resource asset inventory;
[0115] A data integration module 602, configured to perform integration processing on the results of the natural resource asset inventory to obtain integrated result data;
[0116] A result determination module 603 uses the RETE algorithm to match the integrated result data with the rules in the quality inspection rule database to obtain the data quality inspection result. The quality inspection rule database is constructed according to the result data quality inspection rules. An embodiment of this application also provides a terminal device, which includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor. When the processor executes the computer program, it implements the steps in the method embodiment of the quality inspection method for resource asset inventory result data.
[0117] An embodiment of this application also provides a computer storage medium. The computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute some or all of the steps of any one of the quality inspection methods for resource asset inventory result data described in the above method embodiments.
[0118] An embodiment of this application also provides a computer program product. The computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program enables a computer to execute some or all of the steps of any one of the quality inspection methods for resource asset inventory result data described in the above method embodiments.
[0119] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, to implement all or part of the processes in the above method embodiments of this application, a computer program can be used to instruct relevant hardware to complete. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, it can implement the steps of the above method embodiments. Among them, the computer program includes computer program code, and the computer program code can be in the form of source code, object code, executable file, or some intermediate form, etc. The computer-readable storage medium can at least include: any entity or device that can carry the computer program code to the device / terminal device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk, or an optical disc, etc. In some jurisdictions, according to legislation and patent practice, the computer-readable storage medium cannot be an electrical carrier signal and a telecommunication signal.
[0120] In the above embodiments, the descriptions of the various embodiments have their own emphases. For parts not detailed or recorded in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0121] Those of ordinary skill in the art will realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered to exceed the scope of this application.
[0122] In the embodiments provided in this application, it should be understood that the disclosed devices / terminal devices and methods can be implemented in other ways. For example, the device / terminal device embodiments described above are merely illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection to each other can be through some interfaces. The indirect coupling or communication connection of the devices or units can be in electrical, mechanical or other forms.
[0123] The units described as separate components may or may not be physically separated. The components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
Claims
1. A quality inspection method for the achievement data of resource asset inventory, characterized in that include: Obtaining the results of natural resource asset inventories; Integrate and process the natural resource asset inventory results to obtain integrated results data; The RETE algorithm is used to match the integrated results data with the rules in the quality inspection rule database to obtain data quality inspection results. The quality inspection rule database is constructed based on the results data quality inspection rules.
2. The quality inspection method for the resource asset inventory result data according to claim 1, wherein The RETE algorithm is used to match the integrated results data with the rules in the quality inspection rule database to obtain data quality inspection results, including: A quality inspection rule database is constructed based on the quality inspection rules of the results data; The integration result data is checked and matched with each quality inspection item in the quality inspection rule database level by level and item by item to obtain the data quality inspection result.
3. The quality inspection method for the resource asset inventory result data according to claim 2, characterized in that, The quality inspection rule database is constructed based on the quality inspection rules of the results data, including: Acquire quality inspection rules for the output data, wherein the quality inspection rules for the output data include: a template rule set, quality inspection rule judgment logic, and quality inspection rule execution logic; the template rule set includes layer integrity quality inspection items, layer correctness quality inspection items, layer logic consistency quality inspection items, spatial topology correctness quality inspection items, data attribute integrity quality inspection items, and attribute accuracy quality inspection items; According to the quality inspection rule execution logic and the quality inspection rule judgment logic, the quality inspection items in the template rule set are graded and classified to obtain a quality inspection rule database.
4. The quality inspection method for the resource asset inventory result data according to claim 3, wherein The integrated results data is checked and matched against each quality inspection item in the quality inspection rule database level by level to obtain the data quality inspection results, including: According to the RETE algorithm and the quality inspection rule execution logic, the quality inspection items in the template rule set are called step by step and item by item, and the integration result data is checked and matched according to the quality inspection rule judgment logic; If all the quality inspection rule execution logics are executed and all the quality inspection rule judgment logics are qualified, a qualified data quality inspection result is obtained; If the quality inspection rule execution logic is not fully executed or one of the items in the quality inspection rule judgment logic is unqualified, an unqualified data quality inspection result will be obtained.
5. The quality inspection method for the resource asset inventory result data according to any one of claims 1 to 4, characterized in that The natural resource asset inventory results are integrated to obtain integrated results data, including: Preprocessing the natural resource asset inventory results to obtain preprocessing result data; The pre-processing result data is integrated to obtain integrated result data.
6. The quality inspection method for the resource asset inventory result data according to claim 5, characterized in that, The pre-processing result data is integrated to obtain integrated result data, including: Extracting physical quantity inventory scope information and duty-performing entity inventory scope information from the preprocessing result data, and spatially matching the physical quantity inventory scope information and the duty-performing entity inventory scope information to obtain spatially matched inventory scope information; Check and analyze the attribute table of the preprocessing result data item by item according to resource categories, organize the attribute table of the preprocessing result data, and obtain attribute organized result data; The spatial data in the spatial matching inventory range information and attribute sorting result data are cropped, masked, and attribute-linked to eliminate redundant patches to obtain matching result data; Perform topological inspection and error correction on the matching result data to obtain inspection and correction result data; The inspection and correction result data are attached with value attributes to obtain integrated result data.
7. The quality inspection method for the resource asset inventory result data according to claim 5, characterized in that Preprocess the results of the natural resource asset inventory to obtain preprocessed result data, including: Convert the data format of the natural resource asset inventory results into a general geographic information data storage format to obtain uniformly formatted result data; Perform a mathematical basis conversion on the uniformly formatted result data to obtain uniformly formatted result data with a unified mathematical basis; Supplement the missing key information in the uniformly formatted result data with a unified mathematical basis according to the patent data set to obtain preprocessed result data.
8. A quality inspection device for the achievement data of resource asset inventory, characterized in that, Including: A result acquisition module for acquiring the results of the natural resource asset inventory; A data integration module for integrally processing the results of the natural resource asset inventory to obtain integrated result data; A result determination module that uses the RETE algorithm to match the integrated result data with the rules in the quality inspection rule database to obtain a data quality inspection result, and the quality inspection rule database is constructed according to the result data quality inspection rules.
9. A terminal 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, it implements the resource asset inventory result data quality inspection method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the resource asset inventory result data quality inspection method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Energy equipment streaming data quality detection method based on Flinkx
CN115935148A
Basic geographic information product quality inspection system and method
CN116628122A
Natural resource asset checking service system
CN118277446A