CN111027287B - Method and related device for converting computer executable script - Google Patents

Method and related device for converting computer executable script Download PDF

Info

Publication number
CN111027287B
CN111027287B CN201911349761.7A CN201911349761A CN111027287B CN 111027287 B CN111027287 B CN 111027287B CN 201911349761 A CN201911349761 A CN 201911349761A CN 111027287 B CN111027287 B CN 111027287B
Authority
CN
China
Prior art keywords
file
industry specification
executable script
computer executable
mapping
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.)
Active
Application number
CN201911349761.7A
Other languages
Chinese (zh)
Other versions
CN111027287A (en
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.)
Shenzhen Jizhi Digital Technology Co Ltd
Original Assignee
Shenzhen Jizhi Digital Technology Co Ltd
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 Shenzhen Jizhi Digital Technology Co Ltd filed Critical Shenzhen Jizhi Digital Technology Co Ltd
Priority to CN201911349761.7A priority Critical patent/CN111027287B/en
Publication of CN111027287A publication Critical patent/CN111027287A/en
Application granted granted Critical
Publication of CN111027287B publication Critical patent/CN111027287B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/33Intelligent editors
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A30/00Adapting or protecting infrastructure or their operation
    • Y02A30/60Planning or developing urban green infrastructure

Abstract

The embodiment of the application discloses a method, a device, equipment and a storage medium for converting a computer executable script, wherein the method comprises the following steps: acquiring an industry specification file and a concept mapping dictionary, wherein the concept mapping dictionary comprises mapping relations between professional terms and code identifiers in the industry specification file; converting the industry specification file into a mind map file according to the concept mapping dictionary, wherein the mind map file is a file which utilizes code identifications corresponding to the professional terms in the industry specification file to represent semantic content of the industry specification file; and analyzing the thinking guide file by using a mapping configuration file to obtain a target computer executable script corresponding to the industry specification file, wherein the mapping configuration file is written based on the concept mapping dictionary configuration and comprises a mapping relation between the code identification and a computer language. The method can effectively simplify the process of converting the industry specification file into the computer executable script.

Description

Method and related device for converting computer executable script
Technical Field
The application relates to the technical field of computers, in particular to a method and a related device for converting computer executable scripts.
Background
With rapid development of computer technology, related design tasks are completed based on intelligent plan design programs, and the intelligent plan design programs are popular design modes in many industries. However, in practical applications, many industries have specific professionals, and when computer algorithm developers develop callable programs related to intelligent plan design programs for these industries, a great deal of time and effort are usually required to understand the relevant professional content of the industries, and then rewrite the callable programs related to the intelligent plan design programs.
Taking the building industry as an example, when the intelligent plan design program is utilized to complete related building design tasks, a computer executable script generated based on the city planning technical management regulation file needs to be called in the running process of the intelligent plan design program, and because the building industry has a specific professional barrier, computer algorithm research and development personnel usually need to consume a great deal of time and effort to understand the city planning technical management regulation file with the help of a building designer, and then the city planning technical management regulation file is converted into the computer executable script, so that the implementation process is very complex and fussy.
How to make computer algorithm research and development personnel complete the conversion from the industry specification file to the computer executable script without understanding the related industry specification file, and simplify the process of converting the industry specification file into the computer executable script has become the problem to be solved in the present day.
Disclosure of Invention
The embodiment of the application provides a conversion method of a computer executable script, which can enable computer algorithm research and development personnel to complete the conversion from an industry specification file to the computer executable script under the condition that related industry specification files are not understood, and simplify the process of converting the industry specification file into the computer executable script.
In view of this, a first aspect of the present application provides a method for converting a computer-executable script, the method comprising:
acquiring an industry specification file and a concept mapping dictionary; the concept mapping dictionary comprises mapping relations between professional terms and code identifiers in the industry specification file;
converting the industry specification file into a mind map file according to the concept mapping dictionary; the mind map file is a file which utilizes code identification corresponding to the technical terms in the industry specification file to represent the semantic content of the industry specification file;
analyzing the thinking guide graph file by using a mapping configuration file to obtain a target computer executable script corresponding to the industry specification file; the mapping configuration file is written based on the concept mapping dictionary configuration and comprises a mapping relation between code identifiers and computer languages.
Optionally, the method further comprises:
when the intelligent plan design program is detected to call the target computer executable script, a basic tool program is called, so that the basic tool program is utilized to determine technical parameters related in the industry specification file aiming at the current design task of the intelligent plan design program; the basic tool program is generated based on the concept mapping dictionary, and the concept mapping dictionary further comprises a calculation mode of related technical parameters in the industry specification file.
Optionally, the analyzing the mind map file by using the mapping configuration file to obtain a target computer executable script corresponding to the industry specification file includes:
analyzing the thinking guide image file by using the mapping configuration file through a file analysis program to obtain a basic computer executable script;
embedding the basic computer executable script into a pre-built computer program framework to obtain the target computer executable script.
Optionally, before the map configuration file is used to parse the mind map file to obtain a target computer executable script corresponding to the industry specification file, the method further includes:
The thinking guide file is stored as a markup language md file;
the analyzing the mind map file by using the mapping configuration file to obtain a target computer executable script corresponding to the industry specification file, including:
and analyzing the md file by using the mapping configuration file to obtain the executable script of the target computer.
Optionally, the industry specification file is an urban planning technology management specification file in the building field; the concept mapping dictionary comprises mapping relations between professional terms and code identifications in the city planning technology management rule file; said converting said industry specification file into a mind map file according to said concept mapping dictionary, comprising:
converting the city planning technical management regulation file into a back-off mind map file, a back-off mind map file and a spelling mind map file according to the concept mapping dictionary;
the analyzing the mind map file by using the mapping configuration file to obtain a target computer executable script corresponding to the industry specification file, including:
analyzing the back-off thinking guide graph file by using the mapping configuration file to obtain a basic back-off computer executable script; analyzing the out-of-bounds thinking guide graph file by using the mapping configuration file to obtain a basic out-of-bounds computer executable script; analyzing the spelling thinking guide picture file by using the mapping configuration file to obtain a basic spelling computer executable script;
Embedding the basic back-off computer executable script, the basic back-off computer executable script and the basic spelling file computer executable script into a pre-built computer program framework to obtain the target computer executable script.
Optionally, the method further comprises:
when the intelligent building plan design program is detected to call the target computer executable script, a basic out-of-range and out-of-range building tool program is called to determine technical parameters related in the city planning technical management regulation file aiming at the current design task of the intelligent building plan design program by utilizing the basic out-of-range and out-of-range building tool program; the basic out-of-bounds and out-of-distance spelling tool program is generated based on the concept mapping dictionary, and the concept mapping dictionary further comprises a calculation mode of relevant technical parameters in the city planning technology management regulation file.
Optionally, the method further comprises:
when the industry specification file changes, the concept mapping dictionary is updated according to the changed content.
A second aspect of the present application provides a conversion apparatus for computer-executable scripts, the apparatus comprising:
The acquisition module is used for acquiring an industry specification file and a concept mapping dictionary; the concept mapping dictionary comprises mapping relations between professional terms and code identifiers in the industry specification file;
the conversion module is used for converting the industry specification file into a thinking guide graph file according to the concept mapping dictionary; the mind map file is a file which utilizes code identification corresponding to the technical terms in the industry specification file to represent the semantic content of the industry specification file;
the analysis module is used for analyzing the thinking guide graph file by using the mapping configuration file to obtain a target computer executable script corresponding to the industry specification file; the mapping configuration file is written based on the concept mapping dictionary configuration and comprises a mapping relation between code identifiers and computer languages.
A third aspect of the application provides an apparatus comprising: a processor and a memory;
the memory is used for storing a computer program;
the processor is configured to call the computer program to execute the method for converting the computer executable script according to the first aspect.
A fourth aspect of the present application provides a computer-readable storage medium storing a computer program for executing the method of converting a computer-executable script according to the first aspect above.
A fifth aspect of the application provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of converting a computer executable script as described in the first aspect above.
From the above technical solutions, the embodiment of the present application has the following advantages:
the embodiment of the application provides a method for converting a computer executable script, which is used for converting an industry specification file into the computer executable script based on a concept mapping dictionary, and effectively simplifying the conversion process from the industry specification file into the computer executable script. Specifically, an industry specification file and a concept mapping dictionary are firstly obtained, wherein the concept mapping dictionary comprises mapping relations between professional terms and code identifiers in the industry specification file; then, converting the industry specification file into a mind map file according to the concept mapping dictionary, wherein the mind map file is a file for representing semantic content of the industry specification file by using code identifications corresponding to the professional terms in the industry specification file; further, the mind map file is parsed with a mapping profile that is generated based on a concept mapping dictionary that includes mapping relationships between code identifiers and computer languages to obtain target computer-executable scripts corresponding to industry specification files. In this way, in the process of converting the industry specification file into the computer executable script, the related equipment can automatically complete the conversion from the industry specification file to the mind map file and the conversion from the mind map file to the computer executable script based on the concept mapping dictionary, so that the conversion process from the industry specification file to the computer executable script is simplified, and the conversion efficiency from the industry specification file to the computer executable script is improved.
Drawings
FIG. 1 is a flow chart of a method for converting a computer executable script according to an embodiment of the present application;
FIG. 2 is a flow chart of a method for converting computer executable scripts in the field of architecture according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a converting device for computer executable scripts according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
In order to make the present application better understood by those skilled in the art, the following description will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In the prior art, computer algorithm developers usually need to spend a great deal of time and effort to understand industry specification files of specific industries with the help of related professionals, and then write computer executable scripts for the intelligent plan design program to call based on the understanding of the computer algorithm developers, so that the implementation process is extremely complicated, and usually needs to consume a great deal of time and effort of the computer algorithm developers and the related professionals.
In order to simplify the process of converting an industry specification file into a computer executable script, the embodiment of the application provides a method for converting the computer executable script, in the method, firstly, the industry specification file and a concept mapping dictionary are acquired, wherein the concept mapping dictionary comprises mapping relations between professional terms and code identifiers in the industry specification file; then converting the industry specification file into a mind map file according to the concept mapping dictionary, wherein the mind map file is a file which indicates the semantic content of the industry specification file by using code identifications corresponding to professional data in the industry specification file; further, the mind map file is parsed with a mapping profile, which is also generated based on a concept mapping dictionary, including a mapping relationship between code identifiers and computer languages, to obtain a target computer-executable script corresponding to the industry specification file.
Thus, through the method for converting the computer executable script, in the process of converting the industry specification file into the computer executable script, the related equipment can automatically complete the conversion from the industry specification file to the mind map file and the conversion from the mind map file to the computer executable script based on the concept mapping dictionary, thereby simplifying the process of converting the industry specification file into the computer executable script, improving the conversion efficiency from the industry specification file to the computer executable script,
in the process of converting the industry specification file into the computer executable script, related equipment can automatically complete the conversion from the industry specification file to the mind map file and the conversion from the mind map file to the computer executable script based on the concept mapping dictionary, so that the conversion process from the industry specification file to the computer executable script is simplified, and the conversion efficiency from the industry specification file to the computer executable script is improved.
The device for executing the method for converting the computer executable script provided by the embodiment of the application may be a terminal device or a server. The terminal device may be a computer, a smart phone, a tablet computer, or the like. The server may be a web server or an application server.
The method for converting the computer executable script provided by the application is described below by way of embodiments.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for converting a computer executable script according to an embodiment of the present application. As shown in fig. 1, the method for converting a computer-executable script includes the steps of:
step 101: acquiring an industry specification file and a concept mapping dictionary; the concept mapping dictionary comprises mapping relations between professional terms and code identifications in the industry specification file.
When the industry specification file needs to be converted into a computer executable script which can be called by the intelligent plan design program, an operator can input the industry specification file and the mapping concept dictionary into the electronic device so as to complete the conversion from the industry specification file to the computer executable script through the electronic device.
The industry standard file refers to a standard file in industry as a reference standard, and takes the building field as an example, the industry standard file can be a city planning technical management rule file, wherein design and construction standards of various buildings are recorded, and the standard content recorded in the city planning technical management rule file is required to be referred when various buildings are designed and constructed. In other fields, the industry specification file may be other files, which are not limited in any way, nor are the industry specification files in the present application specifically limited.
It should be noted that, the concept mapping dictionary includes a mapping relationship between a term of art and a code identifier in an industry specification file. It should be appreciated that the industry specification file will typically include a number of terms within the industry to which it pertains, and accordingly, the concept mapping dictionary will include code identifications corresponding to the terms within the industry specification file. Still taking the building field as an example, in the concept mapping dictionary corresponding to the city specification technical management rule file, the mapping relationship between the technical terms and the code identifiers in the city specification technical management rule file is included, for example, the code identifier corresponding to "south" in the city specification technical management rule file may be "S", and the code identifier corresponding to "not south" in the city specification technical management rule file may be "not_s".
It should be understood that, in practical application, the concept mapping dictionary corresponding to the industry specification files of different industries is different, and the content included in the concept mapping dictionary is not specifically limited in this disclosure.
It should be noted that, in order to ensure that the application range of the concept mapping dictionary in the same industry is wider and that the concept mapping dictionary can be always matched with the industry specification file, when the industry specification file is changed, the concept mapping dictionary needs to be updated according to the changed content in the industry specification file.
For example, in the building field, the city specification technical management rule files of different cities are usually different, and it is assumed that the concept mapping dictionary is constructed based on the city specification technical management rule file of the city a, at this time, if the city specification technical management rule file of the city B is to be converted into a computer executable script by using the concept mapping dictionary, the difference between the city specification technical management rule file of the city B and the city specification technical management rule file of the city a can be determined, and then the code identifier corresponding to the difference content between the two is added in the concept mapping dictionary, so that the concept mapping dictionary can be simultaneously suitable for converting the city specification technical management rule file of the city a and the city specification technical management rule file of the city B.
For another example, in the building field, the city specification technical management rule file may be updated irregularly, and the updated city specification technical management rule file may relate to a new term of art, and at this time, a code identifier corresponding to the new term of art existing in the updated city specification technical management rule file may be added to the concept mapping dictionary.
Step 102: converting the industry specification file into a mind map file according to the concept mapping dictionary; the mind map file is a file that represents semantic content of the industry specification file using code identifications corresponding to terms of art in the industry specification file.
After the industry specification file and the concept mapping dictionary are obtained, the industry specification file can be converted into a corresponding thinking guide image file, namely a km file, based on the mapping relation between the professional terms and the code identifications included in the concept mapping dictionary. The mind map file essentially uses code identifiers corresponding to terms in an industry specification file to indicate that the semantic content in the industry specification file is a file, for example, in the building field, each node in a mind map obtained by converting a city specification technical management rule file uses a code identifier in a concept mapping dictionary, such as "side_lenblga? "means" judge based on the gable length of building a ", such as" share_angle_betwen_xasix blgB? "means" the angle of building B with the x-axis ", etc.
FIG. 2 is a flow chart of an implementation of converting computer-executable scripts in the building field. As shown in fig. 2, in the building field, the urban planning technical management specification file is generally converted into the following three types of mind guide files according to a concept mapping dictionary: a back-off mind map file, a back-off mind map file and a spelling mind map file. The back-off thinking guide file details the specified interval distance between any two buildings under different conditions, the back-off thinking guide file details the specified interval distance between any building and different boundaries (such as roads, rivers and the like), and the building thinking guide file details the limitation of building lengths of different types.
It should be understood that, in practical application, if the technical solution provided in the embodiment of the present application is applied to other industries, the mind map files obtained based on the conversion of the industry specification files in the industries may also be other types of mind map files, and the application does not specifically limit the types of mind map files herein.
In order to facilitate the program to parse the above mind map file, the mind map file may be further stored as a mark down (md) file. Accordingly, as shown in fig. 2, in the building field, the back-off mind map file, the back-to-bound mind map file and the spelling mind map file need to be stored one by one as the corresponding md files.
Step 103: analyzing the thinking guide graph file by using a mapping configuration file to obtain a target computer executable script corresponding to the industry specification file; the mapping configuration file is generated based on the concept mapping dictionary and comprises a mapping relation between code identifiers and computer languages.
After converting the industry specification file into the mind map file, the file analysis program can further analyze the converted mind map file by using the mapping configuration file, so as to obtain the target computer executable script corresponding to the industry specification file.
It should be noted that the mapping configuration file includes a mapping relationship between the code identifier and the computer language. The mapping profile is also generated substantially based on a concept mapping dictionary, the mapping profile being used to further parse the mind map file to correspondingly convert code identifications in the mind map file into a computer language.
It should be understood that if the mind map file is saved as a markup language file, this step is essentially to parse the markup language file by using the mapping configuration file through the file parsing program (i.e. md file auto-parsing script) to obtain a computer executable script corresponding to the industry specification file,
When the method is specifically implemented, the mapping configuration file is utilized to analyze the mind map file through the file analysis program to obtain the basic computer executable script, and then the basic computer executable script is embedded into a pre-built computer program framework to obtain the target computer executable script. In consideration of the conventional situation, it is generally difficult to directly call the intelligent plan design program by using the mapping configuration file to analyze the mind guide file to obtain the computer executable script, so after the mapping configuration file is utilized to analyze the mind guide file to obtain the basic computer executable script, the basic computer executable script needs to be further embedded into a pre-built computer program framework, so as to ensure that the converted computer executable script can be smoothly called by the intelligent plan design program.
The file parsing program is usually pre-written, and may include a plurality of partial module frameworks, where the file parsing program may read and parse md files, and further fill the content obtained by parsing the mind map into the frameworks by using the mapping configuration file, so as to generate a computer executable script.
As shown in fig. 2, taking the construction field as an example, when the step 102 is performed to obtain a back-off mind map file, a back-off mind map file and a spelling thinking map file, and when the computer executable script is further analyzed based on the three types of mind map files, the back-off mind map file is needed to be analyzed by the file analysis program by using the mapping configuration file to obtain a basic back-off computer executable script, the back-off mind map file is analyzed by using the mapping configuration file to obtain a basic back-off computer executable script, and the spelling thinking map file is analyzed by using the mapping configuration file to obtain a basic spelling computer executable script; and embedding the basic back-off computer executable script, the basic back-off computer executable script and the basic splicing computer executable script into a pre-built computer program integral frame to obtain the target computer executable script.
It should be noted that, in order to ensure that the computer executable script obtained by converting the industry specification file may be better matched with the intelligent plan design program, it is further necessary to write a basic tool program based on the concept mapping dictionary, where the basic tool program is used to calculate, for the design task of the intelligent plan design program, the technical parameters mentioned in the industry specification file involved therein, for example, calculate, for a certain building currently involved, the length, width and height of the building, the distance between the building and an adjacent boundary, and so on.
It should be noted that, the concept mapping dictionary in the present application may include, in addition to the mapping relationship between the technical terms and the code identifiers in the industry specification document mentioned above, a calculation manner of the related technical parameters in the industry specification document.
When it is detected that the intelligent pre-project design program invokes the target computer executable script, the basic tool program above may be invoked to determine, with the basic tool program, the technical parameters mentioned in the industry specification document referred to therein for the current design task of the intelligent pre-project design program.
It should be noted that, in the building field, the basic tool program may be a basic out-of-bounds and out-of-bounds building tool program, which is also generated based on a concept mapping dictionary, where the concept mapping dictionary includes a calculation manner of related technical parameters in a city planning technical management rule file. The basic out-of-bounds and out-of-bounds building tool program is mainly divided into two parts, wherein one part is a basic algorithm which is mainly used for geometric abstraction treatment, so that a building in a design task is separated from a specific service scene and is abstracted into line segments, geometric outlines and coordinate axes, and the geometric rotation, displacement, projection, intersection, parallelism and other operational relations; and the other part is to restore the related technical parameters related to the technical management regulation files of the city planning in the concept mapping dictionary according to the result determined by the basic algorithm, such as the distance between buildings and gable surfaces with parallel main edges, the judgment of a projection shielding surface according to sunlight, the projection in the north-south direction and the like.
When the intelligent building plan design program is detected to call the target computer executable script, the basic out-of-range and out-of-range building tool program is called, so that the technical parameters in the related city planning technical management regulation file are determined according to the current design task of the intelligent building plan design program by utilizing the basic out-of-range and out-of-range building tool program.
It should be understood that, when the technical solution provided by the embodiment of the present application is applied to other industries, the invoked basic tool program is correspondingly another basic tool program, and the present application is not limited in detail herein.
The method for converting the computer executable script realizes the conversion from the industry specification file to the computer executable script based on the concept mapping dictionary, and effectively simplifies the conversion process from the industry specification file to the computer executable script. Specifically, an industry specification file and a concept mapping dictionary are firstly obtained, wherein the concept mapping dictionary comprises mapping relations between professional terms and code identifiers in the industry specification file; then, converting the industry specification file into a mind map file according to the concept mapping dictionary, wherein the mind map file is a file for representing semantic content of the industry specification file by using code identifications corresponding to the professional terms in the industry specification file; further, the mind map file is parsed by a file parsing program using a mapping configuration file generated based on a concept mapping dictionary, including a mapping relationship between code identifiers and computer languages, to obtain a target computer-executable script corresponding to the industry specification file. In this way, in the process of converting the industry specification file into the computer executable script, the related equipment can automatically complete the conversion from the industry specification file to the mind map file and the conversion from the mind map file to the computer executable script based on the concept mapping dictionary, so that the conversion process from the industry specification file to the computer executable script is simplified, and the conversion efficiency from the industry specification file to the computer executable script is improved.
The embodiment of the application also provides a device for converting the computer executable script. Referring to fig. 3, fig. 3 is a schematic structural diagram of a conversion device for computer executable scripts according to an embodiment of the present application, and as shown in fig. 3, the device includes:
an acquiring module 301, configured to acquire an industry specification file and a concept mapping dictionary; the concept mapping dictionary comprises mapping relations between professional terms and code identifiers in the industry specification file;
a conversion module 302, configured to convert the industry specification file into a mind map file according to the concept mapping dictionary; the mind map file is a file which utilizes code identification corresponding to the technical terms in the industry specification file to represent the semantic content of the industry specification file;
the parsing module 303 is configured to parse the mind map file by using a mapping configuration file to obtain a target computer executable script corresponding to the industry specification file; the mapping configuration file is written based on the concept mapping dictionary configuration and comprises a mapping relation between code identifiers and computer languages.
Optionally, the apparatus further includes:
the tool program calling module is used for calling a basic tool program when the intelligent plan design program is detected to call the target computer executable script, so that the basic tool program is utilized to determine technical parameters related in the industry specification file aiming at the current design task of the intelligent plan design program; the basic tool program is generated based on the concept mapping dictionary, and the concept mapping dictionary further comprises a calculation mode of related technical parameters in the industry specification file.
Optionally, the parsing module is specifically configured to:
analyzing the thinking guide image file by using the mapping configuration file through a file analysis program to obtain a basic computer executable script;
embedding the basic computer executable script into a pre-built computer program framework to obtain the target computer executable script.
Optionally, the apparatus further includes:
the format conversion module is used for saving the thinking guide file as a markup language md file;
the parsing module is specifically configured to:
and analyzing the md file by using the mapping configuration file to obtain the executable script of the target computer.
Optionally, the industry specification file is an urban planning technology management specification file in the building field; the concept mapping dictionary comprises mapping relations between professional terms and code identifications in the city planning technology management rule file; the conversion module is specifically configured to:
converting the city planning technical management regulation file into a back-off mind map file, a back-off mind map file and a spelling mind map file according to the concept mapping dictionary;
the parsing module is specifically configured to:
Analyzing the back-off thinking guide graph file by using the mapping configuration file to obtain a basic back-off computer executable script; analyzing the out-of-bounds thinking guide graph file by using the mapping configuration file to obtain a basic out-of-bounds computer executable script; analyzing the spelling thinking guide picture file by using the mapping configuration file to obtain a basic spelling computer executable script;
embedding the basic back-off computer executable script, the basic back-off computer executable script and the basic spelling file computer executable script into a pre-built computer program framework to obtain the target computer executable script.
Optionally, the apparatus further includes:
the basic out-of-range and out-of-range building tool calling module is used for calling a basic out-of-range and out-of-range building tool program when the intelligent building plan design program is detected to call the target computer executable script, so that the technical parameters related in the city planning technical management regulation file are determined by utilizing the basic out-of-range and out-of-range building tool program aiming at the current design task of the intelligent building plan design program; the basic out-of-bounds and out-of-distance spelling tool program is generated based on the concept mapping dictionary, and the concept mapping dictionary further comprises a calculation mode of relevant technical parameters in the city planning technology management regulation file.
Optionally, the apparatus further includes:
and the updating module is used for updating the concept mapping dictionary according to the changed content when the industry specification file is changed.
The conversion device of the computer executable script realizes the conversion from the industry specification file to the computer executable script based on the concept mapping dictionary, and effectively simplifies the conversion process from the industry specification file to the computer executable script. Specifically, an industry specification file and a concept mapping dictionary are firstly obtained, wherein the concept mapping dictionary comprises mapping relations between professional terms and code identifiers in the industry specification file; then, converting the industry specification file into a mind map file according to the concept mapping dictionary, wherein the mind map file is a file for representing semantic content of the industry specification file by using code identifications corresponding to the professional terms in the industry specification file; further, the mind map file is parsed by a file parsing program using a mapping configuration file generated based on a concept mapping dictionary, including a mapping relationship between code identifiers and computer languages, to obtain a target computer-executable script corresponding to the industry specification file. In this way, in the process of converting the industry specification file into the computer executable script, the related equipment can automatically complete the conversion from the industry specification file to the mind map file and the conversion from the mind map file to the computer executable script based on the concept mapping dictionary, so that the conversion process from the industry specification file to the computer executable script is simplified, and the conversion efficiency from the industry specification file to the computer executable script is improved.
The embodiment of the application also provides equipment, which is specifically terminal equipment. Referring to fig. 4, fig. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present application. For convenience of explanation, only those portions of the embodiments of the present application that are relevant to the embodiments of the present application are shown, and specific technical details are not disclosed, please refer to the method portions of the embodiments of the present application. The terminal can be any terminal equipment including a computer, a tablet personal computer, a personal digital assistant (English full name: personal Digital Assistant, english abbreviation: PDA) and the like, taking the terminal as an example of the computer:
fig. 4 is a block diagram showing a part of the structure of a computer related to a terminal provided by an embodiment of the present application. Referring to fig. 4, a computer includes: radio Frequency (r.f. Frequency) circuit 410, memory 420, input unit 430, display unit 440, sensor 450, audio circuit 460, wireless fidelity (r.f. wireless fidelity, wiFi) module 470, processor 480, and power supply 490. Those skilled in the art will appreciate that the computer architecture shown in fig. 4 is not limiting and that more or fewer components than shown may be included, or that certain components may be combined, or that different arrangements of components may be provided.
The memory 420 may be used to store software programs and modules, and the processor 480 may perform various functional applications and data processing of the computer by executing the software programs and modules stored in the memory 420. The memory 420 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the computer (such as audio data, phonebooks, etc.), and the like. In addition, memory 420 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 480 is a control center of the computer, connects various parts of the entire computer using various interfaces and lines, and performs various functions of the computer and processes data by running or executing software programs and/or modules stored in the memory 420, and calling data stored in the memory 420, thereby performing overall monitoring of the computer. Optionally, the processor 480 may include one or more processing units; preferably, the processor 480 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 480.
In the embodiment of the present application, the processor 480 included in the terminal further has the following functions:
acquiring an industry specification file and a concept mapping dictionary; the concept mapping dictionary comprises mapping relations between professional terms and code identifiers in the industry specification file;
converting the industry specification file into a mind map file according to the concept mapping dictionary; the mind map file is a file which utilizes code identification corresponding to the technical terms in the industry specification file to represent the semantic content of the industry specification file;
analyzing the thinking guide graph file by using a mapping configuration file to obtain a target computer executable script corresponding to the industry specification file; the mapping configuration file is written based on the concept mapping dictionary configuration and comprises a mapping relation between code identifiers and computer languages.
Optionally, the processor 480 is further configured to execute steps of any implementation manner of the method for converting a computer executable script provided in an embodiment of the present application.
Another device is provided in the embodiments of the present application, where the device may be a server, and fig. 5 is a schematic diagram of a server structure provided in the embodiments of the present application, where the server 500 may have a relatively large difference due to configuration or performance, and may include one or more central processing units (central processing units, CPU) 522 (e.g., one or more processors) and a memory 532, one or more storage media 530 (e.g., one or more mass storage devices) storing application programs 542 or data 544. Wherein memory 532 and storage medium 530 may be transitory or persistent. The program stored in the storage medium 530 may include one or more modules (not shown), each of which may include a series of instruction operations on a server. Still further, the central processor 522 may be configured to communicate with a storage medium 530 and execute a series of instruction operations in the storage medium 530 on the server 500.
The server 500 may also include one or more power supplies 526, one or more wired or wireless network interfaces 550, one or more input/output interfaces 558, and/or one or more operating systems 541, such as Windows ServerTM, mac OS XTM, unixTM, linuxTM, freeBSDTM, etc.
The steps performed by the server in the above embodiments may be based on the server structure shown in fig. 5.
Wherein, the CPU 522 is configured to perform the following steps:
acquiring an industry specification file and a concept mapping dictionary; the concept mapping dictionary comprises mapping relations between professional terms and code identifiers in the industry specification file;
converting the industry specification file into a mind map file according to the concept mapping dictionary; the mind map file is a file which utilizes code identification corresponding to the technical terms in the industry specification file to represent the semantic content of the industry specification file;
analyzing the thinking guide graph file by using a mapping configuration file to obtain a target computer executable script corresponding to the industry specification file; the mapping configuration file is written based on the concept mapping dictionary configuration and comprises a mapping relation between code identifiers and computer languages.
Optionally, the CPU 522 may also be used to perform the steps of any implementation of the method of converting a computer executable script in an embodiment of the present application.
The embodiment of the application also provides a computer readable storage medium for storing a computer program for executing the method for converting the computer executable script introduced by the above method embodiment.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: u disk, mobile hard disk, read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk, etc. various media for storing computer program.
It should be understood that in the present application, "at least one (item)" means one or more, and "a plurality" means two or more. "and/or" for describing the association relationship of the association object, the representation may have three relationships, for example, "a and/or B" may represent: only a, only B and both a and B are present, wherein a, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b or c may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (9)

1. A method of converting a computer-executable script, the method comprising:
acquiring an industry specification file and a concept mapping dictionary; the concept mapping dictionary comprises mapping relations between professional terms and code identifiers in the industry specification file;
converting the industry specification file into a mind map file according to the concept mapping dictionary; the mind map file is a file which utilizes code identification corresponding to the technical terms in the industry specification file to represent the semantic content of the industry specification file;
analyzing the thinking guide graph file by using a mapping configuration file to obtain a target computer executable script corresponding to the industry specification file; the mapping configuration file is written based on the concept mapping dictionary configuration and comprises a mapping relation between a code identifier and a computer language;
when the industry specification file is changed, updating the concept mapping dictionary according to the changed content; when the industry specification file is changed, the concept mapping dictionary is updated according to the changed content, and the method comprises the following steps: and determining the difference content before and after the industry specification file is changed, and adding code identification corresponding to the difference content in the concept mapping dictionary.
2. The method according to claim 1, wherein the method further comprises:
when the intelligent plan design program is detected to call the target computer executable script, a basic tool program is called, so that the basic tool program is utilized to determine technical parameters related in the industry specification file aiming at the current design task of the intelligent plan design program; the basic tool program is generated based on the concept mapping dictionary, and the concept mapping dictionary further comprises a calculation mode of related technical parameters in the industry specification file.
3. The method of claim 1, wherein parsing the mind map file using a mapping configuration file to obtain a target computer-executable script corresponding to the industry specification file comprises:
analyzing the thinking guide image file by using the mapping configuration file through a file analysis program to obtain a basic computer executable script;
embedding the basic computer executable script into a pre-built computer program framework to obtain the target computer executable script.
4. The method of claim 1, wherein prior to parsing the mind map file with a mapping configuration file to obtain a target computer-executable script corresponding to the industry specification file, the method further comprises:
The thinking guide file is stored as a markup language md file;
the analyzing the mind map file by using the mapping configuration file to obtain a target computer executable script corresponding to the industry specification file, including:
and analyzing the md file by using the mapping configuration file to obtain the executable script of the target computer.
5. The method of claim 1, wherein the industry specification file is a city planning technology management specification file for a building domain; the concept mapping dictionary comprises mapping relations between professional terms and code identifications in the city planning technology management rule file; said converting said industry specification file into a mind map file according to said concept mapping dictionary, comprising:
converting the city planning technical management regulation file into a back-off mind map file, a back-off mind map file and a spelling mind map file according to the concept mapping dictionary;
the analyzing the mind map file by using the mapping configuration file to obtain a target computer executable script corresponding to the industry specification file, including:
analyzing the back-off thinking guide graph file by using the mapping configuration file to obtain a basic back-off computer executable script; analyzing the out-of-bounds thinking guide graph file by using the mapping configuration file to obtain a basic out-of-bounds computer executable script; analyzing the spelling thinking guide picture file by using the mapping configuration file to obtain a basic spelling computer executable script;
Embedding the basic back-off computer executable script, the basic back-off computer executable script and the basic spelling computer executable script into a pre-built computer program framework to obtain the target computer executable script.
6. The method of claim 5, wherein the method further comprises:
when the intelligent building plan design program is detected to call the target computer executable script, a basic out-of-range and out-of-range building tool program is called to determine technical parameters related in the city planning technical management regulation file aiming at the current design task of the intelligent building plan design program by utilizing the basic out-of-range and out-of-range building tool program; the basic out-of-bounds and out-of-distance spelling tool program is generated based on the concept mapping dictionary, and the concept mapping dictionary further comprises a calculation mode of relevant technical parameters in the city planning technology management regulation file.
7. A device for converting a computer-executable script, the device comprising:
the acquisition module is used for acquiring an industry specification file and a concept mapping dictionary; the concept mapping dictionary comprises mapping relations between professional terms and code identifiers in the industry specification file;
The conversion module is used for converting the industry specification file into a thinking guide graph file according to the concept mapping dictionary; the mind map file is a file which utilizes code identification corresponding to the technical terms in the industry specification file to represent the semantic content of the industry specification file;
the analysis module is used for analyzing the thinking guide graph file by using the mapping configuration file to obtain a target computer executable script corresponding to the industry specification file; the mapping configuration file is written based on the concept mapping dictionary configuration and comprises a mapping relation between a code identifier and a computer language;
the updating module is used for updating the concept mapping dictionary according to the changed content when the industry specification file is changed; when the industry specification file is changed, the concept mapping dictionary is updated according to the changed content, and the method comprises the following steps: and determining the difference content before and after the industry specification file is changed, and adding code identification corresponding to the difference content in the concept mapping dictionary.
8. An electronic device, the electronic device comprising: a processor and a memory;
The memory is used for storing a computer program;
the processor is configured to call the computer program to execute the method of converting the computer executable script of any one of claims 1 to 6.
9. A computer-readable storage medium storing a computer program for executing the method of converting a computer-executable script according to any one of claims 1 to 6.
CN201911349761.7A 2019-12-24 2019-12-24 Method and related device for converting computer executable script Active CN111027287B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911349761.7A CN111027287B (en) 2019-12-24 2019-12-24 Method and related device for converting computer executable script

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911349761.7A CN111027287B (en) 2019-12-24 2019-12-24 Method and related device for converting computer executable script

Publications (2)

Publication Number Publication Date
CN111027287A CN111027287A (en) 2020-04-17
CN111027287B true CN111027287B (en) 2023-08-29

Family

ID=70214157

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911349761.7A Active CN111027287B (en) 2019-12-24 2019-12-24 Method and related device for converting computer executable script

Country Status (1)

Country Link
CN (1) CN111027287B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104598240A (en) * 2015-01-20 2015-05-06 北京仿真中心 Platform-spanning simulation model development method and system
CN105279090A (en) * 2015-11-17 2016-01-27 中国建设银行股份有限公司 Test script generating method and test script generating device applied in financial field
CN108717405A (en) * 2018-04-18 2018-10-30 西安理工大学 The complementing method of the default subject of staircase design specification based on mind map
CN109918296A (en) * 2019-02-14 2019-06-21 百度在线网络技术(北京)有限公司 Automatic software test method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9286583B2 (en) * 2011-12-05 2016-03-15 International Business Machines Corporation Integrating mind mapping technology with case modeling

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104598240A (en) * 2015-01-20 2015-05-06 北京仿真中心 Platform-spanning simulation model development method and system
CN105279090A (en) * 2015-11-17 2016-01-27 中国建设银行股份有限公司 Test script generating method and test script generating device applied in financial field
CN108717405A (en) * 2018-04-18 2018-10-30 西安理工大学 The complementing method of the default subject of staircase design specification based on mind map
CN109918296A (en) * 2019-02-14 2019-06-21 百度在线网络技术(北京)有限公司 Automatic software test method and device

Also Published As

Publication number Publication date
CN111027287A (en) 2020-04-17

Similar Documents

Publication Publication Date Title
CN111639287A (en) Page processing method and device, terminal equipment and readable storage medium
CN110781658B (en) Resume analysis method, resume analysis device, electronic equipment and storage medium
CN111813465B (en) Information acquisition method, device, medium and equipment
CN112650905A (en) Anti-crawler method and device based on label, computer equipment and storage medium
CN109828759B (en) Code compiling method, device, computer device and storage medium
CN110716804A (en) Method and device for automatically deleting useless resources, storage medium and electronic equipment
CN111027287B (en) Method and related device for converting computer executable script
CN111191225B (en) Method, device, medium and electronic equipment for switching isolated objects
CN103809915B (en) The reading/writing method of a kind of disk file and device
CN112631588A (en) File generation method and device, electronic equipment and computer readable medium
CN106843822B (en) Execution code generation method and equipment
CN113986879A (en) Service data migration method and related device
CN111539200B (en) Method, device, medium and electronic equipment for generating rich text
CN115167822A (en) Branch code merging method, device, equipment and storage medium
CN113141407B (en) Page resource loading method and device and electronic equipment
CN104965737A (en) Updated data acquisition method and device
CN111273913B (en) Method and device for outputting application program interface data represented by specifications
CN114064601B (en) Storage process conversion method, device, equipment and storage medium
CN112306584A (en) Application program operation control method, device, medium and equipment
CN112258149A (en) Method, device, equipment and storage medium for determining circuit switchable power supply rate
CN111930377A (en) Topological relation display method and device, server and storage medium
CN105183491A (en) Cross-platform desktop GIS and starting method thereof
CN109697167A (en) Management method, system, electronic equipment and the storage medium of test variable
CN111181748A (en) Positioning information reporting method, device and readable medium
CN111209225B (en) Method, device, medium and electronic equipment for acquiring real address

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
GR01 Patent grant
GR01 Patent grant