PDF type aircraft maintenance manual query method and device, electronic equipment and storage medium
Through the client and index library version synchronization and cache and partition search mechanism, the query process of aircraft maintenance manuals is optimized, the problems of inconvenient access and untimely update of maintenance manuals are solved, and efficient and safe maintenance manual management and query are achieved. .
Patent Information
- Application Number
- CN202411221053.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-02
- Publication Date
- 2025-01-03
AI Technical Summary
In the prior art, the access of the aircraft maintenance manual is inconvenient and timely update, resulting in maintenance quality and safety risks. Especially in a large number of repair manuals in PDF format, it is time-consuming to find and update files and is prone to use outdated or invalid data.
The index detection and version synchronization are carried out through the client and the index library, ensuring that the accessed index files are the latest version, and a cache and partition search mechanism, priority division and adaptive priority algorithm are introduced to improve query efficiency and accuracy.
It significantly improves the access efficiency and security of the repair manual, ensures real-time and consistency of data, reduces operational risks, and improves the reliability and query performance of the system.
Smart Images

Figure CN119248719A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of maintenance manual preview, and in particular to a PDF aircraft maintenance manual query method, device, electronic equipment and computer storage medium. Background Art
[0002] Aircraft maintenance manuals are indispensable materials for aircraft maintenance personnel when performing daily aircraft maintenance and service work. These maintenance manuals are usually provided by the manufacturer of the aircraft or its components and are compiled in accordance with international aviation technical standards such as ATA100 or ATA2200 to ensure the accuracy and timeliness of the content. The maintenance manuals are detailed and cover everything from simple daily inspections to complex troubleshooting and repair processes.
[0003] In the prior art, some aircraft maintenance manuals are stored in PDF format, and the overall structure and brief content of the manual are summarized through JSON files, while XML files are used to store detailed metadata related to each PDF file, such as specific chapters and revision information (version number). Aircraft maintenance personnel need to use special browsing software that can parse JSON and XML to search and read on personal computers, so as to quickly locate specific PDF files or even specific chapters. Taking the illustrated parts manual of a certain type of aircraft as an example, its chapter directory contains 41 subfolders and more than 3,000 files, with a total size of nearly 800MB; in addition, the aircraft also includes dozens of supporting maintenance manuals such as aircraft wiring diagram manuals, aircraft maintenance construction manuals, and aircraft system principle manuals. The number of maintenance manual files for the entire set of aircraft exceeds 30,000. If it is not based on JSON and XML indexes, it will take a lot of time to only find the required aircraft maintenance manual chapter directory. Therefore, it is necessary to use special browsing software that can parse JSON and XML to search and browse the file contents in the corresponding maintenance manual chapter directory.
[0004] However, since a small part or most of the files in the aircraft maintenance manual need to be updated frequently, maintenance personnel need to use special browsing software on their personal computers to query the latest version of the manual before performing each maintenance work, and download the required files to a mobile device or print a paper version to browse at the maintenance site. However, the above method is prone to failure to update immediately due to the negligence of maintenance personnel or other circumstances, which may result in the files browsed during on-site maintenance not being in the latest version, posing a hidden danger to maintenance quality and safety. Accordingly, the prior art has the problem of inconvenient access and untimely updates when previewing a large number of maintenance manuals in PDF format, resulting in safety hazards in performing maintenance work. Summary of the invention
[0005] Based on this, the object of the present invention is to provide a method for querying PDF aircraft maintenance manuals.
[0006] A method for querying a PDF aircraft maintenance manual comprises the following steps:
[0007] S1: Request to obtain maintenance manual information specified by the client;
[0008] S2: performing index detection and version synchronization on an index library according to the specified maintenance manual information to obtain the latest version of the maintenance manual information;
[0009] S3: According to the latest version of the maintenance manual information, obtain the file information specified by the client, and display the specified file in the maintenance manual database to the client.
[0010] Compared with the prior art, the PDF aircraft maintenance manual query method disclosed in the present invention performs index detection and version synchronization between the client and the index library, so that the system can ensure that the index file accessed by the client is the latest version, thereby reducing query errors that may be caused by data asynchrony, thereby reducing operational risks caused by using outdated or invalid data, and improving the security and reliability of the system.
[0011] Furthermore, the step S2 includes the following sub-steps:
[0012] Check the version status in the index library according to the specified maintenance manual information and determine whether synchronization is required to obtain the latest version of the maintenance manual information Manual new , its logic is specifically expressed as:
[0013]
[0014] In the formula, manual local For local cache index files, manualin dex It is the index file of the index library. The conditions for obtaining Sync are as follows:
[0015]
[0016] In the formula, Sync is the update condition, ver local The version of the maintenance manual cached locally, that is, the ver in the specified maintenance manual information Manual; ver index The version of the maintenance manual in the index library; none means no version information;
[0017] The step S3 comprises the following sub-steps:
[0018] S31: Update the latest version of the maintenance manual new The chapter directory Dir of the maintenance manual in the is displayed to the user's client interface, and the structure of the chapter directory is as follows:
[0019] Dir={Chapter1, Chapter2,…,Chapter n}
[0020] In the formula, c n It is the nth chapter of the current maintenance manual and is specifically expressed as follows:
[0021] Chapter n ={PDF1, PDF2, ..., PDF m}
[0022] In the formula, PDF m Index to the mth PDF file of the nth chapter of the current maintenance manual;
[0023] S32: Obtain a specified file in the maintenance manual database according to the file information specified by the client, and display the specified file to the client.
[0024] The present invention ensures that the client always accesses the latest version of the maintenance manual information by determining the local cache and index library, thereby ensuring the real-time and consistency of the data and avoiding potential safety hazards caused by outdated data.
[0025] Further, when the catalog displays several chapters to the client, the PDF file index related to the maintenance manual database is queried by keyword, specifically:
[0026] Let the keyword given by the user be target;
[0027] Assume the total number of PDF files in the current maintenance manual is N;
[0028] The result of the relevant PDF file index is:
[0029] Result={{Cache(target)},{Result1,…,Result i}}
[0030] Cache(target) means that it contains the index of PDF files related to target in other users' previous queries, which is used to reduce repeated queries to the database; i is the PDF file index related to the i-th partition partition and target, specifically expressed as:
[0031] Result i =Q(target, partition i )
[0032] In the formula, Q(target, partition i) is used to search for a PDF file index containing the keyword target in the i-th partition partition, which includes retrieving the title and content of the PDF file; wherein the partition number i is determined by the partition coefficient α, i=αN.
[0033] The present invention reduces repeated queries to the database by introducing a cache and partition search mechanism, reduces server load, and speeds up the response time of user queries. In addition, the partition search enables the system to query a large number of PDF files in parallel to improve query efficiency, significantly improving the query performance of the system in large-scale data processing, thereby ensuring that users can quickly and accurately obtain the required maintenance manuals.
[0034] Furthermore, the update steps of the index library are as follows:
[0035] SA1: Get the version information in the index files of all maintenance manuals and obtain the version list of the index files to be detected;
[0036] Among them, the version list Version of the index file to be detected index The specific expression is:
[0037] Version index ={ver1, ver2, ..., ver n}
[0038] In the formula, ver n Represents the version information of the index file of the nth maintenance manual;
[0039] SA2: Match the version list of the index file to be detected with the version information of the corresponding maintenance manual in the maintenance manual database to obtain the version list of the index file to be updated;
[0040] Among them, the version list Version of the index file to be updated update The specific expression is:
[0041] Version update ={ver i |i∈[1,n]}
[0042] In the formula, ver i Indicates the version corresponding to each index file that needs to be updated, which is obtained by comparing with the version information in the maintenance manual database;
[0043] SA3: prioritize the version list of the index file to be updated, search the corresponding maintenance manual chapter directory Dir in the maintenance manual database according to the priority, traverse the chapters and PDF files in the maintenance manual chapter directory Dir, reconstruct the index file, and complete the update of the index file;
[0044] Among them, for the i-th maintenance manual version ver in the version list of the index file to be updated i , its priority i The specific expression of the division is:
[0045] priority i =w1β+w2γ+w3δ
[0046] In the formula, w1, w2 and w3 represent weight coefficients, which are used to reflect the importance of actual needs; β is the access priority of the maintenance manual, and the specific calculation is expressed as:
[0047]
[0048] Where count t is the number of visits to the maintenance manual at time t; (Tt) is the time difference from time t to the current time T, in days; λ is the decay rate, which is used to control the influence of the past user access frequency on the current priority; γ is the emergency priority of the current maintenance manual content update, and the specific calculation is expressed as:
[0049]
[0050] In the formula, is a Gaussian function used to adjust the weight according to the difference between the update size Δx of the kth chapter and the expected update size μ; σ is the standard deviation, which is used to adjust the sensitivity of the update size to the priority; score imp (k) is the importance score of the kth chapter; δ is the adaptive priority of the update frequency, and the specific calculation is expressed as:
[0051]
[0052] In the formula, f k is the update frequency of the kth chapter; max(F update ) is the maximum update frequency in all chapters; avG(F update ) is the average update frequency of all chapters; α is the adjustment factor; F update A collection of update frequencies for all chapters, specifically: F update ={f i |i∈(0, total number of chapters)}.
[0053] Since the update of index files requires traversal and reconstruction of the maintenance manuals in the maintenance manual database, the present invention prioritizes the index files to be updated, so that the system can reasonably allocate resources and give priority to critical updates according to the urgency and importance of actual needs, thereby ensuring that the system can quickly and accurately return the latest information when users query, significantly improving query efficiency and result accuracy.
[0054] A PDF aircraft maintenance manual query device includes a manual information request acquisition unit, a manual version dynamic synchronization unit and a specified file information acquisition unit;
[0055] The manual information request obtaining unit is used to obtain a request from a client for specifying maintenance manual information;
[0056] The manual version dynamic synchronization unit is used to perform index detection and version synchronization on an index library according to the specified maintenance manual information to obtain the latest version of the maintenance manual information;
[0057] The designated file information acquisition unit is used to acquire the file information designated by the client according to the latest version of the maintenance manual information, and display the designated file in the maintenance manual database to the client.
[0058] Furthermore, the manual version dynamic synchronization unit is further configured to perform the following sub-steps:
[0059] Check the version status in the index library according to the specified maintenance manual information and determine whether synchronization is required to obtain the latest version of the maintenance manual information Manual new , its logic is specifically expressed as:
[0060]
[0061] In the formula, manual local Index file for local cache, manual index It is the index file of the index library. The conditions for obtaining Sync are as follows:
[0062]
[0063] In the formula, Sync is the update condition, ver local The version of the maintenance manual cached locally, that is, the ver in the specified maintenance manual information Manual; ver index The version of the maintenance manual in the index library; none means no version information;
[0064] The designated file information acquisition unit includes a query information acquisition module and a designated file query module;
[0065] The query information acquisition module is used to obtain the latest version of the maintenance manual information Manual new The chapter directory Dir of the maintenance manual in the is displayed to the user's client interface, and the structure of the chapter directory is as follows:
[0066] Dir={Chapter1, Chapter2,…,Chapter n}
[0067] In the formula, c n It is the nth chapter of the current maintenance manual and is specifically expressed as follows:
[0068] Chapter n ={PDF1, PDF2, ..., PDF m}
[0069] In the formula, PDF m Index to the mth PDF file of the nth chapter of the current maintenance manual;
[0070] The designated file query module is used to obtain the designated file in the maintenance manual database according to the file information designated by the client, and display the designated file to the client.
[0071] Further, when the catalog displays several chapters to the client, the PDF file index related to the maintenance manual database is queried by keyword, specifically:
[0072] Let the keyword given by the user be target;
[0073] Assume the total number of PDF files in the current maintenance manual is N;
[0074] The result of the relevant PDF file index is:
[0075] Result={{Cache(target)},{Result1,…,Result i}}
[0076] Cache(target) means that it contains the index of PDF files related to target in other users' previous queries, which is used to reduce repeated queries to the database; i is the PDF file index related to the i-th partition partition and target, specifically expressed as:
[0077] Result i =Q(target, partition i )
[0078] In the formula, Q(target, partition i ) is used to search for a PDF file index containing the keyword target in the i-th partition partition, which includes retrieving the title and content of the PDF file; wherein the partition number i is determined by the partition coefficient α, i=αN.
[0079] Furthermore, the update steps of the index library are as follows:
[0080] SA1: Get the version information in the index files of all maintenance manuals and obtain the version list of the index files to be detected;
[0081] Among them, the version list Version of the index file to be detected index The specific expression is:
[0082] Version index ={ver1, ver2, ..., ver n}
[0083] In the formula, ver n Represents the version information of the index file of the nth maintenance manual;
[0084] SA2: Match the version list of the index file to be detected with the version information of the corresponding maintenance manual in the maintenance manual database to obtain the version list of the index file to be updated;
[0085] Among them, the version list Version of the index file to be updated update The specific expression is:
[0086] Version update ={ver i |i∈[1,n]}
[0087] In the formula, ver i Indicates the version corresponding to each index file that needs to be updated, which is obtained by comparing with the version information in the maintenance manual database;
[0088] SA3: prioritize the version list of the index file to be updated, search the corresponding maintenance manual chapter directory Dir in the maintenance manual database according to the priority, traverse the chapters and PDF files in the maintenance manual chapter directory Dir, reconstruct the index file, and complete the update of the index file;
[0089] Among them, for the i-th maintenance manual version ver in the version list of the index file to be updated i , its priority i The specific expression of the division is:
[0090] priority i =w1β+w2γ+w3δ
[0091] In the formula, w1, w2 and w3 represent weight coefficients, which are used to reflect the importance of actual needs; β is the access priority of the maintenance manual, and the specific calculation is expressed as:
[0092]
[0093] In the formula, count t is the number of visits to the maintenance manual at time t; (Tt) is the time difference from time t to the current time T, in days; λ is the decay rate, which is used to control the influence of the past user access frequency on the current priority; γ is the emergency priority of the current maintenance manual content update, and the specific calculation is expressed as:
[0094]
[0095] In the formula, is a Gaussian function used to adjust the weight according to the difference between the update size Δx of the kth chapter and the expected update size μ; σ is the standard deviation, which is used to adjust the sensitivity of the update size to the priority; score imp (k) is the importance score of the kth chapter; δ is the adaptive priority of the update frequency, and the specific calculation is expressed as:
[0096]
[0097] In the formula, f k is the update frequency of the kth chapter; max(F update ) is the maximum update frequency in all chapters; avg(F update ) is the average update frequency of all chapters; α is the adjustment factor; F update A collection of update frequencies for all chapters, specifically: F update ={f i |i∈(0, total number of chapters)}.
[0098] For better understanding and implementation, the present invention is described in detail below with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0099] Figure 1 This is a schematic diagram of an example of a specific application scenario of the PDF aircraft maintenance manual query device of the present invention;
[0100] Figure 2 This is a schematic diagram of the structure of the PDF aircraft maintenance manual query device of the present invention;
[0101] Figure 3The present invention is a flowchart of the method for querying the PDF aircraft maintenance manual. DETAILED DESCRIPTION
[0102] In order to solve the problem that the existing technology has inconvenient access and untimely updates when previewing a large number of maintenance manuals in PDF format, resulting in potential safety hazards in the execution of maintenance work, the present invention obtains the request for maintenance manual information from the client, performs version detection and synchronization on the index library, ensures that the latest version of the maintenance manual information is obtained, and displays the chapter list of the corresponding maintenance manual based on the information, obtains the request for query information from the client, and obtains the latest version of the specified chapter PDF file from the maintenance manual database for the user to view. Accordingly, the present invention introduces an automatic version control and synchronization mechanism in the index library to significantly improve the access efficiency of the maintenance manual, and makes the management and access of the maintenance manual more efficient and convenient.
[0103] Based on the above design, the present invention proposes a PDF aircraft maintenance manual query method, and based on the method, proposes a PDF aircraft maintenance manual query device.
[0104] See also Figure 1 , Figure 2 and Figure 3 , Figure 1 This is a schematic diagram of an example of a specific application scenario of the PDF aircraft maintenance manual query device of the present invention. Figure 2 This is a schematic diagram of the structure of the PDF aircraft maintenance manual query device of the present invention. Figure 3 The present invention is a flowchart of the method for querying the PDF aircraft maintenance manual.
[0105] The PDF aircraft maintenance manual query device comprises a manual information request acquisition unit 1, a manual version dynamic synchronization unit 2 and a designated file information acquisition unit 3.
[0106] The manual information request obtaining unit 1 is used to execute step S1: obtaining a request for maintenance manual information specified by a client.
[0107] Specifically, the user selects the corresponding maintenance manual name through the client interface, and the client queries the local cache based on the corresponding maintenance manual name whether there is a corresponding index file: if so, the index file is used as the designated maintenance manual information; if not, the current maintenance manual name is used as the designated maintenance manual information.
[0108] The local cache is used to store the history of users obtaining index files. The index file includes the friendly name of the maintenance manual. friendly 、The real name named by ATA specification Name real , the chapter directory Dir and version information ver of the maintenance manuallocal , obtained by parsing the XML description file corresponding to the maintenance manual, the index file is specifically represented as follows:
[0109] Manual local ={Name friendly ,Name real ,Dir,ver local}
[0110] Finally, the designated maintenance manual information is transmitted and encoded to obtain a request for the designated maintenance manual information from the client.
[0111] The transmission code may be encoded by JSON, so that the specified maintenance manual information is converted into a structured data format to ensure the integrity and consistency of network transmission. Furthermore, the transmission code may be encrypted to prevent the data from being maliciously tampered with or intercepted during transmission.
[0112] The client may be a WeChat applet, so that aircraft maintenance personnel can query and preview the required maintenance manuals at any time under different sites and equipment conditions.
[0113] In view of the large amount of data in the maintenance manual, the present invention uses an index file as a relay to access the maintenance manual database, and further stores the index file in the client cache, thereby accelerating the access and preview speed of the maintenance manual.
[0114] The manual version dynamic synchronization unit 2 is used to execute step S2: perform index detection and version synchronization on an index library according to the specified maintenance manual information to obtain the latest version of the maintenance manual information.
[0115] Specifically, the version status is detected in the index library according to the specified maintenance manual information, and it is determined whether synchronization is required to obtain the latest version of the maintenance manual information Manual new , its logic is specifically expressed as:
[0116]
[0117] In the formula, manual local Index file for local cache, manual index It is the index file of the index library. The conditions for obtaining Sync are as follows:
[0118]
[0119] In the formula, Sync is the update condition, ver local The version of the maintenance manual cached locally, that is, the ver in the specified maintenance manual information Manual; ver indexThe version corresponding to the maintenance manual of the index library; none means no version information.
[0120] Based on this, by automatically detecting the version difference between the index library and the local index file cache, the local cache that does not match the index library version will be updated. If there is no version information, it is considered that the client lacks the corresponding maintenance manual and needs to obtain the maintenance manual information corresponding to the index library to ensure that users can always access the latest and complete maintenance manuals, thereby significantly improving the accuracy and efficiency of maintenance operations.
[0121] The designated file information acquisition unit 3 is used to execute step S3: according to the latest version of the maintenance manual information, acquire the file information designated by the client, and display the designated file in the maintenance manual database to the client.
[0122] Specifically, the designated file information acquisition unit 3 includes a query information acquisition module 31 and a designated file query module 32 .
[0123] The query information acquisition module 31 is used to execute step S31: display a list of maintenance chapters on the client according to the latest version of the maintenance manual information, and obtain a request for file information specified by the client.
[0124] Specifically, the latest version of the maintenance manual information Manual new The chapter directory Dir of the maintenance manual in the is displayed to the user's client interface, and the structure of the chapter directory is as follows:
[0125] Dir={Chapter1, Chapter2,…,Chapter n}
[0126] In the formula, c n It is the nth chapter of the current maintenance manual and is specifically expressed as follows:
[0127] Chapter n ={PDF1, PDF2, ..., PDF m}
[0128] In the formula, PDF m Index to the mth PDF file in the nth chapter of the current maintenance manual.
[0129] Accordingly, when the catalog displays several chapters to the client, the user selects PDF file indexes under several chapters through the client to obtain a request for file information specified by the client.
[0130] Further, when the catalog displays several chapters to the client, the user can query the PDF file index related to the maintenance manual database by keywords, specifically:
[0131] Let the keyword given by the user be target;
[0132] Assume the total number of PDF files in the current maintenance manual is N;
[0133] The result of the relevant PDF file index is:
[0134] Result={{Cache(target)},{Result1,…,Result i}}
[0135] Cache(target) means that it contains the index of PDF files related to target in other users' previous queries, which is used to reduce repeated queries to the database; i is the PDF file index related to the i-th partition partition and target, specifically expressed as:
[0136] Result i =Q(target, partition i )
[0137] In the formula, Q(target, partition i ) is used to search for the PDF file index containing the keyword target in the i-th partition partition, which includes retrieving the title and content of the PDF file. e Technical implementation. In addition, search results can be sorted according to the frequency of keywords in the PDF title and content.
[0138] The number of partitions i is determined by the partition coefficient α, i=αN, where α is defined based on the performance of parallel computing of the user's server, and the present invention does not specifically limit this.
[0139] Accordingly, the user selects the PDF file index to be viewed according to the result of the given related PDF file index, and obtains the file information request specified by the client.
[0140] The designated file query module 32 is used to execute step S32: acquiring the designated file in the maintenance manual database according to the file information designated by the client, and displaying the designated file to the client.
[0141] Specifically, according to the PDF file index, the maintenance manual database is searched for a PDF file corresponding to the file index, and the file is displayed as a designated file to the user's client for preview by the user.
[0142] In addition, in order to avoid the update of a large number of maintenance manuals in PDF format which would prolong the update and construction time of the index library, resulting in users being unable to access the latest version of the maintenance manual in a timely manner, the present invention adopts an adaptive priority algorithm to update the index library, thereby ensuring that the index library read by the client always remains relatively up-to-date, and ensuring that the index files accessed by users accurately reflect the latest content in the maintenance manual database.
[0143] The steps for updating the index library are as follows:
[0144] SA1: Obtain the version information in the index files of all maintenance manuals to obtain a version list of the index files to be detected. Specifically, the version list of the index files to be detected is Version index The specific expression is:
[0145] Version index ={ver1, ver2, ..., ver n}
[0146] In the formula, ver n Indicates the version information of the index file of the nth maintenance manual.
[0147] SA2: Match the version list of the index file to be detected with the version information of the corresponding maintenance manual in the maintenance manual database to obtain the version list of the index file to be updated.
[0148] Specifically, the version list Version of the index file to be updated update The specific expression is:
[0149] Version update ={ver i |i∈[1,n]}
[0150] In the formula, ver i Indicates the version corresponding to each index file that needs to be updated, which is obtained by comparing with the version information in the maintenance manual database.
[0151] SA3: Dynamically update the index files in the version list of the index files to be updated to complete the update of the index library.
[0152] Specifically, the version list of the index file to be updated is prioritized, the corresponding maintenance manual chapter directory Dir in the maintenance manual database is searched according to the priority, and the chapters and PDF files in the maintenance manual chapter directory Dir are traversed to reconstruct the index file and complete the update of the index file.
[0153] For the i-th maintenance manual version ver in the version list of the index file to be updated i, its priority i The specific expression of the division is:
[0154] priority i =w1β+w2γ+w3δ
[0155] In the formula, w1, w2 and w3 represent weight coefficients, which are used to reflect the importance of actual needs, and the default value is 0.4:0.4:0.2; β is the access priority of the maintenance manual, and the specific calculation is expressed as:
[0156]
[0157] Where count t is the number of times the maintenance manual is accessed at time t; (Tt) is the time difference from time t to the current time T, and its unit is days by default; λ is the decay rate, which is used to adjust the influence of the user access frequency corresponding to the near and far time on the current priority. It is set according to the actual situation of the user and the default value is 0.5.
[0158] Based on this, the priority of calculating the user's access frequency is quantified by exponential decay, so that the system can adaptively adjust the update priority of the index file of the current maintenance manual according to the user's access frequency at different times and perform synthesis to ensure that the index file of the maintenance manual with recent and high access frequency gets a higher weight and is updated first.
[0159] And γ is the emergency priority of the current maintenance manual content update, and the specific calculation is expressed as:
[0160]
[0161] In the formula, is a Gaussian function, which is used to adjust the weight according to the difference between the update size Δx of the kth chapter and the expected update size μ. The expected update size μ can be obtained by statistically analyzing the version information of historical chapters. The default value is the average size of the PDF file. σ is the standard deviation, which is used to adjust the sensitivity of the update size to the priority. It can be defined by the user to reflect the decreasing degree of importance of the chapter update size. score imp (k) is the importance score of the kth chapter. The importance score can be set specifically according to the chapter category. For example, the chapter title containing "Emergency Repair" should be given the highest weight because errors in such chapters may lead to serious consequences; while the chapter titles containing "Daily Inspection", "Reference" or "Appendix" are given lower weights. In addition, a chapter adaptive algorithm can also be designed based on statistical data to automatically adjust the importance score of the chapter. The present invention does not specifically limit the calculation method of the importance score.
[0162] Accordingly, the present invention reflects the urgency of chapters by updating the size of the maintenance manual, ensuring that the system prioritizes newly added or deleted chapters to prevent users from missing chapters when indexing.
[0163] And δ is the adaptive priority of update frequency, and the specific calculation is expressed as:
[0164]
[0165] In the formula, f k is the update frequency of the kth chapter; max(F update ) is the maximum update frequency in all chapters; avg(F update ) is the average update frequency of all chapters; α is an adjustment factor, which is used to balance the impact of chapter update frequency on priority. It can be adjusted according to actual conditions. The default value is 0.5 and its value range is [0, 1]; F update A collection of update frequencies for all chapters, specifically: F update ={f i |i∈(0, total number of chapters)}.
[0166] Based on this, the present invention combines information of different dimensions, such as access priority, emergency priority of content update and adaptive priority of update frequency, to ensure that relatively important and relatively urgent maintenance manuals can be updated preferentially in the index library, thereby optimizing the update strategy of the index library, ensuring that the index files obtained by users are in a relatively up-to-date state, and improving the effectiveness of access to maintenance manuals.
[0167] In order to achieve effective management and retrieval of the maintenance manual content and ensure that the information in the maintenance manual database is always kept up to date, the present invention updates the maintenance manual database through the following steps:
[0168] D1: Get the PDF file of the latest repair manual and extract key information.
[0169] Specifically, the friendly name of the PDF file of the latest maintenance manual, the corresponding maintenance manual version, etc. are parsed and used as key information.
[0170] Among them, in order to ensure the accuracy of the PDF file of the latest maintenance manual, it is usually manually downloaded from the manufacturer's official complete or other official channels, and is reviewed and approved to ensure the accuracy and legality of the content.
[0171] D2: Search the maintenance manual database based on key information to obtain the target maintenance manual.
[0172] Specifically, according to the key information, the index file in the maintenance manual database is searched to obtain the corresponding target manual storage path, that is, the target maintenance manual.
[0173] D3: Update the PDF file of the latest maintenance manual to the target maintenance manual, and record the historical version information to the log file.
[0174] Specifically, the PDF file of the latest maintenance manual is updated to the target manual storage path, the index file in the current chapter is updated, and the friendly name, file version, etc. of the PDF file are saved.
[0175] The update and / or modification date of each PDF file is recorded and compared through log files, and the date most recent to the current time is used as the version information of the manual index file and saved in the maintenance manual database.
[0176] The index file includes the friendly name of the maintenance manual. friendly 、The real name named by ATA specification Name real , the chapter directory Dir and version information ver of the maintenance manual are obtained by parsing the XML description file corresponding to the maintenance manual. The index file Manual is specifically represented as follows:
[0177] Manual={Name friendly ,Name real , Dir, ver}
[0178] The log file includes the access record, update times, and historical version information of the current chapter of the current maintenance manual, which is used for system monitoring and historical tracking.
[0179] Compared with the prior art, the present invention performs index detection and version synchronization between the client and the index library, so that the system can ensure that the index file in the index library accessed by the client is the latest version, and prevent the occurrence of old versions and invalid data. At the same time, since there are a large number of PDF files in the maintenance manual, the required files can be quickly located through the index library without traversing all files, thus avoiding the repeated reading and transmission of a large number of files. In addition, in order to further ensure that the index library accessed by the client remains up to date and prevent delays in traversing all PDF files when updating the index library, the present invention introduces an adaptive priority allocation mechanism, which comprehensively considers the access frequency, update size and update frequency of the chapters, and gives priority to maintenance manuals with higher importance, ensuring that the data in the index library always reflects the latest status of the maintenance manual, providing users with a more reliable and timely query experience, and ensuring the accuracy and integrity of data in critical tasks.
[0180] Based on the same inventive concept, the present application also provides an electronic device, which may be a terminal device such as a server, a desktop computing device or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet computer, a netbook, etc.). The device includes one or more processors and a memory, wherein the processor is used to execute a program to implement a PDF aircraft maintenance manual query method according to an embodiment of the present invention; and the memory is used to store a computer program executable by the processor.
[0181] Based on the same inventive concept, the present application also provides a computer-readable storage medium, corresponding to the embodiment of the aforementioned PDF-type aircraft maintenance manual query method, wherein the computer-readable storage medium stores a computer program thereon, and when the program is executed by a processor, the steps of a PDF-type aircraft maintenance manual query method recorded in any of the aforementioned embodiments are implemented.
[0182] The present application may take the form of a computer program product implemented on one or more storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing program code. Computer-usable storage media include permanent and non-permanent, removable and non-removable media, and information storage can be achieved by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include but are not limited to: phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, tape disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
[0183] The above-mentioned embodiments only express several implementation methods of the present invention, and the description is relatively specific and detailed, but it cannot be understood as limiting the scope of the invention patent. It should be pointed out that for ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of the present invention, and the present invention is also intended to include these modifications and modifications.
Claims
1. A method for querying PDF aircraft maintenance manuals, characterized in that: The following steps are involved: S1: Request to obtain maintenance manual information specified by the client; S2: performing index detection and version synchronization on an index library according to the specified maintenance manual information to obtain the latest version of the maintenance manual information; S3: According to the latest version of the maintenance manual information, obtain the file information specified by the client, and display the specified file in the maintenance manual database to the client.
2. The method for querying PDF aircraft maintenance manuals according to claim 1, characterized in that: The step S2 comprises the following sub-steps: Check the version status in the index library according to the specified maintenance manual information and determine whether synchronization is required to obtain the latest version of the maintenance manual information Manual new , its logic is specifically expressed as: In the formula, manual local Index file for local cache, manual index Index file for the index library; The conditions for obtaining Sync are as follows: In the formula, Sync is the update condition, ver local The version of the maintenance manual cached locally, that is, the ver in the specified maintenance manual information Manual; ver index The version of the maintenance manual in the index library; none means no version information; The step S3 comprises the following sub-steps: S31: Update the latest version of the maintenance manual new The chapter directory Dir of the maintenance manual in the is displayed to the user's client interface, and the structure of the chapter directory is as follows: Dir={Chapter1,Chapter2,…,Chapter n } In the formula, c n It is the nth chapter of the current maintenance manual and is specifically expressed as follows: Chapter n ={PDF1,PDF2,…,PDF m } In the formula, PDF m Index to the mth PDF file of the nth chapter of the current maintenance manual; S32: Obtain a specified file in the maintenance manual database according to the file information specified by the client, and display the specified file to the client.
3. The method for querying PDF aircraft maintenance manuals according to claim 2, characterized in that: When the catalog displays several chapters to the client, the PDF file index related to the maintenance manual database is searched by keyword, specifically: Let the keyword given by the user be target; Assume the total number of PDF files in the current maintenance manual is N; The result of the relevant PDF file index is: Result={{Cache(target)},{Result1,…,Result i }} Cache(target) means that it contains the index of PDF files related to target in other users' previous queries, which is used to reduce repeated queries to the database; i is the PDF file index related to the i-th partition partition and target, specifically expressed as: Result i =Q(target,partition i ) In the formula, Q(target, partition i ) is used to search for a PDF file index containing the keyword target in the i-th partition partition, which includes retrieving the title and content of the PDF file; wherein the partition number i is determined by the partition coefficient α, i=αN.
4. The method for querying PDF aircraft maintenance manuals according to claim 3, characterized in that: The steps for updating the index library are as follows: SA1: Get the version information in the index files of all maintenance manuals and obtain the version list of the index files to be detected; Among them, the version list Version of the index file to be detected index The specific expression is: Version index ={ver1,ver2,…,ver n } In the formula, ver n Represents the version information of the index file of the nth maintenance manual; SA2: Match the version list of the index file to be detected with the version information of the corresponding maintenance manual in the maintenance manual database to obtain the version list of the index file to be updated; Among them, the version list Version of the index file to be updated upddte The specific expression is: Version update ={ver i |i∈[1,n]} In the formula, vet i Indicates the version corresponding to each index file that needs to be updated, which is obtained by comparing with the version information in the maintenance manual database; SA3: prioritize the version list of the index file to be updated, search the corresponding maintenance manual chapter directory Dir in the maintenance manual database according to the priority, traverse the chapters and PDF files in the maintenance manual chapter directory Dir, reconstruct the index file, and complete the update of the index file; Among them, for the i-th maintenance manual version ver in the version list of the index file to be updated i , its priority i The specific expression of the division is: priority i =w1β+W2γ+w3δ In the formula, w1, w2 and w3 represent weight coefficients, which are used to reflect the importance of actual needs; β is the access priority of the maintenance manual, and the specific calculation is expressed as: Where count t is the number of visits to the maintenance manual at time t; (Tt) is the time difference from time t to the current time T, in days; λ is the decay rate, which is used to control the influence of the past user access frequency on the current priority; γ is the emergency priority of the current maintenance manual content update, and the specific calculation is expressed as: In the formula, is a Gaussian function used to adjust the weight according to the difference between the update size Δx of the kth chapter and the expected update size μ; σ is the standard deviation, which is used to adjust the sensitivity of the update size to the priority; score imp (k) is the importance score of the kth chapter; δ is the adaptive priority of the update frequency, and the specific calculation is expressed as: In the formula, f k is the update frequency of the kth chapter; max(F update ) is the maximum update frequency in all chapters; avg(F update ) is the average update frequency of all chapters; α is the adjustment factor; F update A collection of update frequencies for all chapters, specifically: F update ={f i |i∈(0, total number of chapters)}.
5. A PDF aircraft maintenance manual query device, characterized in that: It includes a manual information request acquisition unit, a manual version dynamic synchronization unit and a specified file information acquisition unit; The manual information request obtaining unit is used to obtain a request from a client for specifying maintenance manual information; The manual version dynamic synchronization unit is used to perform index detection and version synchronization on an index library according to the specified maintenance manual information to obtain the latest version of the maintenance manual information; The designated file information acquisition unit is used to acquire the file information designated by the client according to the latest version of the maintenance manual information, and display the designated file in the maintenance manual database to the client.
6. The PDF aircraft maintenance manual query device according to claim 5, characterized in that: The manual version dynamic synchronization unit is also used to perform the following sub-steps: Check the version status in the index library according to the specified maintenance manual information and determine whether synchronization is required to obtain the latest version of the maintenance manual information Manual new , its logic is specifically expressed as: In the formula, manual local Index file for local cache, manual index Index file for the index library; The conditions for obtaining Sync are as follows: In the formula, Sync is the update condition, ver local The version of the maintenance manual cached locally, that is, the ver in the specified maintenance manual information Manual; ver index The version of the maintenance manual in the index library; none means no version information; The designated file information acquisition unit includes a query information acquisition module and a designated file query module; The query information acquisition module is used to obtain the latest version of the maintenance manual information Manual new The chapter directory Dir of the maintenance manual in the is displayed to the user's client interface, and the structure of the chapter directory is as follows: Dir={Chapter1,Chapter2,…,Chapter n } In the formula, c n It is the nth chapter of the current maintenance manual and is specifically expressed as follows: Chapter n ={PDF1,PDF2,…,PDF m } In the formula, PDF m Index to the mth PDF file of the nth chapter of the current maintenance manual; The designated file query module is used to obtain the designated file in the maintenance manual database according to the file information designated by the client, and display the designated file to the client.
7. The PDF aircraft maintenance manual query device according to claim 6, characterized in that: When the catalog displays several chapters to the client, the PDF file index related to the maintenance manual database is searched by keyword, specifically: Let the keyword given by the user be target; Assume the total number of PDF files in the current maintenance manual is N; The result of the relevant PDF file index is: Result={{Cache(target)},{Result1,…,Result i }} Cache(target) means that it contains the index of PDF files related to target in other users' previous queries, which is used to reduce repeated queries to the database; i is the PDF file index related to the i-th partition partition and target, specifically expressed as: Result i =Q(tar□□t,partition i ) In the formula, Q(target, partition i ) is used to search for a PDF file index containing the keyword target in the i-th partition partition, which includes retrieving the title and content of the PDF file; wherein the partition number i is determined by the partition coefficient α, i=αN.
8. The PDF aircraft maintenance manual query device according to claim 7, characterized in that: The steps for updating the index library are as follows: SA1: Get the version information in the index files of all maintenance manuals and obtain the version list of the index files to be detected; Among them, the version list Version of the index file to be detected index The specific expression is: Version index ={ver1,ver2,…,ver n } In the formula, ver n Represents the version information of the index file of the nth maintenance manual; SA2: Match the version list of the index file to be detected with the version information of the corresponding maintenance manual in the maintenance manual database to obtain the version list of the index file to be updated; Among them, the version list Version of the index file to be updated update The specific expression is: Version update ={ver i |i∈[1,n]} In the formula, ver i Indicates the version corresponding to each index file that needs to be updated, which is obtained by comparing with the version information in the maintenance manual database; SA3: prioritize the version list of the index file to be updated, search the corresponding maintenance manual chapter directory Dir in the maintenance manual database according to the priority, traverse the chapters and PDF files in the maintenance manual chapter directory Dir, reconstruct the index file, and complete the update of the index file; Among them, for the i-th maintenance manual version ver in the version list of the index file to be updated i , its priority i The specific expression of the division is: priority i =w1β+W2γ+w3δ In the formula, w1, w2 and w3 represent weight coefficients, which are used to reflect the importance of actual needs; β is the access priority of the maintenance manual, and the specific calculation is expressed as: Where count t is the number of visits to the maintenance manual at time t; (Tt) is the time difference from time t to the current time T, in days; λ is the decay rate, which is used to control the influence of the past user access frequency on the current priority; γ is the emergency priority of the current maintenance manual content update, and the specific calculation is expressed as: In the formula, is a Gaussian function used to adjust the weight according to the difference between the update size Δx of the kth chapter and the expected update size μ; σ is the standard deviation, which is used to adjust the sensitivity of the update size to the priority; score imp (k) is the importance score of the kth chapter; δ is the adaptive priority of the update frequency, and the specific calculation is expressed as: In the formula, f k is the update frequency of the kth chapter; max(F update ) is the maximum update frequency in all chapters; avg(F update ) is the average update frequency of all chapters; α is the adjustment factor; F update A collection of update frequencies for all chapters, specifically: F update ={f i |i∈(0, total number of chapters)}.
9. An electronic device, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, a PDF aircraft maintenance manual query method as described in any one of claims 1 to 4 is implemented.
10. A computer-readable storage medium storing computer-executable instructions, characterized in that: The computer executable instructions are used in a PDF aircraft maintenance manual query method as described in any one of claims 1 to 4.
