Structured data processing system and method in a unidirectional network
By deploying natural language processing large models and task proxy services in a one-way network, the problem of traditional data processing methods taking into account both data security and query efficiency is solved, and user-friendly structured data query and analysis are realized, ensuring data security and the integrity of the query results.
Patent Information
- Application Number
- CN202411110029.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2024-12-06
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional structured data processing methods are difficult to implement intelligent query and analysis when data security requirements are high, especially in a one-way network environment, how to ensure both data security and query efficiency has become a challenge.
Under a one-way network, by deploying natural language processing large models and task proxy services, we receive users' natural language query requests, generate database operation instructions, and issue them to non-interoperable database services through task proxy services for query operations. The results are stored Enter the preset safe location, return safely through the result back service, and display the results in combination with data analysis and visualization tools.
It realizes user-friendly structured data query and analysis in a one-way network, ensures data security and the integrity of query results, lowers the threshold for data processing, improves query efficiency, and simplifies the traditional data processing and visualization process. .
Smart Images

Figure CN118626541B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a structured data processing system and method in a unidirectional network. Background Art
[0002] With the advancement of artificial intelligence technology, especially the widespread application of large models in natural language processing and data analysis, traditional structured data processing methods face efficiency and security challenges. Especially when data security requirements are relatively high, how to achieve intelligent query and analysis of data while ensuring internal data security has become a key issue. Summary of the invention
[0003] In view of at least one of the above technical problems, an embodiment of the present invention provides a system and method for processing structured data in a unidirectional network.
[0004] According to a first aspect, an embodiment of the present invention provides a structured data processing system in a unidirectional network, comprising an external network area and an internal network area; wherein:
[0005] The external network area is deployed with a natural language processing large model, and the natural language processing large model provides an interface service; wherein the interface service is used to receive a query request in the form of a natural language input by a user on a user interface of a local device in the external network area; the natural language processing large model is used to perform intent recognition on the query request in the form of a natural language based on natural language processing technology, generate a database operation instruction, and send the database operation instruction to the task list;
[0006] The intranet area is deployed with a task proxy service, a database service and a result return service; wherein the task proxy service is used to monitor the task list, and when the database operation instruction is added to the task list, the database operation instruction is sent to the database service; the database service is used to perform a query operation according to the database operation instruction, obtain a query result, and store the query result in a preset safe location in the intranet area; the result return service is used to return the query result in the preset safe location to the interface service in the external network area; wherein the query result is structured data;
[0007] The interface service is further configured to display the query result on the user interface after receiving the query result.
[0008] In one embodiment, there are multiple database services, and each database service is not interoperable; correspondingly, the task proxy service is specifically used to: when listening to the database operation instruction added to the task list, select a target database service from each database service through a preset round-robin strategy, and distribute the database operation instruction to the target database service.
[0009] In one embodiment, the task proxy service is specifically used to implement the selection of the target database service from various database services through the preset round-robin strategy through the following steps:
[0010] A1. Initialize the polling strategy value to 0;
[0011] A2. Put the ID of each database service into the ID queue;
[0012] A3, taking the modulus of the polling strategy value and the number of each database service to obtain a modulus value;
[0013] A4. According to the module value, a unique corresponding ID is selected from the ID queue;
[0014] A5. Add 1 to the polling strategy value;
[0015] A6. Perform health detection on the database service corresponding to the selected ID;
[0016] A7. If the health detection determines that the database service corresponding to the selected ID is in an available state, the database service corresponding to the selected ID is used as the target database service;
[0017] A8. If the health detection determines that the database service corresponding to the selected ID is in an unavailable state, return to A3.
[0018] In one embodiment, the interface service also has the function of calling a tool;
[0019] Correspondingly, the interface service is also used to: after receiving the query result, call the data analysis tool, analyze and process the query result through the called data analysis tool, obtain the analysis result, and display the analysis result on the user interface.
[0020] In one embodiment, the interface service is also used to: call a visualization tool, and visualize the query results and / or the analysis results in an expected format through the called visualization tool, so that the query results and / or the analysis results are displayed on the user interface in the expected format.
[0021] In one embodiment, the external network area is also deployed with a result acquisition service;
[0022] Correspondingly, the task proxy service is further used to: after the database service stores the query result in the preset secure location in the intranet area, notify the result acquisition service in the extranet area through a secure channel;
[0023] The result acquisition service is used to obtain the query result from the preset security location of the intranet area after receiving the notification message sent by the intranet area, and forward the query result to the interface service.
[0024] According to a second aspect, a method for processing structured data in a unidirectional network provided by an embodiment of the present invention is implemented based on the system for processing structured data in a unidirectional network provided by the first aspect, and the method includes:
[0025] Receiving, through the interface service, a query request in natural language form input by a user on a user interface of a local device in an external network zone;
[0026] Using the natural language processing big model, based on the natural language processing technology, the query request in the natural language form is recognized for its intent, a database operation instruction is generated, and the database operation instruction is sent to the task list;
[0027] The task list is monitored by the task proxy service, and when the database operation instruction is added to the task list, the database operation instruction is sent to the database service;
[0028] Performing a query operation according to the database operation instruction through the database service to obtain a query result, and storing the query result in a preset secure location in the intranet area; wherein the query result is structured data;
[0029] Returning the query result at the preset safe location to the interface service in the external network area through the result return service;
[0030] The query result is displayed on the user interface through the interface service.
[0031] In one embodiment, there are multiple database services, and each database service is not interoperable;
[0032] Correspondingly, monitoring the task list through the task proxy service, and sending the database operation instruction to the database service when the database operation instruction is added to the task list, includes:
[0033] The task list is monitored by the task proxy service. When the database operation instruction is added to the task list, a target database service is selected from each database service through a preset round-robin strategy, and the database operation instruction is distributed to the target database service.
[0034] In one embodiment, the step of selecting a target database service from various database services by using a preset polling strategy includes:
[0035] A1. Initialize the polling strategy value to 0;
[0036] A2. Put the ID of each database service into the ID queue;
[0037] A3, taking the modulus of the polling strategy value and the number of each database service to obtain a modulus value;
[0038] A4. According to the module value, a unique corresponding ID is selected from the ID queue;
[0039] A5. Add 1 to the polling strategy value;
[0040] A6. Perform health detection on the database service corresponding to the selected ID;
[0041] A7. If the health detection determines that the database service corresponding to the selected ID is in an available state, the database service corresponding to the selected ID is used as the target database service;
[0042] A8. If the health detection determines that the database service corresponding to the selected ID is in an unavailable state, return to A3.
[0043] In one embodiment, the interface service also has the function of calling a tool;
[0044] Correspondingly, the method further includes:
[0045] After receiving the query result, calling the data analysis tool through the interface service;
[0046] The query result is analyzed and processed by the called data analysis tool to obtain an analysis result, and the analysis result is displayed on the user interface.
[0047] The structured data processing system and method provided by the embodiment of the present invention in a unidirectional network, the interface service receives a query request in the form of natural language input by a user on the user interface of a local device in the external network area, so that the natural language processing large model performs intent recognition on the query request in the form of natural language based on the natural language processing technology, generates a database operation instruction, and sends the database operation instruction to the task list. The task proxy service monitors the task list, and sends the database operation instruction to the database service when the database operation instruction is added to the task list. The database service performs a query operation according to the database operation instruction, obtains a query result, and stores the query result in a preset safe location in the internal network area. The result return service returns the query result at the preset safe location to the interface service in the external network area, and the interface service displays the query result on the user interface. It can be seen that the whole process is implemented based on natural language processing technology, which is very user-friendly, and the information interaction between the internal network area and the external network area is realized through the interface service, the task list, and the result return service, which is very safe for the unidirectional network. That is, the present invention ensures the data security in the database service of the intranet area and is very convenient and friendly for users to query structured data. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 It is a structural block diagram of a structured data processing system in a unidirectional network in one embodiment of the present invention;
[0049] Figure 2 It is a structural block diagram of a structured data processing system in a unidirectional network in one embodiment of the present invention;
[0050] Figure 3 The figure is a flow chart of a method for processing structured data in a unidirectional network in one embodiment of the present invention. DETAILED DESCRIPTION
[0051] In a first aspect, an embodiment of the present invention provides a structured data processing system in a unidirectional network, see Figure 1 The system includes an external network area and an internal network area; wherein:
[0052] The external network area is deployed with a natural language processing large model, and the natural language processing large model provides an interface service; wherein the interface service is used to receive a query request in the form of a natural language input by a user on a user interface of a local device in the external network area; the natural language processing large model is used to perform intent recognition on the query request in the form of a natural language based on natural language processing technology, generate a database operation instruction, and send the database operation instruction to the task list;
[0053] The intranet area is deployed with a task proxy service, a database service and a result return service; wherein the task proxy service is used to monitor the task list, and when the database operation instruction is added to the task list, the database operation instruction is sent to the database service; the database service is used to perform a query operation according to the database operation instruction, obtain a query result, and store the query result in a preset safe location in the intranet area; the result return service is used to return the query result in the preset safe location to the interface service in the external network area; wherein the query result is structured data;
[0054] The interface service is further configured to display the query result on the user interface after receiving the query result.
[0055] It can be seen that a large natural language processing model is deployed on the computer equipment in the external network area, and the large model provides interface services. Task proxy services, database services and result feedback services are deployed on the computer equipment in the internal network area.
[0056] In actual scenarios, users input natural language query requests on the user interface of a computer device in the extranet area, so that the interface service of the natural language processing big model can receive the query request and then send the query request to the natural language processing big model. The natural language processing big model parses the natural language query request based on natural language processing technology to learn the user's intention. Then, it generates a database operation instruction based on the user's intention and sends the database operation instruction to the task list.
[0057] Next, the task proxy service in the intranet area monitors the task list. When it detects that a new database operation instruction has been added to the task list, it will send the database operation instruction to the database service. The database service will perform corresponding query operations according to the database operation instruction to obtain the query results. Among them, the database service provides services such as storage and query of structured information. After obtaining the query results, the database service sends the query results to a preset secure location in the intranet area for storage. The result feedback service in the intranet area will return the query results in the preset secure location to the interface service of the natural language processing large model in the external network area. When the interface service receives the query results, it will display the query results on the user interface.
[0058] At this point, query processing of structured data in a one-way network has been realized. For users, the entire process only requires query instructions in natural language.
[0059] Understandably, a unidirectional network is a special type of network structure that allows data to flow in one direction, usually from an area with a higher security level (such as an intranet zone) to an area with a lower security level (such as an extranet zone), but does not allow reverse flow. For example, a unidirectional network of a financial institution, the intranet zone contains the financial institution's core business systems and data, such as customer databases, trading systems, risk management tools, etc., and the extranet zone contains systems that interact with customers or partners, such as websites, mobile application backends, email systems, etc. These systems need to communicate with the outside world to provide services and information, but should not expose sensitive data in the intranet zone.
[0060] The embodiment of the present invention is based on a task list and a task proxy service as a secure interface to pass requests from the external network to the internal network for processing. After processing the task, the return service is used to safely return the task result from the internal network area to the external network area. Due to the limitation of the one-way network, the return service must ensure that data can only flow in a predetermined direction, that is, from the internal network area to the external network area. This can prevent potential threats from the external network area to the internal network area, while ensuring the integrity and security of the task results.
[0061] In one embodiment, see Figure 2 There may be multiple database services, and each database service is not interoperable; correspondingly, the task proxy service is specifically used to: when the database operation instruction is added to the task list, a target database service is selected from each database service through a preset round-robin strategy, and the database operation instruction is distributed to the target database service.
[0062] That is to say, there are multiple database services in the intranet area, and these database services are not interoperable, so as to ensure the security of their respective structured data. When the task proxy service listens to the addition of database operation instructions to the task list, it can select a database service from multiple database services as the target database service through the preset polling strategy, and then send the database operation instruction to the target database service, so that the target database service can execute the database operation instruction.
[0063] It can be seen that the load of each database service can be balanced by presetting the polling strategy.
[0064] Furthermore, the task proxy service can be specifically used to implement the selection of the target database service from various database services through the preset round-robin strategy through the following steps:
[0065] A1. Initialize the polling strategy value to 0;
[0066] A2. Put the ID of each database service into the ID queue;
[0067] A3, taking the modulus of the polling strategy value and the number of each database service to obtain a modulus value;
[0068] A4. According to the module value, a unique corresponding ID is selected from the ID queue;
[0069] A5. Add 1 to the polling strategy value;
[0070] A6. Perform health detection on the database service corresponding to the selected ID;
[0071] A7. If the health detection determines that the database service corresponding to the selected ID is in an available state, the database service corresponding to the selected ID is used as the target database service;
[0072] A8. If the health detection determines that the database service corresponding to the selected ID is in an unavailable state, return to A3.
[0073] For example, the polling strategy value is i, and the initial value of i is 0. There are a total of 5 database services in the intranet area, and then the IDs of these 5 database services are placed in the ID queue. Take the modulus of 0 to 5 to get a modulus value, and then select the ID that uniquely corresponds to the modulus value in the ID queue. Update i to 1; then perform a health detection on the database service corresponding to the selected ID. If it is found that the database service corresponding to the selected ID is healthy, the database service corresponding to the selected ID is used as the target database service. If it is not healthy, take the modulus of 1 to 5 to get a modulus value, and then select the ID that uniquely corresponds to the modulus value in the ID queue. And so on, until a healthy target database service is selected.
[0074] It can be seen that polling through the above steps can not only achieve load balancing, but also ensure that the selected target database service is available, thereby avoiding the problem that the database operation service cannot be executed.
[0075] In one embodiment, see Figure 2 , the interface service may also have the function of calling a tool; correspondingly, the interface service is also used to: after receiving the query result, call the data analysis tool, analyze and process the query result by calling the data analysis tool, obtain the analysis result, and display the analysis result on the user interface.
[0076] In other words, the interface service has the ability to call tools. When the interface service receives the query results fed back by the intranet area, it calls the data analysis tool and uses the data analysis tool to analyze the query results, for example, to analyze whether there are abnormal data in the query results, to collect statistics on the query results according to different dimensions, etc. After the analysis is completed and the analysis results are obtained, the analysis results are displayed on the user interface so that users can see the analysis results, which is conducive to users to understand the data situation in a timely manner.
[0077] In one embodiment, see Figure 2 The interface service can also be used to: call a visualization tool, and visualize the query results and / or the analysis results in an expected format through the called visualization tool, so that the query results and / or the analysis results are displayed on the user interface in the expected format.
[0078] That is to say, the interface service can call the visualization tool, which converts the query results and analysis structure into visualization data in the format of graphics, tables, etc., and then displays the visualization data on the user interface.
[0079] Of course, the interface service may also have visualization capabilities itself, that is, the interface service visualizes the query results and / or the analysis results in the expected format so that the query results and / or the analysis results are displayed on the user interface in the expected format.
[0080] In one embodiment, the external network area is also deployed with a result acquisition service;
[0081] Correspondingly, the task proxy service is further used to: after the database service stores the query result in the preset secure location in the intranet area, notify the result acquisition service in the extranet area through a secure channel;
[0082] The result acquisition service is used to obtain the query result from the preset security location of the intranet area after receiving the notification message sent by the intranet area, and forward the query result to the interface service.
[0083] That is to say, in addition to using the result feedback service in the intranet area to feed back the query results to the interface service in the external network area, the query results can also be obtained from a preset secure location in the intranet area through the result acquisition service in the external network area.
[0084] Specifically, after the database service stores the query results in a preset secure location, the task proxy service will notify the result acquisition service in the external network area through a secure channel, and the result acquisition service will then obtain the query results from the preset secure location in the internal network area, and then send the obtained query results to the interface service.
[0085] In an embodiment of the present invention, in the external network area, the interface service receives the user's natural language input information, processes the input using the natural language processing capability, generates a database operation instruction, and transmits it to the task proxy service in the internal network area through a task list. The database service in the internal network area executes the task instruction, places the query result in a preset safe location, and then returns the query result in the preset safe location to the external network area. The interface service can further call data analysis tools and visualization tools to realize data analysis and visualization processing, and display the processing results to the user in the form of graphics or tables. The whole process will not cause security risks to the structured data stored in the database service, prevent the external network area from interfering with and illegally accessing the internal network area, and ensure data security. Moreover, the ability of natural language processing based on the large model can enable users to input query requests in the form of natural language, which is user-friendly, reduces the threshold for structured data query, and improves the query efficiency of users. Moreover, since the interface service can call tools to analyze and visualize the query results, etc., the process of traditional data processing and visualization is simplified. In short, the embodiment of the present invention is suitable for business systems with extremely high requirements for data processing security and efficiency.
[0086] In a second aspect, an embodiment of the present invention provides a method for processing structured data in a unidirectional network, wherein the method is implemented based on the system for processing structured data in a unidirectional network provided in the first aspect, see Figure 3 , the method includes S110~S160:
[0087] S110, receiving, through the interface service, a query request in natural language input by a user on a user interface of a local device in an external network zone;
[0088] S120, using the natural language processing big model to perform intent recognition on the query request in the natural language form based on natural language processing technology, generate a database operation instruction, and send the database operation instruction to the task list;
[0089] S130, monitoring the task list through the task proxy service, and sending the database operation instruction to the database service when the database operation instruction is added to the task list;
[0090] S140, performing a query operation according to the database operation instruction through the database service to obtain a query result, and storing the query result in a preset secure location in the intranet area; wherein the query result is structured data;
[0091] S150, returning the query result at the preset security location to the interface service in the external network zone through the result return service;
[0092] S160: Display the query result on the user interface through the interface service.
[0093] That is to say, the interface service receives a query request in natural language form input by the user on the user interface of the local device in the external network area, and then the natural language processing large model recognizes the intent of the query request in natural language form based on natural language processing technology, generates a database operation instruction, and sends the database operation instruction to the task list. When the task proxy service monitors the addition of the database operation instruction to the task list, it sends the database operation instruction to the database service. The database service performs a query operation according to the database operation instruction, obtains a query result, and stores the query result in a preset safe location in the internal network area. The result return service returns the query result at the preset safe location to the interface service in the external network area. The interface service displays the query result on the user interface.
[0094] In one embodiment, there are multiple database services, and each database service is not interoperable; correspondingly, monitoring the task list through the task proxy service, and sending the database operation instruction to the database service when the database operation instruction is added to the task list, may include:
[0095] The task list is monitored by the task proxy service. When the database operation instruction is added to the task list, a target database service is selected from each database service through a preset round-robin strategy, and the database operation instruction is distributed to the target database service.
[0096] Furthermore, selecting the target database service from various database services by using a preset round-robin strategy may include:
[0097] A1. Initialize the polling strategy value to 0;
[0098] A2. Put the ID of each database service into the ID queue;
[0099] A3, taking the modulus of the polling strategy value and the number of each database service to obtain a modulus value;
[0100] A4. According to the module value, a unique corresponding ID is selected from the ID queue;
[0101] A5. Add 1 to the polling strategy value;
[0102] A6. Perform health detection on the database service corresponding to the selected ID;
[0103] A7. If the health detection determines that the database service corresponding to the selected ID is in an available state, the database service corresponding to the selected ID is used as the target database service;
[0104] A8. If the health detection determines that the database service corresponding to the selected ID is in an unavailable state, return to A3.
[0105] In one embodiment, the interface service also has the function of calling a tool;
[0106] Correspondingly, the method may further include:
[0107] After receiving the query result, calling the data analysis tool through the interface service;
[0108] The query result is analyzed and processed by the called data analysis tool to obtain an analysis result, and the analysis result is displayed on the user interface.
[0109] In one embodiment, the interface service also has the function of calling a visualization tool;
[0110] Correspondingly, the method may further include:
[0111] The visualization tool is called through the interface service, and the query result and / or the analysis result are visualized in an expected format through the called visualization tool, so that the query result and / or the analysis result are displayed on the user interface in the expected format.
[0112] In one embodiment, the external network area is also deployed with a result acquisition service;
[0113] Correspondingly, the method may further include:
[0114] After the database service stores the query result in the preset secure location in the intranet area through the task proxy service, the result acquisition service in the extranet area is notified through a secure channel;
[0115] After receiving the notification message sent by the intranet zone, the result acquisition service acquires the query result from the preset security location of the intranet zone and forwards the query result to the interface service.
[0116] It is understandable that the explanation of the relevant contents, specific implementation methods, beneficial effects, examples, etc. in the method provided in the embodiment of the present invention can be found in the corresponding parts of the system provided in the first aspect, and will not be repeated here.
[0117] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0118] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the present invention can be implemented by hardware, software, widgets, or any combination thereof. When implemented by software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium.
[0119] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solution of the present invention should be included in the scope of protection of the present invention.
Claims
1. A structured data processing system in a unidirectional network, It is characterized in that It includes the external network area and the internal network area; among which: The external network area is deployed with a natural language processing large model, and the natural language processing large model provides an interface service; wherein the interface service is used to receive a query request in the form of a natural language input by a user on a user interface of a local device in the external network area; the natural language processing large model is used to perform intent recognition on the query request in the form of a natural language based on natural language processing technology, generate a database operation instruction, and send the database operation instruction to the task list; The intranet area is deployed with a task proxy service, a database service and a result return service; wherein the task proxy service is used to monitor the task list, and when the database operation instruction is added to the task list, the database operation instruction is sent to the database service; the database service is used to perform a query operation according to the database operation instruction, obtain a query result, and store the query result in a preset safe location in the intranet area; the result return service is used to return the query result in the preset safe location to the interface service in the external network area; wherein the query result is structured data; Wherein, the interface service is further used to display the query result on the user interface after receiving the query result; There are multiple database services, and each database service is not interoperable; Correspondingly, the task proxy service is specifically used to: when the database operation instruction is added to the task list, select a target database service from each database service through a preset round-robin strategy, and distribute the database operation instruction to the target database service; The task proxy service is specifically used to implement the selection of the target database service from various database services through the preset round-robin strategy through the following steps: A1. Initialize the polling strategy value to 0; A2. Put the ID of each database service into the ID queue; A3, taking the modulus of the polling strategy value and the number of each database service to obtain a modulus value; A4. According to the module value, a unique corresponding ID is selected from the ID queue; A5. Add 1 to the polling strategy value; A6. Perform health detection on the database service corresponding to the selected ID; A7. If the health detection determines that the database service corresponding to the selected ID is in an available state, the database service corresponding to the selected ID is used as the target database service; A8. If the health detection determines that the database service corresponding to the selected ID is in an unavailable state, return to A3.
2. The system according to claim 1, It is characterized in that The interface service also has the function of calling tools; Correspondingly, the interface service is also used to: after receiving the query result, call the data analysis tool, analyze and process the query result through the called data analysis tool, obtain the analysis result, and display the analysis result on the user interface.
3. The system according to claim 2, It is characterized in that The interface service is also used to call a visualization tool, and perform visualization processing on the query result and / or the analysis result in an expected format through the called visualization tool, so that the query result and / or the analysis result is displayed on the user interface in the expected format.
4. The system according to claim 3, It is characterized in that The external network area is also deployed with a result acquisition service; Correspondingly, the task proxy service is further used to: after the database service stores the query result in the preset secure location in the intranet area, notify the result acquisition service in the extranet area through a secure channel; The result acquisition service is used to obtain the query result from the preset security location of the intranet area after receiving the notification message sent by the intranet area, and forward the query result to the interface service.
5. A method for processing structured data in a unidirectional network. It is characterized in that The method is implemented based on the structured data processing system in a unidirectional network according to claim 1, and the method comprises: Receiving, through the interface service, a query request in natural language form input by a user on a user interface of a local device in an external network zone; Using the natural language processing big model, based on the natural language processing technology, the query request in the natural language form is recognized for its intent, a database operation instruction is generated, and the database operation instruction is sent to the task list; The task list is monitored by the task proxy service, and when the database operation instruction is added to the task list, the database operation instruction is sent to the database service; Performing a query operation according to the database operation instruction through the database service to obtain a query result, and storing the query result in a preset secure location in the intranet area; wherein the query result is structured data; Returning the query result at the preset safe location to the interface service in the external network area through the result return service; Displaying the query result on the user interface through the interface service; There are multiple database services, and each database service is not interoperable; Correspondingly, monitoring the task list through the task proxy service, and sending the database operation instruction to the database service when the database operation instruction is added to the task list, includes: The task list is monitored by the task proxy service, and when the database operation instruction is added to the task list, a target database service is selected from each database service through a preset round-robin strategy, and the database operation instruction is distributed to the target database service; The step of selecting a target database service from various database services by using a preset round-robin strategy includes: A1. Initialize the polling strategy value to 0; A2. Put the ID of each database service into the ID queue; A3, taking the modulus of the polling strategy value and the number of each database service to obtain a modulus value; A4. According to the module value, a unique corresponding ID is selected from the ID queue; A5. Add 1 to the polling strategy value; A6. Perform health detection on the database service corresponding to the selected ID; A7. If the health detection determines that the database service corresponding to the selected ID is in an available state, the database service corresponding to the selected ID is used as the target database service; A8. If the health detection determines that the database service corresponding to the selected ID is in an unavailable state, return to A3.
6. The method according to claim 5, It is characterized in that The interface service also has the function of calling tools; Correspondingly, the method further includes: After receiving the query result, calling the data analysis tool through the interface service; The query result is analyzed and processed by the called data analysis tool to obtain an analysis result, and the analysis result is displayed on the user interface.
Citation Information
Patent Citations
Method and system for artificial intelligence based content recommendation and provisioning
CN109661660A
Intelligent search system based on knowledge graph
CN114218472A
