CN112559612A - Dynamic data extraction and sharing method and device - Google Patents

Dynamic data extraction and sharing method and device Download PDF

Info

Publication number
CN112559612A
CN112559612A CN202011480428.2A CN202011480428A CN112559612A CN 112559612 A CN112559612 A CN 112559612A CN 202011480428 A CN202011480428 A CN 202011480428A CN 112559612 A CN112559612 A CN 112559612A
Authority
CN
China
Prior art keywords
data
software
file
cax
text
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202011480428.2A
Other languages
Chinese (zh)
Inventor
孔祥龙
林艺斌
王西雁
蒋紫春
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Power Machinery Institute
Original Assignee
Beijing Power Machinery Institute
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 Beijing Power Machinery Institute filed Critical Beijing Power Machinery Institute
Priority to CN202011480428.2A priority Critical patent/CN112559612A/en
Publication of CN112559612A publication Critical patent/CN112559612A/en
Pending legal-status Critical Current

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/25Integrating or interfacing systems involving database management systems
    • G06F16/254Extract, transform and load [ETL] procedures, e.g. ETL data flows in data warehouses
    • 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

Abstract

The invention discloses a method and a device for extracting and sharing dynamic data, wherein the method comprises the following steps: acquiring engine data in a research and development process; re-analyzing the XML file for the engine data to obtain intermediate data files of various CAX software; and importing the intermediate data file into CAX software to obtain a format file required by the current application program. According to the method, the XML file can be re-analyzed, the data in the database can be exported into intermediate files of various CAX software by one key, and the data files are imported into the CAX software, so that the method is convenient and fast.

Description

Dynamic data extraction and sharing method and device
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method and an apparatus for extracting and sharing dynamic data.
Background
Basic data acquired in the engine design research and development process is not completely consistent with the data format and specification required in the design process, related data are not sorted, processed and analyzed, and a data model which can be directly applied cannot be formed. The Computer Aided Engineering (CAE)/Computer Aided Design (CAD) business software interface is a data format conversion and data access interface, various interface functions provided in the database can conveniently export parameters to a text file according to a certain format, and the main CAD/CAE business software used in Engineering, such as UG, Ansys and the like, can directly call the basic data text files to perform simulation calculation, thereby realizing the smooth connection of data between the basic database and the application software. Meanwhile, the system has an extension mechanism, can support software tools added in the future, and can finally realize the connection with the overall collaborative design and the platform system.
The method is characterized in that required basic information can be retrieved according to engineering requirements, and is a very important function of a database, and how to perform quick and effective application is more critical work and is one of technical difficulties, and most of the existing database systems lack the function. In actual engineering application, basic information and CAX tools can be associated, and the method is the most convenient and effective basic data application mode.
However, when data is applied, the database in the related art can only be manually entered into the CAE/CAD software one by contrasting the data in the system, which is labor-consuming and error-prone and needs to be solved.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, the first objective of the present invention is to provide a dynamic data extraction and sharing method, which can export data in a database into intermediate files of various CAX software by parsing an XML file again, and load the data files into the CAX software conveniently and quickly.
The second objective of the present invention is to provide a dynamic data extracting and sharing device.
A third object of the invention is to propose an electronic device.
A fourth object of the invention is to propose a computer storage medium.
In order to achieve the above object, an embodiment of a first aspect of the present invention provides a dynamic data extracting and sharing method, including the following steps: acquiring engine data in a research and development process; re-analyzing the XML file for the engine data to obtain intermediate data files of various CAX software; and importing the intermediate data file into CAX software to obtain a format file required by the current application program.
The dynamic data extraction and sharing method of the embodiment of the invention can export the data in the database into intermediate files of various CAX software by one key through re-analyzing the XML file, and the data file is put into the CAX software, thereby being convenient and fast, and CAD and CAE tools used for design and simulation all need the information in the database, and format files required by the application programs can be generated very conveniently by utilizing the technology, and the files can be directly transmitted to the application programs for use.
In addition, the dynamic data extraction and sharing method according to the above embodiment of the present invention may further have the following additional technical features:
further, in an embodiment of the present invention, the method further includes: establishing a plurality of data interfaces associated with CAD/CAE software, wherein each data interface is configured according to different performance indicators of the engine data, and modifying data of an interface template file.
Further, in an embodiment of the present invention, the importing the intermediate data file into CAX software includes: and finding corresponding data in the basic database software according to the requirement of the data attribute, outputting a corresponding file through a corresponding data interface module, importing the data file in the application software, and applying the current application program.
Further, in one embodiment of the present invention, the operation modes of the plurality of data interfaces include a text import mode, a text load mode, and a script mode.
Further, in an embodiment of the present invention, in the text import mode, after exporting the basic information through a text format, clicking a corresponding button in the CAX software in a direct import manner to import the basic data attribute; in the text loading mode, after preset basic information is exported through a text format, when the CAX software is loaded, the preset basic information is directly linked into the software database so as to directly select target data in a list and obtain the target data; and in the script mode, exporting the preset basic information through a preset format, and loading the preset basic information into the calculation of an application through a script language of the CAX software.
In order to achieve the above object, a second aspect of the present invention provides a dynamic data extracting and sharing apparatus, including: the first acquisition module is used for acquiring engine data in a research and development process; the analysis module is used for re-analyzing the XML file for the engine data to obtain intermediate data files of various CAX software; and the import module is used for importing the intermediate data file into CAX software to obtain a format file required by the current application program.
The dynamic data extraction and sharing device of the embodiment of the invention can export the data in the database into intermediate files of various CAX software by one key through re-analyzing the XML file, and the data file is put into the CAX software, thereby being convenient and fast, and CAD and CAE tools used for designing and simulating all need the information in the database.
In addition, the dynamic data extraction and sharing device according to the above embodiment of the present invention may further have the following additional technical features:
further, in an embodiment of the present invention, the method further includes: and the establishing module is used for establishing a plurality of data interfaces related to CAD/CAE software, wherein each data interface is configured according to different performance indexes of the engine data, and the data of the interface template file is modified.
Further, in an embodiment of the present invention, the import module is specifically configured to: and finding corresponding data in the basic database software according to the requirement of the data attribute, outputting a corresponding file through a corresponding data interface module, importing the data file in the application software, and applying the current application program.
To achieve the above object, a third aspect of the present invention provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions configured to perform the above-described dynamic data fetching and sharing method.
To achieve the above object, a fourth aspect of the present invention provides a computer-readable storage medium, on which a computer program is stored, wherein the computer program is executed by a processor for implementing the above dynamic data extracting and sharing method.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a flowchart of a dynamic data extraction and sharing method according to an embodiment of the invention. (ii) a
FIG. 2 is a schematic diagram of a import approach according to one embodiment of the present invention;
FIG. 3 is a schematic diagram of an interface style according to one embodiment of the invention;
FIG. 4 is a schematic diagram of a collaboration diagram in accordance with one embodiment of the invention;
FIG. 5 is a block diagram of a dynamic data fetching and sharing device according to an embodiment of the invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
The following describes a dynamic data extracting and sharing method and steps according to an embodiment of the present invention with reference to the drawings, and first, the dynamic data extracting and sharing method according to an embodiment of the present invention will be described with reference to the drawings.
FIG. 1 is a flowchart of a dynamic data extraction and sharing method according to an embodiment of the present invention.
As shown in fig. 1, the dynamic data extracting and sharing method includes the following steps:
in step S101, engine data in the development process is acquired.
It is understood that the manner of acquiring the engine data in the development process may adopt an acquisition method in the related art, and details are not described herein to avoid redundancy.
In step S102, the XML file is re-parsed for the engine data to obtain intermediate data files for various CAX software.
It can be understood that after the engine data is obtained, the embodiment of the invention can re-parse the XML file, so that the data in the database can be exported as an intermediate file of various CAX software, i.e. an intermediate data file
And the data file is conveniently and quickly loaded into CAX software. The CAD and CAE tools used for design and simulation all need information in a database, format files required by the application programs can be conveniently generated by using the technology, and the files can be directly transmitted to the application programs for use.
In step S103, the intermediate data file is imported into the CAX software, and a format file required by the current application program is obtained.
Further, in an embodiment of the present invention, importing the intermediate data file into the CAX software includes: and finding corresponding data in the basic database software according to the requirement of the data attribute, outputting a corresponding file through a corresponding data interface module, importing the data file in the application software, and applying the current application program.
It can be understood that, when the intermediate data file is imported into the CAX software, the embodiment of the present invention may find corresponding data in the basic database software according to the requirement for the data attribute, output the corresponding file through the software interface module, and then import the data file in the application software for application. The introduction method may be as shown in fig. 2.
Further, in an embodiment of the present invention, the method further includes: establishing a plurality of data interfaces associated with the CAD/CAE software, wherein each data interface is configured according to different performance indexes of the engine data, and modifying the data of the interface template file. Wherein, the interface style can be as shown in figure 3,
it can be understood that the embodiment of the present invention may first establish a plurality of data interfaces with the CAD/CAE software, so that the data can be directly associated with the software, and seamless data connection application is realized. And each interface can be configured according to different performance indexes of the basic data to modify the data of the interface template file. Different English code names in the data template file correspond to different performance indexes, database fields corresponding to the performance indexes are configured in the configuration file, and the collaborative map can be shown as 4.
Further, in one embodiment of the present invention, the operating modes of the plurality of data interfaces include a text import mode, a text load mode, and a script mode.
Further, in an embodiment of the present invention, in the text import mode, after exporting the basic information through the text format, clicking a corresponding button in the CAX software in a direct import manner to import the basic data attribute; in a text loading mode, after preset basic information is exported through a text format, when CAX software is loaded, the preset basic information is directly linked into a software database so as to directly select target data in a list and obtain the target data; in the script mode, preset basic information is exported through a preset format, and the preset basic information is loaded into the calculation of the application through the script language of CAX software.
It can be understood that the working modes of the plurality of data interfaces are determined by combing and analyzing the mature commercial software, and mainly comprise a text import mode, a text loading mode and a script mode.
Specifically, the text import mode is to import the basic data attribute by directly importing basic information in CAX software by clicking a corresponding button after exporting the basic information in a text format; the text loading mode is that after basic information is exported through a text format, the basic information is directly linked into a software database when CAX software is loaded, so that data can be directly selected from a list during setting, and the data is obtained; the script mode is to export basic information through a special format and load the information into the applied calculation through the script language of CAX software, so that the flexibility is very high, and the requirements of various special formats and special types can be basically met.
According to the dynamic data extraction and sharing method provided by the embodiment of the invention, the XML file is re-analyzed, the data in the database can be exported into intermediate files of various CAX software by one key, the data file is put into the CAX software conveniently and quickly, CAD and CAE tools used for design and simulation all need information in the database, format files required by application programs can be generated very conveniently by using the technology, and the files can be directly transmitted to the application programs for use.
Next, a dynamic data extracting and sharing apparatus according to an embodiment of the present invention will be described with reference to the accompanying drawings.
FIG. 5 is a block diagram of a dynamic data fetching and sharing device according to an embodiment of the invention.
As shown in fig. 5, the dynamic data extracting and sharing device 10 includes: a first acquisition module 100, a parsing module 200 and an import module 300.
The first acquisition module 100 is used for acquiring engine data in a development process. The parsing module 200 is used for parsing the XML file again for the engine data to obtain intermediate data files of various CAX software. The import module 300 is configured to import the intermediate data file into the CAX software, so as to obtain a format file required by the current application program.
Further, in an embodiment of the present invention, the method further includes: the establishing module is used for establishing a plurality of data interfaces related to CAD/CAE software, wherein each data interface is configured according to different performance indexes of the engine data, and the data of the interface template file is modified.
Further, in an embodiment of the present invention, the import module 300 is specifically configured to: and finding corresponding data in the basic database software according to the requirement of the data attribute, outputting a corresponding file through a corresponding data interface module, importing the data file in the application software, and applying the current application program.
It should be noted that the foregoing explanation of the embodiment of the dynamic data extracting and sharing method is also applicable to the dynamic data extracting and sharing device of the embodiment, and is not repeated herein.
According to the dynamic data extraction and sharing device provided by the embodiment of the invention, the XML file is re-analyzed, the data in the database can be exported into intermediate files of various CAX software by one key, the data file is put into the CAX software conveniently and quickly, CAD and CAE tools used for design and simulation all need information in the database, format files required by application programs can be generated very conveniently by using the technology, and the files can be directly transmitted to the application programs for use.
An embodiment of the present invention provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor, the instructions configured to perform the dynamic data fetching and sharing method.
An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor, so as to implement the above dynamic data extracting and sharing method.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (10)

1. A dynamic data extraction and sharing method is characterized by comprising the following steps:
acquiring engine data in a research and development process;
re-analyzing the XML file for the engine data to obtain intermediate data files of various CAX software; and
and importing the intermediate data file into CAX software to obtain a format file required by the current application program.
2. The method of claim 1, further comprising:
establishing a plurality of data interfaces associated with CAD/CAE software, wherein each data interface is configured according to different performance indicators of the engine data, and modifying data of an interface template file.
3. The method of claim 2, wherein importing the intermediate data file into CAX software comprises:
and finding corresponding data in the basic database software according to the requirement of the data attribute, outputting a corresponding file through a corresponding data interface module, importing the data file in the application software, and applying the current application program.
4. The method of claim 1, wherein the operational modes of the plurality of data interfaces include a text import mode, a text load mode, and a script mode.
5. The method of claim 4, wherein,
under the text import mode, after basic information is exported through a text format, clicking a corresponding button in CAX software in a direct import mode to import basic data attributes;
in the text loading mode, after preset basic information is exported through a text format, when the CAX software is loaded, the preset basic information is directly linked into the software database so as to directly select target data in a list and obtain the target data;
and in the script mode, exporting the preset basic information through a preset format, and loading the preset basic information into the calculation of an application through a script language of the CAX software.
6. A dynamic data extraction and sharing apparatus, comprising:
the first acquisition module is used for acquiring engine data in a research and development process;
the analysis module is used for re-analyzing the XML file for the engine data to obtain intermediate data files of various CAX software; and
and the import module is used for importing the intermediate data file into CAX software to obtain a format file required by the current application program.
7. The apparatus of claim 6, further comprising:
and the establishing module is used for establishing a plurality of data interfaces related to CAD/CAE software, wherein each data interface is configured according to different performance indexes of the engine data, and the data of the interface template file is modified.
8. The apparatus of claim 7, wherein the import module is specifically configured to:
and finding corresponding data in the basic database software according to the requirement of the data attribute, outputting a corresponding file through a corresponding data interface module, importing the data file in the application software, and applying the current application program.
9. An electronic device, comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being arranged to perform the dynamic data fetching and sharing method of any one of claims 1-5.
10. A computer-readable storage medium, on which a computer program is stored, the program being executed by a processor for implementing the dynamic data extraction and sharing method according to any one of claims 1 to 5.
CN202011480428.2A 2020-12-15 2020-12-15 Dynamic data extraction and sharing method and device Pending CN112559612A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011480428.2A CN112559612A (en) 2020-12-15 2020-12-15 Dynamic data extraction and sharing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011480428.2A CN112559612A (en) 2020-12-15 2020-12-15 Dynamic data extraction and sharing method and device

Publications (1)

Publication Number Publication Date
CN112559612A true CN112559612A (en) 2021-03-26

Family

ID=75063011

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011480428.2A Pending CN112559612A (en) 2020-12-15 2020-12-15 Dynamic data extraction and sharing method and device

Country Status (1)

Country Link
CN (1) CN112559612A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050015439A1 (en) * 2003-07-15 2005-01-20 Ekambaram Balaji Flexible architecture component (FAC) for efficient data integration and information interchange using web services
US20060259909A1 (en) * 2005-05-13 2006-11-16 Harris Corporation Mechanism for maintaining data format synchronization between different entities
US20080092036A1 (en) * 2004-12-14 2008-04-17 Boffemmyer John E System And Method For Import And Export From A Solid Modeling Program
CN104268143A (en) * 2014-08-08 2015-01-07 华迪计算机集团有限公司 XML (extensible markup language) data processing method and device
US20170011135A1 (en) * 2015-07-06 2017-01-12 IGATE Global Solutions Ltd. Conversion Automation through Data and Object Importer
CN106682078A (en) * 2016-11-17 2017-05-17 珠海格力智能装备有限公司 Industrial control computer data dump method and system
CN108427697A (en) * 2017-08-12 2018-08-21 中民筑友科技投资有限公司 Assembled architecture data export method based on BIM and device
CN109062875A (en) * 2018-07-06 2018-12-21 广东省智能制造研究所 A kind of end C/S three-dimensional modeling data conversion method, device and storage medium
CN110889013A (en) * 2019-11-22 2020-03-17 北京锐安科技有限公司 Data association method, device, server and storage medium based on XML

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050015439A1 (en) * 2003-07-15 2005-01-20 Ekambaram Balaji Flexible architecture component (FAC) for efficient data integration and information interchange using web services
US20080092036A1 (en) * 2004-12-14 2008-04-17 Boffemmyer John E System And Method For Import And Export From A Solid Modeling Program
US20060259909A1 (en) * 2005-05-13 2006-11-16 Harris Corporation Mechanism for maintaining data format synchronization between different entities
CN104268143A (en) * 2014-08-08 2015-01-07 华迪计算机集团有限公司 XML (extensible markup language) data processing method and device
US20170011135A1 (en) * 2015-07-06 2017-01-12 IGATE Global Solutions Ltd. Conversion Automation through Data and Object Importer
CN106682078A (en) * 2016-11-17 2017-05-17 珠海格力智能装备有限公司 Industrial control computer data dump method and system
CN108427697A (en) * 2017-08-12 2018-08-21 中民筑友科技投资有限公司 Assembled architecture data export method based on BIM and device
CN109062875A (en) * 2018-07-06 2018-12-21 广东省智能制造研究所 A kind of end C/S three-dimensional modeling data conversion method, device and storage medium
CN110889013A (en) * 2019-11-22 2020-03-17 北京锐安科技有限公司 Data association method, device, server and storage medium based on XML

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
倪一鸣;: "统一数据接口", 科技信息(科学教研), no. 01 *
郝燕利;杨小辉;王海伟;: "机械产品仿真数据提取技术研究", 机械科学与技术, no. 07 *

Similar Documents

Publication Publication Date Title
CN106598612B (en) Operation method and system for data table in database
CN111767254B (en) Multi-file reading device and method based on format data stream file technology
CN110292775B (en) Method and device for acquiring difference data
CN115617327A (en) Low code page building system, method and computer readable storage medium
CN110705237B (en) Automatic document generation method, data processing device and storage medium
CN111068328B (en) Game advertisement configuration form generation method, terminal equipment and medium
CN113095995B (en) Webpage watermark adding method and device, electronic equipment and storage medium
CN110580189A (en) method and device for generating front-end page, computer equipment and storage medium
CN111625226A (en) Prototype-based human-computer interaction design implementation method and system
CN111124379A (en) Page generation method and device, electronic equipment and storage medium
CN115576974A (en) Data processing method, device, equipment and medium
CN114185750A (en) Process monitoring method, device, equipment and storage medium
CN110309239B (en) Visual map editing method and device
CN114282129A (en) Information system page generation method, system, electronic equipment and storage medium
CN115878589A (en) Version management method and device of structured data and related equipment
CN112559612A (en) Dynamic data extraction and sharing method and device
CN116339715A (en) Front-end page construction method and device, electronic equipment and storage medium
CN113722337B (en) Service data determination method, device, equipment and storage medium
CN115629763A (en) Target code generation method and NPU instruction display method and device
JP2009193489A (en) Work procedure manual creation system
KR102282159B1 (en) Multilingual manual authoring apparatus based on XML and method thereof
CN113377368A (en) Project development method, device, server and storage medium
CN113626017A (en) Heterogeneous program analysis method and device, computer equipment and storage medium
CN110058855B (en) Method, device and equipment for updating interface and workflow of software
CN111523294A (en) PDF file-based comment separation processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination