CN114266259A - Message processing method, system, electronic equipment and storage medium - Google Patents
Message processing method, system, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN114266259A CN114266259A CN202111655730.1A CN202111655730A CN114266259A CN 114266259 A CN114266259 A CN 114266259A CN 202111655730 A CN202111655730 A CN 202111655730A CN 114266259 A CN114266259 A CN 114266259A
- Authority
- CN
- China
- Prior art keywords
- message
- data
- preset
- luggage
- message data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention provides a message processing method, a message processing system, electronic equipment and a storage medium, which are characterized in that luggage message data uploaded by a user are acquired; checking the luggage message data based on a preset message standard checking rule; if the luggage message data passes the verification, performing semantic verification on the luggage message data according to a preset semantic verification rule; if the luggage message data semantic check fails, acquiring a preset target semantic conversion rule matched with the luggage message data, and performing semantic conversion on the luggage message data based on the preset target semantic conversion rule to obtain target luggage message data. Based on the invention, the unification and the sharing of the luggage message data among various industries can be realized.
Description
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method and a system for processing a packet, an electronic device, and a storage medium.
Background
With the development of civil aviation industry, the number of passengers entering and leaving an airport in an airport is increased continuously, and the baggage handling capacity is increased greatly. In order to improve the processing efficiency of the passenger baggage message, the airport, the airline company, and the third party unit need to cooperate with each other to share their respective baggage messages. However, baggage messages generated by different airports and airlines have certain differences in format and semantics, so that the unification and sharing of baggage message data among various industries cannot be directly realized.
In order to realize the unification and sharing of the baggage message data among the industries, the baggage message data among the industries needs to be processed, and at present, an effective mode for processing the baggage message data to realize the unification and sharing of the baggage message data among the industries does not exist.
Disclosure of Invention
In view of this, the present invention provides a message processing method, a message processing system, an electronic device, and a storage medium, so as to achieve unification and sharing of baggage message data among various industries.
The first aspect of the present invention discloses a message processing method, which is applied to a message processing platform, and the method comprises:
obtaining luggage message data uploaded by a user;
checking the luggage message data based on a preset message standard checking rule;
if the luggage message data passes the verification, performing semantic verification on the luggage message data according to a preset semantic verification rule;
if the luggage message data does not pass the semantic verification, acquiring a preset target semantic conversion rule matched with the luggage message data, and performing semantic conversion on the luggage message data based on the preset target semantic conversion rule to obtain target luggage message data.
The second aspect of the present invention discloses a message processing system, which is applied to a message processing platform, and the system comprises:
the first acquisition unit is used for acquiring luggage message data uploaded by a user;
the first checking unit is used for checking the luggage message data based on a preset message standard checking rule;
the second checking unit is used for performing semantic checking on the luggage message data according to a preset semantic checking rule if the luggage message data passes the checking;
the first conversion unit is used for acquiring a preset target semantic conversion rule matched with the baggage message data if the semantic verification of the baggage message data fails, and performing semantic conversion on the baggage message data based on the preset target semantic conversion rule to obtain target baggage message data.
A third aspect of the present invention discloses an electronic apparatus comprising: the system comprises a processor and a memory, wherein the processor and the memory are connected through a communication bus; the processor is used for calling and executing the program stored in the memory; the memory is configured to store a program, where the program is configured to implement the message processing method disclosed in the first aspect of the present invention.
A fourth aspect of the present invention discloses a computer-readable storage medium, in which computer-executable instructions are stored, and the computer-executable instructions are configured to execute the message processing method disclosed in the first aspect of the present invention.
The invention provides a message processing method, a message processing system, electronic equipment and a storage medium, wherein after baggage message data uploaded by a user is received, the obtained baggage message data is checked based on a preset message standard check rule, the baggage message data is subjected to semantic check according to the preset semantic check rule under the condition that the baggage message data passes the check, a preset target semantic conversion rule matched with the baggage message data is obtained in advance under the condition that the baggage message data fails the semantic check, and the baggage message data is converted based on the preset target semantic conversion rule to obtain target baggage message data. According to the technical scheme provided by the invention, under the condition that the obtained luggage message data meets the preset message standard check rule, if the luggage message data does not meet the preset semantic check rule, the luggage message data can be further converted into the luggage message data with uniform semantic standard by using the preset target semantic conversion rule matched with the luggage message data, so that the luggage message data with the same format can be shared among industries, the processing efficiency of the luggage message data by each industry is improved, and the luggage processing business and the luggage transportation service of each industry can be better improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
The above and other features, advantages and aspects of the disclosed embodiments will become more apparent from the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
Fig. 1 is a schematic flow chart of a message processing method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a message processing system according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "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". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules, or units, and are not used for limiting the order or interdependence of the functions performed by the devices, modules, or units.
It is noted that references to "a", "an", and "the" modifications in the disclosure are exemplary rather than limiting, and that those skilled in the art will understand that "one or more" unless the context clearly dictates otherwise.
Referring to fig. 1, a schematic flow chart of a message processing method according to an embodiment of the present invention is shown, where the message processing method is applied to a message processing platform, and specifically includes the following steps:
s101: and acquiring luggage message data uploaded by a user.
In this embodiment, as a preferred mode of this embodiment, a user may directly invoke an API interface provided by a message processing platform through a corresponding airport system to upload baggage message data to the message processing platform, so that the message processing platform obtains the baggage message data uploaded by the user.
As another preferred mode of the embodiment of the present application, a user may also upload, through a corresponding airport system, baggage message data to be uploaded to a TUMS queue local to the airport system, pull, through a pull program preset in a data processing platform system, the corresponding baggage message data from the TUMS queue, and upload the pulled baggage message data to a baggage message processing platform through a reporting interface of the platform system, so that the baggage message processing platform obtains the baggage message data uploaded by the user.
As another preferred mode of the embodiment of the present application, when a user has a user permission of the baggage message processing platform, the user may directly upload the local baggage message data of the corresponding airport system to a preset message queue of the baggage message processing platform, so that the baggage message processing platform obtains the corresponding baggage message data from the preset message queue.
It should be noted that the data format of the uploaded baggage message data may be XML, JSON, or a character string, etc.; the uploaded Baggage Message data may be Baggage Source Message data (BSM) and Baggage processing Message data (BPM).
S102: checking the luggage message data based on a preset message standard checking rule; if the baggage message data check fails, executing step S103; and if the baggage message data passes the verification, executing the step S104.
In the embodiment of the application, a preset message specification check rule is preset, and the preset message specification check rule indicates that the baggage message data needs to include a message header, a message tail and data corresponding to each preset data item in multiple preset data items.
It should be noted that the preset message specification check rule can be a civil aviation luggage message data interaction specification; the plurality of preset data items include a.v data item,. J data item,. F data item,. N data item,. S data item, and the like.
In the specific execution process of step S102, after obtaining the baggage message data uploaded by the user, the baggage message processing platform may check the obtained baggage message data based on a preset message specification check rule, specifically, determine whether the baggage message data all includes a message header, a message tail, and a required data item indicated by the preset message specification check rule; if the baggage message data does not contain any one of the message header and the message trailer indicated by the preset message standard verification rule or data corresponding to any one of a plurality of preset data items, determining that the baggage message data verification fails, and executing step S103.
And if the baggage message data contains the message header and the message tail indicated by the preset message standard verification rule and the data corresponding to each preset data item to be contained, determining that the baggage message data passes the verification, and executing the step S104.
For example, a hong Kong international airport locally ships a piece of luggage to generate BPM luggage message data in a character string format, and since a TUMS message queue is deployed at a hong Kong local airport, the hong Kong airport can directly transmit the luggage message data to the TUMS message queue at the local airport through an airport local system so as to pull corresponding luggage message data from the TUMS message queue through a preset pulling program, and then a reporting interface of the platform is called to report the luggage message data to a luggage message processing platform so that the luggage message processing platform can acquire the uploaded luggage message data. Wherein, a piece of luggage is locally consigned at the hong Kong International airport, BPM luggage message data in a character string format is generated as a message header,. V/1LHKG,. J/S/AHK/RFDP03/25AUG/111951L/CHKIN/,. F/MU0502/25AUG/PVG/Y,. N/3781138944001,. S/Y/47L/C/035 and a message tail.
The baggage message processing platform checks the acquired baggage message data based on the civil aviation baggage message data exchange specification (preset message specification check rule), and can determine that the baggage message data meets the civil aviation baggage message data exchange rule and the baggage message data passes the check.
S103: and determining the luggage message data as abnormal data, and storing the abnormal data as a diary record to a monitoring system.
In the specific process of executing step S103, when it is determined that the obtained baggage message data does not satisfy the preset message specification check rule, that is, it is determined that the baggage message data fails to pass the check, the baggage message data is determined as abnormal data, and a corresponding log record is generated according to the abnormal data, so as to store the log record in the monitoring system.
S104: performing semantic verification on the luggage message data according to a preset semantic verification rule; if the semantic check of the baggage message data fails, step S105 is executed.
In the specific process of executing step S104, when it is determined that the obtained baggage message data meets the preset message specification check rule, that is, when it is determined that the baggage message data passes the semantic check, the further semantic check is performed on the baggage message data according to the preset semantic check rule.
In the embodiment of the present application, the preset semantic rules include preset semantic syndrome rules corresponding to each preset data item, and the process of performing semantic check on the baggage message data according to the preset semantic check rules specifically includes: and for each preset data item, acquiring baggage message data corresponding to the preset data item from the baggage message data, performing semantic verification on the baggage message data corresponding to the preset data item based on a preset semantic syndrome rule corresponding to the preset data item, and executing step S105 if the baggage message data does not pass the semantic verification.
If the semantic check of the baggage message data corresponding to the preset data item is passed, the baggage message data corresponding to the preset data item can be determined as 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 a Kafka message queue, so that target baggage message data corresponding to the corresponding preset data item can be subsequently acquired from the Kafka message queue, and the acquired target baggage message data is analyzed according to a uniform message standard to acquire key information and baggage information; storing the obtained key information into an elastic search and mongo database; and counting the baggage data in the obtained baggage information in a flow calculation mode, and storing the obtained counting result into an oracle database.
In this embodiment of the application, if the preset data item is the.v data item, the preset semantic syndrome rule corresponding to the.v data item may be: v/data dictionary version number + baggage source identification; if the preset data item is the J data item, the preset semantic syndrome rule corresponding to the J data item, which is preset, may be: j/secondary code/agent number/scanner identification/date/time/read location identification/send to location identification; if the preset data item is the F data item, the preset semantic syndrome rule corresponding to the F data item, which is preset, may be: f/flight number/date/arrival airport/passenger bay; if the preset data item is the.n data item, the preset semantic syndrome rule corresponding to the.n data item, which is preset, may be: n/baggage type identification (1 bit) + airline digital three-character code (3 bits) + baggage tag number (6 bits) + number of consecutive baggage (3 bits); if the preset data item is the data item S, the preset semantic syndrome rule corresponding to the data item S, which is preset, can be: s/loadable/seat number/passenger status/boarding number.
For example, if the baggage message data corresponding to the V data item in the obtained baggage message data is V/1LHKG, where 1 is a data dictionary version number of 1, and LHKG is a local message of international airport Hong Kong (HKG); and then, carrying out semantic verification on the baggage message data corresponding to the V data item according to a preset semantic syndrome rule (V/data dictionary version number + baggage source identification) corresponding to the V data item, so as to determine that the semantic verification of the baggage message data corresponding to the V data item passes.
If the obtained baggage message data corresponding to the data item S is S/Y/47L/C/035, wherein Y indicates that the baggage is loadable, 47L indicates that the passenger seat number is 47L, C indicates that the passenger state is on-duty, 035 indicates that the boarding number is 035, and a preset semantic syndrome rule corresponding to the data item S (S/loadable/seat number/passenger state/boarding number/security check number/passenger data state/transportable/baggage state or not) is preset, the semantic check is performed on the baggage message data corresponding to the data item S, and the semantic check of the baggage message data corresponding to the data item S can be determined to pass.
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 the AHK indicates that the operator ID is AHK, the RFDP03 indicates that the operating equipment ID is RFDP03, and the 25AUG/111951L indicates that the baggage message data reading date and time of the preset data item are respectively 8 months, 25 months, 19 minutes and 51 seconds at 11 hours in Japan, and the CH represents consignment in the baggage message data corresponding to the preset data item.
According to a preset semantic syndrome rule (J data item format: J/secondary code/agent number/scanner identification/date/time/reading place identification/sending place identification) corresponding to the J data item, semantic verification is carried out on the luggage message data corresponding to the J data item, and the fact that the semantic verification of the luggage message data corresponding to the J data item is not passed can be determined.
If the baggage message data corresponding to the F data item in the obtained baggage message data is F/MU0502/25AUG/PVG/Y, wherein the baggage message data corresponding to the data item can be interpreted as a Y-cabin passenger message with a flight number of MU0502 flying from a hong Kong International airport (HKG) to a Pudong International airport (PVG) within 8 months and 25 days; according to a preset semantic check sub rule (F data item: F/flight number/date/arrival airport/passenger cabin) corresponding to the F data item, the semantic check of the baggage message data corresponding to the F data item is carried out, and the semantic check of the baggage message data corresponding to the F data item can be determined to be passed.
If the baggage message data corresponding to the N data item in the obtained baggage message data is N/3781138944001; according to a preset semantic syndrome rule (N/luggage type identification (1 bit) + airline digital three-character code (3 bits) + luggage number (6 bits) + continuous luggage number (3 bits)) corresponding to the N data item, semantic checking is carried out on the luggage message data corresponding to the N data item, and the fact that the semantic checking of the luggage message data corresponding to the N data item is passed can be determined.
S105: and acquiring a preset semantic conversion rule matched with the baggage message data, and performing semantic conversion on the baggage message data based on the preset semantic conversion rule to obtain target baggage message data.
In the specific execution process of step S105, in a case that it is determined that the semantic check of the baggage message data corresponding to each preset data item fails, a data source of the baggage message data is determined, so as to obtain a preset target semantic conversion rule corresponding to the data item according to the data source of the baggage message data, and perform semantic conversion on the baggage message data corresponding to the preset data item according to the obtained preset target semantic conversion rule corresponding to the preset data item, so as to obtain target baggage message data corresponding to the preset data item.
For example, if the baggage message data corresponding to the J data item in the obtained baggage message data is J/S/AHK/RFDP03/25AUG/111951L/CHKIN, where AHK indicates that the operator ID is AHK, RFDP03 indicates that the operator ID is RFDP03, and 25AUG/111951L indicates that the baggage message data reading date and time of the preset data item are respectively 19 minutes and 51 seconds at time 11 in japan of 8 months and 25 months, and CH indicates that CHKIN in the baggage message data corresponding to the preset data item represents consignment.
According to a preset semantic syndrome rule (J data item format: J/secondary code/agent number/scanner identification/date/time/reading place identification/sending place identification) corresponding to the J data item, semantic verification is carried out on the luggage message data corresponding to the J data item, and the fact that the semantic verification of the luggage message data corresponding to the J data item is not passed can be determined.
And if the data source of the baggage message data is determined to be the hong Kong international airport, the destination is known by docking with the hong Kong international airport, acquiring the preset destination semantic conversion rule of the J data item, and performing semantic conversion on the baggage message data corresponding to the J data item through the acquired preset destination semantic conversion rule of the J data item to obtain the destination baggage message data corresponding to the J data item, which is J/S/AHK/RFDP03/25AUG/111951L/CK/SE, wherein CK and SE respectively represent a point identification airport check-in-counter and a security screening place specified in the civil aviation baggage message data exchange specification.
Further, in the embodiment of the present application, under the condition that it is determined that the semantic check of the baggage data corresponding to the preset data item fails, a preset target semantic conversion rule matched with the baggage message data corresponding to the preset data item is obtained, and the semantic conversion is performed on the baggage message data based on the preset target semantic conversion rule to obtain target baggage message data, and then 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 subsequently obtained from the Kafka message queue, and the obtained target baggage message data is analyzed according to the unified message specification to obtain key information and baggage information; storing the obtained key information into an elastic search and mongo database; and counting the baggage data in the obtained baggage information in a flow calculation mode, and storing the obtained counting result into an oracle database.
Further, in the embodiment of the present application, the message processing platform provided by the present invention may further receive a baggage data acquisition request sent by a user, and when the message processing platform receives the baggage data acquisition request sent by the user; acquiring luggage information matched with a target airport and a target airline department in the luggage data acquisition request from an oracle database; and creating a corresponding target message queue for the user based on the target airport and the target navigation department, and storing the luggage information matched with the target airport and the target navigation department into the target message queue so that the user can obtain the luggage information matched with the target airport and the target navigation department from the target message queue.
It should be noted that, if the baggage data requested by the user is baggage source message data BSM, after the baggage data matched with the request is acquired, a corresponding BSM message queue (target message queue) may be created for the user; if the baggage data requested by the user is the baggage processing message data BPM, after the baggage data matched with the request is acquired, a corresponding BPM message queue (target message queue) may be created for the user.
The invention provides a message processing method, which comprises the steps of after receiving luggage message data uploaded by a user, checking the acquired luggage message data based on a preset message standard check rule, carrying out semantic check on the luggage message data according to a preset semantic check rule under the condition that the luggage message data passes the check, acquiring a preset target semantic conversion rule matched with the luggage message data under the condition that the luggage message data fails the semantic check, and converting the luggage message data based on the preset target semantic conversion rule to obtain the target luggage message data. According to the technical scheme provided by the invention, under the condition that the obtained luggage message data meets the preset message standard check rule, if the luggage message data does not meet the preset semantic check rule, the luggage message data can be further converted into the luggage message data with uniform semantic standard by using the preset target semantic conversion rule matched with the luggage message data, so that the luggage message data with the same format can be shared among industries, the processing efficiency of the luggage message data by each industry is improved, and the luggage processing business and the luggage transportation service of each industry can be better improved.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In some embodiments, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText transfer protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The names of messages or information exchanged between devices in the disclosed embodiments are for illustrative purposes only and are not intended to limit the scope of such messages or information.
Although the operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
Computer program code for carrying out operations for the disclosed invention may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of 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 the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
Corresponding to the above-mentioned message processing method disclosed in the embodiment of the present invention, referring to fig. 2, the embodiment of the present invention further provides a schematic structural diagram of a message processing system, where the message processing system is applied to a message processing platform, and the message processing system includes:
the first obtaining unit 21 is configured to obtain baggage message data uploaded by a user;
the first checking unit 22 is configured to check the baggage message data based on a preset message specification checking rule;
the second checking unit 23 is configured to perform semantic checking on the baggage message data according to a preset semantic checking rule if the baggage message data passes the checking;
the first conversion unit 24 is configured to, if the baggage message data semantic check fails, obtain a preset target semantic conversion rule matched with the baggage message data, and perform semantic conversion on the baggage message data based on the preset target semantic conversion rule to obtain target baggage message data.
The specific principle and the execution process of each unit in the message processing system disclosed in the embodiment of the present invention are the same as those of the message processing method disclosed in fig. 1 in the embodiment of the present invention, and reference may be made to corresponding parts in the message processing method disclosed in fig. 1 in the embodiment of the present invention, which are not described herein again.
The invention provides a message processing system, which is characterized in that after luggage message data uploaded by a user is received, the acquired luggage message data is checked based on a preset message standard check rule, the luggage message data is subjected to semantic check according to a preset semantic check rule under the condition that the luggage message data passes the check, a preset target semantic conversion rule matched with the luggage message data is acquired under the condition that the luggage message data fails the semantic check, and the luggage message data is converted based on the preset target semantic conversion rule to obtain the target luggage message data. According to the technical scheme provided by the invention, under the condition that the obtained luggage message data meets the preset message standard check rule, if the luggage message data does not meet the preset semantic check rule, the luggage message data can be further converted into the luggage message data with uniform semantic standard by using the preset target semantic conversion rule matched with the luggage message data, so that the luggage message data with the same format can be shared among industries, the processing efficiency of the luggage message data by each industry is improved, and the luggage processing business and the luggage transportation service of each industry can be better improved.
Further, the message processing system provided in the embodiment of the present invention further includes:
and the first storage unit is used for determining the luggage message data as abnormal data if the luggage message data is not verified, and storing the abnormal data serving as a diary record into the monitoring system.
Optionally, the first check rule includes:
the judging unit is used for judging whether the luggage message data contains a message head and a message tail which are indicated by a preset message standard check rule and data corresponding to each preset data item in a plurality of preset data items;
the first determining unit is used for determining that the luggage message data passes the check if the luggage message data contains a message header and a message tail indicated by a preset message standard check rule and data corresponding to each preset data item;
and the second determining unit is used for determining that the luggage message data check fails if the luggage message data does not contain any one of a message header and a message tail indicated by the preset message standard check rule or does not contain data corresponding to any one of a plurality of preset data items.
Optionally, the second verification unit includes:
the second acquisition unit is used for acquiring the baggage message data corresponding to the preset data items from the baggage message data aiming at each preset data item;
and the third checking unit is used for performing semantic checking on the luggage message data corresponding to the preset data item based on a preset semantic checker rule corresponding to the preset data item.
Optionally, the first conversion unit includes:
a third obtaining unit, configured to determine, for each preset data item, a data source of the baggage message data if the target baggage message data corresponding to the preset data item is not verified, and obtain a preset target semantic conversion rule corresponding to the preset data item according to the data source of the baggage message data;
and the second conversion unit is used for performing semantic conversion on the baggage message data corresponding to the preset data item based on a preset target semantic conversion rule corresponding to the preset data item to obtain target baggage message data corresponding to the preset data item.
Further, the message processing system provided in the embodiment of the present invention further includes:
the second storage unit is used for storing the target baggage message data into a Kafka message queue;
the data analysis unit is used for analyzing the target baggage message data acquired from the Kafka message queue to obtain key information and baggage information;
the third storage unit is used for storing the key information to an elasticsearch and mongo database;
and the fourth storage unit is used for counting the luggage data in the luggage information and storing the counting result into an oracle database.
Further, the message processing system provided in the embodiment of the present invention further includes:
the system comprises a receiving unit, a processing unit and a display unit, wherein the receiving unit is used for receiving a luggage data acquisition request sent by a user, and the luggage data acquisition request at least comprises a target airport and a target navigation department;
the fourth acquisition unit is used for acquiring luggage data matched with the target airport and the target navigation department from the oracle database;
and the fifth storage unit is used for creating a corresponding target message queue for the user based on the target airport and the target navigation department and storing the luggage data matched with the target airport and the target navigation department into the target message queue so that the user can conveniently store the luggage data matched with the target airport and the target navigation department from the target message queue.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first retrieving unit may also be described as a "unit for retrieving at least two internet protocol addresses".
The functions described above herein 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 a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
An embodiment of the present application further provides an electronic device, which includes: the system comprises a processor and a memory, wherein the processor and the memory are connected through a communication bus; the processor is used for calling and executing the program stored in the memory; the memory is used for storing a program, and the program is used for realizing the message processing method.
Referring now to FIG. 3, a block diagram of an electronic device suitable for use in implementing the disclosed embodiments of the invention is shown. The electronic devices in the disclosed embodiments of the present invention may include, but are 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), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 3 is only an example, and should not bring any limitations to the function and scope of use of the disclosed embodiments of the present invention.
As shown in fig. 3, the electronic device may include a processing apparatus (e.g., a central processing unit, a graphics processor, etc.) 301 that may 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 apparatus 306 into a Random Access Memory (RAM) 303. In the RAM 303, various programs and data necessary for the operation of the electronic apparatus are also stored. The processing device 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
Generally, the following devices may be connected to the I/O interface 305: input devices 306 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 307 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage devices 308 including, for example, magnetic tape, hard disk, etc.; and a communication device 309. The communication means 309 may allow the electronic device to communicate wirelessly or by wire with other devices to exchange data. While fig. 3 illustrates an electronic device having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program containing program code for performing the message processing method illustrated in the flowchart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 309, or installed from the storage means 308, or installed from the ROM 302. The computer program, when executed by the processing device 301, performs the above-described functions defined in the methods of the disclosed embodiments of the invention.
Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and the computer-executable instructions are used to execute a message processing method.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: obtaining luggage message data uploaded by a user; checking the luggage message data based on a preset message standard checking rule; if the luggage message data passes the verification, performing semantic verification on the luggage message data according to a preset semantic verification rule; if the luggage message data does not pass the semantic verification, acquiring a preset target semantic conversion rule matched with the luggage message data, and performing semantic conversion on the luggage message data based on the preset target semantic conversion rule to obtain target luggage message data.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The 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, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
It should be noted that the computer readable medium mentioned above in the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
Claims (10)
1. A message processing method is applied to a message processing platform, and the method comprises the following steps:
obtaining luggage message data uploaded by a user;
checking the luggage message data based on a preset message standard checking rule;
if the luggage message data passes the verification, performing semantic verification on the luggage message data according to a preset semantic verification rule;
if the luggage message data does not pass the semantic verification, acquiring a preset target semantic conversion rule matched with the luggage message data, and performing semantic conversion on the luggage message data based on the preset target semantic conversion rule to obtain target luggage message data.
2. The method of claim 1, further comprising:
and if the luggage message data is not verified, determining the luggage message data as abnormal data, and storing the abnormal data as a diary record to a monitoring system.
3. The method according to claim 1, wherein the verifying the baggage message data based on a predetermined message specification verification rule comprises:
judging whether the luggage message data contains a message head and a message tail indicated by a preset message standard check rule and data corresponding to each preset data item in a plurality of preset data items;
if the baggage message data contains a message header and a message tail indicated by the preset message standard check rule and data corresponding to each preset data item, determining that the baggage message data passes the check;
and if the baggage message data does not contain any one of the message header and the message trailer indicated by the preset message standard check rule or does not contain data corresponding to any one of the preset data items, determining that the baggage message data fails to check.
4. The method according to claim 3, wherein the preset semantic check rule includes a preset semantic check sub rule corresponding to each preset data item, and the performing semantic check on the baggage message data according to the preset semantic check rule includes:
for each preset data item, acquiring baggage message data corresponding to the preset data item from the baggage message data;
and performing semantic verification on the luggage message data corresponding to the preset data item based on a preset semantic syndrome rule corresponding to the preset data item.
5. The method according to claim 4, wherein if the baggage message data is not verified, 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, comprises:
for each preset data item, if the target baggage message data corresponding to the preset data item is not verified, determining a data source of the baggage message data, and acquiring a preset target semantic conversion rule corresponding to the preset 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 based on the preset target semantic conversion rule corresponding to the preset data item to obtain the target baggage message data corresponding to the preset data item.
6. The method of claim 1, further comprising:
storing the target luggage message data to a Kafka message queue;
analyzing the target baggage message data acquired from the Kafka message queue to obtain key information and baggage information;
storing the key information to an elasticsearch and mongo database;
and counting the luggage data in the luggage information, and storing the counting result into an oracle database.
7. The method of claim 6, further comprising:
receiving a luggage data acquisition request sent by the user, wherein the luggage data acquisition request at least comprises a target airport and a target navigation department;
acquiring luggage data matched with the target airport and the target airline department from the oracle database;
and creating a corresponding target message queue for the user based on the target airport and the target navigation, and storing the luggage data matched with the target airport and the target navigation into the target message queue, so that the user can conveniently obtain the luggage data matched with the target airport and the target navigation from the target message queue.
8. A message processing system, for use in a message processing platform, the system comprising:
the first acquisition unit is used for acquiring luggage message data uploaded by a user;
the first checking unit is used for checking the luggage message data based on a preset message standard checking rule;
the second checking unit is used for performing semantic checking on the luggage message data according to a preset semantic checking rule if the luggage message data passes the checking;
the first conversion unit is used for acquiring a preset target semantic conversion rule matched with the baggage message data if the semantic verification of the baggage message data fails, and performing semantic conversion on the baggage message data based on the preset target semantic conversion rule to obtain target baggage message data.
9. An electronic device, comprising: the system comprises a processor and a memory, wherein the processor and the memory are connected through a communication bus; the processor is used for calling and executing the program stored in the memory; the memory for storing a program for implementing the message processing method according to any one of claims 1 to 7.
10. A computer-readable storage medium having computer-executable instructions stored thereon for performing the message processing method of any of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111655730.1A CN114266259A (en) | 2021-12-30 | 2021-12-30 | Message processing method, system, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111655730.1A CN114266259A (en) | 2021-12-30 | 2021-12-30 | Message processing method, system, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114266259A true CN114266259A (en) | 2022-04-01 |
Family
ID=80832003
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111655730.1A Pending CN114266259A (en) | 2021-12-30 | 2021-12-30 | Message processing method, system, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114266259A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114710422A (en) * | 2022-04-02 | 2022-07-05 | 中国民航信息网络股份有限公司 | Luggage message format checking method and related device |
CN115455922A (en) * | 2022-09-16 | 2022-12-09 | 中国电信股份有限公司 | Form verification method and device, electronic equipment and storage medium |
-
2021
- 2021-12-30 CN CN202111655730.1A patent/CN114266259A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114710422A (en) * | 2022-04-02 | 2022-07-05 | 中国民航信息网络股份有限公司 | Luggage message format checking method and related device |
CN115455922A (en) * | 2022-09-16 | 2022-12-09 | 中国电信股份有限公司 | Form verification method and device, electronic equipment and storage medium |
CN115455922B (en) * | 2022-09-16 | 2024-02-02 | 中国电信股份有限公司 | Form verification method, form verification device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111581291B (en) | Data processing method, device, electronic equipment and readable medium | |
CN114266259A (en) | Message processing method, system, electronic equipment and storage medium | |
CN111506614B (en) | Method and device for identifying civil aviation transfer baggage and storage medium | |
WO2022135547A1 (en) | Service operation method and apparatus, electronic device, and computer storage medium | |
CN112307774B (en) | Dialogue understanding method and device, readable medium and electronic equipment | |
CN111628938B (en) | Branch merging method, device, electronic equipment and computer storage medium | |
CN111966950A (en) | Log sending method and device, electronic equipment and computer readable medium | |
CN118071287A (en) | Value flow voucher information sending method and device, electronic equipment and readable medium | |
CN112231327B (en) | Flight information updating method, device, server and storage medium | |
CN112486825B (en) | Multi-lane environment architecture system, message consumption method, device, equipment and medium | |
CN116720202B (en) | Service information detection method, device, electronic equipment and computer readable medium | |
CN112215141A (en) | Biological feature recognition method and device, electronic equipment and storage medium | |
CN113312420B (en) | Flight data processing method, device, equipment and storage medium | |
CN115660771A (en) | Waybill processing method and device, electronic equipment and computer readable medium | |
CN115344615A (en) | Information query method, system, electronic equipment and storage medium | |
CN114386951A (en) | Process approval method and device, electronic equipment and storage medium | |
CN113918525A (en) | Data exchange scheduling method, system, electronic device, medium, and program product | |
CN112487416A (en) | Business process verification method and device and electronic equipment | |
CN112231560A (en) | Flight information query method, device, equipment and readable storage medium | |
CN115062022B (en) | Aircraft manual splitting method, device, electronic equipment and computer readable medium | |
CN111581305B (en) | Feature processing method, device, electronic equipment and medium | |
CN115345766A (en) | Passenger security check method, system, electronic device and storage medium | |
CN114710422A (en) | Luggage message format checking method and related device | |
CN113077353B (en) | Method, device, electronic equipment and medium for generating nuclear insurance conclusion | |
CN114372070B (en) | Data consistency checking method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |