Data query method and device, storage medium and electronic equipment
By analyzing the query requirements text information entered by the user, and directly querying and processing data from the database, the problem of low data query efficiency in the existing technology is solved, and efficient data query and processing is realized, which is suitable for a variety of scenarios.
Patent Information
- Application Number
- CN202411237429.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-04
- Publication Date
- 2025-01-10
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing data query methods are inefficient, which affects the user's business processing efficiency.
By obtaining the query requirement text information entered by the user, using a preset analytical model to parse and determine the query statement and user intent information, thus directly querying and processing data from the database, reducing the need for users to enter standard query statements.
It improves the efficiency of data query, reduces the difficulty of users' query, and improves the readability of data. It is suitable for a variety of scenarios such as games and internal enterprise asset monitoring.
Smart Images

Figure CN119293061A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a data query method, device, storage medium and electronic device. Background Art
[0002] With the rapid development of computer technology, users' demand for various types of data is increasing. In order to meet users' needs, various types of data can be stored so that users can query the required data from them.
[0003] However, when using the current query method to query data, the query efficiency is often low, which further affects the user's business processing efficiency. Summary of the invention
[0004] This specification provides a data query method, device, storage medium and electronic device to partially solve the above-mentioned problems existing in the prior art.
[0005] This manual adopts the following technical solutions:
[0006] This specification provides a data query method, including:
[0007] Acquire the query requirement text information input by the user, wherein the query requirement text information is used to represent the specific requirements of the user when performing data query;
[0008] The query demand text information is parsed by a preset parsing model to obtain a parsing result, and according to the parsing result, a query statement corresponding to the query demand text information and the user intention information of the user are determined, wherein the parsing result is used to characterize the content to be queried by the user, and the user intention information is used to characterize the user's demand for the display form of the content to be queried;
[0009] According to the query statement, query the target data from the preset database;
[0010] The target data is processed according to the user intention information, and the processing result is returned to the user.
[0011] Optionally, the step of querying the target data from a preset database according to the query statement specifically includes:
[0012] The preset query interface is called to query the target data from the preset database according to the query statement.
[0013] Optionally, the query statement carries a query identifier, which is used to represent category information of the content to be queried by the user, and different query identifiers correspond to different query interfaces;
[0014] The step of calling the preset query interface specifically includes:
[0015] Obtaining a query identifier carried in the query statement;
[0016] According to the query identifier, a query interface corresponding to the query identifier is called.
[0017] Optionally, the step of processing the target data according to the user intention information specifically includes:
[0018] Determine, from among the data display interfaces, a data display interface that matches the user intention information as a target interface;
[0019] The target data is processed according to the target interface.
[0020] Optionally, the method further comprises:
[0021] After displaying the processing result, monitoring the operation performed by the user on the processing result;
[0022] After monitoring that the user performs a specified operation on the processing result, determining adjustment information of the user on the processing result;
[0023] The adjustment information and the query requirement text information are input into the analysis model, so as to redefine the query statement through the analysis model based on the adjustment information and the query requirement text information, and query data from a preset database through the redetermined query statement.
[0024] Optionally, the step of monitoring the user performing a specified operation on the processing result specifically includes:
[0025] When it is detected that the user performs a marking operation on part of the data in the processing result, it is detected that the user performs a specified operation on the processing result;
[0026] The step of determining the adjustment information of the user for the processing result after monitoring that the user performs a specified operation for the processing result specifically includes:
[0027] According to the partial data marked by the user in the processing result, adjustment information for the partial data is determined.
[0028] Optionally, the step of inputting the adjustment information and the query requirement text information into the parsing model to re-determine the query statement based on the adjustment information and the query requirement text information through the parsing model specifically includes:
[0029] The adjustment information and the query requirement text information are input into the parsing model, so that the parsing model determines the objection field according to the adjustment information, and redetermines the query statement according to the objection field and the query requirement text information.
[0030] This specification provides a data query device, including:
[0031] Acquisition module: used to acquire the query requirement text information input by the user, wherein the query requirement text information is used to represent the specific requirements of the user when performing data query;
[0032] Parsing module: used to parse the query demand text information through a preset parsing model to obtain a parsing result, and determine the query statement corresponding to the query demand text information and the user intention information of the user according to the parsing result, wherein the parsing result is used to characterize the content to be queried by the user, and the user intention information is used to characterize the user's demand for the display form of the content to be queried;
[0033] Query module: used to query target data from a preset database according to the query statement;
[0034] Processing module: used to process the target data according to the user intention information and return the processing result to the user.
[0035] This specification provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned data query method is implemented.
[0036] This specification provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned data query method when executing the program.
[0037] At least one of the above technical solutions adopted in this specification can achieve the following beneficial effects:
[0038] The data query method provided in this specification can obtain the query demand text information input by the user, parse the query demand text information through a preset parsing model to obtain the parsing result, and determine the query statement corresponding to the query demand text information and the user's user intention information based on the parsing result, query the target data from the preset database based on the query statement, and process the target data based on the user's intention information, and return the processing result to the user.
[0039] It can be seen from this that the above data query method can parse the query statement and user intention information from the query demand text information input by the user through the parsing model, so as to query and process the target data according to the parsed query statement and user intention information. That is, when using the above data query method to query data, it is not necessary to require the user to enter a standard query statement to query, but only the user needs to enter the query demand text information containing the specific needs when querying data, thereby reducing the difficulty of the user to query data and improving the query efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The drawings described herein are used to provide a further understanding of this specification and constitute a part of this specification. The illustrative embodiments and descriptions of this specification are used to explain this specification and do not constitute an improper limitation on this specification. In the drawings:
[0041] Figure 1 A flowchart of a data query method provided in this specification;
[0042] Figure 2 A schematic diagram of a data display interface provided in this manual;
[0043] Figure 3 A schematic diagram of a monitoring data display interface provided in this manual;
[0044] Figure 4 A schematic diagram of a data query device provided in this specification;
[0045] Figure 5 A method corresponding to the Figure 1 Schematic block diagram of an electronic device. DETAILED DESCRIPTION
[0046] In order to make the purpose, technical solutions and advantages of this specification more clear, the technical solutions of this specification will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.
[0047] At present, users have an increasing demand for various types of data. In order to meet the needs of users, various types of data can be stored so that users can query the required data. However, when using the current query method to query data, the query efficiency is often low, which further affects the user's business processing efficiency.
[0048] Therefore, this specification provides a data query method, which can effectively solve the problems in the prior art.
[0049] The technical solutions provided by the embodiments of this specification are described in detail below in conjunction with the accompanying drawings.
[0050] Figure 1 A flowchart of a data query method provided in this specification includes the following steps:
[0051] S101: Acquire query requirement text information input by a user, where the query requirement text information is used to represent the specific requirements of the user when performing data query.
[0052] The execution subject of the data query method involved in this specification can be a terminal device such as a desktop computer, a laptop computer, or a client installed in the terminal device, or a server. The following only takes the server as an example to illustrate the data query method in the embodiment of this specification.
[0053] In this specification, the server can obtain the query demand text information input by the user. For example, the server can display a visual interface for the user to operate, and then the user can input the query demand text information through the visual interface according to actual needs. For example, the query demand text information can be "Please list the currently idle computer devices and sort them according to the IP addresses of the computer devices."
[0054] S102: Parse the query demand text information through a preset parsing model to obtain a parsing result, and determine the query statement corresponding to the query demand text information and the user intention information of the user based on the parsing result, wherein the parsing result is used to characterize the content to be queried by the user, and the user intention information is used to characterize the user's demand for the display form of the content to be queried.
[0055] After obtaining the query text information input by the user, the server can parse the query text information through a preset parsing model (e.g., GPT-2, GPT-3, etc.) to obtain a parsing result, wherein the parsing result can represent the content that the user wants to query. For example, the parsing model can be used to perform semantic analysis on the user's query statement to obtain a parsing result.
[0056] Then, the query statement (such as SQL query statement, MySQL query statement, etc.) corresponding to the query demand text information and the user's user intention information can be determined according to the parsing result. The user intention information can represent the user's demand for the display form of the content to be queried. For example, the user intention information can be to arrange the queried content in descending order, to display only the date information in the queried content, to represent the queried content in a chart, etc.
[0057] S103: According to the query statement, query the target data from a preset database.
[0058] Then, the server can query the target data from the preset database according to the query statement. For example, the server can query the target data from the local preset database according to the query statement.
[0059] Of course, the server can also call a preset query interface and query the target data from a preset database (such as a remote database) according to the query statement.
[0060] It should be noted that in this specification, different query interfaces can be called for different categories of data to be queried by the user to query the target data from different databases. Specifically, the query statement can carry a query identifier, which can represent the category information of the content to be queried by the user, and different query identifiers correspond to different query interfaces.
[0061] The server can first obtain the query identifier carried in the query statement, and then, according to the obtained query identifier, call the query interface corresponding to the query identifier to query the target data from the corresponding database. For example, when the query requirement text information entered by the user is "Please list the currently idle computer devices and sort them according to the IP addresses of the computer devices.", that is, the user wants to query the information of idle computer devices, the query interface A can be called to query the information of idle computer devices from the database corresponding to the query interface A.
[0062] For another example, when the query requirement text information input by the user is "Please list the employees under department a and sort them by last name.", that is, the user wants to query the employee information, the query interface B can be called to query the employee information from the database corresponding to the query interface B.
[0063] S104: Process the target data according to the user intention information, and return the processing result to the user.
[0064] In actual application, the amount of target data queried may often be large and the readability may be poor. Therefore, the server may process the target data accordingly according to the actual needs of the user.
[0065] Specifically, the server can process the target data according to the determined user intent information and return the processing result to the user. The server can first return the target data to the parsing model, and then process the target data according to the user intent information through the parsing model. Alternatively, the server can process the target data according to the user intent information through a preset program code.
[0066] When processing the target data, the server can perform data classification processing, data screening processing, etc. on the target data according to the user intention information. For example, when the user intention information is "sort the currently idle computer devices according to the IP addresses of the computer devices.", and the queried target data is: model data of each computer device, device status data of each computer device, MAC address data of each computer device, and IP address data of each computer device, the server can screen out the IP address data and device status data of each computer device from the target data, and classify each computer device to determine the computer devices in the idle state and the computer devices in the running state, and screen out the computer devices that are currently in the idle state.
[0067] Furthermore, a list of currently idle computer devices can be generated in order of their IP addresses, and the information contained in the list can be interpreted to present the final processing result to the user in the data display interface. For details, please refer to the following Figure 2 .
[0068] Figure 2 This is a schematic diagram of a data display interface provided in this manual.
[0069] Depend on Figure 2 It can be seen that the user can enter the query demand text information in the query demand text information input area and touch the query control to query the corresponding content. When the query demand text information is "Please list the currently idle computer devices and sort them according to the IP addresses of the computer devices.", the list of currently idle computer devices sorted according to the IP addresses of the computers can be displayed in the data display interface. At the same time, the idle state can be further explained to obtain "Computer devices that have not executed any user-initiated applications or processes are idle computer devices. Reasonable use of idle computer devices can improve overall resource utilization and improve efficiency" and display them in the data display interface. Of course, Figure 2Only one form of data display interface is shown. In actual application, the specific content displayed in the data display interface can be determined according to the query requirement text information input by the user, and this manual will not list them one by one here.
[0070] In addition, the administrator can also pre-set data display interfaces for different categories of content that users want to query. These data display interfaces can display interface themes, interactive controls, etc. related to the content that users want to query. When processing the target data, the server can determine the data display interface that matches the user's intention information from each data display interface as the target interface, and process the target data according to the target interface. For example, the target data can be displayed in the form corresponding to the interface theme contained in the target interface.
[0071] Of course, in actual application, the processing result returned by the server to the user may not match the content that the user wants to query. Therefore, after displaying the processing result to the user, the server can also monitor the operation performed by the user on the processing result, and after monitoring the user to perform a specified operation on the processing result, the adjustment information of the user on the processing result can be determined.
[0072] The specified operation of the user monitored by the server may be a marking operation on the processing result. When the server detects that the user performs a marking operation on part of the data in the processing result (such as marking with a specified color, marking with a bold font, etc.), the server may determine adjustment information for part of the data (such as deleting this part of the data when subsequently displaying it to the user, replacing it with other data, etc.) based on the part of the data marked by the user in the processing result.
[0073] Of course, the monitored user's designated operation may also be a selection operation. When the server monitors that the user selects part of the data in the processing result and stays there for longer than a preset maximum time, it may determine adjustment information for part of the data based on the part of the data selected by the user.
[0074] Then, the adjustment information and the query requirement text information can be input into the parsing model, so that the parsing model can redetermine the query statement based on the adjustment information and the query requirement text information. Specifically, the parsing model can determine the objection field according to the adjustment information, and the objection field can be understood as the data that the user has objections to (such as: data marked by the user, data selected by the user, etc.). Furthermore, the query statement can be redetermined according to the objection field and the query requirement text information, and the data can be queried from the preset database through the redetermined query statement.
[0075] Next, a specific embodiment will be used to illustrate the specified operation performed by the above monitoring user. For details, please refer to the following Figure 3 .
[0076] Figure 3 This is a schematic diagram of a monitoring data display interface provided in this manual.
[0077] Depend on Figure 3 It can be seen that the server can monitor that the user has bolded the column title named "Attendance Status of the Current Month" in the list of processing results. Then, it can be determined that there may be a query error in the "Attendance Status of the Current Month" column, that is, the user may not need data about attendance in actual application, and the query statement determined based on the current query requirement text information may be wrong and needs to be adjusted. Therefore, the adjustment information and the query requirement text information can be input into the parsing model, and the parsing model can determine that the objection field is the "Attendance Status of the Current Month" column. Then, the query statement can be re-determined based on the objection field and the query requirement text information, and the target data can be re-queried to delete or replace the "Attendance Status of the Current Month" column.
[0078] certainly, Figure 3 It is just a form of monitoring data display interface. In actual application, the data marked by the user is different, and the form of the monitoring data display interface is also different. This manual will not list them one by one here.
[0079] It can be seen from this that the above data query method can parse the query statement and user intention information from the query demand text information input by the user through the parsing model, so as to query and process the target data according to the parsed query statement and user intention information. That is, when using the above data query method to query data, it is not necessary to require the user to enter a standard query statement to query, but only the user needs to enter the query demand text information containing the specific needs when querying data, thereby reducing the difficulty of the user to query data and improving the query efficiency.
[0080] In addition, in the above data query method, the server can also process the target data according to the user intent information to determine the data that meets the user intent information from the numerous received data and return it to the user, which will greatly improve the readability of the data and thus greatly improve the query efficiency.
[0081] In addition, the server can also monitor the specified operations performed by the user on the processing results, and determine the user's adjustment information for the processing results, determine the objection field based on the adjustment information, and redefine the query statement based on the objection field, so as to re-query the corresponding data and return it to the user, thereby effectively solving the situation where the processing results do not meet the user's actual needs and improving query efficiency.
[0082] In this specification, the above data query method can be applied in a variety of scenarios. For example, in the applicable game business scenario, the behavior data of each game player can be queried according to the actual needs of the user, and the actual needs of each player can be determined according to the queried behavior data of each game player, so as to provide game players with game services that better meet the needs of the players themselves.
[0083] For another example, in order to effectively monitor the internal assets of an enterprise, the above data query method can also be applied to the scenario of monitoring the internal assets of an enterprise, and various internal asset data of the enterprise (such as financial data, production equipment data, etc.) can be queried according to the actual needs of the user.
[0084] The above are one or more implementation methods of this specification. Based on the same idea, this specification also provides a corresponding data query device, such as Figure 4 shown.
[0085] Figure 4 A schematic diagram of a data query device provided in this specification includes:
[0086] Acquisition module 401: used to acquire query requirement text information input by the user, wherein the query requirement text information is used to represent the specific requirements of the user when performing data query;
[0087] Parsing module 402: used to parse the query demand text information through a preset parsing model to obtain a parsing result, and determine the query statement corresponding to the query demand text information and the user intention information of the user according to the parsing result, wherein the parsing result is used to represent the content to be queried by the user, and the user intention information is used to represent the user's demand for the display form of the content to be queried;
[0088] Query module 403: used to query target data from a preset database according to the query statement;
[0089] Processing module 404: used to process the target data according to the user intention information and return the processing result to the user.
[0090] Optionally, the query module 403 is specifically used to call a preset query interface to query target data from a preset database according to the query statement.
[0091] Optionally, the query statement carries a query identifier, which is used to represent category information of the content to be queried by the user, and different query identifiers correspond to different query interfaces;
[0092] The query module 403 is specifically used to: obtain the query identifier carried in the query statement; and call the query interface corresponding to the query identifier according to the query identifier.
[0093] Optionally, the processing module 404 is specifically used to: determine a data display interface that matches the user intention information from various data display interfaces as a target interface; and process the target data according to the target interface.
[0094] Optionally, the method further includes: a monitoring module 405;
[0095] The monitoring module 405 is specifically used for: after displaying the processing result, monitoring the operations performed by the user on the processing result; after monitoring the user to perform a specified operation on the processing result, determining the adjustment information of the user on the processing result; inputting the adjustment information and the query requirement text information into the parsing model, so as to redefine the query statement through the parsing model based on the adjustment information and the query requirement text information, and query data from a preset database through the redetermined query statement.
[0096] Optionally, the monitoring module 405 is specifically used to: when it is monitored that the user performs a marking operation on part of the data in the processing result, it is monitored that the user performs a specified operation on the processing result; based on the part of the data marked by the user in the processing result, determine adjustment information for the part of the data.
[0097] Optionally, the monitoring module 405 is specifically used to: input the adjustment information and the query requirement text information into the parsing model, so that the parsing model determines the objection field according to the adjustment information, and redetermines the query statement according to the objection field and the query requirement text information.
[0098] This specification also provides a computer-readable storage medium, which stores a computer program, which can be used to execute the above Figure 1 The data query method shown.
[0099] This manual also provides Figure 5The one shown corresponds to Figure 1 A schematic diagram of the electronic device. Figure 5 As shown, at the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include other hardware required for the business. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to achieve the above Figure 1 The data query method shown.
[0100] Of course, in addition to software implementation, this specification does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is to say, the executor of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.
[0101] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0102] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.
[0103] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0104] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0105] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0106] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0107] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0108] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0109] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0110] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0111] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0112] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0113] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0114] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0115] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0116] The above description is only an embodiment of the present specification and is not intended to limit the present specification. For those skilled in the art, the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of the claims of the present specification.
Claims
1. A data query method, characterized in that: include: Acquire the query requirement text information input by the user, wherein the query requirement text information is used to represent the specific requirements of the user when performing data query; The query demand text information is parsed by a preset parsing model to obtain a parsing result, and according to the parsing result, a query statement corresponding to the query demand text information and the user intention information of the user are determined, wherein the parsing result is used to characterize the content to be queried by the user, and the user intention information is used to characterize the user's demand for the display form of the content to be queried; According to the query statement, query the target data from the preset database; The target data is processed according to the user intention information, and the processing result is returned to the user.
2. The method according to claim 1, characterized in that The step of searching for target data from a preset database according to the query statement specifically includes: The preset query interface is called to query the target data from the preset database according to the query statement.
3. The method according to claim 2, characterized in that The query statement carries a query identifier, which is used to represent the category information of the content to be queried by the user, and different query identifiers correspond to different query interfaces; The step of calling the preset query interface specifically includes: Obtaining a query identifier carried in the query statement; According to the query identifier, a query interface corresponding to the query identifier is called.
4. The method according to claim 1, characterized in that The step of processing the target data according to the user intention information specifically includes: Determine, from among the data display interfaces, a data display interface that matches the user intention information as a target interface; The target data is processed according to the target interface.
5. The method according to claim 1, characterized in that The method further comprises: After displaying the processing result, monitoring the operation performed by the user on the processing result; After monitoring that the user performs a specified operation on the processing result, determining adjustment information of the user on the processing result; The adjustment information and the query requirement text information are input into the analysis model, so as to redefine the query statement through the analysis model based on the adjustment information and the query requirement text information, and query data from a preset database through the redetermined query statement.
6. The method according to claim 5, characterized in that The step of monitoring the user performing a specified operation on the processing result specifically includes: When it is detected that the user performs a marking operation on part of the data in the processing result, it is detected that the user performs a specified operation on the processing result; The step of determining the adjustment information of the user for the processing result after monitoring that the user performs a specified operation for the processing result specifically includes: According to the partial data marked by the user in the processing result, adjustment information for the partial data is determined.
7. The method according to claim 5, characterized in that The step of inputting the adjustment information and the query requirement text information into the parsing model to re-determine the query statement based on the adjustment information and the query requirement text information through the parsing model specifically includes: The adjustment information and the query requirement text information are input into the parsing model, so that the parsing model determines the objection field according to the adjustment information, and redetermines the query statement according to the objection field and the query requirement text information.
8. A data query device, characterized in that: include: Acquisition module: used to acquire the query requirement text information input by the user, wherein the query requirement text information is used to represent the specific requirements of the user when performing data query; Parsing module: used to parse the query demand text information through a preset parsing model to obtain a parsing result, and determine the query statement corresponding to the query demand text information and the user intention information of the user according to the parsing result, wherein the parsing result is used to characterize the content to be queried by the user, and the user intention information is used to characterize the user's demand for the display form of the content to be queried; Query module: used to query target data from a preset database according to the query statement; Processing module: used to process the target data according to the user intention information and return the processing result to the user.
9. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Information searching method and device
CN104503991A
Search content display method and device, electronic equipment and storage medium
CN111782947A
Information processing method and device, electronic equipment and storage medium
CN113535931A
Database query method and device, computer equipment and storage medium
CN114253990A
Data query method and device, computer equipment and storage medium
CN115658794A