Multi-fleet reliability data processing method and reliability data processing device based on ATASPEC2000 standard
Through the data processing method based on the ATASPEC2000 specification, the CSDD data dictionary configuration template is used to clean and convert multi-fleet reliability data, which solves the problems of low processing efficiency and high manual development cost in the existing technology, and achieves efficient and simple Data integration and normalization.
Patent Information
- Application Number
- CN202410890798.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-07-04
AI Technical Summary
Existing data processing technology is difficult to meet the requirements of ATASPEC2000 specifications. Processing multi-fleet reliability data is inefficient and requires a lot of manual development, especially when processing various reliability data such as flight hour cycles, unplanned replacements, and fault records.
Adopting a processing method based on the ATASPEC2000 specification, by obtaining the original reliability data files of multiple fleets, using the CSDD data dictionary to configure the data cleaning and conversion template, performing data cleaning and conversion processing, automatically matching templates to achieve data integration, and using the graphical user interface And regular low-code simplifies development and maintenance.
It realizes efficient and simple processing of multi-fleet reliability data, ensures that data quality meets specifications, saves labor costs, and improves processing efficiency and accuracy through automatic matching of templates.
Smart Images

Figure CN118760682A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of data processing of reliability data, and in particular to a method for processing multi-fleet reliability data based on ATASPEC2000 specification and a reliability data processing device for executing the aforementioned processing method. Background Art
[0002] Reliability data is of great significance for aircraft operation reliability management, and its quality will directly affect the accuracy of reliability analysis results. However, the reliability data of different airlines and different systems are complex and changeable, and it is often necessary to further process the collected multi-fleet reliability data to ensure the quality of reliability data, so that it can reach the reliability data range specified by ATASPEC2000 specifications and meet normative requirements.
[0003] The existing data processing technology with ETL (Extract-Transform-Load) technology as the core can directly load the business data of the source system into the target data set for data conversion processing. However, for multi-fleet reliability data, it involves at least 8 types of reliability data such as flight hour cycles, unplanned replacements, fault records, and abnormal flights. The types of reliability data that need to be processed are many and the amount is huge. Moreover, the quality of the collected multi-fleet reliability data is often uneven. After using ETL for data processing, it is still difficult to meet the ATASPEC2000 specification requirements, and it may even lead to a large amount of inefficient and repetitive manual development work. Summary of the invention
[0004] Therefore, in order to overcome the problem that the existing data processing methods are difficult to obtain reliability data that meets the requirements of the ATASPEC2000 specification after processing multi-fleet reliability data, this application proposes a multi-fleet reliability data processing method based on the ATASPEC2000 specification.
[0005] This application solves the above technical problems through the following technical solutions:
[0006] Specifically, according to one aspect of the present application, a method for processing multi-fleet reliability data based on the ATASPEC2000 specification is provided, which includes the following steps:
[0007] Acquire different types of original reliability data files from multiple fleets, and parse the original reliability data files to obtain an original reliability data table with a two-dimensional table structure;
[0008] Using the CSDD data dictionary constructed according to the ATASPEC2000 specification, a data cleaning template is configured for each reliability data original table and data cleaning is performed thereby, thereby obtaining a corresponding reliability data cache table; and
[0009] The CSDD data dictionary is used to configure a data conversion template for each reliability data cache table and perform data conversion processing to obtain reliability data and reliability data specification tables that conform to the ATASPEC2000 specification.
[0010] Among them, the data cleaning template includes a first mapping of original table fields of the reliability data original table and cache table fields of the reliability data cache table, and data cleaning rules associated with the cache table fields, and wherein the data conversion template includes a second mapping of cache table fields and standard table fields of the reliability data standard table, and data conversion rules associated with the standard table fields.
[0011] The processing method of multi-fleet reliability data based on the ATASPEC2000 specification provided in this application can create a simpler, more reliable, efficient and convenient processing method for the data integration scenario of multi-source heterogeneous reliability data. It can perform data cleaning and data conversion processing on any original reliability data files from different data providers and in different formats, so that the processed reliability data has high quality and meets the specifications. Moreover, the processed data can be grouped in the specification table, thereby completing the data integration work for multi-party data, thereby saving a lot of labor costs.
[0012] According to one embodiment of the present application, the step of obtaining the original table of reliability data includes reading the original reliability data file to generate an original table of reliability data including original table fields and corresponding data including data source, title field, file name and upload time, and displaying the original table of reliability data using a graphical user interface.
[0013] According to one embodiment of the present application, the processing method also includes writing data cleaning rules or data conversion rules and corresponding rule low-code for the CSDD data dictionary through a graphical user interface according to business needs, and displaying the written CSDD data dictionary. All operations and rule low-code embedded development are completed through a graphical user interface, and the CSDD data dictionary is updated and maintained, making the development and maintenance process simple and transparent.
[0014] According to one embodiment of the present application, the processing method also includes using a text semantic similarity algorithm to automatically match the data cleaning template and the data conversion template stored in the database for the original reliability data table; and when the match fails, determining that the original reliability data file is a new type.
[0015] According to one embodiment of the present application, when it is determined that the original reliability data file is of a new type, the step of configuring a data cleaning template includes selecting an original table field in the original table of reliability data displayed in a graphical user interface, and selecting the selected original table field from the CSDD data dictionary through the graphical user interface. The element mapped according to the first mapping is used as a cache table field, and the data cleaning rules associated with the cache table field are obtained from the CSDD data dictionary.
[0016] According to one embodiment of the present application, when it is determined that the original reliability data file is of a new type, the step of configuring a data conversion template includes selecting a cache table field that is desired to undergo data conversion processing in the reliability data cache table displayed on a graphical user interface, selecting the selected cache table field from the CSDD data dictionary as a standard table field according to the element mapped by the second mapping, and obtaining data conversion rules associated with the standard table field from the CSDD data dictionary.
[0017] According to one embodiment of the present application, the CSDD data dictionary and the created and configured data cleaning template and data conversion template are also stored in a database. When facing a new type of raw reliability data file, it is only necessary to configure the data cleaning template and the data conversion template once. After the template configuration is completed, when the data cleaning template and the data conversion template are automatically matched when the same type of raw reliability data file is uploaded subsequently, data cleaning and data conversion processing will be automatically realized.
[0018] According to one embodiment of the present application, the step of automatically matching data cleaning templates and data conversion templates includes reading data source data in the original table of reliability data, and using a text semantic similarity algorithm to search and obtain data cleaning templates and data conversion templates including the data source data.
[0019] According to one embodiment of the present application, the step of automatically matching the data cleaning template and the data conversion template further includes:
[0020] For each data cleaning template obtained through the search, read the existing original table fields mapped by the data cleaning template, and perform text comparison between the read existing original table fields and the original table fields in the original table of reliability data in turn, and take the data cleaning template with the most consistent comparison results as the most similar data cleaning template;
[0021] Using the most similar data cleaning template to perform data cleaning on the original reliability data table to obtain a reliability data cache table; and
[0022] For each data conversion template obtained through the search, read the existing cache table fields mapped by the data conversion template, and perform text comparisons on the read existing cache table fields and the cache table fields in the reliability data cache table in turn, and take the data conversion template with the most consistent comparison results as the most similar data conversion template.
[0023] According to one embodiment of the present application, the processing method further includes:
[0024] Read all known original table fields mapped by the most similar data cleaning template, and automatically match the original table fields to the known original table fields read in turn through text comparison; and
[0025] When the automatic matching of fields fails, the corresponding known original table fields are prompted.
[0026] According to one embodiment of the present application, the processing method also includes sending the array where the reliability data is located to a table to be corrected when reliability data cleaning fails or data conversion fails, and highlighting the reliability data in the array where data cleaning or data conversion fails with different colors in the table to be corrected.
[0027] According to one embodiment of the present application, the processing method further includes correcting the reliability data rows in the to-be-corrected table through a graphical user interface, so as to re-perform data cleaning or data conversion processing as required.
[0028] According to one embodiment of the present application, the processing method also includes encapsulating the low-code rules associated with the data cleaning rules and the low-code rules associated with the data conversion rules into a batch processing template of the rule engine, so that the batch processing template can be called to perform batch data cleaning and data conversion processing when the data cleaning template is used for data cleaning processing and when the data conversion template is used for data conversion processing.
[0029] According to one embodiment of the present application, the batch data cleaning and data conversion processing steps include using the input class interface of the batch processing template to obtain the cache table field type mapped to the original table of reliability data and its original table fields, and using the output class interface of the batch processing template to output the reliability data after data cleaning and data conversion processing and the status information of the data cleaning and data conversion processing.
[0030] According to one embodiment of the present application, the data cleaning process step includes:
[0031] Reconstructing the reliability data original table according to the preset reliability data cache table structure to obtain the first object data set,
[0032] Obtaining a cache table field corresponding to an original table field in the object data set according to the first mapping in the data cleaning template, and replacing the corresponding original table field in the first object data set with the cache table field; and
[0033] The reliability data corresponding to the cache table field in the first object data set is cleaned according to the data cleaning rule associated with the cache table field, thereby obtaining a reliability data cache table.
[0034] According to one embodiment of the present application, the data cleaning rules include removing duplicate data rows, filling missing data with zeros, verifying the validity of data, and correcting data with numerical errors.
[0035] According to one embodiment of the present application, the data cleaning step further includes:
[0036] For each cache table field in the first object data set, when there is no associated data cleaning rule, the cache table field and its corresponding reliability data are stored in an array, and the data in the array is directly returned to the first object data set; and
[0037] When there are associated data cleaning rules, the cache table fields and their corresponding reliability data are saved in an array in the form of a key-value pair, and then data cleaning is performed according to the associated data cleaning rules, and the cleaning result data in the array is directly returned to the first object data set.
[0038] According to one embodiment of the present application, the data cleaning step also includes, after performing data cleaning processing on all reliability data original tables, traversing the arrays in the first object data set for each first object data set, and encapsulating all traversed arrays into first CRUD objects according to a certain scale, and then loading all first CRUD objects in batches into a reliability data cache table.
[0039] According to one implementation of the present application, the data conversion processing step includes:
[0040] Reconstructing the reliability data cache table according to a preset reliability data specification table structure to obtain a second object data set;
[0041] Obtaining a standard table field corresponding to a cache table field in a second object data set according to a second mapping in the data conversion template, and replacing the corresponding cache table field in the second object data set; and
[0042] The reliability data corresponding to the specification table fields in the second object data set are converted according to the data conversion rules associated with the specification table fields, thereby obtaining a reliability data specification table.
[0043] According to an embodiment of the present application, the processing method further includes designing a reliability data specification table structure that complies with the ATASPEC2000 specification according to the reliability data collection standard, wherein the fields in the reliability data specification table structure have consistent naming and constraint rules.
[0044] According to one implementation of the present application, the data conversion step further includes:
[0045] When the second mapping includes a many-to-one mapping relationship and the specification table field has no associated data conversion rule, multiple specification table fields are concatenated with separators, and the multiple specification table fields and the reliability data corresponding thereto are stored in an array, and then the data in the array is directly returned to the second object data set;
[0046] When the second mapping includes a many-to-one mapping relationship, and the specification table field has an associated data conversion rule, the specification table field and the reliability data corresponding thereto are stored in an array in the form of multiple key-value pairs, and then data conversion is performed according to the data conversion rule corresponding to the specification table field, and the conversion result data in the array is directly returned to the second object data set;
[0047] When the second mapping includes a one-to-many mapping relationship and the specification table field has no associated data conversion rule, each specification table field and the corresponding reliability data are stored in an array, and the array data are directly returned to the second object data set; and
[0048] When the second mapping contains a one-to-many mapping relationship and the specification table fields have associated data conversion rules, each specification table field and its corresponding reliability data are saved in an array in the form of a key-value pair, and then data conversion is performed according to the data conversion rules corresponding to each specification table field, and the conversion result data in the array is directly returned to the second object data set.
[0049] According to one embodiment of the present application, the data conversion step also includes, after performing data conversion processing on all reliability data cache tables, traversing the arrays in the second object data set for each second object data set, and encapsulating all traversed arrays into second CRUD objects according to a certain scale, and then loading all second CRUD objects in batches into a reliability data specification table.
[0050] According to another aspect of the present application, a reliability data processing device for executing the aforementioned processing method is provided, and the reliability data processing device includes:
[0051] A data acquisition module is used to acquire the uploaded original reliability data file and parse the original reliability data file to obtain the corresponding original reliability data table;
[0052] Graphical configuration module, used to allow configuration of data cleaning templates and data conversion templates for reliability data raw tables, maintenance of CSDD data dictionary built according to ATASPEC2000 specifications, and display of reliability data raw tables and reliability data cache tables;
[0053] A data processing module, used to perform data cleaning processing on the reliability data original table using a data cleaning template to obtain a corresponding reliability data cache table, and to perform data conversion processing on the reliability data cache table using a data conversion template to obtain a corresponding reliability data specification table; and
[0054] The database storage module is used to receive and store the data cleaning template, data conversion template and CSDD data dictionary from the graphical configuration module, receive and store the reliability data cache table and reliability data specification table from the data processing module, and provide the existing data cleaning template and data conversion template to the data acquisition module.
[0055] According to one embodiment of the present application, the data acquisition module includes:
[0056] A file uploading unit, used to allow uploading of original reliability data files, and parse the original reliability data files to obtain corresponding original reliability data tables; and
[0057] The template automatic matching unit is used to obtain the existing data cleaning template and data conversion template from the database storage module, and automatically match the most similar existing data cleaning template and data conversion template for the reliability data original table.
[0058] According to one embodiment of the present application, the graphical configuration module includes:
[0059] A data cleaning template configuration unit, used for configuring the data cleaning template, allowing the establishment of a first mapping of the original table fields in the reliability data original table;
[0060] A data conversion template configuration unit, used for configuring the data conversion template, allowing a second mapping of cache table fields in the reliability data cache table to be established; and
[0061] The data dictionary maintenance unit is used to allow the creation, editing and deletion of field standards in the CSDD data dictionary as needed. The attributes that can be maintained in the field standard include business term name, definition, sample, data type, default data cleaning rules and data conversion rules.
[0062] According to one embodiment of the present application, the data processing module includes a data batch processing unit for calling a batch processing template of a rule engine, wherein the batch processing template encapsulates low-code rules of data cleaning rules and data conversion rules, so that the batch processing template can be used to perform batch and rapid data cleaning and data conversion processing on the reliability data to be processed.
[0063] According to one embodiment of the present application, the data processing module also includes a data object loading unit, which is used to encapsulate the reliability data after data cleaning and / or data conversion processing into a CRUD object, and load the encapsulated CRUD object data in batches into a reliability data cache table or a reliability data specification table.
[0064] On the basis of conforming to the common sense in the art, the above-mentioned preferred conditions can be arbitrarily combined to obtain the preferred embodiments of the present application.
[0065] The beneficial technical effects and advantages that can be achieved by the processing method and reliability data processing device according to the above-mentioned embodiment of the present application are:
[0066] This application is aimed at the data integration scenario of reliability data tables, and can create a simpler, more reliable, efficient and convenient processing method, which performs data cleaning and data conversion processing on any reliability data files with different formats from different data providers, so that the processed reliability data has high quality and complies with the specifications. Moreover, the processed data can be grouped into a data table, thereby completing the data integration work for multiple data, thereby saving a lot of labor costs.
[0067] When facing a new type of raw reliability data file, you only need to configure the data cleaning template and data conversion template once. After completing the template configuration, the data cleaning template and data conversion template will be automatically matched when uploading the same type of raw reliability data file in the future, and then the data cleaning and data standard processing will be automatically completed. In addition, the use of the rule engine for batch data processing can effectively improve the efficiency of data collection, transmission and data processing, effectively reduce the amount of data errors, and efficiently process reliability data to meet the requirements of the specification.
[0068] The creation and configuration of data cleaning templates and data conversion templates for new types of original reliability data files and the embedded development of rule-based low-code are completed through the graphical user interface. The CSDD data dictionary is updated and maintained through the graphical user interface, making the development and maintenance process simplified and transparent. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] Figure 1 The figure is a flowchart of a method for processing multi-fleet reliability data based on the ATASPEC2000 specification according to a preferred embodiment of the present application.
[0070] Figure 2 It is a schematic diagram of an exemplary reliability data original table, a reliability data cache table, and a reliability data specification table according to a preferred embodiment of the present application.
[0071] Figure 3 It is a schematic diagram of a reliability data processing device according to a preferred embodiment of the present application. DETAILED DESCRIPTION
[0072] In order to make the purpose, technical solutions and advantages of the present application clearer, the technical solutions in the implementation mode of the present application will be clearly and completely described below in conjunction with the accompanying drawings showing multiple embodiments according to the present application. It should be understood that all other embodiments obtained by ordinary technicians in this field without spending creative work based on the embodiments recorded in the present application will fall within the scope of protection of the present application.
[0073] like Figure 1 As shown, the method for processing multi-fleet reliability data based on the ATASPEC2000 specification includes the following steps:
[0074] S1. Acquire different types of original reliability data files from multiple fleets, and parse the original reliability data files to obtain an original reliability data table with a two-dimensional table structure;
[0075] S2, using the CSDD data dictionary constructed according to the ATASPEC2000 specification to configure a data cleaning template for each reliability data original table and perform data cleaning processing thereby, thereby obtaining a corresponding reliability data cache table; and
[0076] S3. Use the CSDD data dictionary to configure a data conversion template for each reliability data cache table, and perform data conversion processing on each reliability data cache table to obtain reliability data and reliability data specification tables that comply with the ATASPEC2000 specification.
[0077] Among them, the data cleaning template includes a first mapping of original table fields of the reliability data original table and cache table fields of the reliability data cache table, and data cleaning rules associated with the cache table fields, and wherein the data conversion template includes a second mapping of cache table fields and standard table fields of the reliability data standard table, and data conversion rules associated with the standard table fields.
[0078] In the present application, the original reliability data file may come from different airlines or other organizational structures, and have different types. The original reliability data file may be any two-dimensional table structure data file, having file formats including but not limited to ".xls", ".csv" and ".txt" with fixed delimiters. Preferably, the first line of the original reliability data file is a title line. Exemplarily, the original reliability data file is derived from a certain airline, and its title line may include the following fields: aircraft number, model, flight date, flight hours, block hours, normal take-off and landing times, continuous take-off and landing times, cumulative flight hours, cumulative block hours, cumulative flight take-offs and landings, cumulative continuous take-offs and landings, whether it is parked and the reason for the parking.
[0079] In this application, the CSDD data dictionary is defined and constructed in advance according to the ATASPEC2000 specification, which includes multiple elements, each of which generally includes a field name, comment, type, length, value range, default data cleaning rules or default data conversion rules. In the CSDD data dictionary, the total number of elements can be expanded according to the fields involved. Moreover, according to business needs, data cleaning rules or data conversion rules can be written for the CSDD data dictionary through a graphical user interface, and corresponding rule low-code can be developed. Optionally, a graphical user interface can also be used to display the completed CSDD data dictionary.
[0080] For the data cleaning template of the original table of reliability data, the data cleaning rules usually include removing duplicate data rows, filling missing data with zeros, verifying data validity, unit conversion, and correcting data with numerical errors. When developing low-code rules, you only need to develop customized cleaning rule codes and conversion rule codes such as data calculation, type conversion, and data verification for input instances according to the format of the input class.
[0081] In step S1, the step of obtaining the original reliability data table includes reading the original reliability data file to generate the original reliability data table including the data source, title field, file name and upload time and the original table fields and their corresponding data. For example, for the above-mentioned ".xls" format file named "Flight Hour Cycle", the following table is generated after reading and parsing: Figure 2 The reliability data original table shown on the left can be displayed using a graphical user interface. It should be understood that according to actual needs, the reliability data original table can include more common original table fields, which are not listed here one by one.
[0082] In step S1, after obtaining the original reliability data table, the text semantic similarity algorithm can be used to automatically match the data cleaning template and data conversion template stored in the database for the original reliability data table. When the match fails, the original reliability data file is determined to be a new type.
[0083] In step S2, when it is determined that the original reliability data file is of a new type, the step of configuring the data cleaning template may include selecting an original table field in the reliability data original table displayed in the graphical user interface, and selecting the selected original table field from the CSDD data dictionary through the graphical user interface as the cache table field according to the element mapped by the first mapping, and obtaining the data cleaning rule associated with the cache table field from the CSDD data dictionary, thereby completing the data cleaning template configuration of the reliability data original table. Optionally, the data cleaning template name is automatically named as the concatenation of the data source data and the original reliability data file name.
[0084] Optionally, according to business needs, a graphical user interface is used to select an element as a corresponding cache table field from the CSDD data dictionary for each original table field by combining a drop-down list with a fuzzy search, thereby forming a first mapping between multiple original table fields in the reliability data original table and corresponding cache table fields, and the first mapping is displayed through the graphical user interface. It should be understood that the first mapping may include the original table field, the corresponding cache table field, and the first mapping relationship between the original table field and the corresponding cache table field. Figure 2 In the example, the mapping relationship between the original table field in the reliability data original table and the cache table field in the reliability data cache table is a one-to-one mapping relationship.
[0085] In step S3, when it is determined that the original reliability data file is of a new type, the step of configuring the data conversion template includes selecting the cache table field on which data conversion processing is desired in the reliability data cache table displayed in the graphical user interface, selecting the selected cache table field from the CSDD data dictionary as the standard table field according to the element mapped by the second mapping, and obtaining the data conversion rule associated with the standard table field from the CSDD data dictionary, thereby completing the data conversion template configuration of the reliability data cache table.
[0086] Optionally, the graphical user interface is displayed as Figure 2 The second mapping of multiple cache table fields and corresponding standard table fields in the reliability data cache table shown in the figure includes the cache table fields, the corresponding standard table fields and the second mapping relationship between the cache table fields and the corresponding standard table fields. Figure 2 As shown in the continuous take-off and landing number cache table field in , the second mapping relationship may include a one-to-many mapping relationship. Figure 2 As shown in the normal take-off and landing number cache table field and the continuous take-off and landing number cache table field in , the second mapping relationship may also include a many-to-one mapping relationship. The data conversion rule is exemplarily as follows Figure 2 As shown, data summation, counting and categorical counting can be included.
[0087] Preferably, after completing the configuration of the data cleaning template and the data conversion template and the writing of the CSDD data dictionary, the CSDD data dictionary, the data cleaning template and the data conversion template are stored in a database.
[0088] Optionally, in step S1, a newly added original reliability data file can be uploaded using a graphical user interface, and a newly added original reliability data table can be parsed to obtain the newly added original reliability data table, and a data cleaning template and a data conversion template stored in the database can be automatically matched for the newly added original reliability data table using a text semantic similarity algorithm, thereby completing the automatic configuration of the data cleaning template and the data conversion template. Specifically, the step of automatically matching the data cleaning template and the data conversion template includes reading the data source data in the original reliability data table, and using the text semantic similarity algorithm to search and obtain the data cleaning template and the data conversion template including the data source data.
[0089] Alternatively, in step S2, when a data cleaning template including data source data in the original table of reliability data is automatically matched, that is, the original reliability data file is not of a new type, the step of automatically matching (i.e., configuring) the data cleaning template includes, for each data cleaning template obtained through the search, reading the existing original table fields mapped by the data cleaning template, and sequentially performing text comparisons on the read existing original table fields with the original table fields in the original table of reliability data, taking the data cleaning template with the most consistent comparison results as the most similar data cleaning template, and then using the most similar data cleaning template to perform data cleaning processing on the original table of reliability data to obtain a reliability data cache table. Optionally, in step S2, all known original table fields mapped by the most similar data cleaning template can also be read, and the original table fields can be automatically matched to the known original table fields read in turn through text comparisons, and when the automatic matching of the field fails, the corresponding known original table field is prompted.
[0090] And alternatively, in step S3, when a data conversion template including data source data in the original table of reliability data is automatically matched, that is, the original reliability data file is not of a new type, the step of automatically matching (i.e., configuring) the data conversion template may include, for each data conversion template obtained by the search, reading the existing cache table fields mapped by the data conversion template, and performing text comparison on the read existing cache table fields with the cache table fields in the reliability data cache table in turn, and taking the data conversion template with the most consistent comparison results as the most similar data conversion template.
[0091] When the data cleaning template is configured, in step S2, the specific steps of performing data cleaning processing using the data cleaning template may include reconstructing the reliability data original table according to a preset reliability data cache table structure to obtain a first object data set, obtaining a cache table field corresponding to an original table field in the first object data set according to a first mapping in the data cleaning template, and replacing the corresponding original table field in the first object data set with the cache table field, and then performing data cleaning on the reliability data corresponding to the cache table field in the first object data set according to a data cleaning rule associated with the cache table field, thereby obtaining the following data: Figure 2 The reliability data cache table shown in the middle position. Optionally, the reliability data cache table has the same name as the data cleaning template.
[0092] When the data conversion template is configured, in step S3, the specific steps of using the data conversion template to perform data conversion processing may include reconstructing the reliability data cache table according to a preset reliability data specification table structure to obtain a second object data set, obtaining a specification table field corresponding to the cache table field in the second object data set according to a second mapping in the data conversion template, and replacing the corresponding cache table field in the second object data set, and then performing data conversion on the reliability data corresponding to the specification table field in the second object data set according to the data conversion rules associated with the specification table field, and thereby obtaining Figure 2 The reliability data specification table shown on the right side. Preferably, the reliability data specification table structure is designed according to the reliability data acquisition standard, which complies with the ATASPEC2000 specification, and the fields in the reliability data specification table structure have consistent naming and constraint rules.
[0093] Optionally, when reliability data fails to be cleaned or data conversion fails, the array containing the reliability data can be sent to the table to be corrected, and the reliability data in the array that failed to be cleaned or converted can be highlighted in different colors in the table to be corrected. Optionally, the reason for the failure of data cleaning or data conversion is displayed in the last column of the table to be corrected. Preferably, the reliability data row in the table to be corrected can be corrected through a graphical user interface, and the array containing the corrected reliability data can be sent to the first object data set or the second object data set to re-perform data cleaning or data conversion processing as needed. For the reliability data original table, the reliability data cache table, the reliability data specification table, the first object data set or the second object data set, the reliability data of each row forms an array.
[0094] It is known that using a rule engine (Drools) can improve data processing efficiency, so the processing method provided in this application may also include using a rule engine to perform data cleaning and data conversion. Specifically, the rule low code associated with the data cleaning rule and the rule low code associated with the data conversion rule are encapsulated into a batch processing template of the rule engine, so that the batch processing template can be called to perform batch data cleaning and data conversion processing when using the data cleaning template for data cleaning processing and when using the data conversion template for data conversion processing.
[0095] When the batch template performs batch data cleaning and data conversion, it uses the input class interface of the batch template to obtain the cache table field type mapped by the original reliability data table and its original table field, and uses the output class interface of the batch template to output the reliability data after data cleaning and data conversion processing and the status information of data cleaning and data conversion processing. Preferably, during data cleaning and data conversion processing, for an object data set, only one Drools batch template needs to be called. However, due to computer memory limitations, when the data set size exceeds the memory size, it can be divided into multiple batches for processing.
[0096] To facilitate data query, in step S2, the data cleaning step also includes, after data cleaning processing is performed on all reliability data original tables, for each first object data set, traversing the array in the first object data set, and encapsulating all traversed arrays as first CRUD objects according to a certain scale, and then loading all first CRUD objects in batches into a reliability data cache table. Alternatively, in step S3, the data conversion step also includes, after data conversion processing is performed on all reliability data cache tables, for each second object data set, traversing the array in the second object data set, and encapsulating all traversed arrays as second CRUD objects according to a certain scale, and then loading all second CRUD objects in batches into a reliability data specification table.
[0097] The present application also provides a reliability data processing device for executing the aforementioned processing method, such as Figure 3 As shown, it includes a data acquisition module, a graphical configuration module, a data processing module and a database storage module, and each module is interconnected through a data line, a wired network or a wireless network. Therefore, these templates can transmit data to each other as needed.
[0098] The data acquisition module is used to obtain the uploaded original reliability data file and parse it to obtain the corresponding original reliability data table. The graphical configuration module allows the configuration of data cleaning templates and data conversion templates, maintains the CSDD data dictionary built according to the ATASPEC2000 specification, and displays the original reliability data table and the reliability data cache table. The data processing module is used to use the data cleaning template to perform data cleaning processing on the original reliability data table to obtain the corresponding reliability data cache table, and use the data conversion template to perform data conversion processing on the reliability data cache table to obtain the corresponding reliability data specification table. The database storage module is used to receive and store the data cleaning template, data conversion template and CSDD data dictionary from the graphical configuration module, receive and store the reliability data cache table and reliability data specification table from the data processing module, and provide the existing data cleaning template and data conversion template to the data acquisition module.
[0099] like Figure 3 As shown, the data acquisition module includes a file upload unit and a template automatic matching unit. The file upload unit is used to allow the original reliability data file to be uploaded, and parse the original reliability data file to obtain the corresponding original reliability data table. Moreover, the file upload unit supports batch uploading of original reliability data files, and the file name, data source, and upload time will be recorded as log information, and the original reliability data file will be automatically backed up. For the file upload unit, files with duplicate names are not allowed in the same batch of uploaded original reliability data files. When the names of the same batch of uploaded original reliability data files are repeated, the file will be prompted to be duplicated and the file upload will be terminated. The template automatic matching unit is used to obtain existing data cleaning templates and data conversion templates from the database storage module, and automatically match the most similar existing data cleaning templates and data conversion templates for the original reliability data table.
[0100] Moreover, the graphical configuration module includes a data cleaning template configuration unit, a data conversion template configuration unit and a data dictionary maintenance unit. The data cleaning template configuration unit is used to allow the establishment of a first mapping of the original table field in the reliability data original table to perform data cleaning template configuration. The data conversion template configuration unit is used to allow the establishment of a second mapping of the cache table field in the reliability data cache table to perform data conversion template configuration. The data dictionary maintenance unit is used to allow the creation, editing and deletion of field standards in the CSDD data dictionary as needed, and wherein the attributes of the field standard such as the business term name, definition, sample, data type, default data cleaning rule and data conversion rule can be modified, deleted and other maintenance operations.
[0101] The data processing module may include a data batch processing unit for calling a batch processing template of a rule engine, wherein the batch processing template encapsulates a rule low code of data cleaning rules and data conversion rules, so that the batch processing template can be used to perform batch and rapid data cleaning and data conversion processing on the reliability data to be processed. The data processing module also includes a data object loading unit, which is used to encapsulate the reliability data after data cleaning or data conversion processing into a CRUD object, and batch load the encapsulated CRUD object data into a reliability data cache table or a reliability data specification table.
[0102] The database storage module may include a table storage unit, a template storage unit, and a data dictionary storage unit. The table storage unit is used to store the reliability data cache table obtained after data cleaning processing and the reliability data specification table obtained after data conversion processing. The template storage unit is used to store the data cleaning template and data conversion template created (i.e. configured) for the new original reliability data file. The data dictionary storage unit is used to store the CSDD data dictionary that has been written or updated.
[0103] The reliability data processing device provided in the present application can be deployed in a browser / server manner, and users can access the operation page of the reliability data processing device through a web browser, so that multiple terminal users in different locations can perform operations simultaneously.
[0104] The reliability data processing method and device provided by this application include graphical templates, low-code rule development, and higher transparency in the data processing process, which are adapted to standardized processing and query business scenarios of multi-source and multi-type reliability data. The processing method provided by this application can process the original reliability data files from different airlines into high-quality and standardized reliability data tables, and can import the processed reliability data into a unified standardized table for use in fleet operation reliability analysis.
[0105] Although in the specific embodiments of the present application, the aforementioned processing method and data processing device are only described for use in the field of multi-source heterogeneous reliability data processing and reliability analysis, it should be understood that the aforementioned method and data processing device can also be applied to data processing work in other fields, such as commodity order management and building material records. In other words, the aforementioned processing method and data processing device can be applied to any raw data files from different data providers and in different formats, perform data cleaning and data conversion processing according to specifications, and group the processed data into a specific scenario of a data table.
[0106] In addition, the present application also provides a non-transitory computer-readable storage medium having computer-readable instructions stored thereon, which, when executed at a computer system, causes the computer system to perform any of the processing methods described herein. Examples of computer-readable storage media include random access memory (RAM), read-only memory (ROM), optical disks, flash memory, hard disk storage, and other memory devices that can use magnetic, optical, and other technologies to store instructions or other data and can be accessed by a machine.
[0107] In addition, the computer-readable instructions and rule-low codes used in this article refer to any kind of executable code for execution by the processor of a computer system, including code expressed in machine language, interpreted language or scripting language. Computer-readable instructions and rule-low codes include binary code, machine code, byte code, code that defines an integrated circuit, and code expressed in programming language codes such as C, Java or Python. Computer-readable instructions and rule-low codes can be, for example, any kind of software, firmware, scripts, modules or libraries, which, when properly executed, processed, interpreted, compiled, and run in a virtual machine or other software environment, cause the processor of a computer system that supports the executable code to perform the tasks specified by the code.
[0108] Although the specific implementation methods of the present application are described above, those skilled in the art should understand that these are only examples, and the protection scope of the present application is defined by the appended claims. Those skilled in the art may make various changes or modifications to these implementation methods without departing from the principles and essence of the present application, but these changes and modifications all fall within the protection scope of the present application.
Claims
1. A method for processing multi-fleet reliability data based on ATASPEC2000 specification, comprising the following steps: Acquire different types of original reliability data files from multiple fleets, and parse the original reliability data files to obtain an original reliability data table with a two-dimensional table structure; Using the CSDD data dictionary constructed according to the ATASPEC2000 specification, a data cleaning template is configured for each of the reliability data original tables, and data cleaning processing is performed thereby, thereby obtaining a corresponding reliability data cache table; as well as Using the CSDD data dictionary to configure a data conversion template for each reliability data cache table, and performing data conversion processing on each reliability data cache table to obtain reliability data and reliability data specification tables that comply with the ATASPEC2000 specification, The data cleaning template includes a first mapping between an original table field of the reliability data original table and a cache table field of the reliability data cache table and a data cleaning rule associated with the cache table field, and The data conversion template includes a second mapping between the cache table field and the specification table field of the reliability data specification table and a data conversion rule associated with the specification table field.
2. The processing method according to claim 1, wherein: The steps of obtaining the original reliability data table include: The original reliability data file is read to generate an original reliability data table including original table fields of data source, title field, file name and upload time and their corresponding data, and the original reliability data table is displayed using a graphical user interface.
3. The processing method according to claim 2, further comprising: According to business needs, data cleaning rules or data conversion rules and corresponding rule low-code are written for the CSDD data dictionary through the graphical user interface, and the completed CSDD data dictionary is displayed.
4. The processing method according to claim 3, further comprising: Automatically matching the data cleaning template and the data conversion template stored in the database to the original reliability data table by using a text semantic similarity algorithm; as well as When the matching fails, it is determined that the original reliability data file is of a new type.
5. The processing method according to claim 4, wherein: When it is determined that the original reliability data file is of a new type, the step of configuring a data cleaning template includes: Select an original table field in the original table of reliability data displayed on the graphical user interface, and select the element mapped by the first mapping of the selected original table field from the CSDD data dictionary through the graphical user interface as a cache table field, and obtain the data cleaning rule associated with the cache table field from the CSDD data dictionary.
6. The processing method according to claim 5, wherein: When it is determined that the original reliability data file is of a new type, the step of configuring a data conversion template includes: In the reliability data cache table displayed in the graphical user interface, select the cache table field on which data conversion processing is desired, select the element mapped by the second mapping of the selected cache table field from the CSDD data dictionary as the standard table field, and obtain the data conversion rule associated with the standard table field from the CSDD data dictionary.
7. The processing method according to claim 6, further comprising: The CSDD data dictionary and the created and configured data cleaning template and data conversion template are stored in the database.
8. The processing method according to claim 7, wherein: The step of automatically matching the data cleaning template and the data conversion template includes: The data source data in the original table of the reliability data is read, and a text semantic similarity algorithm is used to search and obtain a data cleaning template and a data conversion template including the data source data.
9. The processing method according to claim 8, wherein: The step of automatically matching the data cleaning template and the data conversion template also includes: For each data cleaning template obtained through searching, the existing original table fields mapped by the data cleaning template are read, and the text of the read existing original table fields is compared with the original table fields in the original table of the reliability data in turn, and the data cleaning template with the most consistent comparison result is taken as the most similar data cleaning template; Using the most similar data cleaning template to perform data cleaning on the reliability data original table to obtain a reliability data cache table; and For each data conversion template obtained through the search, read the existing cache table fields mapped by the data conversion template, and perform text comparisons on the read existing cache table fields and the cache table fields in the reliability data cache table in turn, and take the data conversion template with the most consistent comparison results as the most similar data conversion template.
10. The processing method according to claim 9, further comprising: Read all known original table fields mapped by the most similar data cleaning template, and automatically match the original table fields to the known original table fields read in turn through text comparison; as well as When the automatic matching of fields fails, the corresponding known original table fields are prompted.
11. The processing method according to claim 1, further comprising: When reliability data fails to be cleaned or converted, the array containing the reliability data is sent to the table to be corrected, and the reliability data in the array that fails to be cleaned or converted is highlighted in different colors in the table to be corrected.
12. The processing method according to claim 11, further comprising: The reliability data rows in the table to be corrected are corrected through the graphical user interface to re-perform data cleaning or data conversion processing as needed.
13. The processing method according to claim 1, further comprising: The rule low-code associated with the data cleaning rule and the rule low-code associated with the data conversion rule are encapsulated into the batch processing template of the rule engine, so that when the data cleaning template is used for data cleaning processing and when the data conversion template is used for data conversion processing, the batch processing template can be called to perform batch data cleaning and data conversion processing.
14. The processing method according to claim 13, wherein the batch data cleaning and data conversion processing steps include: The input class interface of the batch processing template is used to obtain the cache table field type mapped to the original table of reliability data and its original table field, and the output class interface of the batch processing template is used to output the reliability data after data cleaning and data conversion processing and the status information of data cleaning and data conversion processing.
15. The processing method according to any one of claims 1 to 14, wherein: The data cleaning process includes: Reconstructing the reliability data original table according to a preset reliability data cache table structure to obtain a first object data set; Obtaining a cache table field corresponding to an original table field in the first object data set according to a first mapping in the data cleaning template, and replacing the corresponding original table field in the first object data set with the cache table field; and The reliability data corresponding to the cache table field in the first object data set is cleaned according to the data cleaning rule associated with the cache table field, thereby obtaining a reliability data cache table.
16. The processing method according to claim 15, wherein: The data cleaning rules include removing duplicate data rows, filling missing data with zeros, verifying the validity of data, and correcting data with numerical errors.
17. The processing method according to claim 15, wherein: The data cleaning step also includes: For each cache table field in the first object data set, when there is no associated data cleaning rule, the cache table field and its corresponding reliability data are stored in an array, and the data in the array is directly returned to the first object data set; and When there are associated data cleaning rules, the cache table fields and their corresponding reliability data are saved in an array in the form of a key-value pair, and then data cleaning is performed according to the associated data cleaning rules, and the cleaning result data in the array is directly returned to the first object data set.
18. The processing method according to claim 15, wherein: The data cleaning steps also include: After data cleaning processing is performed on all reliability data original tables, for each first object data set, the arrays in the first object data set are traversed, and all traversed arrays are encapsulated as first CRUD objects according to a certain scale, and then all first CRUD objects are batch loaded into a reliability data cache table.
19. The processing method according to any one of claims 1 to 14, wherein: The data conversion process steps include: Reconstructing the reliability data cache table according to a preset reliability data specification table structure to obtain a second object data set; Obtaining a standard table field corresponding to a cache table field in the second object data set according to a second mapping in the data conversion template, and replacing the corresponding cache table field in the second object data set; and The reliability data corresponding to the specification table fields in the second object data set are converted according to the data conversion rules associated with the specification table fields, thereby obtaining a reliability data specification table.
20. The processing method according to claim 19, further comprising: A reliability data specification table structure that complies with ATASPEC2000 specifications is designed according to reliability data collection standards, wherein the fields in the reliability data specification table structure have consistent naming and constraint rules.
21. The processing method according to claim 19, wherein: The data conversion step also includes: When the second mapping includes a many-to-one mapping relationship and the specification table field has no associated data conversion rule, multiple specification table fields are concatenated with separators, and the multiple specification table fields and the reliability data corresponding thereto are stored in an array, and then the data in the array is directly returned to the second object data set; When the second mapping includes a many-to-one mapping relationship, and the specification table field has an associated data conversion rule, the specification table field and the reliability data corresponding thereto are stored in an array in the form of multiple key-value pairs, and then data conversion is performed according to the data conversion rule corresponding to the specification table field, and the conversion result data in the array is directly returned to the second object data set; When the second mapping includes a one-to-many mapping relationship and the specification table field has no associated data conversion rule, each specification table field and the corresponding reliability data are stored in an array, and the data of the array is directly returned to the second object data set; and When the second mapping contains a one-to-many mapping relationship and the specification table field has an associated data conversion rule, each specification table field and its corresponding reliability data are saved in an array in the form of a key-value pair, and then data conversion is performed according to the data conversion rule corresponding to each specification table field, and the conversion result data in the array is directly returned to the second object data set.
22. The processing method according to claim 19, wherein: The data conversion steps also include: After data conversion processing is performed on all reliability data cache tables, for each second object data set, the arrays in the second object data set are traversed, and all traversed arrays are encapsulated as second CRUD objects according to a certain scale, and then all second CRUD objects are batch loaded into a reliability data specification table.
23. A reliability data processing device for executing the processing method according to any one of claims 1 to 22, the reliability data processing device comprising: A data acquisition module, used to acquire the uploaded original reliability data file, and parse the original reliability data file to obtain the corresponding original reliability data table; A graphical configuration module, for allowing configuration of a data cleaning template and a data conversion template for the reliability data original table, maintaining a CSDD data dictionary constructed according to the ATASPEC2000 specification, and displaying the reliability data original table and the reliability data cache table; A data processing module, configured to perform data cleaning processing on the reliability data original table using the data cleaning template to obtain a corresponding reliability data cache table, and perform data conversion processing on the reliability data cache table using the data conversion template to obtain a corresponding reliability data specification table; as well as A database storage module is used to receive and store the data cleaning template, the data conversion template and the CSDD data dictionary from the graphical configuration module, receive and store the reliability data cache table and the reliability data specification table from the data processing module, and provide the existing data cleaning template and data conversion template to the data acquisition module.
24. The reliability data processing device according to claim 23, wherein: The data acquisition module comprises: A file uploading unit, used for allowing the uploading of an original reliability data file, and parsing the original reliability data file to obtain a corresponding original reliability data table; and The template automatic matching unit is used to obtain the existing data cleaning template and data conversion template from the database storage module, and automatically match the most similar existing data cleaning template and data conversion template for the reliability data original table.
25. The reliability data processing device according to claim 24, wherein: The graphical configuration module includes: A data cleaning template configuration unit, used for creating and configuring a data cleaning template, allowing a first mapping of original table fields in the reliability data original table to be established; A data conversion template configuration unit, used for creating and configuring a data conversion template, allowing a second mapping of cache table fields in the reliability data cache table to be established; and A data dictionary maintenance unit is used to allow the creation, editing and deletion of field standards in the CSDD data dictionary as needed, wherein the attributes that can be maintained in the field standards include business term names, definitions, examples, data types, default data cleaning rules and data conversion rules.
26. The reliability data processing device according to claim 25, wherein: The data processing module comprises: A data batch processing unit is used to call a batch processing template of a rule engine, wherein the batch processing template encapsulates the rule low code associated with the data cleaning rules and the data conversion rules, so that the batch processing template can be used to perform batch and rapid data cleaning and data conversion processing on the reliability data to be processed.
27. The reliability data processing device according to claim 26, wherein: The data processing module also includes: The data object loading unit is used to encapsulate the reliability data after data cleaning and / or data conversion processing into CRUD objects, and load the encapsulated CRUD object data in batches into a reliability data cache table or a reliability data specification table.
Citation Information
Patent Citations
Text-based intersystem data exchange method
CN111045986A
Multi-source database global search method and system
CN111914066A
Data additional recording method and device, electronic equipment and storage medium
CN112527785A
Distribution network operation inspection-oriented multi-source data acquisition method
CN113032379A
Information processor, information processing method and program
JP2013186619A
