A message processing method, system, electronic device and storage medium

By performing standardized message checksum semantic verification on baggage message data and performing semantic conversion when necessary, the problem of difference in baggage message formats and semantic differences in different airports and airlines is solved, and the unified sharing and efficient processing of baggage message data between various industries is realized.

CN114266259BActive Publication Date: 2025-04-25TRAVELSKY TECHNOLOGY LIMITED
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202111655730.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-30
Publication Date
2025-04-25
Estimated Expiration
2041-12-30

AI Technical Summary

Technical Problem

Due to the format and semantic differences in baggage messages generated by different airports and airlines, it is impossible to directly realize the unity and sharing of baggage messages between various industries.

Method used

By obtaining the luggage message data uploaded by the user, checking based on the preset message specification verification rules, and if it is passed, semantic verification will be performed; if the semantic verification fails, obtaining the preset target semantic conversion rules for semantic conversion to ensure that the data complies with the unified semantic specification.

Benefits of technology

It realizes the unified format sharing of luggage message data among various industries, improves the efficiency of luggage message processing, assists all parties in the industry to carry out luggage processing business and improves luggage transportation services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114266259B_ABST
    Figure CN114266259B_ABST
Patent Text Reader

Abstract

The present invention provides a message processing method, system, electronic device and storage medium, which obtains baggage message data uploaded by a user; verifies the baggage message data based on a preset message specification verification rule; if the baggage message data passes the verification, performs semantic verification on the baggage message data according to a preset semantic verification rule; if the baggage message data fails the semantic verification, obtains a preset target semantic conversion rule matching the baggage message data, and performs semantic conversion on the baggage message data based on the preset target semantic conversion rule to obtain the target baggage message data. Based on the present invention, the unification and sharing of baggage message data among various industries can be achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and more specifically, to a message processing method, system, electronic device and storage medium. Background Art

[0002] With the development of civil aviation, the number of passengers entering and leaving airports has continued to increase, and baggage throughput has also increased significantly. In order to improve the efficiency of processing passenger baggage messages, airports, airlines and third-party units need to cooperate with each other and share their baggage messages. However, since the baggage messages generated by different airports and airlines have certain differences in format and semantics, it is impossible to directly achieve the unification and sharing of baggage message data among various industries.

[0003] In order to realize the unification and sharing of baggage message data among various industries, it is necessary to process the baggage message data among various industries. Currently, there is no effective way to process the baggage message data to realize the unification and sharing of baggage message data among various industries. Summary of the invention

[0004] In view of this, the present invention provides a message processing method, system, electronic device and storage medium, with the purpose of achieving the unification and sharing of baggage message data among various industries.

[0005] A first aspect of the present invention discloses a message processing method, which is applied to a message processing platform. The method comprises:

[0006] Obtain baggage message data uploaded by users;

[0007] Verifying the baggage message data based on preset message specification verification rules;

[0008] If the baggage message data passes the verification, performing semantic verification on the baggage message data according to a preset semantic verification rule;

[0009] If the semantic check of the baggage message data fails, a preset target semantic conversion rule matching the baggage message data is obtained, and based on the preset target semantic conversion rule, the baggage message data is semantically converted to obtain target baggage message data.

[0010] A second aspect of the present invention discloses a message processing system, which is applied to a message processing platform. The system comprises:

[0011] A first acquiring unit, used to acquire baggage message data uploaded by a user;

[0012] A first verification unit, configured to verify the baggage message data based on a preset message specification verification rule;

[0013] A second verification unit, configured to perform semantic verification on the baggage message data according to a preset semantic verification rule if the baggage message data verification passes;

[0014] The first conversion unit is used to obtain a preset target semantic conversion rule matching the baggage message data if the semantic check of the baggage message data fails, and perform semantic conversion on the baggage message data based on the preset target semantic conversion rule to obtain target baggage message data.

[0015] The third aspect of the present invention discloses an electronic device, comprising: a processor and a memory, wherein the processor and the memory are connected via a communication bus; wherein the processor is used to call and execute a program stored in the memory; and the memory is used to store a program, wherein the program is used to implement the message processing method disclosed in the first aspect of the present invention.

[0016] A fourth aspect of the present invention discloses a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to execute the message processing method disclosed in the first aspect of the present invention.

[0017] The present invention provides a message processing method, system, electronic device and storage medium. After receiving luggage message data uploaded by a user, the obtained luggage message data is verified based on a preset message specification verification rule, and when the luggage message data verification passes, the luggage message data is semantically verified according to a preset semantic verification rule. When the luggage message data semantic verification fails, a preset target semantic conversion rule matching the luggage message data is obtained, and the luggage message data is converted based on the preset target semantic conversion rule to obtain target luggage message data. The technical solution provided by the present invention, when the obtained luggage message data meets the preset message specification verification rule, if the luggage message data does not meet the preset semantic verification rule, the luggage message data can be further converted into luggage message data with unified semantic specifications by using the preset target semantic conversion rule matching the luggage message data, so that the luggage message data of the same format can be shared between industries, thereby improving the processing efficiency of the luggage message data by various industries, so as to better assist all parties in the industry to improve luggage handling business and improve luggage transportation services. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0019] The above and other features, advantages and aspects of the embodiments disclosed in the present invention will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.

[0020] Figure 1 A schematic diagram of a flow chart of a message processing method provided by an embodiment of the present invention;

[0021] Figure 2 A schematic diagram of the structure of a message processing system provided by an embodiment of the present invention;

[0022] Figure 3 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0023] The embodiments disclosed in the present invention will be described in more detail below with reference to the accompanying drawings. Although certain embodiments disclosed in the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided to provide a more thorough and complete understanding of the present invention. It should be understood that the drawings and embodiments disclosed in the present invention are only for exemplary purposes and are not intended to limit the scope of protection disclosed in the present invention.

[0024] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0025] It should be noted that the concepts such as "first" and "second" mentioned in the disclosure of the present invention are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0026] It should be noted that the modifications of "one" and "plurality" mentioned in the disclosure of the present invention are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0027] See also Figure 1 , shows a flow chart of a message processing method provided by an embodiment of the present invention, the message processing method is applied to a message processing platform, and specifically includes the following steps:

[0028] S101: Obtaining luggage message data uploaded by the user.

[0029] In an embodiment of the present application, as a preferred method of the embodiment of the present application, the user can directly call the API interface provided by the message processing platform through the corresponding airport system to upload the baggage message data to the message processing platform, so that the message processing platform can obtain the baggage message data uploaded by the user.

[0030] As another preferred method of the embodiment of the present application, the user can also upload the baggage message data to be uploaded to the local TUMS queue of the airport system through the corresponding airport system, and pull the corresponding baggage message data from the TUMS queue through the pulling program pre-set in the data processing platform system, and upload the pulled baggage message data to the baggage message processing platform through the reporting interface of the platform system, so that the baggage message processing platform can obtain the baggage message data uploaded by the user.

[0031] As another preferred method of the embodiment of the present application, when the user has user access rights to the baggage message processing platform, the user can directly upload the corresponding local baggage message data of the airport system to the preset message queue of the baggage message processing platform, so that the baggage message processing platform can obtain the corresponding baggage message data from the preset message queue.

[0032] It should be noted that the data format of the uploaded baggage message data may be XML, JSON or a string, etc.; the uploaded baggage message data may be baggage source message data (Baggage Source Message, BSM) and baggage processed message data (Baggage Processed Message, BPM).

[0033] S102: Check the baggage message data based on the preset message specification verification rules; if the baggage message data verification fails, execute step S103; if the baggage message data verification passes, execute step S104.

[0034] In an embodiment of the present application, a preset message specification verification rule is pre-set, and the preset message specification verification rule indicates that the luggage message data must include a message header, a message tail, and data corresponding to each preset data item in a plurality of preset data items.

[0035] It should be noted that the preset message specification verification rules can be civil aviation baggage message data interaction specifications; multiple preset data items include .V data items, .J data items, .F data items, .N data items, .S data items, etc.

[0036] In the specific process of executing step S102, after obtaining the baggage message data uploaded by the user, the baggage message processing platform may verify the obtained baggage message data based on the preset message specification verification rule. Specifically, it is determined whether the baggage message data all include the message header, message footer and required data items indicated by the preset message specification verification rule; if the baggage message data does not include any one of the message header and message footer indicated by the preset message specification verification rule, or does not include data corresponding to any one of the multiple preset data items, it is determined that the baggage message data verification fails, and step S103 is executed.

[0037] If the baggage message data includes the message header, message tail and data corresponding to each preset data item that needs to be included indicated by the preset message specification verification rule, it is determined that the baggage message data verification passes, and step S104 is executed.

[0038] For example, a piece of luggage is checked in locally at Hong Kong International Airport, and BPM luggage message data in string format is generated. Since the local airport of Hong Kong has deployed a TUMS message queue, after the Hong Kong Airport generates the luggage message data, it can directly transmit the luggage message data to the local TUMS message queue of the airport through the local airport system, so as to pull the corresponding luggage message data from the TUMS message queue through the preset pull program, and then call the reporting interface of the platform to report the luggage message data to the luggage message processing platform, so that the luggage message processing platform can obtain the uploaded luggage message data. Among them, the BPM luggage message data in string format generated by the local check-in of a piece of luggage at Hong Kong International Airport is the message header, .V / 1LHKG, .J / S / AHK / RFDP03 / 25AUG / 111951L / CHKIN / , .F / MU0502 / 25AU G / PVG / Y, .N / 3781138944001, .S / Y / 47L / C / 035, and the message tail.

[0039] The baggage message processing platform verifies the acquired baggage message data based on the civil aviation baggage message data exchange specification (preset message specification verification rule), and can determine that the baggage message data meets the civil aviation baggage message data exchange rule and that the baggage message data verification has passed.

[0040] S103: Determine the baggage message data as abnormal data, and store the abnormal data as a diary record in the monitoring system.

[0041] In the specific process of executing step S103, when it is determined that the acquired baggage message data does not meet the preset message specification verification rule, that is, when it is determined that the baggage message data verification fails, the baggage message data is determined as abnormal data, and a corresponding log record is generated according to the abnormal data, so that the log record is stored in the monitoring system.

[0042] S104: Perform semantic verification on the baggage message data according to preset semantic verification rules; if the semantic verification of the baggage message data fails, execute step S105.

[0043] In the specific process of executing step S104, when it is determined that the acquired baggage message data meets the preset message specification verification rule, that is, when it is determined that the baggage message data passes the semantic verification, the baggage message data is further semantically verified according to the preset semantic verification rule.

[0044] In the embodiment of the present application, the preset semantic rule includes a preset semantic verification sub-rule corresponding to each preset data item. The process of performing semantic verification on the baggage message data according to the preset semantic verification rule is specifically as follows: for each preset data item, obtaining the baggage message data corresponding to the preset data item from the baggage message data, and performing semantic verification on the baggage message data corresponding to the preset data item based on the preset semantic verification sub-rule corresponding to the preset data item; if the semantic verification of the baggage message data fails, executing step S105.

[0045] If the semantic verification of the baggage message data corresponding to the preset data item passes, the baggage message data corresponding to the preset data item can be determined as the target baggage message data corresponding to the preset data item, and then the target baggage message data corresponding to the preset data item can be stored in the Kafka message queue, so that the target baggage message data corresponding to the corresponding preset data item can be obtained from the Kafka message queue later, and the obtained target baggage message data is analyzed according to the unified message specification to obtain key information and baggage information; the obtained key information is stored in elasticsearch and mongo databases; the baggage data in the obtained baggage information is counted by stream computing, and the obtained statistical results are stored in the oracle database.

[0046] In an embodiment of the present application, if the preset data item is a .V data item, the preset semantic check sub-rule corresponding to the .V data item may be: .V / data dictionary version number+baggage source identifier; if the preset data item is a .J data item, the preset semantic check sub-rule corresponding to the .J data item may be: .J / secondary code / agent number / scanner identifier / date / time / reading location identifier / sending location identifier; if the preset data item is a .F data item, the preset semantic check sub-rule corresponding to the .F data item may be: .F / flight number / date / arrival airport / passenger cabin; if the preset data item is a .N data item, the preset semantic check sub-rule corresponding to the .N data item may be: .N / baggage type identifier (1 digit)+airline digital three-letter code (3 digits)+baggage tag number (6 digits)+continuous baggage quantity (3 digits); if the preset data item is a .S data item, the preset semantic check sub-rule corresponding to the .S data may be: .S / whether it can be loaded / seat number / passenger status / boarding number.

[0047] For example, if the baggage message data corresponding to the .V data item in the acquired baggage message data is V / 1LHKG, where 1 is the data dictionary version number 1, and LHKG is the local message of Hong Kong International Airport (HKG); then the preset semantic verification sub-rule (:.V / data dictionary version number+baggage source identifier) ​​corresponding to the .V data item is pre-set to perform semantic verification on the baggage message data corresponding to the .V data item, and it can be determined that the semantic verification of the baggage message data corresponding to the .V data item passes.

[0048] If the baggage message data corresponding to the .S data item of the acquired baggage message data is .S / Y / 47L / C / 035, wherein Y indicates that the baggage can be loaded, 47L indicates that the passenger seat number is 47L, C indicates that the passenger status is checked-in, and 035 indicates that the boarding number is 035, then the preset semantic verification sub-rule (.S / whether it can be loaded / seat number / passenger status / boarding number / security number / passenger information status / whether it can be transported / baggage status) corresponding to the .S data item is pre-set, and semantic verification is performed on the baggage message data corresponding to the .S data item, and it can be determined that the semantic verification of the baggage message data corresponding to the .S data item passes.

[0049] If the baggage message data corresponding to the .J data item in the acquired baggage message data is .J / S / AHK / RFDP03 / 25AUG / 111951L / CHKIN, wherein AHK indicates that the operator ID is AHK, RFDP03 indicates that the operating device ID is RFDP03, 25AUG / 111951L indicates that the baggage message data reading date and time of the preset data item are 11:19:51 local time on August 25, and CH in the baggage message data corresponding to the preset data item CHKIN represents checked-in.

[0050] According to the preset semantic verification sub-rule corresponding to the .J data item (.J data item format: .J / secondary code / agent number / scanner identifier / date / time / reading location identifier / delivery location identifier), a semantic verification is performed on the baggage message data corresponding to the .J data item, and it can be determined that the semantic verification of the baggage message data corresponding to the .J data item has failed.

[0051] If the baggage message data corresponding to the .F data item in the acquired baggage message data is .F / MU0502 / 25AUG / PVG / Y, the baggage message data corresponding to the data item can be interpreted as a message for passengers in cabin Y of flight MU0502 departing from Hong Kong International Airport (HKG) to Pudong International Airport (PVG) on August 25; according to a preset semantic verification sub-rule corresponding to the .F data item (.F data item: .F / flight number / date / arrival airport / passenger class), a semantic verification is performed on the baggage message data corresponding to the .F data item, and it can be determined that the semantic verification of the baggage message data corresponding to the .F data item passes.

[0052] If the baggage message data corresponding to the .N data item in the acquired baggage message data is .N / 3781138944001; according to the preset semantic verification sub-rule corresponding to the .N data item (.N / baggage type identification (1 digit) + airline digital three-letter code (3 digits) + baggage tag number (6 digits) + continuous baggage quantity (3 digits)), a semantic verification is performed on the baggage message data corresponding to the .N data item, and it can be determined that the semantic verification of the baggage message data corresponding to the .N data item passes.

[0053] S105: Acquire a preset semantic conversion rule matching the baggage message data, and perform semantic conversion on the baggage message data based on the preset semantic conversion rule to obtain target baggage message data.

[0054] In the process of specifically executing step S105, for each preset data item, when it is determined that the semantic check of the baggage message data corresponding to the data item has failed, the data source of the baggage message data is determined, so as to obtain the preset target semantic conversion rule corresponding to the data item according to the data source of the baggage message data, and according to the preset target semantic conversion rule corresponding to the acquired preset data item, semantic conversion is performed on the baggage message data corresponding to the preset data item to obtain the target baggage message data corresponding to the preset data item.

[0055] For example, if the baggage message data corresponding to the .J data item in the acquired baggage message data is .J / S / AHK / RFDP03 / 25AUG / 111951L / CHKIN, wherein AHK indicates that the operator ID is AHK, RFDP03 indicates that the operating device ID is RFDP03, 25AUG / 111951L indicates that the baggage message data reading date and time of the preset data item are 11:19:51 local time on August 25, and CH in the baggage message data corresponding to the preset data item represents check-in.

[0056] According to the preset semantic verification sub-rule corresponding to the .J data item (.J data item format: .J / secondary code / agent number / scanner identifier / date / time / reading location identifier / delivery location identifier), a semantic verification is performed on the baggage message data corresponding to the .J data item, and it can be determined that the semantic verification of the baggage message data corresponding to the .J data item has failed.

[0057] If it is determined that the data source of the baggage message data is the Hong Kong International Airport, after connecting with the Hong Kong International Airport to understand the preset target semantic conversion rules of its .J data item, the preset target semantic conversion rules of the .J data item are obtained, and then the baggage message data corresponding to the .J data item is semantically converted according to the preset target semantic conversion rules of the obtained .J data item, and the target baggage message data corresponding to the .J data item is obtained as J / S / AHK / RFDP03 / 25AUG / 111951L / CK / SE, wherein CK and SE represent the location identifiers airport check-in counter and security screening area specified in the civil aviation baggage message data exchange specification, respectively.

[0058] Further, in an embodiment of the present application, when it is determined that the semantic verification of the baggage data corresponding to the preset data item fails, a preset target semantic conversion rule matching the baggage message data corresponding to the preset data is obtained, and based on the preset target semantic conversion rule, the baggage message data is semantically converted. After obtaining the target baggage message data, the target baggage message data corresponding to the preset data item is stored in the Kafka message queue, so that the target baggage message data corresponding to the corresponding preset data item can be obtained from the Kafka message queue later, and the obtained target baggage message data is analyzed according to a unified message specification to obtain key information and baggage information; the obtained key information is stored in elasticsearch and mongo databases; the baggage data in the obtained baggage information is counted by stream computing, and the obtained statistical results are stored in the oracle database.

[0059] Furthermore, in an embodiment of the present application, the message processing platform provided by the present invention can also receive a baggage data acquisition request sent by a user. When the message processing platform receives the baggage data acquisition request sent by the user, the baggage information matching the target airport and the target airline in the baggage data acquisition request is obtained from the Oracle database; based on the target airport and the target airline, a corresponding target message queue is created for the user, and the baggage information matching the target airport and the target airline is stored in the target message queue, so that the user can obtain the baggage information matching the target airport and the target airline from the target message queue.

[0060] It should be noted that if the baggage data requested by the user is baggage source message data BSM, then after obtaining the baggage data matching the request, a corresponding BSM message queue (target message queue) can be created for the user; if the baggage data requested by the user is baggage processing message data BPM, then after obtaining the baggage data matching the request, a corresponding BPM message queue (target message queue) can be created for the user.

[0061] The present invention provides a message processing method, after receiving the baggage message data uploaded by the user, the obtained baggage message data is verified based on the preset message specification verification rule, and when the baggage message data verification passes, the baggage message data is semantically verified according to the preset semantic verification rule, and when the baggage message data semantic verification fails, a preset target semantic conversion rule matching the baggage message data is obtained, and the baggage message data is converted based on the preset target semantic conversion rule to obtain the target baggage message data. The technical solution provided by the present invention, when the obtained baggage message data meets the preset message specification verification rule, if the baggage message data does not meet the preset semantic verification rule, the baggage message data can be further converted into baggage message data with unified semantic specifications by using the preset target semantic conversion rule matching the baggage message data, so that the baggage message data of the same format can be shared between various industries, thereby improving the processing efficiency of the baggage message data by various industries, so as to better assist all parties in the industry to improve the baggage handling business and improve the baggage transportation service.

[0062] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to the various embodiments disclosed in the present invention. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0063] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperTextTransferProtocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an adhoc peer-to-peer network), as well as any currently known or future developed network.

[0064] The names of the messages or information exchanged between multiple devices in the disclosed embodiments of the present invention are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0065] Although operations are depicted in a particular order, this should not be understood as requiring that the operations be performed in the particular order shown or in a sequential order.Multitasking and parallel processing may be advantageous under certain circumstances.

[0066] It should be understood that the various steps described in the method embodiments disclosed in the present invention may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present invention disclosed in this respect is not limited.

[0067] Computer program code for performing the operations disclosed in the present invention may be written in one or more programming languages ​​or a combination thereof, including but not limited to object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0068] Corresponding to a message processing method disclosed in the above embodiment of the present invention, refer to Figure 2 The embodiment of the present invention further provides a structural schematic diagram of a message processing system, the message processing system is applied to a message processing platform, and the message processing system includes:

[0069] A first acquiring unit 21, configured to acquire baggage message data uploaded by a user;

[0070] A first verification unit 22, used to verify the baggage message data based on a preset message specification verification rule;

[0071] The second verification unit 23 is used to perform semantic verification on the baggage message data according to a preset semantic verification rule if the baggage message data verification passes;

[0072] The first conversion unit 24 is used to obtain a preset target semantic conversion rule matching the baggage message data if the baggage message data semantic check fails, and perform semantic conversion on the baggage message data based on the preset target semantic conversion rule to obtain target baggage message data.

[0073] The specific principles and execution processes of each unit in the message processing system disclosed in the above embodiment of the present invention are similar to those in the above embodiment of the present invention. Figure 1 The disclosed message processing method is the same, and can be referred to the above embodiment of the present invention. Figure 1 The corresponding parts of the disclosed message processing method will not be described in detail here.

[0074] The present invention provides a message processing system. After receiving the baggage message data uploaded by the user, the obtained baggage message data is verified based on the preset message specification verification rules. If the baggage message data passes the verification, the baggage message data is semantically verified according to the preset semantic verification rules. If the baggage message data fails the semantic verification, a preset target semantic conversion rule matching the baggage message data is obtained, and the baggage message data is converted based on the preset target semantic conversion rule to obtain the target baggage message data. The technical solution provided by the present invention, when the obtained baggage message data meets the preset message specification verification rules, if the baggage message data does not meet the preset semantic verification rules, the baggage message data can be further converted into baggage message data with unified semantic specifications by using the preset target semantic conversion rule matching the baggage message data, so that the baggage message data of the same format can be shared between industries, thereby improving the processing efficiency of the baggage message data by various industries, so as to better assist all parties in the industry to improve the baggage handling business and improve the baggage transportation service.

[0075] Furthermore, the message processing system provided by the embodiment of the present invention further includes:

[0076] The first storage unit is used to determine the baggage message data as abnormal data if the baggage message data verification fails, and store the abnormal data as a diary record in the monitoring system.

[0077] Optionally, the first verification rule includes:

[0078] A judging unit, used to judge whether the baggage message data contains a message header, a message tail and data corresponding to each of a plurality of preset data items indicated by a preset message specification verification rule;

[0079] A first determination unit, configured to determine that the baggage message data has passed verification if the baggage message data includes a message header, a message footer, and data corresponding to each preset data item indicated by a preset message specification verification rule;

[0080] The second determining unit is used to determine that the baggage message data verification fails if the baggage message data does not include any one of the message header and the message footer indicated by the preset message specification verification rule, or does not include data corresponding to any one of the multiple preset data items.

[0081] Optionally, the second verification unit includes:

[0082] A second acquiring unit, configured to acquire, for each preset data item, baggage message data corresponding to the preset data item from the baggage message data;

[0083] The third verification unit is used to perform semantic verification on the baggage message data corresponding to the preset data item based on the preset semantic verification sub-rule corresponding to the preset data item.

[0084] Optionally, the first conversion unit includes:

[0085] A third acquisition unit is used for determining the data source of the baggage message data for each preset data item, if the target baggage message data corresponding to the preset data item fails to be verified, and acquiring the preset target semantic conversion rule corresponding to the preset data item according to the data source of the baggage message data;

[0086] The second conversion unit is used to perform semantic conversion on the baggage message data corresponding to the preset data item based on the preset target semantic conversion rule corresponding to the preset data item, so as to obtain the target baggage message data corresponding to the preset data item.

[0087] Furthermore, the message processing system provided by the embodiment of the present invention further includes:

[0088] The second storage unit is used to store the target baggage message data into the Kafka message queue;

[0089] A data analysis unit is used to analyze the target baggage message data obtained from the Kafka message queue to obtain key information and baggage information;

[0090] The third storage unit is used to store key information in elasticsearch and mongo databases;

[0091] The fourth storage unit is used to collect statistics on the luggage data in the luggage information and store the statistical results in an Oracle database.

[0092] Furthermore, the message processing system provided by the embodiment of the present invention further includes:

[0093] A receiving unit, configured to receive a baggage data acquisition request sent by a user, wherein the baggage data acquisition request at least includes a target airport and a target airline;

[0094] The fourth acquisition unit is used to acquire baggage data matching the target airport and the target airline from the Oracle database;

[0095] The fifth storage unit is used to create a corresponding target message queue for the user based on the target airport and the target airline, and store the baggage data matching the target airport and the target airline in the target message queue, so that the user can obtain the baggage data matching the target airport and the target airline from the target message queue.

[0096] The units involved in the embodiments disclosed in the present invention may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".

[0097] The functions described above in the present application may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0098] An embodiment of the present application also provides an electronic device, which includes: a processor and a memory, wherein the processor and the memory are connected via a communication bus; wherein the processor is used to call and execute a program stored in the memory; and the memory is used to store a program, which is used to implement a message processing method.

[0099] Reference below Figure 3 , which shows a schematic diagram of the structure of an electronic device suitable for implementing the disclosed embodiment of the present invention. The electronic device in the disclosed embodiment of the present invention may include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 3 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments disclosed in the present invention.

[0100] like Figure 3As shown, the electronic device may include a processing device (e.g., a central processing unit, a graphics processor, etc.) 301, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 302 or a program loaded from a storage device 306 into a random access memory (RAM) 303. In RAM 303, various programs and data required for the operation of the electronic device are also stored. The processing device 301, ROM 302, and RAM 303 are connected to each other via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.

[0101] Typically, the following devices may be connected to the I / O interface 305: input devices 306 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 307 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 308 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 309. The communication devices 309 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although Figure 3 An electronic device having various devices is shown, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0102] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the message processing method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 309, or installed from the storage device 308, or installed from the ROM 302. When the computer program is executed by the processing device 301, the above-mentioned functions defined in the method of the embodiment disclosed in the present invention are executed.

[0103] Furthermore, an embodiment of the present invention also provides a computer-readable storage medium, in which computer-executable instructions are stored, and the computer-executable instructions are used to execute the message processing method.

[0104] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: obtains baggage message data uploaded by a user; verifies the baggage message data based on a preset message specification verification rule; if the baggage message data passes the verification, performs a semantic verification on the baggage message data according to a preset semantic verification rule; if the baggage message data fails the semantic verification, obtains a preset target semantic conversion rule matching the baggage message data, and performs a semantic conversion on the baggage message data based on the preset target semantic conversion rule to obtain target baggage message data.

[0105] In the context disclosed by the present invention, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0106] It should be noted that the computer-readable medium disclosed in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0107] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

Claims

1. A message processing method, characterized in that: Applied to a message processing platform, the method comprises: Obtain baggage message data uploaded by users; Verifying the baggage message data based on a preset message specification verification rule, including: determining whether the baggage message data includes a message header, a message tail, and data corresponding to each of a plurality of preset data items indicated by the preset message specification verification rule; if the baggage message data includes the message header, the message tail, and data corresponding to each of the preset data items indicated by the preset message specification verification rule, determining that the baggage message data verification has passed; if the baggage message data does not include any one of the message header and the message tail indicated by the preset message specification verification rule, or does not include data corresponding to any one of a plurality of preset data items, determining that the baggage message data verification has not passed, and the preset message specification verification rule indicates that the baggage message data must include a message header, a message tail, and data corresponding to each of a plurality of preset data items; If the baggage message data passes the verification, a semantic verification is performed on the baggage message data according to a preset semantic verification rule, wherein the preset semantic verification rule includes a preset semantic verification sub-rule corresponding to each preset data item, and the process of performing a semantic verification on the baggage message data according to the preset semantic verification rule is specifically as follows: for each preset data item, the baggage message data corresponding to the preset data item is obtained from the baggage message data, and a semantic verification is performed on the baggage message data corresponding to the preset data item based on the preset semantic verification sub-rule corresponding to the preset data item; If the semantic check of the baggage message data fails, a preset target semantic conversion rule matching the baggage message data is obtained, and based on the preset target semantic conversion rule, the baggage message data is semantically converted to obtain target baggage message data, which includes: for each preset data item, when determining that the semantic check of the baggage message data corresponding to the data item fails, a data source of the baggage message data is determined, so as to obtain the preset target semantic conversion rule corresponding to the data item according to the data source of the baggage message data, and according to the preset target semantic conversion rule corresponding to the obtained preset data item, the baggage message data corresponding to the preset data item is semantically converted to obtain the target baggage message data corresponding to the preset data item.

2. The method according to claim 1, characterized in that The method further comprises: If the baggage message data verification fails, the baggage message data is determined as abnormal data, and the abnormal data is stored as a diary record in the monitoring system.

3. The method according to claim 1, characterized in that The method further comprises: The target baggage message data is stored in the Kafka message queue; Analyze the target baggage message data obtained from the Kafka message queue to obtain key information and baggage information; The key information is stored in elasticsearch and mongo databases; The luggage data in the luggage information is counted and the statistical results are stored in an Oracle database.

4. The method according to claim 3, characterized in that The method further comprises: receiving a baggage data acquisition request sent by the user, wherein the baggage data acquisition request at least includes a target airport and a target airline; Obtaining baggage data matching the target airport and the target airline from the oracle database; Based on the target airport and the target airline, a corresponding target message queue is created for the user, and the baggage data matching the target airport and the target airline is stored in the target message queue, so that the user can obtain the baggage data matching the target airport and the target airline from the target message queue.

5. A message processing system, characterized in that: Applied to a message processing platform, the system comprises: A first acquisition unit, used to acquire baggage message data uploaded by a user; a first verification unit, configured to verify the baggage message data based on a preset message specification verification rule, including: determining whether the baggage message data includes a message header, a message tail, and data corresponding to each of a plurality of preset data items indicated by the preset message specification verification rule; if the baggage message data includes the message header, the message tail, and data corresponding to each of the preset data items indicated by the preset message specification verification rule, determining that the baggage message data verification has passed; if the baggage message data does not include any one of the message header and the message tail indicated by the preset message specification verification rule, or does not include data corresponding to any one of a plurality of preset data items, determining that the baggage message data verification has not passed, and the preset message specification verification rule indicates that the baggage message data must include a message header, a message tail, and data corresponding to each of a plurality of preset data items; a second verification unit, configured to perform semantic verification on the baggage message data according to a preset semantic verification rule if the baggage message data verification passes, wherein the preset semantic verification rule includes a preset semantic verification sub-rule corresponding to each preset data item, and the process of performing semantic verification on the baggage message data according to the preset semantic verification rule is specifically as follows: for each preset data item, obtaining baggage message data corresponding to the preset data item from the baggage message data, and performing semantic verification on the baggage message data corresponding to the preset data item based on the preset semantic verification sub-rule corresponding to the preset data item; The first conversion unit is used for, if the semantic check of the baggage message data fails, obtaining a preset target semantic conversion rule matching the baggage message data, and performing semantic conversion on the baggage message data based on the preset target semantic conversion rule to obtain target baggage message data, including: for each preset data item, determining that the semantic check of the baggage message data corresponding to the data item fails, determining the data source of the baggage message data, so as to obtain the preset target semantic conversion rule corresponding to the data item according to the data source of the baggage message data, and performing semantic conversion on the baggage message data corresponding to the preset data item according to the preset target semantic conversion rule corresponding to the acquired preset data item to obtain the target baggage message data corresponding to the preset data item.

6. An electronic device, characterized in that: include: A processor and a memory, wherein the processor and the memory are connected via a communication bus; wherein the processor is used to call and execute a program stored in the memory; The memory is used to store a program, and the program is used to implement the message processing method according to any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to execute the message processing method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Semantic conversion method of edge layer in industrial internet and middleware

    CN110399612A

  • Data processing method and system thereof

    CN111478900A

  • Data exchange method and system

    CN111510440A

  • Insurance detail data submission method and device

    CN112465656A