Data processing method, device, readable storage medium and data system

By obtaining folders and pages in the Axure software and extracting target data according to the data format, the development and maintenance costs of parsing different versions of files are solved, and accurate data extraction and storage optimization are achieved.

CN115794208BActive Publication Date: 2026-06-02YONYOU NETWORK TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
YONYOU NETWORK TECH CO LTD
Filing Date
2022-12-02
Publication Date
2026-06-02

AI Technical Summary

Technical Problem

In existing technologies, as Axure software versions are updated, different solutions need to be developed for each version, leading to increased development and maintenance costs and making it impossible to effectively parse the file content of different versions.

Method used

By obtaining the files in the target folder, identifying the target files and pages, determining the data extraction method based on the data format, extracting multiple target data from the target files, and combining them into a unified structured data set, the need to develop multiple solutions for different data formats is avoided.

Benefits of technology

It reduces the development and maintenance costs of data systems, ensures accurate data extraction from different data format files, saves storage space, and improves the ease of application of data sets.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115794208B_ABST
    Figure CN115794208B_ABST
Patent Text Reader

Abstract

The application provides a data processing method, device, readable storage medium and data system. The data processing method comprises the following steps: obtaining a target folder, determining a target file in the target folder, and a target page corresponding to the target file; determining a data extraction method according to a data format of the target file; determining a plurality of target data in the target file according to the target page and the data extraction method; and determining a target data set corresponding to the target file according to the plurality of target data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data processing technology, and more specifically, to a data processing method, apparatus, readable storage medium, and data system. Background Technology

[0002] Currently, Axure software (a rapid prototyping tool) is often used to design product prototypes. When viewing product prototypes using Axure software, it is necessary to parse the files inside the Axure software. However, different versions of Axure software have different file contents and data formats, and it is impossible to determine the specific software version corresponding to the file during the parsing process.

[0003] In existing technologies, a solution is implemented for each version. As the Axure software is continuously updated, the number of solutions that need to be developed also increases, which significantly increases development and maintenance costs. Summary of the Invention

[0004] The present invention aims to solve at least one of the technical problems existing in the prior art or related art.

[0005] Therefore, the first aspect of the present invention is to provide a data processing method.

[0006] A second aspect of the present invention is to provide a data processing apparatus.

[0007] A third aspect of the present invention is to provide a data processing apparatus.

[0008] A fourth aspect of the present invention is to provide a readable storage medium.

[0009] The fifth aspect of the present invention is to provide a data system.

[0010] In view of this, according to a first aspect of the present invention, a data processing method is proposed, the data processing method comprising: obtaining a target folder, determining a target file in the target folder, and a target page corresponding to the target file; determining a data extraction method according to the data format of the target file; determining multiple target data in the target file according to the target page and the data extraction method; and determining a target data set corresponding to the target file according to the multiple target data.

[0011] This technical solution provides a data processing method for a data system. The data system stores multiple folders, and each folder contains files in various data formats. The data processing device can obtain a target folder in the data system, which is a data folder that needs to be parsed and processed.

[0012] For example, the data system can be specifically a database within the Axure software (a rapid prototyping tool), and the target folder can be specifically a folder imported into the Axure software.

[0013] For example, the target folder can be specifically the data directory folder in the Axure software.

[0014] Furthermore, the data processing device determines the target file in the target folder and determines the target page based on the target file. It should be noted that the target file is a file that stores page data, which includes data information corresponding to each element in the page, and the target page is the display page corresponding to the target file.

[0015] For example, the target file can be a data file of a product prototype imported into the Axure software, and the target page can be a display page corresponding to the product prototype.

[0016] Furthermore, the data processing device parses the target file, determines the data format of the data in the target file, and determines the data extraction method of the target file based on the data format.

[0017] It should be noted that the data extraction method is a data processing method for extracting data from the target file. The data processing device determines the corresponding data extraction method for the target file based on the data format of the target file. This eliminates the need to pre-store multiple data extraction methods within the system, thus reducing the maintenance cost of the data system.

[0018] For example, the data format can be specifically the format corresponding to data on a component-by-component basis, and the data extraction method can be specifically the data processing method that extracts data information corresponding to a component on a component-by-component basis, wherein the component can be a component on the display interface used to display content.

[0019] Furthermore, the data processing device extracts multiple target data from the target file by combining the data extraction method with the target interface, wherein the multiple target data are valid data in the target file.

[0020] For example, the data processing device determines the basic information corresponding to the components in the target file through the target page, and extracts the valid data in the target file through the data extraction method, and then combines the basic information and valid data into target data.

[0021] Furthermore, after extracting multiple target data from the target file, the data processing device performs data combination processing on the multiple target data to obtain the target data set corresponding to the target file, wherein the target data set is a data set storing uniformly structured data.

[0022] For example, the target dataset can be specifically a dataset that stores data in a custom data structure.

[0023] For example, the data processing device can acquire multiple target files in a target folder and sequentially determine multiple target data sets corresponding to the multiple target files.

[0024] The data processing method in this technical solution obtains the target file in the target folder, determines the data extraction method according to the data format of the target file, and extracts multiple target data from the target file through the target page corresponding to the target file and the data extraction method, thereby determining the target data set corresponding to the target file. This ensures that the target data set can be obtained from target files with different data formats, eliminating the need to develop multiple data solutions for obtaining the target data set for target files with different data formats, thereby reducing the development and maintenance costs of data solutions for the target data set.

[0025] The data processing method of the present invention may further include the following additional technical features:

[0026] In the above technical solution, determining the target file in the target folder specifically includes: obtaining the configuration file in the target folder; determining the file structure of the target folder based on the configuration file; and determining the target file based on the file structure.

[0027] The data processing method in this technical solution determines the file structure of the target folder through the configuration file in the target folder, and then determines the target file in the target folder based on the file structure, thus ensuring the data integrity of the files in the target folder and ensuring the accuracy of obtaining the target file in the target folder through the file structure.

[0028] In the above technical solution, the target file includes multiple component data. Based on the target page and the data extraction method, multiple target data in the target file are determined, specifically including: performing page simulation processing on the target page to obtain the attribute data of the component data in the multiple component data; determining the code data of the component data in the multiple component data according to the data extraction method; and combining the attribute data and the code data to obtain the target data in the multiple target data.

[0029] The data processing method in this technical solution determines the attribute data of component data by performing page simulation processing on the target page, and determines the code data in the component data by using data extraction methods. Then, based on the attribute data and code data, the target data in the target file is determined, which ensures the accuracy of extracting the target data in the target file, and thus ensures the accuracy of the target data set composed of the target data.

[0030] In the above technical solution, the target file includes multiple image data. Based on the target page and the data processing method, multiple target data in the target file are determined, specifically including: determining the target image data among the multiple image data based on the target page; and converting the target image data into target data among the multiple target data through a data extraction method.

[0031] The data processing method in this technical solution determines the target image data from multiple image data based on the target page, and performs data transformation processing on the target image data through data extraction methods to obtain the target data, saving data storage space. At the same time, it ensures the accuracy of extracting the target data from the target file, thereby ensuring the accuracy of the target data set composed of the target data.

[0032] In the above technical solution, determining the target data set corresponding to the target file based on multiple target data specifically includes: obtaining the target data structure corresponding to the target file; and combining multiple target data into a target data set based on the target data structure.

[0033] The data processing method in this technical solution reconstructs the data in the data set according to the target data structure to obtain the target data set, which ensures the standardization of the target data set and improves the ease of application of the target data set.

[0034] In the above technical solution, the data processing method further includes: acquiring abnormal data from the target data set and determining the number of abnormal data; if the number of abnormal data is greater than a preset number, reacquiring the target files in the target folder.

[0035] The data processing method in this technical solution collects abnormal data from the target data set, and when the number of abnormal data exceeds a preset number, it redetermines the target files in the target folder, thereby ensuring the validity of the data in the target files and thus ensuring the validity of the data in the target data set.

[0036] According to a second aspect of the present invention, a data processing apparatus is provided, comprising: a processing module for acquiring a target folder, determining a target file in the target folder, and a target page corresponding to the target file; the processing module is further configured to determine a data extraction method based on the data format of the target file; the processing module is further configured to determine multiple target data in the target file based on the target page and the data extraction method; and the processing module is further configured to determine a target data set corresponding to the target file based on the multiple target data.

[0037] This technical solution provides a data processing device for a data system. The data system stores multiple folders, and each folder contains files in various data formats. The processing module can obtain a target folder in the data system, which is a data folder that needs to be parsed and processed.

[0038] For example, the data system can be specifically a database within the Axure software (a rapid prototyping tool), and the target folder can be specifically a folder imported into the Axure software.

[0039] For example, the target folder can be specifically the data directory folder in the Axure software.

[0040] Furthermore, the processing module determines the target file in the target folder and the target page based on the target file. It should be noted that the target file is a file that stores page data, which includes data information corresponding to each element in the page. The target page is the display page corresponding to the target file.

[0041] For example, the target file can be a data file of a product prototype imported into the Axure software, and the target page can be a display page corresponding to the product prototype.

[0042] Furthermore, the processing module parses the target file to determine the data format of the data in the target file, and determines the data extraction method of the target file based on the data format.

[0043] It should be noted that the data extraction method is a data processing method for extracting data from the target file. The processing module determines the corresponding data extraction method for the target file based on the data format of the target file. This eliminates the need to pre-store multiple data extraction methods within the system, thus reducing the maintenance cost of the data system.

[0044] For example, the data format can be specifically the format corresponding to data on a component-by-component basis, and the data extraction method can be specifically the data processing method that extracts data information corresponding to a component on a component-by-component basis, wherein the component can be a component on the display interface used to display content.

[0045] Furthermore, the processing module extracts multiple target data from the target file by combining the data extraction method with the target interface. These multiple target data are valid data in the target file.

[0046] For example, the processing module determines the basic information corresponding to the components in the target file through the target page, and extracts the valid data in the target file through the data extraction method, and then combines the above basic information and valid data into target data.

[0047] Furthermore, after extracting multiple target data from the target file, the processing module performs data combination processing on the multiple target data to obtain the target data set corresponding to the target file. The target data set is a data set that stores uniformly structured data.

[0048] For example, the target dataset can be specifically a dataset that stores data in a custom data structure.

[0049] For example, the processing module can obtain multiple target files in the target folder and sequentially determine multiple target data sets corresponding to the multiple target files.

[0050] The data processing device in this technical solution acquires the target file in the target folder, determines the data extraction method based on the data format of the target file, and extracts multiple target data from the target file through the target page corresponding to the target file and the data extraction method, thereby determining the target data set corresponding to the target file. This ensures that the target data set can be obtained from target files with different data formats, eliminating the need to develop multiple data solutions for obtaining the target data set for target files with different data formats, thus reducing the development and maintenance costs of data solutions for the target data set.

[0051] According to a third aspect of the present invention, a data processing apparatus is provided, comprising a processor and a memory, wherein the memory stores a program or instructions, which, when executed by the processor, implement the steps of the data processing method as described in any of the above-described technical solutions. Therefore, this data processing apparatus possesses all the beneficial effects of the data processing methods in any of the above-described technical solutions, which will not be elaborated further here.

[0052] According to a fourth aspect of the present invention, a readable storage medium is provided on which a program or instructions are stored, which, when executed by a processor, implement the data processing method as described in any of the above-described technical solutions. Therefore, this readable storage medium possesses all the beneficial effects of the data processing method in any of the above-described technical solutions, which will not be elaborated further here.

[0053] According to a fifth aspect of the present invention, a data system is provided, comprising: a data processing apparatus as defined in the second aspect above, or a data processing apparatus as defined in the third aspect above, and / or a readable storage medium as defined in the fourth aspect above, thereby having all the beneficial technical effects of the data processing apparatus as defined in the second aspect above, or the data processing apparatus as defined in the third aspect above, and / or the readable storage medium as defined in the fourth aspect above, which will not be elaborated further here.

[0054] Additional aspects and advantages of the invention will become apparent in the following description or may be learned by practice of the invention. Attached Figure Description

[0055] The above and / or additional aspects and advantages of the present invention will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, in which:

[0056] Figure 1 One of the flowcharts of the data processing method in the first embodiment of the present invention is shown;

[0057] Figure 2 A second schematic flowchart of the data processing method in the first embodiment of the present invention is shown;

[0058] Figure 3 A third schematic flowchart of the data processing method in the first embodiment of the present invention is shown;

[0059] Figure 4 A fourth schematic flowchart of the data processing method in the first embodiment of the present invention is shown;

[0060] Figure 5 The fifth schematic flowchart of the data processing method in the first embodiment of the present invention is shown;

[0061] Figure 6 A flowchart of the data processing method in the first embodiment of the present invention is shown in diagram six.

[0062] Figure 7 The seventh flowchart of the data processing method in the first embodiment of the present invention is shown;

[0063] Figure 8 A structural block diagram of a data processing apparatus according to a second embodiment of the present invention is shown;

[0064] Figure 9 A structural block diagram of a data processing apparatus according to a third embodiment of the present invention is shown. Detailed Implementation

[0065] To better understand the above-mentioned objectives, features, and advantages of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that, unless otherwise specified, the embodiments of the present invention and the features thereof can be combined with each other.

[0066] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and therefore the scope of protection of the invention is not limited to the specific embodiments disclosed below.

[0067] The following is combined with Figures 1 to 9The data processing method, apparatus, readable storage medium, and data system provided in this application will be described in detail through specific embodiments and application scenarios.

[0068] The data processing method provided by this invention can be executed by a data processing device, or it can be determined according to actual usage requirements, and no specific limitation is made here. To more clearly describe the data processing method provided by this invention, the following description uses a data processing device as the executing entity.

[0069] Example 1:

[0070] like Figure 1 As shown, the first embodiment of the present invention provides a data processing method, which includes:

[0071] Step 102: Obtain the target folder, identify the target files within the target folder, and the target pages corresponding to the target files;

[0072] Step 104: Determine the data extraction method based on the data format of the target file;

[0073] Step 106: Based on the target page and data extraction method, determine multiple target data in the target file;

[0074] Step 108: Determine the target data set corresponding to the target file based on multiple target data sets.

[0075] This embodiment provides a data processing method for a data system. The data system stores multiple folders, and each folder stores file data in various data formats. The data processing device can obtain a target folder in the data system, wherein the target folder is a data folder that needs to be parsed and processed.

[0076] For example, the data system can be specifically a database within the Axure software (a rapid prototyping tool), and the target folder can be specifically a folder imported into the Axure software.

[0077] For example, the target folder can be specifically the data directory folder in the Axure software.

[0078] Furthermore, the data processing device determines the target file in the target folder and determines the target page based on the target file. It should be noted that the target file is a file that stores page data, which includes data information corresponding to each element in the page, and the target page is the display page corresponding to the target file.

[0079] For example, the target file can be a data file of a product prototype imported into the Axure software, and the target page can be a display page corresponding to the product prototype.

[0080] Furthermore, the data processing device parses the target file, determines the data format of the data in the target file, and determines the data extraction method of the target file based on the data format.

[0081] It should be noted that the data extraction method is a data processing method for extracting data from the target file. The data processing device determines the corresponding data extraction method for the target file based on the data format of the target file. This eliminates the need to pre-store multiple data extraction methods within the system, thus reducing the maintenance cost of the data system.

[0082] For example, the data format can be specifically the format corresponding to data on a component-by-component basis, and the data extraction method can be specifically the data processing method that extracts data information corresponding to a component on a component-by-component basis, wherein the component can be a component on the display interface used to display content.

[0083] Furthermore, the data processing device extracts multiple target data from the target file by combining the data extraction method with the target interface, wherein the multiple target data are valid data in the target file.

[0084] For example, the data processing device determines the basic information corresponding to the components in the target file through the target page, and extracts the valid data in the target file through the data extraction method, and then combines the basic information and valid data into target data.

[0085] Furthermore, after extracting multiple target data from the target file, the data processing device performs data combination processing on the multiple target data to obtain the target data set corresponding to the target file, wherein the target data set is a data set storing uniformly structured data.

[0086] For example, the target dataset can be specifically a dataset that stores data in a custom data structure.

[0087] For example, the data processing device can acquire multiple target files in a target folder and sequentially determine multiple target data sets corresponding to the multiple target files.

[0088] The data processing method in this embodiment obtains the target file in the target folder, determines the data extraction method according to the data format of the target file, and extracts multiple target data from the target file through the target page corresponding to the target file and the data extraction method, thereby determining the target data set corresponding to the target file. This ensures that the target data set can be obtained from target files with different data formats, eliminating the need to develop multiple data solutions for obtaining the target data set for target files with different data formats, thereby reducing the development and maintenance costs of data solutions for the target data set.

[0089] like Figure 2 As shown, in any of the above embodiments, the data processing method includes:

[0090] Step 202, obtain the target folder;

[0091] Step 204: Obtain the configuration file in the target folder;

[0092] Step 206: Determine the file structure of the target folder based on the configuration file;

[0093] Step 208: Determine the target file based on the file structure;

[0094] Step 210: Determine the target page corresponding to the target file;

[0095] Step 212: Determine the data extraction method based on the data format of the target file;

[0096] Step 214: Based on the target page and data extraction method, determine multiple target data in the target file;

[0097] Step 216: Determine the target data set corresponding to the target file based on multiple target data sets.

[0098] In this embodiment, the data development device acquires the configuration file in the target folder and determines the file structure of the files in the target folder based on the configuration file. The configuration file is a file that stores the configuration information of the target folder, and the file structure is the distribution structure of multiple files inside the folder.

[0099] For example, the configuration file can be a document.js file (record file) under the data directory, and the file structure can be a tree structure corresponding to the directory tree. The data development device can use the eval function (a conversion function) to determine the file structure.

[0100] Furthermore, the data development device selects the target file in the target folder according to the file structure of the target folder.

[0101] The data processing method in this embodiment determines the file structure of the target folder through the configuration file in the target folder, and then determines the target file in the target folder based on the file structure, thus ensuring the data integrity of the files in the target folder and ensuring the accuracy of obtaining the target file in the target folder through the file structure.

[0102] like Figure 3 As shown, in any of the above embodiments, the data processing method includes:

[0103] Step 302: Obtain the target folder, identify the target files within the target folder, and the target pages corresponding to the target files;

[0104] Step 304: Determine the data extraction method based on the data format of the target file;

[0105] Step 306: Perform page simulation processing on the target page to obtain the attribute data of the component data in multiple component data;

[0106] Step 308: Based on the data extraction method, determine the code data of the component data in the multiple component data;

[0107] Step 310: Combine the attribute data and code data to obtain the target data among multiple target data;

[0108] Step 312: Determine the target data set corresponding to the target file based on multiple target data sets.

[0109] In this embodiment, the target file includes multiple component data. The component data is the data information corresponding to the display component, and the display component is the component element on the display interface used to display content.

[0110] For example, component data can specifically be the data parameters corresponding to the text box component.

[0111] Furthermore, after determining the target page corresponding to the target file, the data development device obtains the attribute data of the component data from multiple component data by simulating the rendering of the target page. The attribute parameters are the parameters representing the component attributes in the component data.

[0112] For example, the data processing device can obtain data from multiple components through the page DOM (Document Object Model).

[0113] For example, the data processing device can simulate the target page using Puppeteer (a page simulation tool).

[0114] For example, the attribute parameters can be specific to the basic information of the component, including parameters such as the component's border, width, and height.

[0115] Furthermore, the data development device uses a data extraction method to determine the code data in the component data, wherein the code data is the code data corresponding to the component data in the target file.

[0116] For example, the code data can be in JSON format, and may include the component type, the specific display coordinates, the corresponding events, and other data.

[0117] Furthermore, the data development device reconstructs the attribute data and code data to obtain the target data in the target file.

[0118] The data processing method in this embodiment determines the attribute data of the component data by performing page simulation processing on the target page, and determines the code data in the component data by using a data extraction method. Then, the target data in the target file is determined based on the attribute data and code data, which ensures the accuracy of extracting the target data in the target file, and thus ensures the accuracy of the target data set composed of the target data.

[0119] like Figure 4 As shown, in any of the above embodiments, the data processing method includes:

[0120] Step 402: Obtain the target folder, identify the target files within the target folder, and the target pages corresponding to the target files;

[0121] Step 404: Determine the data extraction method based on the data format of the target file;

[0122] Step 406: Based on the target page, determine the target image data from multiple image data sets;

[0123] Step 408: Using a data extraction method, the target image data is converted into target data from multiple target data sets;

[0124] Step 410: Determine the target data set corresponding to the target file based on multiple target data sets.

[0125] In this embodiment, the target file includes multiple image data, which are image-type data in the target file. The data processing device selects the target image data from the multiple image data, where the target image data is the valid image data in the target file.

[0126] For example, the target image data may specifically be image data corresponding to a useful image on the target page.

[0127] Furthermore, the data development device performs data transformation processing on the target image data using data extraction methods to obtain the target data.

[0128] It should be noted that selecting the target image data from multiple image datasets can save storage space in the data system.

[0129] The data processing method in this embodiment determines the target image data among multiple image data based on the target page, and performs data transformation processing on the target image data through a data extraction method to obtain the target data, saving data storage space. At the same time, it ensures the accuracy of extracting the target data from the target file, thereby ensuring the accuracy of the target data set composed of the target data.

[0130] like Figure 5 As shown, in any of the above embodiments, the data processing method includes:

[0131] Step 502: Obtain the target folder, identify the target files within the target folder, and the target pages corresponding to the target files;

[0132] Step 504: Determine the data extraction method based on the data format of the target file;

[0133] Step 506: Based on the target page and data extraction method, determine multiple target data in the target file;

[0134] Step 508: Obtain the target data structure corresponding to the target file;

[0135] Step 510: Based on the target data structure, combine multiple target data into a target data set.

[0136] In this embodiment, the data processing device obtains the target data structure corresponding to the target file, wherein the target data structure is a preset data structure for the target file.

[0137] For example, the target data structure can be a data structure defined by the developer.

[0138] Furthermore, the data processing device reconstructs multiple target data according to the target data structure to obtain a target data set.

[0139] For example, the data processing device can merge multiple target data into a data set, then reconstruct the data in the data set to determine the target data set corresponding to the target file.

[0140] The data processing method in this embodiment reconstructs the data in the data set according to the target data structure to obtain the target data set, which ensures the standardization of the target data set and improves the ease of application of the target data set.

[0141] like Figure 6 As shown, in any of the above embodiments, the data processing method includes:

[0142] Step 602: Obtain the target folder, identify the target files within the target folder, and the target pages corresponding to the target files;

[0143] Step 604: Determine the data extraction method based on the data format of the target file;

[0144] Step 606: Based on the target page and data extraction method, determine multiple target data in the target file;

[0145] Step 608: Determine the target data set corresponding to the target file based on multiple target data sets;

[0146] Step 610: Obtain the abnormal data in the target data set and determine the number of abnormal data.

[0147] Step 612: If the number of abnormal data exceeds the preset number, re-acquire the target files in the target folder.

[0148] In this embodiment, the data processing device performs data anomaly detection on the target data set and collects abnormal data in the target data set, wherein the abnormal data is data in which anomalies occur.

[0149] For example, abnormal data can specifically be data with abnormal format, abnormal size, abnormal type, etc.

[0150] Furthermore, the data processing device determines the number of abnormal data based on the collected abnormal data, wherein the number of abnormal data is the number of abnormal data.

[0151] Furthermore, the data processing device compares the number of abnormal data with the preset number. If the number of abnormal data is greater than the preset number, it indicates that the target file is invalid and cannot be converted into a target data set. The data processing device needs to re-determine the target file in the target folder. The preset number is the number of data that is pre-set for abnormal data.

[0152] For example, the preset quantity can be 10, and the number of abnormal data can be 15. If the number of abnormal data is greater than the preset quantity, it means that there is a lot of abnormal data in the target file, and thus the target file is determined to be an invalid file.

[0153] The data processing method in this embodiment collects abnormal data from the target data set, and when the number of abnormal data exceeds a preset number, redetermines the target files in the target folder, thus ensuring the validity of the data in the target files and consequently the validity of the data in the target data set.

[0154] like Figure 7 As shown, in any of the above embodiments, the data processing method includes:

[0155] Step 702: Read the Axure import file;

[0156] Step 704: Is it valid? If yes, proceed to step 706; otherwise, end.

[0157] Step 706: Parse the file data and obtain the file directory tree;

[0158] Step 708: Determine the required number of loops based on the directory tree;

[0159] Step 710: Use tools to simulate rendering each file and obtain data through the proposed scheme;

[0160] Step 712: Is the rendering successful? If so, proceed to step 714; otherwise, proceed to step 720.

[0161] Step 714, store the data;

[0162] Step 716: Merge and reconstruct the data;

[0163] Step 718, Axure data;

[0164] Step 720, anomaly collection;

[0165] Step 722, exception handling;

[0166] Step 724: Has the number of processing attempts exceeded? If not, proceed to step 706; otherwise, end.

[0167] In this embodiment, the data processing device obtains the target file in the target folder.

[0168] For example, the target file can be specifically an import file for the Axure software.

[0169] Furthermore, the data processing device determines whether the target folder is valid. If the target folder is invalid, it stops parsing the data in the target folder. If the target folder is valid, it obtains the configuration file of the target folder and then determines the file structure of the target folder.

[0170] For example, the file structure can be specifically a file directory tree.

[0171] Furthermore, the data processing device reads the target file in the target folder according to the file structure.

[0172] For example, multiple target files can be read in the target folder, and then the number of loops required for the multiple target files can be determined.

[0173] Furthermore, the data processing device simulates the rendering of the target page corresponding to the target file and obtains multiple target data from the target file through a data extraction method.

[0174] Furthermore, the data processing device judges multiple target data. If the target data is successfully acquired, the data processing device stores the target data, merges multiple target data into a data set, and then reconstructs the data in the data set to determine the target data set corresponding to the target file.

[0175] For example, the target dataset can be specifically an Axure dataset.

[0176] Furthermore, if the data processing device fails to acquire the target data, the data processing device collects abnormal data from the target data set.

[0177] Furthermore, the data processing device determines the number of abnormal data based on the collected abnormal data.

[0178] Furthermore, the data processing device compares the number of abnormal data with the preset number. If the number of abnormal data is greater than the preset number, it indicates that the target file is invalid and cannot be converted into a target data set. The data processing device needs to re-identify the target file in the target folder.

[0179] For example, the preset number can be specifically the number of exception handling operations. The data processing device can collect the number of exception handling operations during the data parsing process of the target file. If the number of exception handling operations exceeds the preset number of operations, the current target file is abandoned and the target file is retrieved again in the target folder.

[0180] The data processing method in this embodiment obtains the target file in the target folder, determines the data extraction method according to the data format of the target file, and extracts multiple target data from the target file through the target page corresponding to the target file and the data extraction method, thereby determining the target data set corresponding to the target file. This ensures that the target data set can be obtained from target files with different data formats, eliminating the need to develop multiple data solutions for obtaining the target data set for target files with different data formats, thereby reducing the development and maintenance costs of data solutions for the target data set.

[0181] Example 2:

[0182] like Figure 8 As shown, a second embodiment of the present invention provides a data processing apparatus, the data processing apparatus 800 comprising:

[0183] Processing module 802 is used to obtain the target folder, determine the target file in the target folder, and the target page corresponding to the target file;

[0184] The processing module 802 is also used to determine the data extraction method based on the data format of the target file;

[0185] The processing module 802 is also used to determine multiple target data in the target file based on the target page and the data extraction method;

[0186] The processing module 802 is also used to determine the target data set corresponding to the target file based on multiple target data.

[0187] This embodiment provides a data processing device for a data system. The data system stores multiple folders, and each folder stores file data in various data formats. The processing module 802 can obtain a target folder in the data system, wherein the target folder is a data folder that needs to be parsed and processed.

[0188] For example, the data system can be specifically a database within the Axure software (a rapid prototyping tool), and the target folder can be specifically a folder imported into the Axure software.

[0189] For example, the target folder can be specifically the data directory folder in the Axure software.

[0190] Furthermore, the processing module 802 determines the target file in the target folder and determines the target page based on the target file. It should be noted that the target file is a file that stores page data, which includes data information corresponding to each element in the page, and the target page is the display page corresponding to the target file.

[0191] For example, the target file can be a data file of a product prototype imported into the Axure software, and the target page can be a display page corresponding to the product prototype.

[0192] Furthermore, the processing module 802 performs data parsing on the target file, determines the data format of the data in the target file, and determines the data extraction method of the target file based on the data format.

[0193] It should be noted that the data extraction method is a data processing method for extracting data from the target file. The processing module 802 determines the corresponding data extraction method for the target file based on the data format of the target file. This eliminates the need to pre-store multiple data extraction methods within the system, thus reducing the maintenance cost of the data system.

[0194] For example, the data format can be specifically the format corresponding to data on a component-by-component basis, and the data extraction method can be specifically the data processing method that extracts data information corresponding to a component on a component-by-component basis, wherein the component can be a component on the display interface used to display content.

[0195] Furthermore, the processing module 802 extracts multiple target data from the target file by combining the data extraction method with the target interface, wherein the multiple target data are valid data in the target file.

[0196] For example, the processing module 802 determines the basic information corresponding to the components in the target file through the target page, and extracts the valid data in the target file through the data extraction method, and then combines the above basic information and valid data into target data.

[0197] Furthermore, after extracting multiple target data from the target file, the processing module 802 performs data combination processing on the multiple target data to obtain the target data set corresponding to the target file, wherein the target data set is a data set storing uniformly structured data.

[0198] For example, the target dataset can be specifically a dataset that stores data in a custom data structure.

[0199] For example, the processing module 802 can obtain multiple target files in the target folder and sequentially determine multiple target data sets corresponding to the multiple target files.

[0200] In this embodiment, the data processing device obtains the target file in the target folder, determines the data extraction method according to the data format of the target file, and extracts multiple target data from the target file through the target page corresponding to the target file and the data extraction method, thereby determining the target data set corresponding to the target file. This ensures that the target data set can be obtained from target files with different data formats, eliminating the need to develop multiple data solutions for obtaining the target data set for target files with different data formats, thereby reducing the development and maintenance costs of data solutions for the target data set.

[0201] In any of the above embodiments, the data processing apparatus 800 includes:

[0202] Processing module 802 is used to obtain configuration files in the target folder;

[0203] The processing module 802 is also used to determine the file structure of the target folder based on the configuration file;

[0204] The processing module 802 is also used to determine the target file based on the file structure.

[0205] In this embodiment, the data processing device determines the file structure of the target folder through the configuration file in the target folder, and then determines the target file in the target folder based on the file structure, thus ensuring the data integrity of the files in the target folder and ensuring the accuracy of obtaining the target file in the target folder through the file structure.

[0206] In any of the above embodiments, the data processing apparatus 800 includes:

[0207] The processing module 802 is used to perform page simulation processing on the target page in order to obtain the attribute data of the component data in multiple component data.

[0208] The processing module 802 is also used to determine the code data of the component data in multiple component data according to the data extraction method;

[0209] The processing module 802 is also used to combine attribute data and code data to obtain target data from multiple target data.

[0210] In this embodiment, the data processing device determines the attribute data of the component data by performing page simulation processing on the target page, and determines the code data in the component data by using a data extraction method. Then, based on the attribute data and code data, it determines the target data in the target file, ensuring the accuracy of extracting the target data from the target file, and thus ensuring the accuracy of the target data set composed of the target data.

[0211] In any of the above embodiments, the data processing apparatus 800 includes:

[0212] Processing module 802 is used to determine the target image data from multiple image data based on the target page;

[0213] The processing module 802 is also used to convert the target image data into target data among multiple target data through a data extraction method.

[0214] In this embodiment, the data processing device determines the target image data from multiple image data based on the target page, and performs data transformation processing on the target image data through a data extraction method to obtain the target data, thereby saving data storage space. At the same time, it ensures the accuracy of extracting the target data from the target file, and thus ensures the accuracy of the target data set composed of the target data.

[0215] In any of the above embodiments, the data processing apparatus 800 includes:

[0216] Processing module 802 is used to obtain the target data structure corresponding to the target file;

[0217] The processing module 802 is also used to combine multiple target data into a target data set according to the target data structure.

[0218] In this embodiment, the data processing device reconstructs the data in the data set according to the target data structure to obtain the target data set, thereby ensuring the standardization of the target data set and improving the ease of application of the target data set.

[0219] In any of the above embodiments, the data processing apparatus 800 includes:

[0220] Processing module 802 is used to acquire abnormal data in the target data set and determine the number of abnormal data.

[0221] The processing module 802 is also used to re-acquire the target file in the target folder when the number of abnormal data exceeds the preset number.

[0222] In this embodiment, the data processing device collects abnormal data from the target data set and, when the number of abnormal data exceeds a preset number, redetermines the target files in the target folder, thereby ensuring the validity of the data in the target files and thus ensuring the validity of the data in the target data set.

[0223] Example 3:

[0224] like Figure 9 As shown, a third embodiment of the present invention provides a data processing apparatus 900, which includes a processor 902 and a memory 904. The memory 904 stores a program or instructions, which, when executed by the processor 902, implement the steps of the data processing method as described in any of the above-described technical solutions. Therefore, this data processing apparatus possesses all the beneficial effects of the data processing methods in any of the above-described technical solutions, and will not be elaborated further here.

[0225] Example 4:

[0226] In a fourth embodiment of the present invention, a readable storage medium is provided on which a program is stored. When the program is executed by a processor, it implements the data processing method as described in any of the above embodiments, and thus has all the beneficial technical effects of the data processing method described in any of the above embodiments.

[0227] Among them, readable storage media include read-only memory (ROM), random access memory (RAM), magnetic disks or optical disks, etc.

[0228] Example 5:

[0229] A fifth embodiment of the present invention provides a data system comprising: a data processing apparatus as described in any of the above embodiments, and / or a readable storage medium as described in any of the above embodiments, and thus having all the beneficial technical effects of the data processing apparatus and / or the readable storage medium as described in any of the above embodiments, which will not be elaborated further here.

[0230] It should be clarified that in the claims, description, and accompanying drawings of this invention, the term "plural" refers to two or more. Unless otherwise explicitly defined, the terms "upper," "lower," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings, and are only for the convenience of describing the invention and simplifying the description process, not to indicate or imply that the device or element referred to must have the described specific orientation, or be constructed and operated in a specific orientation. Therefore, these descriptions should not be construed as limiting the invention. The terms "connection," "installation," "fixing," etc., should be interpreted broadly. For example, "connection" can be a fixed connection between multiple objects, a detachable connection between multiple objects, or an integral connection; it can be a direct connection between multiple objects or an indirect connection between multiple objects through an intermediate medium. For those skilled in the art, the specific meaning of the above terms in this invention can be understood based on the specific circumstances of the above data.

[0231] In the claims, description, and accompanying drawings of this invention, the terms "one embodiment," "some embodiments," "specific embodiment," etc., refer to a specific feature, structure, material, or characteristic described in connection with that embodiment or example, which is included in at least one embodiment or example of the invention. In the claims, description, and accompanying drawings of this invention, illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0232] The above are merely preferred embodiments of the present invention and are not intended to limit the present invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A data processing method, characterized in that, The data processing method includes: Obtain the target folder, identify the target files within the target folder, and the target pages corresponding to the target files; Based on the data format of the target file, a data extraction method is determined; the data format is the format corresponding to data in units of components; the data extraction method is a data processing method that extracts data information corresponding to components in units of components. Based on the target page and the data extraction method, multiple target data in the target file are determined; Based on the multiple target data, determine the target data set corresponding to the target file; The target file includes multiple component data. The step of determining multiple target data in the target file based on the target page and the data extraction method specifically includes: The target page is subjected to page simulation processing to obtain the attribute data of the component data in the multiple component data; Based on the data extraction method, the code data of the component data in the plurality of component data is determined; The attribute data and the code data are combined to obtain the target data among the plurality of target data; The target file includes multiple image data. The step of determining the multiple target data in the target file based on the target page and the data extraction method specifically includes: Based on the target page, determine the target image data among the plurality of image data; The data extraction method described above converts the target image data into target data among the plurality of target data. Before determining the target file in the target folder, the method further includes: Determine if the target folder is valid. If the target folder is invalid, stop parsing the data in the target folder. If the target folder is valid, obtain the configuration file of the target folder.

2. The data processing method according to claim 1, characterized in that, The determination of the target file in the target folder specifically includes: Retrieve the configuration files from the target folder; The file structure of the target folder is determined based on the configuration file. The target file is determined based on the file structure.

3. The data processing method according to claim 1, characterized in that, The step of determining the target data set corresponding to the target file based on the plurality of target data specifically includes: Obtain the target data structure corresponding to the target file; Based on the target data structure, the multiple target data are combined into the target data set.

4. The data processing method according to any one of claims 1 to 3, characterized in that, The data processing method further includes: Obtain abnormal data from the target data set and determine the number of abnormal data. If the number of abnormal data exceeds a preset number, the target file in the target folder is retrieved again.

5. A data processing apparatus, characterized in that, The data processing apparatus is used to implement the steps of the data processing method as described in any one of claims 1 to 4, including: The processing module is used to obtain the target folder, determine the target file in the target folder, and the target page corresponding to the target file; The processing module is also used to determine the data extraction method based on the data format of the target file; The processing module is also used to determine multiple target data in the target file based on the target page and the data extraction method; The processing module is also used to determine the target data set corresponding to the target file based on the plurality of target data.

6. A data processing apparatus, characterized in that, include: processor; A memory that stores programs or instructions, wherein a processor, when executing the programs or instructions in the memory, implements the steps of the data processing method as described in any one of claims 1 to 4.

7. A readable storage medium, characterized in that, A program or instructions are stored on a readable storage medium, which, when executed by a processor, implement the steps of the data processing method as described in any one of claims 1 to 4.

8. A data system, characterized in that, include: The data processing apparatus as described in claim 5 or 6; and / or The readable storage medium as described in claim 7.