Method, device and electronic device for constructing visual knowledge graph
By creating ring structures, grouping and connecting knowledge points in the knowledge graph, the problem of disordered child nodes in the existing technology is solved, the orderly arrangement of knowledge points and the hierarchical relationships are realized, and the learning experience is improved.
Patent Information
- Application Number
- CN202311773974.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-21
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2043-12-21
AI Technical Summary
The existing knowledge graph is relatively arbitrary in the management of child nodes, and fails to effectively consider the association between parallel or parallel child nodes, resulting in disordered nodes and difficult to help learners who are getting started with new knowledge to choose and understand.
Using the visual knowledge graph construction method, by obtaining the knowledge units to be taught, creating a central node, and grouping the knowledge points into parallel leaf nodes and child nodes, setting them along the ring to achieve orderly arrangement, using curves to connect child nodes and leaf nodes, at the level The relationship is clear.
It makes the relationship between the knowledge graph content and nodes clear at a glance, making it easier for students to sort out and learn, and especially stimulates the learning interest of beginners.
Smart Images

Figure CN117764161B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of computers and the Internet, and in particular to a method, device and electronic device for constructing a visual knowledge graph. Background Art
[0002] Knowledge graph technology can be used to organize a large number of knowledge points and resources in various industries and fields, and to link entities with intrinsic connections in an orderly manner to facilitate people's learning. However, it is found that the organization of existing knowledge graph information is still relatively arbitrary to a certain extent, especially the management of terminal sub-nodes, which is often ignored. In addition, for parallel or parallel sub-nodes, most of them do not consider the relationship between them, so these sub-nodes are actually in a disordered state with each other. Users are faced with numerous nodes (or sub-nodes) and have no choice. This is not friendly to learners who are in the introductory stage of new knowledge, and there is a lot of room for optimization. Summary of the invention
[0003] The purpose of this application is to provide a method, device and electronic device for constructing a visual knowledge graph.
[0004] An embodiment of the present application provides a method for constructing a visual knowledge graph, including: obtaining a knowledge unit to be taught, and creating the knowledge unit as a central node; extracting the knowledge unit to obtain knowledge points, and creating the knowledge points as parallel leaf nodes; grouping the knowledge points according to predetermined rules, assigning group labels, and creating the group labels as child nodes; setting the child nodes to be spaced in sequence along the circumference of a first ring, setting the leaf nodes to be spaced in sequence along the circumference of a second ring, and setting the central node to be the center of the first ring and the second ring; wherein the central node, the first ring, and the second ring are arranged in sequence from the inside to the outside.
[0005] Furthermore, the method for constructing the visual knowledge graph also includes:
[0006] Each child node is connected to the corresponding leaf nodes by a curve.
[0007] Further, setting the child nodes to be arranged at intervals along the circumference of the first ring, setting the leaf nodes to be arranged at intervals along the circumference of the second ring, and setting the center node to be the center of the first ring and the second ring includes:
[0008] The first ring and the second ring are set as arcs or rings, so that the first ring and the second ring form a ring with the central node as the center and are coaxially arranged;
[0009] The spacing between adjacent leaf nodes under the same group label is set to be smaller than the spacing between adjacent leaf nodes under different group labels.
[0010] Furthermore, the grouping of the knowledge points according to a predetermined rule, assigning group labels, and creating the group labels as child nodes includes:
[0011] The knowledge points are grouped according to the relationship between the knowledge points and the knowledge units or the attributes of the knowledge units, and the relationship or the attributes are used as the group label to establish the connection between the knowledge units and each knowledge point.
[0012] Furthermore, the method for constructing the visual knowledge graph also includes:
[0013] Adding a first-level class label between the central node and the child node, wherein the plurality of first-level class labels are arranged in sequence and at intervals along the circumference of the third ring;
[0014] placing the third ring inside the first ring;
[0015] Divide the third ring into a plurality of first sector blocks according to a plurality of first-level class labels;
[0016] The first ring is divided into a plurality of second sector blocks accordingly, the angles of the second sector blocks and the first sector blocks are set to be the same, and a plurality of sub-nodes are arranged on the second sector blocks; wherein the knowledge unit includes a plurality of first-level class labels, each first-level class label corresponds to a plurality of group labels, so as to establish a connection between the knowledge unit and each group label.
[0017] Further, after the first ring is divided into a plurality of second sector blocks, the angles of the second sector blocks and the first sector blocks are set to be the same, and a plurality of child nodes are set on the second sector blocks, the method for constructing a visual knowledge graph further includes:
[0018] One of the second sector blocks is correspondingly divided into a plurality of third sector blocks according to a plurality of second-level class labels, so that each second-level class label corresponds to a plurality of group labels; wherein at least one first-level class label includes a plurality of second-level class labels.
[0019] Furthermore, the method for constructing the visual knowledge graph also includes:
[0020] According to the current knowledge unit set at the central node, a first chapter label and a second chapter label are created; wherein the first chapter label is the previous knowledge unit adjacent to the current knowledge unit, and the second chapter label is the next knowledge unit adjacent to the current knowledge unit;
[0021] The first chapter label and the second chapter label are arranged on opposite sides of the second ring and on the outer side of the second ring;
[0022] The first chapter label and the second chapter label are connected to the central node respectively by curves; wherein, when the first chapter label is clicked, a new visual knowledge graph is triggered and generated, and the knowledge unit corresponding to the first chapter label is set as the new central node.
[0023] Furthermore, the method for constructing the visual knowledge graph also includes:
[0024] After clicking the current knowledge point, a new visual knowledge graph is triggered and generated; in which the current knowledge point is set as a new central node, the group label of the current knowledge point is set as a new child node, and the child knowledge point of the current knowledge point is set as a new leaf node.
[0025] Furthermore, the knowledge unit is set as a chapter of a book; the knowledge point is set as a keyword set obtained by summarizing the content of the chapter; wherein the knowledge unit includes a plurality of group tags, and each group tag includes at least one knowledge point.
[0026] The present application embodiment provides a device for constructing a visual knowledge graph, including:
[0027] A first creation module, which is used to obtain the knowledge unit to be taught and create the knowledge unit as a central node;
[0028] A second creation module is used to extract the knowledge units to obtain knowledge points, and create the knowledge points as parallel leaf nodes;
[0029] A third creation module, which is used to group the knowledge points according to a predetermined rule, assign group labels, and create the group labels as child nodes;
[0030] A setting module is used to set the child nodes to be spaced in sequence along the circumference of the first ring, set the leaf nodes to be spaced in sequence along the circumference of the second ring, and set the central node to be the center of the first ring and the second ring; wherein the central node, the first ring and the second ring are arranged in sequence from the inside to the outside.
[0031] An embodiment of the present application provides an electronic device, which includes a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the steps of the method described above are implemented.
[0032] An embodiment of the present application provides a computer-readable storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the steps of the method described above are implemented.
[0033] An embodiment of the present application provides a computer program product, wherein the computer program product includes computer program instructions, and when the computer program instructions are executed by a processor, the steps of the method described above are implemented.
[0034] The above technical solution of the present application has the following beneficial technical effects:
[0035] In the embodiment of the present application, the first ring and the second ring are formed into a ring with the central node as the center, and the group label is presented not only as the relationship / attribute of the knowledge unit but also as a sub-node, and the sub-nodes are arranged in sequence along the circumference of the first ring, and the leaf nodes are arranged in sequence along the circumference of the second ring. In this way, the ranking of the sub-nodes and the leaf nodes is regular and orderly, the hierarchical relationship of nodes of different levels is clear, and nodes of the same level appear side by side on the same ring. Further, the content contained in the visualized knowledge graph and the relationship between the nodes can be clearly seen at a glance, so as to facilitate students to sort out and learn the knowledge points, especially to stimulate the learning interest of beginners. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following briefly introduces the drawings in the embodiments of the present application.
[0037] Figure 1 It is a schematic diagram of the system architecture of an embodiment of the present application.
[0038] Figure 2 It is a flowchart of a method for constructing a visual knowledge graph in an embodiment of the present application.
[0039] Figure 3 It is a structural diagram of a visual knowledge graph according to an embodiment of the present application.
[0040] Figure 4 It is a structural block diagram of a device for constructing a visual knowledge graph in an embodiment of the present application.
[0041] Figure 5 It is a schematic diagram of an electronic device used to implement a method for constructing a visual knowledge graph in an embodiment of the present application. DETAILED DESCRIPTION
[0042] The principles and spirit of the present application will be described below with reference to several exemplary embodiments. It should be understood that the purpose of providing these embodiments is to make the principles and spirit of the present application clearer and more thorough, so that those skilled in the art can better understand and implement the principles and spirit of the present application. The exemplary embodiments provided herein are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments herein, all other embodiments obtained by ordinary technicians of the art without creative work are within the scope of protection of this application.
[0043] Embodiments of the present application relate to terminal devices and / or servers. Those skilled in the art will appreciate that the embodiments of the present application may be implemented as a system, apparatus, device, method, computer-readable storage medium, or computer program product. Therefore, the present disclosure may be specifically implemented in at least one of the following forms: complete hardware, complete software, or a combination of hardware and software. According to the embodiments of the present application, the present application claims protection for a method, apparatus, electronic device, computer-readable storage medium, and computer program product for constructing a visual knowledge graph. Figure 1 A schematic diagram of a system architecture of an embodiment of the present application is shown. Figure 1 As shown, the system includes a terminal device 102 and a server 104. Among them, the terminal device 102 may include at least one of the following: a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart TV, various wearable devices, an augmented reality AR device, a virtual reality VR device, etc. A client can be installed on the terminal device 102. For example, the client can be a client that specifically performs a specific function (such as an application app), or a client with multiple application applets (different functions) embedded in it, or a client logged in through a browser. The user can operate on the terminal device 102. For example, the user can open the client installed on the terminal device 102 and input instructions through the client operation, or the user can open the browser installed on the terminal device 102 and input instructions through the browser operation. After the terminal device 102 receives the instruction input by the user, the request information containing the instruction is sent to the server 104. After receiving the request information, the server 104 performs corresponding processing and then returns the processing result information to the terminal device 102. The user instruction is completed through a series of data processing and information interaction.
[0044] In this document, terms such as first, second, third, etc. are only used to distinguish one entity (or operation) from another entity (or operation), but not to require or imply any order or relationship between these entities (or operations).
[0045] Figure 2 A schematic diagram of a process for constructing a visual knowledge graph according to an embodiment of the present application is shown, and the method includes the following specific steps:
[0046] S110: Acquire the knowledge unit to be taught, and create the knowledge unit as a central node;
[0047] S120: extracting the knowledge units to obtain knowledge points, and creating the knowledge points as parallel leaf nodes;
[0048] S130: Grouping the knowledge points according to a predetermined rule, assigning group labels, and creating the group labels as child nodes;
[0049] S140: The child nodes are set to be spaced in sequence along the circumference of the first ring, the leaf nodes are set to be spaced in sequence along the circumference of the second ring, and the central node is set to be the center of the first ring and the second ring; wherein the central node, the first ring and the second ring are set in sequence from the inside to the outside.
[0050] In the embodiment of the present application, the first ring and the second ring can form a ring centered on the central node. The first ring and the second ring can be set to a rectangle, a square or a circle, etc. Correspondingly, the ring can be set to a small rectangle nested in a large rectangle, a small square nested in a large square, or a small circle nested in a large circle; or the ring can also be set to a non-closed loop figure, for example, a small arc nested in a large arc; refer to Figure 3 , the first ring and the second ring may present arc lines or not, and the first ring and the second ring may be spaced apart in the radial direction; the knowledge unit may be, for example, a chapter of a book, and each knowledge point may be grouped according to a predetermined rule, for example, according to the attributes of the knowledge unit or the relationship between the knowledge unit and each knowledge point, so the group label may also be defined as the relationship / attribute of the knowledge unit, and the relationship / attribute of the knowledge unit may specifically be a term explanation, a basic principle, a core concept, a major significance, a learning point, a teaching objective or a key difficulty, etc. Therefore, the group label is presented not only as the relationship / attribute of the knowledge unit but also as a sub-node in the visualized knowledge graph of the embodiment of the present application, and the sub-nodes are arranged in sequence along the circumference direction of the first ring, and the leaf nodes are arranged in sequence along the circumference direction of the second ring, so that the ranking of the sub-nodes and the leaf nodes is regular and orderly presented, the hierarchical relationship of nodes of different levels is clear, and the nodes of the same level appear side by side on the same ring, and further, the content contained in the visualized knowledge graph and the relationship between the nodes can be clear at a glance, so as to facilitate the students to sort out and learn the knowledge points, especially to stimulate the learning interest of beginners.
[0051] In some embodiments, a method for constructing a visual knowledge graph further includes the following specific steps:
[0052] S150: Connect each child node and the corresponding leaf nodes using a curve.
[0053] Specifically, when the number of leaf nodes set in the second ring is large and one child node corresponds to multiple leaf nodes, by reasonably controlling the curvature of the curve, the connection curves between each child node and the corresponding multiple leaf nodes can avoid overlapping and crossing, and the connection relationship between each child node and the corresponding multiple leaf nodes can be clearly presented.
[0054] In some embodiments, step S140, setting the child nodes to be arranged at intervals along the circumference of the first ring, setting the leaf nodes to be arranged at intervals along the circumference of the second ring, and setting the center node to be the center of the first ring and the second ring, includes the following specific steps:
[0055] S141: setting the first ring and the second ring to be arcs or rings, so that the first ring and the second ring form a ring with the central node as the center and coaxially arranged;
[0056] S142: Setting the distance between adjacent leaf nodes under the same group label to be smaller than the distance between adjacent leaf nodes under different group labels.
[0057] Specifically, the first ring and the second ring can be set as a separate arc. It can be understood that the first ring and the second ring can also be set as a ring. For example, the ring formed by the first ring and the second ring can be a nested combination of an arc and a ring, or a combination of two arcs at the same time, or a nested combination of two rings at the same time. The present application does not make too many restrictions here; in the embodiments of the present application, refer to Figure 3 , the first ring is set as a circular ring, the second ring is set as an arc, the child nodes can be evenly spaced on the first ring, the leaf nodes can be spaced on the arc of the second ring, and the first ring and the second ring can be spaced in the radial direction, so that the child nodes and the leaf nodes present a clear hierarchical relationship; when the number of knowledge points is large, the diameter of the second ring can be increased to extend the circumference of the second ring, so that the distribution of the leaf nodes can be properly dense and orderly presented; when the number of knowledge points is small, the diameter of the second ring can be appropriately reduced to shorten the circumference of the second ring; similarly, the diameter of the first ring can be reasonably designed according to the number of group labels, so the ring setting has strong scalability and a wide range of applications. When the spacing between adjacent leaf nodes under the same group label is set to be smaller than the spacing between adjacent leaf nodes under different group labels, the leaf nodes with the same relationship / attribute can be close to each other, and the leaf nodes with different relationships / attributes can be far away, which is conducive to students distinguishing and identifying in the learning process.
[0058] In some embodiments, step S130, grouping the knowledge points according to a predetermined rule, assigning a group label, and creating the group label as a child node, includes:
[0059] The knowledge points are grouped according to the relationship between the knowledge points and the knowledge units or the attributes of the knowledge units, and the relationship or the attributes are used as the group label to establish the connection between the knowledge units and each knowledge point.
[0060] Specifically, the connection established between the knowledge unit and each knowledge point can be, for example, an association and inclusion relationship, so the group label can also be defined as the relationship / attribute of the knowledge unit. The relationship / attribute of the knowledge unit can specifically be a glossary, basic principles, core concepts, major significance, learning points, teaching objectives or key points, etc. Therefore, through the setting of the group label, the relationship between the knowledge unit and each knowledge point can be clear at a glance; and the grouping method is flexible, and the relationship with the central node and the leaf node is clear, which can make the visual knowledge graph of the embodiment of the present application reasonably constructed, and it is easy for students to quickly discover the knowledge content of interest.
[0061] In some embodiments, a method for constructing a visual knowledge graph further includes the following specific steps:
[0062] S160: adding a first-level class label between the central node and the child node, wherein the plurality of first-level class labels are arranged in sequence and at intervals along the circumference of the third ring;
[0063] S161: placing the third ring inside the first ring;
[0064] S162: Divide the third ring into a plurality of first sector blocks according to the plurality of first-level class labels;
[0065] S163: Divide the first ring into a plurality of second sector blocks accordingly, the angles of the second sector blocks and the first sector blocks are set to be the same, and a plurality of sub-nodes are arranged on the second sector blocks; wherein the knowledge unit includes a plurality of first-level class labels, and each first-level class label corresponds to a plurality of group labels, so as to establish a connection between the knowledge unit and each group label.
[0066] Specifically, in the field of education, forming a knowledge graph for teaching knowledge is particularly suitable for the dissemination of systematic knowledge to be taught; in order to present it clearly, the third ring can be set as a circular ring, and the first-level category labels are distributed along the circumference of the third ring; the various knowledge points contained in the knowledge unit can be classified according to the group labels of the knowledge unit, that is, the relationship / attribute, for example, they can be classified into several major categories such as content logic, teaching content and extended content; correspondingly, the second sector block has the same sector angle as the first sector block, and multiple group labels are distributed in a circle on the second sector block, thereby clearly presenting that each first-level category label corresponds to multiple group labels, for example, the teaching content may include group labels such as learning points, teaching objectives and key points and difficulties; the extended content may include group labels such as term explanation, major significance, historical development and construction goals; the content logic may include group labels such as basic principles, core concepts, strategic paths, historical tasks and purpose requirements; this is conducive to the dissemination of the knowledge to be taught, and it is also convenient for students to sort out and learn knowledge points.
[0067] In some embodiments, after step S163: dividing the first ring into a plurality of second sector blocks accordingly, setting the angles of the second sector blocks to be the same as those of the first sector blocks, and setting a plurality of child nodes on the second sector blocks, a method for constructing a visual knowledge graph further includes the following specific steps:
[0068] S164: Divide one of the second sector blocks into a plurality of third sector blocks according to the plurality of second-level class labels, so that each second-level class label corresponds to a plurality of group labels; wherein at least one first-level class label includes a plurality of second-level class labels.
[0069] Specifically, for example, when the content logic in a large category includes many group labels, the content logic can be further subclassified to obtain multiple second-level category labels, such as "what, why or how to do", which can guide students to proceed step by step in the learning process. For example, when studying the content logic part of the knowledge unit, you can first find the corresponding group label under the subcategory of "what", and then find the corresponding knowledge points with the group label of "basic principles and core concepts" to study, and then study the corresponding knowledge points of "why and how to do" in turn; since each second-level category label is set on the third fan-shaped block accordingly, and the corresponding group label is retained on the third fan-shaped block, the group label is also used as a child node, and the child node and the corresponding multiple leaf nodes are connected by curves, which makes it convenient for students to sort out and learn knowledge points, and students can quickly find knowledge content of interest.
[0070] In some embodiments, a method for constructing a visual knowledge graph further includes the following specific steps:
[0071] S170: creating a first chapter label and a second chapter label according to the current knowledge unit located at the central node; wherein the first chapter label is the previous knowledge unit adjacent to the current knowledge unit, and the second chapter label is the next knowledge unit adjacent to the current knowledge unit;
[0072] S171: arranging the first chapter label and the second chapter label on opposite sides of the second ring and on the outside of the second ring;
[0073] S172: Connect the first chapter label and the second chapter label to the central node respectively using curves; wherein, when the first chapter label is clicked, a new visual knowledge graph is triggered and generated, and the knowledge unit corresponding to the first chapter label is set as a new central node.
[0074] Specifically, the first chapter tag and the second chapter tag may include corresponding chapter information, for example, the sequence number and title name of the chapter in the book, which may be "Chapter 5 XXXX". Therefore, the sequence number of the current knowledge unit in the book can be obtained according to the first chapter tag and the second chapter tag; Figure 3 , the first chapter label and the second chapter label are both set on the outside of the second ring, the first chapter label is set in the upper right corner of the browsing interface, and the second chapter label is set in the lower left corner of the browsing interface, and they are connected to the central node with curves respectively, so that the connection between the first chapter label and the second chapter label and the current knowledge unit can be clearly presented; when the user clicks the first chapter label on the browsing interface of the terminal device 102, a request information for triggering the generation of a new visual knowledge graph is sent to the server 104, and the server 104 performs corresponding processing after receiving the request information, and then returns the processing result information to the terminal device 102, at this time, a new visual knowledge graph can be displayed on the browsing interface of the terminal device 102; that is, the visual knowledge graph of the previous knowledge unit adjacent to the current knowledge unit is presented, and the construction method of the new visual knowledge graph can adopt the above-mentioned steps in the embodiment of the present application; similarly, when the second chapter label is clicked, a new visual knowledge graph can also be triggered and generated, and the knowledge unit corresponding to the second chapter label is set as a new central node; therefore, it is convenient for students to conduct systematic and continuous learning.
[0075] In some embodiments, a method for constructing a visual knowledge graph further includes the following specific steps:
[0076] S180: After clicking the current knowledge point, a new visual knowledge graph is triggered and generated; wherein the current knowledge point is set as a new central node, the group label of the current knowledge point is set as a new child node, and the child knowledge point of the current knowledge point is set as a new leaf node.
[0077] Specifically, after the user clicks on the current knowledge point on the browsing interface of the terminal device 102, a request message for generating a new visual knowledge graph is triggered and sent to the server 104. After receiving the request message, the server 104 performs corresponding processing and then returns the processing result information to the terminal device 102. At this time, a new visual knowledge graph can be displayed on the browsing interface of the terminal device 102; that is, a ring with a new central node as the center is presented, and each new child node and the corresponding multiple new leaf nodes are connected by curves. The new child nodes and the new leaf nodes are arranged in sequence along the circumference of the first ring and the second ring respectively. The method for constructing the new visual knowledge graph can adopt the above-mentioned steps in the embodiment of the present application; thereby, the hierarchical relationship between the nodes can be clearly presented, and the students can understand at a glance the content contained in the visual knowledge graph provided in the embodiment of the present application and the relationship between the nodes; nodes of different levels are easily distinguished and identified, and nodes of the same level are distributed along the circumference of their respective arcs or rings, which can achieve proper density and orderly presentation.
[0078] In an exemplary embodiment, the knowledge unit is set as a chapter of a book; the knowledge point is set as a keyword set obtained by summarizing the content of the chapter; wherein the knowledge unit includes multiple group tags, each group tag includes at least one knowledge point. Specifically, the book can be, for example, a textbook to be taught, each chapter of the textbook is set as a knowledge unit, and the knowledge content of each chapter can be summarized to obtain multiple knowledge points, and the knowledge points are embodied by corresponding texts, corresponding to the position of the leaf node set on the arc of the second ring, and the text embodying the current knowledge point is presented horizontally on the outside of the second ring. When the knowledge points under the same group label have a clear set order, the set order can be, for example, the chronological order of each knowledge point or the importance of each knowledge point. The knowledge points are ranked according to the set order, and the corresponding serial numbers are marked in front of the knowledge points. In this way, the order and number of knowledge points cannot be changed at will, which can improve the accuracy of the knowledge system. When the knowledge points under the same group label do not have a clear order, they can be ranked according to the visual effect, or according to the number of words in each line of text, that is, each line of text can be from short to long or from long to short, and the knowledge points are sorted from top to bottom. In this way, the overall visual effect of the visualized knowledge graph can be beautiful, and the ranking of the knowledge points can be reasonable.
[0079] In some embodiments, the construction method may further include partitioning the ring. For example, the ring may be divided into four sub-areas according to the settings of the horizontal axis and the vertical axis. The arc of the second ring may be set intermittently between adjacent sub-areas to avoid numerous knowledge points being continuously distributed along the arc and causing visual fatigue and difficulty in identification; or, an interval symbol may be set on the arc of the second ring. For example, a circle may be set. The diameter of the circle may be set to be larger than the diameter of the leaf node. A corresponding text description associated with the knowledge point content may be set in the circle, and then it may be set as a functional module of the visual knowledge graph. This not only serves to distinguish the intervals of the sub-areas, but also expands the functional modules of the visual knowledge graph.
[0080] The embodiment of the present application arranges the knowledge unit (central node), the first-level class label, the second-level class label, the group label (sub-node) and the knowledge point (leaf node) in sequence on each circular ring or arc along the radial direction of the ring from the inside to the outside, and the first-level class label, the second-level class label, the group label (sub-node) and the knowledge point (leaf node) are distributed in sequence along the circumference of the circular ring or arc where their respective levels are located. The first-level class label, the second-level class label and the group label are divided into a plurality of sector blocks by dividing the circular ring where they are located, and the corresponding relationship is clearly presented in a manner with a consistent sector angle, and each sub-node and the corresponding plurality of leaf nodes are connected by curves. The grouping and classification method is flexible, and the relationship between the nodes is clear, so that the visualization knowledge graph of the embodiment of the present application can be reasonably constructed, and students can easily and quickly find knowledge content of interest.
[0081] Corresponding to the method embodiment of the present application, the embodiment of the present application also provides a device for constructing a visual knowledge graph, referring to Figure 4 , specifically may include:
[0082] A first creation module 510, which is used to obtain a knowledge unit to be taught and create the knowledge unit as a central node;
[0083] A second creation module 520 is used to extract the knowledge units to obtain knowledge points, and create the knowledge points as parallel leaf nodes;
[0084] A third creation module 530, which is used to group the knowledge points according to a predetermined rule, assign group labels, and create the group labels as child nodes;
[0085] A setting module 540 is used to set the child nodes to be spaced in sequence along the circumference of the first ring, set the leaf nodes to be spaced in sequence along the circumference of the second ring, and set the central node to be the center of the first ring and the second ring; wherein the central node, the first ring and the second ring are arranged in sequence from the inside to the outside.
[0086] The electronic device in the embodiment of the present application may be a user terminal device, a server, other computing devices, or a cloud server. Figure 5 A schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application is shown. The electronic device may include a processor 601 and a memory 602 storing computer program instructions. When the processor 601 executes the computer program instructions, the process or function of any of the above-mentioned embodiments of the method is implemented.
[0087] Specifically, the processor 601 may include a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application. The memory 602 may include a large-capacity memory for data or instructions. For example, the memory 602 may be at least one of the following: a hard disk drive (HDD), a read-only memory (ROM), a random access memory (RAM), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a tape, a universal serial bus (USB) drive or other physical / tangible memory storage device. For another example, the memory 602 may include a removable or non-removable (or fixed) medium. For another example, the memory 602 may be inside or outside the integrated gateway disaster recovery device. The memory 602 may be a non-volatile solid-state memory. In other words, the memory 602 usually includes a tangible (non-transitory) computer-readable storage medium (such as a memory device) encoded with computer-executable instructions, and when the software is executed (such as executed by one or more processors), the operation described in the method of the embodiment of the present application can be performed. The processor 601 implements the process or function of any method in the above embodiments by reading and executing the computer program instructions stored in the memory 602.
[0088] In one example, Figure 5 The electronic device shown may also include a communication interface 603 and a bus 610. Among them, the processor 601, the memory 602, and the communication interface 603 are connected through the bus 610 and complete the communication between each other. The communication interface 603 is mainly used to realize the communication between each module, device, unit and / or device in the embodiment of the present application. The bus 610 includes hardware, software or both, and can couple the components of the online data traffic billing device to each other. For example, the bus may include at least one of the following: an accelerated graphics port (AGP) or other graphics bus, an enhanced industrial standard architecture (EISA) bus, a front-end bus (FSB), a hypertransport (HT) interconnect, an industrial standard architecture (ISA) bus, an infinite bandwidth interconnect, a low pin count (LPC) bus, a memory bus, a micro channel architecture (MCA) bus, a peripheral component interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a serial advanced technology attachment (SATA) bus, a video electronics standard association local (VLB) bus or other suitable buses. The bus 610 may include one or more buses. Although the embodiments of the present application describe or illustrate a specific bus, the embodiments of the present application may consider any suitable bus or interconnection method.
[0089] In combination with the method in the above embodiments, an embodiment of the present application also provides a computer-readable storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the process or function of any method in the above embodiments is implemented.
[0090] In addition, an embodiment of the present application further provides a computer program product, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the process or function of any one of the methods in the above embodiments is implemented.
[0091] The above exemplarily describes the flowcharts and / or block diagrams of the methods, devices, systems and computer program products of the embodiments of the present application, and describes the relevant various aspects. It should be understood that each box or combination thereof in the flowchart and / or block diagram can be implemented by computer program instructions, or by dedicated hardware that performs a specified function or action, or by a combination of dedicated hardware and computer instructions. For example, these computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to form a machine that enables these instructions executed by such a processor to enable the implementation of the functions / actions specified in each box or combination thereof in the flowchart and / or block diagram. Such a processor can be a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit.
[0092] The functional blocks shown in the structured block diagram of the embodiment of the present application can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application-specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc.; when implemented in software, it is a program or code segment used to perform the required task. The program or code segment can be stored in a memory, or transmitted on a transmission medium or a communication link via a data signal carried in a carrier. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0093] It should be noted that the present application is not limited to the specific configurations and processes described above or shown in the figures. The above is only a specific implementation mode of the present application. Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the described system, device, module or unit can refer to the corresponding process in the method embodiment without further description. It should be understood that the scope of protection of the present application is not limited to this. Any technician familiar with the technical field can think of various equivalent modifications or substitutions within the technical scope disclosed in the present application, and these modifications or substitutions should be included in the scope of protection of the present application.
Claims
1. A method for constructing a visual knowledge graph, characterized in that: include: Acquire a knowledge unit to be taught, and create the knowledge unit as a central node; Extracting the knowledge units to obtain knowledge points, and creating the knowledge points as parallel leaf nodes; Grouping the knowledge points according to a predetermined rule, assigning group labels, and creating the group labels as child nodes; The child nodes are set to be spaced in sequence along the circumference of the first ring, the leaf nodes are set to be spaced in sequence along the circumference of the second ring, and the central node is set to be the center of the first ring and the second ring; wherein the central node, the first ring and the second ring are set in sequence from the inside to the outside; the first ring and the second ring are set to be arcs or rings, so that the first ring and the second ring form a ring with the central node as the center and coaxially arranged; the spacing between adjacent leaf nodes under the same group label is set to be smaller than the spacing between adjacent leaf nodes under different group labels; The knowledge unit is set as a chapter of a book; the knowledge point is set as a keyword set obtained by summarizing the content of the chapter; wherein the knowledge unit includes a plurality of group tags, and each group tag includes at least one knowledge point.
2. The method according to claim 1, characterized in that Also includes: Each child node is connected to the corresponding leaf nodes by a curve.
3. The method according to claim 1, characterized in that The step of grouping the knowledge points according to a predetermined rule, assigning group labels, and creating the group labels as child nodes includes: The knowledge points are grouped according to the relationship between the knowledge points and the knowledge units or the attributes of the knowledge units, and the relationship or the attributes are used as the group label to establish the connection between the knowledge units and each knowledge point.
4. The method according to claim 1, characterized in that: Also includes: Adding a first-level class label between the central node and the child node, wherein the plurality of first-level class labels are arranged in sequence and at intervals along the circumference of the third ring; placing the third ring inside the first ring; Divide the third ring into a plurality of first sector blocks according to a plurality of first-level class labels; The first ring is correspondingly divided into a plurality of second sector blocks, the second sector blocks have the same angle as the first sector blocks, and a plurality of sub-nodes are arranged on the second sector blocks; wherein the knowledge unit comprises a plurality of first-level class labels, each first-level class label corresponds to a plurality of group labels, so as to establish a connection between the knowledge unit and each group label.
5. The method according to claim 4, characterized in that After the first ring is divided into a plurality of second sector blocks, the angles of the second sector blocks are the same as those of the first sector blocks, and a plurality of sub-nodes are set on the second sector blocks, the method further includes: One of the second sector blocks is correspondingly divided into a plurality of third sector blocks according to a plurality of second-level class labels, so that each second-level class label corresponds to a plurality of group labels; wherein at least one first-level class label includes a plurality of second-level class labels.
6. The method according to claim 1, characterized in that Also includes: According to the current knowledge unit set at the central node, a first chapter label and a second chapter label are created; wherein the first chapter label is the previous knowledge unit adjacent to the current knowledge unit, and the second chapter label is the next knowledge unit adjacent to the current knowledge unit; The first chapter label and the second chapter label are arranged on opposite sides of the second ring and on the outer side of the second ring; The first chapter label and the second chapter label are connected to the central node respectively by curves; wherein, when the first chapter label is clicked, a new visual knowledge graph is triggered and generated, and the knowledge unit corresponding to the first chapter label is set as the new central node.
7. The method according to claim 1, characterized in that Also includes: After clicking the current knowledge point, a new visual knowledge graph is triggered and generated; in which the current knowledge point is set as a new central node, the group label of the current knowledge point is set as a new child node, and the child knowledge point of the current knowledge point is set as a new leaf node.
8. A device for constructing a visual knowledge graph, characterized in that: include: A first creation module, which is used to obtain the knowledge unit to be taught and create the knowledge unit as a central node; A second creation module is used to extract the knowledge units to obtain knowledge points, and create the knowledge points as parallel leaf nodes; A third creation module is used to group the knowledge points according to a predetermined rule, assign group labels, and create the group labels as child nodes; A setting module, which is used to set the child nodes to be arranged in sequence along the circumference of the first ring, the leaf nodes to be arranged in sequence along the circumference of the second ring, and the central node to be the center of the first ring and the second ring; wherein the central node, the first ring and the second ring are arranged in sequence from the inside to the outside; the first ring and the second ring are set as arcs or rings, so that the first ring and the second ring form a ring with the central node as the center and coaxially arranged; the spacing between adjacent leaf nodes under the same group label is set to be smaller than the spacing between adjacent leaf nodes under different group labels; The knowledge unit is set as a chapter of a book; the knowledge point is set as a keyword set obtained by summarizing the content of the chapter; wherein the knowledge unit includes a plurality of group tags, and each group tag includes at least one knowledge point.
9. An electronic device, characterized in that: The electronic device comprises: a processor and a memory storing computer program instructions; when the electronic device executes the computer program instructions, the method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Implementation method and device for constructing annular association graph of enterprise relationship
CN110502672A
Knowledge graph display method and system
CN114186077A
Knowledge graph visualization method
CN116090555A
Visualization method and device for subject knowledge graph
CN116108922A
Method and apparatus for generating personalized knowledge graph, and computer device
WO2022218186A1
