Data sharing method for multiple data sources

By using an AI-powered adaptation engine to share data from multiple data sources, the problems of low efficiency in adapting to multiple data sources and static configuration of security policies are solved. This enables efficient and secure data sharing and adaptive capabilities, reducing operation and maintenance costs.

CN121967081APending Publication Date: 2026-05-01SHANDONG CVICSE MIDDLEWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610311882.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-03-13
Publication Date
2026-05-01

AI Technical Summary

Technical Problem

Existing multi-data source data sharing solutions suffer from several drawbacks: multi-data source adaptation relies on manual completion, resulting in low efficiency and a high risk of errors; security policies are statically configured, failing to dynamically adapt to changes in business scenarios; interface configuration and structured query statement assembly are inefficient, making it difficult to balance query efficiency and data security; and each stage operates independently, leading to overall low management efficiency.

Method used

An AI-powered adaptation engine is used to perform dual verification of interface information, generate and optimize structured query statements, and implement dynamic security strategies based on a preset security policy optimization model, forming a highly secure closed loop.

Benefits of technology

It achieves intelligent, adaptive, and highly secure data sharing across multiple data sources, improving adaptation efficiency, security, and scenario adaptability, while reducing operational barriers and maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121967081A_ABST
    Figure CN121967081A_ABST
Patent Text Reader

Abstract

The invention discloses a multi-data-source data sharing method, and relates to the technical field of computers, and the method comprises the steps: verifying interface information sent by a data sharing business party based on an artificial intelligence adaptation engine, and obtaining a target interface for multi-data-source unified data sharing by using a dual verification result; determining a target query statement template based on the artificial intelligence adaptation engine and the target interface; determining a current data sharing security policy based on a preset security policy optimization model, an artificial intelligence adaptation engine and the target interface; and when an interface access request of a target interface is received, performing security verification based on the artificial intelligence adaptation engine, the current access token and the current data sharing security policy, and if the verification is passed, determining and returning a data query result to a data sharing requester based on the artificial intelligence adaptation engine, the interface access request and the target query statement template. According to the invention, the efficiency, security and scene adaptability of data sharing of multiple data sources are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Data sharing methods from multiple data sources Technical Field

[0001] This invention relates to the field of computer technology, and in particular to a data sharing method using multiple data sources. Background Technology

[0002] In existing data sharing solutions involving multiple data sources, security is typically ensured by developing a backend system, reserving interfaces for shared data directly within the system, or configuring interfaces and data mapping relationships through visual tools, combined with encryption, desensitization, access control, and other means.

[0003] However, these solutions still have significant limitations: 1) Multi-data source adaptation relies on manual intervention. Faced with the structural differences of various databases such as Oracle and Doris, interface parameters and data mapping rules need to be manually adjusted, resulting in low adaptation efficiency and a high risk of errors; 2) Security policies are statically configured and cannot dynamically adapt to changes in business scenarios, making it difficult to balance business security and performance; 3) Interface configuration and structured query statement assembly are inefficient. Faced with complex query scenarios or high-concurrency access, it is difficult to balance query efficiency and data security; 4) Each link operates independently. Interface configuration, structured query statement generation, and security verification do not form a collaborative closed loop, requiring manual intervention and coordination, resulting in low overall management efficiency. Summary of the Invention

[0004] In view of this, the purpose of this invention is to provide a data sharing method for multiple data sources, which can solve the problems existing in the existing related data sharing schemes, realize intelligent, adaptive, and highly secure closed-loop multi-data source sharing, and improve the efficiency, security and scenario adaptability of multi-data source data sharing. The specific solution is as follows: This application provides a data sharing method for multiple data sources, including: performing dual verification on interface information sent by the data sharing business party through a visual interface based on an artificial intelligence adaptation engine, and using the corresponding dual verification results to complete the unified data sharing interface configuration for multiple data sources to obtain a target interface; wherein, the artificial intelligence adaptation engine is an intelligent processing component integrating machine learning algorithms; generating and optimizing structured query statements based on the artificial intelligence adaptation engine, the target interface, and the data source to determine a target query statement template; after obtaining the target interface, determining the current data sharing security policy based on a preset security policy optimization model, the artificial intelligence adaptation engine, and the target interface, and publishing the target interface; when receiving an interface access request corresponding to the target interface, performing security verification on the interface access request and the corresponding data sharing requester based on the artificial intelligence adaptation engine, the current access token, and the current data sharing security policy to determine the security verification result; if the security verification result indicates that the verification is successful, performing data query on the data source based on the artificial intelligence adaptation engine, the interface access request, and the target query statement template, and returning the corresponding data query result to the data sharing requester.

[0005] Optionally, the step of performing dual verification on the interface information sent by the data sharing business party through the visual interface based on the artificial intelligence adaptation engine includes: after the data sharing business party sends and configures the interface information through the visual interface, verifying whether the interface information conflicts with the existing interface in terms of path and / or name based on the artificial intelligence adaptation engine to determine the interface conflict verification result; performing parameter rationality verification on the interface information based on the artificial intelligence adaptation engine and the data source characteristic information corresponding to the data sharing business party to determine the parameter verification result; and determining the dual verification result corresponding to the interface information based on the interface conflict verification result and the parameter verification result.

[0006] Optionally, the step of using the corresponding dual verification results to complete the unified data sharing interface configuration for multiple data sources and obtain the target interface includes: if the dual verification result shows that the interface information passes verification, then based on the artificial intelligence adaptation engine, the interface information, and the data sharing requirement information, selecting the data source and database table to determine the selection result; based on the artificial intelligence adaptation engine and the selection result, filtering shared fields to determine the shared field set; and based on the artificial intelligence adaptation engine, the shared field set, and the interface information, configuring and optimizing the interface parameters to determine the target interface.

[0007] Optionally, the step of generating and optimizing structured query statements based on the AI ​​adaptation engine, the target interface, and the data source to determine the target query statement template includes: obtaining metadata of the data source based on the AI ​​adaptation engine; constructing a structured query language optimization model based on the AI ​​adaptation engine and the metadata; determining a basic structured query statement based on the response fields corresponding to the AI ​​adaptation engine and the target interface when concatenating structured query statements; determining whether to design multi-table joins or conditional filtering based on the target interface information corresponding to the target interface to determine the target judgment result; if the target judgment result indicates involvement, optimizing the statement based on the AI ​​adaptation engine, the target interface information, the basic structured query statement, and the structured query language optimization model to determine the optimized statement; performing syntax and performance verification on the optimized statement to determine the statement verification result; and determining the target query statement template based on the statement verification result.

[0008] Optionally, determining the target query statement template based on the statement validation result includes: if the statement validation result shows that the syntax and / or performance have failed the validation, then redirecting back to the step of determining the basic structured query statement based on the response fields corresponding to the artificial intelligence adaptation engine and the target interface; if the statement validation result shows that both the syntax and / or performance have passed the validation, then determining the optimized statement as the target query statement template.

[0009] Optionally, determining the current data sharing security policy based on the preset security policy optimization model, the artificial intelligence adaptation engine, and the target interface includes: performing sensitivity level analysis on the shared field set corresponding to the target interface based on the artificial intelligence adaptation engine to determine the sensitivity level analysis result; matching encryption and desensitization rules based on the preset security policy optimization model, the artificial intelligence adaptation engine, and the sensitivity level analysis result to determine the rule matching result; verifying each target encryption and desensitization rule in the rule matching result to determine the rule verification result; if the rule verification result shows that each target encryption and desensitization rule passes verification, then determining an initial blacklist and an initial whitelist based on the artificial intelligence adaptation engine and historical access data; collecting access data and security risk data from the target interface based on the preset security policy optimization model to determine the data collection result; and determining the current data sharing security policy based on the preset security policy optimization model, the data collection result, the initial blacklist, the initial whitelist, and the rule matching result.

[0010] Optionally, publishing the target interface includes: verifying the current data sharing security policy to determine the policy verification result; if the policy verification result shows that the verification is successful, then publishing the target interface.

[0011] Optionally, the step of performing security verification on the interface access request and the corresponding data sharing requester based on the AI ​​adaptation engine, the current access token, and the current data sharing security policy to determine the security verification result includes: obtaining the current access token; verifying the interface access request based on the AI ​​adaptation engine and the current access token to determine a first verification result, the interface information to be accessed, and the data sharing requester information; verifying the Internet Protocol address and access behavior based on the AI ​​adaptation engine, the blacklist / whitelist in the current data sharing security policy, the interface access request, and the data sharing requester information to determine a second verification result; performing risk detection on the request parameters based on the AI ​​adaptation engine and the interface access request to determine a risk detection result; and determining the security verification result based on the first verification result, the second verification result, and the risk detection result.

[0012] Optionally, the step of querying the data source based on the AI ​​adaptation engine, the interface access request, and the target query statement template includes: calling the target query statement template corresponding to the target interface based on the AI ​​adaptation engine; and performing a data query on the data source based on the AI ​​adaptation engine, the current access load information, the interface access request, and the target query statement template to determine the data query result.

[0013] Optionally, returning the corresponding data query result to the data sharing requester includes: verifying the data query result based on the artificial intelligence adaptation engine and the current data sharing security policy to determine the target verification result; if the target verification result indicates that the verification is successful, then encapsulating the data query result based on the response rules corresponding to the target interface to determine the encapsulated data query result; and returning the encapsulated data query result to the data sharing requester.

[0014] As can be seen, in this application, based on an artificial intelligence adaptation engine, the interface information sent by the data sharing business party through a visual interface is double-verified, and the corresponding double-verification results are used to complete the unified data sharing interface configuration for multiple data sources, thereby obtaining the target interface; wherein, the artificial intelligence adaptation engine is an intelligent processing component integrating machine learning algorithms; based on the artificial intelligence adaptation engine, the target interface, and the data source, a structured query statement is generated and optimized to determine the target query statement template; after obtaining the target interface, based on a preset security policy optimization model, the artificial intelligence adaptation engine, and the target interface, the current data sharing security policy is determined, and the target interface is published; when an interface access request corresponding to the target interface is received, based on the artificial intelligence adaptation engine, the current access token, and the current data sharing security policy, the interface access request and the corresponding data sharing requester are security verified to determine the security verification result; if the security verification result indicates that the verification is successful, then based on the artificial intelligence adaptation engine, the interface access request, and the target query statement template, data is queried from the data source, and the corresponding data query result is returned to the data sharing requester. In other words, this application firstly, based on an AI adaptation engine, double-verifies the interface information sent by the data sharing business party, and uses the double verification results to configure a unified data sharing interface for multiple data sources. Then, for the configured target interface, the target query statement template is determined based on the AI ​​adaptation engine. Next, based on a preset security policy optimization model and the AI ​​adaptation engine, the current data sharing security policy corresponding to the target interface is determined. When an interface access request is received, the interface access request is securely verified based on the AI ​​adaptation engine, the current access token, and the current data sharing security policy. If the security verification passes, a data query is performed based on the AI ​​adaptation engine, the interface access request, and the target query statement template, and the data query result is returned to the data sharing requester. This approach solves the problems existing in current data sharing solutions, achieving intelligent, adaptive, and highly secure closed-loop multi-data source sharing, and improving the efficiency, security, and scenario adaptability of multi-data source data sharing. Attached Figure Description

[0015] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0016] Figure 1 is a flowchart of a data sharing method for multiple data sources provided in this application; Figure 2 is a flowchart of a unified data sharing interface configuration for multiple data sources provided in this application; Figure 3 is a flowchart of a dual verification of interface information provided in this application; Figure 4 is a flowchart of a method for generating a target query statement template provided in this application; Figure 5 is a flowchart of a statement optimization judgment provided in this application; Figure 6 is a flowchart of a data sharing security policy configuration provided in this application; Figure 7 is a flowchart of a data sharing process provided in this application. Detailed Implementation

[0017] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0018] In existing data sharing solutions involving multiple data sources, security is typically ensured by developing backend systems that directly reserve interfaces for shared data, or by configuring interfaces and data mapping relationships through visual tools, combined with encryption, data masking, and access control. However, these solutions still have significant limitations: 1) Multi-data source adaptation relies on manual intervention. Facing structural differences in various databases such as Oracle and Doris, manual adjustments to interface parameters and data mapping rules are necessary, resulting in low adaptation efficiency and a high risk of errors; 2) Security policies are statically configured, unable to dynamically adapt to changes in business scenarios, making it difficult to balance business security and performance; 3) Interface configuration and structured query statement assembly are inefficient, making it difficult to balance query efficiency and data security in complex query scenarios or high-concurrency access; 4) Each stage operates independently, with interface configuration, structured query statement generation, and security verification failing to form a collaborative closed loop, requiring manual intervention and resulting in low overall management efficiency.

[0019] To address this, this application provides a multi-data source sharing solution that can solve the problems existing in current related data sharing solutions, achieve intelligent, adaptive, and highly secure closed-loop multi-data source sharing, and improve the efficiency, security, and scenario adaptability of multi-data source data sharing.

[0020] Referring to Figure 1, this embodiment of the invention discloses a data sharing method for multiple data sources, including: step S11, based on an artificial intelligence adaptation engine, performing dual verification on the interface information sent by the data sharing business party through a visual interface, and using the corresponding dual verification results to complete the unified data sharing interface configuration for multiple data sources and obtain the target interface; wherein, the artificial intelligence adaptation engine is an intelligent processing component integrating machine learning algorithms.

[0021] In this embodiment, since data sharing is usually achieved by encapsulating data into an HTTP interface (Hypertext Transfer Protocol), this embodiment adds AI (Artificial Intelligence) intelligent adaptation capabilities on the basis of visual configuration, which can complete the adaptation of multiple data sources and parameter optimization without manual intervention.

[0022] Referring to Figures 2 and 3, in this embodiment, firstly, the user sets basic interface information through a visual interface, such as interface name, interface version, interface path, traffic limit, request method, and return format. After setting, the AI ​​intelligent adaptation engine automatically performs dual verification on the information. On the one hand, it verifies whether the interface information conflicts with existing interfaces; on the other hand, it verifies the rationality of the parameter settings based on data source characteristics (such as database type and field structure) (e.g., avoiding mismatch between request parameters and data source field types). That is, after the data sharing business party sends and configures the interface information through the visual interface, the AI ​​adaptation engine verifies whether the interface information conflicts with existing interfaces in terms of path and / or name to determine the interface conflict verification result. Based on the AI ​​adaptation engine and the data source characteristic information corresponding to the data sharing business party, the interface information is verified for parameter rationality to determine the parameter verification result. Based on the interface conflict verification result and the parameter verification result, the dual verification result corresponding to the interface information is determined. Understandably, if the verification results show that one verification fails, the AI ​​adaptation engine will be used to provide intelligent optimization suggestions for unreasonable configurations, and the optimized interface information will be used to re-perform the dual verification process until every item in the dual verification passes.

[0023] Furthermore, after the dual verification passes, the user proceeds to the database and table selection stage. Users can manually select data sources and tables, or the AI ​​adaptation engine can automatically recommend suitable data sources and tables based on sharing requirements (such as data usage and access frequency). Subsequently, the AI ​​adaptation engine automatically filters shareable fields by analyzing the table structure, field types, and data sensitivity levels. That is, if the dual verification result indicates that the interface information has passed verification, the data source and database table are selected based on the AI ​​adaptation engine, the interface information, and the data sharing requirements to determine the selection result. Based on the AI ​​adaptation engine and the selection result, shared fields are filtered to determine the shared field set. Based on the AI ​​adaptation engine, the shared field set, and the interface information, interface parameters are configured and optimized to determine the target interface. It is understood that the shared field set will be visually presented to the user, who can further adjust and select the fields to be shared. Moreover, during the interface configuration process described above, the AI ​​adaptation engine automatically configures the filtered fields as the interface's request parameters and response data, and optimizes the parameter order and response format based on data access frequency and field relationships, thereby improving interface call efficiency.

[0024] In this way, by integrating an AI-powered adaptation engine, automatic adaptation to multiple data sources and intelligent configuration and verification of interface parameters can be achieved, overcoming the limitations of manual adaptation in existing technologies and improving the efficiency and accuracy of adaptation for sharing multiple data sources.

[0025] Step S12: Based on the artificial intelligence adaptation engine, the target interface, and the data source, generate and optimize structured query statements to determine the target query statement template.

[0026] In this embodiment, to overcome the limitations of the existing related solutions that use 'static assembly based on preset rules', an artificial intelligence adaptation engine is used to dynamically assemble and optimize SQL query statements (Structured Query Language), taking into account both query efficiency and data security.

[0027] Referring to Figures 4 and 5, firstly, the AI ​​adaptation engine comprehensively understands the structure, field types, field relationships, and data volume of each table by reading the data source metadata, while also recording the execution efficiency of historical query statements to construct an SQL optimization model. Then, this model is used to dynamically concatenate and optimize structured query statements. Specifically: based on the AI ​​adaptation engine, the metadata of the data source is obtained; based on the AI ​​adaptation engine and the metadata, a structured query language optimization model is constructed; when concatenating structured query statements, the basic structured query statement is determined based on the AI ​​adaptation engine and the response fields corresponding to the target interface; based on the target interface information corresponding to the target interface, it is determined whether to design multi-table joins or conditional filtering to determine the target judgment result; if the target judgment result indicates involvement, the statement is optimized based on the AI ​​adaptation engine, the target interface information, the basic structured query statement, and the structured query language optimization model to determine the optimized statement; the optimized statement undergoes syntax and performance verification to determine the statement verification result; based on the statement verification result, the target query statement template is determined. Furthermore, determining the target query statement template based on the statement validation result includes: if the statement validation result shows that the syntax and / or performance have failed the validation, then redirecting back to the step of determining the basic structured query statement based on the response fields corresponding to the artificial intelligence adaptation engine and the target interface; if the statement validation result shows that both the syntax and / or performance have passed the validation, then determining the optimized statement as the target query statement template.

[0028] As shown in Figure 5, when assembling the SQL statement, the AI ​​adaptation engine automatically appends the response fields from the interface to the SELECT keyword in the SQL statement, while filtering redundant fields to avoid invalid data queries. The database and table information set in the interface information is directly used to construct the part after the FROM keyword in the SQL statement. If multiple table joins are involved, the AI ​​adaptation engine automatically analyzes the relationships between tables (such as foreign key joins) and intelligently selects the optimal join method (such as inner join or left join) to avoid low query efficiency caused by multiple table joins. In addition, if the interface requires data filtering or condition setting based on request parameters, the AI ​​adaptation engine will append the request parameters to the WHERE keyword in the SQL statement based on preset rules and historical query data, while intelligently optimizing the order of conditions (such as placing conditions with a larger filtering range at the beginning) and automatically adding anti-SQL injection statements to improve query security and execution efficiency.

[0029] In this way, the AI-based dynamic SQL assembly and optimization mechanism can intelligently generate the optimal SQL statement by combining data source characteristics and query scenarios, taking into account both query efficiency and SQL injection prevention security, thus solving the drawbacks of static SQL assembly in existing related solutions.

[0030] Step S13: After obtaining the target interface, determine the current data sharing security policy based on the preset security policy optimization model, the artificial intelligence adaptation engine, and the target interface, and publish the target interface.

[0031] In this embodiment, after the unified interface configuration is completed, the backend system generates an access token. Simultaneously, an AI dynamic policy optimization model (i.e., a preset security policy optimization model) intelligently adapts and iterates the security policy to overcome the limitations of static security configurations in existing solutions, achieving scenario-based, dynamic, and refined security protection. These tokens include two key request headers: API_KEY and SECRET_KEY. API_KEY and SECRET_KEY are bound to interface information and user information, respectively, to verify the identity of the user accessing the interface, ensuring that only authorized users can access the data. API_KEY is primarily used to identify and verify the interface itself, containing a unique identifier and related configuration information. Through API_KEY, the system can identify which interface is being called, thereby invoking the corresponding services and data resources. SECRET_KEY is used to verify the user's identity information; it is an encrypted key that only authorized users can obtain. Each time a request is initiated, SECRET_KEY is matched against the user's information to ensure that the request was indeed initiated by an authorized user; if they do not match, the request is rejected.

[0032] Based on this, and referring to Figure 6, the preset security policy optimization model and artificial intelligence adaptation engine will achieve intelligent adaptation of field-level encryption and desensitization and IP access control for the target interface. Specifically: based on the artificial intelligence adaptation engine, the sensitivity level analysis of the shared field set corresponding to the target interface is performed to determine the sensitivity level analysis result; based on the preset security policy optimization model, the artificial intelligence adaptation engine, and the sensitivity level analysis result, encryption and desensitization rules are matched to determine the rule matching result; each target encryption and desensitization rule in the rule matching result is verified to determine the rule verification result; if the rule... If the verification results show that all the target encryption and desensitization rules have passed the verification, then based on the artificial intelligence adaptation engine and historical access data, an initial blacklist and an initial whitelist are determined; based on the preset security policy optimization model, access data and security risk data are collected from the target interface to determine the data collection results; based on the preset security policy optimization model, the data collection results, the initial blacklist, the initial whitelist, and the rule matching results, the current data sharing security policy is determined; the current data sharing security policy is verified to determine the policy verification result; if the policy verification result shows that the verification has passed, then the target interface is published.

[0033] Understandably, as shown in Figure 6, regarding the intelligent adaptation of field-level encryption and desensitization with IP access control: First, encryption and desensitization optimization: the AI ​​adaptation engine automatically analyzes the sensitivity level of each shared field (e.g., ID cards and bank cards are highly sensitive, names are moderately sensitive, and ordinary fields are low sensitive), and intelligently matches the optimal encryption and desensitization rules for different fields based on data usage and access scenarios—high-sensitivity fields automatically match high-strength encryption algorithms while using dynamic desensitization (e.g., displaying the first 6 and last 4 digits of an ID card), moderately sensitive fields use MD5 (Message-Digest Algorithm 5) encryption or partial desensitization, and low-sensitivity fields can be left unencrypted or BASE64 encoded as needed, without requiring manual configuration; Second, IP (Internet... Internet Protocol (IP) access control optimization: The AI ​​adaptation engine analyzes historical access data to identify trusted IP addresses and access behaviors, automatically generating initial blacklists and whitelists. At the same time, it monitors the behavior of accessing IPs in real time (such as access frequency and request content) and dynamically updates the blacklists and whitelists. High-frequency trusted IPs are automatically added to the whitelist and their access permissions are elevated, while abnormal IPs (such as multiple requests for sensitive data in a short period of time) are automatically added to the blacklist and blocked. At the same time, it pushes warning information to the administrator.

[0034] In addition, it is important to understand that the preset security policy optimization model continuously collects target interface access data and corresponding security risk data, and iteratively optimizes encryption and desensitization rules and IP access policies through machine learning algorithms. For example, when a new type of attack risk is detected in a certain type of sensitive data, the encryption algorithm of the corresponding field is automatically upgraded.

[0035] In this way, by introducing an AI dynamic policy optimization model, intelligent matching and real-time iteration of field-level encryption and desensitization rules and IP blacklists and whitelists are achieved. Security policies are dynamically adjusted according to data sensitivity levels and access behavior, thus balancing security and performance.

[0036] Step S14: When an interface access request corresponding to the target interface is received, the interface access request and the corresponding data sharing requester are subjected to security verification based on the artificial intelligence adaptation engine, the current access token and the current data sharing security policy, so as to determine the security verification result.

[0037] In this embodiment, after the target interface is published, data from multiple data sources corresponding to that interface can be shared externally. This embodiment improves the efficiency and accuracy of security verification through an AI collaborative verification mechanism, while achieving full-process monitoring. Specifically: The following steps are taken: First, the current access token is obtained. Second, based on the AI ​​adaptation engine and the current access token, the interface access request is verified to determine the first verification result, the interface information to be accessed, and the data sharing requester information. Third, based on the AI ​​adaptation engine, the blacklist and whitelist in the current data sharing security policy, the interface access request, and the data sharing requester information, the Internet Protocol address and access behavior are verified to determine the second verification result. Fourth, based on the AI ​​adaptation engine and the interface access request, risk detection of the request parameters is performed to determine the risk detection result. Finally, based on the first verification result, the second verification result, and the risk detection result, the security verification result is determined.

[0038] As shown in Figure 7, regarding AI collaborative verification and monitoring, when accessing the interface, a series of AI-driven security verification steps are first performed: The first step verifies the token (API_KEY + SECRET_KEY). The AI ​​adaptation engine quickly matches the interface and user information, while verifying the validity of the token (e.g., whether it has expired or been tampered with); the second step verifies the IP address. Combining a dynamically updated blacklist and whitelist, the AI ​​adaptation engine determines whether the accessing IP is trustworthy and analyzes whether the access behavior is abnormal (e.g., whether it exceeds the normal access frequency); an additional AI intelligent risk detection step is added to analyze whether there are any anomalies in the request parameters and request time (e.g., malicious batch requests, illegal parameters). This triple verification ensures access security.

[0039] Step S15: If the security verification result indicates that the verification is successful, then based on the artificial intelligence adaptation engine, the interface access request, and the target query statement template, perform a data query on the data source and return the corresponding data query result to the data sharing requester.

[0040] In this embodiment, it is understood that only after all security verifications are passed will the AI ​​adaptation engine, based on the information of the target interface, call the previously optimized target query statement template, and, combined with the current access load, further optimize the SQL execution plan to ensure efficient querying. Subsequently, shared data is obtained through SQL querying. The AI ​​adaptation engine performs a second verification of the query results, confirming that the data has not been tampered with and that the data anonymization conforms to the rules. Then, the data is encapsulated according to the response rules set in the interface information, and the results are returned to the requester. That is: based on the AI ​​adaptation engine, the target query statement template corresponding to the target interface is called; based on the AI ​​adaptation engine, the current access load information, the interface access request, and the target query statement template, data is queried from the data source to determine the data query results; based on the AI ​​adaptation engine and the current data sharing security policy, the data query results are verified to determine the target verification result; if the target verification result indicates that the verification is successful, the data query results are encapsulated based on the response rules corresponding to the target interface to determine the encapsulated data query results; and the encapsulated data query results are returned to the data sharing requester.

[0041] In addition, the AI ​​adaptation engine monitors the target interface's operating status in real time, including access frequency, response time, and number of verification failures. When anomalies occur (such as response timeouts or malicious attacks), it automatically triggers warnings and adjusts strategies (such as temporarily restricting access from abnormal IPs or optimizing SQL statements), achieving intelligent monitoring and adaptive adjustment throughout the entire interface sharing process.

[0042] In this way, by constructing a closed-loop AI collaboration process of "configuration-generation-security-access", intelligent verification of interface access, real-time monitoring of operating status and early warning of anomalies are achieved, reducing maintenance costs and improving system stability.

[0043] In summary, the proposed solution in this embodiment has the following beneficial effects: 1) It is compatible with multiple data sources and adapts intelligently: It supports data sharing of multiple databases such as MySQL, PostgreSQL, Oracle, SQL Server, DB2, Doris, and DM. It automatically handles the structural differences of different databases through an artificial intelligence adaptation engine, eliminating the need for manual adaptation. This solves the problem of complex integration of multiple data sources in existing technologies and improves adaptation efficiency by more than 80%.

[0044] 2) Significantly improved data security and dynamic adaptability: Breaking through the limitations of existing static security configurations, the AI ​​dynamic strategy optimization model enables intelligent matching and real-time iteration of encryption and desensitization rules and IP access policies; combined with access tokens, triple security verification, and anti-SQL injection measures, it forms a comprehensive security protection, which can avoid performance loss caused by excessive encryption and prevent new security risks. Compared with existing technologies, the risk of data leakage is greatly reduced, reaching over 90%.

[0045] 3) Easy to understand and use, lowering the operational threshold: Visual tools combined with AI intelligent recommendations and automatic configuration enable non-technical personnel to easily complete interface configuration and management without needing to deeply understand complex programming languages, database structures or encryption algorithms; AI automatic verification and optimization functions reduce human error and lower the technical threshold.

[0046] 4) Significantly improve efficiency and shorten deployment cycle: Through AI intelligent adaptation, automatic configuration, and SQL optimization, interfaces can be built quickly without the need for manual handling of tedious tasks such as multi-data source adaptation, parameter optimization, and SQL debugging. The deployment time from data to API will be shortened by more than 70%. At the same time, the AI-optimized SQL statements and interface parameters greatly improve the efficiency of interface calls by more than 30%, adapting to high-concurrency access scenarios.

[0047] 5) Strong adaptability and reduced maintenance costs: It can automatically adapt to changes in data source structure and access scenarios, dynamically adjust interface configuration, SQL statements and security policies without the need for continuous manual optimization; AI real-time monitoring and anomaly warning functions reduce manual monitoring costs, and can quickly locate and troubleshoot problems, greatly reducing overall maintenance costs by more than 60%.

[0048] 6) Form a closed-loop process and improve collaboration: Integrate the entire process of interface configuration, SQL generation, security protection and access monitoring, and realize the collaborative linkage of each link through artificial intelligence adaptation engine, solve the drawbacks of the independent operation of each link in the existing technology, and improve the overall stability and scalability of the system.

[0049] Therefore, in this embodiment, firstly, based on the artificial intelligence adaptation engine, the interface information sent by the data sharing service provider is double-verified, and the unified data sharing interface for multiple data sources is configured using the double verification results. Then, for the configured target interface, the target query statement template is determined based on the artificial intelligence adaptation engine. Next, based on the preset security policy optimization model and the artificial intelligence adaptation engine, the current data sharing security policy corresponding to the target interface is determined. When an interface access request is received, the interface access request is security-verified based on the artificial intelligence adaptation engine, the current access token, and the current data sharing security policy. If the security verification passes, a data query is performed based on the artificial intelligence adaptation engine, the interface access request, and the target query statement template, and the data query result is returned to the data sharing requester. This approach solves the problems existing in current data sharing solutions, achieving intelligent, adaptive, and highly secure closed-loop multi-data source sharing, and improving the efficiency, security, and scenario adaptability of multi-data source data sharing.

[0050] The various embodiments described in this specification are presented in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. Finally, it should be noted that relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0051] The technical solutions provided in this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the methods and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A data sharing method using multiple data sources, characterized in that, include: Based on an AI adaptation engine, the interface information sent by the data sharing business party through a visual interface is double-verified. Using the corresponding double-verification results, a unified data sharing interface configuration for multiple data sources is completed to obtain the target interface. The AI ​​adaptation engine is an intelligent processing component integrating machine learning algorithms. Based on the AI ​​adaptation engine, the target interface, and the data source, a structured query statement is generated and optimized to determine the target query statement template. After obtaining the target interface, based on a preset security policy optimization model, the AI ​​adaptation engine, and the target interface, the current data sharing security policy is determined, and the target interface is published. When an interface access request corresponding to the target interface is received, based on the AI ​​adaptation engine, the current access token, and the current data sharing security policy, the interface access request and the corresponding data sharing requester are security verified to determine the security verification result. If the security verification result indicates successful verification, data is queried from the data source based on the AI ​​adaptation engine, the interface access request, and the target query statement template, and the corresponding data query result is returned to the data sharing requester.

2. The data sharing method for multiple data sources according to claim 1, characterized in that, The method of performing dual verification on interface information sent by the data sharing business party through a visual interface based on the AI ​​adaptation engine includes: after the data sharing business party sends and configures interface information through the visual interface, verifying whether the interface information conflicts with existing interfaces in terms of path and / or name based on the AI ​​adaptation engine to determine the interface conflict verification result; performing parameter rationality verification on the interface information based on the AI ​​adaptation engine and the data source characteristic information corresponding to the data sharing business party to determine the parameter verification result; and determining the dual verification result corresponding to the interface information based on the interface conflict verification result and the parameter verification result.

3. The data sharing method for multiple data sources according to claim 1, characterized in that, The process of configuring a unified data sharing interface for multiple data sources using the corresponding dual verification results to obtain the target interface includes: if the dual verification result indicates that the interface information has passed verification, then selecting data sources and database tables based on the AI ​​adaptation engine, the interface information, and data sharing requirement information to determine the selection result; filtering shared fields based on the AI ​​adaptation engine and the selection result to determine the shared field set; and configuring and optimizing interface parameters based on the AI ​​adaptation engine, the shared field set, and the interface information to determine the target interface.

4. The data sharing method for multiple data sources according to claim 1, characterized in that, The process of generating and optimizing structured query statements based on the AI ​​adaptation engine, the target interface, and the data source to determine the target query statement template includes: obtaining metadata of the data source based on the AI ​​adaptation engine; constructing a structured query language optimization model based on the AI ​​adaptation engine and the metadata; determining a basic structured query statement based on the response fields corresponding to the AI ​​adaptation engine and the target interface when concatenating structured query statements; determining whether to design multi-table joins or conditional filtering based on the target interface information corresponding to the target interface to determine the target judgment result; if the target judgment result indicates involvement, optimizing the statement based on the AI ​​adaptation engine, the target interface information, the basic structured query statement, and the structured query language optimization model to determine the optimized statement; performing syntax and performance verification on the optimized statement to determine the statement verification result; and determining the target query statement template based on the statement verification result.

5. The data sharing method for multiple data sources according to claim 4, characterized in that, The step of determining the target query statement template based on the statement validation result includes: if the statement validation result shows that the syntax and / or performance have failed the validation, then the user is redirected back to the step of determining the basic structured query statement based on the response fields corresponding to the artificial intelligence adaptation engine and the target interface; if the statement validation result shows that both the syntax and / or performance have passed the validation, then the optimized statement is determined as the target query statement template.

6. The data sharing method for multiple data sources according to claim 3, characterized in that, The process of determining the current data sharing security policy based on the preset security policy optimization model, the artificial intelligence adaptation engine, and the target interface includes: performing sensitivity level analysis on the shared field set corresponding to the target interface based on the artificial intelligence adaptation engine to determine the sensitivity level analysis result; matching encryption and desensitization rules based on the preset security policy optimization model, the artificial intelligence adaptation engine, and the sensitivity level analysis result to determine the rule matching result; verifying each target encryption and desensitization rule in the rule matching result to determine the rule verification result; if the rule verification result shows that all target encryption and desensitization rules pass verification, then determining an initial blacklist and an initial whitelist based on the artificial intelligence adaptation engine and historical access data; collecting access data and security risk data from the target interface based on the preset security policy optimization model to determine the data collection result; and determining the current data sharing security policy based on the preset security policy optimization model, the data collection result, the initial blacklist, the initial whitelist, and the rule matching result.

7. The data sharing method for multiple data sources according to claim 5, characterized in that, Publishing the target interface includes: verifying the current data sharing security policy to determine the policy verification result; if the policy verification result shows that the verification is successful, then publishing the target interface.

8. The data sharing method for multiple data sources according to any one of claims 1 to 7, characterized in that, The process of performing security verification on the interface access request and the corresponding data sharing requester based on the AI ​​adaptation engine, the current access token, and the current data sharing security policy to determine the security verification result includes: obtaining the current access token; verifying the interface access request based on the AI ​​adaptation engine and the current access token to determine a first verification result, the interface information to be accessed, and the data sharing requester information; verifying the Internet Protocol address and access behavior based on the AI ​​adaptation engine, the blacklist / whitelist in the current data sharing security policy, the interface access request, and the data sharing requester information to determine a second verification result; performing risk detection on the request parameters based on the AI ​​adaptation engine and the interface access request to determine a risk detection result; and determining the security verification result based on the first verification result, the second verification result, and the risk detection result.

9. The data sharing method for multiple data sources according to claim 1, characterized in that, The step of querying the data source based on the AI ​​adaptation engine, the interface access request, and the target query statement template includes: calling the target query statement template corresponding to the target interface based on the AI ​​adaptation engine; and performing a data query on the data source based on the AI ​​adaptation engine, current access load information, the interface access request, and the target query statement template to determine the data query result.

10. The data sharing method for multiple data sources according to claim 9, characterized in that, The step of returning the corresponding data query result to the data sharing requester includes: verifying the data query result based on the artificial intelligence adaptation engine and the current data sharing security policy to determine the target verification result; if the target verification result indicates that the verification is successful, then encapsulating the data query result based on the response rules corresponding to the target interface to determine the encapsulated data query result; and returning the encapsulated data query result to the data sharing requester.