WO2022134878A1 - Data processing method and apparatus, data querying method and apparatus, electronic device, and storage medium - Google Patents

Data processing method and apparatus, data querying method and apparatus, electronic device, and storage medium Download PDF

Info

Publication number
WO2022134878A1
WO2022134878A1 PCT/CN2021/128503 CN2021128503W WO2022134878A1 WO 2022134878 A1 WO2022134878 A1 WO 2022134878A1 CN 2021128503 W CN2021128503 W CN 2021128503W WO 2022134878 A1 WO2022134878 A1 WO 2022134878A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
query
data source
structured
storage space
Prior art date
Application number
PCT/CN2021/128503
Other languages
French (fr)
Chinese (zh)
Inventor
吉斌
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2022134878A1 publication Critical patent/WO2022134878A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/242Query formulation
    • G06F16/2433Query languages
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/242Query formulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/258Data format conversion from or to a database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
    • G06F16/83Querying
    • G06F16/832Query formulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
    • G06F16/83Querying
    • G06F16/838Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
    • G06F16/84Mapping; Conversion
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
    • G06F16/84Mapping; Conversion
    • G06F16/86Mapping to a database

Definitions

  • the embodiments of the present application relate to the technical field of data processing, and in particular, to a data processing and query method, apparatus, electronic device, and storage medium.
  • different data sources store data in different data formats.
  • querying two or more data sources only different query languages can be used in each data source. , query each data source one by one.
  • An embodiment of the present application provides a data processing method, including: obtaining data from a data source according to preconfigured data source information; obtaining description information of the data according to a format definition in the data source information; The unified structured data is stored in the preset storage space; after receiving the query command, the data query is performed in the storage space.
  • the embodiment of the present application also provides a data query method, which includes: after receiving a semi-structured query instruction, converting the query instruction into a structured query instruction; The data query is performed in the storage space of structured data; the structured query result obtained by the data query is converted into a semi-structured query result.
  • An embodiment of the present application further provides a data processing device, including: an acquisition module, configured to acquire data from a data source according to preconfigured data source information; a description module, used to acquire data according to a format definition in the data source information The description information of the data; the conversion module is used to store the data in the preset storage space as unified structured data according to the description information; the query module is used to query the data in the storage space after receiving the query instruction.
  • a data processing device including: an acquisition module, configured to acquire data from a data source according to preconfigured data source information; a description module, used to acquire data according to a format definition in the data source information The description information of the data; the conversion module is used to store the data in the preset storage space as unified structured data according to the description information; the query module is used to query the data in the storage space after receiving the query instruction.
  • the embodiment of the present application also provides a data query device, including: a query conversion module, which is used to convert the query instruction into a structured query instruction after receiving a semi-structured query instruction;
  • the query instruction is used to perform data query in the preset storage space for storing unified structured data;
  • the result conversion module is used to convert the structured query result obtained by the data query into a semi-structured query result.
  • An embodiment of the present application further provides an electronic device, including: at least one processor; a memory connected in communication with the at least one processor; the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor, So that at least one processor can execute the above-mentioned data processing method, or the above-mentioned data query method.
  • Embodiments of the present application also provide a computer-readable storage medium, storing a computer program, and when the computer program is executed by a processor, the above-mentioned data processing method or the above-mentioned data query method is implemented.
  • FIG. 1 is a flowchart of a data processing method provided according to a first embodiment of the present application
  • FIG. 2 is a schematic diagram of an overall architecture provided according to the first embodiment of the present application.
  • FIG. 3 is a flowchart of a data processing method provided according to a second embodiment of the present application.
  • FIG. 4 is a flowchart of a data query method provided according to a third embodiment of the present application.
  • FIG. 5 is a schematic diagram of a data processing apparatus provided according to a fourth embodiment of the present application.
  • FIG. 6 is a schematic diagram of a data query device provided according to a fifth embodiment of the present application.
  • FIG. 7 is a schematic diagram of an electronic device provided according to a sixth embodiment of the present application.
  • the main purpose of the embodiments of the present application is to provide a data processing and query method, apparatus, electronic device and storage medium, so as to improve the efficiency of data query.
  • the first embodiment of the present application relates to a data processing method, and the specific process is shown in Figure 1:
  • Step 101 Acquire data from a data source according to preconfigured data source information
  • Step 102 according to the format definition in the data source information, obtain the description information of the data
  • Step 103 store the data in a preset storage space with unified structured data
  • Step 104 after receiving the query instruction, perform data query in the storage space.
  • the data processing method of this embodiment is applied to a data processing apparatus, for example, an electronic device capable of data storage and data query.
  • a data processing apparatus for example, an electronic device capable of data storage and data query.
  • electronic equipment such as servers to perform data analysis on big data
  • the data in the data of each data source can be stored in the preset storage space as unified structured data, so that the user can perform complex query on the unified structured data, and then query the obtained data.
  • data for data analysis The electronic device of the present application includes three main parts: a data format conversion device, a structured data storage engine, and a query execution engine.
  • the overall architecture of the data processing method of the present application is shown in FIG. 2 .
  • the electronic device acquires data from a data source according to preconfigured data source information.
  • the data source can be the file system, Representational State Transfer REST (Representational State Transfer, referred to as "REST") interface, WebService interface and other channels for storing or obtaining data, and the data obtained by the electronic device from the file system and the REST interface is The data file stored in the file system or pointed to by the REST interface.
  • REST Representational State Transfer
  • the data file stores JavaScript Object Notation JSON (JavaScript Object Notation, referred to as "JSON”), Extensible Markup Language XML (eXtensible Markup Language, referred to as "XML”), comma-separated Semi-structured data in the format of CSV (Comma-Separated Values, referred to as "CSV").
  • JSON JavaScript Object Notation
  • XML Extensible Markup Language
  • CSV Common-Separated Values
  • the preconfigured data source information may be in the form of a configuration instruction file, written or uploaded by the user, and stored in the electronic device. Specifically, the electronic device can sequentially acquire each data object in the data source, or can acquire all data objects in one data source at a time, and the electronic device can select different ways to acquire data objects according to the data format of the data source.
  • the electronic device can obtain data from the data source by invoking the interface method and receiving the data returned by the interface.
  • the electronic device can generate a configuration instruction file in advance. There is one or more configuration items in the configuration instruction file. The user fills in the configuration items. Each configuration item is the data source information. Configure the instruction file to obtain data source information.
  • the data source information may include the path of the data source, for example, the storage path of the file system in the data source electronic device, the URL of the Uniform Resource Locator (Uniform Resource Locator, referred to as "URL") of the REST interface, etc. .
  • the electronic device obtains data from each data source by reading the path of each data source in the data source information.
  • the data source electronic device may be the same device as the electronic device performing data query in this application, or may be another device. After reading the data source information, the electronic device can immediately obtain data from the data source according to the path of the data source.
  • the data source information includes a parameter name and a parameter value type
  • the electronic device obtains data matching the parameter name and parameter value type from the data source according to the data source information.
  • the configuration instruction file may contain parameter items, and the user sets the parameter name and parameter value type for the parameter item, and the electronic device uses this parameter to filter the data in the data source. For example, if the parameter name in the data source information is name and the parameter value type is string, the electronic device obtains the part of the data structure description name and the data value type string from the data source. If a data has three parts, and the structure description name and data value type of the three parts are: name, character string; gender, character string; birthday, date, the electronic device only obtains the data of the name part of the data.
  • the data is filtered, only the required data is acquired, and the storage space is reduced.
  • the amount of data is increased, so as to speed up the operation speed of the device during data query and improve the efficiency of data query.
  • the configuration instruction file may further include a time range item, the user configures the time range item, and the electronic device uses the time range item to filter the data in the data source.
  • the time range item can contain two parameters: start time and end time, and time refers to the update time of the data. For example, if the user sets the start time to 02/11/2020 and the end time to 12/11/2020, the electronic device will obtain the update time from the data source according to the time range from 02/11/2020 to 12/11/2020 data in it.
  • the configuration instruction file may contain parameter items and time range items, and the electronic device obtains the preset parameters within the time range from the data source according to the parameter name, parameter value type and time range in the data source information. Data of name and preset parameter value type to further filter the data in the data source.
  • the electronic device acquires description information of the data according to the format definition in the data source information, where the description information is a structure description of the data object acquired by the electronic device. If the electronic device obtains a single data object one by one, it needs to obtain the description information of the data object once every time it obtains a data object. If the electronic device obtains all the data objects in the data source at one time, it only needs to obtain the data object once. The description information of all data objects is enough.
  • the electronic device stores the data in a preset storage space as unified structured data according to the description information.
  • the unified structured data can be directly stored in the data file, and can also be stored through the database.
  • the electronic device converts the data object into unified structured data according to the acquired structure description of the data object, and stores the unified structured data as a result set through a structured storage engine.
  • the electronic device can generate an operation statement for operating the unified structured data, for example, an operation statement for inserting a row of data into a data file, an insert statement for inserting data into a data table in a database, etc.
  • Unified structured data store for example, an operation statement for inserting a row of data into a data file, an insert statement for inserting data into a data table in a database, etc.
  • the storage space may be a memory space
  • the electronic device converts the data into unified structured data and stores it in the memory space.
  • the electronic device also stores and persists the unified structured data as a result set, such as storing the structured data in the memory space in a data file or a database.
  • the structured data can be further processed after the query.
  • step 104 after receiving the query instruction, the electronic device performs data query in the storage space. Specifically, after receiving the query instruction input by the user, the electronic device sends the query instruction to the query engine for execution, and the query engine performs data query on the structured data in the storage space to obtain the query result.
  • the query statement may include query parameters and query parameter values, and the electronic device may mark or store the query results as a data set.
  • the electronic device can receive complex query statements input by the user, and perform complex queries on two-dimensional table data.
  • the query statement can be any query statement supported by standard SQL statements, and can implement condition filtering, group statistics, and aggregate statistics.
  • the COUNT function counts the number of rows
  • the SUM function obtains the total value of a single column
  • window statistics etc.
  • the query statement may also include parameters and parameter values, and the electronic device uses the parameter values to replace the parameters in the statement, and the query execution engine executes the query to query the data in the result set.
  • the storage space is a memory space
  • the electronic device after receiving the query instruction, the electronic device performs data query on the result set in the memory space. Since the data storage of the result set and the execution process of the query are all in the memory, the data query efficiency is very high.
  • the query result is output in JSON format, for example, in a JSON array or a single number.
  • the electronic device also encapsulates the query result of the query, that is, a data set, as a message, and sends it to a message queue, or performs visual processing on the query result, such as displaying it as report data on a line graph or a bar graph of the report, etc. .
  • the electronic device may acquire data from the data source at a preset period according to the path of the data source.
  • the data acquisition period can be configured to be 1 hour. If the electronic device acquires data from the data source x at 10:00a.m, then at 11:00a.m, the electronic device will retrieve data from the data source x again. Get data from data source x.
  • updated data can be acquired from the data source, thereby achieving synchronization between the acquired data and the data in the data source.
  • the electronic device may also acquire data from the data source by receiving data sent by the data source. Specifically, after receiving the data sent by the data source, the electronic device can determine the data source for sending the data according to the path in the data source information. When the data source sends data to the electronic device for the first time, it sends all the data in the data source, and the data sent to the electronic device subsequently may be all data or updated data. The electronic device receives the data sent by the data source, and updates the received data into the storage space. Among them, when the data source sends the updated data, it can directly send the updated data to the electronic device. After the electronic device converts the updated data into unified structured data, it can be compared with the data sent before the data source already stored in the storage space.
  • Carry out comparison confirm the update type of the updated data according to the comparison result, such as new data, modified data, etc., and then perform corresponding operations on the updated data according to the update type, for example, add the new data to the storage space,
  • the modified data corresponds to the original data before the update in the storage space.
  • the data source when the data source sends update data to the electronic device, it can also send update information to the electronic device, where the update information may include the update type of the update data. It also contains information about the data before modification corresponding to this modified data.
  • the data is obtained from the data source according to the pre-configured data source information
  • the data description information is obtained according to the format definition
  • the data is stored in the preset storage space as unified structured data.
  • the data query is performed in the storage space. Since the description information is obtained according to the format definition of the data source information, the format of the data obtained from the data source can be changed according to the description information and converted into structured data with a unified format. Therefore, it is possible to perform an associated query on structured data with a unified format, use a unified query language, and query data in multiple data sources at the same time, thereby improving query efficiency.
  • the second embodiment of the present application relates to a data processing method.
  • the second embodiment is substantially the same as the first embodiment, and the main difference is that: in the second embodiment of the present application, the data is specifically stored in the form of two-dimensional table data.
  • This embodiment relates to a data processing method.
  • the specific process is shown in Figure 3:
  • Step 301 Acquire data from a data source according to preconfigured data source information
  • Step 302 according to the format definition in the data source information, obtain the description information of the data; wherein, the description information includes: the key name and the key value type of the data;
  • Step 303 take the key name as the column name in the two-dimensional table, take the key value type as the data type of the column corresponding to the key name, and fill in the key value of the data in the column corresponding to the key name; wherein, the two-dimensional table Stored in the preset storage space;
  • Step 304 after receiving the query instruction, perform data query in the storage space.
  • step 301 and step 304 are substantially the same as step 101 and step 104 in the first embodiment, and will not be repeated here.
  • the data in the data source is semi-structured data stored in the form of key-value pairs.
  • the description information of the data can be the key name and key value type of the data.
  • the electronic device acquires data, it also acquires the key name and key value type of the data.
  • the data source information includes a parameter name and a parameter value type
  • the electronic device obtains data matching the parameter name and parameter value type from the data source according to the data source information. For example, if the parameter name in the data source information is name and the parameter value type is string, the electronic device only obtains the part of all data in the data source whose key name is name and whose key value type is string.
  • Key-value pair in which the key name of one key-value pair is name, the key-value type is string, and the key-value is Zhang San, and the key-value pair is gender, the key-value type is string, and the key-value is male.
  • the key name of a key-value pair is birthday
  • the key-value type is date
  • the key-value is 02/11/1991
  • the data obtained by the electronic device from the data source is a key-value pair
  • the key-value pair’s key name is
  • the name and key value type are strings
  • the key value is Zhang San.
  • the unified structured data is two-dimensional table data
  • the electronic device uses the key name as the column name in the two-dimensional table
  • the key value type is used as the data type of the column corresponding to the key name
  • the key value of the data is used as the data type of the column corresponding to the key name. Fill in the column corresponding to the key name.
  • the electronic device determines whether there is a column with the same name as the key in the two-dimensional table. If there is a column with the same name as the key, the key value of the data is filled in. If there is no column with the same name as the key. , then create a column with the same name as the key in the two-dimensional table, and then fill in the key value of the data.
  • the two-dimensional table in the storage space corresponds to the data source one-to-one. After the electronic device obtains data from the data source, it also determines whether there is a two-dimensional table corresponding to the data source in the storage space. If there is a two-dimensional table corresponding to the data source, a two-dimensional table is created in the storage space.
  • a two-dimensional table corresponding to the data source is created in the storage space, which facilitates the query and management of the unified structured data in the storage space, and can simplify the structured data. Data management, and improve query efficiency.
  • the electronic device uses the data processing method of the present application to filter the real-time data in JSON format, and then sends it to a message queue as a message body for use by other application systems, and is implemented according to the following steps: 1.
  • the configured data source information where the path of the data source is the URL of the REST interface: /realtime-data, the parameter name of the parameter of this interface is moOid, which is used to filter the identity of the monitoring object oid (object identity document, referred to as "oid" for short).
  • the data in the data source is in JSON format
  • the description information obtained by the electronic device is the key name and key value type of the key-value pair with the key names moOid (oid of monitoring object) and smpOid (oid of standard measurement point).
  • the electronic device creates a database table in the memory database, and calls the interface /realtime-data of the real-time data JSON data source to obtain real-time data in JSON format.
  • the electronic device converts the real-time data in JSON format into an insert statement in SQL language, inserts the real-time data into the memory database table, generates a two-dimensional data table corresponding to this data source, and marks the data in the table as a result set. 4.
  • the electronic device obtains the SQL statement input by the user to query the result set, which includes query parameters and query parameter values corresponding to moOid and smpOid.
  • the electronic device executes the SQL statement to query moOid and smpOid, and the filtering does not meet the query requirements data, and output the resulting dataset in JSON format. 5.
  • the electronic device encapsulates the result data set as a message and sends it to the message queue.
  • the electronic device uses the data processing method of the present application to collect statistics on historical data in JSON format and display it in a report, and implement the following steps: 1. Obtain pre-configured data source information, wherein the path of the data source is It is the URL of the REST interface: /history-data. This interface has three preset parameters: oid, start time, and end time of the monitoring object.
  • the data in the data source is in JSON format, and the description information obtained by the electronic device is the key name moOid (oid of monitoring object), smpOid (oid of standard measuring point), timeRange (time range), curValue (current value of time range) key-value pair. 2.
  • the electronic device creates a database table in the memory database, and calls the interface /history-data of the historical data JSON data source to obtain historical data in JSON format. 3.
  • the electronic device converts the historical data in JSON format into an insert statement in SQL language, inserts the historical data into the memory database table, generates a two-dimensional data table corresponding to this data source, and marks the data in the table as a result set. 4.
  • the electronic device obtains the SQL statement input by the user to query the result set, which includes query parameters and query parameter values corresponding to timeRange, moOid, and smpOid.
  • the electronic device executes the SQL statement, queries the data in the result set according to the query parameters and the query parameter values, filters the data that does not meet the query requirements, and outputs the result data set in JSON format. 5.
  • the electronic device displays the resulting dataset in the report.
  • the electronic device uses the data processing method of the present application to obtain the parent-child node relationship of the logical grouping in JSON format, and displays it in a tree control, and implements it according to the following steps: 1. Obtaining the pre-configured logical grouping parent-child node relationship JSON data source information, where the path of the data source is the URL of the REST interface: /logic-group-tree, the data in the data source is in JSON format, and the description information obtained by the electronic device is the key named oid (logical group oid) , name (logical group name), parentOid (logical group parent node oid) key-value pair. 2.
  • the electronic device creates a database table in the memory database, and calls the interface /logic-group-tree of the JSON data source of the logically grouped parent and child nodes to obtain the logically grouped parent and child node data in JSON format. 3.
  • the electronic device converts the logically grouped parent-child node data in JSON format into an insert statement in SQL language, inserts the logically grouped parent-child node data into the memory database table, generates a two-dimensional data table corresponding to this data source, and converts the data in the table. Data is marked as a result set. 4.
  • the electronic device obtains the SQL statement input by the user to query the result set, which includes query parameters and query parameter values corresponding to parentOid.
  • the electronic device executes the SQL statement, queries the data in the result set according to the query parameters and the query parameter values, filters the data that does not meet the query requirements, and outputs the result data set in JSON format. 5.
  • the electronic device displays the result data set on the tree control.
  • the key name is used as the column name in the two-dimensional table
  • the key value type is used as the data type of the column corresponding to the key name
  • the key value of the data is filled in the column corresponding to the key name.
  • the dimension table data is unified structured data, which can realize the conversion of the data obtained from the data source into unified structured data; at the same time, by converting the data in the data source into two-dimensional table data, it can be realized based on the two-dimensional table structure.
  • Various complex queries so the data processing method of the present application can improve the query efficiency.
  • the third embodiment of the present application relates to a data query method, and the specific process is shown in FIG. 4 , including:
  • Step 401 after receiving the semi-structured query instruction, convert the query instruction into a structured query instruction;
  • Step 402 according to the structured query instruction, perform data query in a preset storage space for storing unified structured data
  • Step 403 Convert the structured query result obtained by the data query into a semi-structured query result.
  • the data query method of this embodiment is applied to a data query device, for example, an electronic device that can perform data query.
  • the data query apparatus may also be the query execution engine in the first embodiment.
  • the data query method in this embodiment can be used to obtain the required data from the big data.
  • step 401 after receiving the semi-structured query instruction, the electronic device converts the query instruction into a structured query instruction corresponding to unified structured data.
  • the semi-structured query instruction is a query statement entered by the user and represented by a semi-structured data query format. A query statement for querying structured data.
  • the electronic device can call the first conversion function that converts the semi-structured query instruction correspondingly into the structured query instruction, and fills the query information in the semi-structured query instruction into the pre-generated structured query statement template to obtain the structure query command.
  • the first conversion function can be generated according to the description information.
  • step 402 the electronic device performs a data query in a preset storage space for storing unified structured data according to the structured query instruction, and obtains a query structure in a structured data format, that is, a structured query result.
  • the electronic device converts the structured query result obtained by the data query into a semi-structured query result.
  • the electronic device can call a second conversion function that converts structured data into semi-structured data, and correspondingly fill in the data in the structured query result into the pre-generated semi-structured data template to obtain the semi-structured query result .
  • the second conversion function can be generated according to the description information.
  • the electronic device uses the data query method of this embodiment to perform data query, wherein the semi-structured query instruction is a query statement in JSON format, the structured query instruction is an SQL statement, and a storage space for storing unified structured data for memory space.
  • the electronic device After receiving the query statement in JSON format input by the user, the electronic device converts the query statement in JSON format into SQL statement, and uses the converted SQL statement to query the two-dimensional table format data in the memory in the memory space. After obtaining the data query result, the electronic device converts the query result in the two-dimensional table format into JSON format, and outputs it to the user.
  • the query instruction by converting the query instruction into a structured query instruction, according to the structured query instruction, data query is performed in a preset storage space for storing unified structured data, and the structured query obtained by the data query is performed.
  • the query language in semi-structured format can be used to perform related queries on data sources in various data formats, and a semi-structured directly applicable semi-structured query can be obtained. data, so as to improve the query efficiency and better meet the actual application needs.
  • the fourth embodiment of the present application relates to a data processing apparatus, as shown in FIG. 5 , including:
  • an acquisition module 501 configured to acquire data from a data source according to preconfigured data source information
  • a description module 502 configured to obtain description information of the data according to the format definition in the data source information
  • the conversion module 503 is used to store the data in a preset storage space with unified structured data according to the description information;
  • the query module 504 is configured to perform data query in the storage space after receiving the query instruction.
  • the description information includes: the key name and key value type of the data; the unified structured data is two-dimensional table data; the conversion module 503 is specifically configured to use the key name as the column name in the two-dimensional table, and use the key name as the column name in the two-dimensional table.
  • the value type is used as the data type of the column corresponding to the key name, and the key value of the data is filled in the column corresponding to the key name; wherein, the two-dimensional table is stored in the preset storage space.
  • the two-dimensional table is in one-to-one correspondence with the data source; the data query device further includes a creation module for obtaining data from the data source, if there is no two-dimensional table corresponding to the data source in the storage space, then Create a two-dimensional table in the storage space.
  • the storage space includes a memory space; the obtaining module 501 is specifically configured to obtain data from a data source that conforms to a preset parameter name and a preset parameter value type; the data source information includes the parameter name and parameter value type.
  • the data source information includes: the path of the data source; the obtaining module 501 is specifically configured to obtain data from the data source at a preset period according to the path of the data source.
  • the query module 504 is further configured to encapsulate the query result of the query into a message, send it to a message queue, or perform visual processing on the query result.
  • this embodiment is a device embodiment corresponding to the first and second embodiments, and this embodiment can be implemented in cooperation with the first and second embodiments.
  • the relevant technical details mentioned in the first and second embodiments are still valid in this embodiment, and are not repeated here in order to reduce repetition.
  • the related technical details mentioned in this embodiment can also be applied to the first and second embodiments.
  • a logical unit may be a physical unit, a part of a physical unit, or multiple physical units.
  • a composite implementation of the unit in order to highlight the innovative part of the present application, this embodiment does not introduce units that are not very closely related to solving the technical problem proposed by the present application, but this does not mean that there are no other units in this embodiment.
  • the fifth embodiment of the present application relates to a data query device, as shown in FIG. 6 , including:
  • the query conversion module 601 is configured to convert the query instruction into a structured query instruction after receiving the semi-structured query instruction;
  • the structure query module 602 is configured to perform data query in the preset storage space for storing unified structured data according to the structured query instruction;
  • the result conversion module 603 is configured to convert the structured query result obtained by the data query into a semi-structured query result.
  • this embodiment is a device embodiment corresponding to the third embodiment, and this embodiment can be implemented in cooperation with the third embodiment.
  • the related technical details mentioned in the third embodiment are still valid in this embodiment, and are not repeated here in order to reduce repetition.
  • the relevant technical details mentioned in this embodiment can also be applied in the third embodiment.
  • a logical unit may be a physical unit, a part of a physical unit, or multiple physical units.
  • a composite implementation of the unit in order to highlight the innovative part of the present application, this embodiment does not introduce units that are not closely related to solving the technical problem raised by the present application, but this does not mean that there are no other units in this embodiment.
  • the sixth embodiment of the present application relates to an electronic device, as shown in FIG. 7 , comprising: at least one processor 701;
  • the executed instruction the instruction is executed by at least one processor 701 to execute the above-mentioned data processing method or the above-mentioned data query method.
  • the memory 702 and the processor 701 are connected by a bus, and the bus may include any number of interconnected buses and bridges, and the bus connects one or more processors 701 and various circuits of the memory 702 together.
  • the bus may also connect together various other circuits, such as peripherals, voltage regulators, and power management circuits, which are well known in the art and therefore will not be described further herein.
  • the bus interface provides the interface between the bus and the transceiver.
  • a transceiver may be a single element or multiple elements, such as multiple receivers and transmitters, providing a means for communicating with various other devices over a transmission medium.
  • the information processed by the processor 701 is transmitted on the wireless medium through the antenna, and further, the antenna also receives the information and transmits the information to the processor 701 .
  • Processor 701 is responsible for managing the bus and general processing, and may also provide various functions including timing, peripheral interface, voltage regulation, power management, and other control functions. Instead, memory 702 may be used to store information used by the processor in performing operations.
  • the seventh embodiment of the present application relates to a computer-readable storage medium storing a computer program.
  • the above method embodiments are implemented when the computer program is executed by the processor.
  • a storage medium includes several instructions to make a device ( It may be a single chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, Read-Only Memory (ROM for short), Random Access Memory (RAM for short), magnetic disk or optical disk, etc. medium of program code.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Computational Linguistics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiments of the present application relate to the technical field of data processing. Provided are a data processing method and apparatus, a data querying method and apparatus, an electronic device, and a storage medium. The method comprises: acquiring data from a data source according to preconfigured data source information; acquiring descriptive information of the data according to a format definition in the data source information; according to the descriptive information, storing the data in a preset storage space as uniform structured data; and after a query instruction is received, performing data querying in the storage space.

Description

数据处理、查询方法、装置、电子设备及存储介质Data processing, query method, device, electronic device and storage medium
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请基于申请号为“202011519522.4”、申请日为2020年12月21日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此以引入方式并入本申请。This application is based on the Chinese patent application with the application number "202011519522.4" and the filing date is December 21, 2020, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby incorporated by reference. Application.
技术领域technical field
本申请的实施例涉及数据处理技术领域,特别涉及一种数据处理、查询方法、装置、电子设备及存储介质。The embodiments of the present application relate to the technical field of data processing, and in particular, to a data processing and query method, apparatus, electronic device, and storage medium.
背景技术Background technique
随着互联网发展,日常生活和商业生产使用的各类软件和系统会产生及使用大量的数据,其中,不同的软件和系统产生及使用的数据拥有不同的数据格式。With the development of the Internet, various software and systems used in daily life and commercial production will generate and use a large amount of data, among which, the data generated and used by different software and systems have different data formats.
相关的数据处理方法中,不同数据源因为存储的数据分别为不同的数据格式,对两个或两个以上的多个数据源进行查询时,只能在各个数据源中分别使用不同的查询语言,对各个数据源一一进行查询。In related data processing methods, different data sources store data in different data formats. When querying two or more data sources, only different query languages can be used in each data source. , query each data source one by one.
因此,相关的数据处理方法中存在以下问题:无法将两个或两个以上的数据源进行关联查询,查询效率低。Therefore, there are the following problems in the related data processing methods: two or more data sources cannot be correlated and queried, and the query efficiency is low.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种数据处理方法,包括:根据预先配置的数据源信息,从数据源中获取数据;根据数据源信息中的格式定义,获取数据的描述信息;根据描述信息,将数据以统一的结构化数据存储至预设的存储空间;在接收到查询指令后,在存储空间中进行数据查询。An embodiment of the present application provides a data processing method, including: obtaining data from a data source according to preconfigured data source information; obtaining description information of the data according to a format definition in the data source information; The unified structured data is stored in the preset storage space; after receiving the query command, the data query is performed in the storage space.
本申请实施例还提供了一种数据查询方法,包括:在接收到半结构化查询指令后,将查询指令转换为结构化查询指令;根据结构化查询指令,在预设的用于存储统一的结构化数据的存储空间中进行数据查询;将数据查询得到的结构化查询结果,转换为半结构化查询结果。The embodiment of the present application also provides a data query method, which includes: after receiving a semi-structured query instruction, converting the query instruction into a structured query instruction; The data query is performed in the storage space of structured data; the structured query result obtained by the data query is converted into a semi-structured query result.
本申请实施例还提供了一种数据处理装置,包括:获取模块,用于根据预先配置的数据源信息,从数据源中获取数据;描述模块,用于根据数据源信息中的格式定义,获取数据的描述信息;转换模块,用于根据描述信息,将数据以统一的结构化数据存储至预设的存储空间;查询模块,用于在接收到查询指令后,在存储空间中进行数据查询。An embodiment of the present application further provides a data processing device, including: an acquisition module, configured to acquire data from a data source according to preconfigured data source information; a description module, used to acquire data according to a format definition in the data source information The description information of the data; the conversion module is used to store the data in the preset storage space as unified structured data according to the description information; the query module is used to query the data in the storage space after receiving the query instruction.
本申请实施例还提供了一种数据查询装置,包括:查询转换模块,用于在接收到半结构化查询指令后,将查询指令转换为结构化查询指令;结构查询模块,用于根据结构化查询指令,在预设的用于存储统一的结构化数据的存储空间中进行数据查询;结果转换模块,用于将数据查询得到的结构化查询结果,转换为半结构化查询结果。The embodiment of the present application also provides a data query device, including: a query conversion module, which is used to convert the query instruction into a structured query instruction after receiving a semi-structured query instruction; The query instruction is used to perform data query in the preset storage space for storing unified structured data; the result conversion module is used to convert the structured query result obtained by the data query into a semi-structured query result.
本申请实施例还提供了一种电子设备,包括:至少一个处理器;与至少一个处理器通信连接的存储器;存储器存储有可被至少一个处理器执行的指令,指令被至少一个处理器执行,以使至少一个处理器能够执行上述的数据处理方法,或上述的数据查询方法。An embodiment of the present application further provides an electronic device, including: at least one processor; a memory connected in communication with the at least one processor; the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor, So that at least one processor can execute the above-mentioned data processing method, or the above-mentioned data query method.
本申请实施例还提供了一种计算机可读存储介质,存储有计算机程序,计算机程序被处 理器执行时实现上述的数据处理方法,或上述的数据查询方法。Embodiments of the present application also provide a computer-readable storage medium, storing a computer program, and when the computer program is executed by a processor, the above-mentioned data processing method or the above-mentioned data query method is implemented.
附图说明Description of drawings
图1是根据本申请第一实施例提供的数据处理方法流程图;1 is a flowchart of a data processing method provided according to a first embodiment of the present application;
图2是根据本申请第一实施例提供的整体架构示意图;2 is a schematic diagram of an overall architecture provided according to the first embodiment of the present application;
图3是根据本申请第二实施例提供的数据处理方法流程图;3 is a flowchart of a data processing method provided according to a second embodiment of the present application;
图4是根据本申请第三实施例提供的数据查询方法流程图;4 is a flowchart of a data query method provided according to a third embodiment of the present application;
图5是根据本申请第四实施例提供的数据处理装置示意图;5 is a schematic diagram of a data processing apparatus provided according to a fourth embodiment of the present application;
图6是根据本申请第五实施例提供的数据查询装置示意图;6 is a schematic diagram of a data query device provided according to a fifth embodiment of the present application;
图7是根据本申请第六实施例提供的电子设备示意图。FIG. 7 is a schematic diagram of an electronic device provided according to a sixth embodiment of the present application.
具体实施方式Detailed ways
本申请实施例的主要目的在于提出一种数据处理、查询方法、装置、电子设备及存储介质,以提高数据查询效率。The main purpose of the embodiments of the present application is to provide a data processing and query method, apparatus, electronic device and storage medium, so as to improve the efficiency of data query.
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合附图对本申请的各实施例进行详细的阐述。然而,本领域的普通技术人员可以理解,在本申请各实施例中,为了使读者更好地理解本申请而提出了许多技术细节。但是,即使没有这些技术细节和基于以下各实施例的种种变化和修改,也可以实现本申请所要求保护的技术方案。以下各个实施例的划分是为了描述方便,不应对本申请的具体实现方式构成任何限定,各个实施例在不矛盾的前提下可以相互结合相互引用。In order to make the objectives, technical solutions and advantages of the embodiments of the present application more clear, each embodiment of the present application will be described in detail below with reference to the accompanying drawings. However, those of ordinary skill in the art can understand that, in each embodiment of the present application, many technical details are provided for the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical solutions claimed in the present application can be realized. The following divisions of the various embodiments are for the convenience of description, and should not constitute any limitation on the specific implementation of the present application, and the various embodiments may be combined with each other and referred to each other on the premise of not contradicting each other.
本申请的第一实施例涉及一种数据处理方法,具体流程如图1所示:The first embodiment of the present application relates to a data processing method, and the specific process is shown in Figure 1:
步骤101,根据预先配置的数据源信息,从数据源中获取数据;Step 101: Acquire data from a data source according to preconfigured data source information;
步骤102,根据数据源信息中的格式定义,获取数据的描述信息; Step 102, according to the format definition in the data source information, obtain the description information of the data;
步骤103,根据描述信息,将数据以统一的结构化数据存储至预设的存储空间; Step 103, according to the description information, store the data in a preset storage space with unified structured data;
步骤104,在接收到查询指令后,在存储空间中进行数据查询。 Step 104, after receiving the query instruction, perform data query in the storage space.
本实施例的数据处理方法,应用于数据处理装置,例如,可以进行数据存储、数据查询的电子设备中。当使用服务器等电子设备,对大数据进行数据分析时,由于大数据的数据来源广泛,数据格式不一,数据量庞大,因此不能对至少两个不同数据格式的数据源进行同时查询、关联查询等复杂查询,只能分别对各个数据源进行数据查询,获取分析所需的数据需要耗费较高的人力物力。基于本申请的数据处理方法,可以将各个数据源的数据中的数据以统一的结构化数据存储在预设的存储空间中,从而用户可以对统一的结构化数据进行复杂查询,进而对查询得到的数据进行数据分析。其中,本申请的电子设备包含数据格式转换装置、结构化数据存储引擎、查询执行引擎三个主要部分,本申请的数据处理方法的整体架构如图2所示。The data processing method of this embodiment is applied to a data processing apparatus, for example, an electronic device capable of data storage and data query. When using electronic equipment such as servers to perform data analysis on big data, due to the wide range of data sources, different data formats, and huge data volume of big data, it is impossible to query at least two data sources with different data formats at the same time. For complex queries such as these, you can only query data from each data source separately, and obtaining the data required for analysis requires high manpower and material resources. Based on the data processing method of the present application, the data in the data of each data source can be stored in the preset storage space as unified structured data, so that the user can perform complex query on the unified structured data, and then query the obtained data. data for data analysis. The electronic device of the present application includes three main parts: a data format conversion device, a structured data storage engine, and a query execution engine. The overall architecture of the data processing method of the present application is shown in FIG. 2 .
下面对本实施例的数据处理方法的实现细节进行具体的说明,以下内容仅为方便理解提供的实现细节,并非实施本方案的必须。The implementation details of the data processing method in this embodiment will be specifically described below, and the following contents are only provided for the convenience of understanding, and are not necessary for implementing this solution.
在步骤101中,电子设备根据预先配置的数据源信息,从数据源中获取数据。其中,数据源可以是文件系统、表述性状态传递REST(Representational State Transfer,简称“REST”)接口、WebService接口等用于存储或获取数据的渠道,电子设备从文件系统、REST接口获 取的数据是文件系统储存的或REST接口指向的数据文件,数据文件中储存JavaScript对象表示法JSON(JavaScript Object Notation,简称“JSON”)、可扩展标记语言XML(eXtensible Markup Language,简称“XML”)、逗号分隔值CSV(Comma-Separated Values,简称“CSV”)等格式的半结构化数据。预先配置的数据源信息可以是配置指示文件的形式,由用户进行编写或上传,储存在电子设备中。具体地,电子设备可以依次获取数据源中的一个个数据对象,也可以每次获取一个数据源中的所有数据对象,电子设备可以根据数据源数据格式的不同,选择不同获取数据对象的方式。其中,电子设备可以通过调用接口方法,接收接口返回数据的方式,从数据源中获取数据。In step 101, the electronic device acquires data from a data source according to preconfigured data source information. Among them, the data source can be the file system, Representational State Transfer REST (Representational State Transfer, referred to as "REST") interface, WebService interface and other channels for storing or obtaining data, and the data obtained by the electronic device from the file system and the REST interface is The data file stored in the file system or pointed to by the REST interface. The data file stores JavaScript Object Notation JSON (JavaScript Object Notation, referred to as "JSON"), Extensible Markup Language XML (eXtensible Markup Language, referred to as "XML"), comma-separated Semi-structured data in the format of CSV (Comma-Separated Values, referred to as "CSV"). The preconfigured data source information may be in the form of a configuration instruction file, written or uploaded by the user, and stored in the electronic device. Specifically, the electronic device can sequentially acquire each data object in the data source, or can acquire all data objects in one data source at a time, and the electronic device can select different ways to acquire data objects according to the data format of the data source. The electronic device can obtain data from the data source by invoking the interface method and receiving the data returned by the interface.
具体地,电子设备可以预先生成一个配置指示文件,配置指示文件中有一项或多项配置项,由用户对配置项进行填写,各项配置项即是数据源信息,电子设备读取填写完成的配置指示文件,从而获取数据源信息。Specifically, the electronic device can generate a configuration instruction file in advance. There is one or more configuration items in the configuration instruction file. The user fills in the configuration items. Each configuration item is the data source information. Configure the instruction file to obtain data source information.
在一个例子中,数据源信息中可以包含数据源的路径,例如,文件系统在数据源电子设备中的储存路径、REST接口的统一资源定位器URL(Uniform Resource Locator,简称“URL”)等等。电子设备通过读取数据源信息中各个数据源的路径,从各个数据源中获取数据。其中,数据源电子设备可以和本申请执行数据查询的电子设备为同一设备,也可以是另一设备。电子设备在读取到数据源信息后,可以立即根据数据源的路径,从数据源中获取数据。In one example, the data source information may include the path of the data source, for example, the storage path of the file system in the data source electronic device, the URL of the Uniform Resource Locator (Uniform Resource Locator, referred to as "URL") of the REST interface, etc. . The electronic device obtains data from each data source by reading the path of each data source in the data source information. Wherein, the data source electronic device may be the same device as the electronic device performing data query in this application, or may be another device. After reading the data source information, the electronic device can immediately obtain data from the data source according to the path of the data source.
在一个例子中,数据源信息中包含参数名称和参数值类型,电子设备根据数据源信息,从数据源中获取符合参数名称和参数值类型的数据。具体地,配置指示文件中可以包含参数项,由用户为参数项设置参数名称和参数值类型,电子设备使用此参数对数据源中的数据进行过滤。例如,数据源信息中的参数名称为姓名,参数值类型为字符串,则电子设备从数据源中获取数据结构描述名称为姓名,数据值类型为字符串的部分。若一个数据有三个部分,三个部分的结构描述名称和数据值类型分别为:姓名、字符串;性别、字符串;生日、日期,则电子设备只获取此数据的姓名部分的数据。In one example, the data source information includes a parameter name and a parameter value type, and the electronic device obtains data matching the parameter name and parameter value type from the data source according to the data source information. Specifically, the configuration instruction file may contain parameter items, and the user sets the parameter name and parameter value type for the parameter item, and the electronic device uses this parameter to filter the data in the data source. For example, if the parameter name in the data source information is name and the parameter value type is string, the electronic device obtains the part of the data structure description name and the data value type string from the data source. If a data has three parts, and the structure description name and data value type of the three parts are: name, character string; gender, character string; birthday, date, the electronic device only obtains the data of the name part of the data.
本实施例中,通过从数据源中获取符合预设参数名称和预设参数值类型的数据,在从数据源中获取数据时,对数据进行筛选,只获取所需的数据,减少存储空间中的数据量,从而加快数据查询时设备的运算速度,进行提高数据查询效率。In this embodiment, by acquiring data from the data source that conforms to the preset parameter name and the preset parameter value type, when acquiring data from the data source, the data is filtered, only the required data is acquired, and the storage space is reduced. The amount of data is increased, so as to speed up the operation speed of the device during data query and improve the efficiency of data query.
在一个例子中,配置指示文件中还可以包含时间范围项,用户对时间范围项进行配置,电子设备使用此时间范围项对数据源中的数据进行过滤。其中,时间范围项可以包含两个参数:开始时间和结束时间,时间是指数据的更新时间。例如,用户将开始时间设置为02/11/2020,结束时间设置为12/11/2020,则电子设备根据时间范围,从数据源中获取更新时间在02/11/2020至12/11/2020之中的数据。In one example, the configuration instruction file may further include a time range item, the user configures the time range item, and the electronic device uses the time range item to filter the data in the data source. The time range item can contain two parameters: start time and end time, and time refers to the update time of the data. For example, if the user sets the start time to 02/11/2020 and the end time to 12/11/2020, the electronic device will obtain the update time from the data source according to the time range from 02/11/2020 to 12/11/2020 data in it.
在一个例子中,配置指示文件中可以包含参数项和时间范围项,电子设备根据数据源信息中的参数名称和参数值类型和时间范围,从数据源中获取处于时间范围内的符合预设参数名称和预设参数值类型的数据,对数据源中的数据进行进一步过滤。In one example, the configuration instruction file may contain parameter items and time range items, and the electronic device obtains the preset parameters within the time range from the data source according to the parameter name, parameter value type and time range in the data source information. Data of name and preset parameter value type to further filter the data in the data source.
在步骤102中,电子设备根据数据源信息中的格式定义,获取数据的描述信息,其中,描述信息是对电子设备获取的数据对象的结构描述。若电子设备按次获取单个数据对象,则每获取一个数据对象,就需要获取一次数据对象的描述信息,若电子设备一次获取数据源中的所有数据对象,则只需要在获取数据对象时获取一次所有数据对象的描述信息即可。In step 102, the electronic device acquires description information of the data according to the format definition in the data source information, where the description information is a structure description of the data object acquired by the electronic device. If the electronic device obtains a single data object one by one, it needs to obtain the description information of the data object once every time it obtains a data object. If the electronic device obtains all the data objects in the data source at one time, it only needs to obtain the data object once. The description information of all data objects is enough.
在步骤103中,电子设备根据描述信息,将数据以统一的结构化数据存储至预设的存储 空间。其中,统一的结构化数据可以直接存储在数据文件中,也可以通过数据库进行存储。具体地,电子设备根据获取的数据对象的结构描述,将数据对象转换为统一的结构化数据,通过一个结构化存储引擎,将统一的结构化数据存储为结果集。In step 103, the electronic device stores the data in a preset storage space as unified structured data according to the description information. Among them, the unified structured data can be directly stored in the data file, and can also be stored through the database. Specifically, the electronic device converts the data object into unified structured data according to the acquired structure description of the data object, and stores the unified structured data as a result set through a structured storage engine.
在一个例子中,电子设备可以通过生成对统一的结构化数据进行操作的操作语句,例如,向数据文件插入一行数据的操作语句、向数据库中的数据表插入数据的insert语句等,将数据以统一的结构化数据存储。In one example, the electronic device can generate an operation statement for operating the unified structured data, for example, an operation statement for inserting a row of data into a data file, an insert statement for inserting data into a data table in a database, etc. Unified structured data store.
在一个例子中,存储空间可以是内存空间,电子设备将数据转换为统一的结构数据存到至内存空间中。In one example, the storage space may be a memory space, and the electronic device converts the data into unified structured data and stores it in the memory space.
在一个例子中,电子设备还将统一的结构化数据作为结果集进行存储持久化处理,如将内存空间中的结构化数据储存到数据文件或数据库中。本实施例中,通过将结构化数据持久化存储,可以在查询后对结构化数据进行进一步的处理。In one example, the electronic device also stores and persists the unified structured data as a result set, such as storing the structured data in the memory space in a data file or a database. In this embodiment, by persistently storing the structured data, the structured data can be further processed after the query.
在步骤104中,电子设备在接收到查询指令后,在存储空间中进行数据查询。具体地,电子设备在接收到用户输入的查询指令后,将查询指令交给查询引擎执行,查询引擎对存储空间中的结构化数据进行数据查询,得到查询结果。其中,查询语句中可以包括查询参数及查询参数值,电子设备可以将查询结果标记或存储为数据集。In step 104, after receiving the query instruction, the electronic device performs data query in the storage space. Specifically, after receiving the query instruction input by the user, the electronic device sends the query instruction to the query engine for execution, and the query engine performs data query on the structured data in the storage space to obtain the query result. The query statement may include query parameters and query parameter values, and the electronic device may mark or store the query results as a data set.
在一个例子中,电子设备可以接收用户输入的复杂查询语句,对二维表数据进行复杂查询,例如,查询语句可以是标准SQL语句支持的任意查询语句,可以实现条件过滤、分组统计、聚合统计(如COUNT函数统计行数量、SUM函数获取单个列的合计值)、窗口统计等。其中,查询语句还可以包含参数及参数值,电子设备使用参数值替换语句中的参数,交由查询执行引擎执行,查询结果集中的数据。In one example, the electronic device can receive complex query statements input by the user, and perform complex queries on two-dimensional table data. For example, the query statement can be any query statement supported by standard SQL statements, and can implement condition filtering, group statistics, and aggregate statistics. (For example, the COUNT function counts the number of rows, the SUM function obtains the total value of a single column), window statistics, etc. The query statement may also include parameters and parameter values, and the electronic device uses the parameter values to replace the parameters in the statement, and the query execution engine executes the query to query the data in the result set.
在一个例子中,存储空间是内存空间,电子设备在接收到查询指令后,在内存空间中对结果集进行数据查询。由于结果集的数据存储、查询的执行过程都在内存中,所以数据查询的效率非常高。In one example, the storage space is a memory space, and after receiving the query instruction, the electronic device performs data query on the result set in the memory space. Since the data storage of the result set and the execution process of the query are all in the memory, the data query efficiency is very high.
在一个例子中,电子设备存储空间中进行数据查询后,以JSON格式输出查询结果,例如,以JSON数组或单个数字等。In one example, after a data query is performed in the storage space of the electronic device, the query result is output in JSON format, for example, in a JSON array or a single number.
在一个例子中,电子设备还将查询的查询结果,即数据集,封装为消息,发送至消息队列,或将查询结果进行可视化处理,例如作为报表数据展示在报表的折线图、柱状图上等。In one example, the electronic device also encapsulates the query result of the query, that is, a data set, as a message, and sends it to a message queue, or performs visual processing on the query result, such as displaying it as report data on a line graph or a bar graph of the report, etc. .
在一个例子中,电子设备可以在接收到数据源信息后,根据数据源的路径,以预设周期从数据源中获取数据。例如,数据源信息中,可以为获取数据的周期配置为1小时,若电子设备在10:00a.m时从数据源x中获取数据,则在11:00a.m时,电子设备会再从数据源x中获取数据。本实施例中,通过根据数据源的路径,以预设周期从数据源中获取数据,可以从数据源中获取到更新数据,从而实现获取的数据与数据源中的数据同步。In one example, after receiving the data source information, the electronic device may acquire data from the data source at a preset period according to the path of the data source. For example, in the data source information, the data acquisition period can be configured to be 1 hour. If the electronic device acquires data from the data source x at 10:00a.m, then at 11:00a.m, the electronic device will retrieve data from the data source x again. Get data from data source x. In this embodiment, by acquiring data from the data source at a preset period according to the path of the data source, updated data can be acquired from the data source, thereby achieving synchronization between the acquired data and the data in the data source.
在一个例子中,电子设备还可以通过接收数据源发送的数据,从数据源中获取数据。具体地,电子设备在接收到数据源发送的数据后,可以根据数据源信息中的路径,确定发送数据的数据源。数据源在第一次向电子设备发送数据时发送数据源中的所有数据,在后续向电子设备发送的数据可以是所有数据,也可以是更新数据。电子设备接收数据源发送的数据,并将接收的数据更新至存储空间中。其中,数据源在发送更新数据时,可以直接将更新数据发送给电子设备,由电子设备将更新数据转换成统一的结构化数据后,与存储空间中已经存有的此数据源之前发送的数据进行比对,根据比对结果确认更新数据的更新类型,例如新增 数据、修改数据等,再根据更新类型,对更新数据进行对应的操作,例如,将新增数据添加到存储空间中、将修改数据对应存储空间中更新前的原数据。In one example, the electronic device may also acquire data from the data source by receiving data sent by the data source. Specifically, after receiving the data sent by the data source, the electronic device can determine the data source for sending the data according to the path in the data source information. When the data source sends data to the electronic device for the first time, it sends all the data in the data source, and the data sent to the electronic device subsequently may be all data or updated data. The electronic device receives the data sent by the data source, and updates the received data into the storage space. Among them, when the data source sends the updated data, it can directly send the updated data to the electronic device. After the electronic device converts the updated data into unified structured data, it can be compared with the data sent before the data source already stored in the storage space. Carry out comparison, confirm the update type of the updated data according to the comparison result, such as new data, modified data, etc., and then perform corresponding operations on the updated data according to the update type, for example, add the new data to the storage space, The modified data corresponds to the original data before the update in the storage space.
在一个例子中,数据源向电子设备发送更新数据时,还可以向电子设备发送更新信息,其中,更新信息可以包含更新数据的更新类型,若存在更新数据的更新数据为修改数据,更新信息中还包含此修改数据对应的修改前数据的信息。In one example, when the data source sends update data to the electronic device, it can also send update information to the electronic device, where the update information may include the update type of the update data. It also contains information about the data before modification corresponding to this modified data.
本实施例中,通过根据从预先配置的数据源信息,从数据源中获取数据,根据格式定义,获取数据描述信息,将数据以统一的结构化数据存储至预设的存储空间,在接收到查询指令后,在存储空间中进行数据查询,由于描述信息根据数据源信息的格式定义获取,可以根据描述信息,对数据源中获取的数据的格式进行变更,转换为格式统一的结构化数据,因此可以将格式统一的结构化数据进行关联查询,使用统一的查询语言,同时对多个数据源中的数据进行查询,从而实现提高查询效率。In this embodiment, the data is obtained from the data source according to the pre-configured data source information, the data description information is obtained according to the format definition, and the data is stored in the preset storage space as unified structured data. After the query command, the data query is performed in the storage space. Since the description information is obtained according to the format definition of the data source information, the format of the data obtained from the data source can be changed according to the description information and converted into structured data with a unified format. Therefore, it is possible to perform an associated query on structured data with a unified format, use a unified query language, and query data in multiple data sources at the same time, thereby improving query efficiency.
上面各种方法的步骤划分,只是为了描述清楚,实现时可以合并为一个步骤或者对某些步骤进行拆分,分解为多个步骤,只要包括相同的逻辑关系,都在本专利的保护范围内;对算法中或者流程中添加无关紧要的修改或者引入无关紧要的设计,但不改变其算法和流程的核心设计都在该专利的保护范围内。The steps of the above various methods are divided only for the purpose of describing clearly. During implementation, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as the same logical relationship is included, they are all within the protection scope of this patent. ;Adding insignificant modifications to the algorithm or process or introducing insignificant designs, but not changing the core design of the algorithm and process are all within the scope of protection of this patent.
本申请的第二实施例涉及一种数据处理方法。第二实施例与第一实施例大致相同,主要区别之处在于:在本申请第二实施例中,数据具体以二维表数据的形式存储。The second embodiment of the present application relates to a data processing method. The second embodiment is substantially the same as the first embodiment, and the main difference is that: in the second embodiment of the present application, the data is specifically stored in the form of two-dimensional table data.
本实施例涉及一种数据处理方法。具体流程如图3所示:This embodiment relates to a data processing method. The specific process is shown in Figure 3:
步骤301,根据预先配置的数据源信息,从数据源中获取数据;Step 301: Acquire data from a data source according to preconfigured data source information;
步骤302,根据数据源信息中的格式定义,获取数据的描述信息;其中,描述信息,包括:数据的键名、键值类型; Step 302, according to the format definition in the data source information, obtain the description information of the data; wherein, the description information includes: the key name and the key value type of the data;
步骤303,以键名作为二维表中的列名,以键值类型作为与键名对应的列的数据类型,将数据的键值填入与键名对应的列中;其中,二维表存储在预设的存储空间; Step 303, take the key name as the column name in the two-dimensional table, take the key value type as the data type of the column corresponding to the key name, and fill in the key value of the data in the column corresponding to the key name; wherein, the two-dimensional table Stored in the preset storage space;
步骤304,在接收到查询指令后,在存储空间中进行数据查询。 Step 304, after receiving the query instruction, perform data query in the storage space.
其中,步骤301、步骤304与第一实施例中的步骤101、步骤104大致相同,不再赘述。Wherein, step 301 and step 304 are substantially the same as step 101 and step 104 in the first embodiment, and will not be repeated here.
在步骤302中,数据源中的数据是以键值对形式储存的半结构化数据。数据的描述信息可以是数据的键名、键值类型。电子设备在获取数据时,还获取数据的键名和键值类型。In step 302, the data in the data source is semi-structured data stored in the form of key-value pairs. The description information of the data can be the key name and key value type of the data. When the electronic device acquires data, it also acquires the key name and key value type of the data.
在一个例子中,数据源信息中包含参数名称和参数值类型,电子设备根据数据源信息,从数据源中获取符合参数名称和参数值类型的数据。例如,数据源信息中的参数名称为姓名,参数值类型为字符串,则电子设备只获取数据源的所有数据中键名为姓名、且键值类型为字符串的部分,若一个数据有三个键值对,其中,一个键值对的键名为姓名、键值类型为字符串、键值为张三,一个键值对的键名为性别、键值类型为字符串、键值为男,一个键值对的键名为生日、键值类型为日期、键值为02/11/1991,则电子设备从数据源中获取的数据为一个键值对,此键值对的键名为姓名、键值类型为字符串、键值为张三。In one example, the data source information includes a parameter name and a parameter value type, and the electronic device obtains data matching the parameter name and parameter value type from the data source according to the data source information. For example, if the parameter name in the data source information is name and the parameter value type is string, the electronic device only obtains the part of all data in the data source whose key name is name and whose key value type is string. Key-value pair, in which the key name of one key-value pair is name, the key-value type is string, and the key-value is Zhang San, and the key-value pair is gender, the key-value type is string, and the key-value is male. , the key name of a key-value pair is birthday, the key-value type is date, and the key-value is 02/11/1991, then the data obtained by the electronic device from the data source is a key-value pair, and the key-value pair’s key name is The name and key value type are strings, and the key value is Zhang San.
在步骤303中,统一的结构化数据为二维表数据,电子设备以键名作为二维表中的列名,以键值类型作为与键名对应的列的数据类型,将数据的键值填入与键名对应的列中。具体地,电子设备获取数据后,判断二维表中是否存在与键名同名的列,若存在与键名同名的列,则将数据的键值填入,若不存在与键名同名的列,则在二维表中创建一个与键名同名的列,再将数据的键值填入。In step 303, the unified structured data is two-dimensional table data, the electronic device uses the key name as the column name in the two-dimensional table, the key value type is used as the data type of the column corresponding to the key name, and the key value of the data is used as the data type of the column corresponding to the key name. Fill in the column corresponding to the key name. Specifically, after the electronic device obtains the data, it determines whether there is a column with the same name as the key in the two-dimensional table. If there is a column with the same name as the key, the key value of the data is filled in. If there is no column with the same name as the key. , then create a column with the same name as the key in the two-dimensional table, and then fill in the key value of the data.
在一个例子中,存储空间中的二维表与数据源一一对应,电子设备从数据源中获取数据之后,还判断存储空间中是否存在与数据源对应的二维表,若存储空间中不存在与数据源对应的二维表,则在存储空间中创建二维表。In one example, the two-dimensional table in the storage space corresponds to the data source one-to-one. After the electronic device obtains data from the data source, it also determines whether there is a two-dimensional table corresponding to the data source in the storage space. If there is a two-dimensional table corresponding to the data source, a two-dimensional table is created in the storage space.
本实施例中,通过从数据源中获取数据后,在存储空间中创建与数据源一一对应的二维表,方便对存储空间中统一的结构化数据进行查询和管理,可以实现简化结构化数据的管理,和提高查询效率。In this embodiment, after acquiring the data from the data source, a two-dimensional table corresponding to the data source is created in the storage space, which facilitates the query and management of the unified structured data in the storage space, and can simplify the structured data. Data management, and improve query efficiency.
在一个例子中,电子设备使用本申请的数据处理方法,对JSON格式的实时数据进行过滤,然后作为消息体发送至消息队列,供其他应用系统使用,按照如下步骤实施:1、电子设备获取预先配置的数据源信息,其中,数据源的路径为REST接口的URL:/realtime-data,此接口的参数的参数名为moOid,用来过滤监控对象的身份标识oid(object identity document,简称“oid”),数据源中的数据为JSON格式,电子设备获取的描述信息是键名为moOid(监控对象的oid)和smpOid(标准测点的oid)的键值对的键名和键值类型。2、电子设备在内存数据库中创建数据库表,并调用实时数据JSON数据源的接口/realtime-data,获取JSON格式的实时数据。3、电子设备将JSON格式的实时数据,转换为SQL语言的insert语句,将实时数据插入到内存数据库表中,生成此数据源对应的二维数据表,将表中的数据标记为结果集。4、电子设备获取用户输入对结果集进行查询的SQL语句,其中包含与moOid对应和与smpOid对应的查询参数及查询参数值,电子设备执行SQL语句对moOid和smpOid进行查询,过滤不符合查询要求的数据,并输出JSON格式的结果数据集。5、电子设备将结果数据集封装为消息发送至消息队列。In one example, the electronic device uses the data processing method of the present application to filter the real-time data in JSON format, and then sends it to a message queue as a message body for use by other application systems, and is implemented according to the following steps: 1. The configured data source information, where the path of the data source is the URL of the REST interface: /realtime-data, the parameter name of the parameter of this interface is moOid, which is used to filter the identity of the monitoring object oid (object identity document, referred to as "oid" for short). ”), the data in the data source is in JSON format, and the description information obtained by the electronic device is the key name and key value type of the key-value pair with the key names moOid (oid of monitoring object) and smpOid (oid of standard measurement point). 2. The electronic device creates a database table in the memory database, and calls the interface /realtime-data of the real-time data JSON data source to obtain real-time data in JSON format. 3. The electronic device converts the real-time data in JSON format into an insert statement in SQL language, inserts the real-time data into the memory database table, generates a two-dimensional data table corresponding to this data source, and marks the data in the table as a result set. 4. The electronic device obtains the SQL statement input by the user to query the result set, which includes query parameters and query parameter values corresponding to moOid and smpOid. The electronic device executes the SQL statement to query moOid and smpOid, and the filtering does not meet the query requirements data, and output the resulting dataset in JSON format. 5. The electronic device encapsulates the result data set as a message and sends it to the message queue.
在一个例子中,电子设备使用本申请的数据处理方法,对JSON格式的历史数据进行统计并在报表中展示,按照如下步骤实施:1、获取预先配置的数据源信息,其中,数据源的路径为REST接口的URL:/history-data,此接口预设有三个参数:监控对象的oid、开始时间、结束时间,数据源中的数据为JSON格式,电子设备获取的描述信息是键名为moOid(监控对象的oid)、smpOid(标准测点的oid)、timeRange(时间范围)、curValue(时间范围当前值)的键值对。2.电子设备在内存数据库中创建数据库表,并调用历史数据JSON数据源的接口/history-data,获取JSON格式的历史数据。3.电子设备将JSON格式的历史数据,转换为SQL语言的insert语句,将历史数据插入到内存数据库表中,生成此数据源对应的二维数据表,将表中的数据标记为结果集。4.电子设备获取用户输入对结果集进行查询的SQL语句,其中包含与timeRange、moOid、smpOid对应的查询参数及查询参数值。电子设备执行SQL语句,根据查询参数及查询参数值对结果集中的数据进行查询,过滤不符合查询要求的数据,并输出JSON格式的结果数据集。5.电子设备在报表中展示结果数据集。In one example, the electronic device uses the data processing method of the present application to collect statistics on historical data in JSON format and display it in a report, and implement the following steps: 1. Obtain pre-configured data source information, wherein the path of the data source is It is the URL of the REST interface: /history-data. This interface has three preset parameters: oid, start time, and end time of the monitoring object. The data in the data source is in JSON format, and the description information obtained by the electronic device is the key name moOid (oid of monitoring object), smpOid (oid of standard measuring point), timeRange (time range), curValue (current value of time range) key-value pair. 2. The electronic device creates a database table in the memory database, and calls the interface /history-data of the historical data JSON data source to obtain historical data in JSON format. 3. The electronic device converts the historical data in JSON format into an insert statement in SQL language, inserts the historical data into the memory database table, generates a two-dimensional data table corresponding to this data source, and marks the data in the table as a result set. 4. The electronic device obtains the SQL statement input by the user to query the result set, which includes query parameters and query parameter values corresponding to timeRange, moOid, and smpOid. The electronic device executes the SQL statement, queries the data in the result set according to the query parameters and the query parameter values, filters the data that does not meet the query requirements, and outputs the result data set in JSON format. 5. The electronic device displays the resulting dataset in the report.
在一个例子中,电子设备使用本申请的数据处理方法,获取JSON格式的逻辑分组的父子节点关系,在树型控件中进行展示,按照如下步骤实施:1.获取预先配置的逻辑分组父子节点关系的JSON数据源信息,其中,数据源的路径为REST接口的URL:/logic-group-tree,数据源中的数据为JSON格式,电子设备获取的描述信息是键名为oid(逻辑分组oid)、name(逻辑分组名称)、parentOid(逻辑分组父节点oid)的键值对。2.电子设备在内存数据库中创建数据库表,并调用逻辑分组父子节点的JSON数据源的接口/logic-group-tree,获取JSON格式的逻辑分组父子节点数据。3.电子设备将JSON格式的逻辑分组父子节点数据,转换为SQL语言的insert语句,将逻辑分组父子节点数据插入到内存数据库表中,生成此数据源对 应的二维数据表,将表中的数据标记为结果集。4.电子设备获取用户输入对结果集进行查询的SQL语句,其中包含与parentOid对应的查询参数及查询参数值。电子设备执行SQL语句,根据查询参数及查询参数值对结果集中的数据进行查询,过滤不符合查询要求的数据,并输出JSON格式的结果数据集。5.电子设备在树型控件上展示结果数据集。In one example, the electronic device uses the data processing method of the present application to obtain the parent-child node relationship of the logical grouping in JSON format, and displays it in a tree control, and implements it according to the following steps: 1. Obtaining the pre-configured logical grouping parent-child node relationship JSON data source information, where the path of the data source is the URL of the REST interface: /logic-group-tree, the data in the data source is in JSON format, and the description information obtained by the electronic device is the key named oid (logical group oid) , name (logical group name), parentOid (logical group parent node oid) key-value pair. 2. The electronic device creates a database table in the memory database, and calls the interface /logic-group-tree of the JSON data source of the logically grouped parent and child nodes to obtain the logically grouped parent and child node data in JSON format. 3. The electronic device converts the logically grouped parent-child node data in JSON format into an insert statement in SQL language, inserts the logically grouped parent-child node data into the memory database table, generates a two-dimensional data table corresponding to this data source, and converts the data in the table. Data is marked as a result set. 4. The electronic device obtains the SQL statement input by the user to query the result set, which includes query parameters and query parameter values corresponding to parentOid. The electronic device executes the SQL statement, queries the data in the result set according to the query parameters and the query parameter values, filters the data that does not meet the query requirements, and outputs the result data set in JSON format. 5. The electronic device displays the result data set on the tree control.
本实施例中,通过以键名作为二维表中的列名,以键值类型作为与键名对应的列的数据类型,将数据的键值填入与键名对应的列中,以二维表数据为统一的结构化数据,可以实现将数据源中获取的数据转换为统一的结构化数据;同时,通过将数据源中的数据转换为二维表数据,可以基于二维表结构实现各种复杂查询,因此本申请的数据处理方法可以实现提高查询效率。In this embodiment, the key name is used as the column name in the two-dimensional table, and the key value type is used as the data type of the column corresponding to the key name, and the key value of the data is filled in the column corresponding to the key name. The dimension table data is unified structured data, which can realize the conversion of the data obtained from the data source into unified structured data; at the same time, by converting the data in the data source into two-dimensional table data, it can be realized based on the two-dimensional table structure. Various complex queries, so the data processing method of the present application can improve the query efficiency.
上面各种方法的步骤划分,只是为了描述清楚,实现时可以合并为一个步骤或者对某些步骤进行拆分,分解为多个步骤,只要包括相同的逻辑关系,都在本专利的保护范围内;对算法中或者流程中添加无关紧要的修改或者引入无关紧要的设计,但不改变其算法和流程的核心设计都在该专利的保护范围内。The steps of the above various methods are divided only for the purpose of describing clearly. During implementation, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as the same logical relationship is included, they are all within the protection scope of this patent. ;Adding insignificant modifications to the algorithm or process or introducing insignificant designs, but not changing the core design of the algorithm and process are all within the scope of protection of this patent.
本申请的第三实施例涉及一种数据查询方法,具体流程如图4所示,包括:The third embodiment of the present application relates to a data query method, and the specific process is shown in FIG. 4 , including:
步骤401,在接收到半结构化查询指令后,将查询指令转换为结构化查询指令; Step 401, after receiving the semi-structured query instruction, convert the query instruction into a structured query instruction;
步骤402,根据结构化查询指令,在预设的用于存储统一的结构化数据的存储空间中进行数据查询; Step 402, according to the structured query instruction, perform data query in a preset storage space for storing unified structured data;
步骤403,将数据查询得到的结构化查询结果,转换为半结构化查询结果。Step 403: Convert the structured query result obtained by the data query into a semi-structured query result.
本实施例的数据查询方法,应用于数据查询装置,例如,可以进行数据查询的电子设备中。特别地,数据查询装置还可以是第一实施例中的查询执行引擎。当使用服务器等电子设备,对大数据进行数据分析时,可以使用本实施例的数据查询方法,从大数据中获取到所需的数据。The data query method of this embodiment is applied to a data query device, for example, an electronic device that can perform data query. In particular, the data query apparatus may also be the query execution engine in the first embodiment. When an electronic device such as a server is used to perform data analysis on the big data, the data query method in this embodiment can be used to obtain the required data from the big data.
在步骤401中,电子设备在接收到半结构化查询指令后,将查询指令转换为统一的结构化数据对应的结构化查询指令。其中,半结构化查询指令是用户输入的由半结构化数据查询格式表示的查询语句,半结构化数据例如为JSON、XML或CSV等格式的数据;结构化查询指令是可以是标准SQL语句等用于查询结构化数据的查询语句。In step 401, after receiving the semi-structured query instruction, the electronic device converts the query instruction into a structured query instruction corresponding to unified structured data. The semi-structured query instruction is a query statement entered by the user and represented by a semi-structured data query format. A query statement for querying structured data.
具体地,电子设备可以调用将半结构化查询指令对应转换成结构化查询指令的第一转换函数,将半结构化查询指令中的查询信息填入预先生成的结构化查询语句模板中,得到结构化查询指令。其中,第一转换函数可以根据描述信息生成。Specifically, the electronic device can call the first conversion function that converts the semi-structured query instruction correspondingly into the structured query instruction, and fills the query information in the semi-structured query instruction into the pre-generated structured query statement template to obtain the structure query command. Wherein, the first conversion function can be generated according to the description information.
在步骤402中,电子设备根据结构化查询指令,在预设的用于存储统一的结构化数据的存储空间中进行数据查询,得到结构化数据格式的查询结构,即,结构化查询结果。In step 402, the electronic device performs a data query in a preset storage space for storing unified structured data according to the structured query instruction, and obtains a query structure in a structured data format, that is, a structured query result.
在步骤403中,电子设备将数据查询得到的结构化查询结果,转换为半结构化查询结果。具体地,电子设备可以调用将结构化数据转换成半结构化数据的第二转换函数,将结构化查询结果中的数据对应填入预先生成的半结构化数据模板中,得到半结构化查询结果。其中,第二转换函数可以根据描述信息生成。In step 403, the electronic device converts the structured query result obtained by the data query into a semi-structured query result. Specifically, the electronic device can call a second conversion function that converts structured data into semi-structured data, and correspondingly fill in the data in the structured query result into the pre-generated semi-structured data template to obtain the semi-structured query result . Wherein, the second conversion function can be generated according to the description information.
在一个例子中,电子设备使用本实施例的数据查询方法进行数据查询,其中,半结构化查询指令是JSON格式的查询语句,结构化查询指令是SQL语句,存储统一的结构化数据的存储空间为内存空间。电子设备在接收到用户输入的JSON格式的查询语句后,将JSON格式的查询语句转换成SQL语句,并在内存空间中使用转换得到的SQL语句对内存中的二维 表格式数据进行查询。在得到数据查询结果后,电子设备将二维表格式的查询结果转换为JSON格式,并向用户输出。In an example, the electronic device uses the data query method of this embodiment to perform data query, wherein the semi-structured query instruction is a query statement in JSON format, the structured query instruction is an SQL statement, and a storage space for storing unified structured data for memory space. After receiving the query statement in JSON format input by the user, the electronic device converts the query statement in JSON format into SQL statement, and uses the converted SQL statement to query the two-dimensional table format data in the memory in the memory space. After obtaining the data query result, the electronic device converts the query result in the two-dimensional table format into JSON format, and outputs it to the user.
本实施例中,通过将查询指令转换为结构化查询指令,根据结构化查询指令,在预设的用于存储统一的结构化数据的存储空间中进行数据查询,将数据查询得到的结构化查询结果,转换为半结构化查询结果,可以实现在半结构化的应用场景中,以半结构化格式的查询语言,对多种数据格式的数据源进行关联查询,得到可直接应用的半结构化数据,从而在提高查询效率的同时,更加满足实际应用需求。In this embodiment, by converting the query instruction into a structured query instruction, according to the structured query instruction, data query is performed in a preset storage space for storing unified structured data, and the structured query obtained by the data query is performed. As a result, it can be converted into semi-structured query results, and in semi-structured application scenarios, the query language in semi-structured format can be used to perform related queries on data sources in various data formats, and a semi-structured directly applicable semi-structured query can be obtained. data, so as to improve the query efficiency and better meet the actual application needs.
由于上述第一、第二实施例与本实施例相互对应,因此本实施例可与上述实施例互相配合实施。上述实施例中提到的相关技术细节在本实施例中依然有效,在上述实施例中所能达到的技术效果在本实施例中也同样可以实现,为了减少重复,这里不再赘述。相应地,本实施例中提到的相关技术细节也可应用在上述实施例中。Since the above-mentioned first and second embodiments correspond to this embodiment, this embodiment can be implemented in cooperation with the above-mentioned embodiments. The relevant technical details mentioned in the foregoing embodiment are still valid in this embodiment, and the technical effects that can be achieved in the foregoing embodiment can also be realized in this embodiment, and in order to reduce repetitions, details are not repeated here. Correspondingly, the relevant technical details mentioned in this embodiment can also be applied to the above-mentioned embodiments.
上面各种方法的步骤划分,只是为了描述清楚,实现时可以合并为一个步骤或者对某些步骤进行拆分,分解为多个步骤,只要包括相同的逻辑关系,都在本专利的保护范围内;对算法中或者流程中添加无关紧要的修改或者引入无关紧要的设计,但不改变其算法和流程的核心设计都在该专利的保护范围内。The steps of the above various methods are divided only for the purpose of describing clearly. During implementation, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as the same logical relationship is included, they are all within the protection scope of this patent. ;Adding insignificant modifications to the algorithm or process or introducing insignificant designs, but not changing the core design of the algorithm and process are all within the scope of protection of this patent.
本申请第四实施例涉及一种数据处理装置,如图5所示,包括:The fourth embodiment of the present application relates to a data processing apparatus, as shown in FIG. 5 , including:
获取模块501,用于根据预先配置的数据源信息,从数据源中获取数据;an acquisition module 501, configured to acquire data from a data source according to preconfigured data source information;
描述模块502,用于根据数据源信息中的格式定义,获取数据的描述信息;A description module 502, configured to obtain description information of the data according to the format definition in the data source information;
转换模块503,用于根据描述信息,将数据以统一的结构化数据存储至预设的存储空间;The conversion module 503 is used to store the data in a preset storage space with unified structured data according to the description information;
查询模块504,用于在接收到查询指令后,在存储空间中进行数据查询。The query module 504 is configured to perform data query in the storage space after receiving the query instruction.
在一个例子中,描述信息,包括:数据的键名、键值类型;统一的结构化数据为二维表数据;转换模块503具体用于以键名作为二维表中的列名,以键值类型作为与键名对应的列的数据类型,将数据的键值填入与键名对应的列中;其中,二维表存储在预设的存储空间。In one example, the description information includes: the key name and key value type of the data; the unified structured data is two-dimensional table data; the conversion module 503 is specifically configured to use the key name as the column name in the two-dimensional table, and use the key name as the column name in the two-dimensional table. The value type is used as the data type of the column corresponding to the key name, and the key value of the data is filled in the column corresponding to the key name; wherein, the two-dimensional table is stored in the preset storage space.
在一个例子中,二维表与数据源一一对应;数据查询装置还包括创建模块,用于在数据源中获取数据之后,若存储空间中不存在与数据源对应的二维表,则在存储空间中创建二维表。In one example, the two-dimensional table is in one-to-one correspondence with the data source; the data query device further includes a creation module for obtaining data from the data source, if there is no two-dimensional table corresponding to the data source in the storage space, then Create a two-dimensional table in the storage space.
在一个例子中,存储空间包括内存空间;获取模块501,具体用于从数据源中获取符合预设参数名称和预设参数值类型的数据;数据源信息中包括参数名称和参数值类型。In one example, the storage space includes a memory space; the obtaining module 501 is specifically configured to obtain data from a data source that conforms to a preset parameter name and a preset parameter value type; the data source information includes the parameter name and parameter value type.
在一个例子中,数据源信息包括:数据源的路径;获取模块501,具体用于根据数据源的路径,以预设周期从数据源中获取数据。In one example, the data source information includes: the path of the data source; the obtaining module 501 is specifically configured to obtain data from the data source at a preset period according to the path of the data source.
在一个例子中,查询模块504,还用于将查询的查询结果封装为消息,发送至消息队列,或将查询结果进行可视化处理。In one example, the query module 504 is further configured to encapsulate the query result of the query into a message, send it to a message queue, or perform visual processing on the query result.
不难发现,本实施例为与第一、第二实施例相对应的装置实施例,本实施例可与第一、第二实施例互相配合实施。第一、第二实施例中提到的相关技术细节在本实施例中依然有效,为了减少重复,这里不再赘述。相应地,本实施例中提到的相关技术细节也可应用在第一、第二实施例中。It is not difficult to find that this embodiment is a device embodiment corresponding to the first and second embodiments, and this embodiment can be implemented in cooperation with the first and second embodiments. The relevant technical details mentioned in the first and second embodiments are still valid in this embodiment, and are not repeated here in order to reduce repetition. Correspondingly, the related technical details mentioned in this embodiment can also be applied to the first and second embodiments.
值得一提的是,本实施例中所涉及到的各模块均为逻辑模块,在实际应用中,一个逻辑单元可以是一个物理单元,也可以是一个物理单元的一部分,还可以以多个物理单元的组合实现。此外,为了突出本申请的创新部分,本实施例中并没有将与解决本申请所提出的技术 问题关系不太密切的单元引入,但这并不表明本实施例中不存在其它的单元。It is worth mentioning that all the modules involved in this embodiment are logical modules. In practical applications, a logical unit may be a physical unit, a part of a physical unit, or multiple physical units. A composite implementation of the unit. In addition, in order to highlight the innovative part of the present application, this embodiment does not introduce units that are not very closely related to solving the technical problem proposed by the present application, but this does not mean that there are no other units in this embodiment.
本申请第五实施例涉及一种数据查询装置,如图6所示,包括:The fifth embodiment of the present application relates to a data query device, as shown in FIG. 6 , including:
查询转换模块601,用于在接收到半结构化查询指令后,将查询指令转换为结构化查询指令;The query conversion module 601 is configured to convert the query instruction into a structured query instruction after receiving the semi-structured query instruction;
结构查询模块602,用于根据结构化查询指令,在预设的用于存储统一的结构化数据的存储空间中进行数据查询;The structure query module 602 is configured to perform data query in the preset storage space for storing unified structured data according to the structured query instruction;
结果转换模块603,用于将数据查询得到的结构化查询结果,转换为半结构化查询结果。The result conversion module 603 is configured to convert the structured query result obtained by the data query into a semi-structured query result.
不难发现,本实施例为与第三实施例相对应的装置实施例,本实施例可与第三实施例互相配合实施。第三实施例中提到的相关技术细节在本实施例中依然有效,为了减少重复,这里不再赘述。相应地,本实施例中提到的相关技术细节也可应用在第三实施例中。It is not difficult to find that this embodiment is a device embodiment corresponding to the third embodiment, and this embodiment can be implemented in cooperation with the third embodiment. The related technical details mentioned in the third embodiment are still valid in this embodiment, and are not repeated here in order to reduce repetition. Correspondingly, the relevant technical details mentioned in this embodiment can also be applied in the third embodiment.
值得一提的是,本实施例中所涉及到的各模块均为逻辑模块,在实际应用中,一个逻辑单元可以是一个物理单元,也可以是一个物理单元的一部分,还可以以多个物理单元的组合实现。此外,为了突出本申请的创新部分,本实施例中并没有将与解决本申请所提出的技术问题关系不太密切的单元引入,但这并不表明本实施例中不存在其它的单元。It is worth mentioning that all the modules involved in this embodiment are logical modules. In practical applications, a logical unit may be a physical unit, a part of a physical unit, or multiple physical units. A composite implementation of the unit. In addition, in order to highlight the innovative part of the present application, this embodiment does not introduce units that are not closely related to solving the technical problem raised by the present application, but this does not mean that there are no other units in this embodiment.
本申请第六实施例涉及一种电子设备,如图7所示,包括:至少一个处理器701;与至少一个处理器通信连接的存储器702;其中,存储器702存储有可被至少一个处理器701执行的指令,指令被至少一个处理器701执行上述的数据处理方法或者上述的数据查询方法。The sixth embodiment of the present application relates to an electronic device, as shown in FIG. 7 , comprising: at least one processor 701; The executed instruction, the instruction is executed by at least one processor 701 to execute the above-mentioned data processing method or the above-mentioned data query method.
其中,存储器702和处理器701采用总线方式连接,总线可以包括任意数量的互联的总线和桥,总线将一个或多个处理器701和存储器702的各种电路连接在一起。总线还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路连接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口在总线和收发机之间提供接口。收发机可以是一个元件,也可以是多个元件,比如多个接收器和发送器,提供用于在传输介质上与各种其他装置通信的单元。经处理器701处理的信息通过天线在无线介质上进行传输,进一步,天线还接收信息并将信息传送给处理器701。The memory 702 and the processor 701 are connected by a bus, and the bus may include any number of interconnected buses and bridges, and the bus connects one or more processors 701 and various circuits of the memory 702 together. The bus may also connect together various other circuits, such as peripherals, voltage regulators, and power management circuits, which are well known in the art and therefore will not be described further herein. The bus interface provides the interface between the bus and the transceiver. A transceiver may be a single element or multiple elements, such as multiple receivers and transmitters, providing a means for communicating with various other devices over a transmission medium. The information processed by the processor 701 is transmitted on the wireless medium through the antenna, and further, the antenna also receives the information and transmits the information to the processor 701 .
处理器701负责管理总线和通常的处理,还可以提供各种功能,包括定时,外围接口,电压调节、电源管理以及其他控制功能。而存储器702可以被用于存储处理器在执行操作时所使用的信息。 Processor 701 is responsible for managing the bus and general processing, and may also provide various functions including timing, peripheral interface, voltage regulation, power management, and other control functions. Instead, memory 702 may be used to store information used by the processor in performing operations.
本申请第七实施例涉及一种计算机可读存储介质,存储有计算机程序。计算机程序被处理器执行时实现上述方法实施例。The seventh embodiment of the present application relates to a computer-readable storage medium storing a computer program. The above method embodiments are implemented when the computer program is executed by the processor.
即,本领域技术人员可以理解,实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,简称:ROM)、随机存取存储器(Random Access Memory,简称:RAM)、磁碟或者光盘等各种可以存储程序代码的介质。That is, those skilled in the art can understand that all or part of the steps in the method for implementing the above embodiments can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium and includes several instructions to make a device ( It may be a single chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, Read-Only Memory (ROM for short), Random Access Memory (RAM for short), magnetic disk or optical disk, etc. medium of program code.
本领域的普通技术人员可以理解,上述各实施例是实现本申请的具体实施例,而在实际应用中,可以在形式上和细节上对其作各种改变,而不偏离本申请的精神和范围。Those of ordinary skill in the art can understand that the above-mentioned embodiments are specific embodiments for realizing the present application, and in practical applications, various changes in form and details can be made without departing from the spirit and the spirit of the present application. scope.

Claims (12)

  1. 一种数据处理方法,包括:A data processing method comprising:
    根据预先配置的数据源信息,从所述数据源中获取数据;Acquire data from the data source according to preconfigured data source information;
    根据所述数据源信息中的格式定义,获取所述数据的描述信息;Obtain the description information of the data according to the format definition in the data source information;
    根据所述描述信息,将所述数据以统一的结构化数据存储至预设的存储空间;According to the description information, store the data in a preset storage space as unified structured data;
    在接收到查询指令后,在所述存储空间中进行数据查询。After receiving the query instruction, perform data query in the storage space.
  2. 根据权利要求1所述的数据处理方法,其中,所述描述信息,包括:数据的键名、键值类型;所述统一的结构化数据为二维表数据;The data processing method according to claim 1, wherein the description information includes: a key name and a key value type of the data; the unified structured data is two-dimensional table data;
    所述根据所述描述信息,将所述数据以统一的结构化数据存储至预设的存储空间,包括:The storing of the data in the preset storage space as unified structured data according to the description information includes:
    以所述键名作为二维表中的列名,以所述键值类型作为与所述键名对应的列的数据类型,将所述数据的键值填入与所述键名对应的列中;其中,所述二维表存储在所述预设的存储空间。Use the key name as the column name in the two-dimensional table, use the key value type as the data type of the column corresponding to the key name, and fill in the key value of the data into the column corresponding to the key name wherein, the two-dimensional table is stored in the preset storage space.
  3. 根据权利要求2所述的数据处理方法,其中,所述二维表与所述数据源一一对应;所述从所述数据源中获取数据之后,还包括:The data processing method according to claim 2, wherein the two-dimensional table is in one-to-one correspondence with the data source; after acquiring the data from the data source, the method further comprises:
    若所述存储空间中不存在与所述数据源对应的二维表,则在所述存储空间中创建所述二维表。If the two-dimensional table corresponding to the data source does not exist in the storage space, the two-dimensional table is created in the storage space.
  4. 根据权利要求1至3中任一项所述的数据处理方法,其中,所述存储空间包括内存空间;The data processing method according to any one of claims 1 to 3, wherein the storage space comprises a memory space;
    所述从所述数据源中获取数据,包括:The acquiring data from the data source includes:
    从所述数据源中获取符合预设参数名称和预设参数值类型的数据;所述数据源信息中包括所述参数名称和所述参数值类型。Acquire data conforming to a preset parameter name and a preset parameter value type from the data source; the data source information includes the parameter name and the parameter value type.
  5. 根据权利要求4所述的数据处理方法,其中,所述数据源信息中还包括时间范围;所述从所述数据源中获取符合预设参数名称和预设参数值类型的数据,包括:The data processing method according to claim 4, wherein the data source information further includes a time range; and the acquiring data conforming to a preset parameter name and a preset parameter value type from the data source includes:
    所述从所述数据源中获取处于所述时间范围内的符合预设参数名称和预设参数值类型的数据。The data that conforms to the preset parameter name and the preset parameter value type within the time range is obtained from the data source.
  6. 根据权利要求1至5中任一项所述的数据处理方法,其中,所述数据源信息包括:数据源的路径;The data processing method according to any one of claims 1 to 5, wherein the data source information comprises: a path of the data source;
    所述根据预先配置的数据源信息,从所述数据源中获取数据,包括:The obtaining data from the data source according to the pre-configured data source information includes:
    根据数据源的路径,以预设周期从所述数据源中获取数据。According to the path of the data source, data is obtained from the data source at a preset period.
  7. 根据权利要求1至6中任一项所述的数据处理方法,其中,所述在所述存储空间中进行数据查询后,还包括:The data processing method according to any one of claims 1 to 6, wherein after performing the data query in the storage space, the method further comprises:
    将所述查询的查询结果封装为消息,发送至消息队列,或将所述查询结果进行可视化处理。The query result of the query is encapsulated into a message and sent to a message queue, or the query result is visualized.
  8. 一种数据查询方法,包括:A data query method, including:
    在接收到半结构化查询指令后,将所述查询指令转换为结构化查询指令;After receiving the semi-structured query instruction, convert the query instruction into a structured query instruction;
    根据所述结构化查询指令,在预设的用于存储统一的结构化数据的存储空间中进行数据查询;According to the structured query instruction, perform data query in a preset storage space for storing unified structured data;
    将所述数据查询得到的结构化查询结果,转换为半结构化查询结果。The structured query result obtained by the data query is converted into a semi-structured query result.
  9. 一种数据处理装置,包括:A data processing device, comprising:
    获取模块,用于根据预先配置的数据源信息,从所述数据源中获取数据;an acquisition module, configured to acquire data from the data source according to preconfigured data source information;
    描述模块,用于根据所述数据源信息中的格式定义,获取所述数据的描述信息;a description module, configured to obtain description information of the data according to the format definition in the data source information;
    转换模块,用于根据所述描述信息,将所述数据以统一的结构化数据存储至预设的存储空间;a conversion module, configured to store the data in a preset storage space as unified structured data according to the description information;
    查询模块,用于在接收到查询指令后,在所述存储空间中进行数据查询。The query module is configured to perform data query in the storage space after receiving the query instruction.
  10. 一种数据查询装置,包括:A data query device, comprising:
    查询转换模块,用于在接收到半结构化查询指令后,将所述查询指令转换为结构化查询指令;a query conversion module, configured to convert the query instruction into a structured query instruction after receiving the semi-structured query instruction;
    结构查询模块,用于根据所述结构化查询指令,在预设的用于存储统一的结构化数据的存储空间中进行数据查询;a structural query module, configured to perform data query in a preset storage space for storing unified structured data according to the structured query instruction;
    结果转换模块,用于将所述数据查询得到的结构化查询结果,转换为半结构化查询结果。The result conversion module is used for converting the structured query result obtained by the data query into a semi-structured query result.
  11. 一种电子设备,包括:An electronic device comprising:
    至少一个处理器;at least one processor;
    与所述至少一个处理器通信连接的存储器;a memory communicatively coupled to the at least one processor;
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如权利要求1至7中任一项所述的数据处理方法,或如权利要求8所述的数据查询方法。The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the execution of any one of claims 1 to 7 The data processing method described in claim 8, or the data query method described in claim 8.
  12. 一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1至7中任一项所述的数据处理方法,或实现权利要求8所述的数据查询方法。A computer-readable storage medium storing a computer program, when the computer program is executed by a processor, the data processing method according to any one of claims 1 to 7, or the data query method according to claim 8 is realized .
PCT/CN2021/128503 2020-12-21 2021-11-03 Data processing method and apparatus, data querying method and apparatus, electronic device, and storage medium WO2022134878A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011519522.4A CN114647660A (en) 2020-12-21 2020-12-21 Data processing method, data query method, data processing device, data query device, electronic equipment and storage medium
CN202011519522.4 2020-12-21

Publications (1)

Publication Number Publication Date
WO2022134878A1 true WO2022134878A1 (en) 2022-06-30

Family

ID=81990615

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/128503 WO2022134878A1 (en) 2020-12-21 2021-11-03 Data processing method and apparatus, data querying method and apparatus, electronic device, and storage medium

Country Status (2)

Country Link
CN (1) CN114647660A (en)
WO (1) WO2022134878A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115630196A (en) * 2022-10-18 2023-01-20 曙光云计算集团有限公司 Data query method, data query device, computer equipment, storage medium and program product

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116028579A (en) * 2023-02-27 2023-04-28 南昌国讯信息技术股份有限公司 Database synchronization method, electronic device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001093599A2 (en) * 2000-06-01 2001-12-06 Wisengine Inc. Method and apparatus for unified query interface for network information
CN101087210A (en) * 2007-05-22 2007-12-12 网御神州科技(北京)有限公司 High-performance Syslog processing and storage method
CN103678484A (en) * 2013-10-28 2014-03-26 淮南矿业(集团)有限责任公司 Multi-source data processing system of coal mining subsidence area
CN106202235A (en) * 2016-06-28 2016-12-07 微梦创科网络科技(中国)有限公司 A kind of data processing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001093599A2 (en) * 2000-06-01 2001-12-06 Wisengine Inc. Method and apparatus for unified query interface for network information
CN101087210A (en) * 2007-05-22 2007-12-12 网御神州科技(北京)有限公司 High-performance Syslog processing and storage method
CN103678484A (en) * 2013-10-28 2014-03-26 淮南矿业(集团)有限责任公司 Multi-source data processing system of coal mining subsidence area
CN106202235A (en) * 2016-06-28 2016-12-07 微梦创科网络科技(中国)有限公司 A kind of data processing method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115630196A (en) * 2022-10-18 2023-01-20 曙光云计算集团有限公司 Data query method, data query device, computer equipment, storage medium and program product

Also Published As

Publication number Publication date
CN114647660A (en) 2022-06-21

Similar Documents

Publication Publication Date Title
CN108292323B (en) Database operations using metadata of data sources
WO2022134878A1 (en) Data processing method and apparatus, data querying method and apparatus, electronic device, and storage medium
CN103744891B (en) A kind of data query method and system
US9524283B2 (en) Techniques to remotely access form information and generate a form
US9342556B2 (en) RDF graphs made of RDF query language queries
CN107241227B (en) Configuration and generation method of network data report
KR102239127B1 (en) Querying data sources on the network
US20210256079A1 (en) Adapting database queries for data virtualization over combined database stores
WO2017156916A1 (en) Data access method and device
US20200117733A1 (en) Blockchain integration layer
US20090022312A1 (en) Apparatus and method for document synchronization
WO2018064065A1 (en) Systems and methods for context-sensitive data annotation and annotation visualization
GB2514779A (en) Information retrieval from a database system
CN116954607A (en) Multi-source heterogeneous real-time task processing method, system, equipment and medium
US20190042603A1 (en) Automated Generation of Data Schemata for Application Programming Interfaces
US11238059B2 (en) Facilitating construction of a user interface
US20140101280A1 (en) Generic serializer framework
US9075887B2 (en) Method and system for creating pervasive data form reporting
CN105574016A (en) Method for half-structured Web information extraction technology
US9946737B2 (en) System and method for simplifying data access between tiers in a multi-tier system
CN109508183B (en) REST code generation method and device in storage cluster
US8069172B2 (en) Re-executing query objects without affecting transaction data in an application development framework not providing for creation of multiple instances of the same query object
CN117743360A (en) Data query method and electronic equipment
US20150261864A1 (en) Computer Systems and Method for Obtaining Produced Content
CN117234477A (en) Method for automatically generating dynamic visual configuration interface based on built-in XSD (X-ray diffraction) parser

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21908879

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21908879

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 021123)