Interactive information acquisition device and interactive information acquisition method
Through the interactive information acquisition device and method, the retrieval of technical file with interactive interface and tag operation optimization is solved, and the problems of high professional requirements and biased search results are achieved, and intuitive and accurate information acquisition is achieved.
Patent Information
- Application Number
- CN202410183444.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-19
- Publication Date
- 2025-08-19
AI Technical Summary
The existing technical file search methods have high professional requirements. When user input does not meet expectations, it is easy to lead to deviations in search results, making it difficult to achieve ideal information acquisition.
Using an interactive information acquisition device, through the first interactive interface, the second interactive interface and the third interactive interface, the interface content is constructed and updated through the drag and click operations of the interactive tag, and the display of the search results is optimized in combination with the server query.
It reduces the professional requirements for information acquisition, improves the accuracy and user experience of search results, and realizes information acquisition in line with user expectations through intuitive interface operations.
Smart Images

Figure CN120508339A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet technology, and in particular to an interactive information acquisition device and an interactive information acquisition method. Background Art
[0002] With the development of technology, the retrieval of technical documents has been achieved through various methods. However, existing methods require a high level of technical expertise. To obtain optimal search results, the input conditions must be consistent with the designer's design for the database. If the input does not conform to the expected method, the user's search results will be significantly deviated. Therefore, it is necessary to design an interactive information acquisition method to reduce the difficulty of information acquisition. Summary of the Invention
[0003] At least one aspect or advantage of the invention will be set forth in part in the following description, or may be obvious from the description, or may be learned through practice of the disclosed subject matter.
[0004] According to a first aspect of the present invention, an interactive information acquisition device has a first interactive interface, a second interactive interface, and a third interactive interface;
[0005] The first interactive interface includes one or more interactive first tags;
[0006] The second interactive interface includes one or more interactive second tags;
[0007] The first tag is configured to update the first interactive interface and / or the second interactive interface in response to a first interaction operation with the first tag as an object;
[0008] The second tag is configured to update the first interactive interface and / or the second interactive interface in response to a second interaction operation with the second tag as the object;
[0009] The interactivity information acquisition device is further configured to update the third interactive interface based on the second tag in response to the third interactive operation;
[0010] The first tag is generated based on text input by the user;
[0011] The interactive component in the third interactive interface includes interactivity information, and the interactivity information complies with a matching rule constructed according to the tag in the second interactive interface.
[0012] According to one embodiment of the present invention, the interactive operation of the first tab includes dragging, and in response to the dragging operation on the first tab, determining whether an end point of the dragging action is located within the second interactive interface;
[0013] When the end point of the dragging action is located in the second interactive interface, a second tag having the same content as the dragged first tag is constructed and inserted in the second interactive interface according to the construction rule of the second tag in the second interactive interface.
[0014] According to one embodiment of the present invention, constructing and inserting a second tag having content consistent with the dragged first tag in the second interactive interface includes:
[0015] Determining a drag endpoint of the drag action and a proximity relationship between the drag endpoint and a second label in the second interactive interface, and determining a first adjacent second label and a second adjacent second label adjacent to the drag endpoint based on the proximity relationship, wherein a distance between the second adjacent second label and the drag endpoint is greater than a distance between the first adjacent second label and the drag endpoint;
[0016] An insertion point is determined according to the relative relationship between the dragging end point, the first adjacent second label, and the second adjacent second label, and a second label with the same content as the dragged first label is inserted at the insertion point.
[0017] According to one embodiment of the present invention, the interactive operation of the first tag includes a click. In response to the click operation on the first tag, a second tag having content consistent with the dragged first tag is constructed in the second interactive interface according to the construction rules of the second tag in the second interactive interface.
[0018] According to one embodiment of the present invention, the interactive operation of the second tab includes dragging, and in response to the dragging operation on the second tab, determining whether an end point of the dragging action is located within the first interactive interface;
[0019] When the end point of the dragging action is located within the first interactive interface, according to the construction rules of the first label in the first interactive interface, a first label with content consistent with the dragged second label is constructed and inserted in the first interactive interface, and the dragged second label is deleted from the second interactive interface.
[0020] According to one embodiment of the present invention, the interactive operation of the second tag includes a click. In response to the click operation on the second tag, a first tag having content consistent with the clicked second tag is constructed in the first interactive interface according to the construction rules of the first tag in the first interactive interface, and the dragged second tag is deleted from the second interactive interface.
[0021] According to one embodiment of the present invention, the operation of updating the third interactive interface based on the second tag includes:
[0022] Obtaining a second tag in the second interface, constructing a query based on the second tag and an adjacent relationship between the second tag, and sending a query request to the server;
[0023] In response to the query result from the server, the query result is displayed on the third interactive interface.
[0024] According to one embodiment of the present invention, the process of generating the first tag includes:
[0025] Obtain the text input by the user, segment the input provided by the user on the server side or locally, obtain the keywords included in the text input by the user, and construct the first label in the first interactive interface according to the construction rules of the first label in the first interactive interface.
[0026] According to one embodiment of the present invention, the semantic attribute of the keyword included in the text input by the user is a noun or a verb.
[0027] According to a second aspect of the present invention, an interactive information acquisition method includes:
[0028] generating a first tag based on the first text;
[0029] Updating the first interactive interface according to the first tag;
[0030] In response to a first interactive operation of the user on the first tag, updating the first interactive interface and / or the second interactive interface;
[0031] In response to a second interactive operation with the second tag as the object, updating the first interactive interface and / or the second interactive interface;
[0032] In response to the third interaction operation, the third interactive interface is updated based on the second tag.
[0033] According to one embodiment of the present invention, the interactive operation of the first tab includes dragging, and in response to the dragging operation on the first tab, determining whether an end point of the dragging action is located within the second interactive interface;
[0034] When the end point of the dragging action is located in the second interactive interface, a second tag having the same content as the dragged first tag is constructed and inserted in the second interactive interface according to the construction rule of the second tag in the second interactive interface.
[0035] According to one embodiment of the present invention, constructing and inserting a second tag having content consistent with the dragged first tag in the second interactive interface includes:
[0036] Determining a drag endpoint of the drag action and a proximity relationship between the drag endpoint and a second label in the second interactive interface, and determining a first adjacent second label and a second adjacent second label adjacent to the drag endpoint based on the proximity relationship, wherein a distance between the second adjacent second label and the drag endpoint is greater than a distance between the first adjacent second label and the drag endpoint;
[0037] An insertion point is determined according to the relative relationship between the dragging end point, the first adjacent second label, and the second adjacent second label, and a second label with the same content as the dragged first label is inserted at the insertion point.
[0038] According to one embodiment of the present invention, the interactive operation of the first tag includes a click. In response to the click operation on the first tag, a second tag having content consistent with the dragged first tag is constructed in the second interactive interface according to the construction rules of the second tag in the second interactive interface.
[0039] According to one embodiment of the present invention, the interactive operation of the second tab includes dragging, and in response to the dragging operation on the second tab, determining whether an end point of the dragging action is located within the first interactive interface;
[0040] When the end point of the dragging action is located within the first interactive interface, according to the construction rules of the first label in the first interactive interface, a first label with content consistent with the dragged second label is constructed and inserted in the first interactive interface, and the dragged second label is deleted from the second interactive interface.
[0041] According to one embodiment of the present invention, the interactive operation of the second tag includes a click. In response to the click operation on the second tag, a first tag having content consistent with the clicked second tag is constructed in the first interactive interface according to the construction rules of the first tag in the first interactive interface, and the dragged second tag is deleted from the second interactive interface.
[0042] According to one embodiment of the present invention, the operation of updating the third interactive interface based on the second tag includes:
[0043] Obtaining a second tag in the second interface, constructing a query based on the second tag and an adjacent relationship between the second tag, and sending a query request to the server;
[0044] In response to the query result from the server, the query result is displayed on the third interactive interface.
[0045] According to one embodiment of the present invention, the process of generating the first tag includes:
[0046] Obtain the text input by the user, segment the input provided by the user on the server side or locally, obtain the keywords included in the text input by the user, and construct the first label in the first interactive interface according to the construction rules of the first label in the first interactive interface.
[0047] According to one embodiment of the present invention, the semantic attribute of the keyword included in the text input by the user is a noun or a verb.
[0048] According to a third aspect of the present invention, a computer-readable storage medium includes a stored program, wherein the program executes the aforementioned method.
[0049] According to a fourth aspect of the present invention, an electronic device includes a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the aforementioned method through the computer program. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 A simplified diagram of a page of an interactive information acquisition device disclosed in an embodiment of the present invention;
[0051] Figure 2 Schematic diagram of a first loop-free visualization unit disclosed in an embodiment of the present invention;
[0052] Figure 3 A schematic diagram of a loop relationship diagram disclosed in an embodiment of the present invention;
[0053] Figure 4 is a schematic diagram of another loop-free relationship diagram disclosed in an embodiment of the present invention;
[0054] Figure 5 Schematic diagram of the interactive information acquisition method disclosed in an embodiment of the present invention. DETAILED DESCRIPTION
[0055] The present disclosure will now be discussed with reference to several exemplary embodiments. It should be understood that these embodiments are discussed only to enable those skilled in the art to better understand and implement the present disclosure, rather than to imply any limitation on the scope of the present disclosure.
[0056] References in the specification to "one embodiment," "an embodiment," and "an example embodiment" indicate that the described embodiment may include a particular feature, structure, or characteristic, but not every embodiment necessarily includes the particular feature, structure, or characteristic. Furthermore, such phrases do not necessarily refer to the same embodiment. Furthermore, when a particular feature, structure, or characteristic is described in conjunction with an embodiment, it is considered within the knowledge of those skilled in the art to implement such feature, structure, or characteristic in conjunction with other embodiments (whether or not explicitly described).
[0057] In the discussion, unless otherwise indicated, adjectives such as "substantially" and "approximately" that modify a condition or relational characteristic of one or more features of an embodiment of the present disclosure are understood to mean that the condition or characteristic is defined to be within an acceptable tolerance range for the operation of the embodiment for its intended application.
[0058] With the development of technology, the retrieval of technical documents has been achieved through various methods, such as searching by keywords and providing relationships between keywords. Furthermore, with the development of technology, databases have evolved from traditional relational databases to non-relational databases. Some non-relational databases are suitable for storing data combinations with relationships, such as data with an S--R-->T relationship, where S is defined as the source object, T is the target object, and R represents the relationship between the two. The present invention provides the following solutions based on how to establish this relationship, perform searches that meet user expectations, and increase the understandability of information acquisition methods.
[0059] Please refer to Figure 1 and Figure 5 ,According to one embodiment of the present invention, the interactive information acquisition device,has a first interactive interface, a second interactive interface and a third interactive interface;
[0060] The first interactive interface includes one or more interactive first tags;
[0061] The second interactive interface includes one or more interactive second tags;
[0062] The first tag is configured to update the first interactive interface and / or the second interactive interface in response to a first interaction operation with the first tag as an object;
[0063] The second tag is configured to update the first interactive interface and / or the second interactive interface in response to a second interaction operation with the second tag as the object;
[0064] The interactivity information acquisition device is further configured to update the third interactive interface based on the second tag in response to the third interactive operation;
[0065] The first tag is generated based on text input by the user;
[0066] The interactive component in the third interactive interface includes interactivity information, and the interactivity information complies with a matching rule constructed according to the tag in the second interactive interface.
[0067] Obviously, the query formula can be constructed visually in the above manner. For example, the presentation of a relationship graph can be set accordingly, so that multiple queries can be merged and optimized.
[0068] The interactive information acquisition device of the present invention includes an interactive interface, a channel for users to exchange information through the interactive interface, users can control electronic devices through the interactive interface, and electronic devices can provide information to users through the interactive interface. The interactive interface may include at least one interactive component and an interactive interface. The interactive component is defined in the present invention as corresponding to an execution instruction. The interactive component can be a button, switch, slider, drop-down menu, etc. In addition to being displayed on the interactive interface, the interactive component can also be a physical hardware set on the electronic device, such as a button, knob, etc. The user can input information to the electronic device or control the electronic device by clicking on the interactive component on the interactive interface. The electronic device can respond to the user's interactive operation by receiving the information input by the user through the interactive component or executing the execution instruction corresponding to the interactive component.
[0069] The interactivity of the present invention can be implemented in a variety of forms, such as through mouse operations, keyboard operations, combination keys (keyboard and / or mouse), or equivalent events, such as touch events. The interactive function can be achieved by monitoring corresponding events and performing operations.
[0070] The hardware system of the present invention can be in a hardware environment composed of a server 101 and a user terminal 103. The server 101 is connected to the terminal 103 via a network and can be used to provide services for the user terminal or a client installed on the user terminal. The client can be an independently configured interactive software client that executes instructions through machine language or implements the call to resources at runtime; some functions of the present invention can also be implemented using a browser, such as obtaining or updating resources through js. In some cases, binary encoding can also be executed locally to improve execution efficiency. Some data used in the present invention is stored in a database. When distinguished by network address, the database server can be set on the server or independently of the server. It is used to provide data storage services for the server 101. When the stored data type is a large file or long text, the data can also be stored in the form of object storage or file storage. At this time, a file server can also be introduced to provide services. Accordingly, the file server can be independent of the server 104. In some cases, the local machine (including a virtual machine or a physical machine) is both a server and a client.
[0071] In special cases, some common content can be serialized and stored locally, and then parsed and used in a deserialized manner.
[0072] In the present invention, the networks used may include but are not limited to: wired networks, wireless networks, wherein the wired networks include: local area networks, metropolitan area networks and wide area networks, and the wireless networks include: Bluetooth, WIFI and other networks that realize wireless communication. The user terminal 103 can be a mobile phone (such as Android mobile phone, iOS mobile phone, etc.), a laptop computer, a tablet computer, a PDA, a MID (Mobile Internet Devices), a PAD, a desktop computer, a smart TV and other computer devices. The above-mentioned server can be a single server, or a server cluster composed of multiple servers, or a cloud server, which can include but is not limited to routing or gateways.
[0073] It should be understood that when the amount of data is large, the speed of information processing may decrease, especially when querying multiple cross-comparison information, the query may not be completed within the set maximum time (for example, 60 seconds) due to the decrease in join efficiency. However, users' time requirements are usually immediate, such as the query results should be returned within 1.0 second. Therefore, in the embodiments below, the inventor will point out that when some queries fail in specific scenarios, it is not because they are not theoretically possible, but because their query speed is too slow and not usable.
[0074] In the present invention, an interactive operation can be clicking on an interactive component on an interactive interface, or based on a predefined action, where the predefined action corresponds to an interactive operation. Common interactive operation scenarios are provided below:
[0075] By staying on an interface, the user's action is determined as the target intention based on the inaction time determined by the timer;
[0076] Alternatively, by detecting the length of time that no change occurs on an interface, an operation corresponding to the length of time of no operation determined by a timer is determined as the target intention;
[0077] Or by detecting a user's operation, the event corresponding to the operation is the user's intention.
[0078] The interactive operation of the present invention may first act on the first text interactive interface, and the first text interactive interface updates the first label in the first interactive interface through a registered event listener or in response to an input component.
[0079] In one embodiment of the present invention, the first text interaction interface is a text area, and a keyPress callback function is registered for the text area. For example, a keyPress event is registered for the text area with an id using $("#id").bind("keyPress",function(e){...}). The text within the text area is then retrieved and sent to a server via an API. Because the keyPress event is configured, the text entered by the user is sent to the server, ensuring that the text within the first tag always changes based on the text within the text area.
[0080] When using the API to send a request, you can include request parameters such as the maximum parameter size, text, result sorting, and deduplication parameters. Their corresponding meanings are:
[0081] The maximum parameter allowed size is the maximum number of tags returned by the server. When the user enters a long text, the number of parsed tags may exceed the maximum parameter allowed size. In this case, the tags will be truncated in the order they appear.
[0082] Text, that is, the text contained in the text area;
[0083] Result sorting, indicating whether the server should sort the important technologies. If not, the results will be returned in the order in which the tags appear.
[0084] Deduplication. When this option is enabled, a tag will not be included in another tag. For example, "new energy" and "new energy vehicles" are included in the former (String.contains()). If deduplication is configured, the former will be ignored.
[0085] The server response method may be: using natural language processing to extract technical terms or nouns in the text. When the extracted type is technical terms, the technical terms can be configured to have a basic length, and the extracted technical terms can be nouns, verbs, or adjectives. When the extracted type is nouns, only noun-type terms are extracted. The server side can also configure dictionaries and stop words to ensure that the target words are parsed and that meaningless words are removed during analysis. The technical terms or nouns obtained in this way are returned after sorting and deduplication. This process is performed on the server side, and the client can only know the execution results. This allows the client to always use the latest version of the algorithm after it is deployed on the server, without having to consider compatibility issues, and the server or the process of querying data is independent of the acquisition device.
[0086] For example, for the following text, "An imageable article comprising a substrate having an imageable, cross-linkable fluoropolymer film disposed thereon, and an imageable article prepared therefrom," segmentation based on technical terms yields a sequence of characters: "comprising, disposed, imageable, cross-linkable, fluoropolymer film, substrate, imageable article, prepared, imageable article." However, if noun extraction is performed, the corresponding sequence changes to "disposed, fluoropolymer film, substrate, imageable article, imageable article." It should be understood that extracting different parts of speech can affect the purpose of analysis, namely, the aforementioned relationship between source object S and relationship R and target object T. Specifically, if the starting and ending points of a relationship are considered, nouns may be selected. However, if the connection between the two is considered, the results may include technical terms with verbal parts of speech.
[0087] It should be understood that some technical terms have multiple parts of speech, such as "configuration", which has both verb and noun parts of speech. In this case, according to the greedy principle, when a preset rule (such as returning a noun or returning a verb) is met, it will be returned.
[0088] The above process can be implemented in various forms, such as by calling an SDK in a locally deployed environment.
[0089] In one embodiment of the present invention, the first label is generated based on the text input by the user, and the first label is standardized by the server. The standardization process is that the server uses natural language processing to standardize the word segmentation results and converts non-standard terms into agreed terms. In some cases, users can specify their own dictionaries; in the default case, the dictionary configured on the server side can be used. For example, "new energy vehicles", "new energy vehicles", and "low-pollution vehicles" are all processed as "new energy vehicles", and assuming that the user defines "alternative fuel vehicles" to include the above content, the first label obtained is "alternative fuel vehicles".
[0090] After receiving feedback from the server, a tag can be constructed based on the server's response and the first interactive interface can be updated. The tag construction can be implemented using a Vue component, or through React's TagInput, or through components provided by Qt, JDK, C#, C++, Python, etc., or visualization SDKs developed based thereon. The first tag can be added in the aforementioned manner.
[0091] The first tag has interactive properties and is configured to update the second tag in response to dragging, clicking, or touching. The properties here are merely exemplary. Other operations that can detect interactive operations and can determine that one or more first tags are the objects of the operation should also be understood as interactive.
[0092] The second tag in the second interactive interface can be unique or repeatable. The first interactive operation for the first tag selects the first tag as the execution object, and the operation of the second interactive interface is determined by determining whether there is a consistent tag in the second interactive interface and whether repeated tags are allowed.
[0093] Similarly, the second tag has an interactive attribute and is configured to update at least the second tag in response to a second interactive operation such as dragging, clicking, or touching. The characteristics here are merely exemplary, and other operations that can detect interactive operations and can determine that one or more second tags are the objects of the operation should also be understood as interactive.
[0094] The third interactive operation may be an operation performed by the user in the second operation area and unrelated to the second tag, or a submit or query button configured on the interface to perform a query operation based on the second tag.
[0095] In one embodiment of the present invention, visual attributes of the first label are set based on word frequencies fed back by the server. The visual attributes are used to sort the first label according to the word frequencies fed back by the server, and the size of the first label on the first interface is set in descending order of word frequencies. The size of the first label (such as width and height) can be consistent with the descending order of word frequencies, or in the opposite order, thereby preventing users from selecting inefficient words when selecting query terms.
[0096] Referring to the previous embodiment, the second label and the first label have the same size change trend. In this way, the paths that may be involved in the query can be displayed more intuitively.
[0097] In one embodiment of the present invention, when a query is performed based on the second tag, the text corresponding to the second tag will be sent to the server to obtain a third interactive interface for updating the third interactive operation.
[0098] When using the API to send a request, the request parameters that may be included include a second label in the second interactive interface.
[0099] In one embodiment of the present invention, the server response method may be: converting the second tag into a graph query language for querying within the graph database, such as converting it into Gremlin, cypher, or an SDK or Restful interface provided based on the graph data for querying, wherein the second tag constitutes a vertex in the query process, and adjacent second tags have the largest number of path points.
[0100] In one embodiment of the present invention, the server response method may be: converting the second tag into an SQL query to perform a query in a relational database.
[0101] In one embodiment of the present invention, the server response method may be: converting the second tag into a query that matches the document data, so as to perform a query in a non-relational database.
[0102] The result of the query is a document that meets the matching rules constructed by the tags in the second interactive interface, that is, it contains all the texts corresponding to the second tag, and the distance between adjacent texts in the document meets the requirements.
[0103] The returned document can display information according to the pre-configured interface, such as displaying abstracts, drawings, author information, etc.
[0104] According to one embodiment of the present invention, the interactive operation of the first tab includes dragging, and in response to the dragging operation on the first tab, determining whether an end point of the dragging action is located within the second interactive interface;
[0105] When the end point of the dragging action is located in the second interactive interface, a second tag having the same content as the dragged first tag is constructed and inserted in the second interactive interface according to the construction rule of the second tag in the second interactive interface.
[0106] In one embodiment of the present invention, after a second tag is added to the second interactive interface, the first tag that matches the newly added tag is removed from the first interactive interface. This prevents repeated appearance of a single technical term when constructing a query. It should be understood that due to this configuration, the tags in the second interactive interface are also essentially unique.
[0107] In this way, the second label can be intuitively constructed in the second interactive interface. During this construction process, the order between the labels is not considered, and the new second label is directly constructed in the second interactive interface.
[0108] For example, when the label of the second interactive interface is “Black link detection method target website domain name target web page”, if the object of interaction is the text “target link”, a new label is added to the end of the second interactive interface by dragging, and the text of the label is set to “target link”, so that the label of the second interactive interface includes “Black link detection method target website domain name target web page target link”.
[0109] Please refer to Figure 2In one embodiment of the present invention, the apparatus further includes a first visualization unit, which updates the drawing based on the second interactive area. The chart type of the first visualization unit is preferably a relationship chart, and the relationship chart is constructed as follows:
[0110] (1) Obtain an unadded second tag and check whether the second tag exists in the relationship graph; if not, execute step (2); if already exists, set the current second tag as the last tag;
[0111] (2) Add a new node to the relationship graph and build a connection between the last label and the current node;
[0112] (3) Set the current second tag as the last tag.
[0113] What can be obtained in this way is generally a branched graph without repeated vertices.
[0114] Please refer to Figure 3 In the above method, there is a situation where a second label appears multiple times. When processed in the above manner, a loop will occur, that is, a vertex goes through multiple nodes and returns to itself. In some cases, it is meaningful, but in some cases, this query will not improve the efficiency of the query.
[0115] In one embodiment of the present invention, the construction of a relationship graph with a loop is achieved by the following method, specifically including:
[0116] (1) Obtain an unadded second tag and check whether the second tag exists in the relationship graph; if not, execute step (2); if it exists, build a connection between the current second tag and the last tag, and set the current second tag as the last tag;
[0117] (2) Add a new node to the relationship graph and build a connection between the current node and the last label;
[0118] (3) Set the current second tag as the last tag.
[0119] What can be obtained in this way is generally a graph with branches and loops but without repeated vertices.
[0120] Please refer to Figure 4 In one embodiment of the present invention, the construction of a relationship graph with a loop is achieved by the following method, specifically including:
[0121] (1) Obtain an unadded second tag and check whether the second tag exists in the relationship graph; if not, execute step (2);
[0122] (2) Add a new node to the relationship graph and build a connection between the current node and the last label;
[0123] (3) Set the current second tag as the last tag.
[0124] The graph obtained by this method is generally a unidirectional graph without repeated vertices.
[0125] According to one embodiment of the present invention, the size change trend of the nodes in the first visualization unit has a consistent trend with or an opposite trend to the first tag word frequency. After the first visualization unit performs a visualization, displaying the query-to-query relationship through the size ratio can help technicians better identify the correlation between technical terms.
[0126] According to one embodiment of the present invention, constructing and inserting a second tag having content consistent with the dragged first tag in the second interactive interface includes:
[0127] Determining a drag endpoint of the drag action and a proximity relationship between the drag endpoint and a second label in the second interactive interface, and determining a first adjacent second label and a second adjacent second label adjacent to the drag endpoint based on the proximity relationship, wherein a distance between the second adjacent second label and the drag endpoint is greater than a distance between the first adjacent second label and the drag endpoint;
[0128] An insertion point is determined according to the relative relationship between the dragging end point, the first adjacent second label, and the second adjacent second label, and a second label with the same content as the dragged first label is inserted at the insertion point.
[0129] In this way, the second tag can be intuitively constructed in the second interactive interface. During this construction process, the order between tags is taken into consideration, and when a new second tag is directly constructed in the second interactive interface, it has a specified insertion position.
[0130] For example, when the label of the second interactive interface is “Black link detection method target website domain name target web page”, if the object of interaction is the text “target link”, and when performing the interaction, the dragging end point is determined to be between the “target website” and the “domain name”, then a new label is added to the second interactive interface between the “target website” and the “domain name” by dragging, and the text of the label is set to “target link”, so that the label of the second interactive interface includes “Black link detection method target website target link domain name target web page”.
[0131] That is, the labels in the second interactive interface can be flexibly changed as needed. When a relationship diagram is configured, the impact of the change of the second label of the query on the query technology composition can be intuitively displayed.
[0132] According to one embodiment of the present invention, the interactive operation of the first tag includes a click. In response to the click operation on the first tag, a second tag having content consistent with the dragged first tag is constructed in the second interactive interface according to the construction rules of the second tag in the second interactive interface.
[0133] In this way, the user can update the second area by clicking. For example, if the label of the second interactive interface is "Black Link Detection Method Target Website Domain Name Target Webpage", if the interactive object is the text "Target Link", then by clicking or double-clicking the first label, a new label is added to the end of the second interactive interface and the label text is set to "Target Link", so that the label of the second interactive interface is updated to "Black Link Detection Method Target Website Domain Name Target Webpage".
[0134] According to one embodiment of the present invention, the interactive operation of the second tab includes dragging, and in response to the dragging operation on the second tab, determining whether an end point of the dragging action is located within the first interactive interface;
[0135] When the end point of the dragging action is located within the first interactive interface, according to the construction rules of the first label in the first interactive interface, a first label with content consistent with the dragged second label is constructed and inserted in the first interactive interface, and the dragged second label is deleted from the second interactive interface.
[0136] In this way, the user can delete the second label in the second area by dragging. For example, if the label of the second interactive interface is "Black Link Detection Method Target Website Domain Name Target Webpage Target Link", if the interactive object is the text "Target Link", then by dragging the second label, a new label is added to the end of the first interactive interface, and the text of the label is set to "Target Link", so that the labels of the first interactive interface include "Black Link Detection Method Target Website Domain Name Target Webpage".
[0137] Considering that this operation may affect the order of the first label in the first interactive interface, the order of the first label can be maintained in various ways. For example, the corresponding variables are defined in the storage, and when the first interactive interface changes, it is always carried out in the original order. For example, when the browser performs this operation, a temporary variable with the value of the first label in the original first interactive interface can be saved in LocalStorage or SessionStorage. When the first interactive interface changes, the changed first label is sorted in the order in which it appears in the value of the temporary variable. If the value of the temporary variable is "black link detection method target website domain name target webpage", and the value corresponding to the first label of the changed first interactive interface is "black link target website detection method", then it can be sorted in the order in which it appears in the value of the temporary variable to obtain the "black link detection method target website".
[0138] According to one embodiment of the present invention, the interactive operation of the second tag includes a click. In response to the click operation on the second tag, a first tag having content consistent with the clicked second tag is constructed in the first interactive interface according to the construction rules of the first tag in the first interactive interface, and the dragged second tag is deleted from the second interactive interface.
[0139] In this way, the user can delete the second label in the second area by clicking. For example, if the label of the second interactive interface is "Black Link Detection Method Target Website Domain Name Target Webpage Target Link", if the interactive object is the text "Target Link", then by dragging the second label, a new label is added to the end of the second interactive interface, and the text of the label is set to "Target Link", so that the label of the first interactive interface includes "Black Link Detection Method Target Website Domain Name Target Webpage".
[0140] Considering that this operation may affect the order of the first label in the first interactive interface, the order of the first label can be maintained in various ways. For example, the corresponding variables are defined in the storage, and when the first interactive interface changes, it is always carried out in the original order. For example, when the browser performs this operation, a temporary variable with the value of the first label in the original first interactive interface can be saved in LocalStorage or SessionStorage. When the first interactive interface changes, the changed first label is sorted in the order in which it appears in the value of the temporary variable. If the value of the temporary variable is "black link detection method target website domain name target webpage", and the value corresponding to the first label of the changed first interactive interface is "black link target website detection method", then it can be sorted in the order in which it appears in the value of the temporary variable to obtain the "black link detection method target website".
[0141] In one embodiment of the present invention, the interactive operation of the second tab includes dragging, and in response to the dragging operation on the second tab, determining whether an end point of the dragging action is located within the first interactive interface;
[0142] When the end point of the dragging action is located in the first interactive interface, the dragged second tag is deleted from the second interactive interface. In this way, the target tag in the second interactive interface is removed.
[0143] In one embodiment of the present invention, the interactive operation of the second tag includes a click, and in response to the click operation on the second tag, the dragged second tag is deleted from the second interactive interface, thereby removing the target tag from the second interactive interface.
[0144] According to an exemplary aspect of the present invention, the interactive information acquisition device is also configured to be implemented in multiple forms in response to the third interactive operation, such as by configuring a query button on the interface, configuring a listener for the second interactive interface or the second interactive interface, and executing the query in response to touch, mouse, keyboard events and other operations.
[0145] According to one embodiment of the present invention, the operation of updating the third interactive interface based on the second tag includes:
[0146] Obtaining a second tag in the second interface, constructing a query based on the second tag and an adjacent relationship between the second tag, and sending a query request to the server;
[0147] In response to the query result from the server, the query result is displayed on the third interactive interface.
[0148] In some cases, since forwarding through the server will result in a certain loss of performance, you can obtain data by directly initiating queries on the client.
[0149] For example, in a traditional CS client, users can use certificates or other credentials to access a direct database connection source, query it through a driver, and retrieve data. For example, in one concept of the present invention, an array is obtained according to the order of the second tag, and the strings in the array have the same order as the second tag. The default configuration is that the correlation between the tags is 3. When using neo4j as the database, the corresponding query is constructed as follows (pseudo-cypher statement):
[0150] MATCH
[0151] a1:Node{value:Array[0]}->[*1..3]->a2:Node{value:Array[1]}...an:Node{value:Array[n-1]}
[0152] The above query formula is used to query the shortest relationship between vertices. When there is a search result, the attribute of the corresponding Node vertex is the key value of the search result. In this process, the use of non-distinguishing phrases should be avoided. For example, "connection" is a noun that most patent documents or technical documents have. If it is not handled by an appropriate strategy, the query will be stuck or the program will lose response due to the long query time. In order to select consistent nodes, it is necessary to rely on relationships with consistent document attributes, and the introduction of this relationship will cause an exponential increase in the number of queries.
[0153] After obtaining the key value of the search result, the corresponding document can be obtained based on the key value, and the search results can be constructed based on the corresponding document and displayed on the third interactive interface. The third interactive interface can be displayed based on a pre-configured interface or based on a user-customized interface. For example, in some concepts of the present invention, the user can choose to display it in a table, a graphic, or a graphical display.
[0154] In another concept of the present invention, the code in the traditional CS client is ported to the browser in the form of WebAssembly, and the user can access the source of the direct database connection with a certificate or other credentials, query and obtain data through the driver.
[0155] In another embodiment of the present invention, the browser constructs a request containing a query that the server can understand. The server interprets the query to generate a search formula, and then uses a driver to perform the query and retrieve data. This method typically involves submitting a query via Ajax, with the query parameters including several second tags. For example, a typical cURL command corresponding to this request is as follows:
[0156] curl"http: / / Server / appName / Module"-X POST-H"User-Agent:Mozilla / 5.0(Windows NT 10.0;Win64;x64;rv:122.0)Gecko / 20100101Firefox / 122.0"-H"Accept:application / json,text / javascript,* / *;q=0.01"-H"Accept-Language:zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2"-H"Accept-Encoding:gzip,deflate"-H"Content-Type:application / x-www-form-urlencoded;charset=UTF-8"-H"X-Requested-With:XMLHttpRequest"-H"Origin:http: / / Server / "-H"DNT:1"-H"Sec-GPC:1"-H"Connection:keep-alive"-H"Referer:http: / / Server / appName / default.jsp"-H"Cookie:JSESSIONID=E05CCDA407593F7B6879BAE91359B6D3; Hm_lvt_5b36a0 3b6735637389eee917521301e1=1706670129; Hm_lpvt_5b36a03b6735637389eee91752 1301e1=1706769148"--data-raw"userName=userName1&userToken=9af49e9a4349e6c8fab311becfcf49f2&Worker=getHomePageData&Load=SlQlMjV1JTNDJThEJTBDJTg5J "TVETUwlRDAlRDBJJTVETUxNJUNEJTg5JTVETUwlOEMlQ0QlODklNURNTkwlMEElQzklNURNJThEUEQ1QXclMjV1NTMlNjAlQzQlRDAlRTAlOTUlRDQlREQlMTUlMEMlRDAlOTUlRDQlRDQlQzglQzAlRDglOTUlRDQlREMlRDglRTAlRDAlOTUlRDQlRDglREMlRDAlQzAlOTUlRDQlRTAlRDglRDklMDglO", where the URL parameter Load is the encrypted and base64-encoded query parameter. The encryption process can be performed on the browser side to ensure the security of the query process.
[0157] According to one embodiment of the present invention, the process of generating the first tag includes:
[0158] Obtain the text input by the user, segment the input provided by the user on the server side or locally, obtain the keywords included in the text input by the user, and construct the first label in the first interactive interface according to the construction rules of the first label in the first interactive interface.
[0159] In one embodiment of the present invention, the text input by the user is segmented by a locally configured NLP toolkit to obtain the keywords of the text input by the user. The keywords are confirmed based on the NLP tool, such as using Jieba word segmentation, HanLP word segmentation, PaddlePaddle tools, etc., to obtain a Set that does not contain repeated words, or a list of words. In general, using Set allows users to focus on keywords and obtain information. Afterwards, based on the construction rules of the first label, the first label is constructed in the first interactive interface.
[0160] In one embodiment of the present invention, Swing is used as a label construction tool, and JLabels are constructed based on the phrases returned after word segmentation or server processing. Before adding, it is detected whether there are labels with the same words in the first interactive area. The same words here can be configured to be case-insensitive or strictly case-sensitive. This configuration should be consistent with the case configuration of the database.
[0161] According to one embodiment of the present invention, the semantic attribute of the keyword included in the text input by the user is a noun or a verb.
[0162] In one embodiment of the present invention, by obtaining the noun or verb input by the user on the server side or locally, retrieval texts suitable for different scenarios are obtained for constructing the first tag.
[0163] For example, the text input by the user is "A computer graphical interface interaction method, comprising the following steps: S1, the computer graphical interface receives the user's voice or text instructions, if it is a voice instruction, it is transcribed into a text instruction using voice recognition technology; S2, based on the text similarity calculation technology, the user's text instruction is matched with the control instruction of the current graphical interface interaction knowledge base; S3, if the control instruction does not hit the control, the control label is used to calculate the matching degree between the user's text instruction and the control, and the control label is a keyword about the control; S4, according to step S2 or S3, the hit control that matches the user's text instruction is obtained, and the hit control is updated to the interaction state, and automatically triggers the operation event corresponding to the user's text instruction", the extracted noun words are "computer graphical interface interaction method steps computer graphical interface user voice text instructions voice instructions speech recognition technology text instructions text similarity calculation technology user text instructions graphical interface interaction knowledge base control instructions control instructions control label calculation user text instruction control matching control label control keyword steps user text instruction hit control hit control update interaction state user text instruction operation event", if the extracted target is a verb, it is "including receiving transcription matching hit calculation update trigger", obviously, using the former can obtain richer information.
[0164] However, this conclusion varies depending on the field. For example, “A sewage treatment method, characterized in that the sewage treatment device according to any one of claims 1 to 9 is used, comprising the following steps: S100, coarse filtration, filtering the oily sewage to remove coarse particles therein; S200, demulsification, adding a demulsifier to the filtered sewage to precipitate the emulsified oil in the sewage; S300, aeration, making the flow rate of the sewage after demulsification reach a preset value, and adding bubbles to the sewage through a venturi tube so that the oil droplets in the sewage combine with the bubbles; S400, flotation, introducing the aerated sewage into a separation The oil droplets and bubbles are separated from the tank, and the oil droplets and bubbles float upward. S500: Separation: Separating the upper oil layer from the lower wastewater layer after flotation. "If nouns are extracted, the result is "wastewater treatment method, wastewater treatment device, comprising the steps of: oily wastewater filtration, coarse particle filtration, wastewater demulsifier, wastewater emulsification, oil-aerated wastewater, flow rate preset value, venturi tube, bubble wastewater, oil droplets, bubble wastewater separator, oil droplets, bubbles, upper separation, flotation, oil-liquid wastewater." If verbs are extracted, the result is "coarse filtration, filtration, removal, demulsification, filtration, precipitation, aeration, demulsification, admixture, combined flotation, introduction, flotation, separation, flotation separation." Clearly, using verbs can better reflect the technical solution.
[0165] Therefore, a switch item can be configured for the operation interface so that the query entered by the user can be switched between nouns only, verbs only, and nouns and verbs. Regardless of whether it is nouns only or verbs only, the corresponding words serve as connections to make the corresponding data have a strong association.
[0166] According to one embodiment of the present invention, a method for obtaining interactive information includes:
[0167] generating a first tag based on the first text;
[0168] Updating the first interactive interface according to the first tag;
[0169] In response to a first interactive operation of the user on the first tag, updating the first interactive interface and / or the second interactive interface;
[0170] In response to a second interactive operation with the second tag as the object, updating the first interactive interface and / or the second interactive interface;
[0171] In response to the third interaction operation, the third interactive interface is updated based on the second tag.
[0172] According to one embodiment of the present invention, the interactive operation of the first tab includes dragging, and in response to the dragging operation on the first tab, determining whether an end point of the dragging action is located within the second interactive interface;
[0173] When the end point of the dragging action is located in the second interactive interface, a second tag having the same content as the dragged first tag is constructed and inserted in the second interactive interface according to the construction rule of the second tag in the second interactive interface.
[0174] According to one embodiment of the present invention, constructing and inserting a second tag having content consistent with the dragged first tag in the second interactive interface includes:
[0175] Determining a drag endpoint of the drag action and a proximity relationship between the drag endpoint and a second label in the second interactive interface, and determining a first adjacent second label and a second adjacent second label adjacent to the drag endpoint based on the proximity relationship, wherein a distance between the second adjacent second label and the drag endpoint is greater than a distance between the first adjacent second label and the drag endpoint;
[0176] An insertion point is determined according to the relative relationship between the dragging end point, the first adjacent second label, and the second adjacent second label, and a second label with the same content as the dragged first label is inserted at the insertion point.
[0177] According to one embodiment of the present invention, the interactive operation of the first tag includes a click. In response to the click operation on the first tag, a second tag having content consistent with the dragged first tag is constructed in the second interactive interface according to the construction rules of the second tag in the second interactive interface.
[0178] According to one embodiment of the present invention, the interactive operation of the second tab includes dragging, and in response to the dragging operation on the second tab, determining whether an end point of the dragging action is located within the first interactive interface;
[0179] When the end point of the dragging action is located within the first interactive interface, according to the construction rules of the first label in the first interactive interface, a first label with content consistent with the dragged second label is constructed and inserted in the first interactive interface, and the dragged second label is deleted from the second interactive interface.
[0180] According to one embodiment of the present invention, the interactive operation of the second tag includes a click. In response to the click operation on the second tag, a first tag having content consistent with the clicked second tag is constructed in the first interactive interface according to the construction rules of the first tag in the first interactive interface, and the dragged second tag is deleted from the second interactive interface.
[0181] According to one embodiment of the present invention, the operation of updating the third interactive interface based on the second tag includes:
[0182] Obtaining a second tag in the second interface, constructing a query based on the second tag and an adjacent relationship between the second tag, and sending a query request to the server;
[0183] In response to the query result from the server, the query result is displayed on the third interactive interface.
[0184] According to one embodiment of the present invention, the process of generating the first tag includes:
[0185] Obtain the text input by the user, segment the input provided by the user on the server side or locally, obtain the keywords included in the text input by the user, and construct the first label in the first interactive interface according to the construction rules of the first label in the first interactive interface.
[0186] According to one embodiment of the present invention, the semantic attribute of the keyword included in the text input by the user is a noun or a verb.
[0187] The present invention further discloses a computer-readable storage medium, which includes a stored program, wherein the program executes the aforementioned method.
[0188] The present invention further discloses an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the aforementioned method through the computer program.
[0189] Those skilled in the art will appreciate that the modules and algorithm steps described in conjunction with the embodiments disclosed herein can be implemented using electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present invention.
[0190] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and equipment can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0191] In the embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules is merely a logical function division. In actual implementation, there may be other division methods, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0192] The modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed across multiple network modules. Some or all of these modules may be selected according to actual needs to achieve the objectives of the embodiments of the present invention.
[0193] In addition, each functional module in the embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
[0194] If the functions are implemented as software modules and sold or used as standalone products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the portion that contributes to the prior art, or the portion of the technical solution itself, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the energy-saving signal transmission / reception method according to various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, a mobile hard drive, ROM, RAM, a magnetic disk, or an optical disk.
[0195] The above description is merely a preferred embodiment of the present application and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of the invention herein is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also encompasses other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the inventive concept. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features having similar functions disclosed in this application.
[0196] It should be understood that the size of the serial numbers of the steps in the content of the invention and the embodiments of the present invention does not absolutely mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention. The foregoing description of the implementation of the present disclosure has been given for the purpose of example and description. The foregoing description is not exhaustive and is not intended to limit the present disclosure to the exact form disclosed. Various variations and modifications may exist based on the above teachings, or various variations and modifications may be obtained from the practice of the present disclosure. These embodiments are selected and described in order to illustrate the principles of the present disclosure and its practical application, so that those skilled in the art can utilize the present disclosure in various embodiments and various modifications suitable for the specific purpose conceived.
Claims
1. An interactive information acquisition device, characterized in that: Having a first interactive interface, a second interactive interface and a third interactive interface; The first interactive interface includes one or more interactive first tags; The second interactive interface includes one or more interactive second tags; The first tag is configured to update the first interactive interface and / or the second interactive interface in response to a first interaction operation with the first tag as an object; The second tag is configured to update the first interactive interface and / or the second interactive interface in response to a second interaction operation with the second tag as the object; The interactivity information acquisition device is further configured to update the third interactive interface based on the second tag in response to the third interactive operation; The first tag is generated based on text input by the user; The interactive component in the third interactive interface includes interactivity information, and the interactivity information complies with a matching rule constructed according to the tag in the second interactive interface.
2. The interactive information acquisition device according to claim 1, wherein: The interactive operation of the first tab includes dragging, and in response to the dragging operation on the first tab, determining whether an end point of the dragging action is located within the second interactive interface; When the end point of the dragging action is located in the second interactive interface, a second tag having the same content as the dragged first tag is constructed and inserted in the second interactive interface according to the construction rule of the second tag in the second interactive interface.
3. The interactive information acquisition device according to claim 2, wherein: The constructing and inserting a second tag having content consistent with the dragged first tag into the second interactive interface includes: Determining a drag endpoint of the drag action and a proximity relationship between the drag endpoint and a second label in the second interactive interface, and determining a first adjacent second label and a second adjacent second label adjacent to the drag endpoint based on the proximity relationship, wherein a distance between the second adjacent second label and the drag endpoint is greater than a distance between the first adjacent second label and the drag endpoint; An insertion point is determined according to the relative relationship between the dragging end point, the first adjacent second label, and the second adjacent second label, and a second label with the same content as the dragged first label is inserted at the insertion point.
4. The interactive information acquisition device according to claim 1, wherein: The interactive operation of the first tag includes clicking. In response to the click operation on the first tag, a second tag with content consistent with the dragged first tag is constructed in the second interactive interface according to the construction rules of the second tag in the second interactive interface.
5. The interactive information acquisition device according to claim 1, wherein: The interactive operation of the second tab includes dragging, and in response to the dragging operation on the second tab, determining whether an end point of the dragging action is located within the first interactive interface; When the end point of the dragging action is located within the first interactive interface, according to the construction rules of the first label in the first interactive interface, a first label with content consistent with the dragged second label is constructed and inserted in the first interactive interface, and the dragged second label is deleted from the second interactive interface.
6. The interactive information acquisition device according to claim 1, wherein: The interactive operation of the second tag includes clicking. In response to the click operation on the second tag, a first tag with content consistent with the clicked second tag is constructed in the first interactive interface according to the construction rules of the first tag in the first interactive interface, and the dragged second tag is deleted from the second interactive interface.
7. The interactive information acquisition method is characterized in that: include: generating a first tag based on the first text; Updating the first interactive interface according to the first tag; In response to a first interactive operation of the user on the first tag, updating the first interactive interface and / or the second interactive interface; In response to a second interactive operation with the second tag as the object, updating the first interactive interface and / or the second interactive interface; In response to the third interaction operation, the third interactive interface is updated based on the second tag.
8. A computer-readable storage medium comprising a stored program, characterized in that: The program executes the method according to claim 7 when executed.
9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: The processor is configured to execute the method of claim 7 via the computer program.
Citation Information
Patent Citations
Graph data query method and device and storage medium
CN111931001A
Commodity searching method and electronic equipment
CN114443951A
Nebula Graph graph database query method and system, electronic device and medium
CN115563355A
Low-code interactive graph query statement construction method
CN116010444A
Patent retrieval type generation method, system and equipment and medium
CN116842160A