Unlock instant, AI-driven research and patent intelligence for your innovation.

A data conversion method and system

A data and data set technology, applied in the field of data processing, which can solve the problems of cumbersome and error-prone

Active Publication Date: 2018-03-23
RUN TECH CO LTD BEIJING
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In an information system, the instance data of one data set is usually converted to the instance data of another data set according to the needs of the work. In order to support changes in the number of data sets or changes in the definition of data sets, the usual practice is to Manually modify the corresponding conversion code in the application and recompile the entire application. This method is very cumbersome and error-prone. When the data set changes, the entire application needs to be compiled

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A data conversion method and system
  • A data conversion method and system
  • A data conversion method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0023] figure 1 A flow chart of a data conversion method provided in Embodiment 1 of the present invention; the method can be executed by a data conversion system, and based on the system, it can be implemented by software and / or hardware, such as figure 1 As shown, the methods described include:

[0024] S110: Define each data set through an extensible markup language.

[0025] In this embodiment, the data type, data sequence, data size, and data length in the data set are defined by extensible markup language. For example, the data type of the data set defined by XML may be an integer value, the size of the defined data is 8 bytes, and the like.

[0026] S120: Process the definition of each data set, and generate various intermediate data corresponding to each data set.

[0027] In this embodiment, the processing defined for each data set is executed through a data set preprocessing program. The intermediate data includes the definition file of Protocol Buffer correspond...

Embodiment 2

[0057] Figure 4 It is a structural block diagram of a data conversion system provided in Embodiment 2 of the present invention, and the application of the data conversion system can perform data conversion, such as Figure 4 As shown, the system includes: a data definition module 401 , an intermediate data generation module 402 , a dynamic link library generation module 403 and a Protocol Buffer object operation module 404 .

[0058] The data set definition module 401 is used to define each data set through the extensible markup language, wherein the data set definition module 401 is specifically used to: use the extensible markup language to define the data type, data order, data size and The data length is defined.

[0059] The intermediate data generating module 402 is configured to process the definition of each data set and generate various intermediate data corresponding to each data set.

[0060] In this embodiment, the intermediate data includes the definition file ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present invention discloses a data conversion method and system. The method comprises: defining each data set by using an extensive markup language; processing the definition of each data set, and generating various intermediate data corresponding to each data set; based on the various intermediate data and a pre-written dynamic link library skeleton code file, generating a dynamic link library; and calling an application programming interface of the dynamic link library to create a protocol buffer object, and operating the protocol buffer object by a corresponding application programming interface. According to the data conversion method and system provided by the present invention, change of data sets can be adapted automatically and efficiently, so that data conversion between the data sets is realized without the need for changing application codes.

Description

technical field [0001] The invention relates to the technical field of data processing, in particular to a data conversion method and system. Background technique [0002] Extensible Markup Language (XML) has the characteristics of simplicity, structure, scalability, interoperability, openness, versatility, flexibility, etc. , data management, knowledge management, information retrieval and many other fields have been widely used. [0003] In the application of data conversion, the data set defined by XML is usually used to convert the instance data in the data set through a series of processes. In an information system, the instance data of one data set is usually converted to the instance data of another data set according to the needs of the work. In order to support changes in the number of data sets or changes in the definition of data sets, the usual practice is to Manually modify the corresponding conversion code in the application and recompile the entire applicati...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F17/22
CPCG06F40/154
Inventor 谢建乐
Owner RUN TECH CO LTD BEIJING