A data transmission method and system

The data access protocol converter converts user requests into query instructions and establishes a point-to-point transmission protocol, which solves the compatibility problem of Hyrax docking with HDFS, simplifies the data storage and management process, and improves data transmission efficiency and reliability.

CN113992693BActive Publication Date: 2024-09-20COMP NETWORK INFORMATION CENT CHINESE ACADEMY OF SCI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111233500.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-22
Publication Date
2024-09-20
Estimated Expiration
2041-10-22

AI Technical Summary

Technical Problem

Hyrax does not support docking with HDFS, which results in cumbersome index updates during data storage and management, high system resource usage, and reduced data sharing efficiency.

Method used

The user's data access request is converted into query instructions through the data access protocol converter, a point-to-point transmission protocol is established, and the query results are obtained and processed directly on HDFS, which solves the compatibility problem of Hyrax docking with HDFS and simplifies the data storage and management process.

Benefits of technology

It achieves convenient access and management of HDFS, reduces the difficulty of data sharing, and improves the efficiency and reliability of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113992693B
    Figure CN113992693B
Patent Text Reader

Abstract

The present invention relates to a data transmission method and system. The data transmission method comprises: a user client sends a data access request to a data access protocol converter; the data access protocol converter converts the data access request into a query instruction, and sends the query instruction to a back-end program client; the back-end program client sends the query instruction to a back-end program server; the back-end program server obtains the query result in a distributed file system according to the query instruction, and sends the query result to the back-end program client; the back-end program client performs protocol conversion processing on the query result to obtain a processing result; and sends the processing result to the user client. The present invention proposes a data transmission method and system, which can make data storage and management more convenient and reduce the difficulty of data sharing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer application technology, and more specifically, to a data transmission method and system. Background Art

[0002] Atmospheric science data are mostly stored in Network Common Data Form (NetCDF) or Hierarchical Data Format (HDF). As a self-describing binary data format, this type of file is mostly used for grid data storage in atmospheric science. With the improvement of the accuracy of various meteorological or ocean numerical models and the increase in observation methods and observation points, the volume of atmospheric science data is showing a growing trend. Therefore, data storage needs to provide sufficient and highly scalable storage environment for atmospheric environmental data, and provide reliable redundant backup strategies for data. On the other hand, since NetCDF and HDF files provide a very flexible framework, their formats can be defined by users according to their needs, and the lack of uniformity between data increases the difficulty of transmission and sharing.

[0003] Hadoop is a very successful distributed system framework in the industrial field. It is an open source implementation of the Java version of Google's file system (Google File System, GFS). Hadoop has reliable solutions for data redundancy backup, distributed cluster node management, load balancing and other issues. The framework contains two important components, one of which is the Hadoop Distributed File System (Hadoop Distributed File System, HDFS).

[0004] The open-source project for a Network Data Access Protocol (OPeNDAP) is a data transmission protocol widely used in the field of atmospheric science and is an extension of the HTTP protocol. Structured numerical data stored in cloud or local HDF, NetCDF and other data files can be accessed online through the Internet through this protocol. OPeNDAP establishes a common data model (CDM) for structured numerical data, which can improve the efficiency and flexibility of data access to data at specific time and space points in the data set.

[0005] The OPeNDAP research organization has developed a parsing program for the protocol, Hyrax. However, Hyrax does not support docking with HDFS. Although the back-end program server (BES) provides an interface for accessing the remote file system, its front-end service (OLFS) does not have a clear interface for users to access the remote file system. In addition, Hyrax needs to index the data directory. For remote file systems, an XML-formatted index file needs to be added to each directory of the original data to indicate the content in the current directory, so that OLFS can correctly return the data source directory page. In other words, when there are file additions and deletions in the file system, these index files need to be dynamically updated. However, in order to avoid problems caused by concurrent writing, HDFS does not support file modification, so it can only be updated by deleting old indexes and adding new indexes. Frequent file operations will lead to frequent index addition and deletion operations, which are very cumbersome and occupy system resources and reduce efficiency. Summary of the invention

[0006] In order to solve the above problems, the present application proposes a data transmission method and system.

[0007] In a first aspect, the present application provides a data transmission method, the transmission method comprising:

[0008] The user client sends a data access request to the Data Access Protocol (DAP) converter;

[0009] The DAP converter converts the data access request into a query instruction, and sends the query instruction to a back-end program (Back End Server, BES) client;

[0010] The BES client sends the query instruction to the BES server; the BES server obtains the query result in HDFS according to the query instruction, and sends the query result to the BES client;

[0011] The BES client performs protocol conversion processing on the query result to obtain a processing result;

[0012] The processing result is sent to the user client.

[0013] Preferably, the DAP converter converts the data access request into a query instruction including:

[0014] The data access request is parsed to obtain several parameters in the data access request; the query instruction is generated according to the several parameters in accordance with the specified grammatical rules; the query instruction includes a query instruction fragment corresponding to each parameter in the several parameters.

[0015] Preferably, the BES client sends the query instruction to the BES server; the BES server obtains the query result according to the query instruction, and sends the query result to the BES client, including:

[0016] The BES client establishes a point-to-point transmission protocol with the BES server;

[0017] The BES client sends the query instruction to the BES server via the point-to-point transmission protocol;

[0018] The BES server obtains the query result according to the query instruction, and sends the query result to the BES client;

[0019] The BES client receives and processes the query result.

[0020] Preferably, the BES client and the BES server establish a point-to-point transmission protocol including:

[0021] The BES client sends a transmission control protocol connection request to the BES server;

[0022] The BES server accepts the request and establishes a transmission control protocol connection;

[0023] The BES client sends a connection request to the BES server to apply for establishing a point-to-point transmission protocol; wherein the connection request includes an identifier representing a request for a point-to-point protocol connection;

[0024] The BES server receives the connection request and returns an identifier to the BES client to determine the request result.

[0025] In a second aspect, the present application provides a data transmission system, the transmission system comprising:

[0026] A user client, used to send a data access request to the DAP converter;

[0027] A DAP converter, used for converting the data access request into a query instruction, and sending the query instruction to the BES client;

[0028] BES client, used to send the query instruction to the BES server;

[0029] A BES server is used to obtain query results according to the query instruction and send the query results to the BES client;

[0030] The BES client is also used to perform protocol conversion processing on the query result to obtain a processing result;

[0031] The DAP converter is also used to send the processing result to the user client.

[0032] Preferably, converting the data access request into a query instruction comprises:

[0033] The data access request is parsed to obtain several parameters in the data access request; the query instruction is generated according to the several parameters in accordance with the specified grammatical rules; the query instruction includes a query instruction fragment corresponding to each parameter in the several parameters.

[0034] Preferably, the BES client sends the query instruction to the BES server; the BES server obtains the query result according to the query instruction, and sends the query result to the BES client, including:

[0035] The BES client establishes a point-to-point transmission protocol with the BES server;

[0036] The BES client sends the query instruction to the BES server via the point-to-point transmission protocol;

[0037] The BES server obtains the query result according to the query instruction, and sends the query result to the BES client;

[0038] The BES client receives and processes the query result.

[0039] Preferably, the BES client and the BES server establish a point-to-point transmission protocol including:

[0040] The BES client sends a transmission control protocol connection request to the BES server;

[0041] The BES server accepts the request and establishes a transmission control protocol connection;

[0042] The BES client sends a connection request to the server to apply for establishing a point-to-point transmission protocol; wherein the connection request includes an identifier representing the request for a point-to-point protocol connection;

[0043] The BES server receives the connection request and returns an identifier to the BES client to determine the request result.

[0044] In a third aspect, the present application provides a computing device, comprising a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, a pipeline digital management method is executed.

[0045] In a fourth aspect, the present application provides a computer-readable storage medium, comprising computer-readable instructions, which, when a computer reads and executes the computer-readable instructions, enables the computer to execute a pipeline digital management method.

[0046] The present invention proposes a data transmission method and system, which solves the problem that Hyrax does not support docking with HDFS, can make data storage and management more convenient, and reduce the difficulty of data sharing.

[0047] Description of the attached drawings

[0048] In order to more clearly illustrate the technical solutions of the embodiments of this specification, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0049] Figure 1 This is a schematic diagram of the application of the technical solution provided in the embodiments of the present application;

[0050] Figure 2 A schematic diagram of the method provided in the embodiments of the present application;

[0051] Figure 3 A schematic diagram of a data access protocol converter provided in an embodiment of the present application;

[0052] Figure 4 A schematic diagram of a system provided in an embodiment of the present application;

[0053] Figure 5 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0055] To facilitate understanding of the embodiments of the present invention, specific embodiments will be further explained below in conjunction with the accompanying drawings. The embodiments do not constitute a limitation on the embodiments of the present invention.

[0056] Figure 1 This is a schematic diagram of the application of the technical solution provided in the embodiment of this application. Figure 1 As shown, the user can input the data to be queried. The query method of this solution can combine the OPeNDAP protocol and HDFS through the two interfaces of dap and gateway, and can query the data stored on HDFS. In addition, it should be noted that in this application, the atmospheric environment data is mainly used as an example for description. It can be understood that the atmospheric environment data can be equivalently replaced by data in various other possible business scenarios.

[0057] Figure 2 Schematic diagram of the method provided in the embodiment of this application. Figure 2 As shown, in a possible embodiment, the data transmission method of the present application includes:

[0058] S201: The user client sends a data access request to the DAP converter.

[0059] In a possible implementation, the data access request sent by the user client to the DAP converter is a URL request. The specific format is:

[0060] http: / / <hostname> : <port> / <space> / <path> . <type> ? <constraints>

[0061] Among them, hostname identifies the requested IP address, port identifies the requested port, space identifies the data access method, which can include local access and remote access, path identifies the access path of atmospheric science data on HDFS, and constraints identifies the parameters required to perform the operation.

[0062] For example, a request format sent by a user client can be specifically exemplified as follows:

[0063] http: / / 192.168.1.1:10000 / gateway / nc / data / hello.nc.nc?pm25[0:1:443][0:1:381]

[0064] Among them, 192.168.1.1 corresponds to the format <hostname>; 10000 corresponds to the format <port>; Gateway corresponds to the format <space>; / nc / data / hello.nc corresponds to the format <path>;.nc corresponds to the format <type>;pm25[0:1:443][0:1:381] corresponds to the format <constraints>This request means: remotely access the hello.nc file in the directory / nc / data on HDFS and extract all data in the range [0,441][0,381] in the pm25 variable.

[0065] S202: The DAP converter converts the data access request into a query instruction, and sends the query instruction to the BES client;

[0066] Figure 3 This is a schematic diagram of a DAP converter provided in an embodiment of the present application. Please refer to Figure 3 In a possible implementation manner, the DAP converter converts the data access request into a query instruction including:

[0067] The data access request is parsed by a URL parser to obtain several parameters in the data access request; a query instruction is generated according to the several parameters and in accordance with the prescribed grammatical rules; the query instruction includes a query instruction fragment corresponding to each of the several parameters. The generated query instruction is in XML format.

[0068] For example, convert a specific request http: / / 192.168.1.1:10000 / gateway / nc / data / hello.nc.nc?pm25[0:1:443][0:1:381] into a query instruction, and the query instruction part generated is in the following format:

[0069]

[0070] Wherein, gateway corresponds to space = "gateway" in the instruction;

[0071] / nc / data / hello.nc corresponds to the resourceID in the instruction;

[0072] .nc corresponds to the returnType in the command;

[0073] pm25[1:0:443][1:0:381] corresponds to the constraintExpression in the instruction.

[0074] The above command means: remotely access the hello.nc file in the directory / nc / data on HDFS, extract all data in the range [0,441][0,381] in the pm25 variable, and return it in the format of a netcdf file.

[0075] S203: The BES client sends a query instruction to the BES server; the BES server obtains the query result on the HDFS according to the query instruction, and sends the query result to the BES client.

[0076] The BES client sends the query instruction in XML format to the BES server. The BES server first accesses the hello.nc file through Gateway according to the resourceID in the query instruction, then extracts the data to be queried according to the constraintExpression, converts the extracted data into the data format .nc corresponding to the returnType, generates the query results, and returns the query results to the BES client.

[0077] Specifically, the BES server obtains the query results in HDFS according to the query instructions. This application can access and obtain files on HDFS through an HTTP request in the following format:

[0078] http: / / <hostname> : <port> / <operation> / <path> ? <params>,

[0079] Among them, hostname represents the host path of HDFS, port represents the port of HDFS, operarion represents the access operation, the parameters include download (representing obtaining data) and upload (representing uploading data), path represents the access path of atmospheric environment data on HDFS, and params represents the parameters required to perform the operation.

[0080] The Gateway interface is used to process the request. The Gateway interface includes Routers, Services, and HDFS clients. Routers are responsible for distributing requests, Services are responsible for parsing parameters and sending them to the HDFS client, and the HDFS client is responsible for receiving parameters and responding according to the parameters, and returning the response results to the BES server.

[0081] In a possible implementation, the BES client sends a query instruction to the BES server including:

[0082] S2031: The BES client establishes a point-to-point transmission protocol with the BES server.

[0083] The BES server is an independently running service program of C / S architecture. After running, it waits to receive the query instruction sent by the BES client, queries the data according to the query instruction and returns the query result to the BES client.

[0084] In a more specific embodiment, the BES client and the BES server establish a point-to-point transmission protocol including:

[0085] S20311: The BES client sends a transmission control protocol connection request to the BES server.

[0086] S20312: The BES server accepts the request and a transmission control protocol connection is established.

[0087] In a more specific embodiment, the BES server sets the SSL security protocol and encrypted transmission, and the BES server requires the BES client to provide verification information. When the verification information is passed, the transmission control protocol connection is established. When the verification information connection times out or the verification fails, the BES client will exit directly, and the transmission control protocol connection establishment fails.

[0088] S20313: The BES client sends a connection request to the BES server to apply for establishing a point-to-point transmission protocol; wherein the connection request includes an identifier representing the request for a point-to-point protocol connection. Table 1 shows the information and description of the identifier.

[0089] Table 1

[0090]

[0091] S20314: The BES server receives the connection request and returns an identifier to the BES client to confirm the request result.

[0092] For example, the BES client sends a request containing the identifier "PPTCLIENT_TESTING_CONNECTION" to the BES server to apply for establishing a PPT protocol connection. After receiving the request, the BES server returns an identifier to indicate the request result based on its own status. When the returned identifier is "PPTSERVER_CONNECTION_OK", it means that the BES server accepts the request and can perform PPT protocol transmission; when the returned identifier is "PPT_PROTOCOL_UNDEFINED", it means that the BES server is busy and the protocol is unavailable; when the returned identifier is "PPTSERVER_AUTHENTICATE", it means that the BES server has set the SSL security protocol and needs to enter the verification stage.

[0093] S2032: The BES client sends the query instruction to the BES server via the point-to-point transmission protocol.

[0094] Specifically, the BES client transmits the query instruction in XML format to the BES server through the PPT protocol.

[0095] S204: The BES client performs protocol conversion processing on the query result to obtain a processing result; and sends the processing result to the user client.

[0096] Exemplarily, the BES client converts the data returned by the BES server into the data format .nc corresponding to the returnType to generate a query result, and then returns the query result to the user client.

[0097] This application combines the OPeNDAP protocol and HDFS storage through the two interfaces of dap and gateway. This can not only give full play to the advantages of the OPeNDAP protocol and efficiently and conveniently transmit atmospheric environmental data, but also enjoy the management advantages of HDFS such as data redundancy backup.

[0098] Figure 4 Schematic diagram of the system provided in the embodiment of this application. Figure 4 As shown, in a possible embodiment, the data transmission system of the present application includes:

[0099] The user client 401 is used to send a data access request to the DAP converter;

[0100] A data access protocol converter 402 is used to convert a data access request into a query instruction and send the query instruction to a backend program client 403;

[0101] In some possible embodiments, converting a data access request into a query instruction includes:

[0102] The data access request is parsed to obtain several parameters in the data access request; a query instruction is generated according to the several parameters and in accordance with the prescribed grammatical rules; the query instruction includes a query instruction fragment corresponding to each of the several parameters.

[0103] The backend program client 403 is used to send a query instruction to the backend program server 404;

[0104] The backend program server 404 is used to obtain the query result according to the query instruction and send the query result to the backend program client 403;

[0105] In some possible embodiments, the backend program client 403 sends a query instruction to the backend program server 404; the backend program server 404 obtains a query result according to the query instruction, and sends the query result to the backend program client 403, including:

[0106] The backend program client 403 establishes a point-to-point transmission protocol with the backend program server 404;

[0107] In some possible embodiments, the backend program client 403 sends a transmission control protocol connection request to the backend program server 404;

[0108] The backend program server 404 accepts the request and the transmission control protocol connection is established;

[0109] The backend program client 403 sends a connection request to the backend program server 404 to apply for establishing a point-to-point transmission protocol; wherein the connection request includes an identifier representing the request for a point-to-point protocol connection;

[0110] The backend program server 404 receives the connection request and returns an identifier to the backend program client 403 to confirm the request result.

[0111] The backend program client 403 sends the query instruction to the backend program server 404 via the point-to-point transmission protocol;

[0112] The backend program server 404 obtains the query result on the distributed file system 405 according to the query instruction, and sends the query result to the backend program client 403;

[0113] The backend program client 403 receives and processes the query result.

[0114] The backend program client 403 is also used to perform protocol conversion processing on the query result to obtain a processing result; and send the processing result to the user client 401.

[0115] Figure 5 The schematic diagram of the structure of a computer device provided in an embodiment of the present specification is shown, and the computer device may include: a processor 510, a memory 520, an input / output interface 530, a communication interface 540 and a bus 550. The processor 510, the memory 520, the input / output interface 530 and the communication interface 540 are connected to each other in the device through the bus 550. The computer device can be used to perform the above Figure 2 The method shown.

[0116] The processor 510 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.

[0117] The memory 520 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 520 can store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 520 and are called and executed by the processor 510.

[0118] The input / output interface 530 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.

[0119] The communication interface 540 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).

[0120] The bus 550 comprises a pathway that transmits information between the various components of the device (eg, the processor 510 , the memory 520 , the input / output interface 530 , and the communication interface 540 ).

[0121] It should be noted that, although the above device only shows the processor 510, the memory 520, the input / output interface 530, the communication interface 540 and the bus 550, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.

[0122] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0123] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0124] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.< / params> < / path> < / operation> < / port> < / hostname> < / constraints> < / type> < / path> < / space> < / port> < / hostname> < / constraints> < / type> < / path> < / space> < / port> < / hostname>

Claims

1. A data transmission method, characterized in that: Applied to atmospheric environment data transmission, the data is atmospheric environment data, the data is stored in the form of a file, and the data complies with the OPeNDAP protocol, and the transmission method includes: The user client sends a data access request to the data access protocol converter; The data access protocol converter converts the data access request into a query instruction, the query instruction is in XML format, and sends the query instruction to the backend program client; The backend program client sends the query instruction to the backend program server; the backend program server obtains the query result in the distributed file system through the Gateway interface according to the query instruction, and sends the query result to the backend program client; The backend program client establishes a point-to-point transmission protocol with the backend program server; The backend program client sends the query instruction to the backend program server through the point-to-point transmission protocol; The backend program server obtains the query result according to the query instruction, and sends the query result to the backend program client; The backend program client receives and processes the query result; The backend program client performs protocol conversion processing on the query result to obtain a processing result; Sending the processing result to the user client; The backend program client and the backend program server establish a point-to-point transmission protocol including: The backend program client sends a transmission control protocol connection request to the backend program server; The backend program server accepts the request and establishes a transmission control protocol connection; The backend program client sends a connection request to the backend program server to apply for establishing a point-to-point transmission protocol; wherein the connection request includes an identifier representing a request for a point-to-point protocol connection; The backend program server receives the connection request and returns an identifier to the backend program client to determine the request result.

2. The transmission method according to claim 1, characterized in that: The data access protocol converter converts the data access request into a query instruction including: The data access request is parsed to obtain several parameters in the data access request; the query instruction is generated according to the several parameters in accordance with the specified grammatical rules; the query instruction includes a query instruction fragment corresponding to each parameter in the several parameters.

3. A data transmission system, characterized in that: The transmission system comprises: A user client, used for sending a data access request to the data access protocol converter; A data access protocol converter, used to convert the data access request into a query instruction, and send the query instruction to a backend program client; The back-end program client is used to send the query instruction to the back-end program server; The back-end program server is used to obtain the query result according to the query instruction and send the query result to the back-end program client; The backend program client establishes a point-to-point transmission protocol with the backend program server; The backend program client sends the query instruction to the backend program server through the point-to-point transmission protocol; The backend program server obtains the query result according to the query instruction, and sends the query result to the backend program client; The backend program client receives and processes the query result; The backend program client is also used to perform protocol conversion processing on the query result to obtain a processing result; and send the processing result to the user client; The backend program client and the backend program server establish a point-to-point transmission protocol including: The backend program client sends a transmission control protocol connection request to the backend program server; The backend program server accepts the request and establishes a transmission control protocol connection; The backend program client sends a connection request to the backend program server to apply for establishing a point-to-point transmission protocol; wherein the connection request includes an identifier representing a request for a point-to-point protocol connection; The backend program server receives the connection request and returns an identifier to the backend program client to determine the request result.

4. The transmission system according to claim 3, characterized in that: The converting the data access request into a query instruction comprises: The data access request is parsed to obtain several parameters in the data access request; the query instruction is generated according to the several parameters in accordance with the specified grammatical rules; the query instruction includes a query instruction fragment corresponding to each parameter in the several parameters.

5. A computing device comprising a processor and a memory, wherein: The memory stores computer program instructions, and when the computer program instructions are executed by the processor, the method according to any one of claims 1 to 2 is executed.

6. A computer-readable storage medium, comprising computer-readable instructions, which, when a computer reads and executes the computer-readable instructions, enables the computer to execute the method according to any one of claims 1 to 2.