Disclosure of Invention
The invention aims to provide a method and a device for transmitting data of a knowledge graph and a GIS map.
In order to achieve the above object, the embodiments of the present invention provide the following technical solutions:
a method for transmitting knowledge map and GIS map data comprises the following steps:
transmitting the geographic position data of a first target node in a knowledge graph application program to a GIS map application program, and displaying the first target node in the GIS map application program according to the geographic position data of the first target node; and/or the presence of a gas in the gas,
and transmitting the geographic position data of the target data point in the GIS map application program to the knowledge graph application program, searching a second target node which is the same as the geographic position data of the target data point in the knowledge graph application program, and displaying the target data point at the position of the second target node in the knowledge graph application program.
According to the method, on one hand, the nodes in the knowledge graph application program are viewed at the corresponding positions in the GIS map application program, so that a user can view the distribution of the nodes with the geographic position data on the GIS map while viewing the knowledge graph; on the other hand, the data points in the GIS map application program are viewed at the corresponding positions in the knowledge map application program, so that a user can view the distribution of the target data points on the knowledge map application program while viewing the GIS map application program, and the knowledge map nodes and the GIS map are connected together.
The step of transferring the geographic location data of the first target node in the knowledge-graph application to the GIS map application comprises:
capturing a response of a user input device in the knowledge-graph application node presentation interface, and acquiring a unique identifier of the first target node in a response event;
according to the unique identifier of the first target node, searching a system memory for storing original data of all nodes of the node display interface of the knowledge graph application program so as to obtain the original data comprising the unique identifier in the system memory, and storing the obtained original data on an address block in the system memory separately;
and after capturing the moving operation of the user, transmitting the geographic position data in the original data on the address block to the GIS map application program.
According to the method, the original data of the first target node is obtained and stored independently according to the unique identification of the first target node of the node display interface of the knowledge graph application program selected by a user, and the geographical position data included in the independently stored original data is transmitted to the GIS map application program, so that the geographical position data of the first target node in the knowledge graph application program is transmitted to the GIS map application program.
Capturing a response of a user input device in the knowledgegraph application node presentation interface, the step of obtaining a unique identification of the first target node in a response event comprising:
capturing a search keyword input by a user in the node display interface of the knowledge graph application program, and transmitting the search keyword to a remote server;
the knowledge map application program acquires result data returned by the remote server from a data packet response body of the current network communication and stores the result data in a system memory;
performing visual node drawing and displaying according to the result data;
and after capturing the operation of selecting the first target node by the user, obtaining the unique identification of the first target node from the original data of the first target node.
The step of capturing the operation of selecting the first target node by the user comprises the following steps:
capturing the operation of selecting a first target node by a user if capturing that the user inputs a Keycode code 3 at a certain node position in a node display interface of the knowledge graph application program through user input equipment;
or capturing the operation that the user selects at least two first target nodes if capturing that the user continuously inputs the Keycode code 16 through the user input equipment and inputting the Keycode 3 at least two node positions in the node display interface of the knowledge graph application program;
alternatively, if the user is captured to input the KeyCode codes 17 and 65 simultaneously through the user input device, an operation that the user selects all the nodes as the first target node is captured.
The step of capturing the user's movement operation includes: if capturing that the user passes through the user input device, continuously inputting the KeyCode codes 16 and 65, and releasing the mouse after the mouse cursor moves, capturing the moving operation of the user.
According to the scheme, when the user operates, only the target node needs to be selected and then dragged, the operation is very simple and convenient, and the user experience is good.
The step of transferring the geo-location data for a target data point in the GIS map application into the knowledge-graph application comprises:
capturing the response of user input equipment in the GIS map application program display interface, and acquiring the unique identifier of the target data point in a response event;
searching a system memory for storing original data of all data points of the GIS map application program display interface according to the unique identifier of the target data point so as to obtain the original data including the unique identifier in the system memory, and storing the obtained original data on an address block in the system memory separately;
and after capturing the moving operation of the user, transmitting the geographic position data in the original data on the address block to the knowledge graph application program.
On the other hand, the embodiment of the invention also provides a device for transmitting the knowledge map and the GIS map data, which comprises the following components:
the first data transmission module is used for transmitting the geographic position data of the first target node in the knowledge graph application program to the GIS map application program;
the first display module is used for displaying the first target node in the GIS map application program according to the geographic position data of the first target node; and/or, further comprising:
a second data transfer module for transferring the geographic location data of the target data point in the GIS map application to the knowledge-graph application;
a second display module, configured to search for a second target node in the knowledgegraph application that is the same as the geographic location data of the target data point, and display the target data point at a location of the second target node in the knowledgegraph application.
According to the device, the nodes in the knowledge graph application program can be viewed at the corresponding positions in the GIS map application program, so that a user can view the distribution of the nodes with the geographic position data on the GIS map while viewing the knowledge graph, and the nodes of the knowledge graph and the GIS map are connected together. The data points in the GIS map application program can be viewed at the corresponding positions in the knowledge map application program, so that a user can view the distribution of the target data points on the knowledge map application program while viewing the GIS map application program.
The first data transfer module includes:
the identification acquisition submodule is used for capturing the response of user input equipment in the node display interface of the knowledge graph application program and acquiring the unique identification of the first target node in a response event;
the original data storage submodule is used for searching a system memory for storing original data of all nodes of the node display interface of the knowledge graph application program according to the unique identifier of the first target node so as to obtain the original data comprising the unique identifier in the system memory, and the obtained original data is separately stored on an address block in the system memory;
and the geographic position data transmission submodule is used for transmitting the geographic position data in the original data on the address block to the GIS map application program after capturing the moving operation of the user.
In the device, according to the unique identification of the first target node of the node display interface of the knowledge graph application program selected by the user, the original data of the first target node is obtained and stored independently, and the geographical position data included in the independently stored original data is transmitted to the GIS map application program, so that the geographical position data of the first target node in the knowledge graph application program is transmitted to the GIS map application program.
The identifier obtaining sub-module is specifically configured to: capturing a search keyword input by a user in the node display interface of the knowledge graph application program, and transmitting the search keyword to a remote server; the knowledge map application program acquires result data returned by the remote server from a data packet response body of the current network communication and stores the result data in a system memory; performing visual node drawing and displaying according to the result data; and after capturing the operation of selecting the first target node by the user, obtaining the unique identification of the first target node from the original data of the first target node.
In still another aspect, the present invention also provides a computer-readable storage medium including computer-readable instructions, which, when executed, cause a processor to perform the operations of the method described in the present invention.
In another aspect, an embodiment of the present invention also provides an electronic device, including: a memory storing program instructions; and the processor is connected with the memory and executes the program instructions in the memory to realize the steps of the method in the embodiment of the invention.
According to the geographic position data included by the nodes in the knowledge graph application program, the nodes in the knowledge graph application program are displayed at the corresponding positions in the GIS map application program. Therefore, the technical scheme provided by the invention realizes that the nodes in the knowledge graph application program are checked at the corresponding positions in the GIS map application program, so that a user can see the distribution of the nodes with the geographic position data on the GIS map while checking the knowledge graph, and the nodes of the knowledge graph and the GIS map are connected together. Associating knowledge graph nodes with GIS maps is a market need, as is trading knowledge graphs: the user needs to know the position of the transaction while acquiring the association relationship of the transaction in the transaction knowledge graph, and the distribution situation of the transaction in each province city is sparse and dense, so that the user can analyze the transaction conveniently. And after the knowledge graph nodes are connected with the GIS map, the knowledge graph nodes can be connected with a time axis, so that a user can visually analyze data of the knowledge graph nodes in three dimensions of incidence relation, time and space.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart of a method for transferring data between a knowledge graph and a GIS map provided in the embodiment, where steps are not sequentially executed except for a definite logical relationship. Fig. 2 is a schematic diagram of an application of the knowledge graph and GIS map data transmission method, in which a left frame represents a knowledge graph application program, and a right frame represents a GIS map application program. Specifically, referring to fig. 1 and fig. 2 in combination, the method for transferring the knowledge graph and the GIS map data provided in the present embodiment includes the following steps:
and S10, transmitting the geographic position data of the first target node in the knowledge graph application program to the GIS map application program.
The first target node is a node which is expected to be displayed in the GIS map application program by the user and includes geographic position data, and the user can select the first target node through direct operation (such as mouse click, key plus mouse click and the like) of the node displayed in the knowledge graph application program, as shown by five black solid dots in the left box of fig. 2. Obviously, the first target node may have one, two or more, and is not limited herein. It should be noted that this direct operation mode can be distinguished from the operation of the node in the knowledge-graph application. The geographic position data, namely geopoint data, is generally longitude and latitude data which can be identified by a GIS map application program, and is different from the position information of a node based on a current knowledge graph application program display interface.
S20, displaying the first target node in the GIS map application program according to the geographic position data of the first target node.
Due to the acquisition of the geographic location data of the first target node, the GIS map application may present the first target node at the corresponding location of the GIS map application, as shown by the five locations in the right box in fig. 2.
Through the technical scheme, the corresponding positions of the nodes in the knowledge graph application program in the GIS map application program are displayed according to the geographic position data included by the nodes in the knowledge graph application program. Therefore, the technical scheme provided by the invention realizes that the nodes in the knowledge graph application program are checked at the corresponding positions in the GIS map application program, so that a user can see the distribution of the nodes with the geographic position data on the GIS map while checking the knowledge graph, and the nodes of the knowledge graph and the GIS map are connected together. Associating knowledge graph nodes with GIS maps is a market need, as is trading knowledge graphs: the user needs to acquire the association relationship of the transaction in the transaction knowledge graph and simultaneously wants to know the position of the transaction, and the distribution situation of the transaction in each province city is sparse and dense, so that the user can analyze the transaction conveniently. And after the knowledge graph nodes are connected with the GIS map, the knowledge graph nodes can be connected with a time axis, so that a user can visually analyze data of the knowledge graph nodes in three dimensions of incidence relation, time and space.
As shown in fig. 3, in a more optimized scheme, the method for transferring the knowledge-graph and the GIS map data further includes the following steps:
s30, transmitting the geographic position data of the target data point in the GIS map application program to the knowledge map application program.
The target data point is a data point that the user wants to be displayed in the knowledge graph application program, and the user can select the target data point through directly operating (such as mouse clicking, button plus mouse clicking and the like) the data point displayed in the GIS map application program, as shown by five position icons in a left frame in fig. 4. Fig. 4 is an application schematic diagram of a knowledge graph and GIS map data transmission method, in which a left frame represents a GIS map application program and a right frame represents the knowledge graph application program. Obviously, there may be one, two or more target data points, and the invention is not limited thereto. It should be noted that the direct operation mode can be distinguished from the operation of the data point in the GIS map application.
S40, searching a second target node in the knowledge-graph application program, wherein the geographic position data of the second target node is the same as that of the target data point, and displaying the target data point at the position of the second target node in the knowledge-graph application program.
Through step S40, according to the geographic location data, the target data point in the GIS map application is mapped to a second target node in the knowledge-graph application, so that the target data point can be displayed at the position of the second target node in the knowledge-graph application, as shown by the positions of the five black solid dots in the right box in fig. 4. Because the knowledge-graph application program displays the nodes according to the position information of the nodes based on the current knowledge-graph application program display interface, the nodes in the knowledge-graph application program do not necessarily all include geographical position data. Thus, the target data point needs to have a second target node that is the same as its geo-location data to present the target data point at the corresponding location in the knowledge-graph application. Through the technical scheme, the corresponding position (the position of the second target node) of the target data point in the GIS map application program in the knowledge graph application program is displayed according to the fact that the geographic position data included by the target data point in the GIS map application program is the same as the second target node in the knowledge graph application program. Therefore, according to the technical scheme provided by the invention, the data points in the GIS map application program can be viewed at the corresponding positions in the knowledge map application program, so that a user can view the distribution of target data points on the knowledge map application program while viewing the GIS map application program, and the knowledge map nodes and the GIS map are connected together.
It is easy to understand that the steps S10 and S20 have logical association, and may form a group of independent methods, so that the nodes in the knowledge graph application program can be viewed at corresponding positions in the GIS map application program; the steps S30 and S40 have logical relevance, so that a group of independent methods can be formed, and data points in the GIS map application program can be viewed at corresponding positions in the knowledge map application program. Steps S10 and S30 have no logical association and no chronological score.
In a further elaboration, step S10 comprises the following sub-steps:
s11, capturing the response of the user input device in the node display interface of the knowledge graph application program, and acquiring the unique identification of the first target node in the response event.
After entering a node display interface of the knowledge graph application program and defining nodes to be displayed, a user can enter search keywords in a search function at the upper right corner of the knowledge graph application program. According to the search keywords typed in by the user, the knowledge-graph application program transmits the search keywords provided by the user to a remote server of the knowledge-graph application program by using an XMLHttrequest communication technology or a Socket mode, and waits for the remote server to respond to obtain a query result. Xmlhttrequest communication technology is preferred here to reduce the computational burden on the remote server, which in turn reduces cost. After the response of the remote server is finished, the knowledge graph application program obtains result data returned by the remote server in a data packet response body of the current network communication. And the knowledge graph application program carries out visual node drawing according to the result data, and draws basic information of display ICONs ICON, colors, shapes and the like of the nodes to a node display interface of the knowledge graph application program. Meanwhile, the result data returned by the remote server is temporarily stored in the system memory by the knowledge map application program, so that the data reading and writing efficiency is higher, and the data sharing and use among the programs are more convenient. The result data includes raw data for all nodes on the knowledge-graph application node presentation interface. The raw data of a node includes the unique identifier of the node, the geographic location data, the location data of the node based on the current knowledge graph application program display interface, the edge data, and the like. It should be noted that, for some nodes, they may not include geographical location data. Nodes that do not include geographic location data cannot be exposed in a GIS map application. When a user selects any node of the display interface of the knowledge-graph application (i.e. the first target node) through the user input device, the knowledge-graph application captures the user's operation and obtains the unique identifier of the first target node from the original data of the first target node.
The first target node may also be one, two or more than two. There are several embodiments for capturing the user selection of the first target node, and for example, several simple embodiments will be listed below.
In a first mode, when a user selects only one first target node, clicking a right mouse button by the user to select one node in the node display interface of the knowledge graph application program is regarded as the selection operation of the user. That is, capturing the operation that the user inputs the KeyCode 3 at a certain node position in the node display interface of the knowledge-graph application program through the user input device, namely capturing the operation that the user selects a first target node.
At this time, correspondingly, in step S13, the geographic location data of the node is transferred to the GIS map application.
In a second mode, when the user selects at least two first target nodes, the user long presses a Shift key and a right mouse button to select at least two nodes in the node display interface of the knowledge graph application program, and the selected nodes are regarded as selection operation of the user. That is, capturing that the user continuously inputs the KeyCode code 16 through the user input device, and inputting the KeyCode 3 at least two node positions in the node display interface of the knowledge-graph application program, i.e. capturing the operation of selecting at least two first target nodes by the user.
At this time, correspondingly, step S13 is to transmit the geographic location data of the at least two nodes to the GIS map application.
In a third mode, when the user selects all the nodes in the node display interface of the knowledge graph application program as first target nodes, pressing the Ctrl button and the a button by the user at the same time is regarded as selection operation of the user. That is, capturing that the user simultaneously inputs the KeyCode codes 17 and 65 through the user input device is an operation of capturing that the user selects all the nodes as the first target node.
Similarly, correspondingly, the sub-step S13 is to transmit the geographic location data of all the nodes to the GIS map application.
S12, according to the unique identifier of the first target node, searching a system memory for storing original data of all nodes of the node display interface of the knowledge graph application program to obtain the original data including the unique identifier in the system memory, and storing the obtained original data on an address block in the system memory separately.
Through step S12, the original data of all the first target nodes (one or two or more first target nodes may be used) selected by the user are separately stored, so that the data can be conveniently transferred to the GIS map application, and the data transfer efficiency is improved.
In this step, as another implementation manner, the original data of the first target node may be marked and then stored separately. The original data is marked, so that the change difference of the data can be better defined, and the marked value is compared with the value cached in the system memory according to the difference, so that the user can know that the data nodes are selected on the software interface. The marking mode can be that the UID is used for traversing the cache data list, the UID field is compared with the data in the cache list through the currently acquired UID, and if the UID is identical with the data in the cache list, the object in the traversed cache list is taken out and is independently stored in an address block in the system memory.
And S13, after capturing the moving operation of the user, transmitting the geographic position data in the original data on the address block to the GIS map application program.
In a more optimized solution, not only the geographic position data in the raw data on the address block is passed into the GIS map application, but also the entire raw data on the address block is passed into the GIS map application. The whole original data of each node is transmitted to the GIS map application program, so that when a user wants to check the details of the data of each node, the user can directly click the data point on the GIS map to pop up the details for checking. According to the technical scheme, the original data of the first target node is obtained and stored independently according to the unique identification of the first target node of the node display interface of the knowledge graph application program selected by the user, and the geographical position data included in the independently stored original data is transmitted to the GIS map application program, so that the geographical position data of the first target node in the knowledge graph application program is transmitted to the GIS map application program.
The moving operation of the user refers to an operation of dragging the first target node in the knowledge graph to the display interface of the GIS map application program by the user. As an example of only one possible implementation, in a specific implementation, a user long-presses a Shift button and a left mouse button, and drags the first target node out of the knowledge graph application program as a moving operation of the user. Dragging the first target node out of the knowledge graph application program, namely dragging a mouse cursor out of the knowledge graph application program after the target node is selected. That is, capturing the behavior that the user continuously inputs the KeyCode codes 16 and 65 through the user input device, and the mouse cursor is released after moving, that is, capturing the moving operation of the user.
By the technical scheme, the first target node in the display interface of one, at least two or all knowledge graph application program nodes required to be displayed in the GIS map application program is selected, and the selection mode is different from the operation mode of the selection node in the knowledge graph application program, so that the selection node enters the GIS map application program to be displayed and does not interfere with the operation of the selection node in the knowledge graph application program, and the GIS map application program is convenient for a user to use. And the node data in the knowledge graph application program is transmitted to the GIS map application program in the mode of direct selection and dragging, and the data do not need to be recorded again in the GIS map application program, so that the method is convenient and quick, and the good experience of a user is enhanced.
In this embodiment, a process of transmitting the geographic position data of the first target node in the knowledge graph application program to the GIS map application program is described in detail, and a process of transmitting the geographic position data of the target data point in the GIS map application program to the knowledge graph application program is similar to that of the above process, that is, the process substantially includes the steps of: capturing the response of user input equipment in the GIS map application program display interface, and acquiring the unique identifier of the target data point in a response event; searching a system memory for storing original data of all data points of the GIS map application program display interface according to the unique identifier of the target data point so as to obtain the original data including the unique identifier in the system memory, and storing the obtained original data on an address block in the system memory separately; and after capturing the moving operation of the user, transmitting the geographic position data in the original data on the address block to the knowledge graph application program. And for the detailed processing, reference may be made to the aforementioned corresponding description of passing the geographic location data of the first target node in the knowledge-graph application to the GIS map application.
In the invention, the nodes with geopoint types can check the association relation of the nodes in the knowledge graph, and can also be directly switched to the map to check the geographical position distribution condition of the nodes, and under the condition that the data volume of the knowledge graph is large, for example, a user can transmit the node data to the map by directly selecting and dragging, the user is simple and convenient to operate, and in the dragging process, for example, whether the node is dragged at the position of the map or the node is dragged to the map by pressing a Ctrl key for a long time or not is distinguished, so that the two operations are not interfered with each other. The knowledge graph and the map are mutually switched on the same page, and when the two data are switched, the two data are stored, and the nodes of the knowledge graph and the map can be mutually transmitted. Overall, the method of the invention is convenient, simple and fast in the interactive layer. And all information of the selected nodes and the shared nodes is accurately transmitted on the data level, so that the mutual transmission of the nodes on the knowledge map and the GIS map is realized.
Based on the inventive concept, the embodiment also provides a device for transmitting the knowledge map and the GIS map data. Specifically, referring to fig. 5, the apparatus for transferring knowledge map and GIS map data includes:
the first data transmission module is used for transmitting the geographic position data of the first target node in the knowledge graph application program to the GIS map application program;
and the first display module is used for displaying the first target node in the GIS map application program according to the geographic position data of the first target node.
Through the technical scheme, the corresponding positions of the nodes in the knowledge graph application program in the GIS map application program are displayed according to the geographic position data included by the nodes in the knowledge graph application program. Therefore, the technical scheme provided by the invention realizes that the nodes in the knowledge graph application program are checked at the corresponding positions in the GIS map application program, so that a user can see the distribution of the nodes with the geographic position data on the GIS map while checking the knowledge graph, and the nodes of the knowledge graph and the GIS map are connected together.
In a more optimized solution, as shown in fig. 6, the apparatus for transferring knowledge-map and GIS map data further includes:
a second data transfer module for transferring the geographic location data of the target data point in the GIS map application to the knowledge-graph application;
a second display module, configured to search for a second target node in the knowledgegraph application that is the same as the geographic location data of the target data point, and display the target data point at a location of the second target node in the knowledgegraph application.
Through the technical scheme, the corresponding position (the position of the second target node) of the target data point in the GIS map application program in the knowledge graph application program is displayed according to the fact that the geographic position data included by the target data point in the GIS map application program is the same as the second target node in the knowledge graph application program. Therefore, according to the technical scheme provided by the invention, the data points in the GIS map application program can be viewed at the corresponding positions in the knowledge map application program, so that a user can view the distribution of target data points on the knowledge map application program while viewing the GIS map application program, and the knowledge map nodes and the GIS map are connected together. Associating knowledge graph nodes with GIS maps is a market need, as is trading knowledge graphs: the user needs to acquire the association relationship of the transaction in the transaction knowledge graph and simultaneously wants to know the position of the transaction, and the distribution situation of the transaction in each province city is sparse and dense, so that the user can analyze the transaction conveniently. And after the knowledge graph nodes are connected with the GIS map, the knowledge graph nodes can be connected with a time axis, so that a user can visually analyze data of the knowledge graph nodes in three dimensions of incidence relation, time and space.
Similarly, the first data transfer module and the first display module may constitute a single device; the second data transmission module and the second display module can form an independent device; the first data transfer module, the first display module, the second data transfer module and the second display module may be combined to form one device.
In a further refinement, the first data transfer module comprises:
the identification acquisition submodule is used for capturing the response of user input equipment in the node display interface of the knowledge graph application program and acquiring the unique identification of the first target node in a response event;
the original data storage submodule is used for searching a system memory for storing original data of all nodes of the node display interface of the knowledge graph application program according to the unique identifier of the first target node so as to obtain the original data comprising the unique identifier in the system memory, and the obtained original data is separately stored on an address block in the system memory;
and the geographic position data transmission submodule is used for transmitting the geographic position data in the original data on the address block to the GIS map application program after capturing the moving operation of the user.
In a more optimized solution, the geographic location data delivery sub-module not only delivers the geographic location data in the raw data on the address block into the GIS map application, but instead delivers the entire raw data on the address block into the GIS map application. The whole original data of each node is transmitted to the GIS map application program, so that when a user wants to check the details of the data of each node, the user can directly click the data point on the GIS map to pop up the details for checking.
According to the technical scheme, the original data of the first target node is obtained and stored independently according to the unique identification of the first target node of the node display interface of the knowledge graph application program selected by the user, and the geographical position data included in the independently stored original data is transmitted to the GIS map application program, so that the geographical position data of the first target node in the knowledge graph application program is transmitted to the GIS map application program.
In specific implementation, the identifier obtaining sub-module is specifically configured to: capturing a search keyword input by a user in the node display interface of the knowledge graph application program, and transmitting the search keyword to a remote server; the knowledge map application program acquires result data returned by the remote server from a data packet response body of the current network communication and stores the result data in a system memory; performing visual node drawing and displaying according to the result data; and after capturing the operation of selecting the first target node by the user, obtaining the unique identification of the first target node from the original data of the first target node.
When the user only selects one first target node, if the identification acquisition sub-module captures that the user inputs the Keycode 3 at a certain node position in the node display interface of the knowledge graph application program through the user input equipment, the operation that the user selects the first target node is captured. At this time, the geographic position data transmission submodule transmits the geographic position data of the node to the GIS map application program.
When the user selects at least two first target nodes, if the identification acquisition sub-module captures that the user continuously inputs the Keycode code 16 through the user input device and inputs the Keycode code 3 at least two node positions in the node display interface of the knowledge graph application program, the operation that the user selects at least two first target nodes is captured. At this time, the geographic location data transmission submodule transmits the geographic location data of the at least two nodes to the GIS map application program.
When a user selects all nodes in the node display interface of the knowledge graph application program as first target nodes, if the identification acquisition submodule captures that the user passes through the user input equipment and simultaneously inputs KeyCode codes 17 and 65, the operation that the user selects all the nodes as the first target nodes is captured. At this time, the geographic position data transmission submodule transmits the geographic position data of all the nodes to the GIS map application program.
By the technical scheme, the first target node in the display interface of one, at least two or all knowledge graph application program nodes required to be displayed in the GIS map application program is selected, and the selection mode is different from the operation mode of the selection node in the knowledge graph application program, so that the display of the selection node in the GIS map application program and the operation of the selection node in the knowledge graph application program are not interfered with each other, and the GIS map application program is convenient for users to use. And the node data in the knowledge graph application program is transmitted to the GIS map application program in the mode of direct selection, addition and dragging without inputting the data again in the GIS map application program, so that the method is convenient and quick.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be explained in further detail here.
As shown in fig. 7, the present embodiment also provides an electronic device, which may include a processor 51 and a memory 52, wherein the memory 52 is coupled to the processor 51. It is noted that this diagram is exemplary and that other types of structures may be used in addition to or in place of this structure to implement data extraction, report generation, communication, or other functionality.
As shown in fig. 7, the electronic device may further include: an input unit 53, a display unit 54, and a power supply 55. It is to be noted that the electronic device does not necessarily have to comprise all the components shown in fig. 7. Furthermore, the electronic device may also comprise components not shown in fig. 7, reference being made to the prior art.
The processor 51, also sometimes referred to as a controller or operational control, may comprise a microprocessor or other processor device and/or logic device, the processor 51 receiving input and controlling operation of the various components of the electronic device.
The memory 52 may be one or more of a buffer, a flash memory, a hard drive, a removable medium, a volatile memory, a non-volatile memory, or other suitable devices, and may store the configuration information of the processor 51, the instructions executed by the processor 51, the recorded table data, and other information. The processor 51 may execute a program stored in the memory 52 to realize information storage or processing, or the like. In one embodiment, a buffer memory, i.e., a buffer, is also included in the memory 52 to store the intermediate information.
Embodiments of the present invention further provide a computer readable instruction, where when the instruction is executed in an electronic device, the program causes the electronic device to execute the operation steps included in the method of the present invention.
Embodiments of the present invention further provide a storage medium storing computer-readable instructions, where the computer-readable instructions cause an electronic device to execute the operation steps included in the method of the present invention.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Those of ordinary skill in the art will appreciate that the various illustrative modules described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the several embodiments provided in the present application, it should be understood that the disclosed system may be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the modules is merely a logical division, and in actual implementation, there may be other divisions, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted, or not implemented.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention.