Collaborative knowledge display method and device based on mind map, equipment and medium

Real-time sharing and editing of mind maps is achieved through WebSocket and Kafka, which solves the problem of inefficiency in team collaboration in traditional mind maps, improves team collaboration efficiency and creativity, and ensures real-time and security of communication.

CN120448159APending Publication Date: 2025-08-08NAVAL UNIV OF ENG PLA
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202510580479.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-07
Publication Date
2025-08-08

AI Technical Summary

Technical Problem

Traditional mind maps cannot be shared and edited in real time in team collaboration, resulting in team members spending a lot of time to communicate and coordinate back and forth during task planning, problem solving and decision-making, reducing work efficiency.

Method used

The WebSocket communication protocol is used to establish front-end page connections, and the operation data transfer and synchronization in distributed scenarios are realized through message middleware such as Kafka, allowing multiple users to share and edit the same mind map in real time.

Benefits of technology

Real-time collaboration between multiple users is achieved, reducing the cost of waiting and communication time, improving team collaboration efficiency and creativity, ensuring the real-time and stability of communication, and avoiding the risk of data leakage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120448159A_ABST
    Figure CN120448159A_ABST
Patent Text Reader

Abstract

The invention provides a collaborative knowledge display method and device based on a mind map, equipment and a medium, and relates to the technical field of data processing.The method comprises the steps that front-end page connection is established based on a page of the mind map, and an operation message object is sent; obtaining operation data of the user according to the operation message object, and sending the operation data to the message middleware; and obtaining operation data of the message middleware, and synchronizing the modified content of the mind map according to the operation data. According to the method, a plurality of users are allowed to share and edit the same mind map in real time, team members can immediately see modification and updating of other members when editing the mind map, so that the time cost of waiting and communication is reduced, and the team members can more efficiently cooperate and complete tasks due to the real-time synchronization characteristic.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a collaborative knowledge display method, device, equipment and medium based on mind mapping. Background Art

[0002] As a powerful visual thinking tool, mind mapping effectively layers and structures complex information through a branching structure extending outward from a central theme, making it easier to understand and remember. This intuitive presentation not only accelerates information absorption but also significantly enhances long-term memory. By cleverly utilizing color, images, and keywords, mind mapping further stimulates creative thinking and enhances problem-solving skills, making it an indispensable tool for personal learning and work.

[0003] However, in team collaboration scenarios, traditional mind maps are limited in functionality and fail to meet the needs of team members for real-time sharing and editing of the same mind map. Due to their lack of sharing and collaboration capabilities, team members are unable to view and edit mind maps together at the same time and on the same platform. This results in team members spending a significant amount of time on back-and-forth communication and coordination during task planning, problem solving, and decision-making. Furthermore, the inability to view other team members' modifications and opinions in real time severely impacts information synchronization among team members. Consequently, existing mind mapping methods suffer from low work efficiency. Summary of the Invention

[0004] In view of the above-mentioned deficiencies in the prior art, the present invention provides a collaborative knowledge display method, device, equipment and medium based on mind mapping, which effectively solves the problem of low work efficiency in the existing mind mapping display method.

[0005] In a first aspect, the present invention provides a collaborative knowledge display method based on a mind map, the method comprising:

[0006] Establishing a front-end page connection based on the mind map page and sending an operation message object, wherein the front-end page connection is established using the WebSocket communication protocol, and the operation message object includes at least an operation type, an identifier of an operation target, and operation content;

[0007] Acquire the user's operation data according to the operation message object, and send the operation data to the message middleware, which is used to transfer and synchronize the operation data in a distributed scenario;

[0008] The operation data of the message middleware is acquired, and the modified content of the mind map is synchronized according to the operation data.

[0009] Furthermore, before the operation data is sent to the message middleware, the method further includes:

[0010] The message middleware is configured in a distributed service cluster, and the producer and consumer of the message middleware are configured according to the user information of the mind map.

[0011] Furthermore, a front-end page connection is established based on the mind map page, and an operation message object is sent, including:

[0012] Establishing a WebSocket communication connection between the front-end page and the server according to the mind map page;

[0013] Monitor the user's modification operation according to the WebSocket communication connection, and obtain the operation data modified by the user;

[0014] The operation data is encapsulated to obtain an operation message object, and the operation message object is sent to the server.

[0015] Furthermore, a WebSocket communication connection is established between the front-end page and the server according to the mind map page, including:

[0016] Initialize the mind map page and obtain page information;

[0017] Checking the communication support mode according to the page information and obtaining the communication object;

[0018] Establish the WebSocket communication connection with the server according to the communication object.

[0019] Furthermore, obtaining the user's operation data according to the operation message object and sending the operation data to the message middleware includes:

[0020] Performing validity verification on the operation message object to obtain a verification result;

[0021] Parsing the operation message object according to the verification result to obtain the operation data;

[0022] The operation data is encapsulated into a message queue, and the message queue is sent to the message middleware.

[0023] Furthermore, after parsing the operation message object according to the verification result and obtaining the operation data, the method further includes:

[0024] Parsing the operation message object to obtain an identifier of the mind map;

[0025] Acquire all user information associated with the mind map according to the identifier;

[0026] The operation data is synchronized to a user front-end interface associated with the mind map according to the user information.

[0027] Furthermore, obtaining the operation data of the message middleware and synchronizing the modified content of the mind map according to the operation data includes:

[0028] Obtain the message queue of the message middleware, and perform a deserialization operation to obtain the operation data;

[0029] extracting the modified content and identifier of the mind map according to the operation data;

[0030] Acquire all user information associated with the mind map according to the identifier;

[0031] The modified content is synchronized to a user front-end interface associated with the mind map according to the user information.

[0032] In a second aspect, the present invention provides a collaborative knowledge display device based on a mind map, the device comprising:

[0033] A front-end connection module is used to establish a front-end page connection based on the mind map page and send an operation message object, wherein the front-end page connection is connected using the WebSocket communication protocol, and the operation message object includes at least an operation type, an identifier of an operation target, and an operation content;

[0034] A backend processing module is used to obtain the user's operation data according to the operation message object and send the operation data to the message middleware. The message middleware is used to transfer and synchronize the operation data in a distributed scenario.

[0035] A data synchronization module is used to obtain the operation data of the message middleware and synchronize the modified content of the mind map according to the operation data.

[0036] In a third aspect, the present invention provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the collaborative knowledge display method based on mind mapping as described in the first aspect of the present invention.

[0037] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the collaborative knowledge display method based on mind mapping as described in the first aspect of the present invention.

[0038] The collaborative knowledge display method, device, equipment and medium based on mind mapping provided by the present invention allow multiple users to share and edit the same mind map in real time, thereby promoting collaboration among team members. Through real-time interaction, team members can instantly update and view the map content, thereby accelerating the flow of information and the exchange of ideas, and improving the team's collaborative efficiency and creativity. During the communication process, no additional intermediate links or platforms are required, thereby reducing the risk of data leakage and ensuring the real-time and stability of communication. Team members can access and edit mind maps through the client anytime and anywhere without worrying about data synchronization or version conflicts, enabling the team to make plans and solve problems more efficiently. When editing a mind map, team members can instantly see the modifications and updates of other members, thereby reducing the time cost of waiting and communication. This real-time synchronization feature enables team members to collaborate and complete tasks more efficiently. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without paying any creative work.

[0040] Figure 1 This is a first schematic diagram of the process of the collaborative knowledge display method based on mind mapping provided by an embodiment of the present invention;

[0041] Figure 2 This is a second schematic diagram of the process of the collaborative knowledge display method based on mind mapping provided by an embodiment of the present invention;

[0042] Figure 3 This is a third schematic diagram of the process of the collaborative knowledge display method based on mind mapping provided by an embodiment of the present invention;

[0043] Figure 4 This is a fourth schematic diagram of the process of the collaborative knowledge display method based on mind mapping provided by an embodiment of the present invention;

[0044] Figure 5 This is a fifth schematic diagram of the process of the collaborative knowledge display method based on mind mapping provided by an embodiment of the present invention;

[0045] Figure 6 This is a sixth schematic diagram of the process of the collaborative knowledge display method based on mind mapping provided by an embodiment of the present invention;

[0046] Figure 7 Schematic diagram of the structure of a collaborative knowledge display device based on mind mapping provided by an embodiment of the present invention;

[0047] Figure 8 It is a structural diagram of an electronic device provided by an embodiment of the present invention.

[0048] Description of main component symbols:

[0049] 700. Collaborative knowledge display device based on mind mapping; 710. Front-end connection module; 720. Back-end processing module; 730. Data synchronization module; 800. Electronic device; 810. Processor; 820. Communication interface; 830. Memory; 840. Communication bus. DETAILED DESCRIPTION

[0050] To make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be further clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. It should be noted that the embodiments described 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 making creative efforts are within the scope of protection of the present invention.

[0051] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of the technical features being referred to. Thus, a feature identified as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, "plurality" means two or more, unless otherwise specifically defined.

[0052] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application belongs. The terms used in this specification are for the purpose of describing specific embodiments only and are not intended to limit the present invention. As used herein, the term "and / or" includes any and all combinations of one or more of the associated listed items.

[0053] In team collaboration scenarios, traditional mind maps are limited in functionality and fail to meet the needs of team members for real-time sharing and editing of the same mind map. Due to their lack of sharing and collaboration capabilities, team members are unable to view and edit mind maps together at the same time and on the same platform. This results in team members spending a significant amount of time on back-and-forth communication and coordination during task planning, problem solving, and decision-making. Furthermore, the inability to view other team members' modifications and opinions in real time severely impacts information synchronization among team members. Consequently, existing mind mapping methods suffer from low work efficiency.

[0054] Example 1

[0055] The embodiment of the present invention provides a collaborative knowledge display method based on mind mapping, which effectively solves the problem of low work efficiency in existing mind mapping display methods. Figure 1 This is a first schematic diagram of the collaborative knowledge display method based on mind mapping provided by an embodiment of the present invention. Figure 1 As shown, the method includes the following steps:

[0056] S100: Establish a front-end page connection based on the mind map page and send an operation message object.

[0057] Figure 2 This is a second schematic diagram of the collaborative knowledge display method based on mind mapping provided by an embodiment of the present invention. Figure 2 As shown, the front-end page connection specifically includes the following steps:

[0058] S110. Establish a WebSocket communication connection between the front-end page and the server according to the mind map page.

[0059] In an embodiment of the present invention, a mind map typically involves multiple users adding, moving, and editing branches and nodes, inserting images and annotations, and color-coding and formatting content in real time, thereby jointly building and improving an information-rich visual thinking framework. Figure 3 This is a third schematic diagram of the collaborative knowledge display method based on mind mapping provided by an embodiment of the present invention. Figure 3 As shown, the communication connection between the front-end page and the server specifically includes the following steps:

[0060] S111. Initialize the mind map page and obtain page information.

[0061] In an embodiment of the present invention, a user accesses a web page of a mind map application through a browser, and when the web page is loaded, the display area and related controls of the mind map are initialized to obtain page information.

[0062] S112: Check the communication support mode according to the page information and obtain the communication object.

[0063] Optionally, an embodiment of the present invention uses a WebSocket connection for communication. Before attempting to establish a WebSocket connection, the front-end code will check whether the browser supports the WebSocket connection. If it supports the WebSocket connection, a WebSocket object will be created. If it does not support the WebSocket connection, the page may display an error message or fall back to other communication methods.

[0064] S113. Establish a WebSocket communication connection with the server according to the communication object.

[0065] The server URL to connect to is specified based on the created WebSocket object. This URL is usually a WebSocket service endpoint, and then a persistent connection is established with the server. If the connection is successful, the front-end page enters the listening state, ready to receive messages from the server.

[0066] S120: Monitor the user's modification operation according to the WebSocket communication connection, and obtain the operation data modified by the user.

[0067] In an embodiment of the present invention, the front-end page monitors various operations performed by the user on the mind map, such as clicking a node, dragging a node, and modifying the node content. These operations are usually obtained through event listeners to form user-modified operation data.

[0068] S130: Encapsulate the operation data to obtain an operation message object, and send the operation message object to the server.

[0069] When the operation data is obtained, the front-end code encapsulates it into an operation message object. This operation message object typically contains the operation type (such as adding a node, deleting a node, and modifying content), the unique identifier of the operation target (such as the node ID), and the specific content of the operation (such as the text content of the new node and the node's location information). After the encapsulated operation message object is completed, the send method of the WebSocket object can be called to serialize the operation message object into a JSON string or other format, and then send it to the server through the WebSocket connection.

[0070] As a preferred implementation method of an embodiment of the present invention, a message middleware can be configured in a distributed service cluster, and the producer and consumer of the message middleware can be configured according to the user information of the mind map. Since the content of WebSocket messages cannot be serialized into a cache or disk, in order to share WebSocket messages between multiple server instances in a distributed mind mapping system, messages are generally transferred through a message queue (such as RabbitMQ and Kafka) or a publish / subscribe system (such as Redis Pub / Sub). When a WebSocket server receives a message, it publishes the message to the proxy, and other server instances subscribe to these messages and forward them to their clients.

[0071] Specifically, the client and server maintain a constant WebSocket communication connection. When a user manipulates a mind map node on the client's front-end page, the client sends a message to the server. Upon receiving the message, the server sends a feedback message to the message middleware. This message middleware requires configuration of producers and consumers. In a distributed service cluster, all node consumers receive the message, which is then synchronized to the client, completing the collaborative operation. Optionally, administrators can lock any node; once a node is locked, no one else can edit it.

[0072] In an embodiment of the present invention, for a distributed microservice deployment environment, a message sharing and sending service is provided through the big data message middleware Kafka, which realizes the function of pushing messages to users at a fixed point in a distributed situation. Kafka is a distributed stream processing platform, which is mainly used to build real-time data pipelines and streaming applications. The platform can process large amounts of real-time data and distribute it across multiple servers to provide high availability and fault tolerance. Kafka persists messages to disk, supports persistent storage and subsequent processing of data, and is suitable for scenarios that require fast response by collecting, processing and transmitting data in real time. At the same time, Kafka can be horizontally expanded by adding more servers to handle larger data loads. By replicating data to multiple nodes, Kafka can ensure that data is not lost in the event of a node failure.

[0073] Configuring the message middleware producer and consumer based on the mind map user information mainly includes: configuring the Kafka producer on the node that needs to send messages, setting the relevant serializer and Kafka cluster address, configuring the Kafka consumer on the node that needs to receive messages, subscribing to the mind map synchronization topic, and setting the deserializer.

[0074] S200: Obtain the user's operation data according to the operation message object, and send the operation data to the message middleware.

[0075] In a distributed service, there may be multiple nodes. If node 1 is connected to user A and node 2 is connected to user B, data loss must be avoided. This is where the message middleware Kafka comes in. When node 1 receives a request from user A to synchronize map edits, it doesn't process the request directly but instead sends it to the message middleware Kafka. Figure 4 This is a fourth schematic diagram of the collaborative knowledge display method based on mind mapping provided by an embodiment of the present invention. Figure 4 As shown, the backend processing specifically includes the following steps:

[0076] S210: Verify the validity of the operation message object and obtain a verification result.

[0077] When the backend server receives a message from the frontend page, it first deserializes the received JSON string or other format into an operation message object, and then verifies the validity of the operation message object. Verification methods include but are not limited to checking whether the message format is correct, whether it contains necessary fields (such as the operation type and operation target ID), and whether it passes permission verification (such as whether the user has the right to modify the operation target).

[0078] S220: Parse the operation message object according to the verification result to obtain operation data.

[0079] If the operation message object is valid, the backend server extracts the user's operation data from the operation message object. The operation data usually includes the specific content of the operation (such as the new text content of the node and the change of the node position, etc.) and the unique identifier of the operation target (such as the node ID).

[0080] S230: Encapsulate the operation data and user information into a message queue, and send the message queue to the message middleware.

[0081] In an embodiment of the present invention, the backend server encapsulates the operation data into a message queue according to the protocol requirements of the message middleware. The message queue usually contains a message header (such as message type, priority, etc.) and the message queue content (i.e., the operation data). The constructed message queue is then sent to the message middleware Kafka. The sending process usually involves interaction with the Kafka cluster, including selecting the target topic, sending the message, and waiting for confirmation. The message middleware Kafka stores the messages in internal log files to ensure that the messages are not lost, even if the producer or consumer is temporarily unavailable.

[0082] As a preferred implementation of the embodiment of the present invention, if the service does not have multiple nodes, Figure 5 This is a fifth schematic diagram of the collaborative knowledge display method based on mind mapping provided by an embodiment of the present invention. Figure 5 As shown, the backend processing may further include the following steps:

[0083] S240: Parse the operation message object to obtain the identifier of the mind map.

[0084] The backend server receives the operation message object and parses the unique identifier of the mind map and the data change content.

[0085] S250: Acquire all user information associated with the mind map according to the identifier.

[0086] The back-end server searches for all member information associated with the mind map based on the unique identifier of the mind map. All member information forms an index storage structure. An additional index table is used to record the correspondence between the logical address and physical address of the member information, separating data from the index, thereby supporting fast range queries and partial field retrieval. Index maintenance increases storage overhead and update complexity.

[0087] S260: Synchronize the operation data to the user front-end interface associated with the mind map according to the user information.

[0088] The back-end server uses WebSocket technology to synchronously send operation data to the front-end pages of all associated members, realizing real-time synchronization of mind map content.

[0089] S300: Acquire operation data of the message middleware, and synchronize the modified content of the mind map according to the operation data.

[0090] Figure 6 This is a sixth schematic diagram of the collaborative knowledge display method based on mind mapping provided by an embodiment of the present invention. Figure 6 As shown in the figure, the synchronization of the modified content of the mind map specifically includes the following steps:

[0091] S310: Obtain the message queue of the message middleware and perform a deserialization operation to obtain operation data.

[0092] In this embodiment of the present invention, the service configuration on node 2 is a Kafka consumer client, which pulls the message queue from the message middleware Kafka. After receiving the message queue, the consumer client performs a deserialization operation to restore it to the original operation data format.

[0093] Specifically, the deserialization operation has the specificity of queue structure operation. The core component of the message middleware is the message queue, and its operation specificity is mainly reflected in two aspects: data structure design and message transmission mechanism.

[0094] In terms of data structure design, it features first-in-first-out (FIFO), scalability, and persistent storage. FIFO means that in default mode, messages are consumed in the order they arrive, ensuring logical sequentiality. Scalability supports concurrent operations of multiple producers and consumers, achieving traffic peak shaving and asynchronous processing through queue buffering. Persistent storage is suitable for some scenarios, and messages are persistently stored on disk to prevent data loss due to system failures.

[0095] In terms of message delivery mechanisms, it features separation of production and consumption, emergency message processing, and broadcast and unicast support. Separation of production and consumption means that producers can send messages to a queue and receive them immediately, while consumers can asynchronously pull messages on demand or passively receive them. Emergency message processing means that some message queues support a last-in, first-out model to prioritize high-priority messages. Broadcast and unicast support means that the message middleware can broadcast messages to all subscribers or deliver them only to designated consumers, meeting different communication needs.

[0096] S320: Extracting the modified content and identifier of the mind map according to the operation data.

[0097] In the embodiment of the present invention, the service on node 2 parses the operation data and extracts the modified content of the mind map and information such as the identifier of user A.

[0098] S330. Acquire all user information associated with the mind map according to the identifier.

[0099] In the embodiment of the present invention, based on the identifier of user A or other collaborative user information that may be included in the message, user B who collaborates with user A in editing is found, and user information of user B is obtained.

[0100] S340. Synchronize the modified content to the user front-end interface associated with the mind map according to the user information.

[0101] In this embodiment of the present invention, the modified mind map content is applied to user B's mind map data. The service on node 2 encapsulates the updated mind map content into a format suitable for front-end display. Using WebSocket or other real-time communication technologies, the encapsulated mind map content is sent to user B's front-end page. User B's front-end page receives the updated mind map content and updates the page display.

[0102] The mind-mapping-based collaborative knowledge display method provided by the embodiments of the present invention allows multiple users to share and edit the same mind map in real time, promoting collaboration among team members. Through real-time interaction, team members can instantly update and view map content, thereby accelerating the flow of information and the exchange of ideas, and improving team collaboration efficiency and creativity. When editing a mind map, team members can instantly see other members' modifications and updates, reducing the time cost of waiting and communication. This real-time synchronization feature enables team members to collaborate and complete tasks more efficiently.

[0103] Example 2

[0104] Based on the same technical concept as the above method embodiment 1, the embodiment of the present invention provides a collaborative knowledge display device based on mind mapping, Figure 7Schematic diagram of the structure of the collaborative knowledge display device based on mind mapping provided by an embodiment of the present invention. Figure 7 As shown, the collaborative knowledge display device 700 based on mind mapping includes:

[0105] The front-end connection module 710 is used to establish a front-end page connection based on the mind map page and send an operation message object, wherein the front-end page connection is established using the WebSocket communication protocol, and the operation message object includes at least the operation type, the identifier of the operation target, and the operation content;

[0106] Backend processing module 720, used to obtain user operation data based on the operation message object and send the operation data to the message middleware, which is used to transfer and synchronize the operation data in a distributed scenario;

[0107] The data synchronization module 730 is used to obtain the operation data of the message middleware and synchronize the modified content of the mind map according to the operation data.

[0108] The collaborative knowledge display device based on mind mapping provided by the embodiment of the present invention does not require additional intermediate links or platforms during the communication process, thereby reducing the risk of data leakage and ensuring the real-time and stability of communication. Team members can access and edit mind maps through the client anytime and anywhere without worrying about data synchronization or version conflicts, enabling the team to make plans and solve problems more efficiently.

[0109] It can be understood that the implementation method of the collaborative knowledge display method based on mind mapping described in the above embodiment 1 is also applicable to this embodiment and can achieve the same technical effect, so it will not be repeated here.

[0110] Example 3

[0111] Based on the same concept, an embodiment of the present invention further provides an electronic device, Figure 8 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention, such as Figure 8 As shown, the electronic device 800 may include: a processor 810, a communication interface 820, a memory 830, and a communication bus 840, wherein the processor 810, the communication interface 820, and the memory 830 communicate with each other via the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute the steps of the collaborative knowledge display method based on the mind map as described in the above embodiments. For example, it includes:

[0112] S100, establishing a front-end page connection based on the mind map page and sending an operation message object;

[0113] S200: Obtain user operation data based on the operation message object and send the operation data to the message middleware;

[0114] S300: Acquire operation data of the message middleware, and synchronize the modified content of the mind map according to the operation data.

[0115] The processor 810 may be a central processing unit (CPU). The processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above chips.

[0116] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0117] The memory 830 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the processor, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory may optionally include a memory remotely located relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0118] Example 4

[0119] Based on the same concept, an embodiment of the present invention further provides a computer-readable storage medium storing a computer program, the computer program including at least one code segment that can be executed by a main control device to control the main control device to implement the steps of the collaborative knowledge display method based on mind mapping as described in the above embodiments. For example, the steps include:

[0120] S100, establishing a front-end page connection based on the mind map page and sending an operation message object;

[0121] S200: Obtain user operation data based on the operation message object and send the operation data to the message middleware;

[0122] S300: Acquire operation data of the message middleware, and synchronize the modified content of the mind map according to the operation data.

[0123] Based on the same technical concept, an embodiment of the present invention further provides a computer program, which, when executed by a main control device, is used to implement the above method embodiment.

[0124] The computer program may be stored in whole or in part on a computer-readable storage medium packaged with the processor, or may be stored in whole or in part on a memory not packaged with the processor.

[0125] Based on the same technical concept, an embodiment of the present invention further provides a processor for implementing the above method embodiment. The above processor may be a chip.

[0126] In summary, the collaborative knowledge display method, device, equipment and medium based on mind mapping provided by the present invention allow multiple users to share and edit the same mind map in real time, thereby promoting collaboration among team members. Through real-time interaction, team members can instantly update and view the map content, thereby accelerating the flow of information and the exchange of ideas, and improving the team's collaborative efficiency and creativity. During the communication process, no additional intermediate links or platforms are required, thereby reducing the risk of data leakage and ensuring the real-time and stability of communication. Team members can access and edit mind maps through the client anytime and anywhere without worrying about data synchronization or version conflicts, enabling the team to make plans and solve problems more efficiently. When editing a mind map, team members can instantly see the modifications and updates of other members, thereby reducing the time cost of waiting and communication. This real-time synchronization feature enables team members to collaborate and complete tasks more efficiently.

[0127] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0128] The above-described embodiments merely illustrate several implementations of the present invention, and while their descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art would be able to make numerous variations and improvements without departing from the spirit of the present invention, all of which fall within the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be determined by the appended claims.

[0129] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims

1. A collaborative knowledge display method based on mind mapping, characterized in that: The method comprises: Establishing a front-end page connection based on the mind map page and sending an operation message object, wherein the front-end page connection is established using the WebSocket communication protocol, and the operation message object includes at least an operation type, an identifier of an operation target, and operation content; Acquire the user's operation data according to the operation message object, and send the operation data to the message middleware, which is used to transfer and synchronize the operation data in a distributed scenario; The operation data of the message middleware is acquired, and the modified content of the mind map is synchronized according to the operation data.

2. The collaborative knowledge display method based on mind mapping according to claim 1 is characterized in that: Before the operation data is sent to the message middleware, the method further includes: The message middleware is configured in a distributed service cluster, and the producer and consumer of the message middleware are configured according to the user information of the mind map.

3. The collaborative knowledge display method based on mind mapping according to claim 1 is characterized in that: Establish a front-end page connection based on the mind map page and send an operation message object, including: Establishing a WebSocket communication connection between the front-end page and the server according to the mind map page; Monitor the user's modification operation according to the WebSocket communication connection, and obtain the operation data modified by the user; The operation data is encapsulated to obtain an operation message object, and the operation message object is sent to the server.

4. The collaborative knowledge display method based on mind mapping according to claim 3 is characterized in that: Establishing a WebSocket communication connection between the front-end page and the server according to the mind map page includes: Initialize the mind map page and obtain page information; Checking the communication support mode according to the page information and obtaining the communication object; Establish the WebSocket communication connection with the server according to the communication object.

5. The collaborative knowledge display method based on mind mapping according to claim 1 is characterized in that: Acquiring the user's operation data according to the operation message object and sending the operation data to the message middleware includes: Performing validity verification on the operation message object to obtain a verification result; Parsing the operation message object according to the verification result to obtain the operation data; The operation data and the user information are encapsulated into a message queue, and the message queue is sent to the message middleware.

6. The collaborative knowledge display method based on mind mapping according to claim 5 is characterized in that: After parsing the operation message object according to the verification result to obtain the operation data, the method further includes: Parsing the operation message object to obtain an identifier of the mind map; Acquire all user information associated with the mind map according to the identifier; The operation data is synchronized to a user front-end interface associated with the mind map according to the user information.

7. The collaborative knowledge display method based on mind mapping according to claim 5 is characterized in that: Acquiring the operation data of the message middleware and synchronizing the modified content of the mind map according to the operation data includes: Obtain the message queue of the message middleware, and perform a deserialization operation to obtain the operation data; extracting the modified content and identifier of the mind map according to the operation data; Acquire all user information associated with the mind map according to the identifier; The modified content is synchronized to a user front-end interface associated with the mind map according to the user information.

8. A collaborative knowledge display device based on mind mapping, characterized in that: The device comprises: A front-end connection module is used to establish a front-end page connection based on the mind map page and send an operation message object, wherein the front-end page connection is connected using the WebSocket communication protocol, and the operation message object includes at least an operation type, an identifier of an operation target, and an operation content; A backend processing module is used to obtain the user's operation data according to the operation message object and send the operation data to the message middleware. The message middleware is used to transfer and synchronize the operation data in a distributed scenario. A data synchronization module is used to obtain the operation data of the message middleware and synchronize the modified content of the mind map according to the operation data.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: The processor executes the computer program to implement the collaborative knowledge display method based on mind mapping as described in any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the mind map-based collaborative knowledge display method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Method, device and electronic device for updating page data in real time

    CN108989429A

  • Multi-person collaborative graph configuration method, electronic equipment and server

    CN110442334A

  • Collaboration tool editing method and device, computer equipment and storage medium

    CN117111784A