Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
The query interaction method provided by the embodiment of the invention can directly display visual query elements in the query interface, and a user can construct required query conditions by selecting the query elements, so that rapid and accurate data query is realized. The specific steps are shown in fig. 1, and comprise:
step 101, acquiring a group of query elements and element association data corresponding to the query elements.
The query element can be defined as attribute information related to a query result, and the attribute information is visually displayed to obtain a display object. For example, when the query result is a line graph, the attribute information of the line graph may be defined from multiple dimensions, for example, in the data analysis dimension, the corresponding attribute includes information such as trend analysis and contrast analysis, and in the visual dimension, the corresponding attribute includes information such as color and size of the graph. As can be seen, one query result may correspond to multiple query elements.
The element association data is used for determining the association relationship between the query elements, and in the embodiment of the invention, a plurality of query elements corresponding to the same query result are considered to have the association relationship. The association relationship is recorded by element association data. In this embodiment, the visual query elements and the element association data thereof are preset, and a corresponding set of query elements and element association data is set for a certain industry or field. In practical application, the corresponding query elements and the element associated data are associated through different query pages, and the query elements and the corresponding element associated data can be determined by accessing the specified query pages by a user without the need of providing the query elements and the element associated data by the user. Of course, the embodiment of the present invention does not specifically limit the manner of obtaining query elements and corresponding element association data, and the user may also customize the required query elements and corresponding element association data in a general query page.
Step 102, independently displaying a group of query elements in a query interface in a form selectable by a user.
The query interface is an interactive interface provided for a user to query, visualized query elements are displayed to the user in the interface, and the query elements are independently displayed in the query interface, so that the user can quickly select any one query element in the query interface, and all query elements have an association relation determined based on element association data.
When the connection line is displayed for the user to check, the association relation between the query elements can be explicit or implicit, for example, the association relation can be displayed through the connection line between the query elements, the explicit display of the connection line means that the connection line can be displayed in the query interface under the condition of no user interaction operation, the implicit display of the connection line means that the connection line is not displayed in the query interface under the condition of no user interaction operation, and only when the user selects the query elements through interaction operation, the connection line associated with the selected query elements can be displayed.
103, when the user selects the query element in the query interface, displaying the associated query element associated with the query element in an associated manner according to the element associated data corresponding to the query element.
The related query elements refer to other query elements which are determined according to the element related data and are related to the query elements selected by the user.
Because the invention provides a brand-new query interaction mode, the embodiment mainly explains the interaction process between the query interface and the user and the corresponding interaction effect. Compared with the existing query interaction modes, such as key word input, query menu selection and the like, the method and the device display all query elements in the query interface for the user to check and select, when the user selects one query element, the query element is highlighted, and the specific highlighting mode comprises highlight display, flicker display and the like, so that the attention of the user is attracted. At the same time, the associated query element associated with the query element selected by the user is also associatively highlighted. Therefore, the method can assist the user to construct the required query condition more quickly, and because the associated query elements are all set based on the preset element associated data, the accuracy of query can be improved by selecting the associated query elements to construct the query condition, and the condition that the result cannot be found is avoided.
In practical application, the step may be repeatedly executed in a loop, that is, after the user selects the first query element, the second query element may be selected based on the associated query element of the query element, and then, the query interface may display the associated query element based on the second query element in an associated manner for the user to further select, and so on, the user may select a group of query elements having a progressive association relationship based on the schema.
And 104, generating a query condition based on the associated query element selected by the user and the selected query element.
After the user determines the selected query element, the user can determine the completion of selection through interactive operation, so that a query condition is generated according to the query element selected by the user, the query operation is executed according to the query condition, and a display interface of a query result is fed back to the user.
It can be seen from the foregoing embodiments that the query interaction method provided in the embodiments of the present invention provides a new interaction manner for a query user, and the user can view all query elements through a query interface, and click a desired query element according to a requirement to construct a query condition, and obtain a query result. The method is used for inquiring in more professional industries or fields, and can help users who cannot accurately construct the primary search condition to quickly know the contents to be inquired, so that the application threshold of inquiry service in the professional industries or fields is lowered, and the inquiry experience of the users is improved.
Further, the interaction proposed in the embodiment of the present invention is a query service, which is mainly displayed by means of a query interface, and in order to improve the order of query elements displayed in the query interface and facilitate the user to search for a selection, in another preferred embodiment of the present invention, a detailed description is given to a specific implementation ofstep 102 shown in fig. 1, specifically:
first, the query elements are classified according to preset dimensions.
Secondly, the same type of query elements are displayed in a display area corresponding to the preset dimension in a user selectable mode in a query interface.
In this embodiment, the query element corresponds to a unique preset dimension, and the query interface divides the corresponding display area for each dimension according to the preset dimension. The preset dimensionality can be set in a self-defined mode, and the configured dimensionality can be determined according to a specific application scene. For the convenience of query of the user, the display areas corresponding to different preset dimensions are regularly distributed in the query interface, such as ring distribution or hierarchical distribution. As shown in fig. 2, the query elements in the query interface are distributed in a hierarchical manner, and there are four dimensions (analysis angle, analysis method, icon type, and visual channel), each dimension is displayed in one layer of the query interface, and the query elements belonging to the dimension of the layer are distributed in each layer. In addition, as shown in fig. 3, the query elements in the query interface are distributed in a ring, and different sections in the ring correspond to different dimensions. Fig. 2 and fig. 3 only show two exemplary distribution manners of query elements in the query interface, and the present invention does not specifically limit other distribution manners of the query elements displayed according to the preset dimension.
Further, in order to improve the display effect, displaying the query elements in the query interface may also be implemented in a dynamic display manner, for example, after the user accesses the query interface, all the query elements are displayed in the interface, as shown in fig. 4, and then the query elements are dynamically distributed to corresponding positions according to the display area corresponding to the preset dimension and the association relationship between the query elements determined according to the element association data, and the contact connecting lines between the query elements are displayed, so as to form the display effect of fig. 2 or fig. 3.
Further, according to the embodiment shown in fig. 1, whenstep 103 is executed, the user may select the query element multiple times through interaction with the query interface, and after the user selects one query element, the user may further select the associated query element according to the associated presentation. Aiming at the interaction logic, the user can select based on the associated query elements displayed in an associated manner in a normal state until the query element combination approved by the user is selected, and then the query condition is generated. If an abnormal state occurs, that is, the user does not select according to the associated query element displayed in association, at this time, the interaction logic proposed by the embodiment of the present invention is: and considering that the user abandons the previous selection, determining the currently selected query element as the first query element, and further performing association display on the corresponding associated query element.
That is, after the association display of the association query element associated with the selected query element instep 103 is performed, it is first determined whether the user selects the association query element, and if so, the association query element is in a normal state, and at this time, the selected query element and the selected association query element are determined together as an element generating a query condition; if the query element is not selected, namely other query elements are selected, the query element is in an abnormal state, at the moment, the other query elements are determined as elements generating query conditions, and the associated display state of the query elements which are selected before is cancelled.
Further, when the associated query elements associated with the selected query element are presented in an associated manner, the associated connecting lines between the query elements may be presented explicitly, as shown in fig. 2 or fig. 3, or may be presented implicitly, as shown in fig. 5 or fig. 6, when the user does not select a query element, the connecting lines are not presented, and after the user selects a query element, the query element and the associated query elements are highlighted, and the connecting lines between the query elements are presented.
On the basis of displaying the connecting lines between the query elements and the associated query elements, when the user further selects the associated query elements, the connecting lines between the query elements and the associated query elements are highlighted, such as the effect shown by the connecting lines between the query element market and the index in fig. 6.
Furthermore, in the interaction operation between the user and the query interface in the embodiment of the present invention, generally, the user controls the cursor to move in the query interface, and determines whether the user selects the query element through a cursor hovering operation (hover), in the process, it is also required to detect whether the cursor position in the query interface is located in a display area of the query element, if the cursor position is located in the display area, it is determined that the user selects the query element, and the query element is highlighted, otherwise, no processing is performed.
After the query element is determined to be selected by the user, in order to help the user to know the specific information included in the query element in more detail, the query interface further provides further interactive operation, namely, whether the query element is clicked is judged, if the query element is clicked, the fact that the user needs to check the specific information of the query element is indicated, at this time, the specific information corresponding to the query element is displayed, and the display mode is not limited to skipping from the query interface to an information page of the query element or displaying the information page of the query element in the query interface through a new window.
In summary, the present invention provides a preferred embodiment of the query interaction method for entity object query service in application software in practical application. Wherein, the entity object refers to the queryable component contained in the application software. In this embodiment, the application software defines attribute information of the queryable component, and visualizes the attribute information as a corresponding attribute element (i.e., the query element in fig. 1), generates an attribute element library corresponding to the queryable component, and records association relationship data (element association data) of each attribute element in the attribute element library, generally, a queryable component has multiple attribute information, and different attribute information may define the component from different dimensions, for example, for a graph component, the attribute of the graph component from the dimension of the shape may be a bar graph, a pie graph, a broken line graph, or the like, and the attribute of the graph component from the analysis dimension may be a trend, a classification, a comparison, or the like. Therefore, if there is an association relationship between two attribute elements, it generally means that the two attribute elements belong to the same component.
When a user uses the query service of the application software, the application software displays a query interface to the user, as shown in fig. 6, all attribute elements acquired from an attribute element library are displayed in the query interface, and annularly distributed and displayed according to preset dimensions (services, methods and scenes), the user selects market attribute elements in service dimensions in the query page first, at this time, the query interface displays the market attribute elements in a highlight manner and 4 attribute elements (indexes, general scores, comparisons and details) in method dimensions associated with the market, and simultaneously, connecting lines between the market and the 4 attribute elements are displayed; then, the user selects the highlighted index attribute element, at the moment, the query interface highlights 3 attribute elements (displaying, monitoring and predicting) in the scene dimension associated with the index, cancels the highlight display effect of the other 3 attribute elements (total score, contrast and detail) in the method dimension, and highlights a connecting line between the market and the index; furthermore, the user selects a monitoring attribute element from the 3 highlighted attribute elements in the scene dimension, at this time, there are no other associated attribute elements, and the query interface cancels the displayed and predicted highlight display effect, and highlights a connecting line between the indicator and the monitoring; finally, the user determines the selected attribute elements, namely the combination of market, index and monitoring, by clicking a button 'view model', generates corresponding query conditions, matches out a corresponding service model and feeds the matched service model back to the user, wherein the service model is used for reflecting index data based on a monitoring scene in market service. For a user, the model to be searched can be quickly determined through simple three-time selection, and for each selection of the user, the query interface assists the user to make further selection through a highlight effect so as to improve the accuracy of the user in constructing query conditions.
Further, as an implementation of the method shown in fig. 1 to fig. 6, an embodiment of the present invention provides an inquiry interaction device, which is mainly used for providing an interaction scheme that facilitates quick inquiry by a user, and improving user experience of an inquiry service. For convenience of reading, details in the foregoing method embodiments are not described in detail again in this apparatus embodiment, but it should be clear that the apparatus in this embodiment can correspondingly implement all the contents in the foregoing method embodiments. As shown in fig. 7, the apparatus specifically includes:
an obtainingunit 21, configured to obtain a group of query elements and element association data corresponding to each query element, where the element association data is used to determine an association relationship between the query elements;
thefirst display unit 22 is configured to independently display the group of query elements obtained by the obtainingunit 21 in a query interface in a form selectable by a user according to the element association data;
thesecond display unit 23 is configured to, when a user selects a query element displayed in the query interface by thefirst display unit 22, display an associated query element associated with the query element in an associated manner according to element associated data corresponding to the query element;
the generatingunit 24 is configured to generate a query condition based on the associated query element displayed by the second displayingunit 23 and the selected query element, which are selected by the user.
Further, as shown in fig. 8, thefirst display unit 22 includes:
aclassification module 221, configured to classify the set of query elements according to a preset dimension, where the query elements correspond to a unique preset dimension;
adisplay module 222, configured to display, in the query interface, the query elements of the same type determined by theclassification module 221 in a display area corresponding to a preset dimension in a form selectable by a user.
Further, the display areas of the preset dimension displayed in the query interface by thedisplay module 222 are distributed annularly or hierarchically.
Further, as shown in fig. 8, the apparatus further includes:
aselection judging unit 25, configured to judge whether the user selects the associated query element after the second displayingunit 23 displays the associated query element associated with the query element in an associated manner;
a determiningunit 26, configured to determine the selected query element and the selected associated query element together as an element generating a query condition if theselection judging unit 25 determines that the associated query element is selected by the user;
the determiningunit 26 is further configured to, when theselection judging unit 25 selects another query element, determine the another query element as an element generating a query condition.
Further, as shown in fig. 8, the apparatus further includes:
thesecond display unit 23 is further configured to display a connecting line between the selected query element and the associated query element in the query interface when the associated query element associated with the query element is displayed in an associated manner;
thethird display unit 27 is configured to highlight a connection line corresponding to an associated query element displayed by thesecond display unit 23 when the user selects the associated query element.
Further, as shown in fig. 8, the apparatus includes:
thedetection unit 28 is configured to detect whether a cursor position in the query interface is located in a display area of a query element before the user selects the query element in the query interface;
thesecond display unit 23 is further configured to determine that the user selects the query element and highlight the query element when the detection unit determines that the cursor position is located in the display area of the query element.
Further, as shown in fig. 8, the apparatus further includes:
theclick judgment unit 29 is configured to judge whether the query element is clicked after thesecond display unit 23 determines that the user selects the query element in the query interface and highlights the query element;
and theinformation display unit 20 is configured to jump from the query interface to an information page of the query element when theclick judgment unit 29 determines that the query element is clicked, or display the information page of the query element in the query interface.
Further, an embodiment of the present invention further provides a processor, where the processor is configured to execute a program, where the program executes the query interaction method described in fig. 1 to fig. 6.
In addition, an embodiment of the present invention further provides an electronic device, where the electronic device includes a processor and a memory, the memory is used for storing a program, and the processor is coupled to the memory and is used for running the program to execute the query interaction method described in fig. 1 to fig. 6.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It will be appreciated that the relevant features of the method and apparatus described above are referred to one another. In addition, "first", "second", and the like in the above embodiments are for distinguishing the embodiments, and do not represent merits of the embodiments.
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.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In addition, the memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, 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 disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.