Data loading method, device and equipment

By automatically determining the main functions and auxiliary functions in embedded applications and loading the application based on functional data, the problem of inefficient loading efficiency caused by frequent replacement of functional modules is solved, and efficient and reliable application updates and switching are achieved.

CN120335885APending Publication Date: 2025-07-18DAWNING NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510361199.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-25
Publication Date
2025-07-18

AI Technical Summary

Technical Problem

In embedded applications, application framework redundancy caused by frequent replacement of functional modules and changes in functional requirements leads to inefficient application loading.

Method used

By obtaining data loading requests, parse function files to determine the main functions and auxiliary functions, and automatically load the application based on the functional data, avoiding artificial modification or updating of code.

Benefits of technology

Improves the efficiency and reliability of application loading, reduces the possibility of exceptions during loading, and enhances the flexibility of functional templates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120335885A_ABST
    Figure CN120335885A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a data loading method, device and equipment. The method comprises the steps that a data loading request is obtained, the data loading request comprises at least one first function, the function type of each first function and the incidence relation between the first functions, and the at least one first function is a function in an application program; obtaining at least one function file corresponding to each first function; analyzing the at least one function file corresponding to each first function to obtain at least one function data corresponding to each first function; and loading the application program according to the data loading request and at least one piece of function data corresponding to each first function to obtain a target application program. And the application program loading efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technologies, and in particular, to a data loading method, apparatus, and device. Background Art

[0002] For devices with limited system resources, the required functions can be implemented through embedded applications.

[0003] In the actual application process, the functional requirements of embedded applications vary widely under the circumstances of multiple functions, multiple modules, and frequent chip replacements, which will cause the redundancy of functional modules and application frameworks to become larger and larger. To avoid a large redundancy of the application framework, when a function switch or update is required, the same application framework can be used. That is, in the same application framework, the code of each functional module is modified or updated to load an application program including new functions. In the above process, since each function switch or update requires manual modification or update of the code of each functional module, the loading efficiency of the application program is low. Summary of the Invention

[0004] The embodiments of the present application provide a data loading method, apparatus, and device to solve the problem of low loading efficiency of application programs.

[0005] In a first aspect, the embodiments of the present application provide a data acquisition method, including:

[0006] Obtain a data loading request, where the data loading request includes at least one first function, the function type of each first function, and the association relationship between the first functions, and the at least one first function is a function in the application program;

[0007] Obtain at least one function file corresponding to each first function;

[0008] Perform parsing processing on at least one function file corresponding to each first function to obtain at least one function data corresponding to each first function;

[0009] Perform loading processing on the application program according to the data loading request and at least one function data corresponding to each first function to obtain a target application program.

[0010] In a possible implementation manner, performing loading processing on the application program according to the data loading request and at least one function data corresponding to each first function to obtain a target application program includes:

[0011] Determine at least one second function and at least one third function in the at least one first function according to the function type of each first function, where the function type of the second function is a non-dependent type and the third function is a dependent type;

[0012] For any one second function, determine at least one auxiliary function corresponding to the second function in the at least one third function according to the association relationship between the first functions;

[0013] Perform a loading process on the application according to at least one auxiliary function corresponding to each second function and at least one function data corresponding to each first function, to obtain the target application.

[0014] In the embodiments of the present application, a loading process is performed on the application according to the function type and at least one function data. The main function and the auxiliary function are automatically determined, and at least one function data is obtained for processing, without the need for manual modification or update of the code of each function module, improving the efficiency of application loading.

[0015] In a possible implementation manner, performing a loading process on the application according to at least one auxiliary function corresponding to each second function and at least one function data corresponding to each first function, to obtain the target application, includes:

[0016] Among the at least one function data corresponding to each first function, obtain at least one first function data corresponding to each second function and at least one second function data corresponding to each auxiliary function;

[0017] Perform an initialization process on the application according to at least one auxiliary function corresponding to each second function, to obtain an intermediate application, where the intermediate application includes function modules corresponding to each second function and function modules corresponding to each auxiliary function;

[0018] Perform a loading process on the intermediate application according to at least one first function data corresponding to each second function and at least one second function data corresponding to each auxiliary function, to obtain the target application.

[0019] In the embodiments of the present application, an initialization process is first performed, and then a loading process is performed according to at least one function data to obtain the target application, improving the reliability of data loading.

[0020] In a possible implementation manner, performing a loading process on the intermediate application according to at least one first function data corresponding to each second function and at least one second function data corresponding to each auxiliary function, to obtain the target application, includes:

[0021] Determine the data set corresponding to each second function according to at least one first function data corresponding to each second function and at least one second function data corresponding to each auxiliary function. The data set corresponding to the second function includes at least one first function data corresponding to the second function and at least one second function data of each auxiliary function corresponding to the second function;

[0022] For the data set corresponding to any one second function, perform a loading process on the intermediate application program according to at least one first function data corresponding to the second function and at least one second function data of each auxiliary function corresponding to the second function, until the loading is completed according to the data sets corresponding to each second function, and obtain the target application program.

[0023] In the embodiments of the present application, the target application program is obtained by performing a loading process in sequence according to each main function (second function) and the auxiliary functions corresponding to each main function. There is no need for manual modification or update of the code of each function module, which improves the loading efficiency of the application program. And the loading process can be performed in sequence according to the main function and the auxiliary function, which reduces the possibility of anomalies during the loading process and improves the reliability of data loading.

[0024] In a possible implementation manner, for any one first function; perform a parsing process on at least one function file corresponding to the first function to obtain at least one function data corresponding to the first function, including:

[0025] Obtain the file format of the at least one function file;

[0026] For any one function file, determine the parsing algorithm corresponding to the function file according to the file format of the function file;

[0027] Perform a parsing process on the function file through the parsing algorithm to obtain at least one function data corresponding to the first function.

[0028] In the embodiments of the present application, before performing the loading process, perform a corresponding parsing process on the function file according to the file format of the function file, and parse at least one function file into structured data, which improves the usability of the data. And the corresponding parsing process can be performed for the file format, which improves the flexibility of file parsing.

[0029] In a possible implementation manner, the method further includes:

[0030] Obtain a data update request, where the data update request includes at least one update file;

[0031] Obtain at least one function file corresponding to the at least one update file;

[0032] Perform a matching process on the at least one update file and the at least one function file to obtain at least one target data, where the target data is the data that does not match the data corresponding to the at least one update file in the at least one function file;

[0033] Perform an update process on the at least one target data according to the at least one update file to obtain an updated function file.

[0034] In the embodiments of the present application, when performing an update process on the function template, the function template can be adapted to different functions to meet the development needs of users. The flexibility of using the function template is improved.

[0035] In a second aspect, an embodiment of the present application provides a data loading device, where the device includes:

[0036] A first acquisition module, configured to acquire a data loading request, where the data loading request includes at least one first function, the function type of each first function, and the association relationship between the first functions, and the at least one first function is a function in an application;

[0037] A second acquisition module, configured to acquire at least one function file corresponding to each first function;

[0038] A first processing module, configured to perform a parsing process on the at least one function file corresponding to each first function to obtain at least one function data corresponding to each first function;

[0039] A second processing module, configured to perform a loading process on the application according to the data loading request and the at least one function data corresponding to each first function to obtain a target application.

[0040] In a possible implementation manner, the second processing module is specifically configured to:

[0041] Determine at least one second function and at least one third function in the at least one first function according to the function type of each first function, where the function type of the second function is a non-dependent type, and the third function is a dependent type;

[0042] For any one second function, determine at least one auxiliary function corresponding to the second function in the at least one third function according to the association relationship between the first functions;

[0043] Perform a loading process on the application according to the at least one auxiliary function corresponding to each second function and the at least one function data corresponding to each first function to obtain the target application.

[0044] In a possible implementation, the second processing module is specifically configured to:

[0045] Among the at least one function data corresponding to each first function, obtain at least one first function data corresponding to each second function and at least one second function data corresponding to each auxiliary function;

[0046] According to at least one auxiliary function corresponding to each second function, perform initialization processing on the application program to obtain an intermediate application program, where the intermediate application program includes function modules corresponding to each second function and function modules corresponding to each auxiliary function;

[0047] According to at least one first function data corresponding to each second function and at least one second function data corresponding to each auxiliary function, perform loading processing on the intermediate application program to obtain the target application program.

[0048] In a possible implementation, the second processing module is specifically configured to:

[0049] According to at least one first function data corresponding to each second function and at least one second function data corresponding to each auxiliary function, determine a data set corresponding to each second function, where the data set corresponding to the second function includes at least one first function data corresponding to the second function and at least one second function data of each auxiliary function corresponding to the second function;

[0050] For the data set corresponding to any one second function, perform loading processing on the intermediate application program according to at least one first function data corresponding to the second function and at least one second function data of each auxiliary function corresponding to the second function, until the loading is completed according to the data sets corresponding to each second function, to obtain the target application program.

[0051] In a possible implementation, the first processing module is specifically configured to:

[0052] Obtain the file format of the at least one function file;

[0053] For any one function file, determine the parsing algorithm corresponding to the function file according to the file format of the function file;

[0054] Perform parsing processing on the function file through the parsing algorithm to obtain at least one function data corresponding to the first function.

[0055] In a possible implementation, the device further includes an update module.

[0056] Wherein, the update module is used to:

[0057] Obtain a data update request, where the data update request includes at least one update file;

[0058] Obtain at least one function file corresponding to the at least one update file;

[0059] Perform a matching process on the at least one update file and the at least one function file to obtain at least one target data, where the target data is the data in the at least one function file that does not match the data corresponding to the at least one update file;

[0060] Update the at least one target data according to the at least one update file to obtain an updated function file.

[0061] In a third aspect, an embodiment of the present application provides a data loading device, including:

[0062] At least one processor; and

[0063] A memory communicatively connected to the at least one processor; wherein,

[0064] The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method according to any one of the first aspect.

[0065] In a fourth aspect, an embodiment of the present application provides a non-transitory computer-readable storage medium storing computer instructions, where the computer instructions are used to cause the computer to execute the method according to any one of the first aspect.

[0066] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, and when the computer program is executed by a processor, it implements the method according to any one of the first aspect.

[0067] The data loading method, device, and equipment provided by the embodiments of the present application determine at least one first function and the association relationship between the first functions according to a data loading request, so as to determine the main function and the auxiliary function. And perform a loading process on the application program according to at least one function data corresponding to each function. When a function switch or update is required, the main function and the auxiliary function are automatically determined, and at least one function data is obtained for processing, without the need for manual modification or update of the code of each function module, improving the efficiency of application program loading. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] The accompanying drawings here are incorporated into the specification and form a part of this specification, showing embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application.

[0069] Figure 1 Schematic diagram of the application scenario provided by the embodiment of the present application;

[0070] Figure 2 Flow schematic diagram of a data loading method provided by the embodiment of the present application;

[0071] Figure 3 Process schematic diagram of obtaining a data loading request provided by the embodiment of the present application;

[0072] Figure 4 Schematic diagram of the function template provided by the embodiment of the present application;

[0073] Figure 5 Flow schematic diagram of another data loading method provided by the embodiment of the present application;

[0074] Figure 6 Process schematic diagram of data loading provided by the embodiment of the present application;

[0075] Figure 7 Schematic diagram of the structure of a data loading device provided by the embodiment of the present application;

[0076] Figure 8 Schematic diagram of the structure of another data loading device provided by the embodiment of the present application;

[0077] Figure 9 Schematic diagram of the structure of the data loading device provided by the embodiment of the present application.

[0078] Through the above-mentioned drawings, the specific embodiments of the present application have been shown, and there will be more detailed descriptions hereinafter. These drawings and textual descriptions are not intended to limit the scope of the concept of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. Detailed implementation manners

[0079] Here, the exemplary embodiments will be described in detail, and the examples are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0080] It should be noted that in this article, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, such that a process, method, article or device comprising a series of elements not only includes those elements but also includes other elements not explicitly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of additional identical elements in the process, method, article or device including such element.

[0081] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. And the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards, and corresponding operation entrances are provided for users to choose to authorize or refuse.

[0082] For ease of understanding, hereinafter, in conjunction with Figure 1 , the application scenarios applicable to the embodiments of this application will be described.

[0083] Figure 1 It is a schematic diagram of the application scenario provided by the embodiment of this application. Please refer to Figure 1 , including a data loading device 101. An embedded system and an application program are provided in the data loading device 101. To meet the needs of users, the redundancy of the function modules and the application program framework in the data loading device 101 is relatively large, and there may be multiple function modules that can implement the same type of function.

[0084] To avoid a large redundancy in the application program framework, when a function switch or update is required, the same application program framework can be used. That is, in the same application program framework, the code of each function module is modified or updated, and an application program including new functions is loaded. In the above process, since each function switch or update requires manual modification or update of the code of each function module, the loading efficiency of the application program is relatively low.

[0085] In the embodiments of this application, at least one first function and the association relationship between the first functions can be determined according to a data loading request, so as to determine the main function and the auxiliary function. And the application program is loaded and processed according to at least one function data corresponding to each function. When a function switch or update is required, the main function and the auxiliary function are automatically determined, and at least one function data is obtained for processing, without the need for manual modification or update of the code of each function module, improving the loading efficiency of the application program.

[0086] Next, the method shown in this application will be described through specific embodiments. It should be noted that the following several embodiments can exist independently or be combined with each other. For the same or similar content, it will not be repeated in different embodiments.

[0087] Figure 2 It is a schematic flowchart of a data loading method provided by an embodiment of this application. Please refer to Figure 2 , the method may include:

[0088] S201. Obtain a data loading request.

[0089] The execution subject of the embodiment of this application can be a data loading device or a data loading device set in the data loading device. The data loading device can be implemented by software or by a combination of software and hardware. The data loading device can be a terminal device, a server, etc. The terminal device can be a mobile phone, a tablet computer, a computer, etc.

[0090] The data loading request includes at least one first function, the function type of each first function, and the association relationship between the first functions. The at least one first function is a function in the application program.

[0091] The function types of the first functions are dependency types and non-dependency types. The association relationship between the first functions is used to indicate whether there are dependent functions for each first function. If a first function has no dependent function, the function type of the first function is a non-dependency type. If a first function has a dependent function, the function type of the first function is a dependency type.

[0092] For example, assume that function 1 depends on function 2 and function 2 does not depend on any function. Then it can be determined that the function type of function 1 is a dependency type and the function type of function 2 is a non-dependency type.

[0093] After the user determines that a function switch or function update of the application program is required, the user can determine at least one first function, the function type of each first function, and the association relationship between the first functions in the updated application program of the terminal device. The terminal device generates a data loading request in response to the user's operation. Among them, the updated application program is used to perform function switching or function update on the application program.

[0094] Optionally, if the application program is set in the terminal device, the terminal device generates and obtains a data loading request in response to the user's operation. If the application program is set in the data loading device, the terminal device generates a data loading request in response to the user's operation and sends the data loading request to the data loading device.

[0095] Next, in combination with Figure 3, the process of obtaining a data loading request is described. Figure 3 It is a schematic diagram of the process of obtaining a data loading request provided by an embodiment of the present application. Please refer to Figure 3 , including interface 301 to interface 302. Interface 301 to interface 302 are pages provided by the terminal device. Please refer to interface 301. The user clicks on the icon for updating the application in the main page of the terminal device. The terminal device responds to the user's click operation and displays an operation page. The operation page includes at least one drop-down selection menu corresponding to a function, at least one drop-down selection menu corresponding to a function type, and a text input box.

[0096] Please refer to interface 302. In the drop-down selection menu corresponding to function 1, it is determined that the first function is function A1. In the drop-down selection menu corresponding to function 2, it is determined that the first function is function A2. In the drop-down selection menu corresponding to function 3, it is determined that the first function is function A3. In the drop-down selection menu corresponding to function type 1, it is determined that the function type of function A1 is non-dependent type. In the drop-down selection menu corresponding to function type 2, it is determined that the function type of function A2 is dependent type. In the drop-down selection menu corresponding to function type 3, it is determined that the function type of function A3 is dependent type. The association relationship between the first functions is entered in the text input box as function A3 depends on function A2, and function A2 depends on function A1, and the OK icon is clicked. The terminal device generates a data loading request in response to the user's input selection operation. Assuming the application program is set in the data loading device, the terminal device sends a data loading request to the data loading device. The data loading request can be specifically as shown in Table 1:

[0097] Table 1

[0098]

[0099] S202. Obtain at least one function file corresponding to each first function.

[0100] At least one function file corresponding to each first function can be obtained in the storage space of the data loading device.

[0101] In the storage space of the data loading device, a function template of the application program is stored. The function template includes at least one variable and at least one file. The variable can be directly interpreted and stored by the system. For example, the variable can be temperature, humidity, etc. The file can be complex code for implementing functions such as methods or collections. For example, the function file corresponding to the first function can be stored in the corresponding dynamic library.

[0102] The function template can be divided into main functions, auxiliary functions, and infrastructure according to the function type. Among them, the infrastructure serves the main functions and auxiliary functions, and the auxiliary functions depend on and serve the main functions.

[0103] For example, the main function is file management. The auxiliary functions are file query, file transfer, configuration management, command line, etc. The infrastructure includes thread management, communication methods, queues, hash tables, red - black trees, etc.

[0104] Next, in combination with Figure 4 , the function template will be described. Figure 4 FIG. is a schematic diagram of the function template provided by the embodiment of the present application. Please refer to Figure 4 , including a function template 401. The function template 401 includes a main function and at least one auxiliary function. In the function template 401, the relevant information of the main function includes basic information, infrastructure, detailed function template, resource file list, auxiliary function 1, and auxiliary function 2. Among them, the basic information includes the name or identifier, abbreviation, short description, and detailed description of the main function. The infrastructure includes facility identifier, facility dynamic library path, and resource file list. The auxiliary function includes basic information, infrastructure, detailed function template, and function resource file list. The basic information and infrastructure in the auxiliary function are the same as the information included in the basic information and infrastructure of the main function. At least one function file corresponding to each first function can be obtained from the resource file list of the function template 401.

[0105] S203. Perform parsing processing on at least one function file corresponding to each first function to obtain at least one function data corresponding to each first function.

[0106] The at least one function file corresponding to each first function can be parsed as follows to obtain at least one function data corresponding to each first function: obtain the file format of at least one function file; for any one function file, determine the parsing algorithm corresponding to the function file according to the file format of the function file; perform parsing processing on the function file through the parsing algorithm to obtain at least one function data corresponding to the first function.

[0107] The at least one function data is in index form or list form.

[0108] The file format of at least one function file and the parsing algorithm corresponding to each file format can be set in advance and stored in the preset storage space of the data loading device.

[0109] For example, the file format of at least one function file and the parsing algorithm corresponding to each file format can be specifically as shown in Table 2:

[0110] Table 2

[0111]

[0112] Before performing the loading process, according to the file format of the function file, perform corresponding parsing processing on the function file, and parse at least one function file into structured data, which improves the availability of the data. Moreover, corresponding parsing processing can be performed according to the file format, which improves the flexibility of file parsing.

[0113] S204. Perform a loading process on the application according to the data loading request and at least one function data corresponding to each first function to obtain the target application.

[0114] The application can be loaded and processed according to the data loading request and at least one function data corresponding to each first function in the following way to obtain the target application: According to the function type of each first function, determine at least one second function and at least one third function among at least one first function. The function type of the second function is non-dependent type, and the third function is of dependent type; for any one second function, determine at least one auxiliary function corresponding to the second function among at least one third function according to the association relationship between the first functions; perform a loading process on the application according to at least one auxiliary function corresponding to each second function and at least one function data corresponding to each first function to obtain the target application.

[0115] Among at least one first function, determine the second function of non-dependent type, that is, the main function. And determine the third function of dependent type, that is, the auxiliary function. Perform a loading process on the application according to at least one function data corresponding to each second function and at least one function data of at least one auxiliary function corresponding to each second function to obtain the target application.

[0116] For example, as shown in Table 1 above, it is determined that at least one function includes Function A1, Function A2, and Function A3. The function type of Function A1 is non-dependent type, and the function types of Function A2 and Function A3 are both of dependent type. Therefore, the data loading device determines that the second function is Function A1, and at least one third function is Function A2 and Function A3. According to the association relationship shown in Table 1, it is determined that at least one auxiliary function corresponding to Function A1 is Function A2 and Function A3. The function files corresponding to each function obtained by the data loading device can be specifically as shown in Table 3:

[0117] Table 3

[0118]

[0119] The data loading device performs parsing processing on at least one function file shown in Table 3, and the function data corresponding to each function obtained can be specifically as shown in Table 4:

[0120] Table 4

[0121]

[0122] The data loading device first performs a loading process on the application program according to data A1, data A2, and data A4 to obtain the function modules corresponding to the main functions. Then, it performs a loading process on the application program according to data A3 and data A5 to obtain the function modules corresponding to the auxiliary functions. Finally, it performs a loading process on the application program according to data A6 to obtain the function modules corresponding to the auxiliary functions, thereby obtaining the target application program.

[0123] According to the function type and at least one function data, perform a loading process on the application program. Automatically determine the main function and the auxiliary functions, and obtain at least one function data for processing, without the need for manual modification or update of the code of each function module, improving the efficiency of application program loading.

[0124] The data loading method provided by the embodiment of the present application obtains a data loading request. Obtain at least one function file corresponding to each first function. Parse and process at least one function file corresponding to each first function to obtain at least one function data corresponding to each first function. Perform a loading process on the application program according to the data loading request and at least one function data corresponding to each first function to obtain the target application program. When function switching or updating is required, automatically determine the main function and the auxiliary functions, and obtain at least one function data for processing, without the need for manual modification or update of the code of each function module, improving the efficiency of application program loading.

[0125] Based on any of the above embodiments, below, in combination with Figure 5 , the detailed process of data loading will be described.

[0126] Figure 5 It is a schematic flowchart of another data loading method provided by the embodiment of the present application. Please refer to Figure 5 , this method includes:

[0127] S501. Obtain a data loading request.

[0128] It should be noted that the execution process of S501 can refer to S201, which will not be elaborated here.

[0129] S502. Obtain at least one function file corresponding to each first function.

[0130] For example, assume that the data loading request obtained by the data loading device includes 2 first functions. The data loading device obtains the function files of each first function in the resource file list of the function template. The function types of each first function, the association relationships between each first function, and the specific function files of each first function can be as shown in Table 5:

[0131] Table 5

[0132]

[0133] S503. Parse and process at least one function file corresponding to each first function to obtain at least one function data corresponding to each first function.

[0134] For example, as shown in Table 5 above, the data loading device determines the file format of each function file and the corresponding parsing algorithm, which can be specifically shown in Table 6 as follows:

[0135] Table 6

[0136]

[0137] According to Table 6, the data loading device parses and processes File B1 through Algorithm B1 and parses and processes File B2 through Algorithm B2. The at least one function data corresponding to each function file can be specifically shown in Table 7 as follows:

[0138] Table 7

[0139]

[0140] Optionally, after parsing and processing the function file, at least one function data can be verified. In this way, it is possible to avoid the situation where the application program loading is abnormal due to abnormalities in at least one function data during subsequent loading.

[0141] Verification can include at least one of the following verification methods: format verification to ensure that the data format is correct (e.g., field type, field length, etc.); integrity verification to ensure that all required fields exist and are not empty; business rule verification to ensure that the data conforms to the business logic; consistency verification to ensure that the relationships between the data are correct (e.g., whether the dependent function exists).

[0142] S504. According to the function type of each first function, determine at least one second function and at least one third function among at least one first function.

[0143] The function type of the second function is non - dependent type, and the third function is of dependent type.

[0144] For example, as shown in Table 5 above, it is determined that the function type of Function B1 is non - dependent type and the function type of Function B2 is of dependent type. Therefore, the data loading device determines that the second function is Function B1 and the third function is Function B2.

[0145] S505. For any one second function, according to the association relationship between each first function, determine at least one auxiliary function corresponding to the second function among at least one third function.

[0146] For example, as shown in Table 5 above, it is determined that function B2 depends on function B1. Therefore, the data loading device determines that the auxiliary function corresponding to function B1 is function B2.

[0147] S506. Among the at least one function data corresponding to each first function, obtain at least one first function data corresponding to each second function and at least one second function data corresponding to each auxiliary function.

[0148] For example, as shown in the above example, it is determined that the at least one function data corresponding to function B1 includes data B1 and data B2, and the at least one function data corresponding to the auxiliary function B2 is data B3.

[0149] S507. According to at least one auxiliary function corresponding to each second function, perform an initialization process on the application to obtain an intermediate application.

[0150] The intermediate application includes function modules corresponding to each second function and function modules corresponding to each auxiliary function.

[0151] The initialization process of the application can be performed according to the relevant information of the main function in the function template, including basic information, infrastructure, detailed function template, and the basic information, infrastructure, and detailed function template of the auxiliary function, to obtain an intermediate application.

[0152] For example, as shown in the above example, it is determined that the main function is function B1 and the auxiliary function is function B2. Suppose the application is Application B. The data loading device obtains the function template and performs an initialization process on Application B according to the relevant information of the main function in the function template, including basic information, infrastructure, detailed function template, and the basic information, infrastructure, and detailed function template of the auxiliary function, to obtain an intermediate application.

[0153] S508. According to at least one first function data corresponding to each second function and at least one second function data corresponding to each auxiliary function, perform a loading process on the intermediate application to obtain a target application.

[0154] The intermediate application can be loaded and processed according to at least one first function data corresponding to each second function and at least one second function data corresponding to each auxiliary function in the following manner to obtain the target application: Determine the data set corresponding to each second function according to at least one first function data corresponding to each second function and at least one second function data corresponding to each auxiliary function. The data set corresponding to the second function includes at least one first function data corresponding to the second function and at least one second function data of each auxiliary function corresponding to the second function. For any data set corresponding to a second function, load and process the intermediate application according to at least one first function data corresponding to the second function and at least one second function data of each auxiliary function corresponding to the second function until the loading is completed according to the data sets corresponding to each second function, and the target application is obtained.

[0155] For example, according to the above example, it is determined that the function data set includes data B1, data B2, and data B3. Among them, data B1 and data B2 are at least one first function data corresponding to function B1, and data B3 is the second function data of each auxiliary function corresponding to the second function. The data loading device first loads and processes the intermediate application according to data B1 and data B2, and then loads and processes the intermediate application according to data B3 to obtain the target application.

[0156] Load and process according to each main function (second function) and the auxiliary functions corresponding to each main function in sequence to obtain the target application. There is no need for manual modification or update of the code of each function module, which improves the efficiency of application loading. Moreover, it is possible to load and process in sequence according to the main function and the auxiliary function, reducing the possibility of anomalies during the loading process and improving the reliability of data loading.

[0157] During the loading process using the function template, the data loading device can also update the function template according to user settings, timing commands, etc., so that the function template is applicable to the updated functions.

[0158] The function template can be updated in the following manner: Obtain a data update request, where the data update request includes at least one update file; obtain at least one function file corresponding to the at least one update file; perform a matching process on the at least one update file and the at least one function file to obtain at least one target data, where the target data is the data in the at least one function file that does not match the data corresponding to the at least one update file; update the at least one target data according to the at least one update file to obtain an updated function file.

[0159] A user can determine at least one update file in the update application of the terminal device. In response to the user's operation, the terminal device generates a data update request. The terminal device can send the data update request to the data loading device.

[0160] After obtaining the update function file, the update function file can be stored in the function template.

[0161] For example, assume that the data update request obtained by the data loading device includes update file B11. The data loading device obtains the function file corresponding to the update file in the resource file list of the function template as file B1. The data loading device performs a matching process on at least one update file and at least one function file, and determines that the function data in file B1 that does not match file B11 is data B1. Then, data B1 can be determined as the target data. The data loading device updates data B1 according to file B11 to obtain the updated function file B10.

[0162] Performing an update process on the function template can make the function template adapt to different functions to meet the user's development needs. It improves the flexibility of using the function template.

[0163] The data loading method provided in the embodiments of the present application automatically determines the main function and the auxiliary function when a function switch or update is required, and obtains at least one function data for processing. There is no need for manual modification or update of the code of each function module, which improves the loading efficiency of the application. And it can perform loading processing in sequence according to the main function and the auxiliary function, reducing the possibility of anomalies during the loading process and improving the reliability of data loading.

[0164] Based on any of the above embodiments, below, in combination with Figure 6 , an example is given to illustrate the data loading process.

[0165] Figure 6 It is a schematic diagram of the data loading process provided in the embodiments of the present application. Please refer to Figure 6 , including a terminal device 601 and a data loading device 602. The terminal device 601 can be a mobile phone, a tablet computer, a computer, etc. The data loading device 602 can be a server, and a function template is stored in the data loading device 602. A user can determine at least one first function, the function type of each first function, and the association relationship between the first functions in the update application of the terminal device 601. In response to the user's operation, the terminal device 601 generates a data loading request. The terminal device 601 sends the data loading request to the data loading device 602. The data loading request can be specifically as shown in Table 8:

[0166] Table 8

[0167]

[0168] The data loading device 602 determines that the file formats of file C1 and file C2 are XML, and determines that the parsing algorithm corresponding to the file format is algorithm C. The data loading device 602 performs parsing processing on file C1 and file C2 through algorithm C, and obtains at least one functional data corresponding to file C1 and file C2. Specifically, it can be as shown in Table 9:

[0169] Table 9

[0170]

[0171] According to Table 8, the data loading device 602 determines that the function type of function C1 is non-dependent type, and determines that the function type of function C2 is dependent type. Therefore, the data loading device 602 determines that the second function is function C1, and determines that the third function is function C2. According to Table 8, the data loading device 602 determines that function C2 depends on function C1. Therefore, the data loading device 602 determines that the auxiliary function corresponding to function C1 is function C2. According to Table 9, the data loading device 602 determines that at least one functional data corresponding to function C1 includes data C1, and determines that at least one functional data corresponding to the auxiliary function C2 is data C2 and data C3.

[0172] The data loading device 602 obtains a function template, and performs initialization processing on the application program according to the relevant information of the main function in the function template, including basic information, infrastructure, detailed function template, and the basic information, infrastructure, and detailed function template of the auxiliary function, to obtain an intermediate application program. The data loading device 602 determines that the function data set includes data C1, data C2, and data C3. Among them, data C1 is at least one first functional data corresponding to function C1, and data C2 and data C3 are second functional data of each auxiliary function corresponding to the second function. The data loading device 602 first performs loading processing on the intermediate application program according to data C1 and data C2, and then performs loading processing on the intermediate application program according to data C3 to obtain a target application program.

[0173] In the data loading process provided by the embodiments of the present application, when function switching or updating is required, the main function and the auxiliary function are automatically determined, and at least one functional data is obtained for processing, without the need for manual modification or update of the code of each functional module, which improves the loading efficiency of the application program. And according to the main function and the auxiliary function, the loading process can be carried out in sequence, reducing the possibility of anomalies during the loading process and improving the reliability of data loading.

[0174] Figure 7 It is a schematic structural diagram of a data loading device provided by an embodiment of the present application. Please refer to Figure 7, the data loading device 10 may include:

[0175] A first acquisition module 11, configured to acquire a data loading request, where the data loading request includes at least one first function, the function type of each first function, and the association relationship between the first functions, and the at least one first function is a function in an application;

[0176] A second acquisition module 12, configured to acquire at least one function file corresponding to each first function;

[0177] A first processing module 13, configured to perform parsing processing on at least one function file corresponding to each first function to obtain at least one function data corresponding to each first function;

[0178] A second processing module 14, configured to perform loading processing on the application according to the data loading request and at least one function data corresponding to each first function to obtain a target application.

[0179] In a possible implementation manner, the second processing module 14 is specifically configured to:

[0180] Determine at least one second function and at least one third function from the at least one first function according to the function type of each first function, where the function type of the second function is a non-dependent type, and the third function is a dependent type;

[0181] For any one second function, determine at least one auxiliary function corresponding to the second function from the at least one third function according to the association relationship between the first functions;

[0182] Perform loading processing on the application according to at least one auxiliary function corresponding to each second function and at least one function data corresponding to each first function to obtain the target application.

[0183] In a possible implementation manner, the second processing module 14 is specifically configured to:

[0184] In at least one function data corresponding to each first function, acquire at least one first function data corresponding to each second function and at least one second function data corresponding to each auxiliary function;

[0185] Perform initialization processing on the application according to at least one auxiliary function corresponding to each second function to obtain an intermediate application, where the intermediate application includes function modules corresponding to each second function and function modules corresponding to each auxiliary function;

[0186] Loading the intermediate application according to at least one first function data corresponding to each second function and at least one second function data corresponding to each auxiliary function to obtain the target application.

[0187] In a possible implementation manner, the second processing module 14 is specifically configured to:

[0188] Determine a data set corresponding to each second function according to at least one first function data corresponding to each second function and at least one second function data corresponding to each auxiliary function, where the data set corresponding to the second function includes at least one first function data corresponding to the second function and at least one second function data of each auxiliary function corresponding to the second function;

[0189] For the data set corresponding to any one second function, load the intermediate application according to at least one first function data corresponding to the second function and at least one second function data of each auxiliary function corresponding to the second function until the loading is completed according to the data sets corresponding to each second function to obtain the target application.

[0190] In a possible implementation manner, the first processing module 13 is specifically configured to:

[0191] Obtain the file format of the at least one function file;

[0192] For any one function file, determine the parsing algorithm corresponding to the function file according to the file format of the function file;

[0193] Parse the function file through the parsing algorithm to obtain at least one function data corresponding to the first function.

[0194] The data loading device provided in the embodiments of the present application can execute the technical solutions shown in the above method embodiments, and its implementation principles and beneficial effects are similar, which will not be elaborated here.

[0195] Figure 8 FIG. is a schematic structural diagram of another data loading device provided in the embodiments of the present application. On the basis of the Figure 7 shown embodiment, please refer to Figure 8 , the data loading device 10 further includes an update module 15.

[0196] Among them, the update module 15 is used to:

[0197] Obtain a data update request, where the data update request includes at least one update file;

[0198] Obtain at least one function file corresponding to the at least one update file;

[0199] Perform a matching process on the at least one update file and the at least one function file to obtain at least one target data, where the target data is the data in the at least one function file that does not match the data corresponding to the at least one update file;

[0200] Update the at least one target data according to the at least one update file to obtain an updated function file.

[0201] The data loading device provided by the embodiments of the present application can execute the technical solutions shown in the above method embodiments, and its implementation principles and beneficial effects are similar, so details are not described here.

[0202] Figure 9 It is a schematic structural diagram of the data loading device provided by the embodiments of the present application. Please refer to Figure 9 , the data loading device 20 may include: a memory 21 and a processor 22. Exemplarily, the memory 21 and the processor 22 are interconnected with each other through a bus 23.

[0203] The memory 21 is used to store program instructions;

[0204] The processor 22 is used to execute the program instructions stored in the memory, so as to enable the data loading device 20 to execute the method shown in the above method embodiments.

[0205] The data loading device provided by the embodiments of the present application can execute the technical solutions shown in the above method embodiments, and its implementation principles and beneficial effects are similar, so details are not described here.

[0206] The embodiments of the present application provide a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, they are used to implement the above method.

[0207] The embodiments of the present application may also provide a computer program product, including a computer program, which when executed by a processor, can implement the above method.

[0208] All or part of the steps of the above method embodiments can be completed by hardware related to program instructions. The foregoing program can be stored in a readable memory. When the program is executed, it performs the steps including those of the above method embodiments; and the foregoing memory (storage medium) includes: read-only memory (ROM), random access memory (Random Access Memory, RAM), flash memory, hard disk, solid state drive, magnetic tape, floppy disk, optical disc, and any combination thereof.

[0209] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, and the combination of processes and / or blocks in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to the processing unit of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, so that the instructions executed by the processing unit of the computer or other programmable data processing devices generate a device for implementing the function specified in Figure 1 one process or multiple processes and / or blocks Figure 1 one block or multiple blocks.

[0210] 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, so that the instructions stored in the computer-readable memory generate a manufactured article including an instruction device, and the instruction device implements the function specified in Figure 1 one process or multiple processes and / or blocks Figure 1 one block or multiple blocks.

[0211] These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process, and thus the instructions executed on the computer or other programmable device provide steps for implementing the function specified in Figure 1 one process or multiple processes and / or blocks Figure 1 one block or multiple blocks.

[0212] Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application also intends to include these changes and modifications.

[0213] In this application, the term "including" and its variants may refer to non-limiting inclusion; the term "or" and its variants may refer to "and / or". In this application, terms such as "first" and "second" are used to distinguish similar objects and do not necessarily describe a specific order or sequence. In this application, "a plurality of" means two or more. "And / or" describes the relationship between related objects and indicates that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally indicates that the related objects before and after are in an "or" relationship.

Claims

1. A data loading method, characterized in that, Including: Obtain a data loading request, where the data loading request includes at least one first function, the function type of each first function, and the association relationship between the first functions, and the at least one first function is a function in an application program; Obtain at least one function file corresponding to each first function; Perform parsing processing on the at least one function file corresponding to each first function to obtain at least one function data corresponding to each first function; Perform loading processing on the application program according to the data loading request and the at least one function data corresponding to each first function to obtain a target application program.

2. The method according to claim 1, wherein Performing loading processing on the application program according to the data loading request and the at least one function data corresponding to each first function to obtain a target application program, including: Determine at least one second function and at least one third function among the at least one first function according to the function type of each first function, where the function type of the second function is a non-dependent type, and the third function is a dependent type; For any one second function, determine at least one auxiliary function corresponding to the second function among the at least one third function according to the association relationship between the first functions; Perform loading processing on the application program according to the at least one auxiliary function corresponding to each second function and the at least one function data corresponding to each first function to obtain the target application program.

3. The method according to claim 2, wherein Performing loading processing on the application program according to the at least one auxiliary function corresponding to each second function and the at least one function data corresponding to each first function to obtain the target application program, including: Among the at least one function data corresponding to each first function, obtain at least one first function data corresponding to each second function and at least one second function data corresponding to each auxiliary function; Perform initialization processing on the application program according to the at least one auxiliary function corresponding to each second function to obtain an intermediate application program, where the intermediate application program includes function modules corresponding to each second function and function modules corresponding to each auxiliary function; Perform loading processing on the intermediate application program according to the at least one first function data corresponding to each second function and the at least one second function data corresponding to each auxiliary function to obtain the target application program.

4. The method according to claim 3, wherein Performing loading processing on the intermediate application program according to the at least one first function data corresponding to each second function and the at least one second function data corresponding to each auxiliary function to obtain the target application program, including: Determine a data set corresponding to each second function according to the at least one first function data corresponding to each second function and the at least one second function data corresponding to each auxiliary function, where the data set corresponding to the second function includes at least one first function data corresponding to the second function and at least one second function data of each auxiliary function corresponding to the second function; For any data set corresponding to a second function, perform a loading process on the intermediate application program according to at least one first function data corresponding to the second function and at least one second function data of each auxiliary function corresponding to the second function, until the loading is completed according to the data sets corresponding to each second function, and obtain the target application program.

5. The method according to any one of claims 1-4, characterized in that, For any one first function; perform a parsing process on at least one function file corresponding to the first function to obtain at least one function data corresponding to the first function, including: Obtain the file format of the at least one function file; For any one function file, determine the parsing algorithm corresponding to the function file according to the file format of the function file; Perform a parsing process on the function file through the parsing algorithm to obtain at least one function data corresponding to the first function.

6. The method according to any one of claims 1-5, characterized in that, The method further includes: Obtain a data update request, where the data update request includes at least one update file; Obtain at least one function file corresponding to the at least one update file; Perform a matching process on the at least one update file and the at least one function file to obtain at least one target data, where the target data is data in the at least one function file that does not match the data corresponding to the at least one update file; Perform an update process on the at least one target data according to the at least one update file to obtain an updated function file.

7. A data loading device, characterized in that, The device includes: A first acquisition module, configured to acquire a data loading request, where the data loading request includes at least one first function, the function type of each first function, and the association relationship between each first function, and the at least one first function is a function in an application program; A second acquisition module, configured to acquire at least one function file corresponding to each first function; A first processing module, configured to perform a parsing process on at least one function file corresponding to each first function to obtain at least one function data corresponding to each first function; A second processing module, configured to perform a loading process on the application program according to the data loading request and at least one function data corresponding to each first function to obtain a target application program.

8. A data loading device, characterized in that, Includes: At least one processor; And A memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method according to any one of claims 1 to 6.

9. A non-transitory computer-readable storage medium storing computer instructions, characterized in that, Wherein, The computer instructions are used to cause a computer to execute the method according to any one of claims 1 to 6.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the method according to any one of claims 1 to 6.