CN114265985A - Automobile information interactive query method, device and equipment - Google Patents

Automobile information interactive query method, device and equipment Download PDF

Info

Publication number
CN114265985A
CN114265985A CN202111641960.2A CN202111641960A CN114265985A CN 114265985 A CN114265985 A CN 114265985A CN 202111641960 A CN202111641960 A CN 202111641960A CN 114265985 A CN114265985 A CN 114265985A
Authority
CN
China
Prior art keywords
condition
information
retrieval
queue
client
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111641960.2A
Other languages
Chinese (zh)
Inventor
王彬彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Pacific Internet Information Service Co ltd
Original Assignee
Guangdong Pacific Internet Information Service Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Pacific Internet Information Service Co ltd filed Critical Guangdong Pacific Internet Information Service Co ltd
Priority to CN202111641960.2A priority Critical patent/CN114265985A/en
Publication of CN114265985A publication Critical patent/CN114265985A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses an automobile information interaction query method, a device and equipment, which are applied to an information interaction query platform, wherein the information interaction query platform comprises a client and a back-end server, and the method comprises the following steps: responding to an operation instruction acquired by a client, and selecting a plurality of target condition components from a condition component library to construct a retrieval condition graph; when a submission instruction is received, checking the retrieval condition graph; if the verification is judged to be passed, sending the retrieval condition graph to a back-end server, and generating at least one condition retrieval queue according to the retrieval condition graph through the back-end server; searching a preset information database through a back-end server according to each condition searching queue to generate information results corresponding to each condition searching queue; and generating a result list by adopting all information results through the back-end server and returning the result list to the client for rendering and displaying. Therefore, the search efficiency and the search flexibility for searching the automobile information are improved through the visual operation of the search condition components and the logical relations.

Description

Automobile information interactive query method, device and equipment
Technical Field
The invention relates to the technical field of information query, in particular to an automobile information interactive query method, device and equipment.
Background
At any time, the continuous popularization of the internet, the continuous development of the internet technology and the continuous improvement of the internet infrastructure are realized, the surfing on the internet is just the essential entertainment activities before and after meals of the national tea, and people can acquire knowledge and information from the internet more and more conveniently.
For the car portal, the function implementation is expanded around the car-related information data. The system is used as an intermediate platform between a merchant and a consumer, and provides data release and information display for the merchant; providing data retrieval, data information and other functions for consumers, and how to provide good interactive experience and accurate information search is the key point in portal function optimization.
Therefore, in the prior art, information of merchants is generally obtained and stored in a unified manner, operation and maintenance personnel manually design and display portal sites based on the bidding authority of the merchants, a condition search box is provided, information is retrieved in a keyword search mode, and a user selects required information from the information results to perform subsequent operations. However, the above solution is easy to further reduce the retrieval flexibility and query efficiency due to the fact that merchants usually have respective data display forms, and the keyword retrieval or sequential condition retrieval is limited by matching efficiency or logic conditions as merchants increase.
Disclosure of Invention
The invention provides an automobile information interactive query method, device and equipment, which solve the technical problems that in the prior art, merchants usually have respective data display forms, the merchant is increased, and keyword retrieval or sequential condition retrieval is limited by matching efficiency or logic conditions, so that the retrieval flexibility and the query efficiency are further reduced.
The invention provides a vehicle information interaction query method, which is applied to an information interaction query platform, wherein the information interaction query platform comprises a client and a back-end server, and the method comprises the following steps:
responding to the operation instruction acquired by the client, and selecting a plurality of target condition components from a condition component library to construct a retrieval condition graph;
when the client receives a submission instruction, verifying the retrieval condition graph through the client;
if the verification is judged to be passed, the retrieval condition graph is sent to the back-end server through the client, and at least one condition retrieval queue is generated through the back-end server according to the retrieval condition graph;
searching a preset information database through the back-end server according to each condition searching queue to generate information results corresponding to each condition searching queue;
and generating a result list by adopting all the information results through the back-end server and returning the result list to the client for rendering and displaying.
Optionally, the method further comprises:
receiving basic information data uploaded by a plurality of automobile information terminals respectively, and creating access registration lists corresponding to the automobile information terminals respectively;
classifying the basic information data according to preset information types to obtain various intermediate information data and respectively constructing corresponding intermediate information tables;
screening the intermediate information data in each intermediate information table according to a preset field name to generate a field information table;
respectively establishing the association among the access registration table, the intermediate information table and the field information table to obtain a plurality of target information association tables;
and constructing an information database by adopting all the field information tables and the target information association table.
Optionally, the access registry comprises an access application ID; the step of establishing association among the access registration table, the intermediate information table, and the field information table, respectively, to obtain a plurality of target information association tables, includes:
creating a plurality of initial information association tables;
calculating a hash value corresponding to the access application ID;
selecting an intermediate information association table from the plurality of initial information association tables according to the hash value;
acquiring an intermediate information ID corresponding to the intermediate information table, and acquiring a field information ID corresponding to the field information table;
and respectively loading the intermediate information ID, the field information ID and the access application ID to the intermediate information association table to obtain a target information association table.
Optionally, the step of checking, by the client, the retrieval condition map when the client receives the commit instruction includes:
when the client receives a submission instruction, the client traverses the retrieval condition graph to judge whether an unconnected target condition component exists in the retrieval condition graph;
if not, inquiring whether the target condition components have the attribute values which are not added;
if not, judging that the search condition graph passes verification;
and if the target condition components which are not connected exist in the retrieval condition diagram or the attribute values which are not added exist in any one of the target condition components, judging that the retrieval condition diagram fails to check, and generating an editing prompt.
Optionally, if it is determined that the check is passed, the step of sending, by the client, the retrieval condition map to the back-end server, and generating, by the back-end server, at least one condition retrieval queue according to the retrieval condition map includes:
if the verification is judged to be passed, the retrieval condition graph is sent to the back-end server through the client;
extracting connection information between every two target condition components from the retrieval condition graph through the back-end server; the target condition component comprises a component node ID;
creating condition nodes corresponding to the ID of each component node and connecting according to the connection information to obtain a condition retrieval tree;
and traversing the conditional retrieval tree to generate at least one conditional retrieval queue.
Optionally, the method further comprises:
traversing each condition retrieval queue, and judging whether the same node type exists in the same condition retrieval queue;
if yes, deleting the condition retrieval queue, and returning a retrieval link to repeatedly prompt the client;
if not, the condition retrieval queue is reserved.
Optionally, the conditional retrieval queue comprises a plurality of queue nodes, the queue nodes having queue node IDs; the step of searching a preset information database through the back-end server according to each condition search queue to generate information results corresponding to each condition search queue comprises the following steps:
searching each field information table in a preset information database by using each queue node ID as a main key through the back-end server, and judging whether a first key value corresponding to the queue node ID exists or not;
if yes, obtaining the first key value from the field information table;
if not, searching the target information association table according to the field information ID corresponding to the field information table, determining a corresponding intermediate information table and acquiring a second key value from the intermediate information table according to the queue node ID;
and after all the first key values and/or the second key values are obtained, determining the intersection of all the first key values and/or the second key values to obtain the information result corresponding to the condition retrieval queue.
Optionally, the information database comprises a cache library; before the step of searching each field information table in a preset information database by using the queue node ID corresponding to each queue node as a primary key through the back-end server and judging whether a first key value corresponding to the queue node ID exists, the method further comprises the following steps:
searching the cache library through the back-end server according to each condition retrieval queue, and judging whether a cache queue identical to the condition retrieval queue exists in the cache library or not;
if yes, obtaining a cache result corresponding to the cache queue from the cache library as an information result corresponding to the condition retrieval queue;
and if the condition searching queue does not exist, splitting the condition searching queue into a plurality of queue nodes.
The invention provides a vehicle information interaction query device, which is applied to an information interaction query platform, wherein the information interaction query platform comprises a client and a back-end server, and the device comprises:
the retrieval condition graph building module is used for responding to the operation instruction acquired by the client and selecting a plurality of target condition components from the condition component library to build a retrieval condition graph;
the retrieval condition graph checking module is used for checking the retrieval condition graph through the client when the client receives a submission instruction;
the condition retrieval queue generating module is used for sending the retrieval condition graph to the back-end server through the client and generating at least one condition retrieval queue according to the retrieval condition graph through the back-end server if the verification is judged to be passed;
the information result retrieval module is used for retrieving a preset information database according to each condition retrieval queue through the back-end server to generate information results corresponding to each condition retrieval queue;
and the result display module is used for generating a result list by adopting all the information results through the back-end server and returning the result list to the client for rendering and displaying.
In a third aspect, the present invention provides an electronic device, which includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the method for interactively querying automobile information according to any one of the first aspect of the present invention.
According to the technical scheme, the invention has the following advantages:
the method comprises the steps that a client side of an information interaction query platform responds to an operation instruction input by a user, a plurality of target condition components are selected from a condition component library built in the client side, and a corresponding retrieval condition graph is constructed; after the retrieval condition graph is constructed, if a submission instruction input by a user is received, the retrieval condition graph can be further verified through the client to judge whether conditions such as unknown attribute values or wrong connection relations exist, if the conditions pass the verification, the retrieval condition graph is sent to the back-end server, at least one condition retrieval queue is generated through the candidate server according to target condition components in the retrieval condition graph and the connection relations of the target condition components, then the information database is decelerated according to the condition retrieval queue to generate corresponding information results, finally all the information results are returned to the client in a result list mode, and the client and the result list are used for rendering and displaying visual information results. Therefore, the retrieval efficiency and the retrieval flexibility of the user for retrieving the automobile information are improved through the visual operation of the retrieval condition component and the logical relation.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
FIG. 1 is a flowchart illustrating steps of a method for interactive query of vehicle information according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating steps of a method for interactively querying vehicle information according to a second embodiment of the present invention;
fig. 3 is a schematic diagram of a process for constructing a search condition graph according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating an information database construction process according to an embodiment of the present invention;
fig. 5 is a queue diagram of a conditional search queue according to an embodiment of the present invention;
fig. 6 is a block diagram of an automobile information interaction query device according to a third embodiment of the present invention.
Detailed Description
The embodiment of the invention provides an automobile information interactive query method, device and equipment, which are used for solving the technical problems that in the prior art, merchants usually have respective data display forms, the number of the merchants is increased, and keyword retrieval or sequential condition retrieval is limited by matching efficiency or logic conditions, so that the retrieval flexibility and the query efficiency are further reduced.
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the embodiments described below are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating steps of an automobile information interaction query method according to an embodiment of the present invention.
The invention provides an automobile information interaction query method, which is applied to an information interaction query platform, wherein the information interaction query platform comprises a client and a back-end server, and the method comprises the following steps:
step 101, responding to an operation instruction acquired by a client, selecting a plurality of target condition components from a condition component library to construct a retrieval condition graph;
the operation instruction refers to a trigger instruction such as clicking, selecting, dragging, connecting and placing input by a user at a client, and is used for selecting a plurality of target condition components from a condition component library and performing attribute editing and connection relation construction on each component.
In the embodiment of the invention, a user inputs an operation instruction on a client, for example, a plurality of target condition components are dragged in a condition component library of a client interface, and attribute values and connection relations corresponding to the target condition components are edited in the interface, so that a retrieval condition graph is constructed and obtained.
102, when the client receives the submission instruction, checking the retrieval condition graph through the client;
after the user finishes editing the retrieval condition graph, a submission instruction can be further input into the client, and after the client receives the input submission instruction, the retrieval condition graph is verified locally at the client to determine whether the retrieval condition graph has the conditions of unknown attribute values and/or unknown connection relations and the like, and whether the verification is passed is judged.
103, if the verification is judged to be passed, sending the retrieval condition graph to a back-end server through the client, and generating at least one condition retrieval queue according to the retrieval condition graph through the back-end server;
in an example of the present invention, if the search condition map does not have a case where the attribute value is unknown or the connection relationship is unknown, it is determined that the check is passed. At this time, the retrieval condition graph can be sent to the back-end server through the client, and at least one condition retrieval queue corresponding to the retrieval condition graph is determined through the back-end server according to the specific attribute values and the connection relation of the target retrieval components in the retrieval condition graph.
It should be noted that the client in the embodiment of the present invention refers to a consumer, a personal user terminal, a display terminal disposed on a backend server, and the like, for example, a mobile phone, a computer, a tablet, and the like. The condition searching queue includes condition nodes generated based on the target condition components, and the condition nodes have logical AND connection relation.
Step 104, searching a preset information database through the back-end server according to each condition search queue to generate information results corresponding to each condition search queue;
the information database refers to a database storing information data uploaded by a plurality of automobile information manufacturers, and can be divided into a cache library and a non-cache library, wherein the cache library is stored locally in a back-end server and is used for caching a condition retrieval queue with high search frequency and information results thereof, and the non-cache library is used for storing all information data uploaded by each automobile information manufacturer in a field form, such as articles, posters, videos or activities and the like associated with each automobile series.
After the back-end server generates at least one condition search queue according to the condition search graph, each condition search queue is analyzed, and information results meeting each condition search queue are searched from the information database.
And 105, generating a result list by adopting all information results through the back-end server and returning the result list to the client for rendering and displaying.
After the back-end server retrieves all information results, in order to facilitate visual checking by a user, all the information results can be uniformly constructed into a result list and returned to the client, and the client performs rendering display according to the result list to obtain a visual interface containing all the information results.
In the embodiment of the invention, a client of an information interaction query platform responds to an operation instruction input by a user, selects a plurality of target condition components from a condition component library built in the client and constructs a corresponding retrieval condition graph; after the retrieval condition graph is constructed, if a submission instruction input by a user is received, the retrieval condition graph can be further verified through the client to judge whether conditions such as unknown attribute values or wrong connection relations exist, if the conditions pass the verification, the retrieval condition graph is sent to the back-end server, at least one condition retrieval queue is generated through the candidate server according to target condition components in the retrieval condition graph and the connection relations of the target condition components, then the information database is decelerated according to the condition retrieval queue to generate corresponding information results, finally all the information results are returned to the client in a result list mode, and the client and the result list are used for rendering and displaying visual information results. Therefore, the retrieval efficiency and the retrieval flexibility of the user for retrieving the automobile information are improved through the visual operation of the retrieval condition component and the logical relation.
Referring to fig. 2, fig. 2 is a flowchart illustrating steps of an automobile information interaction query method according to a second embodiment of the present invention.
The invention provides an automobile information interaction query method, which is applied to an information interaction query platform, wherein the information interaction query platform comprises a client and a back-end server, and the method comprises the following steps:
step 201, responding to an operation instruction acquired by a client, selecting a plurality of target condition components from a condition component library to construct a retrieval condition graph;
in the embodiment of the invention, a user can input an operation instruction at a client to select a plurality of target condition components from a condition component library in a client interface, and a retrieval condition graph is obtained by editing the attribute values of the target condition components and constructing the connection relation.
Fig. 3 is a schematic diagram illustrating a process of constructing a search condition map according to an embodiment of the present invention.
In one example of the invention, the condition component library can display a plurality of target condition components with higher use frequency in a top column, and other target condition components with lower use frequency can be inquired through an inquiry button, and simultaneously, the retrieval condition graph can be reset through a reset button.
Wherein each search condition component has four attribute values: 1. and the component node ID is used for determining the position of the retrieval condition component in the condition retrieval graph. 2. Node type, which is used to determine which search condition. 3. And the condition value is used for responding to user input to set the condition threshold value. 4. Comparison logic: by default equal, some conditions may be scoped queries such as price, date, etc., and comparison logic such as greater than number, less than number, etc. may be selected here. When the mouse hovers over the condition component, its condition-selectable value is displayed.
Optionally, each condition component in the condition component library may further distinguish the node type corresponding to each condition component by a different color.
Step 202, when the client receives the submission instruction, the retrieval condition graph is checked through the client;
optionally, step 202 may include the following sub-steps:
when the client receives the submission instruction, the client traverses the retrieval condition graph and judges whether an unconnected target condition component exists in the retrieval condition graph;
if not, inquiring whether the attribute values which are not added exist in each target condition component;
if not, judging that the search condition graph passes the verification;
and if the target condition components which are not connected exist in the search condition diagram or the attribute values which are not added exist in any target condition component, judging that the check of the search condition diagram fails, and generating an editing prompt.
In the embodiment of the present invention, after the search condition graph is constructed, if a submission instruction input by a user is further received, the search condition graph may be traversed by the client to determine whether each target condition component is not connected, if not, whether each target condition component has an attribute value that is not added may be further queried, and if not, it is determined that the search condition graph passes verification.
And if the target condition components which are not connected exist in the retrieval condition diagram or the attribute values which are not added exist in any target condition component, judging that the retrieval condition diagram fails to be verified, and generating an editing prompt to wait for further editing of the user.
In an example of the present invention, before the back-end server searches the search condition graph for the first time, a corresponding information database may be further constructed based on the basic information data uploaded by the automobile information terminal.
Optionally, the method may further comprise the following steps S11-S15:
s11, receiving basic information data uploaded by a plurality of automobile information terminals respectively, and creating access registration lists corresponding to the automobile information terminals respectively;
s12, classifying the basic information data according to the preset information type to obtain various intermediate information data and respectively constructing corresponding intermediate information tables;
s13, screening the intermediate information data in each intermediate information table according to the preset field name to generate a field information table;
referring to fig. 4, fig. 4 is a schematic diagram illustrating an information database construction process according to the embodiment.
In the embodiment, basic information data uploaded by a plurality of automobile information terminals such as automobile manufacturers, dealers and the like respectively can be received through the back-end server, and the content of the basic information data can include but is not limited to automobile series data, automobile model data and associated articles, posters, videos, activities and the like. And meanwhile, responding to the access of each automobile information terminal, distributing the corresponding access application ID, the access application key and the access name of each automobile information terminal, and respectively creating a corresponding access registration table.
In addition, the information can be classified according to the clustering information type of the input basic information data to obtain various intermediate information data and create corresponding intermediate information tables, for example, the automobile manufacturer A comprises a B automobile system, a C automobile system and a D automobile system, and the corresponding intermediate information tables can be respectively generated according to the automobile systems. Then, the intermediate information data is screened according to the plurality of field names set by the invention, such as access names, alias names, English names and the like, so as to obtain the intermediate information data meeting the requirements, and a field information table is generated.
S14, establishing the association among the access registration list, the intermediate information list and the field information list respectively to obtain a plurality of target information association lists;
further, the access registry comprises an access application ID, and S14 may comprise the sub-steps of:
creating a plurality of initial information association tables;
calculating a hash value corresponding to the ID of the access application;
selecting an intermediate information association table from the plurality of initial information association tables according to the hash value;
acquiring an intermediate information ID corresponding to the intermediate information table and acquiring a field information ID corresponding to the field information table;
and respectively loading the intermediate information ID, the field information ID and the access application ID into the intermediate information association table to obtain a target information association table.
In the embodiment of the present invention, a plurality of initial information association tables may be created in the back-end server, hash values corresponding to access application IDs corresponding to each vehicle information terminal are respectively calculated, an intermediate information association table is selected from the plurality of initial information association tables according to the hash values, an intermediate information ID corresponding to the intermediate information table and a field information ID corresponding to the field information table are obtained, and the intermediate information ID, the field information ID and the access application ID are respectively loaded to the intermediate information association table to obtain a target information association table, please refer to fig. 4.
S15, constructing the information database by using the all-field information table and the target information association table.
In the embodiment of the invention, the information database is constructed by adopting all the field information tables and the target information association table.
It should be noted that, in the information query process of the client, a field information table is usually used for querying, and if there is no required field in the field information table, the corresponding intermediate information table may be further queried through the target information association table, so as to obtain the corresponding information from the intermediate information table.
Step 203, if the verification is judged to be passed, sending the retrieval condition graph to a back-end server through the client;
in the embodiment of the invention, if the check is judged to be passed, the retrieval condition graph can be sent to the back-end server through the client.
Specifically, the retrieval condition graph sent by the client to the backend server may include, but is not limited to, the following data: the first is that the information (connection information) of each target condition node includes a node id, a condition type, a condition threshold, and a condition logic. All types are obtained by traversing the components of the search condition style in the input box of the condition search graph. The second is a connection condition of the target condition node (condition node), which includes two parts, the former node id and the latter node id (default high position target condition node flows to low position target condition node).
Step 204, extracting connection information between every two target condition components from the retrieval condition graph through a back-end server; the target condition component includes a component node ID;
in an example of the present invention, after the back-end server obtains the retrieval condition graph, connection information between each two target condition components and component node IDs corresponding to the respective target condition components may be extracted from the retrieval condition graph.
Step 205, creating condition nodes corresponding to each component node ID and connecting according to the connection information to obtain a condition retrieval tree;
in one example of the present invention, a corresponding conditional node may be created according to each component node ID, and connected according to the connection information, thereby obtaining a conditional search tree.
In the specific implementation, a root node id (a node which is not set later in the condition node data of the condition retrieval graph) is found from the condition node data, a corresponding node is found in the connection information according to the node id, and the root node of the condition retrieval tree is constructed. The conditional nodes are then traversed to find the child nodes of the root node, and because of the multi-way tree nature, there may be multiple child nodes for a parent node. The node needs to be recorded for subsequent backtracking. The backtracking algorithm finds a path reaching the leaf from the root node, then backtracks, checks whether the father node of the node has other leaf nodes, adds the leaf nodes to the tree if the father node of the node has other leaf nodes, and continues to push downwards. If not, the grandfather node of the upper layer is traced back.
Step 206, traversing the conditional retrieval tree to generate at least one conditional retrieval queue;
in the embodiment of the invention, at least one condition retrieval queue can be generated by traversing each condition node in the condition retrieval tree.
Referring to fig. 5, fig. 5 is a queue diagram illustrating a conditional search queue according to an embodiment of the present invention.
In the embodiment of the invention, the recording is started from the root node by adopting a depth-first traversal + replication algorithm, if the node has a plurality of child nodes, the existing link is replicated, the child nodes are respectively added at the tail ends of the existing link, and finally the number of the conditional retrieval queues is consistent with the number of leaf nodes in the conditional retrieval tree, so that a plurality of conditional retrieval queues are obtained.
Optionally, before performing step 207, the method may further include the following steps S21-S23:
s21, traversing each condition retrieval queue, and judging whether the same node type exists in the same condition retrieval queue;
s22, if yes, deleting the condition retrieval queue, and returning a retrieval link to repeat the prompt to the client;
and S23, if not, reserving the condition searching queue.
In a specific implementation, the same node type may exist in the same conditional search queue due to a user editing error, for example, if an element of a repeated type occurs in one link, the user may input an error, because the relationship between parent and child nodes in the clue condition tree represents a logical and relationship, if the parent node condition is that the vehicle train is bmw and the child node condition is that the vehicle train is audi, the two nodes do not necessarily have an intersection, the joint result of the two nodes is empty, and the empty set in the link may be directly short-circuited because the empty set is a logical and.
Therefore, each condition retrieval queue can be traversed to judge whether the same node type exists in the same condition retrieval queue, if so, the condition retrieval queue is deleted to return a retrieval link for repeated prompt to the client, and if not, the condition retrieval queue is reserved to wait for subsequent retrieval of information results.
Step 207, retrieving a preset information database through the back-end server according to each condition retrieval queue to generate information results corresponding to each condition retrieval queue;
optionally, the conditional retrieval queue includes a plurality of queue nodes, the queue nodes having queue node IDs, and step 207 may include the following sub-steps S31-S34:
s31, searching each field information table in a preset information database by using each queue node ID as a main key through the back-end server, and judging whether a first key value corresponding to the queue node ID exists or not;
s32, if yes, obtaining the first key value from the field information table;
s33, if not, searching the target information association table according to the field information ID corresponding to the field information table, determining the corresponding intermediate information table and obtaining a second key value from the intermediate information table according to the queue node ID;
s34, after all the first key values and/or the second key values are obtained, determining the intersection of all the first key values and/or the second key values to obtain the information result corresponding to the condition retrieval queue.
In the implementation of the invention, each condition retrieval queue comprises a plurality of queue nodes, each queue node is provided with a queue node ID, each queue node ID is used as a primary key to retrieve each field information table in the information database through a back-end server so as to determine whether a first key value corresponding to the queue node ID exists, if so, the first key value can be obtained from the field information table and output as an information result, if not, a target information association table is selected from the information association tables according to the field information ID corresponding to the field information table, a corresponding intermediate information table is determined, and a second key value is determined from the intermediate information table. And after all the first key values and/or the second key values are obtained, determining the intersection of all the first key values and/or the second key values to obtain the information result corresponding to the condition retrieval queue.
Further, the information database includes a cache library; before performing S31, step 207 may further include the following sub-steps S41-S43:
s41, searching the cache library through the back-end server according to each condition searching queue, and judging whether a cache queue identical to the condition searching queue exists in the cache library or not;
s42, if yes, obtaining the buffer result corresponding to the buffer queue from the buffer library as the information result corresponding to the condition searching queue;
and S43, if the condition searching queue does not exist, splitting the condition searching queue into a plurality of queue nodes.
In another example of the present invention, the information database includes a cache library to further improve the efficiency of information result retrieval. The cache library can be retrieved through the back-end server according to each condition retrieval queue, whether the same cache queue exists in the cache library or not is judged, if yes, a cache result corresponding to the cache queue can be obtained from the cache library to serve as an information result, if not, the condition retrieval queue is split into a plurality of queue nodes, and step S31 is executed, so that all information results are retrieved.
Optionally, the cache library may update the cache queue according to a preset update period.
And step 208, generating a result list by the back-end server by adopting all information results and returning the result list to the client for rendering and displaying.
After the back-end server retrieves all information results, in order to facilitate visual checking by a user, all the information results can be uniformly constructed into a result list and returned to the client, and the client performs rendering display according to the result list to obtain a visual interface containing all the information results.
In another example of the present invention, the information result may be vehicle system data, activity data, etc., and after the user receives the information result at the client, the activity data may be further edited at the client, for example, an operation of registering an activity, etc., and returned to the back-end server, and the manufacturer obtains the activity registration information through the vehicle information terminal, so that the manufacturer knows that the user registers and records the activity.
In the embodiment of the invention, a client of an information interaction query platform responds to an operation instruction input by a user, selects a plurality of target condition components from a condition component library built in the client and constructs a corresponding retrieval condition graph; after the retrieval condition graph is constructed, if a submission instruction input by a user is received, the retrieval condition graph can be further verified through the client to judge whether conditions such as unknown attribute values or wrong connection relations exist, if the conditions pass the verification, the retrieval condition graph is sent to the back-end server, at least one condition retrieval queue is generated through the candidate server according to target condition components in the retrieval condition graph and the connection relations of the target condition components, then the information database is decelerated according to the condition retrieval queue to generate corresponding information results, finally all the information results are returned to the client in a result list mode, and the client and the result list are used for rendering and displaying visual information results. Therefore, the retrieval efficiency and the retrieval flexibility of the user for retrieving the automobile information are improved through the visual operation of the retrieval condition component and the logical relation.
Referring to fig. 6, fig. 6 is a block diagram illustrating a structure of an automobile information interaction query device according to a third embodiment of the present invention.
The second aspect of the present invention provides an automobile information interaction query device, which is applied to an information interaction query platform, wherein the information interaction query platform comprises a client and a back-end server, and the device comprises:
a retrieval condition graph building module 601, configured to respond to an operation instruction acquired by a client, and select a plurality of target condition components from a condition component library to build a retrieval condition graph;
a retrieval condition graph checking module 602, configured to check the retrieval condition graph through the client when the client receives the submission instruction;
a condition search queue generating module 603, configured to send, if it is determined that the check is passed, the search condition graph to a back-end server through the client, and generate, by the back-end server, at least one condition search queue according to the search condition graph;
an information result retrieving module 604, configured to retrieve, by a back-end server, a preset information database according to each condition retrieval queue, and generate information results corresponding to each condition retrieval queue;
and a result display module 605, configured to generate a result list by using all information results through the back-end server, and return the result list to the client for rendering and displaying.
Optionally, the apparatus further comprises:
the access registration form creating module is used for receiving basic information data uploaded by a plurality of automobile information terminals respectively and creating access registration forms corresponding to the automobile information terminals respectively;
the intermediate information table generating module is used for classifying the basic information data according to the preset information type to obtain various intermediate information data and respectively constructing corresponding intermediate information tables;
the field information table generating module is used for screening the intermediate information data in each intermediate information table according to the preset field name to generate a field information table;
the association establishing module is used for respectively establishing the association among the access registration list, the intermediate information list and the field information list to obtain a plurality of target information association lists;
and the information database building module is used for building the information database by adopting the all-field information table and the target information association table.
Optionally, the access registry comprises an access application ID; the association establishing module is specifically configured to:
creating a plurality of initial information association tables;
calculating a hash value corresponding to the ID of the access application;
selecting an intermediate information association table from the plurality of initial information association tables according to the hash value;
acquiring an intermediate information ID corresponding to the intermediate information table and acquiring a field information ID corresponding to the field information table;
and respectively loading the intermediate information ID, the field information ID and the access application ID into the intermediate information association table to obtain a target information association table.
Optionally, the retrieval condition map checking module 602 is specifically configured to:
when the client receives the submission instruction, the client traverses the retrieval condition graph and judges whether an unconnected target condition component exists in the retrieval condition graph;
if not, inquiring whether the attribute values which are not added exist in each target condition component;
if not, judging that the search condition graph passes the verification;
and if the target condition components which are not connected exist in the search condition diagram or the attribute values which are not added exist in any target condition component, judging that the check of the search condition diagram fails, and generating an editing prompt.
Optionally, the conditional retrieval queue generating module 603 is specifically configured to:
if the verification is judged to be passed, sending the retrieval condition graph to a back-end server through the client;
extracting connection information between every two target condition components from the retrieval condition graph through a back-end server; the target condition component includes a component node ID;
creating condition nodes corresponding to the ID of each component node and connecting according to the connection information to obtain a condition retrieval tree;
and traversing the condition retrieval tree to generate at least one condition retrieval queue.
Optionally, the conditional retrieval queue generating module 603 is further specifically configured to:
traversing each condition retrieval queue, and judging whether the same node type exists in the same condition retrieval queue or not;
if yes, deleting the condition retrieval queue, and returning a retrieval link to repeatedly prompt to the client;
if not, the condition searching queue is reserved.
Optionally, the conditional retrieval queue comprises a plurality of queue nodes, the queue nodes having queue node IDs; the information result retrieving module 604 is specifically configured to:
searching each field information table in a preset information database by using each queue node ID as a main key through a back-end server, and judging whether a first key value corresponding to the queue node ID exists or not;
if yes, obtaining a first key value from the field information table;
if not, searching the target information association table according to the field information ID corresponding to the field information table, determining the corresponding intermediate information table and acquiring a second key value from the intermediate information table according to the queue node ID;
and after all the first key values and/or the second key values are obtained, determining the intersection of all the first key values and/or the second key values to obtain the information result corresponding to the condition retrieval queue.
Optionally, the information database comprises a cache library; the information result retrieving module 604 is further configured to:
searching the cache library through the back-end server according to each condition search queue, and judging whether a cache queue identical to the condition search queue exists in the cache library or not;
if yes, obtaining a cache result corresponding to the cache queue from the cache library as an information result corresponding to the condition retrieval queue;
and if the condition searching queue does not exist, splitting the condition searching queue into a plurality of queue nodes.
An embodiment of the present invention provides an electronic device, which includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the method for interactively querying the vehicle information according to any embodiment of the present invention.
It is clear to those skilled in the art that, in order to ensure convenience and simplicity of description, the specific working processes of the system, the apparatus and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. An automobile information interaction query method is applied to an information interaction query platform, the information interaction query platform comprises a client and a back-end server, and the method comprises the following steps:
responding to the operation instruction acquired by the client, and selecting a plurality of target condition components from a condition component library to construct a retrieval condition graph;
when the client receives a submission instruction, verifying the retrieval condition graph through the client;
if the verification is judged to be passed, the retrieval condition graph is sent to the back-end server through the client, and at least one condition retrieval queue is generated through the back-end server according to the retrieval condition graph;
searching a preset information database through the back-end server according to each condition searching queue to generate information results corresponding to each condition searching queue;
and generating a result list by adopting all the information results through the back-end server and returning the result list to the client for rendering and displaying.
2. The method of claim 1, further comprising:
receiving basic information data uploaded by a plurality of automobile information terminals respectively, and creating access registration lists corresponding to the automobile information terminals respectively;
classifying the basic information data according to preset information types to obtain various intermediate information data and respectively constructing corresponding intermediate information tables;
screening the intermediate information data in each intermediate information table according to a preset field name to generate a field information table;
respectively establishing the association among the access registration table, the intermediate information table and the field information table to obtain a plurality of target information association tables;
and constructing an information database by adopting all the field information tables and the target information association table.
3. The method of claim 2, wherein the access registry comprises access application IDs; the step of establishing association among the access registration table, the intermediate information table, and the field information table, respectively, to obtain a plurality of target information association tables, includes:
creating a plurality of initial information association tables;
calculating a hash value corresponding to the access application ID;
selecting an intermediate information association table from the plurality of initial information association tables according to the hash value;
acquiring an intermediate information ID corresponding to the intermediate information table, and acquiring a field information ID corresponding to the field information table;
and respectively loading the intermediate information ID, the field information ID and the access application ID to the intermediate information association table to obtain a target information association table.
4. The method according to claim 1, wherein the step of checking the search condition map by the client when the client receives the commit instruction comprises:
when the client receives a submission instruction, the client traverses the retrieval condition graph to judge whether an unconnected target condition component exists in the retrieval condition graph;
if not, inquiring whether the target condition components have the attribute values which are not added;
if not, judging that the search condition graph passes verification;
and if the target condition components which are not connected exist in the retrieval condition diagram or the attribute values which are not added exist in any one of the target condition components, judging that the retrieval condition diagram fails to check, and generating an editing prompt.
5. The method according to claim 1, wherein the step of sending the search condition map to the backend server via the client if the check is determined to be passed, and generating at least one condition search queue according to the search condition map via the backend server comprises:
if the verification is judged to be passed, the retrieval condition graph is sent to the back-end server through the client;
extracting connection information between every two target condition components from the retrieval condition graph through the back-end server; the target condition component comprises a component node ID;
creating condition nodes corresponding to the ID of each component node and connecting according to the connection information to obtain a condition retrieval tree;
and traversing the conditional retrieval tree to generate at least one conditional retrieval queue.
6. The method of claim 5, further comprising:
traversing each condition retrieval queue, and judging whether the same node type exists in the same condition retrieval queue;
if yes, deleting the condition retrieval queue, and returning a retrieval link to repeatedly prompt the client;
if not, the condition retrieval queue is reserved.
7. The method of claim 3, wherein the conditional retrieval queue comprises a plurality of queue nodes, the queue nodes having a queue node ID; the step of searching a preset information database through the back-end server according to each condition search queue to generate information results corresponding to each condition search queue comprises the following steps:
searching each field information table in a preset information database by using each queue node ID as a main key through the back-end server, and judging whether a first key value corresponding to the queue node ID exists or not;
if yes, obtaining the first key value from the field information table;
if not, searching the target information association table according to the field information ID corresponding to the field information table, determining a corresponding intermediate information table and acquiring a second key value from the intermediate information table according to the queue node ID;
and after all the first key values and/or the second key values are obtained, determining the intersection of all the first key values and/or the second key values to obtain the information result corresponding to the condition retrieval queue.
8. The method of claim 3, wherein the database of information comprises a cache library; before the step of searching each field information table in a preset information database by using the queue node ID corresponding to each queue node as a primary key through the back-end server and judging whether a first key value corresponding to the queue node ID exists, the method further comprises the following steps:
searching the cache library through the back-end server according to each condition retrieval queue, and judging whether a cache queue identical to the condition retrieval queue exists in the cache library or not;
if yes, obtaining a cache result corresponding to the cache queue from the cache library as an information result corresponding to the condition retrieval queue;
and if the condition searching queue does not exist, splitting the condition searching queue into a plurality of queue nodes.
9. An automobile information interaction query device is applied to an information interaction query platform, the information interaction query platform comprises a client and a back-end server, and the device comprises:
the retrieval condition graph building module is used for responding to the operation instruction acquired by the client and selecting a plurality of target condition components from the condition component library to build a retrieval condition graph;
the retrieval condition graph checking module is used for checking the retrieval condition graph through the client when the client receives a submission instruction;
the condition retrieval queue generating module is used for sending the retrieval condition graph to the back-end server through the client and generating at least one condition retrieval queue according to the retrieval condition graph through the back-end server if the verification is judged to be passed;
the information result retrieval module is used for retrieving a preset information database according to each condition retrieval queue through the back-end server to generate information results corresponding to each condition retrieval queue;
and the result display module is used for generating a result list by adopting all the information results through the back-end server and returning the result list to the client for rendering and displaying.
10. An electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the computer program, when executed by the processor, causes the processor to execute the steps of the car information interaction query method according to any one of claims 1-8.
CN202111641960.2A 2021-12-29 2021-12-29 Automobile information interactive query method, device and equipment Pending CN114265985A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111641960.2A CN114265985A (en) 2021-12-29 2021-12-29 Automobile information interactive query method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111641960.2A CN114265985A (en) 2021-12-29 2021-12-29 Automobile information interactive query method, device and equipment

Publications (1)

Publication Number Publication Date
CN114265985A true CN114265985A (en) 2022-04-01

Family

ID=80831672

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111641960.2A Pending CN114265985A (en) 2021-12-29 2021-12-29 Automobile information interactive query method, device and equipment

Country Status (1)

Country Link
CN (1) CN114265985A (en)

Similar Documents

Publication Publication Date Title
CN102253936B (en) Method for recording access of user to merchandise information, search method and server
KR101419504B1 (en) System and method providing a suited shopping information by analyzing the propensity of an user
CN106844372B (en) Logistics information query method and device
US10546348B1 (en) Cleaning noise words from transaction descriptions
CN102385625B (en) The method and system of entity name matching
KR101761263B1 (en) Method and system for searching interested product and part based on image
CN107315751A (en) Multidimensional data query method and device
CN113761219A (en) Knowledge graph-based retrieval method and device, electronic equipment and storage medium
CN112988784A (en) Data query method, query statement generation method and device
CN106168961A (en) Project searching method and device and electronic equipment
US20190156442A1 (en) Generating missing attributes for deduplication process
US11907267B2 (en) User interface for frequent pattern analysis
CN117453980A (en) Metadata management, configuration page generation method, server and storage medium
CN113744002A (en) Method, device, equipment and computer readable medium for pushing information
CN114265985A (en) Automobile information interactive query method, device and equipment
CN110062112A (en) Data processing method, device, equipment and computer readable storage medium
CN115510289A (en) Data cube configuration method and device, electronic equipment and storage medium
CN114491238A (en) Recommendation method and device for position information, electronic equipment and storage medium
US20170345085A1 (en) Item location management using distributed sensors
Miłek et al. Comparative characteristics of GIS using the AHP method
CN111695000B (en) Multi-source big data loading method and system
JP2002041289A (en) Productmanagement method and system
CN115983220B (en) Report generation method and device and electronic equipment
US20210271698A1 (en) Computer-readable recording medium recording answering program, answering method, and answering device
US11709844B2 (en) Computerized smart inventory search methods and systems using classification and tagging

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination