A preprocessing method and system for real-time calculation of airport tax for global civil aviation tickets

Through the collection, analysis, cleaning and optimization of airport tax message data, high-quality data is formed, which solves the problems of complexity and low efficiency of airport tax calculation and achieves high efficiency, accuracy and stability of airport tax calculation.

CN116645228BActive Publication Date: 2024-09-27NANJING BEITEWEI INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310480006.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2022-12-28
Filing Date
2023-04-28
Publication Date
2024-09-27
Estimated Expiration
2043-04-28

AI Technical Summary

Technical Problem

The complexity of global airport tax calculations results in high calculation costs and low efficiency. It is difficult for existing technology to effectively solve the problem of airport tax calculation efficiency in real-time sales scenarios.

Method used

Through the collection, analysis, cleaning and optimization of original airport tax message data, orderly, complete and high-quality data is formed, thereby improving the efficiency and accuracy of airport tax calculation. Data module classification conversion and association rule aggregation are used to form a real-time calculation oriented Airport tax joint repository.

Benefits of technology

It improves the efficiency and accuracy of airport tax calculation, provides favorable support for subsequent airport tax basic data maintenance work, reduces calculation costs and improves processing performance and stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116645228B_ABST
    Figure CN116645228B_ABST
Patent Text Reader

Abstract

The present invention discloses a preprocessing method and system for real-time calculation of airport tax for global civil aviation passenger tickets. The preprocessing method and system include: a data acquisition module acquires original message data of airport tax; a data analysis module classifies original message data and analyzes it into original database of airport tax; a data cleaning module cleans original database data and stores it into valid database of airport tax; a data conversion module converts valid database data according to module type; a data fusion module reconstructs and aggregates various converted data to form a physical database of airport tax for real-time calculation; a data synchronization module realizes real-time synchronization of airport tax memory data by tracking operation monitoring logs to form a memory database of airport tax for real-time calculation. The present invention acquires original message data of airport tax for global passenger tickets and performs processes such as analysis and cleaning to establish an efficient physical and memory data management mechanism, thereby realizing a series of preprocessing preparations before real-time calculation of airport tax for global civil aviation passenger tickets.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a preprocessing method and system for calculating airport tax for global civil aviation tickets. Background Art

[0002] Airport taxes on global civil aviation tickets are an important part of the ticket price and are collected by airlines according to the collection rules defined by the country to which the airport belongs. Airport taxes can be divided into: (1) sales-based airport taxes, which means that after the ticket is sold, the airport tax must be paid to the country to which the airport tax belongs within the next month; (2) operation-based airport taxes, which means that the operating airline pays the tax. Since global airport taxes are currently formulated by different countries based on their national conditions, the calculation is very complex.

[0003] Since the complexity of calculating global airport taxes has always been a key technical issue that the civil aviation industry urgently needs to overcome, domestic airlines currently do not have a fully mature technical solution for its calculation. Therefore, they mainly rent or purchase related calculation services from large European and American global distribution system (GDS) suppliers.

[0004] At the same time, due to the complexity of airport tax calculation, when facing large-scale concurrent real-time sales scenarios, the existing airport tax calculation engine often faces problems such as high computing costs and low efficiency when directly using basic data. Therefore, an effective airport tax preprocessing method is needed to further accelerate the subsequent real-time calculation efficiency of airport tax. Summary of the invention

[0005] In order to achieve the above-mentioned purpose, the present invention discloses a preprocessing method and system for real-time calculation of airport tax for global civil aviation passenger tickets, which forms orderly, complete and high-quality data that meets the requirements of airport tax calculation by collecting, parsing, cleaning and optimizing the original airport tax message data, thereby improving the efficiency and accuracy of airport tax calculation and providing favorable support for the subsequent maintenance of airport tax basic data.

[0006] A preprocessing method for real-time calculation of airport tax for global civil aviation tickets, the airport tax preprocessing method comprising the following steps:

[0007] Step 1: Obtain original message data of global airport tax, which includes airport tax rule series files, exchange rate files, etc.

[0008] Step 2, classify the original message data and parse it into the airport tax original library, wherein the classification is divided into airport tax core data, airport tax auxiliary data, and airport tax basic data.

[0009] Step 3: According to the cleaning rules configured in the airport tax business rule knowledge base, the validity of the airport tax original database data is judged and the cleaned data is stored in the airport tax valid database.

[0010] Step 4, classify and convert the data modules of the airport tax effective database, which can be divided into conversion based on the entire flight type, conversion based on single tax point data, conversion based on passenger type, conversion based on area type, etc.

[0011] Step 5: Aggregate the various types of data after classification conversion according to the association rules in the airport tax business rule knowledge base to form an airport tax physical library for real-time calculation.

[0012] Step 6: By tracking the operation monitoring log, the airport tax memory data is synchronized in real time to form an airport tax memory library for real-time calculation.

[0013] Step 7, further combining the processing results of step 5 and step 6, forms an airport tax joint library for real-time calculation composed of a physical library and a memory library.

[0014] As a preferred technical solution, the step of obtaining the original message data of global airport tax, step 1 further comprises:

[0015] According to the release cycle of airport tax original message data, global airport tax original message data in text file format is obtained in real time.

[0016] The original message data includes airport tax rule series files, exchange rate files, etc.

[0017] Among them, the release cycle of the airport tax matching rule message data file is once a day, and the release cycle of the exchange rate data file is once a day from Monday to Friday.

[0018] As a preferred technical solution, the original message data is classified and parsed into the airport tax original library, and the step 2 further includes:

[0019] Parallelize the processing of airport tax original message data and classify the read airport tax original data.

[0020] The original airport tax data is divided into airport tax core data, airport tax auxiliary data and airport tax basic data.

[0021] After synchronous analysis, the original core data structure of airport tax, the original auxiliary data structure of airport tax and the original basic data structure of airport tax are established to form the original database of airport tax for global airline tickets.

[0022] As a preferred technical solution, the cleaning rules configured according to the airport tax business rule knowledge base are used to judge the validity of the airport tax original library data, and the cleaned data is stored in the airport tax valid library. The step 3 further includes:

[0023] Sort the airport tax data by strategy, filter and sort the data in the column data set, such as ascending or descending order, to improve data processing efficiency.

[0024] Develop a global airline airport tax business knowledge base, and judge the validity of the data in the global airline airport tax original database item by item against the cleaning rules configured in the database, such as deleting duplicate records, deleting records with missing core attributes, directly deleting row records or column fields with missing values, and deleting invalid records based on key data such as sales time, so as to reduce the impact of missing data records on the overall data.

[0025] Detect and delete data from multiple sources or abnormal data generated during data entry, and unify the naming method for inconsistent standards or naming rules.

[0026] According to the effective time of the airport tax rule records, the airport tax rule records are cleaned and their status is marked to facilitate real-time calculation.

[0027] As a preferred technical solution, the data module classification conversion of the airport tax effective database is performed, and the step 4 further includes:

[0028] Based on the conversion strategy in the constructed global airline airport tax business knowledge base, the cleaned airport tax valid data is sorted out.

[0029] In the airport tax validity database, valid data is extracted by module type for data conversion, which can be divided into conversion based on the entire flight type, conversion based on a single tax point, conversion based on passenger type, conversion based on area type, etc.

[0030] The data operation records, operation time and other information generated in this step are stored in the airport tax real-time calculation preprocessing log library.

[0031] As a preferred technical solution, the various types of data after classification conversion are aggregated according to the association rules in the airport tax business rule knowledge base to form an airport tax physical library for real-time calculation. The step 5 further includes:

[0032] For front-end real-time airport tax calculation, the converted data is aggregated according to the association rules configured in the airport tax business rule knowledge base, such as: flight type + passenger type, flight type + area type, etc.

[0033] The data operation records, operation time and other information generated in this step are stored in the airport tax real-time calculation preprocessing log library.

[0034] As a preferred technical solution, the real-time synchronization of airport tax memory data is achieved by tracking the operation monitoring log to form an airport tax joint library for real-time calculation. The step 6 further includes:

[0035] In order to further improve the processing performance and stability for real-time computing, the system establishes a memory structure of multi-level cache of airport tax. The data synchronization module monitors and captures the operation logs of step 4 and step 5 to synchronize the data between the airport tax memory library and the airport tax physical library, thus forming an airport tax joint library for real-time computing.

[0036] Based on the airport tax physical database and multi-level memory database structure, the data synchronization module implements the management of the data consistency of the physical structure and multi-level memory structure to ensure the efficient operation of real-time computing.

[0037] A preprocessing system for real-time calculation of airport tax for global civil aviation tickets, the airport tax preprocessing system module includes:

[0038] The data collection module is used to obtain the original message data of global airport taxes, and the original message data includes airport tax rule series files, exchange rate files, etc.

[0039] The data analysis module is used to classify and parse the original message data and store it in the airport tax original database.

[0040] The data cleaning module is used to clean the original database data according to the cleaning rules configured in the airport tax business rule knowledge base and store it in the airport tax valid database.

[0041] The data conversion module is used to convert the airport tax valid library data according to the module type, which can be divided into conversion based on the entire flight type, conversion based on a single tax point type, conversion based on passenger type, conversion based on area type, etc.

[0042] The data fusion module is used to aggregate various types of data after classification conversion according to the association rules in the airport tax business rule knowledge base to form an airport tax physical library for real-time calculation.

[0043] The data synchronization module is used to achieve real-time synchronization of airport tax memory data by tracking the operation monitoring log, forming an airport tax memory library for real-time calculation. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 4 is a flow chart of the airport tax preprocessing method according to an embodiment of the present invention.

[0045] Figure 2 It is a module diagram of the airport tax preprocessing system according to an embodiment of the present invention. DETAILED DESCRIPTION

[0046] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the drawings in the embodiments of the present invention. The described embodiments are only part of the implementation examples of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0047] As shown in this application and claims, unless the context clearly indicates an exception, the words "a", "an", "an" and / or "the" do not refer to the singular and may also include the plural. Generally speaking, the terms "include" and "comprise" only indicate the inclusion of the steps and elements that have been clearly identified, and these steps and elements do not constitute an exclusive list. The method or device may also include other steps or elements.

[0048] Unless otherwise specifically stated, the relative arrangement, numerical expressions and numerical values ​​of the parts and steps set forth in these embodiments do not limit the scope of the present application. At the same time, it should be understood that, for ease of description, the sizes of the various parts shown in the accompanying drawings are not drawn according to the actual proportional relationship. The technology, method and equipment known to those of ordinary skill in the relevant field may not be discussed in detail, but in appropriate cases, the technology, method and equipment should be considered as a part of the authorization specification. In all examples shown and discussed here, any specific value should be interpreted as being merely exemplary, rather than as a limitation. Therefore, other examples of exemplary embodiments may have different values. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so that once a certain item is defined in an accompanying drawing, it does not need to be further discussed in subsequent drawings.

[0049] Reference Figure 1 This embodiment provides a preprocessing method for calculating airport tax for global civil aviation tickets, comprising the following steps:

[0050] S101: Obtain original message data of global airport taxes.

[0051] Specifically, firstly, the original message data of airport tax is obtained periodically from the official website of global airline airport tax that is subscribed by obtaining the officially authenticated user name and password.

[0052] The original message data includes airport tax rule series files, exchange rate files, etc. There are differences in the release cycles of different files: the release cycle of airport tax matching rule message data files is once a day, and the release cycle of exchange rate data files is once a day from Monday to Friday.

[0053] S102: Classify and parse the original message data and store them in the airport tax original database.

[0054] Among them, the original message data is divided into airport tax core data, airport tax auxiliary data and airport tax basic data.

[0055] Specifically, for example, once a day, airport tax original message data is obtained from the official website of global airline airport tax, which contains multiple latest airport tax data files. The data in the airport tax data file is parsed according to the character type and character length, and stored in the airport tax original database. For example, the original records parsed on a certain day are 3,500.

[0056] S103: Clean the airport tax original database data according to the cleaning rules configured in the airport tax business rule knowledge base, and then store it in the airport tax effective database.

[0057] Specifically, based on the original airport tax data, the uniqueness of multiple fields such as country, tax type, tax type, sales time, etc. in each record is judged to eliminate duplicate data records.

[0058] The original airport tax data after deduplication is sorted according to the strategy. For example, for the original airport tax data after deduplication, the country code is first determined. If the country code is empty, the data is missing data, and the row records or column fields with missing values ​​are directly deleted to reduce the impact of missing data records on subsequent conversion and fusion process data. If the country code is not empty, the data is judged again according to other rules formulated in the global airline business knowledge base until it meets all the rules in the knowledge base and is determined to be valid data.

[0059] For inconsistent standards or naming rules, the naming method is unified. At the same time, the country code values ​​are sorted in alphabetical order, and the release time field of the airport tax data record is sorted in chronological order to improve the efficiency of airport tax rule data processing.

[0060] The cleaned 2,500 data items are stored in the airport tax validity database.

[0061] S104: Convert the airport tax valid database data according to module type.

[0062] Among them, the data in the airport tax valid database can be divided into conversion based on the entire flight type, conversion based on a single tax point type, conversion based on passenger type, conversion based on area type, etc.

[0063] Specifically, the cleaned airport tax collection rule data is sorted out, and multiple fields are extracted from the airport tax valid library according to the knowledge rules in the constructed global airline airport tax business knowledge base to achieve matching of data types in different modules.

[0064] For example: extracting the country code field, city code field, airport code field, world region code and other fields from the airport tax validity database to form a region type conversion module, which can be used for multi-range geographic location matching; extracting the passenger type field, passenger age field, passenger identity code field and other fields from the airport tax validity database to form a passenger type conversion module, which can be used for preprocessing of various passenger type data.

[0065] The above series of data in the airport tax effective library are converted according to the module type, and the operation records, operation time and other information generated during the conversion process are stored in the airport tax real-time calculation preprocessing log library.

[0066] S105: Aggregate the classified converted data according to the association rules in the airport tax business rule knowledge base to form an airport tax physical library for real-time calculation.

[0067] Specifically, for real-time ticketing airport tax calculation, the converted data is aggregated according to the association rules configured in the airport tax business rule knowledge base. For example, the voyage type is processed based on the entire voyage type conversion module. The voyage types are divided into one-way voyages, round-trip voyages, and open-mouth voyages. They can also be divided into pure domestic routes and international routes. The geographic location is processed based on the regional type conversion module, which contains multiple granularity divisions: airports, cities, countries, world regions, etc. By associating and integrating the module based on the entire voyage type conversion with the module based on the regional type conversion, the voyage information can be further processed to determine whether the entire voyage is a purely domestic one-way voyage, a purely domestic round-trip voyage, an international one-way voyage, an international open-mouth voyage, etc.

[0068] The above series of data in the airport tax effective library are converted according to the module type, and the operation records, operation time and other information generated during the conversion process are stored in the airport tax real-time calculation preprocessing log library.

[0069] S106: By tracking the operation monitoring log, the airport tax memory data is synchronized in real time to form an airport tax joint library for real-time calculation;

[0070] Specifically, in order to further improve the processing performance and stability for real-time computing, the system establishes a memory structure of multi-level cache of airport tax, and records the data operations during the execution of the data conversion module and the data fusion module in the airport tax real-time calculation preprocessing log library. The data synchronization module monitors the operation log to capture data update time, status and other information, thereby triggering the real-time synchronization mechanism to achieve data synchronization between the airport tax memory library and the airport tax physical library, and form an airport tax joint library for real-time computing.

[0071] Reference Figure 2The airport tax preprocessing system of this embodiment includes: a data acquisition module 1, a data analysis module 2, a data cleaning module 3, a data conversion module 4, a data fusion module 5 and a data synchronization module 6.

[0072] The data collection module 1 is used to obtain the original message data of global airport taxes, and the original message data includes airport tax rule series files, exchange rate files, etc.

[0073] The data analysis module 2 is used to classify and analyze the original message data and store it in the airport tax original library.

[0074] The data cleaning module 3 is used to clean the original database data according to the cleaning rules configured in the airport tax business rule knowledge base and store it in the airport tax effective database.

[0075] The data conversion module 4 is used to convert the airport tax effective library data according to the module type, which can be divided into conversion based on the entire flight type, conversion based on a single tax point type, conversion based on passenger type, conversion based on area type, etc.

[0076] The data fusion module 5 is used to aggregate various types of data after classification conversion according to the association rules in the airport tax business rule knowledge base to form an airport tax physical library for real-time calculation.

[0077] The data synchronization module 6 is used to achieve real-time synchronization of airport tax memory data by tracking the operation monitoring log, thereby forming an airport tax memory library for real-time calculation.

Claims

1. A preprocessing method for real-time calculation of airport tax for global civil aviation tickets, characterized in that: The airport tax pre-processing method comprises the following steps: Step 1: Obtain original message data of global airport tax, which includes airport tax rule series files and exchange rate files; According to the release cycle of airport tax original message data, the original message data of global airport tax in the format of text files is obtained in real time. The original message data includes airport tax matching rule files and exchange rate data files. The release cycle of airport tax matching rule message data files is once a day, and the release cycle of exchange rate data files is once a day from Monday to Friday. Step 2: Classify and parse the original message data into the original database of global airline ticket airport tax, which is divided into airport tax core data, airport tax auxiliary data, and other basic data of airport tax; Process the airport tax original message data in parallel, classify the read airport tax original data, and divide the airport tax original data into airport tax core data, airport tax auxiliary data and airport tax basic data. After data analysis, establish the airport tax original core data structure, airport tax original auxiliary data structure and airport tax original basic data structure to form the global airline ticket airport tax original database; Step 3: Clean the original airport tax database data according to the cleaning rules configured in the airport tax business rule knowledge base, and store the cleaned data in the global airline ticket airport tax effective database; Step 4: Convert the airport tax effective database according to the data module type, and sort out the cleaned airport tax effective data according to the conversion strategy in the constructed global airline airport tax business knowledge base; In the airport tax effective database, valid data is extracted for data conversion, which can be divided into conversion based on the entire flight type, conversion based on a single tax point, conversion based on passenger type, and conversion based on area type; The data operation records and operation time information generated in this step are stored in the airport tax real-time calculation preprocessing log library; Step 5: Aggregate the converted data according to the association rules in the airport tax business rule knowledge base to form an airport tax physical library for real-time calculation; Step 6: By tracking the operation monitoring log, the airport tax memory data is synchronized in real time to form an airport tax memory library for real-time calculation; In order to further improve the processing performance and stability for real-time computing, the system establishes a memory structure of multi-level cache for airport tax. The data synchronization module monitors and captures the data update information stored in the pre-processing log library during the execution process, thereby triggering real-time synchronization, realizing data synchronization between the airport tax memory library and the airport tax physical library, and forming an airport tax memory library for real-time computing. Based on the airport tax physical database and multi-level memory database structure, the data synchronization module manages the data consistency of the physical structure and multi-level memory structure to ensure the efficient operation of real-time computing; Step 7: Further combine the processing results of step 5 and step 6 to form an airport tax joint library for real-time calculation composed of a physical library and a memory library.

2. The method according to claim 1, characterized in that: The step 3 further includes: developing a global airline airport tax business knowledge base, judging the validity of the data in the global airline airport tax original database item by item according to the cleaning rules configured in the database, deleting duplicate records, deleting records with missing core attributes, directly deleting row records or column fields with missing values, deleting invalid records of key data based on sales time, and reducing the impact of missing data records on the overall data; Detect and delete data from multiple sources or abnormal data generated during data entry, and unify the naming method for inconsistent standards or naming rules; According to the effective time of the airport tax rule records, the airport tax rule records are cleaned and their status is marked to facilitate real-time calculation.

3. The method according to claim 1, characterized in that: The step 5 further comprises: for the front-end real-time airport tax calculation, aggregating the converted data according to the association rules configured in the airport tax business rule knowledge base; The data operation records and operation time information generated by this step are stored in the airport tax real-time calculation preprocessing log library.

4. The method according to claim 1, characterized in that: The step 7 specifically includes: uniformly managing the airport tax memory library and the airport tax physical library data to form an airport tax joint library for real-time calculation composed of the physical library and the memory library.

5. The method according to claim 1, characterized in that: The method also includes a real-time calculation preprocessing system for airport tax on global civil aviation tickets, and the airport tax preprocessing system includes: A data collection module is used to obtain original message data of global airport taxes, wherein the original message data includes a series of airport tax rules files and an exchange rate file; Data parsing module, used to classify and parse the original message data and store it in the airport tax original database; The data cleaning module is used to clean the original database data according to the cleaning rules configured in the airport tax business rule knowledge base and store it in the airport tax effective database; The data conversion module is used to convert the airport tax effective database data according to the module type, which can be divided into conversion based on the entire flight type, conversion based on a single tax point type, conversion based on the passenger type, and conversion based on the area type; The data fusion module is used to aggregate various types of data after classification conversion according to the association rules in the airport tax business rule knowledge base to form an airport tax physical library for real-time calculation; The data synchronization module is used to achieve real-time synchronization of airport tax memory data by tracking the operation monitoring log, forming an airport tax memory library for real-time calculation.