Cross-platform data exchange method and system based on hierarchical adaptation
By adopting a data exchange method based on hierarchical adaptation in cross-platform data applications, the problems caused by cross-platform data flow and interaction differences are solved, data consistency and standardization are achieved, data accuracy and reliability are improved, and system complexity and development costs are reduced.
Patent Information
- Application Number
- CN202311614282.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-29
- Publication Date
- 2025-05-30
AI Technical Summary
In the prior art, cross-platform data applications face increased complexity and development costs caused by data flow and interaction differences, reduced data accuracy and reliability, security vulnerabilities and data leakage risks caused by differences in security authentication and authorization mechanisms, data loss or damage caused by inconsistent data management and monitoring mechanisms, and data transmission speed and stability problems caused by differences in network transmission and communication protocols.
A cross-platform data exchange method based on hierarchical adaptation is adopted. By configuring the data interfaces and verification information of different platforms, adaptation information is extracted for hierarchical tag management, a unified data exchange mechanism is established to ensure the availability, integrity and consistency of data among different platforms, reduce the risk of data misuse and abuse, and optimize network transmission and communication.
It realizes consistency and standardization of data interactions between different platforms, improves data accuracy and reliability, reduces the risk of data loss or corruption, and reduces system complexity and development costs.
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data transmission and data security protection, and particularly to a cross-platform data exchange method and system based on hierarchical adaptation. Background Art
[0002] The cross-platform data application of an information sharing service system refers to the process of data sharing and interaction between different platforms. This process usually involves issues such as data flow, data conversion, and data authorization between different platforms. In cross-platform data application, the data provider and the data requester are located in different platforms or systems respectively. To achieve data sharing and interaction, a cross-platform data application mechanism needs to be established to support the data flow and conversion between different platforms.
[0003] The cross-platform data application of an information sharing service system faces some technical problems, which may affect the performance and security of the system. First of all, cross-platform data application needs to handle the data flow and interaction between different platforms. This involves differences in data formats, data interfaces, data transmission protocols, etc. between different platforms, and data conversion and adaptation are required. This increases the complexity and development cost of the system, and may also reduce the accuracy and reliability of data. Secondly, cross-platform data application needs to perform security authentication and authorization. The security mechanisms between different platforms may be different, and cross-platform security authentication and authorization are required. This requires designing reasonable authentication and authorization mechanisms to ensure the security and privacy of data. Otherwise, the risk of security vulnerabilities and data leakage may be caused. In addition, cross-platform data application needs to perform data management and monitoring. The data management and monitoring mechanisms between different platforms may be different, and coordination and integration are required. This requires designing reasonable data management and monitoring mechanisms to ensure the availability, integrity, and consistency of data. Otherwise, it may affect the accuracy and reliability of data, and even may cause the risk of data loss or damage. Finally, cross-platform data application needs to perform network transmission and communication. The network environments and communication protocols between different platforms may be different, and network transmission and communication adaptation are required. This requires designing reasonable network transmission and communication mechanisms to ensure the transmission speed and stability of data. Otherwise, it may affect the user experience and the normal operation of the system.
[0004] It can be seen that the technical problems faced by the cross-platform data application of the information sharing service system under the existing technology may affect aspects such as the performance, security, availability, and user experience of the system, and corresponding measures need to be taken to solve and optimize them. Summary of the Invention
[0005] To address the deficiencies of the prior art, the present invention proposes a cross-platform data exchange method and system based on hierarchical adaptation, enabling consistent and standardized data interaction between different platforms, ensuring data availability, integrity, and consistency, supporting data flow and interaction between different platforms, improving data accuracy and reliability, reducing the risk of data misuse and abuse, preventing data loss or damage, and reducing system complexity and development costs.
[0006] To achieve the above objectives, the technical solutions adopted by the present invention include:
[0007] A cross-platform data exchange method based on hierarchical adaptation, characterized by comprising:
[0008] S1. Configure a first data interface for each different platform and set corresponding first verification information.
[0009] S2. Extract corresponding adaptation information based on the first data interface, use the adaptation information to match preset hierarchical exchange information, and add corresponding hierarchical labels to the platform.
[0010] S3. Establish a second data interface based on the hierarchical label, and set second verification information according to the preset hierarchical information corresponding to the hierarchical label.
[0011] S4. Obtain a data exchange request, extract the corresponding target platform and data to be exchanged according to the data exchange request, and match and obtain the hierarchical label to be operated according to the target platform.
[0012] S5. Invoke the corresponding second verification information and second data interface according to the hierarchical label to be operated, perform a first conversion operation on the data to be exchanged according to the second verification information to generate first intermediate data, and relay and send the first intermediate data using the second data interface.
[0013] S6. Perform a second conversion operation on the first intermediate data according to the first verification information to generate target data, and transmit the target data to the target platform using the first data interface.
[0014] S7. The target platform generates a data reception message to feedback the data exchange request.
[0015] Further, the preset hierarchical exchange information includes a target data format and target data items.
[0016] Further, the matching of the preset hierarchical exchange information using the adaptation information includes:
[0017] Determine whether the platform data format included in the adaptation information corresponds to the target data format;
[0018] Determine whether the platform data items included in the adaptation information correspond to the target data items.
[0019] Further, the execution of the first conversion operation on the data to be exchanged according to the second verification information includes:
[0020] Converting the data to be exchanged into a target data format;
[0021] Rearranging the data information to be exchanged according to the target data items to generate first intermediate data.
[0022] The present invention also relates to a cross-platform data exchange system based on hierarchical adaptation, which is characterized by including:
[0023] A first configuration module, configured to respectively configure first data interfaces for different platforms and set first verification information correspondingly;
[0024] A hierarchical label management module, configured to extract corresponding adaptation information according to the first data interface, match the adaptation information with preset hierarchical exchange information, and add corresponding hierarchical labels to the platform;
[0025] A second configuration module, configured to establish a second data interface according to the hierarchical label, and set second verification information according to the preset hierarchical information corresponding to the hierarchical label;
[0026] A first matching module, configured to match and obtain the hierarchical label to be operated according to the target platform;
[0027] A first conversion module, configured to call the corresponding second verification information and the second data interface according to the hierarchical label to be operated, execute a first conversion operation on the data to be exchanged according to the second verification information to generate first intermediate data, and relay and send the first intermediate data using the second data interface;
[0028] A second conversion module, configured to execute a second conversion operation on the first intermediate data according to the first verification information to generate target data, and transmit the target data to the target platform using the first data interface.
[0029] The present invention also relates to a computer-readable storage medium, which is characterized in that a computer program is stored on the storage medium, and when the computer program is executed by a processor, the above-mentioned method is implemented.
[0030] The present invention also relates to an electronic device, which is characterized by including a processor and a memory;
[0031] The memory is used to store the first verification information, the second verification information, the adaptation information, and the hierarchical label;
[0032] The processor is used to execute the above-mentioned method by calling the first verification information, the second verification information, the adaptation information, and the hierarchical label.
[0033] The present invention also relates to a computer program product, including a computer program and / or instructions, characterized in that when the computer program and / or instructions are executed by a processor, the steps of the above method are implemented.
[0034] The beneficial effects of the present invention are as follows:
[0035] By adopting the cross-platform data exchange method and system based on hierarchical adaptation according to the present invention, the data interaction between different platforms has consistency and standardization, ensuring the availability, integrity and consistency of data, supporting the data flow and interaction between different platforms, improving the accuracy and reliability of data, reducing the risk of misuse and abuse of data and preventing data loss or damage, and reducing the complexity and development cost of the system. Detailed implementation manners
[0036] In order to understand the content of the present invention more clearly, it will be described in detail in combination with embodiments.
[0037] The first aspect of the present invention relates to a cross-platform data exchange method based on hierarchical adaptation, including:
[0038] S1. Configure a first data interface for different platforms respectively and set first verification information correspondingly.
[0039] S2. Extract corresponding adaptation information according to the first data interface, use the adaptation information to match preset hierarchical exchange information and add corresponding hierarchical labels to the platform.
[0040] Preferably, the preset hierarchical exchange information includes a target data format and target data items.
[0041] Preferably, using the adaptation information to match the preset hierarchical exchange information includes: judging whether the platform data format included in the adaptation information corresponds to the target data format; judging whether the platform data items included in the adaptation information correspond to the target data items.
[0042] S3. Establish a second data interface according to the hierarchical label, and set second verification information according to the preset hierarchical information corresponding to the hierarchical label.
[0043] S4. Obtain a data exchange request, extract the corresponding target platform and data to be exchanged according to the data exchange request, and match and obtain the hierarchical label to be operated according to the target platform.
[0044] S5. Call the corresponding second verification information and second data interface according to the hierarchical label to be operated, perform a first conversion operation on the data to be exchanged according to the second verification information to generate first intermediate data, and relay and send the first intermediate data using the second data interface.
[0045] Preferably, performing a first conversion operation on the data to be exchanged according to the second verification information includes: converting the data to be exchanged into a target data format; rearranging the data information to be exchanged according to the target data items to generate first intermediate data.
[0046] S6. Perform a second conversion operation on the first intermediate data according to the first verification information to generate target data, and use the first data interface to transmit the target data to the target platform.
[0047] S7. The target platform generates data reception information to feedback the data exchange request.
[0048] Another aspect of the present invention also relates to a cross-platform data exchange system based on hierarchical adaptation, including:
[0049] A first configuration module, configured to respectively configure a first data interface for different platforms and correspondingly set first verification information;
[0050] A hierarchical label management module, configured to extract corresponding adaptation information according to the first data interface, use the adaptation information to match preset hierarchical exchange information, and add corresponding hierarchical labels to the platform;
[0051] A second configuration module, configured to establish a second data interface according to the hierarchical label, and set second verification information according to the preset hierarchical information corresponding to the hierarchical label;
[0052] A first matching module, configured to match and obtain the hierarchical label to be operated according to the target platform;
[0053] A first conversion module, configured to call the corresponding second verification information and second data interface according to the hierarchical label to be operated, perform a first conversion operation on the data to be exchanged according to the second verification information to generate first intermediate data, and relay and send the first intermediate data using the second data interface;
[0054] A second conversion module, configured to perform a second conversion operation on the first intermediate data according to the first verification information to generate target data, and use the first data interface to transmit the target data to the target platform.
[0055] By using this system, the above arithmetic processing method can be executed and the corresponding technical effects can be achieved.
[0056] An embodiment of the present invention also provides a computer-readable storage medium capable of implementing all steps in the method in the above embodiment. A computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, all steps of the method in the above embodiment are implemented.
[0057] An embodiment of the present invention further provides an electronic device for executing the above method. As an implementation device of the method, the electronic device at least includes a processor and a memory. In particular, the memory stores data and related computer programs required for executing the method, such as first verification information, second verification information, adaptation information, and hierarchical tags, etc. And all steps of the method are implemented by the processor calling the data and programs in the memory, and corresponding technical effects are obtained.
[0058] Preferably, the electronic device may include a bus architecture. The bus may include any number of interconnected buses and bridges, and the bus links various circuits including one or more processors and memories together. The bus may also link various other circuits such as peripheral devices, voltage regulators, and power management circuits, etc., which are well known in the art. Therefore, they will not be further described herein. The bus interface provides an interface between the bus and the receiver and the transmitter. The receiver and the transmitter may be the same element, i.e., a transceiver, which provides a unit for communicating with various other systems on the transmission medium. The processor is responsible for managing the bus and general processing, and the memory may be used to store data used by the processor when executing operations.
[0059] Additionally, the electronic device may further include components such as a communication module, an input unit, an audio processor, a display, a power supply, etc. The processor (or controller, operation control) it uses may include a microprocessor or other processor devices and / or logic devices. This processor receives inputs and controls the operations of the various components of the electronic device; the memory can be one or more of a buffer, flash memory, hard drive, removable medium, volatile memory, non-volatile memory, or other suitable devices, which can store the above-mentioned relevant data information. In addition, it can also store programs for executing relevant information, and the processor can execute the programs stored in this memory to achieve information storage or processing, etc.; the input unit is used to provide inputs to the processor, for example, it can be a key or a touch input device; the power supply is used to provide power to the electronic device; the display is used to display display objects such as images and texts, for example, it can be an LCD display. The communication module is a transmitter / receiver that sends and receives signals via an antenna. The communication module (transmitter / receiver) is coupled to the processor to provide input signals and receive output signals, which can be the same as in the case of a conventional mobile communication terminal. Based on different communication technologies, multiple communication modules can be provided in the same electronic device, such as a cellular network module, a Bluetooth module, and / or a wireless local area network module, etc. The communication module (transmitter / receiver) is also coupled to the speaker and the microphone via the audio processor to provide audio output via the speaker and receive audio input from the microphone, thereby realizing the usual telecommunication functions. The audio processor can include any suitable buffer, decoder, amplifier, etc. Additionally, the audio processor is also coupled to the central processor, so that it is possible to record on the device through the microphone and play the sounds stored on the device through the speaker.
[0060] Those skilled in the art should understand that the embodiments of the present invention can be provided as a method, a system, or a computer program product. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memory, CD-ROM, optical memory, etc.) containing computer-usable program code.
[0061] The present invention is described with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to embodiments of the present invention. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of flows and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, such that the instructions executed by the processor of the computer or other programmable data processing devices generate a system for implementing the functions specified in one or more flows of the flowchart and / or one or more blocks of the block diagram.
[0062] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, such that the instructions stored in the computer-readable memory generate a manufacture including an instruction system that implements the functions specified in one or more flows of the flowchart and / or one or more blocks of the block diagram.
[0063] These computer program instructions can also be loaded onto a computer or other programmable data processing device, such that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more flows of the flowchart and / or one or more blocks of the block diagram. Although the preferred embodiments of the present invention have been described, those skilled in the art can make additional changes and modifications once they learn the basic creative concepts. Therefore, the appended claims are intended to be construed to include the preferred embodiments and all changes and modifications falling within the scope of the present invention.
[0064] The above is only the preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by those skilled in the art within the technical scope disclosed by the present invention should be covered by the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.
Claims
1. A cross-platform data exchange method based on hierarchical adaptation, characterized in that, it includes: S1. Configure the first data interface for different platforms respectively and set the first verification information correspondingly; S2. Extract the corresponding adaptation information according to the first data interface, use the adaptation information to match the preset hierarchical exchange information and add the corresponding hierarchical label to the platform; S3. Establish the second data interface according to the hierarchical label, and set the second verification information according to the preset hierarchical information corresponding to the hierarchical label; S4. Obtain a data exchange request, extract the corresponding target platform and data to be exchanged according to the data exchange request, and match and obtain the hierarchical label to be operated according to the target platform; S5. Invoke the corresponding second verification information and the second data interface according to the hierarchical label to be operated, perform the first conversion operation on the data to be exchanged according to the second verification information to generate the first intermediate data, and use the second data interface to relay and send the first intermediate data; S6. Perform the second conversion operation on the first intermediate data according to the first verification information to generate the target data, and use the first data interface to transmit the target data to the target platform; S7. The target platform generates a data reception message to feedback the data exchange request.
2. The method according to claim 1, characterized in that, the preset hierarchical exchange information includes the target data format and the target data item.
3. The method according to claim 2, characterized in that, the using the adaptation information to match the preset hierarchical exchange information includes: judging whether the platform data format included in the adaptation information corresponds to the target data format; judging whether the platform data item included in the adaptation information corresponds to the target data item.
4. The method according to claim 2, characterized in that, the performing the first conversion operation on the data to be exchanged according to the second verification information includes: converting the data to be exchanged into the target data format; rearranging the data information to be exchanged according to the target data item to generate the first intermediate data.
5. A cross-platform data exchange system based on hierarchical adaptation, characterized in that, it includes: The first configuration module is used to configure the first data interface for different platforms respectively and set the first verification information correspondingly; The hierarchical label management module is used to extract the corresponding adaptation information according to the first data interface, use the adaptation information to match the preset hierarchical exchange information and add the corresponding hierarchical label to the platform; The second configuration module is used to establish the second data interface according to the hierarchical label and set the second verification information according to the preset hierarchical information corresponding to the hierarchical label; The first matching module is used to match and obtain the hierarchical label to be operated according to the target platform; The first conversion module is used to invoke the corresponding second verification information and the second data interface according to the hierarchical label to be operated, perform the first conversion operation on the data to be exchanged according to the second verification information to generate the first intermediate data, and use the second data interface to relay and send the first intermediate data; The second conversion module is used to perform the second conversion operation on the first intermediate data according to the first verification information to generate the target data, and use the first data interface to transmit the target data to the target platform.
6. A computer-readable storage medium, characterized in that, A computer program is stored on the storage medium, and when the computer program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.
7. An electronic device, characterized in that it includes a processor and a memory; the memory is used for storing first verification information, second verification information, adaptation information and hierarchical labels; the processor is used for executing the method according to any one of claims 1 to 4 by invoking the first verification information, the second verification information, the adaptation information and the hierarchical labels.
8. A computer program product, including a computer program and / or instructions, characterized in that when the computer program and / or the instructions are executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.