Index query method and device, storage medium and computer program product
By obtaining user interaction data identification indicator query information and calling the target application interface, the problem of high degree of solidification of the existing indicator query system is solved, dynamic and flexible indicator data query is realized, and development and maintenance difficulties are reduced.
Patent Information
- Application Number
- CN202411412762.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-11
- Publication Date
- 2024-11-08
AI Technical Summary
When the existing indicator query system faces changes in demand, it requires a lot of manpower and material resources to be redeveloped, debugged and optimized, which has the problem of excessive solidification.
By obtaining user interaction data, identifying indicator query information, and calling the target application interface for data query and display, dynamic and flexible indicator data query is realized, and the problem of difficult to adapt to user changes under traditional solidified query methods is avoided.
It realizes dynamic and flexible query of indicator data under different user needs during the interaction process, reducing the difficulty of development and maintenance and avoiding major adjustments to the system under solidified query methods.
Smart Images

Figure CN118915949A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data query technology, and in particular to an indicator query method, device, storage medium and computer program product. Background Art
[0002] With the rapid development of information technology, business managers have an increasingly urgent need to understand the business operation status in real time, comprehensively and flexibly.
[0003] However, in the early stages of development, traditional solutions for querying indicators of enterprise operation status usually require pre-definition and determination of the indicators to be displayed on the page, and then pre-configuration through a specific API (Application Programming Interface) according to the data source of each indicator to obtain the relevant data of the indicator. Therefore, when faced with changes in requirements, the existing overly rigid indicator query system requires a lot of manpower and material resources to be redeveloped, debugged, and optimized. In other words, the existing indicator query solution has the problem of being too rigid.
[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0005] The main purpose of this application is to provide an indicator query method, device, storage medium and computer program product, aiming to solve the technical problem that the existing indicator query solutions are too rigid.
[0006] To achieve the above purpose, the present application proposes an indicator query method, which includes: Get user interaction data; Identify the user interaction data to obtain indicator query information, wherein the indicator query information at least includes an indicator name; The target application interface corresponding to the indicator name is called, data query is performed according to the indicator query information, indicator data is obtained, and the indicator data is displayed.
[0007] In one embodiment, the step of identifying the user interaction data to obtain indicator query information includes: Performing vectorization processing on the user interaction data to obtain a query feature vector; The query feature vector is matched with a predetermined vector database to obtain index query information.
[0008] In one embodiment, after the step of matching the query feature vector with a predetermined vector database to obtain the index query information, the following steps are included: Obtaining name information and time information in the indicator query information; Matching the name information with a standard name library to obtain a standard name; Performing standardization processing on the time information to obtain standard time; The standard name and the standard time are used as new indicator query information.
[0009] In one embodiment, after matching the name information with the standard name library to obtain the standard name, the process further includes: If there are at least two matching standard names for the original name in the name information, then output the query information of the standard name; After receiving a selection instruction for the query information, the standard name corresponding to the selection instruction is used as the standard name of the original name.
[0010] In one embodiment, the step of calling the target application interface corresponding to the indicator name, performing data query according to the indicator query information, and obtaining the indicator data includes: According to the indicator name, query the predetermined application interface mapping table to obtain the port of the target application interface corresponding to the indicator name; Generate an indicator query request based on the port of the target application interface and the indicator query information; The indicator query request is sent to call the target application interface to perform data query and obtain the indicator data fed back by the target application interface.
[0011] In one embodiment, the indicator query method further includes: After receiving the indicator update instruction, obtaining a new correspondence between the indicator name in the indicator update instruction and the port of the application interface; Based on the new corresponding relationship, the predetermined application interface mapping table is updated.
[0012] In one embodiment, the step of displaying the indicator data includes: Convert the indicator data into a standard format according to a predetermined standard format to obtain standard indicator data; The standard indicator data is visualized to obtain visualized indicator data for display.
[0013] In addition, to achieve the above-mentioned purpose, the present application also proposes an indicator query 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 indicator query method described above.
[0014] 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 the processor, the steps of the indicator query method described above are implemented.
[0015] 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, it implements the steps of the indicator query method described above.
[0016] One or more technical solutions proposed in this application have at least the following technical effects: The present application obtains user interaction data, and then identifies the user interaction data to obtain indicator query information, wherein the indicator query information at least includes the indicator name. Thus, the present application can at least identify the indicator name that the user expects to query from the user interaction data during the human-computer interaction process. Then, according to the correspondence between the indicator name and the application interface, the target application interface corresponding to the indicator name is called, and data query is performed according to the indicator query information to obtain the indicator data corresponding to the indicator query information, and the indicator data is displayed. The present application is different from the traditional indicator query method that uses a mouse to click on a fixed query control on the page. The present application identifies the user's indicator query intention during the interaction with the user (such as text conversation, voice conversation, etc.), and then calls the corresponding target application interface for data query and display, thereby realizing that the indicator data under different user needs can be dynamically and flexibly queried during the interaction process, avoiding the problem that the traditional query method that is too solidified is difficult to adapt to the user's changing query needs. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] 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.
[0018] 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 work.
[0019] Figure 1 A flowchart of the first embodiment of the method for querying the index of this application is provided; Figure 2 A flowchart of the second embodiment of the method for querying the index of this application is provided; Figure 3A flowchart of the third embodiment of the method for querying the index of this application is provided; Figure 4 This is an indicator query scene diagram involved in the embodiment of the present application; Figure 5 A schematic diagram of the device structure of the hardware operating environment involved in the indicator query method in the embodiment of the present application.
[0020] 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
[0021] 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.
[0022] 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.
[0023] The main solution of the embodiment of the present application is: obtaining user interaction data; identifying the user interaction data to obtain indicator query information, wherein the indicator query information at least includes the indicator name; calling the target application interface corresponding to the indicator name, performing data query according to the indicator query information, obtaining indicator data, and displaying the indicator data.
[0024] In this embodiment, for ease of description, the following description is made with the indicator query device as the execution subject.
[0025] In the existing technology, the traditional solution for querying the indicators of the enterprise operation status usually requires pre-definition and determination of the indicators to be displayed on the page in the early stage of development, and then pre-configuration through a specific API (Application Programming Interface) according to the data source of each indicator to obtain the relevant data of the indicator. Therefore, when faced with changes in requirements, the existing overly rigid indicator query system requires a lot of manpower and material resources to be re-developed, debugged, and optimized. That is, the existing indicator query solution has the problem of being too rigid.
[0026] The present application provides a solution, which recognizes the user's indicator query intention during the interaction with the user (such as text conversation, voice conversation, etc.), and then calls the corresponding target application interface to query and display data, thereby realizing dynamic and flexible query of indicator data under different user needs during the interaction process, avoiding the problem that the overly rigid traditional query method is difficult to adapt to the user's changing query needs.
[0027] Based on this, the present application embodiment provides an indicator query method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the indicator query method of this application.
[0028] In this embodiment, the index query method includes steps S10 to S40: Step S10, obtaining user interaction data; It should be noted that the executor of this embodiment is an indicator query device, which may 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.
[0029] It should be noted that the user interaction data is data generated during the interaction between the user and the indicator query device. Exemplarily, the user interaction data may be data from an interaction process such as a text conversation or a voice conversation between the user and the indicator query device.
[0030] In this embodiment, the query text content input for index query during the user interaction process can be obtained as the user interaction data, or the query voice input for index query during the user interaction process can be converted into text content as the user interaction data. Of course, in order to improve the subsequent recognition accuracy of the user interaction data, this embodiment can also perform text preprocessing on the user interaction data to obtain new user interaction data for subsequent steps. The text preprocessing includes processing operations such as text cleaning, word segmentation, removal of stop words, part-of-speech tagging, named entity recognition, etc., to convert the original text data into a format suitable for model processing.
[0031] Step S20, identifying the user interaction data to obtain indicator query information, wherein the indicator query information at least includes an indicator name; It should be noted that the indicator query information is the indicator-related information that is expected to be queried in the user interaction data, and the indicator query information at least includes the indicator name, such as the revenue of the current quarter, the yield rate of a certain type of product, the inventory, etc. It is understandable that the indicator query information may also include information such as the organization to which the indicator belongs (such as the name of the organization such as the department name, company name, etc.), the indicator query scope (such as the regional scope, time scope, etc., time and space scope, etc.).
[0032] In this embodiment, the user interaction data can be matched with a predetermined indicator database to obtain the indicator information to be matched that matches the user interaction data as the indicator query information. The predetermined database may include the indicator information to be matched, and the indicator information to be matched includes at least the indicator name, and of course, the organization name. Furthermore, for user interaction data with an indicator query range, the indicator query range and the matching indicator information to be matched can also be extracted from the user interaction data as the indicator query information. Exemplarily, in this embodiment, the user interaction data can be input into a language processing model trained in advance in the cloud so that the language processing model matches the user interaction data with a predetermined indicator database to obtain the indicator query information fed back by the language processing model, wherein the language processing model can be TF-IDF (Term Frequency-Inverse Document Frequency), BERT (Bidirectional Encoder Representations from Transformers, a deep learning model based on the Transformer architecture), convolutional neural network, recurrent neural network and other models.
[0033] Step S30, calling the target application interface corresponding to the indicator name, performing data query according to the indicator query information, obtaining indicator data, and displaying the indicator data.
[0034] It should be noted that there is a corresponding relationship between the indicator name and the application interface.
[0035] This embodiment can query and obtain the target application interface corresponding to the indicator name based on the correspondence between the indicator name and the application interface, and then call the target application interface to perform data query according to the indicator query information to obtain the indicator data fed back by the target application interface. And display the indicator data. It is understandable that the indicator data can be displayed in at least one form such as text, voice, image, etc. This embodiment completely breaks the existing solidified indicator query method. After identifying the user's indicator query intention in the process of interacting with the user (such as text dialogue, voice dialogue, etc.), the corresponding target application interface is called for data query and display. Therefore, when the user's indicator query demand changes (such as adding indicators, deleting indicators, or even adjusting indicators on a large scale), it only needs to call the corresponding application interface to realize the output of the indicator data corresponding to the changed indicator query demand. It will not be necessary to pre-set fixed query controls on the page, and each query control will be configured with a corresponding application interface. After the indicator query demand changes, the entire system needs to be adjusted significantly. And the user will not be restricted by the fixed query controls in the page to express his indicator query needs.
[0036] The first embodiment of the present application provides an indicator query method, which obtains user interaction data and then identifies the user interaction data to obtain indicator query information, wherein the indicator query information at least includes the indicator name. Thus, this embodiment can identify at least the indicator name that the user expects to query from the user interaction data in the process of human-computer interaction. Then, according to the correspondence between the indicator name and the application interface, the target application interface corresponding to the indicator name is called, and the data query is performed according to the indicator query information to obtain the indicator data corresponding to the indicator query information, and the indicator data is displayed. This embodiment is different from the traditional indicator query method that uses the mouse to click on the page to fix the query control method. This embodiment identifies the user's indicator query intention during the interaction with the user (such as text dialogue, voice dialogue, etc.), and then calls the corresponding target application interface for data query and display, thereby realizing that the indicator data under different user needs can be dynamically and flexibly queried during the interaction process, avoiding the problem that it is difficult to adapt to the user's changing query needs under the overly solidified traditional query method.
[0037] 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 , step S20 includes steps S21-S22: Step S21, vectorizing the user interaction data to obtain a query feature vector; Step S22, matching the query feature vector with a predetermined vector database to obtain index query information.
[0038] It should be noted that the predetermined vector database is vectorized information of indicators to be matched, wherein the indicator information to be matched includes at least an indicator name and may also include an organization name. Exemplarily, before step S22, the present embodiment may obtain the indicator information to be matched, vectorize the indicator information to be matched, obtain a matching indicator vector and store it in the predetermined vector database.
[0039] In this embodiment, the user interaction data can be directly vectorized to obtain a query feature vector. Of course, in order to further improve the accuracy in the subsequent matching process, keywords can also be extracted from the user interaction data, and the keywords can be vectorized to obtain a query feature vector. Furthermore, in this embodiment, the query feature vector can be matched with each vectorized index information to be matched in the predetermined vector database, and the index information to be matched with a matching rate higher than a predetermined matching threshold is used as the index query information.
[0040] In a feasible embodiment, step S22 includes steps A10 to A40: Step A10, obtaining the name information and time information in the indicator query information; Step A20, matching the name information with a standard name library to obtain a standard name; Step A30, standardizing the time information to obtain standard time; Step A40: Use the standard name and the standard time as new indicator query information.
[0041] It should be noted that the name information includes information related to the name in the indicator query information, such as the original name of the indicator, the original name of the organization, etc.
[0042] In addition, it should be noted that the standard name library includes pre-set standard names for various indicators, organizations and other indicator-related contents.
[0043] Since the natural language in the user interaction data may be simplified, blurred, or expressed in a popular way in describing certain indicators, organizations, and time, errors can be avoided in the subsequent indicator data query process. In this embodiment, the name information and time information in the indicator query information can be obtained, and the name information can be matched with the standard name library to obtain the standard name corresponding to each name in the name information. The time information is standardized to obtain the standard time, that is, the popular time expression in the time information is converted into a specific date, such as converting this year into 2024. Thus, the standard name and the standard time are used as new indicator query information.
[0044] This embodiment converts the name information in the indicator query information into a standard name and converts the time information in the indicator query information into a standard time, thereby preventing errors from occurring in subsequent indicator data queries due to simplification, fuzzification, and colloquial expressions in natural language, thereby improving the accuracy of indicator data queries.
[0045] In a feasible embodiment, step A20 includes steps B10 to B20: Step B10, if there are at least two matching standard names for the original name in the name information, then output the query information of the standard name; Step B20, after receiving a selection instruction for the query information, using the standard name corresponding to the selection instruction as the standard name of the original name.
[0046] In real scenarios, there may be a situation where multiple standard names match due to overly vague or simplified expressions. For example, the original name in the name information is "income", and the standard names "net profit income" and "gross profit income" exist in the standard name library. This embodiment can determine whether there are at least two matching standard names for the original name in the name information. If there are at least two matching standard names for the original name in the name information, the query information of the standard name is output to inquire the user about the standard name corresponding to the original name in the matching standard names. After receiving the selection instruction for the query information, the standard name corresponding to the selection instruction is used as the standard name of the original name. It can be understood that the standard name corresponding to the selection instruction can be one or more. That is, "net profit income" and "gross profit income" are both used as the standard name of "income". Therefore, this embodiment can further reduce query errors caused by simplification, fuzzification, etc. in natural language, and improve the accuracy of indicator data query.
[0047] The second embodiment of the present application provides an indicator query method, which obtains a query feature vector by vectorizing the user interaction data; and matches the query feature vector with a predetermined vector database to obtain indicator query information. This embodiment matches the vectorized user interaction data with a predetermined vector database in a vectorized manner, thereby identifying the user's query intention for the indicator.
[0048] Based on the first embodiment of the present application, in the third 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 3 The step of calling the target application interface corresponding to the indicator name in step S30, performing data query according to the indicator query information, and obtaining the indicator data includes steps S31 to S33: Step S31, according to the indicator name, query the predetermined application interface mapping table to obtain the port of the target application interface corresponding to the indicator name; Step S32, generating an indicator query request based on the port of the target application interface and the indicator query information; Step S33: Send the indicator query request to call the target application interface to perform data query and obtain the indicator data fed back by the target application interface.
[0049] It should be noted that the predetermined application interface mapping table includes the correspondence between the indicator name and the port of the application interface, wherein the port of the application interface is the URL (Uniform Resource Locator) of the application interface. It is understandable that the indicator name and the application interface are in a one-to-one correspondence, that is, when there are multiple indicator names, multiple target application interfaces will be called for query.
[0050] This embodiment can obtain the port of the target application interface corresponding to the indicator name by querying the predetermined application interface mapping table according to the indicator name. Then, based on the port of the target application interface and the indicator query information, an indicator query request is generated. Exemplarily, the indicator query request includes the port of the target application interface, the request method, the necessary header information (such as the authentication token) and the parameters corresponding to the indicator query information. Thus, the indicator query request can be sent to the server that provides the target application interface, so that the server can call the target application interface for data query and obtain the indicator data fed back by the target application interface.
[0051] In a feasible embodiment, the index query method further includes steps C10 to C20: Step C10, after receiving the indicator update instruction, obtaining a new correspondence between the indicator name in the indicator update instruction and the port of the application interface; Step C20: updating the predetermined application interface mapping table based on the new corresponding relationship.
[0052] It should be noted that the indicator update instruction is an instruction for updating the correspondence between the indicator name and the port of the application interface in the predetermined application interface mapping table, such as adding a new indicator name and its application interface port, deleting an indicator name and its application interface port, changing the correspondence between the indicator name and its application interface port, etc.
[0053] After receiving the indicator update instruction, this embodiment obtains the new correspondence between the indicator name in the indicator update instruction and the port of the application interface, updates the predetermined application interface mapping table based on the new correspondence, and then obtains a new predetermined application interface mapping table. Therefore, this embodiment can meet the changed indicator query requirements by simply updating the correspondence in the predetermined application interface mapping table, which effectively improves the flexibility of indicator query.
[0054] In an optional embodiment, the step of displaying the indicator data in step S30 includes steps S34-S35: Step S34, converting the indicator data into a format according to a predetermined standard format to obtain standard indicator data; Step S35, visualizing the standard indicator data to obtain visualized indicator data for display.
[0055] It should be noted that the predetermined standard format is a specified format set in advance for the numerical value in the indicator data.
[0056] It is understandable that the formats of the values in the indicator data fed back by the target application port may be different, such as unit differences, digit differences, etc. Therefore, in order to make the displayed indicator data more intuitive, it is convenient for users to quickly understand. In this embodiment, the indicator data can be formatted according to a predetermined standard format to obtain standard indicator data. In this exemplary embodiment, the indicator data can be converted into standard indicator data in a predetermined standard format through operations such as indicator unit query, indicator unit conversion, and data effective digit conversion. Then, the standard indicator data can be visualized to obtain visualized indicator data for display. It is understandable that the visualized indicator data can be standard indicator data in the form of pure text, tables, images, etc. Further, for standard indicator data that changes with time or space, a change trend chart of the standard indicator data in the time dimension or space dimension can also be generated as the visualized indicator data to improve the intuitiveness of the indicator data, so as to facilitate user understanding.
[0057] The third embodiment of the present application provides an indicator query method, by querying a predetermined application interface mapping table according to the indicator name, obtaining the port of the target application interface corresponding to the indicator name; generating an indicator query request based on the port of the target application interface and the indicator query information; sending the indicator query request to call the target application interface for data query, and obtaining the indicator data fed back by the target application interface. This embodiment maintains the correspondence between the indicator name and the application interface with the help of a predetermined application interface mapping table, thereby ensuring that the corresponding target application interface can be dynamically and flexibly called to query the indicator data as the indicator name changes, effectively improving the flexibility of indicator data query and reducing the difficulty of development and maintenance.
[0058] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the index query method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0059] Please refer to Figure 4 , Figure 4This is an indicator query scene diagram involved in the embodiment of the present application. After receiving the user interaction data, this embodiment uses a language processing model (such as a sequence to sequence (Seq2Seq) model, a Transformer model, etc.) to perform context retrieval based on the vectorized user interaction data and a predetermined vector database, and matches to obtain indicator query information that describes the user's indicator query intention. Then, by standardizing the indicator query information, the original name of the indicator is converted into the standard name of the indicator through indicator processing, the popularized original time is converted into the standard time through time conversion, and the original name of the organization is converted into the standard name of the organization through organization processing, thereby obtaining the standardized indicator query information. Then, based on the indicator name in the indicator query information, with the help of an API scheduling plug-in, the target application interface corresponding to the indicator name is called, and data query is performed in the target database (i.e., a database storing indicator data) according to the indicator query information to obtain indicator data, and the indicator data is post-processed (i.e., the indicator data is formatted according to a predetermined standard format) before being displayed.
[0060] The present application provides an indicator query 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 indicator query method in the above-mentioned embodiment one.
[0061] Reference below Figure 5 , which shows a schematic diagram of the structure of an index query device suitable for implementing the embodiment of the present application. The index query device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted hosts), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The indicator query 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.
[0062] like Figure 5As shown, the index query device may include a processing device 1001 (such as a central processing unit, a graphics processor, 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 index query 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 index query device to communicate with other devices wirelessly or wired to exchange data. Although the figure shows an index query 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.
[0063] 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.
[0064] The indicator query device provided by the present application adopts the indicator query method in the above embodiment, which can solve the technical problem that the existing indicator query solution has a high degree of solidification. Compared with the prior art, the beneficial effects of the indicator query device provided by the present application are the same as the beneficial effects of the indicator query method provided by the above embodiment, and the other technical features in the indicator query device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0065] 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.
[0066] 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.
[0067] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the indicator query method in the above-mentioned embodiment.
[0068] 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 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, which may be used by or in combination with an instruction execution 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.
[0069] The above-mentioned computer-readable storage medium may be included in the indicator query device; or it may exist independently without being assembled into the indicator query device.
[0070] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the indicator query device, the indicator query device: obtains user interaction data; identifies the user interaction data to obtain indicator query information, wherein the indicator query information at least includes the indicator name; calls the target application interface corresponding to the indicator name, performs data query according to the indicator query information, obtains indicator data, and displays the indicator data.
[0071] 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).
[0072] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0073] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0074] The readable storage medium provided in this application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned index query method, and can solve the technical problem that the existing index query scheme has a high degree of solidification. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as the beneficial effects of the index query method provided in the above-mentioned embodiment, and will not be repeated here.
[0075] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned indicator query method when executed by a processor.
[0076] The computer program product provided by this application can solve the technical problem that the existing index query scheme has a high degree of solidification. 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 index query method provided by the above embodiment, which will not be repeated here.
[0077] 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. An indicator query method, characterized in that: The indicator query method comprises: Get user interaction data; Identify the user interaction data to obtain indicator query information, wherein the indicator query information at least includes an indicator name; The target application interface corresponding to the indicator name is called, data query is performed according to the indicator query information, indicator data is obtained, and the indicator data is displayed.
2. The index query method according to claim 1, characterized in that: The step of identifying the user interaction data to obtain indicator query information includes: Performing vectorization processing on the user interaction data to obtain a query feature vector; The query feature vector is matched with a predetermined vector database to obtain index query information.
3. The index query method according to claim 2, characterized in that: After the step of matching the query feature vector with a predetermined vector database to obtain the index query information, the method further comprises: Obtaining name information and time information in the indicator query information; Matching the name information with a standard name library to obtain a standard name; Performing standardization processing on the time information to obtain standard time; The standard name and the standard time are used as new indicator query information.
4. The index query method according to claim 3, characterized in that: After matching the name information with the standard name library to obtain the standard name, the method further includes: If there are at least two matching standard names for the original name in the name information, then output the query information of the standard name; After receiving a selection instruction for the query information, the standard name corresponding to the selection instruction is used as the standard name of the original name.
5. The index query method according to claim 1, characterized in that: The step of calling the target application interface corresponding to the indicator name, performing data query according to the indicator query information, and obtaining the indicator data includes: According to the indicator name, query the predetermined application interface mapping table to obtain the port of the target application interface corresponding to the indicator name; Generate an indicator query request based on the port of the target application interface and the indicator query information; The indicator query request is sent to call the target application interface to perform data query and obtain the indicator data fed back by the target application interface.
6. The index query method according to claim 5, characterized in that: The indicator query method also includes: After receiving the indicator update instruction, obtaining a new correspondence between the indicator name in the indicator update instruction and the port of the application interface; Based on the new corresponding relationship, the predetermined application interface mapping table is updated.
7. The index query method according to any one of claims 1 to 6, characterized in that: The step of displaying the indicator data includes: Convert the indicator data into a standard format according to a predetermined standard format to obtain standard indicator data; The standard indicator data is visualized to obtain visualized indicator data for display.
8. An index query device, characterized in that: The device comprises: 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 indicator query method according to any one of claims 1 to 7.
9. 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 indicator query method according to any one of claims 1 to 7 are implemented.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the indicator query method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Business data query method, electronic equipment and readable storage medium
CN116561132A
Data query method and device, computer equipment and storage medium
CN117648427A
Data query method and system, storage medium and computer program product
CN118690062A
