Method and related device for information query method

文档序号:1904736 发布日期:2021-11-30 浏览:22次 中文

阅读说明:本技术 一种信息查询方法的方法以及相关装置 (Method and related device for information query method ) 是由 王珺 郑还 梁天一 蔡柏涵 江剑锋 于 2020-05-25 设计创作,主要内容包括:本申请公开了一种信息查询方法的方法以及相关装置,可以应用于即时通讯应用中。通过在第一进程的目标界面上展示文本信息;然后响应于目标界面上的触发操作识别文本信息中的目标信息,其中目标信息包含至少一个目标标识,且目标标识基于第二进程设定,第二进程包含与目标标识相关联的目标数据;进而基于目标标识对目标数据进行查询,以得到描述信息。从而实现了不同内容的信息切换以及查询过程,由于查询的过程都是在第一进程的目标界面中进行的,且用户可以通过简单的操作实现信息的查询,提高了信息查询的效率以及查询操作的便捷性。(The application discloses a method and a related device for an information query method, which can be applied to instant messaging application. Displaying text information on a target interface of a first process; then, responding to a trigger operation on a target interface to identify target information in the text information, wherein the target information comprises at least one target identifier, the target identifier is set based on a second process, and the second process comprises target data associated with the target identifier; and then querying the target data based on the target identification to obtain the description information. Therefore, the information switching and inquiring processes of different contents are realized, the inquiring process is carried out in the target interface of the first process, and the user can realize the information inquiring through simple operation, so that the information inquiring efficiency and the inquiring operation convenience are improved.)

1. A method for querying information, comprising:

displaying text information on a target interface, wherein the target interface is associated with a first process;

identifying target information in the text information in response to a trigger operation on the target interface, wherein the target information comprises at least one target identifier, the target identifier is set based on a second process, and the second process comprises target data associated with the target identifier;

and querying the target data based on the target identification to obtain description information, wherein the description information is displayed based on a description interface, and the description interface is arranged on the upper layer of the target interface.

2. The method of claim 1, wherein querying the target data for descriptive information based on the target identification comprises:

determining a first character and a second character in the target identification, wherein the description dimensions of the first character and the second character are different;

inquiring the target data according to the first character to obtain candidate information;

and querying the candidate information according to the second character to obtain the description information.

3. The method of claim 2, wherein the determining the first character and the second character in the target identifier comprises:

acquiring a preset rule according to the second process, wherein the preset rule is set based on the category of the target data;

and determining the first character and the second character in the target identification based on the preset rule.

4. The method of claim 1, wherein querying the target data for descriptive information based on the target identification comprises:

inputting the target identification into the description interface;

querying the target data based on the target identification in the second process to update the description interface;

and determining the description information according to the updated description interface.

5. The method of claim 4, wherein querying the target data for updating the description interface based on the target identification in the second process comprises:

determining a description area in the description interface;

querying the target data based on the target identification in the second process to obtain query data;

inputting the query data into the description area to update the description interface.

6. The method of claim 4, wherein querying the target data for updating the description interface based on the target identification in the second process comprises:

querying the target data based on the target identification in the second process to determine a candidate interface, wherein the candidate interface comprises the description information;

and updating the description interface according to the candidate interface.

7. The method of claim 6, wherein said updating said description interface according to said candidate interface comprises:

determining an input position of the target identifier in the candidate interface;

aligning the candidate interface with the description interface based on the input position to update the description interface.

8. The method of claim 4, further comprising:

detecting a query state instruction generated by the second process based on the target identification;

and finishing the second process according to the state corresponding to the query state instruction.

9. The method of claim 1, wherein identifying target information in the text information in response to a triggering operation on the target interface comprises:

determining a trigger area corresponding to the trigger operation on the target interface;

and identifying the target information in the text information according to the coincidence condition of the trigger area and a preset area, wherein the preset area is set based on the target identifier.

10. The method according to any one of claims 1-9, further comprising:

acquiring a trigger time length corresponding to the trigger operation;

and if the trigger time length meets a preset condition, calling the description interface, wherein the description interface comprises the description information.

11. The method according to any one of claims 1-9, further comprising:

determining maintenance information in response to a maintenance instruction, the maintenance information including cycle information, revision information, or data source information;

and calling the second process based on the maintenance information so as to update the target data.

12. The method according to any one of claims 1-9, further comprising:

determining at least one candidate process in response to a process switch instruction, the candidate process being associated with the second process;

updating the description information based on the candidate process.

13. An apparatus for querying information, comprising:

the display unit is used for displaying the text information on a target interface, and the target interface is associated with a first process;

the identification unit is used for identifying target information in the text information in response to a trigger operation on the target interface, wherein the target information comprises at least one target identifier, the target identifier is set based on a second process, and the second process comprises target data associated with the target identifier;

and the query unit is used for querying the target data based on the target identification to obtain the description information, the description information is displayed based on a description interface, and the description interface is arranged on the upper layer of the target interface.

14. A computer device, the computer device comprising a processor and a memory:

the memory is used for storing program codes; the processor is configured to execute the method of information query of any one of claims 1 to 12 according to instructions in the program code.

15. A computer-readable storage medium having stored therein instructions which, when run on a computer, cause the computer to perform the method of information query of any of the above claims 1 to 12.

Technical Field

The present application relates to the field of computer technologies, and in particular, to a method for querying information and a related apparatus.

Background

With the development of internet technology, more and more data information appears in people's lives, and how to show numerous data information in a limited interface becomes a difficult problem.

Generally, different applications are used for dividing different information, for example, news query enters news-related applications, and flight dynamic query enters flight information-corresponding applications.

However, different applications correspond to different interfaces, and when a user needs to query a plurality of pieces of information, frequent screen switching operation is required, which affects the efficiency and convenience of information query.

Disclosure of Invention

In view of this, the present application provides an information query method, which can effectively avoid low information query efficiency caused by screen switching operation, and improve efficiency and convenience of an information query process.

A first aspect of the present application provides an information query method, which can be applied to a system or a program including an instant messaging function in a terminal device, and specifically includes: displaying text information on a target interface, wherein the target interface is associated with a first process;

identifying target information in the text information in response to a trigger operation on the target interface, wherein the target information comprises at least one target identifier, the target identifier is set based on a second process, and the second process comprises target data associated with the target identifier;

and querying the target data based on the target identification to obtain description information, wherein the description information is displayed based on a description interface, and the description interface is arranged on the upper layer of the target interface.

A second aspect of the present application provides an apparatus for querying information, including: the display unit is used for displaying the text information on a target interface, and the target interface is associated with a first process;

the identification unit is used for identifying target information in the text information in response to a trigger operation on the target interface, wherein the target information comprises at least one target identifier, the target identifier is set based on a second process, and the second process comprises target data associated with the target identifier;

and the query unit is used for querying the target data based on the target identification to obtain the description information, the description information is displayed based on a description interface, and the description interface is arranged on the upper layer of the target interface.

Optionally, in some possible implementations of the present application, the querying unit is specifically configured to determine a first character and a second character in the target identifier, where the description dimensions of the first character and the second character are different;

the query unit is specifically configured to query the target data according to the first character to obtain candidate information;

the query unit is specifically configured to query the candidate information according to the second character to obtain the description information.

Optionally, in some possible implementation manners of the present application, the querying unit is specifically configured to obtain a preset rule according to the second process, where the preset rule is set based on the category of the target data;

the query unit is specifically configured to determine the first character and the second character in the target identifier based on the preset rule.

Optionally, in some possible implementations of the present application, the query unit is specifically configured to input the target identifier into the description interface;

the query unit is specifically configured to query the target data based on the target identifier in the second process, so as to update the description interface;

the query unit is specifically configured to determine the description information according to the updated description interface.

Optionally, in some possible implementations of the present application, the query unit is specifically configured to determine a description area in the description interface;

the query unit is specifically configured to query the target data in the second process based on the target identifier to obtain query data;

the query unit is specifically configured to input the query data into the description area to update the description interface.

Optionally, in some possible implementations of the present application, the querying unit is specifically configured to query the target data based on the target identifier in the second process to determine a candidate interface, where the candidate interface includes the description information;

the query unit is specifically configured to update the description interface according to the candidate interface.

Optionally, in some possible implementations of the present application, the query unit is specifically configured to determine an input position of the target identifier in the candidate interface;

the query unit is specifically configured to align the candidate interface with the description interface based on the input position, so as to update the description interface.

Optionally, in some possible implementations of the present application, the query unit is specifically configured to detect a query status instruction generated by the second process based on the target identifier;

and the query unit is specifically configured to end the second process according to the state corresponding to the query state instruction.

Optionally, in some possible implementation manners of the present application, the identification unit is specifically configured to determine a trigger area corresponding to a trigger operation on the target interface;

the identification unit is specifically configured to identify the target information in the text information according to a coincidence condition of the trigger area and a preset area, where the preset area is set based on the target identifier.

Optionally, in some possible implementation manners of the present application, the identification unit is specifically configured to obtain a trigger duration corresponding to the trigger operation;

the identification unit is specifically configured to call the description interface if the trigger duration meets a preset condition, where the description interface includes the description information.

Optionally, in some possible implementations of the present application, the identification unit is specifically configured to determine maintenance information in response to a maintenance instruction, where the maintenance information includes cycle information, revision information, or data source information;

the identification unit is specifically configured to invoke the second process based on the maintenance information, so as to update the target data.

Optionally, in some possible implementations of the present application, the identifying unit is specifically configured to determine at least one candidate process in response to a process switching instruction, where the candidate process is associated with the second process;

the identification unit is specifically configured to update the description information based on the candidate process.

A third aspect of the present application provides a computer device comprising: a memory, a processor, and a bus system; the memory is used for storing program codes; the processor is configured to execute the method for querying information according to any one of the first aspect and the first aspect according to instructions in the program code.

A fourth aspect of the present application provides a computer-readable storage medium, having stored therein instructions, which, when executed on a computer, cause the computer to perform the method for information query according to the first aspect or any one of the first aspects.

According to the technical scheme, the embodiment of the application has the following advantages:

displaying text information on a target interface of a first process; then, responding to a trigger operation on a target interface to identify target information in the text information, wherein the target information comprises at least one target identifier, the target identifier is set based on a second process, and the second process comprises target data associated with the target identifier; and then querying the target data based on the target identification to obtain the description information, wherein the description information is displayed in a description interface on the upper layer of the target interface. Therefore, the information switching and inquiring processes of different contents are realized, the inquiring process is carried out in the target interface of the first process, and the user can realize the information inquiring through simple operation, so that the information inquiring efficiency and the inquiring operation convenience are improved.

Drawings

In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.

FIG. 1 is a diagram of a network architecture in which an information query system operates;

fig. 2 is a system architecture diagram of an information query according to an embodiment of the present application;

fig. 3 is a flowchart of a method for querying information according to an embodiment of the present disclosure;

fig. 4 is a schematic view of a scenario of information query according to an embodiment of the present application;

fig. 5 is a schematic view of another scenario of information query according to an embodiment of the present application;

fig. 6 is a schematic view of another scenario of information query according to an embodiment of the present application;

fig. 7 is a schematic view of another scenario of information query according to an embodiment of the present application;

fig. 8 is a schematic view of another scenario of information query according to an embodiment of the present application;

fig. 9 is a schematic view of another scenario of information query according to an embodiment of the present application;

fig. 10 is a schematic view of another scenario of information query according to an embodiment of the present application;

FIG. 11 is a timing diagram illustrating another method for querying information according to an embodiment of the present disclosure;

fig. 12 is a schematic structural diagram of an information query apparatus according to an embodiment of the present application;

fig. 13 is a schematic structural diagram of a terminal device according to an embodiment of the present application.

Detailed Description

The embodiment of the application provides an information query method and a related device, which can be applied to a system or a program containing an information query function in terminal equipment, and text information is displayed on a target interface of a first process; then, responding to a trigger operation on a target interface to identify target information in the text information, wherein the target information comprises at least one target identifier, the target identifier is set based on a second process, and the second process comprises target data associated with the target identifier; and then querying the target data based on the target identification to obtain the description information, wherein the description information is displayed in a description interface on the upper layer of the target interface. Therefore, the information switching and inquiring processes of different contents are realized, the inquiring process is carried out in the target interface of the first process, and the user can realize the information inquiring through simple operation, so that the information inquiring efficiency and the inquiring operation convenience are improved.

The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "corresponding" and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.

It should be understood that the information query method provided by the present application may be applied to a system or a program containing an information query function in a terminal device, such as an instant messaging platform, specifically, the information query system may operate in a network architecture as shown in fig. 1, which is a network architecture diagram of the information query system, as can be seen from the figure, the information query system may provide information query with a plurality of information sources, the terminal establishes a connection with the server through a network, and then receives description information related to a target identifier sent by the server, and performs hierarchical display through local interface processing; it can be understood that, fig. 1 shows various terminal devices, in an actual scenario, there may be more or fewer types of terminal devices participating in the information query process, and the specific number and type depend on the actual scenario, which is not limited herein, and in addition, fig. 1 shows one server, but in an actual scenario, there may also be participation of multiple servers, especially in a scenario of multi-content application interaction, the specific number of servers depends on the actual scenario.

In this embodiment, the server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a network service, cloud communication, a middleware service, a domain name service, a security service, a CDN, a big data and artificial intelligence platform, and the like. The terminal may be, but is not limited to, a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, and the like. The terminal and the server may be directly or indirectly connected through wired or wireless communication, and the application is not limited herein.

It should be noted that the information query method provided in this embodiment may also be performed offline, that is, without participation of the server, at this time, the terminal is connected with other terminals locally, and then the process of information query between the terminals is performed.

It is understood that the above information inquiry system may be operated in a personal mobile terminal, for example: the application as an instant communication platform can be operated on a server, and can also be operated on third-party equipment to provide information query so as to obtain an information query processing result of an information source; the specific information query system may be operated in the above-mentioned device in the form of a program, may also be operated as a system component in the above-mentioned device, and may also be used as one of cloud service programs, and the specific operation mode is determined by an actual scene, and is not limited herein.

With the development of internet technology, more and more data information appears in people's lives, and how to show numerous data information in a limited interface becomes a difficult problem.

Generally, different applications are used for dividing different information, for example, news query enters news-related applications, and flight dynamic query enters flight information-corresponding applications.

However, different applications correspond to different interfaces, and when a user needs to query a plurality of pieces of information, frequent screen switching operation is required, which affects the efficiency and convenience of information query.

In order to solve the above problem, the present application provides an information query method, which is applied to the flow framework of information query shown in fig. 2, as shown in fig. 2, and is a system architecture diagram of information query provided in an embodiment of the present application, the present application relates to interaction between an interface layer and an application layer, that is, receiving a trigger operation of a user through the interface layer, and determining a time when a target identifier is triggered, so that information of a first process and information of a second process in the application layer are displayed hierarchically in the same interface, and switching between information can be performed conveniently; it should be noted that the figure shows the display process of the contents of two processes, and in an actual scenario, more processes may participate, which is not limited herein.

It can be understood that the method provided by the present application may be a program written as a processing logic in a hardware system, or may be an information query device, and the processing logic is implemented in an integrated or external manner. As one implementation, the information query device displays text information on a target interface of a first process; then, responding to a trigger operation on a target interface to identify target information in the text information, wherein the target information comprises at least one target identifier, the target identifier is set based on a second process, and the second process comprises target data associated with the target identifier; and then querying the target data based on the target identification to obtain the description information, wherein the description information is displayed in a description interface on the upper layer of the target interface. Therefore, the information switching and inquiring processes of different contents are realized, the inquiring process is carried out in the target interface of the first process, and the user can realize the information inquiring through simple operation, so that the information inquiring efficiency and the inquiring operation convenience are improved.

The scheme provided by the embodiment of the application relates to the technologies such as artificial intelligence image recognition, and is specifically explained by the following embodiments:

with reference to the above flow architecture, the following describes an information query method in the present application, please refer to fig. 3, where fig. 3 is a flow chart of an information query method provided in an embodiment of the present application, and the embodiment of the present application at least includes the following steps:

301. and displaying the text information on the target interface.

In this embodiment, the target interface is associated with the first process, for example, if the first process is an instant messaging process, the target interface is an interface including chat text information.

It is understood that the text information on the target interface may exist on the target interface at the current time, or may be obtained in response to a call instruction, for example: the text information is a chat history record invoked in response to the trigger of the history record viewing instruction of the user, and the specific text range can be manually selected by the user or automatically generated by the system.

In another possible scenario, the text information may also be dynamic, for example, during a chat process of the user or during a sliding process of the user for viewing the electronic book, at this time, the text information is the text information corresponding to the interface at the time corresponding to the trigger operation. Thereby ensuring the accuracy of the text information.

302. And identifying target information in the text information in response to a trigger operation on the target interface.

In this embodiment, the target information includes at least one target identifier, the target identifier is set based on a second process, and the second process includes target data associated with the target identifier; for example, the target information is a field containing a license plate number, the target identification is a character combination indicating the license plate number, and the corresponding second process is a program for checking the relevant information of the license plate number, such as inquiring the available state of the license plate, deducting the situation and the like, and the specific form is determined by the actual scene.

In particular, the first process and the second process may be in the same client application, for example, the first process is a chat process in a "WeChat" application, and the second process is an "applet" process in a "WeChat" application, and may specifically be a "flight query applet" corresponding to the target identifier. In addition, the first process and the second process may also be in different client applications, for example, the first process is a chat process in a "WeChat" application, and the second process is a "flight query" application, and the specific process distribution is determined according to an actual scenario, which is not limited herein.

In a possible scenario, the target identifier is a flight number in a chat session, as shown in fig. 4, which is a schematic view of a scenario of a method for querying information provided in an embodiment of the present application, and a target identifier a1, i.e., a flight number, in a chat session is shown; specifically, the target identifier may be displayed in a highlighted font manner or in a color-changing manner, so as to facilitate the user to look up.

In another possible scenario, the target identifier may also be a virtual element of a non-chat interface, as shown in fig. 5, which is a schematic view of a scenario of another method for querying information provided in the embodiment of the present application, and a display of a target identifier B1 in a session list, which is an interface at a higher level of the chat interface, is shown in the scenario, and as can be seen, the target identifier B1 is a title of the session list.

It can be seen from the above embodiments that the appearance scene of the target identifier is not limited to an interface for user interaction, but also can be an interface for displaying simple information and other interfaces containing text information. It will be appreciated that for the scenario of fig. 5, after the user clicks on the target identifier B1, the related description information can be viewed, and after the user views and enters the session, the target identifier B1 is highlighted in the session, and the new information viewed in the session list is directly invoked, so as to facilitate the relevance viewing for the user.

It should be noted that, in an actual scenario, the target identifier is not limited to the form indicated in the above embodiment, and may specifically be a characteristic character identifier having a meaning, such as a mailbox, a high-speed railway number, and an express bill number, or a corresponding relationship between a set character identifier and the meaning, for example, if the target character is set to be "xiaoming", the description information is a relevant description in "class information" edited by a user, and a specific manner is determined according to an actual scenario, and is not limited herein.

In addition, in the above embodiment, a case that the target identifier is one is shown, in an actual scene, a plurality of target identifiers may be included in the target text, and the target identifiers may be dispersed or connected, and the specific form and the number are determined according to the actual scene.

Optionally, the trigger operation process on the target interface may be a click operation of a user, and in order to prevent a misoperation process of the user, a trigger area corresponding to the trigger operation on the target interface may be determined for the trigger process; and then identifying target information in the text information according to the coincidence condition of the trigger area and the preset area. The preset region is set based on the target identifier, for example, if the target identifier is "CZ 001", the preset region is a certain range around the target identifier, and when the contact ratio between the trigger region and the preset region exceeds 80%, the occurrence of trigger operation is determined, and then the identification process of the target identifier is performed.

303. And querying the target data based on the target identification to obtain the description information.

In this embodiment, in order to enable the data of the second process to be completely displayed, the description information may be displayed based on the description interface, and the description interface is layered on the target interface.

In a possible scenario, as shown in fig. 6, a scenario diagram of another information query method provided in this embodiment of the present application is shown, in which after a user clicks a target identifier "CZ 001" in a target interface, a description interface C1 pops up, and the description interface C1 includes related information obtained based on a "CZ 001" query in a second process.

It is understood that the position of the interface C1 depicted in the figure may be in the form of a half interface placed on the target interface, or may be presented in the form of a full interface, specifically, it may pop up from the lower side of the terminal screen, or pop up from the left side or the right side, where the specific pop-up manner depends on the actual scene.

Specifically, the process of querying the target data based on the target identifier and obtaining the description information may be that the target identifier is identified and determined one by characters, that is, first, a first character and a second character in the target identifier are determined; then, inquiring target data according to the first character to obtain candidate information; and further querying the candidate information according to the second character to obtain the description information.

It can be understood that, for the first character and the second character, the description dimensions may be different, for example, the first character is used to indicate the flight number "CZ", and the second character is used to indicate the number "001" of the airplane, and the dividing process for the character is set based on the second process, that is, the preset rule is first obtained according to the second process, and then the first character and the second character in the target identifier are determined based on the preset rule, where the preset rule is set based on the category of the target data, for example, the target data is flight status information, and the preset rule is a naming rule of the flight number; and if the target data is order state information, the preset rule is a naming rule of the express order number.

It should be noted that the figure shows that the relevant information of the target identifier "CZ 001" is "flight status" and "arrival time", specifically, the relevant information may also include historical information such as the historical punctuation rate of the flight, and the form of the specific information depends on the actual scene, and is not limited herein.

The stepwise recognition process of the first character and the second character, such as the combination of the letters and the numbers, is described in the above embodiment; however, in an actual scene, a recognition process of characters with more dimensions may be performed, and the specific number depends on the actual scene.

Next, a description will be given of the generation process of the interface. The description interface can be a description interface in the first process, and the description interface is obtained by updating based on the second process. Firstly, inputting a target identifier into a description interface; then, in a second process, target data is inquired based on the target identification so as to update the description interface; and then determining the description information according to the updated description interface.

Specifically, the interface updating process may be performed based on a picture, as shown in fig. 7, which is a scene diagram of another information query method provided in the embodiment of the present application. The updating process comprises the following steps:

701. the second process is invoked.

In this embodiment, after the user clicks the target identifier, a second process, for example, a flight query process in an applet, is invoked, and the process runs in the background of the terminal.

702. And generating a candidate interface.

In this embodiment, the target data is queried in the second process according to the target identifier clicked by the user, specifically, the target data may include a data table, where the data table includes a correspondence between the target identifier and query information, and after the query information is obtained, data encapsulation may be performed to obtain the candidate interface D1.

It is to be understood that the query information may be the same as the description information, or may not be the same, that is, the information after the query information is combined with the target identifier is the description information.

703. And (6) updating the interface.

In this embodiment, the process of updating the interface, that is, the process of updating the description area D2 corresponding to the description interface based on the candidate interface D1 may specifically be to insert the description area D2 after generating the screenshot based on the candidate interface D1, thereby completing the generation process of the description interface.

Optionally, the insertion process for the candidate interface may be inserted after alignment based on the target information, that is, first, an input position of the target identifier in the candidate interface is determined; and aligning the candidate interface with the description interface based on the input position so as to update the description interface. Therefore, the integrity of the display of the candidate interface is ensured, and the condition of interface loss is avoided.

The independence between the processes can be ensured through the transfer of the screenshot, namely the first process and the second process cannot interfere with each other, and the running stability of the terminal is ensured.

In another possible scenario, the update process describing the interface may also be performed based on data writing, as shown in fig. 8, which is a schematic view of another method for querying information provided in this embodiment of the present application. The updating process comprises the following steps:

801. the second process is invoked.

802. Query data is generated.

In this embodiment, the query data includes information associated with the target identification.

803. And (6) inputting data.

In this embodiment, the data input process is equivalent to inputting the numerical value or the related description information E1 in the query data into the corresponding position E2 in the description interface, so as to implement the update process of the description interface.

Through the direct input of data, the data interaction amount among multiple processes is reduced, the processor resource of the terminal is saved, and the normal operation of the information inquiry process is ensured.

Optionally, after the generation of the description interface including the description information is completed, the user may not be satisfied with the description information, and the query process may be started again at this time; that is, at least one candidate process is first determined in response to a process switching instruction, wherein the candidate process is associated with a second process, i.e., a process having a similar function to the second process; the description information is then updated based on the candidate processes. Specifically, as shown in fig. 9, a scene schematic diagram of another information query method provided in the embodiment of the present application is shown. When a user needs to switch a process to perform information query, the user can click the replacement F1 in the description interface to generate a process switching instruction, namely, the process is switched to other processes to perform a query process based on the target identifier, the user can select a corresponding candidate process in the process selection interface, namely, a process with a function similar to that of a second process, for example, if the second process is a flight information query applet, the candidate process is other applets with a flight information query function; and then clicking the determining F2, the information display in the corresponding process can be quickly switched, the information query efficiency is further improved, and the switching operation of the user is facilitated.

With the above embodiment, the text information is displayed on the target interface of the first process; then, responding to a trigger operation on a target interface to identify target information in the text information, wherein the target information comprises at least one target identifier, the target identifier is set based on a second process, and the second process comprises target data associated with the target identifier; and then querying the target data based on the target identification to obtain the description information, wherein the description information is displayed in a description interface on the upper layer of the target interface. Therefore, the information switching and inquiring processes of different contents are realized, the inquiring process is carried out in the target interface of the first process, and the user can realize the information inquiring through simple operation, so that the information inquiring efficiency and the inquiring operation convenience are improved.

In another possible scenario, on the basis of the embodiment shown in fig. 3, the determination of the trigger operation may also be performed based on a time duration, as shown in fig. 10, which is a scenario diagram of another information query method provided in the embodiment of the present application. In the scene, firstly, acquiring a trigger duration corresponding to a trigger operation; and when the trigger time length meets a preset condition, calling a description interface containing description information, wherein the description interface contains the description information. For example, if the preset condition is that the trigger duration reaches 1 second, a description interface pops up, and specifically, the description interface may adopt the display form shown in fig. 10, that is, adopt a small popup window manner.

Specifically, the popup window may be displayed until other elements in the terminal interface are triggered again and disappear; the popup window can also be corresponding to the triggering duration, namely, the popup window disappears when the triggering is cancelled, so that a user can conveniently and quickly inquire.

Optionally, for the above embodiment, customized editing may be performed on the related information in the second process, that is, the maintenance information is determined in response to the maintenance instruction, where the maintenance information includes period information, revision information, or data source information; and then evokes a second process based on the maintenance information to update the target data. For example, the period information is updated every 12 hours for the target data in the second process. By setting the maintenance information, the degree of freedom of user operation and controllability in the query process can be improved.

In the above embodiment, the information query process is described, and the first process and the second process involved in the information query process are under the same client application, and in the following, the information query process in which the first process and the second process are not under the same client application is described, please refer to fig. 11, where fig. 11 is a timing diagram of another information query method provided in the embodiment of the present application, and the embodiment of the present application at least includes the following steps:

1101. and the first server and the terminal perform first process interaction based on the target interface.

In this embodiment, the first server corresponds to a first process and performs data interaction with the terminal, for example, the first server is a chat server applying "WeChat".

1102. The target identification in the terminal is triggered.

1103. The terminal sends a data request to the second server.

In this embodiment, the second server corresponds to the data interaction between the second process and the terminal, for example, the second server is a query server applying "flight assistant".

1104. And the second server carries out information inquiry.

1105. The second server sends the query data to the terminal.

1106. And the terminal updates the description interface and displays the description interface on the upper layer of the target interface.

In this embodiment, the generation process of the description interface in the steps 1101-.

1107. The second server finishes the interaction with the terminal.

In this embodiment, since the user mainly interacts with the terminal based on the first process, the second server only needs to obtain the description information and does not need other functions in the second process, and thus, the interaction with the terminal can be finished after the information query is completed based on the target identifier in the second process.

Specifically, the judgment of ending the interaction may be by detecting a query state instruction generated by the second process based on the target identifier; and then finishing the second process according to the state corresponding to the query state instruction. I.e. the second process is ended upon detecting that the query is complete and the instruction has been sent. Or the terminal may end the process based on an instruction for receiving the query data fed back by the terminal.

Compared with the information query process which generally adopts a plurality of processes to load simultaneously, the second process only relates to single data interaction in the terminal interaction process, namely the data query and sending process, on one hand, the running resources of the terminal can be saved, namely the terminal only has the parallel running of the plurality of processes in the data receiving process, and the background load pressure is greatly reduced. On the other hand, due to the simplicity of the description information, the terminal cannot generate a large amount of data residues related to the operation of the second process, and the stability of the operation of the terminal is further ensured.

In order to better implement the above-mentioned aspects of the embodiments of the present application, the following also provides related apparatuses for implementing the above-mentioned aspects. Referring to fig. 12, fig. 12 is a schematic structural diagram of an information query device according to an embodiment of the present application, where the information query device 1200 includes:

a presentation unit 1201, configured to present text information on a target interface, where the target interface is associated with a first process;

a recognition unit 1202, configured to recognize target information in the text information in response to a trigger operation on the target interface, where the target information includes at least one target identifier, and the target identifier is set based on a second process, and the second process includes target data associated with the target identifier;

a querying unit 1203, configured to query the target data based on the target identifier to obtain description information, where the description information is displayed based on a description interface, and the description interface is on an upper layer of the target interface.

Optionally, in some possible implementations of the present application, the querying unit 1203 is specifically configured to determine a first character and a second character in the target identifier, where the description dimensions of the first character and the second character are different;

the querying unit 1203 is specifically configured to query the target data according to the first character to obtain candidate information;

the querying unit 1203 is specifically configured to query the candidate information according to the second character to obtain the description information.

Optionally, in some possible implementation manners of the present application, the querying unit 1203 is specifically configured to obtain a preset rule according to the second process, where the preset rule is set based on the category of the target data;

the querying unit 1203 is specifically configured to determine the first character and the second character in the target identifier based on the preset rule.

Optionally, in some possible implementations of the present application, the query unit 1203 is specifically configured to input the target identifier into the description interface;

the querying unit 1203 is specifically configured to query the target data based on the target identifier in the second process, so as to update the description interface;

the querying unit 1203 is specifically configured to determine the description information according to the updated description interface.

Optionally, in some possible implementations of the present application, the query unit 1203 is specifically configured to determine a description area in the description interface;

the querying unit 1203 is specifically configured to query the target data in the second process based on the target identifier to obtain query data;

the query unit 1203 is specifically configured to input the query data into the description area, so as to update the description interface.

Optionally, in some possible implementations of the present application, the querying unit 1203 is specifically configured to query the target data based on the target identifier in the second process to determine a candidate interface, where the candidate interface includes the description information;

the querying unit 1203 is specifically configured to update the description interface according to the candidate interface.

Optionally, in some possible implementations of the present application, the querying unit 1203 is specifically configured to determine an input position of the target identifier in the candidate interface;

the query unit 1203 is specifically configured to align the candidate interface with the description interface based on the input position, so as to update the description interface.

Optionally, in some possible implementations of the present application, the querying unit 1203 is specifically configured to detect a query state instruction generated by the second process based on the target identifier;

the querying unit 1203 is specifically configured to end the second process according to the state corresponding to the query state instruction.

Optionally, in some possible implementation manners of the present application, the identifying unit 1202 is specifically configured to determine a trigger area corresponding to a trigger operation on the target interface;

the identifying unit 1202 is specifically configured to identify the target information in the text information according to a coincidence condition of the trigger area and a preset area, where the preset area is set based on the target identifier.

Optionally, in some possible implementation manners of the present application, the identifying unit 1202 is specifically configured to obtain a trigger duration corresponding to the trigger operation;

the identifying unit 1202 is specifically configured to invoke the description interface if the trigger duration meets a preset condition, where the description interface includes the description information.

Optionally, in some possible implementations of the present application, the identifying unit 1202 is specifically configured to determine maintenance information in response to a maintenance instruction, where the maintenance information includes cycle information, revision information, or data source information;

the identifying unit 1202 is specifically configured to invoke the second process based on the maintenance information, so as to update the target data.

The identifying unit 1202, in particular configured to determine at least one candidate process in response to a process switching instruction, the candidate process being associated with the second process;

the identifying unit 1202 is specifically configured to update the description information based on the candidate process.

Displaying text information on a target interface of a first process; then, responding to a trigger operation on a target interface to identify target information in the text information, wherein the target information comprises at least one target identifier, the target identifier is set based on a second process, and the second process comprises target data associated with the target identifier; and then querying the target data based on the target identification to obtain the description information, wherein the description information is displayed in a description interface on the upper layer of the target interface. Therefore, the information switching and inquiring processes of different contents are realized, the inquiring process is carried out in the target interface of the first process, and the user can realize the information inquiring through simple operation, so that the information inquiring efficiency and the inquiring operation convenience are improved.

An embodiment of the present application further provides a terminal device, as shown in fig. 13, which is a schematic structural diagram of another terminal device provided in the embodiment of the present application, and for convenience of description, only a portion related to the embodiment of the present application is shown, and details of the specific technology are not disclosed, please refer to a method portion in the embodiment of the present application. The terminal may be any terminal device including a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), a point of sale (POS), a vehicle-mounted computer, and the like, taking the terminal as the mobile phone as an example:

fig. 13 is a block diagram illustrating a partial structure of a mobile phone related to a terminal provided in an embodiment of the present application. Referring to fig. 13, the handset includes: radio Frequency (RF) circuitry 1310, memory 1320, input unit 1330, display unit 1340, sensor 1350, audio circuitry 1360, wireless fidelity (WiFi) module 1370, processor 1380, and power supply 1390. Those skilled in the art will appreciate that the handset configuration shown in fig. 13 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.

The following describes each component of the mobile phone in detail with reference to fig. 13:

RF circuit 1310 may be used for receiving and transmitting signals during a message transmission or call, and in particular, for processing received downlink information of a base station by processor 1380; in addition, the data for designing uplink is transmitted to the base station. In general, the RF circuit 1310 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, RF circuit 1310 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to global system for mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), etc.

The memory 1320 may be used to store software programs and modules, and the processor 1380 executes various functional applications and data processing of the cellular phone by operating the software programs and modules stored in the memory 1320. The memory 1320 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 1320 may include high speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.

The input unit 1330 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 1330 may include a touch panel 1331 and other input devices 1332. Touch panel 1331, also referred to as a touch screen, can collect touch operations by a user on or near the touch panel 1331 (e.g., operations by a user on or near touch panel 1331 using any suitable object or accessory such as a finger, a stylus, etc., and spaced touch operations within a certain range on touch panel 1331), and drive corresponding connected devices according to a preset program. Alternatively, the touch panel 1331 may include two portions of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, and sends the touch point coordinates to the processor 1380, where the touch controller can receive and execute commands sent by the processor 1380. In addition, the touch panel 1331 may be implemented by various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 1330 may include other input devices 1332 in addition to the touch panel 1331. In particular, other input devices 1332 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.

The display unit 1340 may be used to display information input by a user or information provided to the user and various menus of the cellular phone. The display unit 1340 may include a display panel 1341, and optionally, the display panel 1341 may be configured in the form of a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), or the like. Further, touch panel 1331 can overlay display panel 1341, and when touch panel 1331 detects a touch operation on or near touch panel 1331, processor 1380 can be configured to determine the type of touch event, and processor 1380 can then provide a corresponding visual output on display panel 1341 based on the type of touch event. Although in fig. 13, the touch panel 1331 and the display panel 1341 are two independent components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 1331 and the display panel 1341 may be integrated to implement the input and output functions of the mobile phone.

The handset may also include at least one sensor 1350, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 1341 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 1341 and/or the backlight when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.

The audio circuit 1360, speaker 1361, microphone 1362 may provide an audio interface between the user and the handset. The audio circuit 1360 may transmit the electrical signal converted from the received audio data to the speaker 1361, and the electrical signal is converted into a sound signal by the speaker 1361 and output; on the other hand, the microphone 1362 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 1360, and then processes the audio data by the audio data output processor 1380, and then sends the audio data to, for example, another cellular phone via the RF circuit 1310, or outputs the audio data to the memory 1320 for further processing.

WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 1370, and provides wireless broadband internet access for the user. Although fig. 13 shows the WiFi module 1370, it is understood that it does not belong to the essential constitution of the handset, and may be omitted entirely as needed within the scope not changing the essence of the invention.

The processor 1380 is a control center of the mobile phone, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 1320 and calling data stored in the memory 1320, thereby integrally monitoring the mobile phone. Optionally, processor 1380 may include one or more processing units; alternatively, processor 1380 may integrate an application processor, which handles primarily the operating system, user interface, and applications, and a modem processor, which handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated within processor 1380.

In particular, processor 1380 is specifically configured to present textual information on a target interface, the target interface associated with a first process;

identifying target information in the text information in response to a trigger operation on the target interface, wherein the target information comprises at least one target identifier, the target identifier is set based on a second process, and the second process comprises target data associated with the target identifier;

and querying the target data based on the target identification to obtain description information, wherein the description information is displayed based on a description interface, and the description interface is arranged on the upper layer of the target interface.

In one possible scenario, processor 1380 is further configured to determine a first character and a second character in the target identification, the first character and the second character having different descriptive dimensions;

inquiring the target data according to the first character to obtain candidate information;

and querying the candidate information according to the second character to obtain the description information.

In one possible scenario, the processor 1380 is further configured to obtain a preset rule according to the second process, where the preset rule is set based on the category of the target data;

and determining the first character and the second character in the target identification based on the preset rule.

In one possible scenario, processor 1380 is further configured to enter the object identification into the description interface;

querying the target data based on the target identification in the second process to update the description interface;

and determining the description information according to the updated description interface.

In one possible scenario, processor 1380 is further configured to determine a description region in the description interface;

querying the target data based on the target identification in the second process to obtain query data;

inputting the query data into the description area to update the description interface.

In one possible scenario, processor 1380 is further configured to query the object data in the second process based on the object identifier to determine a candidate interface, where the candidate interface includes the description information;

and updating the description interface according to the candidate interface.

In one possible scenario, processor 1380 is further configured to determine an input location for the target identification in the candidate interface;

aligning the candidate interface with the description interface based on the input position to update the description interface.

In one possible scenario, processor 1380 is further configured to detect a query state instruction generated by the second process based on the target identification;

and finishing the second process according to the state corresponding to the query state instruction.

In one possible scenario, the processor 1380 is further configured to determine a trigger region corresponding to a trigger operation on the target interface;

and identifying the target information in the text information according to the coincidence condition of the trigger area and a preset area, wherein the preset area is set based on the target identifier.

In one possible scenario, the processor 1380 is further configured to obtain a trigger duration corresponding to the trigger operation;

and if the trigger time length meets a preset condition, calling the description interface, wherein the description interface comprises the description information.

In one possible scenario, processor 1380 is further configured to determine maintenance information in response to the maintenance instruction, the maintenance information including period information, revision information, or data source information;

and calling the second process based on the maintenance information so as to update the target data.

The handset also includes a power supply 1390 (e.g., a battery) to provide power to the various components, which may optionally be logically coupled to the processor 1380 via a power management system to manage charging, discharging, and power consumption management via the power management system.

Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.

In the embodiment of the present application, the processor 1380 included in the terminal further has a function of performing the respective steps of the page processing method as described above.

An embodiment of the present application further provides a computer-readable storage medium, in which information query instructions are stored, and when the computer-readable storage medium is run on a computer, the computer is caused to perform the steps performed by the information query device in the methods described in the foregoing embodiments shown in fig. 3 to 11.

Also provided in the embodiments of the present application is a computer program product including information query instructions, which when run on a computer, causes the computer to execute the steps performed by the information query apparatus in the method described in the embodiments of fig. 3 to fig. 11.

An embodiment of the present application further provides an information query system, where the information query system may include the information query apparatus in the embodiment described in fig. 12 or the terminal device described in fig. 13.

It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.

In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.

The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.

In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.

The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, an information query device, or a network device) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.

The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

26页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:网络安全信息的处理方法、查询方法及相关装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!