Mind map format conversion method and device, equipment and medium

By obtaining mind map and its structural files, determining conversion rules based on file structure type, and performing format conversion, the problem of file format inappropriateness is solved, and flexible conversion and export flexibility of mind map file format is achieved.

CN119669330APending Publication Date: 2025-03-21INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411728022.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-28
Publication Date
2025-03-21

AI Technical Summary

Technical Problem

In the prior art, due to inadequate file formats, local mind maps and online mind maps cannot be exported, which limits the file format type and export flexibility of mind maps.

Method used

By obtaining the mind map to be converted and its structural files, determining the preset conversion rules for nodes and non-nodes according to the file structure type, performing format conversion, and generating file formats that meet user needs.

Benefits of technology

It realizes flexible conversion of mind map file format, breaks the limitations of corresponding text formats, supports automatic conversion of mind map text structure, and can automatically generate corresponding mind maps, expands the type of export file formats, and improves the flexibility of export.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119669330A_ABST
    Figure CN119669330A_ABST
Patent Text Reader

Abstract

The invention discloses a mind map format conversion method and device, equipment and a medium, and relates to the technical field of financial science and technology. The mind map format conversion method comprises the steps of obtaining a mind map with a to-be-converted format and a first structure file of the mind map with the to-be-converted format; wherein the file format of the first structure file is a similar xml format or a json format; determining a current node preset conversion rule and a current non-node preset conversion rule according to the file structure type of the first structure file; and converting the first structure file into a second structure file according to the to-be-converted-format mind map, the first structure file, a current node preset conversion rule and a current non-node preset conversion rule, and creating a format conversion mind map according to the second structure file. According to the technical scheme, the type of the file format for exporting the mind map can be expanded, and the flexibility of exporting the mind map is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of financial technology, and in particular to a mind map format conversion method, device, equipment and medium. Background Art

[0002] FreeMind is a free mind map making and management software based on Java. It supports multiple operating systems such as Windows, Linux and Mac. It is a tool that can be used to help users organize their thoughts. It can also represent each link with a graphic, and help users understand the entire work process by graphically and structurally thinking. The specific file format stored in FreeMind has the suffix .mm, and its content encoding is not encrypted. Its structure is similar to the XML file format structure.

[0003] As an open source local mind mapping tool, FreeMind is not scalable enough and the cost of modifying existing open source code is too high. Some tools developed based on FreeMind cannot be used based on the json format files of online mind mapping. Among them, the online mind mapping tool is a js-based mind mapping library that does not rely on any framework. It supports logical structure diagrams, mind maps, organizational charts, directory organization charts, timelines (horizontal and vertical), fishbone diagrams and other structures, and has good scalability and secondary development capabilities. The import and export supported by the native js library of the online mind mapping tool is mainly the import of json-like mind maps, such as xmind format files. The native js library cannot support the import and export of xml-like format structures. Summary of the invention

[0004] The present invention provides a mind map format conversion method, device, equipment and medium to solve the problem that local mind maps and online mind maps cannot be exported due to incompatible file formats.

[0005] According to one aspect of the present invention, a method for converting the format of a mind map is provided, comprising:

[0006] Acquire a mind map to be converted in a format and a first structure file of the mind map to be converted in a format; wherein the file format of the first structure file is a xml-like format or a json-like format;

[0007] Determine a current node preset conversion rule and a current non-node preset conversion rule according to the file structure type of the first structure file;

[0008] According to the mind map to be converted in format, the first structure file, the current node preset conversion rule and the current non-node preset conversion rule, the first structure file is converted into a second structure file, and a format conversion mind map is created according to the second structure file.

[0009] According to another aspect of the present invention, there is provided a mind map format conversion device, comprising:

[0010] A data acquisition module, used for acquiring a mind map to be converted in a certain format and a first structure file of the mind map to be converted in a certain format; wherein the file format of the first structure file is a xml-like format or a json-like format;

[0011] A conversion rule determination module, used to determine a current node preset conversion rule and a current non-node preset conversion rule according to a file structure type of the first structure file;

[0012] The format conversion and composition module is used to convert the first structure file into a second structure file according to the mind map to be converted in the format, the first structure file, the current node preset conversion rule and the current non-node preset conversion rule, and create a format conversion mind map according to the second structure file.

[0013] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0014] at least one processor; and

[0015] a memory communicatively connected to the at least one processor; wherein,

[0016] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for converting the format of a mind map described in any embodiment of the present invention.

[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for converting the format of a mind map described in any embodiment of the present invention when executed.

[0018] According to another aspect of the present invention, a computer program product is provided, characterized in that the computer program product includes a computer program, and when the computer program is executed by a processor, the method for converting the format of a mind map described in any embodiment of the present invention is implemented.

[0019] The technical solution of the embodiment of the present invention, by obtaining the mind map of the format to be converted, and the first structure file of the mind map of the format to be converted, thereby determining the current node preset conversion rule and the current non-node preset conversion rule according to the file structure type of the first structure file, and then converting the first structure file into a second structure file according to the mind map of the format to be converted, the first structure file, the current node preset conversion rule and the current non-node preset conversion rule. In this scheme, the first structure file in the xml format or json format can be format-converted according to the current node preset conversion rule and the current non-node preset conversion rule, and the node part and the non-node key part in the mind map of the format to be converted are obtained to obtain a file format that meets the needs of the user, breaking the format limitation of the text corresponding to the mind map, not only realizing the automatic conversion of the corresponding text structure of the mind map, but also automatically generating the corresponding mind map based on the converted second structure file, and being able to flexibly convert the file format of the mind map of the format to be converted, solving the problem that the local mind map and the online mind map cannot be exported due to the incompatibility of the file format, and being able to expand the type of file format of the exported mind map, and improving the flexibility of the mind map export.

[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0022] Figure 1 A flowchart of a method for converting the format of a mind map provided in the first embodiment of the present invention;

[0023] Figure 2 A flowchart of a method for converting the format of a mind map provided in the second embodiment of the present invention;

[0024] Figure 3 A schematic diagram of the structure of a mind map format conversion device provided in Embodiment 3 of the present invention;

[0025] Figure 4 A schematic diagram of the structure of an electronic device that can be used to implement an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0026] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0028] Embodiment 1

[0029] Figure 1 This is a flowchart of a method for converting the format of a mind map provided in the first embodiment of the present invention. This embodiment can enrich the file format of the mind map. The method can be executed by a mind map format conversion device. The mind map format conversion device can be implemented in the form of hardware and / or software. The mind map format conversion device can be configured in an electronic device. The electronic device can be a computer or a server, etc. Figure 1 As shown, the method includes:

[0030] Step 110: Obtain a mind map in a format to be converted and a first structure file of the mind map in a format to be converted.

[0031] The mind map to be converted may be a mind map that needs to be converted into a file format. The first structure file may be a coding file corresponding to the mind map to be converted into a file format. The file format of the first structure file may be a xml-like format or a json format.

[0032] In the embodiment of the present invention, a mind map in a format to be converted may be first obtained, and then a coding file in a specific format corresponding to the mind map in a format to be converted, that is, a first structure file, may be determined.

[0033] Optionally, if the mind map to be converted is displayed based on FreeMind, the first structure file of the mind map to be converted is in an XML-like format; if the mind map to be converted is displayed based on an online mind map, the first structure file of the mind map to be converted is in a json format.

[0034] Step 120: Determine a current node preset conversion rule and a current non-node preset conversion rule according to the file structure type of the first structure file.

[0035] The file structure type can be understood as the file format type. The current node preset conversion rule can be a rule for converting the node part in the mind map to be converted in the format conversion process of the first structure file. The current non-node preset conversion rule can be a rule for converting the non-node key part (which can be defined by the user) in the mind map to be converted in the format conversion process of the first structure file.

[0036] In an embodiment of the present invention, node preset conversion rules and non-node preset conversion rules corresponding to different file structure types can be pre-set, so that after parsing the file structure type of the first structure file, the current node preset conversion rules and current non-node preset conversion rules corresponding to the file structure type of the first structure file can be determined.

[0037] Step 130: convert the first structure file into a second structure file according to the mind map to be converted in the format, the first structure file, the current node preset conversion rule and the current non-node preset conversion rule, and create a format conversion mind map according to the second structure file.

[0038] The second structure file may be a file obtained by converting the first structure file of the mind map whose format is to be converted through file structure conversion.

[0039] In an embodiment of the present invention, the node part of the mind map to be converted in the format in the first structure file can be format converted according to the current node preset conversion rule, and the non-node key part of the mind map to be converted in the format in the first structure file can be format converted using the current non-node preset conversion rule, and the text that has completed the format conversion is organized to obtain a second structure file, and then the format conversion mind map is automatically created through the second structure file and the mind mapping tool.

[0040] The technical solution of the embodiment of the present invention, by obtaining the mind map of the format to be converted, and the first structure file of the mind map of the format to be converted, thereby determining the current node preset conversion rule and the current non-node preset conversion rule according to the file structure type of the first structure file, and then converting the first structure file into a second structure file according to the mind map of the format to be converted, the first structure file, the current node preset conversion rule and the current non-node preset conversion rule. In this scheme, the first structure file in the xml format or json format can be format-converted according to the current node preset conversion rule and the current non-node preset conversion rule, and the node part and the non-node key part in the mind map of the format to be converted are obtained to obtain a file format that meets the needs of the user, breaking the format limitation of the text corresponding to the mind map, not only realizing the automatic conversion of the corresponding text structure of the mind map, but also automatically generating the corresponding mind map based on the converted second structure file, and being able to flexibly convert the file format of the mind map of the format to be converted, solving the problem that the local mind map and the online mind map cannot be exported due to the incompatibility of the file format, and being able to expand the type of file format of the exported mind map, and improving the flexibility of the mind map export.

[0041] Embodiment 2

[0042] Figure 2 This is a flowchart of a method for converting the format of a mind map provided in the second embodiment of the present invention. This embodiment is specific based on the above embodiment and provides a specific optional implementation method for converting a first structure file into a second structure file according to the mind map to be converted, the first structure file, the current node preset conversion rule and the current non-node preset conversion rule. Figure 2 As shown, the method includes:

[0043] Step 210: Obtain a mind map in a format to be converted and a first structure file of the mind map in a format to be converted.

[0044] Step 220: Determine the current node preset conversion rule and the current non-node preset conversion rule according to the file structure type of the first structure file.

[0045] In an optional embodiment of the present invention, the method for converting the format of a mind map may further include: when the file format of the first structure file is an XML-like format, the file format of the second structure file is a JSON format; when the file format of the first structure file is a JSON format, the file format of the second structure file is an XML-like format.

[0046] Specifically, the format conversion method based on mind mapping can realize the mutual conversion of the corresponding file formats of the mind map between the XML-like format and the JSON format, that is, when the file format of the first structure file is the XML-like format, the file format of the second structure file is the JSON format; when the file format of the first structure file is the JSON format, the file format of the second structure file is the XML-like format. It can perform format conversion on the text of the generated mind map without human intervention, breaking the limitations of FreeMind and online mind mapping tools on text format recognition.

[0047] Step 230: When the file format of the first structure file is an XML-like format, determine the target JSON string according to the first structure file and the preset conversion rule of the current node.

[0048] The target json string may be a json string corresponding to a node in the mind map to be converted.

[0049] In an embodiment of the present invention, the first structure file can be parsed to obtain the file format of the first structure file. If the file format of the first structure file is an XML-like format, the text of the node in the mind map to be converted in the corresponding format in the first structure file is format converted based on the preset conversion rule of the current node to obtain the target json string.

[0050] In an optional embodiment of the present invention, determining a target json string according to the first structure file and a preset conversion rule of the current node may include: determining a node label in the first structure file, and generating a node identification code for the node label in the first structure file; and generating a target json string corresponding to the node identification code based on the preset conversion rule of the current node.

[0051] The node label may be a field of the node in the mind map to be converted in the corresponding format in the first structure file. Exemplarily, the node label may include but is not limited to <node>Label. The node identification code can be the identification of the node in the mind map to be converted in the format corresponding to the node label, which is used to distinguish different nodes.

[0052] In an embodiment of the present invention, the tags in the first structure file can be traversed to obtain the node tags of the first structure file, thereby creating a unique node identification code for the node tags in the first structure file, and then using the current node preset conversion rule to generate a target json string corresponding to the node identification code. In this solution, the second structure file can be quickly created through the node identification code, and problems can be quickly located in subsequent data maintenance.

[0053] Step 240: determine key field information according to the mind map to be converted, the first structure file, and the current non-node preset conversion rule.

[0054] Among them, the key field information can be the necessary data for constructing the format conversion mind map in addition to the target JSON string in the second structure file.

[0055] In an embodiment of the present invention, the focus data of the first structure file and the mind map in the format to be converted can be extracted and converted according to the current non-node preset conversion rules to obtain the key field information in the second structure file.

[0056] In an optional embodiment of the present invention, determining key field information based on the mind map to be converted in the format, the first structure file and the current non-node preset conversion rules may include: parsing the icon information of the mind map to be converted in the format and the target character information of the first structure file; converting the chart information of the mind map to be converted in the format and the target character information of the first structure file into key field information of the second structure file according to the current non-node preset conversion rules.

[0057] The target character information may be a special character in the first structure file of the mind map to be converted, which is used to be converted into a corresponding Chinese character.

[0058] In an embodiment of the present invention, the mind map to be converted can be image parsed to obtain the icon information of the mind map to be converted, and the first structure file can be parsed to obtain the corresponding target character information, so as to convert the chart information of the mind map to be converted and the target character information of the first structure file based on the current non-node preset conversion rule to obtain the key field information of the second structure file. Through the current non-node preset conversion rule, the format conversion of the attribute information in the first structure file in the xml format is realized, and combined with the icon information of the mind map to be converted, the information conversion is performed from multiple dimensions.

[0059] Step 250: construct a second structure file according to the target JSON string and key field information, and create a format conversion mind map according to the second structure file.

[0060] In an optional embodiment of the present invention, after converting the first structure file into a second structure file according to the format of the mind map to be converted, the first structure file, the current node preset conversion rule and the current non-node preset conversion rule, it can also include: when the file format of the first structure file is an XML-like format, parsing the undefined tag information of the first structure file, and based on the undefined tag information, supplementing the second structure file with information; when the file format of the first structure file is a json format, parsing the json string information of the first structure file, and supplementing the second structure file with information based on the json string information.

[0061] The undefined tag information may be used to represent undefined tags in the first structure file of the mind map whose format is to be converted.

[0062] In an embodiment of the present invention, when the file format of the first structure file is a xml-like format, the first structure file can be parsed to determine the undefined tag information of the first structure file, and based on the undefined tag information, the associated data of the undefined tag information is stored in the json string of the second structure file, so as to supplement the information of the second structure file. When the file format of the first structure file is a json format, the first structure file is parsed to obtain the json string information of the first structure file, and the data in the json string information that does not correspond to the nodes in the mind map of the format to be converted is stored in an adaptive storage form under the undefined tag of the xml-like format, so as to supplement the information of the second structure file, so as to ensure that the information in the first structure file is not omitted, and the full conversion of the information in the first structure file is achieved.

[0063] This solution can achieve the conversion between the json string of data stored in the online mind map and the FreeMind file format through the configuration of specific rules (current node preset conversion rules and current non-node preset conversion rules, etc.): FreeMind files can be directly imported into the online mind map tool for display, and online mind maps can be directly exported as FreeMind files. The specific steps can be: based on the current node preset conversion rules, by traversing the FreeMind class xml structure file, determine the tags in the file, and distinguish its type in the FreeMind file, such as <node>The label corresponds to the node in the formatted mind map to be converted, and further generates a random unique uid (node ​​identification code), and generates a target json string corresponding to the uid. After obtaining the target json string, according to the current non-node preset conversion rules, the attributes in FreeMind correspond to the tag field in the online mind map json, and the icons in the formatted mind map to be converted correspond to the icon field in the online mind map json (this type of corresponding rules supports customization), and the content in the undefined label is stored in the json string to ensure that the information is not lost during the conversion process, and after the traversal is completed, in the process of merging each substring of json, other information required by the online mind map is added. Conversely, when converting from json to a quasi-xml format, the same logic is used, which is to traverse the information of each node in the json string layer by layer, generate the corresponding label structure, generate the corresponding labels and attributes based on the conversion rules, and finally generate the corresponding specific format mm file. The FreeMind mind mapping tool supplements the offline use of the online mind mapping tool to a certain extent, and further reuses the tool content developed based on the FreeMind file.

[0064] The technical solution of the embodiment of the present invention obtains a mind map of a format to be converted and a first structure file of the mind map of a format to be converted, thereby determining the current node preset conversion rule and the current non-node preset conversion rule according to the file structure type of the first structure file, and then when the file format of the first structure file is an XML-like format, according to the first structure file and the current node preset conversion rule, determine the target json string, further according to the mind map of the format to be converted, the first structure file and the current non-node preset conversion rule, determine the key field information, and construct a second structure file according to the target json string and the key field information, and create a format conversion mind map according to the second structure file.

[0065] In this solution, when the first structure file of the mind map to be converted is in an XML-like format, a second structure file in json format can be generated based on the current node preset conversion rules and the current non-node preset conversion rules. This allows the FreeMind mind map to be displayed in an online mind map tool, supports better reuse of FreeMind mind map development content, breaks the format limitations of the text corresponding to the mind map, and not only realizes the automatic conversion of the corresponding text structure of the mind map, but also can automatically generate the corresponding mind map based on the converted second structure file. It can flexibly convert the file format of the mind map to be converted, solves the problem of incompatibility of file formats and inability to export local mind maps and online mind maps, can expand the types of file formats for exporting mind maps, and improve the flexibility of mind map export.

[0066] Embodiment 3

[0067] Figure 3 This is a schematic diagram of the structure of a mind map format conversion device provided by Embodiment 3 of the present invention. Figure 3 As shown, the device comprises:

[0068] The data acquisition module 310 is used to acquire the mind map to be converted and the first structure file of the mind map to be converted; wherein the file format of the first structure file is a xml-like format or a json format;

[0069] The conversion rule determination module 320 is used to determine the current node preset conversion rule and the current non-node preset conversion rule according to the file structure type of the first structure file;

[0070] The format conversion and composition module 330 is used to convert the first structure file into a second structure file according to the mind map to be converted in the format, the first structure file, the current node preset conversion rule and the current non-node preset conversion rule, and create a format conversion mind map according to the second structure file.

[0071] The technical solution of the embodiment of the present invention, by obtaining the mind map of the format to be converted, and the first structure file of the mind map of the format to be converted, thereby determining the current node preset conversion rule and the current non-node preset conversion rule according to the file structure type of the first structure file, and then converting the first structure file into a second structure file according to the mind map of the format to be converted, the first structure file, the current node preset conversion rule and the current non-node preset conversion rule. In this scheme, the first structure file in the xml format or json format can be format-converted according to the current node preset conversion rule and the current non-node preset conversion rule, and the node part and the non-node key part in the mind map of the format to be converted are obtained to obtain a file format that meets the needs of the user, breaking the format limitation of the text corresponding to the mind map, not only realizing the automatic conversion of the corresponding text structure of the mind map, but also automatically generating the corresponding mind map based on the converted second structure file, and being able to flexibly convert the file format of the mind map of the format to be converted, solving the problem that the local mind map and the online mind map cannot be exported due to the incompatibility of the file format, and being able to expand the type of file format of the exported mind map, and improving the flexibility of the mind map export.

[0072] Optionally, the format conversion and composition module 330 includes a target json string determination unit, a key field information determination unit, and a composition unit. The target json string determination unit is used to determine the target json string according to the first structure file and the preset conversion rules of the current node when the file format of the first structure file is an xml-like format. The key field information determination unit is used to determine the key field information according to the format of the mind map to be converted, the first structure file, and the current non-node preset conversion rules. The composition unit is used to construct the second structure file according to the target json string and the key field information.

[0073] Optionally, a target json string determination unit is used to determine the node label in the first structure file, generate a node identification code for the node label in the first structure file; and generate the target json string corresponding to the node identification code based on the preset conversion rule of the current node.

[0074] Optionally, a key field information determination unit is used to parse the icon information of the mind map in the format to be converted and the target character information of the first structure file; according to the current non-node preset conversion rule, the chart information of the mind map in the format to be converted and the target character information of the first structure file are converted into the key field information of the second structure file.

[0075] Optionally, the mind map format conversion device also includes an information supplement module, which is used to parse the undefined tag information of the first structure file when the file format of the first structure file is an XML-like format, and supplement the information of the second structure file based on the undefined tag information; when the file format of the first structure file is a JSON format, parse the JSON string information of the first structure file, and supplement the information of the second structure file based on the JSON string information.

[0076] Optionally, when the file format of the first structure file is an XML-like format, the file format of the second structure file is a JSON format; when the file format of the first structure file is a JSON format, the file format of the second structure file is an XML-like format.

[0077] The mind map format conversion device provided in the embodiment of the present invention can execute the mind map format conversion method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0078] Embodiment 4

[0079] Figure 4 A schematic diagram of an electronic device that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0080] like Figure 4 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0081] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0082] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a method for converting the format of a mind map.

[0083] In some embodiments, the method for converting the format of a mind map may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method for converting the format of a mind map described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the method for converting the format of a mind map by any other appropriate means (e.g., by means of firmware).

[0084] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0085] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0086] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0087] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0088] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0089] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of traditional physical hosts and VPS servers, which are difficult to manage and have weak business scalability.

[0090] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0091] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.< / node> < / node>

Claims

1. A method for converting the format of a mind map, characterized in that: include: Acquire a mind map in a format to be converted, and a first structure file of the mind map in a format to be converted; wherein the file format of the first structure file is a xml-like format or a json-like format; Determine a current node preset conversion rule and a current non-node preset conversion rule according to the file structure type of the first structure file; According to the mind map in the format to be converted, the first structure file, the current node preset conversion rule and the current non-node preset conversion rule, the first structure file is converted into a second structure file, and according to the second structure file, a format conversion mind map is created.

2. The method according to claim 1, characterized in that The step of converting the first structure file into a second structure file according to the mind map to be converted in the format, the first structure file, the current node preset conversion rule, and the current non-node preset conversion rule includes: When the file format of the first structured file is an XML-like format, determining a target json string according to the first structured file and a preset conversion rule of the current node; Determine key field information according to the mind map in the format to be converted, the first structure file, and the current non-node preset conversion rule; The second structure file is constructed according to the target JSON string and the key field information.

3. The method according to claim 2, characterized in that The step of determining a target json string according to the first structure file and the preset conversion rule of the current node includes: Determine the node labels in the first structure file, and generate node identification codes for the node labels in the first structure file; Based on the preset conversion rule of the current node, the target JSON string corresponding to the node identification code is generated.

4. The method according to claim 2, characterized in that: The determining of key field information according to the mind map in the format to be converted, the first structure file and the current non-node preset conversion rule includes: Parsing the icon information of the mind map to be converted in the format and the target character information of the first structure file; According to the current non-node preset conversion rule, the chart information of the mind map in the format to be converted and the target character information of the first structure file are converted into key field information of the second structure file.

5. The method according to claim 1, characterized in that After converting the first structure file into a second structure file according to the mind map to be converted in the format, the first structure file, the current node preset conversion rule and the current non-node preset conversion rule, the method further includes: When the file format of the first structure file is an XML-like format, parsing undefined tag information of the first structure file, and supplementing information of the second structure file based on the undefined tag information; When the file format of the first structure file is json format, the json string information of the first structure file is parsed, and the second structure file is supplemented with information according to the json string information.

6. The method according to claim 1, characterized in that Also includes: When the file format of the first structure file is in an XML-like format, the file format of the second structure file is in a JSON format; When the file format of the first structure file is a json format, the file format of the second structure file is a quasi-xml format.

7. A mind map format conversion device, characterized in that: include: A data acquisition module, used for acquiring a mind map in a format to be converted, and a first structure file of the mind map in a format to be converted; wherein the file format of the first structure file is a xml-like format or a json format; A conversion rule determination module, used to determine a current node preset conversion rule and a current non-node preset conversion rule according to the file structure type of the first structured file; The format conversion and composition module is used to convert the first structure file into a second structure file according to the mind map to be converted in the format, the first structure file, the current node preset conversion rule and the current non-node preset conversion rule, and create a format conversion mind map according to the second structure file.

8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for converting the format of a mind map according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for converting the format of a mind map according to any one of claims 1 to 6 when executed.

10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the method for converting the format of a mind map according to any one of claims 1 to 6 is implemented.