Feature information identification method, device, terminal device and storage medium
By calculating the hash value of C component information and retrieval processing of the message queue server, combined with the business processing of the detection engine, the problem of identifying C component characteristic information is solved, and the analysis and evaluation capabilities of software components are improved.
Patent Information
- Application Number
- CN202410742785.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-06-11
AI Technical Summary
In software component analysis (SCA) products, there is a lack of specialized identification technology for C components, which results in the inability to accurately locate the characteristic information of C components, affecting the comprehensive analysis and evaluation of software components.
By collecting component information, performing data analysis to obtain the hash value information, and storing it in the message queue server, it is sequentially retrieved and consumed in an orderly manner. The component feature information is combined with the detection engine for business processing to obtain the corresponding functional information.
It improves the recognition of characteristic information of C components, improves the characteristic information of components in the database, and enhances the ability to analyze and evaluate software components.
Smart Images

Figure CN118312767B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data analysis technology, and in particular to a feature information recognition method, apparatus, terminal device, and storage medium. Background Art
[0002] Currently, in software component analysis (SCA, Service Component Architecture) products, feature information recognition technology and architecture for C components are relatively scarce. Due to the lack of specialized recognition technology for C components, the feature information recognition of C components in SCA products is often unable to accurately locate, making it difficult to achieve feature information recognition and location of C components, affecting the comprehensive analysis and evaluation of software components. Summary of the invention
[0003] The main purpose of the present application is to provide a feature information recognition method, apparatus, terminal device and storage medium, aiming to solve the technical problem that the feature information recognition of a component cannot accurately locate the component.
[0004] To achieve the above purpose, the present application proposes a feature information recognition method, the method comprising:
[0005] Collect component information;
[0006] Parsing the component information to obtain hash value information, and storing the hash value information in a message queue server;
[0007] Retrieving the hash value information from the message queue server, and performing retrieval and orderly consumption processing on the hash value information in sequence to obtain component feature information;
[0008] The detection engine performs business processing on the component feature information to obtain corresponding function information.
[0009] In one embodiment, the step of collecting component information includes:
[0010] Analyze the page elements of the web page to be parsed and obtain the download link and script information;
[0011] Downloading a source code package through the script information and the download link, wherein the source code package includes component information;
[0012] The component information in the source code package is stored in a database.
[0013] In one embodiment, the step of parsing the component information to obtain hash value information and storing the hash value information in a message queue server includes:
[0014] Retrieving component information from a database, and filtering the component information based on regular expressions to obtain core component information;
[0015] Perform hash value calculation according to the path information in the core component information to obtain corresponding hash value information;
[0016] The hash value information is stored in the message queue server.
[0017] In one embodiment, the step of retrieving the hash value information from the message queue server, and sequentially retrieving and orderly consuming the hash value information to obtain component feature information includes:
[0018] Get hash value information from the message queue server;
[0019] Perform batch retrieval on the Hash value information in sequence to obtain retrieval results for each Hash value information;
[0020] According to the retrieval results of each of the hash value information, the hash value information is sequentially consumed to obtain component feature information.
[0021] In one embodiment, the step of performing orderly consumption processing on the hash value information in sequence according to the search results of each of the hash value information to obtain the component feature information includes:
[0022] If the search result is that the hash value information exists in the product knowledge base, the hash value information is merged and updated in sequence to obtain component feature information;
[0023] Encrypting and compressing the component feature information, and saving the encrypted and compressed component feature information into the product knowledge base;
[0024] If the search result is that the hash value information does not exist in the product knowledge base, the hash value information is used as the component feature information;
[0025] The component feature information is encrypted and compressed, and the encrypted and compressed feature information is sequentially added to the product knowledge base.
[0026] In one embodiment, the step of performing business processing on the component feature information by the detection engine to obtain corresponding function information includes:
[0027] Obtain component feature information from the product knowledge base through the detection engine;
[0028] In the detection engine, the component feature information stream is decrypted and / or parsed to obtain corresponding function information.
[0029] In one embodiment, after the detection engine parses and decrypts the feature information flow to obtain the corresponding function information, the detection engine further includes:
[0030] Return the corresponding functional information to the business end;
[0031] The function information is displayed to the user through the service end so that the user can call the function information according to needs.
[0032] In addition, to achieve the above purpose, the present application also proposes a feature information recognition device, the feature information recognition device comprising:
[0033] A collection module, used to collect component information;
[0034] A parsing module, used for parsing the component information to obtain hash value information, and storing the hash value information in a message queue server;
[0035] A retrieval module, used to retrieve the hash value information from the message queue server, and perform retrieval and orderly consumption processing on the hash value information in sequence to obtain component feature information;
[0036] The detection module is used to perform business processing on the component feature information through a detection engine to obtain corresponding function information.
[0037] In addition, to achieve the above-mentioned purpose, the present application also proposes a feature information identification terminal device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the feature information identification method described above.
[0038] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the feature information identification method described above are implemented.
[0039] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the feature information identification method described above are implemented.
[0040] The present application provides a method for identifying characteristic information. The present application first collects component information; performs data analysis on the component information to obtain hash value information, and stores the hash value information in a message queue server; retrieves the hash value information from the message queue server, and sequentially retrieves and orderly consumes the hash value information to obtain component characteristic information; performs business processing on the component characteristic information through a detection engine to obtain corresponding functional information. The solution improves the characteristic information of components in the database by retrieving and orderly consuming component information, thereby improving the product's recognition of component characteristics. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0042] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0043] Figure 1 A flowchart of the first embodiment of the feature information identification method of the present application is provided;
[0044] Figure 2 A flowchart of the second embodiment of the feature information identification method of the present application is provided;
[0045] Figure 3 A schematic diagram of a simplified process of a feature information identification method provided in Example 1 of the present application;
[0046] Figure 4 This is an overall architecture diagram of the feature information identification method of the embodiment of the present application;
[0047] Figure 5 This is a schematic diagram of the module structure of the feature information recognition device according to an embodiment of the present application;
[0048] Figure 6 Schematic diagram of the device structure of the hardware operating environment involved in the feature information identification method in the embodiment of the present application.
[0049] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0050] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0051] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0052] The main solution of the embodiment of the present application is: collecting component information; performing data parsing on the component information to obtain hash value information, and storing the hash value information in a message queue server; retrieving the hash value information from the message queue server, and performing search and orderly consumption processing on the hash value information in turn to obtain component feature information; performing business processing on the component feature information through a detection engine to obtain corresponding function information.
[0053] At present, in software component analysis (SCA) products, the feature information recognition technology and architecture for C components are relatively scarce. Due to the lack of special recognition technology for C components, the feature information recognition of C components in SCA products is often unable to accurately locate, making it difficult to achieve feature information recognition and location of C components, affecting the comprehensive analysis and evaluation of software components.
[0054] The present application provides a solution, which can enrich the component information related to the C component of the SCA product by performing page analysis and component version analysis on the web page and configuring the corresponding script to download the component information; performing hash value calculation on the component information, and searching and orderly consuming the database based on the hash value, so as to improve the component feature information of the C component, and write the improved component feature information of the C component into the database in the form of an incremental package, so as to improve the recognition of the C component feature of the SCA product.
[0055] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, such as a server, a router, a network storage device (NAS), an intelligent gateway, an industrial control computer (PAC / PLC), and an embedded system, etc. The following takes a personal computer as an example to illustrate this embodiment and the following embodiments.
[0056] Based on this, the present application embodiment provides a method for identifying characteristic information. Figure 1 , Figure 1 This is a flow chart of the first embodiment of the feature information identification method of the present application.
[0057] In this embodiment, the feature information recognition method includes steps S10 to S40:
[0058] Step S10, collecting component information;
[0059] It should be noted that, in this embodiment, the identification of characteristic information of a C component in a software component analysis (SCA) product is taken as an example for description.
[0060] In addition, it should be noted that component information refers to the detailed information describing the software component (Component), which outlines the characteristics and functions of the component and how it interacts with other components.
[0061] It can be understood that in order to enrich the source of component information, step S10 is performed to further enrich the component feature information in the database.
[0062] In a feasible implementation, step S10 may include steps S11 to S13:
[0063] Step S11, analyzing the page elements of the web page to be parsed, and obtaining the download link and script information;
[0064] It should be noted that the download link refers to a link specifically for downloading the source code package, which is included in the page element.
[0065] Specifically, first, determine the target web page, that is, determine the web page to be parsed, which may be a common C component open source site currently on the market. These web pages usually contain download links of C component source code packages and related script information.
[0066] Then, you can use Python to quickly locate the download links and related script information in the page, and extract these download links and related script information from the web page for subsequent source code package download operations.
[0067] Step S12, downloading a source code package through the script information and the download link, wherein the source code package includes component information;
[0068] Through relevant script information, such as Golang (GO language) automation script, a download request is initiated according to the extracted download link to download the source code package of the C component.
[0069] It should be noted that the source code package of the C component contains the C component information.
[0070] Step S13, storing the component information in the source code package in a database.
[0071] The component information extracted from the source code package is stored in the database. This component information may include the name, description, attributes, style, etc. of the C component. Storing it in the database can facilitate subsequent management and analysis. The database may include MongoDB (document database management system) or a file server.
[0072] Through the above steps, the component information of specific components can be automatically collected, providing basic support for subsequent data processing, analysis and application.
[0073] Step S20, performing data parsing on the component information to obtain hash value information, and storing the hash value information in a message queue server;
[0074] It should be noted that the embodiment of the present application also includes a log monitoring function for monitoring program instructions or notifications in real time.
[0075] When the log monitoring function is used to listen to the instructions to be parsed, the component information will be obtained from the database, and combined with the hash value calculation method, the specific parsing process will be started to start the parsing operation of the component information.
[0076] In a feasible implementation, step S20 may include steps S21 to S23:
[0077] Step S21, calling component information from the database, and filtering the component information based on regular expressions to obtain core component information;
[0078] Since the component information stored in the database is obtained from the common component open source sites on the market, the component information may contain a large amount of non-core or unnecessary component information. In order to focus on the most important part, i.e., the core component information, the present embodiment uses regular expressions to filter out non-core component information and screen out file paths or component names that meet specific patterns. For example, core component information is usually located in a specific directory or its naming follows preset rules, and regular expressions can efficiently filter out irrelevant entries.
[0079] Step S22, performing hash value calculation according to the path information in the core component information to obtain corresponding hash value information;
[0080] It should be noted that the hash value is a fixed-length digital sequence obtained by performing a hash operation on data of any length through a hash function.
[0081] After the core component information is determined, the path structure of the core component information can be parsed, the file name can be extracted, and the hash value of each core component information can be calculated.
[0082] A hash algorithm is used to calculate the file path of each core component information, and the hash value information of each core component information can be obtained through calculation.
[0083] Since the hash value is a digital fingerprint of fixed length, even a slight change in the file will result in a completely different hash value. Therefore, calculating the hash value of each core component information can provide an effective and convenient way for subsequent information retrieval, verification, and comparison operations.
[0084] After calculating the hash value information of each core component information, in order to ensure the secure transmission of information, each hash value information can also be encrypted through the DLL (Dynamic Link Library) encryption processing method.
[0085] Step S23, storing the hash value information in a message queue server.
[0086] It should be noted that the message queue (MQ) server is a middleware used to asynchronously process messages in a distributed system.
[0087] In this embodiment, the hash value information is sent as a message to a message queue (MQ) server. During this period, in order to ensure that the hash value information can be normally put into storage, it is necessary to send an MQ storage queue notification to the message queue (MQ) server, so that when the message queue (MQ) server listens to the MQ storage queue notification, the hash value information is sequentially consumed, that is, it enters the message queue (MQ) server in a certain order for subsequent processing.
[0088] In addition, in order to avoid repeated processing of information and ensure the order of information processing, when listening to the MQ entry queue notification, different types of hash value information can enter the message queue (MQ) server at the same time and perform subsequent processing at the same time; however, the same type of hash value information needs to enter the message queue (MQ) server one after another, and perform subsequent processing one after another.
[0089] Step S30, retrieving the hash value information from the message queue server, and performing retrieval and orderly consumption processing on the hash value information in sequence to obtain component feature information;
[0090] It should be noted that ordered consumption processing means that the hash value information is received and processed by the consumer in the order in which it is sent;
[0091] Component feature information refers to a detailed data set used to describe the basic properties and characteristics of software components. Compared with the broad concept of component information, component feature information focuses more on describing the unique properties, technical specifications or performance of components, thereby improving the product's recognition of component features.
[0092] In a feasible implementation, step S30 may include steps S31 to S33:
[0093] Step S31, obtaining hash value information from the message queue server;
[0094] At the consumer end of the hash value information, an analysis program is used to obtain the hash value information from a message queue (MQ) server.
[0095] Step S32, batch searching the Hash value information in sequence to obtain a search result for each Hash value information;
[0096] It should be noted that, in this embodiment, the product knowledge base and the hash value information are used to compare information, wherein the product knowledge base is a database that stores known or standard component information (including its hash value information).
[0097] When the consumer end collects a certain amount of hash value information, it sends query requests for each hash value information to the product knowledge base in batch processing.
[0098] The product knowledge base performs a query operation to check whether the hash value information already exists in the product knowledge base, and returns the matching status of each hash value information, such as marking which hash value information corresponds to data that is known, unknown, or has been marked as abnormal.
[0099] Step 33, according to the retrieval results of each of the hash value information, the hash value information is sequentially consumed to obtain component feature information.
[0100] According to the retrieval results of each of the hash value information, the hash value information is sequentially processed in a differentiated and orderly manner to ensure the accuracy and efficiency of the processing logic.
[0101] In a feasible implementation, step S33 may include steps S331 to S334:
[0102] Step S331, if the search result is that the hash value information exists in the product knowledge base, the hash value information is merged and updated in sequence to obtain component feature information;
[0103] Specifically, when the hash value information obtained from the message queue server has been recorded in the product knowledge base, it indicates that the component or other related information has been recorded by the system.
[0104] At this point, the system merges the existing corresponding hash value information in the product knowledge base with the newly received hash value information, including updating the old recorded component version information (including its corresponding hash value information), usage statistics or other additional metadata. After the merge operation is completed, the component feature information in the product knowledge base will be updated to reflect the latest component status or supplement the missing component information.
[0105] Step S332, encrypting and compressing the component feature information, and saving the encrypted and compressed component feature information into the product knowledge base;
[0106] In order to ensure the security of component feature information during the interaction process, the system will encrypt the component feature information. The component feature information can be encrypted by encrypting the DLL file.
[0107] Since the encrypted component feature information is usually large in size, in order to save storage space and improve transmission efficiency, the encrypted component feature information also needs to be compressed.
[0108] Finally, the encrypted and compressed component feature information will be saved back into the product knowledge base.
[0109] Step S333: if the search result is that the hash value information does not exist in the product knowledge base, the hash value information is used as the component feature information;
[0110] If the search results show that the hash value information is not recorded in the product knowledge base, it means that this is a newly discovered or undocumented component.
[0111] At this point, the system directly uses the hash value information as the basis for the component feature information. In the absence of more detailed information, the hash value information itself is sufficient to identify the uniqueness of the component and provide a basis for further analysis or recording.
[0112] Step S334, encrypting and compressing the component feature information, and sequentially adding the encrypted and compressed component feature information to the product knowledge base.
[0113] For component feature information (i.e. hash value information) that is newly discovered or not recorded in the product knowledge base, the system will also encrypt and compress it to ensure that all component feature information is protected to the same degree of security.
[0114] The encrypted and compressed component feature information will be appended to the product knowledge base in sequence, thereby completing the product's relevant component information about the component.
[0115] Through the above steps, by retrieving hash value information in the product knowledge base, the feature information of the relevant components of the product can be identified, while the product's recognition of component features can be improved. By adopting an orderly consumption processing method, it can be ensured that the acquired component feature information is consistent with the current system status, avoiding erroneous decisions or operations caused by data confusion. Through the encryption operation of the DLL file, the security of the interaction of component feature information between different businesses is guaranteed.
[0116] Step S40: Perform business processing on the component feature information through the detection engine to obtain corresponding function information.
[0117] It should be noted that a detection engine refers to a software system or tool that is mainly used to automatically analyze and process specific types of data to identify patterns, anomalies, risks or specific characteristics.
[0118] After ensuring that the component feature information is obtained, in order to flexibly respond to different needs of users and provide customized, efficient and intelligent business processing capabilities, step S40 is performed.
[0119] In a feasible implementation, step S40 may include steps S41-S42:
[0120] Step S41, obtaining component feature information from a product knowledge base through a detection engine;
[0121] First, the detection engine needs to be encapsulated, that is, the detection logic and algorithm are encapsulated to analyze component feature information.
[0122] Then, the detection engine can be connected to the product knowledge base through the pre-packaged corresponding retrieval information interface to obtain component feature information.
[0123] Step S42: In the detection engine, the component feature information is decrypted and / or parsed to obtain corresponding function information.
[0124] In the detection engine, since the component feature information is encrypted and compressed before being saved in the product knowledge base in the above steps, the acquired component feature information can be decompressed and decrypted to obtain the corresponding functional information.
[0125] Alternatively, the detection engine may also receive other components from the outside, parse them, obtain component feature information, and then perform other logical processing on the component feature information.
[0126] Through the above steps, combined with the detection engine's automated processing and in-depth analysis, component feature information can be effectively converted into actionable functional knowledge, which not only improves the efficiency of software development and maintenance, but also improves the security and compliance of the system.
[0127] Through the above-mentioned embodiment method, component information is collected; the component information is parsed to obtain hash value information, and the hash value information is stored in the message queue server; the hash value information is retrieved from the message queue server, and the hash value information is retrieved and processed in order to obtain component feature information; the component feature information is processed by the detection engine to obtain corresponding functional information. This solution improves the feature information of the components in the database by retrieving and consuming the component information in an orderly manner, thereby improving the product's recognition of component features.
[0128] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 2 After step S40, the feature information recognition method further includes steps S41-S42:
[0129] Step S41, returning the corresponding function information to the service end;
[0130] After the detection engine completes the business processing of the component feature information and obtains the corresponding function information, it encapsulates and formats the corresponding functions, and sends the encapsulated function information as response data to the business end through a predefined interface.
[0131] Step S42, displaying the function information to the user through the service terminal so that the user can call the function information according to needs.
[0132] The business end displays the function information in a user-friendly form according to its user interface (UI) design, so that users can select functions. This may be presented in the form of tables, lists, charts, etc. on the web page, or displayed through interface elements in the mobile application. The displayed content should include but is not limited to the function name, description, usage method, calling examples, etc., to ensure that users can quickly understand and select the required function.
[0133] Through the above-mentioned embodiment method, the determined component feature information can be converted into corresponding functional information for users to select and use, thereby improving the utilization rate and transparency of the component feature information of the product.
[0134] For example, in order to help understand the implementation process of the feature information identification method obtained by combining this embodiment with the above-mentioned embodiment 1, please refer to Figure 3 , Figure 3 A brief flow chart of a feature information recognition method is provided, specifically:
[0135] First, perform page analysis and component version analysis on common component open source websites on the market, obtain download links and script information, and use scripts and download links to complete the download of component information. Download the component information to Mongodb (a non-relational database system) or record the component information to a file server for subsequent data processing.
[0136] In addition, the system also sets up a trigger mechanism, which immediately sends parsing task instructions to the parsing device once the component information is downloaded.
[0137] The command queue is monitored in real time through the listening program. Once the parsing task instruction is received, a multi-step processing flow is immediately executed: including filtering out valid component information, in-depth analysis of the component information content, calculating the hash value of the component information and DLL encryption of the hash value of each component information, and sending an entry queue notification to the message queue server.
[0138] When the listening program receives a notification from the message queue (MQ) incoming queue, the message queue server first retrieves the hash value information of each component information, and then performs batch searches on the hash value information in the product knowledge base. If the hash value information exists in the product knowledge base, the corresponding merge operation is performed and updated; if the hash value information does not exist in the product knowledge base, the hash value information is directly added to the product knowledge base as the component feature information.
[0139] At the same time, a special retrieval device is provided for the Clickhouse (Column-Oriented DBMS, an open source column-oriented database management system) data engine, which not only provides a fast retrieval function, but also customizes an advanced query interface according to business needs, so that the detection engine can quickly locate the required component feature information.
[0140] Finally, the detection engine will perform business processing on the component feature information according to the specific product functions. The business processing mainly includes information parsing function and corresponding dll decryption function. In addition, during the entire business processing period, the entire business is closed, and only a simple entrance is provided to the outside world to facilitate the connection of business departments.
[0141] Through the brief process of the above-mentioned characteristic information identification method, that is, collecting component information; parsing the component information to obtain hash value information, and storing the hash value information in the message queue server; retrieving the hash value information from the message queue server, and sequentially retrieving and orderly consuming the hash value information to obtain component characteristic information; performing business processing on the component characteristic information through the detection engine to obtain corresponding functional information. This solution improves the characteristic information of components in the database by retrieving and orderly consuming component information, and improves the product's recognition of component characteristic information.
[0142] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the feature information identification method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0143] For example, in order to help understand the implementation process of the feature information identification method obtained by combining this embodiment with the above-mentioned embodiment 1, please refer to Figure 4 , Figure 4 An overall architecture diagram of a feature information recognition method is provided, specifically:
[0144] The method of the embodiment of the present application adopts a multi-layer architecture to improve the recognition of characteristic information of C components in SCA. The overall architecture of the solution of this embodiment can be divided into a collection module, a parsing module, a Clickhouse-SDK (software development kit for an open source column-based database management system) module, and a detection module.
[0145] Among them, the acquisition module is responsible for collecting component information.
[0146] The parsing module is responsible for parsing component information, including filtering, calculating hash value information, encryption processing, and MQ warehousing processing.
[0147] The Clickhouse-SDK module is mainly responsible for batch retrieval and orderly consumption of the hash values of each component information obtained after parsing, so as to obtain the corresponding component feature information of the product.
[0148] The detection module mainly uses the search engine to perform business processing on component feature information according to specific product functions, including parsing and decryption functions, and then returns the functional information obtained after business processing to the business end, which displays it to the user.
[0149] The embodiment of the present application collects component information through the collection module, parses the component information through the parsing module, performs batch retrieval and orderly consumption processing of hash value information through the Clickhouse-SDK module, and performs business processing on component feature information through the detection module. Through the above architecture, it is possible to enrich the relevant information of the component and improve the ability of code traceability and reverse retrieval of component feature information; it is possible to automatically parse the relevant component source code information in an automated manner and improve the product's recognition of the relevant component features.
[0150] This application also provides a feature information recognition device, please refer to Figure 5 , the feature information recognition device comprises:
[0151] A collection module 10, used for collecting components;
[0152] The parsing module 20 is used to parse the component information to obtain hash value information, and store the hash value information in a message queue server;
[0153] A retrieval module 30 is used to retrieve the hash value information from the message queue server, and perform retrieval and orderly consumption processing on the hash value information in sequence to obtain component feature information;
[0154] The detection module 40 is used to perform business processing on the component feature information through a detection engine to obtain corresponding function information.
[0155] The characteristic information recognition device provided by the present application adopts the characteristic information recognition method in the above-mentioned embodiment, which can solve the technical problem that the characteristic information recognition of the component cannot be accurately positioned. Compared with the prior art, the beneficial effects of the characteristic information recognition device provided by the present application are the same as the beneficial effects of the characteristic information recognition method provided by the above-mentioned embodiment, and the other technical features in the characteristic information recognition device are the same as the features disclosed in the above-mentioned embodiment method, which will not be repeated here.
[0156] The present application provides a feature information identification terminal device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the feature information identification method in the above-mentioned embodiment one.
[0157] Reference below Figure 6, which shows a schematic diagram of the structure of a feature information identification terminal device suitable for implementing the embodiment of the present application. The feature information identification terminal device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The characteristic information identification terminal device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0158] like Figure 6 As shown, the characteristic information recognition terminal device may include a processing device 1001 (such as a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the characteristic information recognition terminal device are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the feature information identification terminal device to communicate wirelessly or wired with other devices to exchange data. Although the figure shows a feature information identification terminal device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or provided instead.
[0159] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0160] The characteristic information identification terminal device provided by the present application adopts the characteristic information identification method in the above embodiment, which can solve the technical problem that the characteristic information identification of the component cannot accurately locate. Compared with the prior art, the beneficial effects of the characteristic information identification terminal device provided by the present application are the same as the beneficial effects of the characteristic information identification method provided by the above embodiment, and the other technical features in the characteristic information identification terminal device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0161] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0162] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0163] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, wherein the computer-readable program instructions are used to execute the feature information identification method in the above-mentioned embodiment.
[0164] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.
[0165] The computer-readable storage medium may be included in the feature information recognition terminal device; or may exist independently without being assembled into the feature information recognition terminal device.
[0166] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the feature information recognition terminal device, the feature information recognition terminal device:
[0167] Collect component information;
[0168] Parsing the component information to obtain hash value information, and storing the hash value information in a message queue server;
[0169] Retrieving the hash value information from the message queue server, and performing retrieval and orderly consumption processing on the hash value information in sequence to obtain component feature information;
[0170] The detection engine performs business processing on the component feature information to obtain corresponding function information.
[0171] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In 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 may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0172] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0173] The modules involved in the embodiments of the present application may be implemented by software or hardware, wherein the name of the module does not limit the unit itself in some cases.
[0174] The readable storage medium provided in the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned characteristic information recognition method, and can solve the technical problem that the characteristic information recognition of the component cannot accurately locate. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the present application are the same as the beneficial effects of the characteristic information recognition method provided in the above-mentioned embodiment, and will not be described in detail here.
[0175] The present application also provides a computer program product, including a computer program, which implements the steps of the feature information identification method as described above when executed by a processor.
[0176] The computer program product provided by this application can solve the technical problem that the characteristic information recognition of the component cannot be accurately positioned. Compared with the prior art, the beneficial effects of the computer program product provided by this application are the same as the beneficial effects of the characteristic information recognition method provided by the above embodiment, which will not be repeated here.
[0177] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A method for identifying feature information, characterized in that: The method comprises: Collect component information; Parsing the component information to obtain hash value information, and storing the hash value information in a message queue server; Retrieving the hash value information from the message queue server, and performing retrieval and orderly consumption processing on the hash value information in sequence to obtain component feature information; The step of retrieving the hash value information from the message queue server, and sequentially retrieving and orderly consuming the hash value information to obtain component feature information includes: Get hash value information from the message queue server; Perform batch retrieval on the Hash value information in sequence to obtain retrieval results for each Hash value information; According to the retrieval results of each of the hash value information, the hash value information is sequentially consumed to obtain component feature information; The step of sequentially consuming the hash value information in order according to the retrieval results of each of the hash value information to obtain component feature information includes: If the search result is that the hash value information exists in the product knowledge base, the hash value information is merged and updated in sequence to obtain component feature information, wherein the product knowledge base is a database storing known or standard component information, and the known or standard component information includes the hash value information; Encrypting and compressing the component feature information, and saving the encrypted and compressed component feature information into the product knowledge base; If the search result is that the hash value information does not exist in the product knowledge base, the hash value information is used as the component feature information; Encrypting and compressing the component feature information, and sequentially adding the encrypted and compressed component feature information to the product knowledge base; The detection engine performs business processing on the component feature information to obtain corresponding function information.
2. The feature information recognition method according to claim 1, characterized in that: The step of collecting component information includes: Analyze the page elements of the web page to be parsed and obtain the download link and script information; Downloading a source code package through the script information and the download link, wherein the source code package includes component information; The component information in the source code package is stored in a database.
3. The feature information recognition method according to claim 1, characterized in that: The step of parsing the component information to obtain hash value information and storing the hash value information in the message queue server includes: Retrieving component information from a database, and filtering the component information based on regular expressions to obtain core component information; Perform hash value calculation according to the path information in the core component information to obtain corresponding hash value information; The hash value information is stored in the message queue server.
4. The feature information recognition method according to claim 1, characterized in that: The step of performing business processing on the component feature information by the detection engine to obtain corresponding function information includes: Obtain component feature information from the product knowledge base through the detection engine; In the detection engine, the component feature information is decrypted and / or parsed to obtain corresponding function information.
5. The feature information recognition method according to claim 4, characterized in that: After the detection engine parses and decrypts the component feature information flow to obtain corresponding function information, the detection engine further includes: Return the corresponding functional information to the business end; The function information is displayed to the user through the service end so that the user can call the function information according to needs.
6. A feature information recognition device, characterized in that: The feature information recognition device comprises: A collection module, used to collect component information; A parsing module, used for parsing the component information to obtain hash value information, and storing the hash value information in a message queue server; A retrieval module, used to retrieve the hash value information from the message queue server, and perform retrieval and orderly consumption processing on the hash value information in sequence to obtain component feature information; The retrieval module is also used to obtain hash value information from the message queue server; perform batch retrieval on the hash value information in sequence to obtain the retrieval result of each hash value information; perform orderly consumption processing on the hash value information in sequence according to the retrieval results of each hash value information to obtain component feature information; the retrieval module is also used to merge and update the hash value information in sequence to obtain component feature information if the retrieval result is that the hash value information exists in the product knowledge base, wherein the product knowledge base is a database for storing known or standard component information, and the known or standard component information includes hash value information; encrypt and compress the component feature information, and save the encrypted and compressed component feature information to the product knowledge base; if the retrieval result is that the hash value information does not exist in the product knowledge base, use the hash value information as the component feature information; encrypt and compress the component feature information, and add the encrypted and compressed component feature information to the product knowledge base in sequence; The detection module is used to perform business processing on the component feature information through a detection engine to obtain corresponding function information.
7. A characteristic information recognition terminal device, characterized in that: The feature information recognition terminal device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the feature information recognition method according to any one of claims 1 to 5.
8. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the feature information recognition method according to any one of claims 1 to 5 are implemented.
