CN113553443B - Relation map generation method and system for recording knowledge map migration path - Google Patents

Relation map generation method and system for recording knowledge map migration path Download PDF

Info

Publication number
CN113553443B
CN113553443B CN202110810121.2A CN202110810121A CN113553443B CN 113553443 B CN113553443 B CN 113553443B CN 202110810121 A CN202110810121 A CN 202110810121A CN 113553443 B CN113553443 B CN 113553443B
Authority
CN
China
Prior art keywords
node
graph
json data
map
knowledge
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110810121.2A
Other languages
Chinese (zh)
Other versions
CN113553443A (en
Inventor
于丹丹
李青龙
白剑波
高媛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Smart Starlight Information Technology Co ltd
Original Assignee
Beijing Smart Starlight Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Smart Starlight Information Technology Co ltd filed Critical Beijing Smart Starlight Information Technology Co ltd
Priority to CN202110810121.2A priority Critical patent/CN113553443B/en
Publication of CN113553443A publication Critical patent/CN113553443A/en
Application granted granted Critical
Publication of CN113553443B publication Critical patent/CN113553443B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/36Creation of semantic tools, e.g. ontology or thesauri
    • G06F16/367Ontology
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/34Browsing; Visualisation therefor
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application discloses a method and a system for generating a relation map for recording a knowledge map walking path, wherein the method comprises the following steps: acquiring knowledge graph json data and graph configuration item parameters; adding a position field on the knowledge graph json data; obtaining a knowledge graph and position information of the knowledge graph json data according to the knowledge graph json data, the graph configuration item parameters and the position field; acquiring clicking operation of nodes on the knowledge graph; obtaining corresponding node information and position information according to clicking operation; the node information corresponding to the last click operation is sent to a back-end data acquisition system; receiving node association json data corresponding to the last click operation; adding a position field on node association json data; and generating a relationship map of the knowledge map travel path according to the node association json data, the map configuration item parameters, the position field, the node information of the nodes corresponding to each clicking operation and the position information. The method automatically generates a relationship graph of the knowledge graph travel path.

Description

Relation map generation method and system for recording knowledge map migration path
Technical Field
The application relates to the field of data processing, in particular to a method, a system, electronic equipment and a storage medium for generating a relationship map for recording a knowledge map travel path.
Background
Along with the development of big data age, the front-end interface graphics are more and more complex, not only limited to graphic display, but also comprise a great number of operations, such as a user can randomly drag and change the graphics, and expand or retract the graphics after clicking, and the like. But cannot record the user's travel path.
Disclosure of Invention
In view of this, the embodiment of the application provides a method, a system, an electronic device and a storage medium for generating a relationship map for recording a knowledge-graph travel path, so as to record the relationship of the knowledge-graph travel path.
Therefore, the embodiment of the application provides the following technical scheme:
according to a first aspect, an embodiment of the present application provides a method for generating a relationship graph for recording a knowledge graph travel path, including: acquiring knowledge graph json data; acquiring a map configuration item parameter, wherein the map configuration item parameter comprises a map display style parameter and a map animation display parameter; adding a position field on the json data of the knowledge graph, wherein the position field is used for positioning the position of the json data on the graph; obtaining a knowledge graph and position information of json data in the knowledge graph according to the knowledge graph json data, the graph configuration item parameters and the position field; acquiring clicking operation of nodes on the knowledge graph; obtaining node information and position information of the node corresponding to each click operation according to the click operation; node information of the node corresponding to the last click operation is sent to a back-end data acquisition system; receiving node association json data of a node corresponding to the last click operation, wherein the node association json data is obtained by a back-end data acquisition system through data acquisition according to node information of the node corresponding to the last click operation; adding a position field on node association json data; and generating a relationship map of the knowledge map travel path according to the node association json data, the map configuration item parameters, the position field, the node information of the nodes corresponding to each clicking operation and the position information.
Optionally, the step of acquiring the knowledge-graph json data includes: the field names in json are determined in advance and through a back-end data acquisition system; and receiving the knowledge spectrum json data acquired by the back-end data acquisition system, and acquiring the knowledge spectrum json data by the back-end data acquisition system according to the field name.
Optionally, the map display style parameters include a font display color parameter, a node border parameter, an inter-node join line color parameter, and an arrow parameter.
Optionally, the node information includes a connection relationship between nodes, a node name, and a node id.
Optionally, the step of obtaining the knowledge graph and the position information of the json data in the knowledge graph according to the json data of the knowledge graph, the graph configuration item parameters and the position field includes: creating a svg container; and obtaining the knowledge graph and coordinate values in the position fields corresponding to the entity nodes in the knowledge graph according to the json data of the knowledge graph, the graph configuration item parameters and the position fields, and taking the coordinate values as the position information of the json data in the knowledge graph.
Optionally, the step of generating the relationship map of the knowledge graph travel path according to the node association json data, the map configuration item parameters, the position field, the node information of the node corresponding to each click operation, and the position information includes: creating a svg container; obtaining associated nodes corresponding to the node associated json data and coordinate values in the position fields corresponding to the associated nodes according to the node associated json data, the map configuration item parameters and the position fields; and generating a relationship map of the knowledge map travel path according to the associated node corresponding to the node associated json data, the coordinate value in the position field corresponding to the associated node, and the node information and the position information of the node corresponding to each clicking operation.
According to a second aspect, an embodiment of the present application provides a relationship graph generating system for recording a knowledge graph walk path, including: the first acquisition module is used for acquiring knowledge graph json data; the second acquisition module is used for acquiring the parameters of the map configuration items, wherein the parameters of the map configuration items comprise map display style parameters and map animation display parameters; the first processing module is used for adding a position field to the json data of the knowledge graph, and the position field is used for positioning the position of the json data on the graph; the second processing module is used for obtaining the knowledge graph and the position information of the json data in the knowledge graph according to the knowledge graph json data, the graph configuration item parameters and the position field; the third acquisition module is used for acquiring click operation of the nodes on the knowledge graph; the third processing module is used for obtaining node information and position information of the nodes corresponding to each clicking operation according to the clicking operation; the fourth processing module is used for sending the node information of the node corresponding to the last click operation to the back-end data acquisition system; the fifth processing module is used for receiving node association json data of the node corresponding to the last click operation, wherein the node association json data is obtained by a back-end data acquisition system through data acquisition according to node information of the node corresponding to the last click operation; the sixth processing module is used for adding a position field to the node association json data; and the seventh processing module is used for generating a relation map of the knowledge map travel path according to the node association json data, the map configuration item parameters, the position field, the node information of the node corresponding to each clicking operation and the position information.
Optionally, the first acquisition module includes: the first processing unit is used for determining field names in json in advance and through the back-end data acquisition system; the second processing unit is used for receiving the knowledge graph json data acquired by the back-end data acquisition system, and the back-end data acquisition system acquires the knowledge graph json data according to the field name.
Optionally, the map display style parameters include a font display color parameter, a node border parameter, an inter-node join line color parameter, and an arrow parameter.
Optionally, the node information includes a connection relationship between nodes, a node name, and a node id.
Optionally, the second processing module includes: a third processing unit for creating a svg container; and the fourth processing unit is used for obtaining the knowledge graph and the coordinate value in the position field corresponding to the entity node in the knowledge graph according to the json data of the knowledge graph, the graph configuration item parameters and the position field, and taking the coordinate value as the position information of the json data in the knowledge graph.
Optionally, the seventh processing module includes: a fifth processing unit for creating a svg container; the sixth processing unit is used for obtaining the associated node corresponding to the node associated json data and the coordinate value in the position field corresponding to the associated node according to the node associated json data, the map configuration item parameter and the position field; and the seventh processing unit is used for generating a relation map of the knowledge map travel path according to the associated node corresponding to the node associated json data, the coordinate value in the position field corresponding to the associated node, and the node information and the position information of the node corresponding to each clicking operation.
According to a third aspect, an embodiment of the present application provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to cause the at least one processor to perform the method of generating a relationship graph of the record knowledge graph walk path described in any one of the first aspects above.
According to a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing computer instructions for causing a computer to execute the relationship graph generation method for recording a knowledge graph walk path described in any one of the above first aspects.
The technical scheme of the embodiment of the application has the following advantages:
the embodiment of the application provides a relation map generation method, a system, electronic equipment and a storage medium for recording a knowledge map walking path, wherein the method comprises the following steps: acquiring knowledge graph json data; acquiring a map configuration item parameter, wherein the map configuration item parameter comprises a map display style parameter and a map animation display parameter; adding a position field on the json data of the knowledge graph, wherein the position field is used for positioning the position of the json data on the graph; obtaining a knowledge graph and position information of json data in the knowledge graph according to the knowledge graph json data, the graph configuration item parameters and the position field; acquiring clicking operation of nodes on the knowledge graph; obtaining node information and position information of the node corresponding to each click operation according to the click operation; node information of the node corresponding to the last click operation is sent to a back-end data acquisition system; receiving node association json data of a node corresponding to the last click operation, wherein the node association json data is obtained by a back-end data acquisition system through data acquisition according to node information of the node corresponding to the last click operation; adding a position field on node association json data; and generating a relationship map of the knowledge map travel path according to the node association json data, the map configuration item parameters, the position field, the node information of the nodes corresponding to each clicking operation and the position information. Firstly, acquiring knowledge spectrum json data and spectrum configuration item parameters; adding a position field for positioning json data on the knowledge graph json data; drawing a knowledge graph according to the knowledge graph json data, the graph configuration item parameters and the position field to obtain the drawn knowledge graph and the position information of json data in the knowledge graph corresponding to the position field; then, acquiring click operations of the nodes on the knowledge graph by a user, determining node information and position information of the click node corresponding to each click operation, and transmitting the node information corresponding to the last click operation to a back-end data acquisition system for acquiring node association json data; then, node association json data of the node corresponding to the last clicking operation is received, and a position field is added to the node association json data; and drawing the map according to the node association json data, the map configuration item parameters, the position field and the node information and the position information of the nodes corresponding to each clicking operation, wherein the node information and the position information corresponding to the clicking operation are kept unchanged, the node association json data generate new nodes and connecting lines, a relation map of the knowledge map travel path is obtained, the record of the relation of the knowledge map travel path is realized, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present application, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a specific example of a relationship map generation method of recording a knowledge-graph travel path according to an embodiment of the present application;
FIG. 2 is a block diagram of one specific example of a relationship map generation system recording knowledge-graph travel paths, in accordance with an embodiment of the application;
fig. 3 is a schematic diagram of an electronic device according to an embodiment of the application.
Detailed Description
The following description of the embodiments of the present application will be made apparent and fully in view of the accompanying drawings, in which some, but not all embodiments of the application are shown. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The embodiment of the application provides a relation map generation method for recording a knowledge map walking path, which comprises the steps S1-S10 as shown in figure 1.
Step S1: and acquiring knowledge graph json data.
As an exemplary embodiment, knowledge-graph crawler data may be obtained by a web crawler, and then data format processing is performed on the knowledge-graph crawler data to obtain json format data, that is, knowledge-graph json data.
Step S2: and acquiring the parameters of the map configuration items, wherein the parameters of the map configuration items comprise map display style parameters and map animation display parameters.
In this embodiment, the parameters of the map configuration item are parameters of map display style configuration and animation display configuration, and map configuration is performed according to the parameters of the map configuration item. The map configuration item parameters comprise a map display style parameter and a map animation display parameter.
The pattern display style parameter is used for pattern display of the pattern, and can specifically comprise a font display color parameter, a node frame parameter, an inter-node connecting line color parameter, an arrow parameter and the like. The map animation display parameters are used for animation display of the map, and can specifically comprise gravitation parameters of nodes and a center node, collision force parameters between the nodes, map scaling and translation parameters and the like. This is only schematically described in this embodiment, but not limited to, and in other embodiments, parameters of the map configuration item may be reasonably determined according to needs.
Step S3: and adding a position field on the knowledge graph json data, wherein the position field is used for positioning the position of the json data on the graph.
In this embodiment, a position field is added to each json data of the knowledge graph, where the position field is used to locate the position of the json data on the graph, so as to obtain the coordinates of the json data when the knowledge graph is drawn.
Step S4: and obtaining the knowledge graph and the position information of the json data in the knowledge graph according to the knowledge graph json data, the graph configuration item parameters and the position field.
In this embodiment, the knowledge graph is drawn according to the json data of the knowledge graph, the graph configuration item parameters and the location fields, so as to obtain specific location coordinates corresponding to the knowledge graph and the location fields, wherein the coordinate values corresponding to the location fields are the location information of the json data in the knowledge graph, that is, the coordinates corresponding to the entities in the knowledge graph.
Step S5: and acquiring clicking operation of the nodes on the knowledge graph.
In this embodiment, after the knowledge graph is drawn, the user performs corresponding clicking on the entity (i.e., the node) on the knowledge graph according to the requirement, so as to obtain the clicking operation of the node on the knowledge graph.
Step S6: and obtaining node information and position information of the node corresponding to each clicking operation according to the clicking operation.
In this embodiment, the click node corresponding to the click operation on the knowledge graph is determined according to the click of the click operation, and the corresponding node information and the position information can be obtained according to the click node.
Specifically, the node information includes a connection relationship between nodes, a node name, and a node id; this embodiment is only schematically described, but not limited to, and in other embodiments, the node information may be reasonably set according to needs.
Step S7: and sending the node information of the node corresponding to the last click operation to a back-end data acquisition system.
In this embodiment, node information of the click node corresponding to the last click operation is sent to the back-end data acquisition system, and the back-end data acquisition system acquires related data according to the node of the last click operation.
Step S8: and receiving node association json data of the node corresponding to the last click operation, wherein the node association json data is obtained by a back-end data acquisition system through data acquisition according to node information of the node corresponding to the last click operation.
In this embodiment, after receiving the node information corresponding to the last click operation, the back-end data acquisition system queries the associated data associated with the node to obtain the node associated json data, and then sends the node associated json data corresponding to the last click operation to the front-end, and the front-end can receive the node associated json data of the last click node.
Step S9: a location field is added to the node association json data.
In this embodiment, a position field is added to the node association json data, and then the position information of the associated node can be obtained when the map is drawn.
Step S10: and generating a relationship map of the knowledge map travel path according to the node association json data, the map configuration item parameters, the position field, the node information of the nodes corresponding to each clicking operation and the position information.
In the embodiment, generating a knowledge graph by using node association json data, graph configuration item parameters, a position field and node information and position information corresponding to each clicking operation, wherein the node association json data automatically generates a new entity node and node connection relation, and the node position, connection relation and position information of the clicking operation node are kept unchanged; thus, a relation map of the migration path is obtained, and the migration path of the knowledge map is recorded.
Firstly, acquiring knowledge graph json data and graph configuration item parameters; adding a position field for positioning json data on the knowledge graph json data; drawing a knowledge graph according to the knowledge graph json data, the graph configuration item parameters and the position field to obtain the drawn knowledge graph and the position information of json data in the knowledge graph corresponding to the position field; then, acquiring click operations of the nodes on the knowledge graph by a user, determining node information and position information of the click node corresponding to each click operation, and transmitting the node information corresponding to the last click operation to a back-end data acquisition system for acquiring node association json data; then, node association json data of the node corresponding to the last clicking operation is received, and a position field is added to the node association json data; and drawing the map according to the node association json data, the map configuration item parameters, the position field and the node information and the position information of the nodes corresponding to each clicking operation, wherein the node information and the position information corresponding to the clicking operation are kept unchanged, the node association json data generate new nodes and connecting lines, a relation map of the knowledge map travel path is obtained, the record of the relation of the knowledge map travel path is realized, and the user experience is improved.
As an exemplary embodiment, the step of acquiring the knowledge-graph json data in step S1 includes steps S11 to S12.
Step S11: the field names in json are determined in advance and by the back-end data acquisition system.
In this embodiment, the front-end display system and the back-end data acquisition system unify field names of data in advance. The field name is the key value of the object, e.g., { key: value = { name: 'actor 1' }. The field names may include node names and link names in json data. This is only schematically illustrated in the present embodiment, and is not limited thereto.
Step S12: and receiving the knowledge spectrum json data acquired by the back-end data acquisition system, and acquiring the knowledge spectrum json data by the back-end data acquisition system according to the field name.
In this embodiment, the back-end data acquisition system performs data acquisition according to the field name, and object keys of the acquired data remain consistent. And then processing the acquired data into a format required by d3js, namely knowledge graph json data.
The front-end and back-end data acquisition systems transmit acquired data through the API, and if the corresponding API is directly modified by the adjustment style, the purpose of the requirement can be achieved without changing codes.
The method comprises the steps that field names in json are preset with a rear-end data acquisition system, the rear-end data acquisition system can acquire data according to the field names to obtain knowledge graph json data, and the acquired knowledge graph json data are sent to the front end for graph display; by configuring the style of the API control relation diagram and the data display animation, recording the user walk path and the like, and packaging the relation diagram into components, the development and the use of multiple places at one time are achieved, and the development efficiency is improved.
As an exemplary embodiment, step S4 includes steps S41-S42 in the step of obtaining the knowledge graph and the position information of the json data in the knowledge graph according to the knowledge graph json data, the graph configuration item parameters and the position field.
Step S41: a svg container is created.
Specifically, svg is an XML-syntax-based image format, which is collectively referred to as a scalable vector map (Scalable Vector Graphics).
Step S42: and obtaining the knowledge graph and coordinate values in the position fields corresponding to the entity nodes in the knowledge graph according to the json data of the knowledge graph, the graph configuration item parameters and the position fields, and taking the coordinate values as the position information of the json data in the knowledge graph.
Specifically, the svg container is used for drawing a map, the knowledge map json data, the map configuration item parameters and the position fields are input into the svg container for automatically drawing the map, coordinate values in the knowledge map, the entity nodes in the knowledge map and the position fields corresponding to the entity nodes are obtained, and the coordinate values are used as position information of the json data in the knowledge map.
Firstly creating a svg container, and then drawing a relation connection line of a knowledge graph and entity nodes according to the transmitted data to obtain the knowledge graph.
As an exemplary embodiment, step S10 includes steps S101-S103 in the step of generating a relationship map of a knowledge graph travel path according to node association json data, a graph configuration item parameter, a location field, node information of a node corresponding to each click operation, and location information.
Step S101: a svg container is created.
Specifically, the svg container is recreated because the content drawn in the last svg container needs to be emptied in order to be redrawn according to the acquired new data.
Step S102: and obtaining the associated node corresponding to the node associated json data and the coordinate value in the position field corresponding to the associated node according to the node associated json data, the map configuration item parameter and the position field.
Specifically, the relevant nodes corresponding to the node relevant json data and the coordinate values in the position fields corresponding to the relevant nodes are obtained through the svg container according to the node relevant json data, the map configuration item parameters and the position fields.
Step S103: and generating a relationship map of the knowledge map travel path according to the associated node corresponding to the node associated json data, the coordinate value in the position field corresponding to the associated node, and the node information and the position information of the node corresponding to each clicking operation.
In this embodiment, the association node corresponding to the node association json data, and the coordinate value in the location field corresponding to the association node obtain the association node and the location thereof; and then, combining the node information and the position information corresponding to each clicking operation to obtain a relationship map of the knowledge map travel path.
The generation of the relation map for recording the knowledge map migration path is realized through the steps.
In this embodiment, a system for generating a relationship map for recording a travel path of a knowledge graph is further provided, and the system is used for implementing the foregoing embodiments and preferred embodiments, which have been described and will not be repeated. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the system described in the following embodiments is preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
The embodiment also provides a system for generating a relationship map for recording a walk path of a knowledge map, as shown in fig. 2, including:
the first acquisition module 1 is used for acquiring knowledge graph json data;
the second acquisition module 2 is used for acquiring the parameters of the map configuration items, wherein the parameters of the map configuration items comprise map display style parameters and map animation display parameters;
the first processing module 3 is used for adding a position field on the json data of the knowledge graph, wherein the position field is used for positioning the position of the json data on the graph;
the second processing module 4 is used for obtaining the knowledge graph and the position information of the json data in the knowledge graph according to the knowledge graph json data, the graph configuration item parameters and the position field;
the third obtaining module 5 is used for obtaining clicking operation of the nodes on the knowledge graph;
the third processing module 6 is configured to obtain node information and position information of a node corresponding to each click operation according to the click operation;
the fourth processing module 7 is configured to send node information of a node corresponding to the last click operation to the back-end data acquisition system;
the fifth processing module 8 is configured to receive node association json data of a node corresponding to the last click operation, where the node association json data is obtained by performing data acquisition by the back-end data acquisition system according to node information of the node corresponding to the last click operation;
a sixth processing module 9, configured to add a location field to the node association json data;
the seventh processing module 10 is configured to generate a relationship graph of the knowledge graph travel path according to the node association json data, the graph configuration item parameters, the location field, the node information of the node corresponding to each click operation, and the location information.
As an exemplary embodiment, the first acquisition module includes: the first processing unit is used for determining field names in json in advance and through the back-end data acquisition system; the second processing unit is used for receiving the knowledge graph json data acquired by the back-end data acquisition system, and the back-end data acquisition system acquires the knowledge graph json data according to the field name.
As an exemplary embodiment, the atlas display style parameters include font display color parameters, node bounding box parameters, inter-node join line color parameters, and arrow parameters.
As an exemplary embodiment, the node information includes a connection relationship between nodes, a node name, and a node id.
As an exemplary embodiment, the second processing module includes: a third processing unit for creating a svg container; and the fourth processing unit is used for obtaining the knowledge graph and the coordinate value in the position field corresponding to the entity node in the knowledge graph according to the json data of the knowledge graph, the graph configuration item parameters and the position field, and taking the coordinate value as the position information of the json data in the knowledge graph.
As an exemplary embodiment, the seventh processing module includes: a fifth processing unit for creating a svg container; the sixth processing unit is used for obtaining the associated node corresponding to the node associated json data and the coordinate value in the position field corresponding to the associated node according to the node associated json data, the map configuration item parameter and the position field; and the seventh processing unit is used for generating a relation map of the knowledge map travel path according to the associated node corresponding to the node associated json data, the coordinate value in the position field corresponding to the associated node, and the node information and the position information of the node corresponding to each clicking operation.
The relationship map generation system that records the path of travel of the knowledge map in this embodiment is presented in the form of functional units, where the units refer to ASIC circuits, processors and memories that execute one or more software or firmware programs, and/or other devices that can provide the above-described functions.
Further functional descriptions of the above respective modules are the same as those of the above corresponding embodiments, and are not repeated here.
The embodiment of the application also provides an electronic device, as shown in fig. 3, which includes one or more processors 71 and a memory 72, and in fig. 3, one processor 71 is taken as an example.
The controller may further include: an input device 73 and an output device 74.
The processor 71, memory 72, input device 73 and output device 74 may be connected by a bus or otherwise, for example in fig. 3.
The processor 71 may be a central processing unit (Central Processing Unit, CPU). The processor 71 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or combinations of the above. A general purpose processor may be a microprocessor or any conventional processor or the like.
The memory 72 is used as a non-transitory computer readable storage medium for storing non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to a method for generating a relationship graph in which a knowledge graph walk path is recorded in an embodiment of the present application. The processor 71 executes various functional applications of the server and data processing, that is, implements the relationship map generation method of recording the knowledge map travel path of the above-described method embodiment, by running the non-transitory software programs, instructions, and modules stored in the memory 72.
Memory 72 may include a storage program area that may store an operating system, at least one application program required for functionality, and a storage data area; the storage data area may store data created according to the use of a processing device operated by the server, or the like. In addition, memory 72 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 72 may optionally include memory located remotely from processor 71, such remote memory being connectable to the network connection device through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 73 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the processing device of the server. The output device 74 may include a display device such as a display screen.
One or more modules are stored in the memory 72 that, when executed by the one or more processors 71, perform the method shown in fig. 1.
It will be appreciated by those skilled in the art that implementing all or part of the above-described embodiment method may be implemented by a computer program to instruct related hardware, and the executed program may be stored in a computer readable storage medium, where the program may include the above-described embodiment flow of the relationship graph generation method of recording the knowledge graph travel path when executed. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a Flash Memory (Flash Memory), a Hard Disk (HDD), or a Solid State Drive (SSD); the storage medium may also comprise a combination of memories of the kind described above.
Although embodiments of the present application have been described in connection with the accompanying drawings, various modifications and variations may be made by those skilled in the art without departing from the spirit and scope of the application, and such modifications and variations fall within the scope of the application as defined by the appended claims.

Claims (9)

1. A relation map generation method for recording a knowledge map walking path is characterized by comprising the following steps:
acquiring knowledge graph json data;
acquiring a map configuration item parameter, wherein the map configuration item parameter comprises a map display style parameter and a map animation display parameter;
adding a position field on the json data of the knowledge graph, wherein the position field is used for positioning the position of the json data on the graph;
obtaining a knowledge graph and position information of json data in the knowledge graph according to the knowledge graph json data, the graph configuration item parameters and the position field;
acquiring clicking operation of nodes on the knowledge graph;
obtaining node information and position information of the node corresponding to each click operation according to the click operation;
node information of the node corresponding to the last click operation is sent to a back-end data acquisition system;
receiving node association json data of a node corresponding to the last click operation, wherein the node association json data is obtained by a back-end data acquisition system through data acquisition according to node information of the node corresponding to the last click operation;
adding a position field on node association json data;
and generating a relationship map of the knowledge map travel path according to the node association json data, the map configuration item parameters, the position field, the node information of the nodes corresponding to each clicking operation and the position information.
2. The method for generating a relationship map for recording a walk path of a knowledge-graph according to claim 1, wherein the step of acquiring json data of the knowledge-graph comprises:
the field names in json are determined in advance and through a back-end data acquisition system;
and receiving the knowledge spectrum json data acquired by the back-end data acquisition system, and acquiring the knowledge spectrum json data by the back-end data acquisition system according to the field name.
3. The method for generating a relationship map for recording a travel path of a knowledge-graph according to claim 1, wherein the map display style parameters include a font display color parameter, a node frame parameter, an inter-node line color parameter, and an arrow parameter.
4. The method for generating a relationship map for recording a knowledge-graph travel path according to claim 1, wherein the node information includes a connection relationship between nodes, a node name, and a node id.
5. The method for generating a relational graph recording a walk path of a knowledge graph according to claim 1, wherein the step of obtaining the knowledge graph and the positional information of json data in the knowledge graph based on the json data of the knowledge graph, the graph configuration item parameters and the positional field comprises:
creating a svg container;
and obtaining the knowledge graph and coordinate values in the position fields corresponding to the entity nodes in the knowledge graph according to the json data of the knowledge graph, the graph configuration item parameters and the position fields, and taking the coordinate values as the position information of the json data in the knowledge graph.
6. The method for generating a relationship graph of a travel path of a knowledge graph according to any one of claims 1 to 5, wherein the step of generating the relationship graph of the travel path of the knowledge graph according to node association json data, graph configuration item parameters, location fields, node information and location information of the nodes corresponding to each click operation includes:
creating a svg container;
obtaining associated nodes corresponding to the node associated json data and coordinate values in the position fields corresponding to the associated nodes according to the node associated json data, the map configuration item parameters and the position fields;
and generating a relationship map of the knowledge map travel path according to the associated node corresponding to the node associated json data, the coordinate value in the position field corresponding to the associated node, and the node information and the position information of the node corresponding to each clicking operation.
7. A relational graph generating system that records a knowledge graph walk path, comprising:
the first acquisition module is used for acquiring knowledge graph json data;
the second acquisition module is used for acquiring the parameters of the map configuration items, wherein the parameters of the map configuration items comprise map display style parameters and map animation display parameters;
the first processing module is used for adding a position field to the json data of the knowledge graph, and the position field is used for positioning the position of the json data on the graph;
the second processing module is used for obtaining the knowledge graph and the position information of the json data in the knowledge graph according to the knowledge graph json data, the graph configuration item parameters and the position field;
the third acquisition module is used for acquiring click operation of the nodes on the knowledge graph;
the third processing module is used for obtaining node information and position information of the nodes corresponding to each clicking operation according to the clicking operation;
the fourth processing module is used for sending the node information of the node corresponding to the last click operation to the back-end data acquisition system;
the fifth processing module is used for receiving node association json data of the node corresponding to the last click operation, wherein the node association json data is obtained by a back-end data acquisition system through data acquisition according to node information of the node corresponding to the last click operation;
the sixth processing module is used for adding a position field to the node association json data;
and the seventh processing module is used for generating a relation map of the knowledge map travel path according to the node association json data, the map configuration item parameters, the position field, the node information of the node corresponding to each clicking operation and the position information.
8. An electronic device, comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to cause the at least one processor to perform the method of generating a relationship graph of recorded knowledge graph travel paths of any one of claims 1-6.
9. A computer-readable storage medium storing computer instructions for causing the computer to execute the relationship graph generation method of recording a knowledge graph travel path according to any one of claims 1 to 6.
CN202110810121.2A 2021-07-18 2021-07-18 Relation map generation method and system for recording knowledge map migration path Active CN113553443B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110810121.2A CN113553443B (en) 2021-07-18 2021-07-18 Relation map generation method and system for recording knowledge map migration path

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110810121.2A CN113553443B (en) 2021-07-18 2021-07-18 Relation map generation method and system for recording knowledge map migration path

Publications (2)

Publication Number Publication Date
CN113553443A CN113553443A (en) 2021-10-26
CN113553443B true CN113553443B (en) 2023-08-22

Family

ID=78103293

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110810121.2A Active CN113553443B (en) 2021-07-18 2021-07-18 Relation map generation method and system for recording knowledge map migration path

Country Status (1)

Country Link
CN (1) CN113553443B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109033260A (en) * 2018-07-06 2018-12-18 天津大学 Knowledge mapping Interactive Visualization querying method based on RDF
CN109508384A (en) * 2018-10-31 2019-03-22 北京国双科技有限公司 Processing method, device, storage medium and the processor of knowledge mapping
CN110083663A (en) * 2019-04-09 2019-08-02 北京中科智营科技发展有限公司 A kind of Classified optimization method and apparatus that data are shown
CN111667336A (en) * 2020-04-28 2020-09-15 中国平安财产保险股份有限公司 Product information configuration and pushing method, device, equipment and storage medium
WO2020233261A1 (en) * 2019-07-12 2020-11-26 之江实验室 Natural language generation-based knowledge graph understanding assistance system
CN112463989A (en) * 2020-12-11 2021-03-09 交控科技股份有限公司 Knowledge graph-based information acquisition method and system
CN113010612A (en) * 2021-03-02 2021-06-22 中国工商银行股份有限公司 Visual construction method, query method and device for graph data

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11074911B2 (en) * 2017-09-05 2021-07-27 First Advantage Corporation Digital assistant

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109033260A (en) * 2018-07-06 2018-12-18 天津大学 Knowledge mapping Interactive Visualization querying method based on RDF
CN109508384A (en) * 2018-10-31 2019-03-22 北京国双科技有限公司 Processing method, device, storage medium and the processor of knowledge mapping
CN110083663A (en) * 2019-04-09 2019-08-02 北京中科智营科技发展有限公司 A kind of Classified optimization method and apparatus that data are shown
WO2020233261A1 (en) * 2019-07-12 2020-11-26 之江实验室 Natural language generation-based knowledge graph understanding assistance system
CN111667336A (en) * 2020-04-28 2020-09-15 中国平安财产保险股份有限公司 Product information configuration and pushing method, device, equipment and storage medium
CN112463989A (en) * 2020-12-11 2021-03-09 交控科技股份有限公司 Knowledge graph-based information acquisition method and system
CN113010612A (en) * 2021-03-02 2021-06-22 中国工商银行股份有限公司 Visual construction method, query method and device for graph data

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于企业知识图谱构建的可视化研究;林莉等;青岛大学学报(自然科学版);第32卷(第1期);55-60 *

Also Published As

Publication number Publication date
CN113553443A (en) 2021-10-26

Similar Documents

Publication Publication Date Title
KR102185864B1 (en) Server-side rendering method and system of native content for presentation
CN109725901B (en) Front-end code development method, device, equipment and computer storage medium
CN106020595B (en) Message reply method and device
CN109471900B (en) Interaction method and system for chart data custom action data
KR102233867B1 (en) Extracting similar group elements
CN108279882B (en) Framework generation method, device, equipment and computer readable medium
CN103475744A (en) Resource downloading method, device and system on basis of Web application
CN111581208A (en) Data visualization display method and device
US20210192004A1 (en) Method and apparatus for processing webpage, device, and storage mediem
US10235191B2 (en) Application specific configurable graphical user interface
CN108495174A (en) A kind of H5 pages effect generates the method and system of video file
CN109783097B (en) Implementation method for drawing web frequency graph plug-in
US20180276189A1 (en) Timeline Creation of Electronic Document Creation States
CN113553443B (en) Relation map generation method and system for recording knowledge map migration path
CN114730316A (en) Computerized system and method for electronically generating dynamic visual hierarchical representations of electronic information
CN111767492A (en) Picture loading method and device, computer equipment and storage medium
CN110740153B (en) Monitoring data acquisition method, system and device
CN114780752A (en) Method, system, equipment and storage medium for establishing federal knowledge graph
CN113923250B (en) Method, device and system for assisting network service arrangement
CN114047914A (en) Interface configuration method and device, electronic equipment and computer readable storage medium
CN113805886A (en) Page creating method, device and system, computer device and storage medium
CN111124393A (en) Editing method and platform of algorithm logic, electronic equipment and storage medium
CN109388791B (en) Dynamic diagram display method and device, computer equipment and storage medium
US9354762B1 (en) Simplifying rules generation for an event-based analysis engine by allowing a user to combine related objects in a rule
CN103942227A (en) Method, device and system for displaying information pushing process in rendering mode

Legal Events

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