A construction method, device and system for map knowledge services
By searching for data groups related to information keywords in multiple websites and generating knowledge graphs, the problem of insufficient inventory of geographic information data is solved, and the adequacy and efficiency of map knowledge services are improved.
Patent Information
- Application Number
- CN202210243170.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-11
- Publication Date
- 2025-08-01
- Estimated Expiration
- 2042-03-11
AI Technical Summary
The existing technology does not mine enough knowledge stock in geographic information data, resulting in insufficient geographical knowledge services.
By obtaining preset information keywords, searching for relevant data groups in multiple websites, generating knowledge graphs, and establishing map knowledge services on interactive display maps, including the association of nodes and edges.
Improve the adequacy and efficiency of mining geographic information data, and eliminate invalid content to improve data mining effect.
Smart Images

Figure CN114925208B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of constructing map knowledge services, and relates to a method, device and system for constructing map knowledge services. Background Art
[0002] Geographic information data has two major connotations: spatial carrier and knowledge stock. With the development of technology and technological progress, industry practitioners have obtained more and more refined geographic information data, which has also made the current phenomenon of "huge data, information explosion, and difficult to obtain knowledge" more prominent. Therefore, it is imperative to move from geographic information services to geographic knowledge services, which is also an important task for the transformation and upgrading of surveying and mapping technology.
[0003] In the prior art, usually only the role of the spatial carrier is concerned, and various geographic data and geographic information services have been developed and provided for this purpose.
[0004] However, the prior art still has the following defects: the prior art has far from sufficiently mined the knowledge stock in geographic information data, and generally there are few current spatial geographic knowledge services.
[0005] Therefore, there is a need for a method, device and system for constructing map knowledge services to overcome the above-mentioned defects existing in the prior art. Summary of the Invention
[0006] Aiming at the existing above-mentioned technical problems, the purpose of the present invention is to provide a method, device and system for constructing map knowledge services to improve the sufficiency of mining geographic information data.
[0007] The present invention provides a method for constructing map knowledge services. The construction method includes: obtaining preset information keywords, and searching in a preset plurality of websites to obtain a first information data group related to the information keywords; each first information data group corresponds to a number of land type elements; according to a preset land type database, performing statistical analysis on the first information data group, and generating a knowledge graph according to the statistical analysis result; the knowledge graph includes nodes and edges; wherein, each node corresponds to a land type element, and the edge represents that there is a connection between the land type elements corresponding to the two nodes; according to the nodes and edges, associating the first information data group, the land type elements and a preset interactive display map, so as to establish map knowledge services.
[0008] In one embodiment, searching for and obtaining a first information data group related to the information keyword among a preset plurality of websites specifically includes: searching for the information keyword among the preset plurality of websites to obtain a plurality of first web pages; respectively screening the plurality of first web pages to extract the web page main content of each first web page, respectively extracting the land type elements of each web page main content, and correspondingly using the web page main content as the first information data group.
[0009] In one embodiment, according to a preset land type database, statistically analyzing the first information data group and generating a knowledge graph according to the statistical analysis result specifically includes: obtaining the land type elements corresponding to each first information data group, and comparing and statistically analyzing the land type elements with the preset land type database to obtain a statistical analysis result; the statistical analysis result includes a same element extraction statistical result and a multi-element extraction statistical result; using each land type element as a node, and connecting the corresponding land type elements with a side line according to the same element extraction statistical result and the multi-element extraction statistical result to generate a knowledge graph.
[0010] In one embodiment, associating the first information data group, the land type element, and a preset interactive display map according to the node and the side line to establish a map knowledge service specifically includes: on the preset interactive display map, marking the land type element with a first geometric element according to the node, and marking the connection between the first geometric elements with a second geometric element according to the side line, and correspondingly mounting the first information data group on the land type element marked by the first geometric element.
[0011] In one embodiment, the construction method further includes: receiving an interactive instruction sent by a user; the interactive instruction includes a third geometric element that the user expects to access; according to the third geometric element, displaying the corresponding first information data group to the user.
[0012] The present invention also provides a construction device for a map knowledge service. The construction device includes a data acquisition unit, a graph generation unit, and a service establishment unit. Among them, the data acquisition unit is used to acquire a preset information keyword and search for and obtain a first information data group related to the information keyword among a preset plurality of websites; each first information data group corresponds to a plurality of land type elements; the graph generation unit is used to statistically analyze the first information data group according to a preset land type database and generate a knowledge graph according to the statistical analysis result; the knowledge graph includes nodes and side lines; among them, each node corresponds to a land type element, and the side line represents that there is a connection between the land type elements corresponding to the two nodes; the service establishment unit is used to associate the first information data group, the land type element, and a preset interactive display map according to the node and the side line to establish a map knowledge service.
[0013] In one embodiment, the map generation unit is further configured to: obtain the land type elements corresponding to each first information data group, and compare and count the land type elements with a preset land type database to obtain a statistical analysis result; the statistical analysis result includes a same element extraction statistical result and a multi-element extraction statistical result; use each land type element as a node, and connect the corresponding land type elements with side lines according to the same element extraction statistical result and the multi-element extraction statistical result, so as to generate a knowledge map.
[0014] In one embodiment, the construction device further includes an interactive display unit, and the interactive display unit is configured to: receive an interactive instruction sent by a user; the interactive instruction includes a third geometric element that the user expects to access; according to the third geometric element, display the corresponding first information data group to the user.
[0015] The present invention further provides a construction system for map knowledge services. The construction system includes a construction module and a data storage module. The construction module is communicatively connected to the data storage module. The data storage module is used to store all data, and the construction module is used to execute the construction method of the map knowledge service as described above according to all the data stored in the data storage module.
[0016] In one embodiment, the construction system further includes a user interaction module, and the user interaction module includes a touch / non-touch display screen, an input keyboard, a microphone, an indicator light or a speaker.
[0017] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0018] The present invention provides a construction method, device and system for map knowledge services. By searching for first information data groups related to preset information keywords in a preset plurality of websites, and generating a knowledge map according to the first information data groups, and further establishing a map knowledge service according to the knowledge map, the construction method, device and system improve the sufficiency of mining geographical information data.
[0019] Furthermore, the construction method, device and system for map knowledge services provided by the present invention also screen and extract the web page main content in the first web pages by removing invalid content when searching for the information keywords to obtain a plurality of first web pages, thereby improving the efficiency of mining geographical information data. Brief Description of the Drawings
[0020] The present invention will be further described and illustrated below in conjunction with the drawings of the specification, where:
[0021] Figure 1The flowchart of an embodiment of a method for constructing a map knowledge service according to the present invention is shown;
[0022] Figure 2 The structural diagram of an embodiment of a device for constructing a map knowledge service according to the present invention is shown;
[0023] Figure 3 The structural diagram of an embodiment of a system for constructing a map knowledge service according to the present invention is shown. Detailed implementation manners
[0024] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without making creative efforts belong to the scope of protection of the present invention. Specific Embodiment 1
[0026] The embodiments of the present invention first describe a method for constructing a map knowledge service. Figure 1 The flowchart of an embodiment of a method for constructing a map knowledge service according to the present invention is shown. As Figure 1 shown, the method includes the following steps:
[0027] S1: Obtain preset information keywords, and search in a preset plurality of websites to obtain a first information data group related to the information keywords.
[0028] Each first information data group corresponds to several land type elements. In order to provide content support for the subsequent establishment of map knowledge services, the embodiments of the present invention first need to search all content related to the information keywords set by the user in a plurality of pre-selected websites. In actual operation, it is often necessary to search and save all relevant web pages in a plurality of websites. Since only specific websites need to be retrieved, it is not necessary to traverse the entire network. Based on this situation, the web crawler used in this module is the Fish-Search algorithm in the network. The characteristic of this algorithm is to judge the relevance of web pages by simply matching keywords (the topic name in the present invention), and only search for web pages related to the topic (described as "first web pages" in this article), and will not access irrelevant pages.
[0029] On this basis, in order to further improve the mining efficiency of information data, after searching for relevant web pages, the main content of the web pages is extracted from the retrieved web pages, and irrelevant information such as website logos, advertisements, internal website links, and friendship links is removed. The extracted main content of the web pages is saved in the system to form a content knowledge base on the theme. In practical applications, the method of extracting the main content of a web page is to remove the title nodes, script codes, and style codes in the web page, and then recursively calculate the ratio of the number of text characters to the number of link characters in each element of the web page. If the ratio of the number of text characters to the number of link characters in a web page node is greater than the threshold set in the system configuration module, the content in this element is considered to be the main content of the web page.
[0030] In one embodiment, searching for a first information data group related to the information keyword in a preset plurality of websites specifically includes: searching for the information keyword in the preset plurality of websites to obtain a plurality of first web pages; respectively screening the plurality of first web pages to extract the main content of each first web page, respectively extracting the land type elements of each main content of the web page, and correspondingly taking the main content of the web page as the first information data group.
[0031] Among them, the first web page is all web pages related to the information keyword.
[0032] S2: According to a preset land type database, statistically analyze the first information data group, and generate a knowledge graph according to the statistical analysis result.
[0033] The knowledge graph includes nodes and edges; among them, each node corresponds to a land type element, and the edge represents that there is a connection between the land type elements corresponding to the two nodes.
[0034] After obtaining the first information data group, in order to have a corresponding association framework for subsequent map knowledge services, first, the preset land type database should be read to establish a hash table of land type elements. The key value of each item in the hash table is the land type name in the land type database, and the value is the corresponding land type attribute. Subsequently, traverse each main content of the web page in the first information data group, search for land type elements by comparing the characters of the main content of the web page with the hash table, and at the same time count the land type elements that appear simultaneously in the same main content of the web page; finally, automatically generate a graph structure according to the found land type elements and the situation where different land type elements appear simultaneously in the same main content of the web page.
[0035] In practical applications, first analyze and statistically obtain the first information data set. Specifically, obtain all the names of land type elements (such as administrative region names, names of mountains, rivers, lakes, etc.) in the preset land type database, as well as the longitude and latitude coordinate values of the land type elements. Subsequently, traverse each web page body in the knowledge content library, and search for the names of land type elements that appear in the main body content (during the search process, record the number of times the land type element appears and the position of each appearance, and at the same time record the situation where any two land type elements appear simultaneously in the same web page body). After the traversal is completed, save the record results into a data table. The data table includes the following fields: ID, land type element, longitude, latitude, number of appearances, appearance position, linked land type, linked total, etc. Among them, the ID field is an integer unique value used to represent the land type element; the "land type element" field stores the name of the land type element; the "longitude" and "latitude" fields store the geographical location where the land type element is located; the "number of appearances" represents the number of times the land type element appears in all web page bodies; the "appearance position" represents the position where the land type element appears. Since a land type element appears multiple times at different positions in all web page bodies, in order to record all the appearance positions of the land type element, the index values of different positions are separated by commas. In the embodiment of the present invention, the index value style is set to "N-m", where 'N' represents the index value of the web page body where the name of the land type element is located, and'm' represents the index value of the first character of the name of the land type element in the current web page body. For example, "4-5419" means that the first character of the land type element is at the 5419th character in the fourth web page body in the knowledge content library; the "linked land type" records the land type elements that appear on the same page as the current land type element, and records the number of times this land type element appears simultaneously with the current land type element on the same page. Since there may be several land type elements that appear on the same page as the current land type element, different land type elements are separated by commas. In the embodiment of the present invention, the format of the linked land type element is set to "I-j", where 'I' represents the ID value of the land type element that appears on the same page as the current land type element, and 'j' represents the number of times this land type element appears with the current land type element in the same web page body; the "linked field total" represents the total number of times the current land type element appears simultaneously with other land type elements in the same web page body. Finally, based on the information keywords, utilize the relationships between various land type elements in the data table, that is, establish a knowledge graph.
[0036] In one embodiment, according to a preset land type database, statistical analysis is performed on the first information data group, and a knowledge graph is generated based on the statistical analysis results, which specifically includes: obtaining the land type elements corresponding to each first information data group, and comparing and counting the land type elements with the preset land type database to obtain the statistical analysis results; the statistical analysis results include the same element extraction statistical results and the multi-element extraction statistical results; using each land type element as a node, and connecting the corresponding land type elements with a side line according to the same element extraction statistical results and the multi-element extraction statistical results, thereby generating a knowledge graph.
[0037] S3: According to the nodes and side lines, associate the first information data group, the land type elements, and a preset interactive display map, thereby establishing a map knowledge service.
[0038] In one embodiment, according to the nodes and side lines, associate the first information data group, the land type elements, and a preset interactive display map, thereby establishing a map knowledge service, which specifically includes: on the preset interactive display map, mark the land type elements with a first geometric element according to the nodes, and mark the connection between the first geometric elements with a second geometric element according to the side lines, and mount the first information data group corresponding to the land type elements marked by the first geometric element.
[0039] In practical applications, obtain the land type elements to be displayed on the map, the connections between the land type elements, and the web page main content associated with the land type elements according to the knowledge graph in the previous step; subsequently, extract the longitude and latitude coordinates of the land type elements from the preset land type database (wherein, the land type elements are represented by the Cesium object "Point" on the map, and the connections between the land type elements are represented by the Cesium object "polyline"); finally, extract the web page main content from the first information data group and mount it on the corresponding land type elements on the map, so that when the user clicks on the geometric element representing the land type element on the map, the web page main body related to the land type element pops up (one or more, displayed in the form of a tab page).
[0040] In one embodiment, the construction method further includes: receiving an interaction instruction sent by the user; the interaction instruction includes a third geometric element that the user expects to access; according to the third geometric element, display the corresponding first information data group to the user.
[0041] Wherein, the third geometric element refers to the set element that the user expects to access among the first geometric element and the second geometric element.
[0042] To further describe this step, taking the map knowledge service built based on the Cesium virtual earth platform as an example for illustration. The Cesium virtual earth platform is an open-source web map engine developed by Analytical Graphics Inc. It can conveniently switch between 2D and 3D maps without changing the data format, and can also load different map images and map terrain services. When the embodiments of the present invention are implemented, on the 2D or 3D map of Cesium, the Cesium object "Point" is used to represent the land use elements, facilitating users to view the positions of the land use elements on the map; the Cesium object "Polyline" is used to represent the association relationships between the land use elements, facilitating users to view whether there are connections between the land use elements. At the same time, this module extracts the corresponding web page bodies of the land use elements from the content knowledge base, enabling users to browse the web page bodies containing the land use elements corresponding to the "Point" object by clicking on the "Point" object on the map.
[0043] The embodiments of the present invention describe a method for constructing a map knowledge service. By searching for a first information data group related to a preset information keyword in a preset plurality of websites, and generating a knowledge graph based on the first information data group, and further establishing a map knowledge service according to the knowledge graph, this construction method improves the sufficiency of mining geographical information data. Specific Embodiment Two
[0045] In addition to the above method, the embodiments of the present invention also describe a device for constructing a map knowledge service. Figure 2 The structure diagram of an embodiment of a device for constructing a map knowledge service according to the present invention is shown.
[0046] As shown in the figure, the construction device includes a data acquisition unit 11, a graph generation unit 12, and a service establishment unit 13.
[0047] Among them, the data acquisition unit 11 is used to acquire a preset information keyword, and search in a preset plurality of websites to acquire a first information data group related to the information keyword. Each first information data group corresponds to a number of land use elements.
[0048] The graph generation unit 12 is used to perform statistical analysis on the first information data group according to a preset land use database, and generate a knowledge graph based on the statistical analysis result. The knowledge graph includes nodes and edges; among them, each node corresponds to a land use element, and the edge represents that there is a connection between the land use elements corresponding to the two nodes respectively.
[0049] In one embodiment, the map generation unit is further configured to: obtain the land type elements corresponding to each first information data group, and compare and count the land type elements with a preset land type database to obtain a statistical analysis result; the statistical analysis result includes a same element extraction statistical result and a multi-element extraction statistical result; use each land type element as a node, and connect the corresponding land type elements with side lines according to the same element extraction statistical result and the multi-element extraction statistical result, so as to generate a knowledge map.
[0050] The service establishment unit 13 is configured to associate the first information data group, the land type elements, and a preset interactive display map according to the nodes and side lines, so as to establish a map knowledge service.
[0051] When it is necessary to construct a map knowledge service, first, the data acquisition unit 11 acquires a preset information keyword, and searches in a plurality of preset websites to acquire a first information data group related to the information keyword; subsequently, the map generation unit 12 performs statistical analysis on the first information data group according to a preset land type database, and generates a knowledge map according to the statistical analysis result; finally, the service establishment unit 13 associates the first information data group, the land type elements, and a preset interactive display map according to the nodes and side lines, so as to establish a map knowledge service.
[0052] In one embodiment, the construction device further includes an interactive display unit, and the interactive display unit is configured to: receive an interactive instruction sent by a user; the interactive instruction includes a third geometric element that the user expects to access; according to the third geometric element, display the corresponding first information data group to the user.
[0053] The embodiment of the present invention describes a construction device for map knowledge service. By searching in a plurality of preset websites for a first information data group related to a preset information keyword, and generating a knowledge map according to the first information data group, and further establishing a map knowledge service according to the knowledge map, the construction device improves the sufficiency of mining geographical information data; further, a construction device for map knowledge service described in the embodiment of the present invention also improves the efficiency of mining geographical information data by removing invalid content to screen and extract the web page main content in the first web pages when searching for the information keyword to obtain a plurality of first web pages. Specific Embodiment Three
[0055] In addition to the above methods and devices, the present invention also describes a construction system for map knowledge service. Figure 3 The structure diagram of an embodiment of a construction system for map knowledge service according to the present invention is shown.
[0056] As Figure 3As shown in the figure, the construction system includes a construction module 1 and a data storage module 2. The construction module 1 is communicatively connected to the data storage module 2. The data storage module 2 is used to store all data, and the construction module 1 is used to execute the construction method of the map knowledge service as described above according to all the data stored in the data storage module 2.
[0057] In one embodiment, the construction system further includes a user interaction module. The user interaction module includes a touch / non-touch display screen, an input keyboard, a microphone, an indicator light or a speaker. The user interaction module is used to: receive an interaction instruction sent by a user; the interaction instruction includes a third geometric element that the user expects to access; and display a corresponding first information data group to the user according to the third geometric element.
[0058] The embodiment of the present invention describes a construction system for map knowledge service. By searching for a first information data group related to a preset information keyword in a preset plurality of websites and generating a knowledge graph according to the first information data group, and further establishing a map knowledge service according to the knowledge graph, the construction system improves the sufficiency of mining geographical information data; further, a construction system for map knowledge service described in the embodiment of the present invention also improves the efficiency of mining geographical information data by removing invalid content to screen and extract the web page main content in the first web pages when searching for the information keyword to obtain a plurality of first web pages.
[0059] The specific embodiments described above further elaborate on the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above description is only specific embodiments of the present invention and is not used to limit the protection scope of the present invention. It is particularly pointed out that for those skilled in the art, any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for constructing a map knowledge service, characterized in that The construction method includes: Obtain preset information keywords, and search for and obtain a first information data group related to the information keywords in a plurality of preset websites; each first information data group corresponds to several ground type elements; According to a preset ground type database, perform statistical analysis on the first information data group, and generate a knowledge graph based on the statistical analysis result; the knowledge graph includes nodes and edges; wherein, each node corresponds to a ground type element, and the edge represents a connection between the ground type elements corresponding to the two nodes; According to the nodes and edges, associate the first information data group, the ground type elements, and a preset interactive display map, so as to establish a map knowledge service; Among them, performing statistical analysis on the first information data group and generating a knowledge graph according to the statistical analysis result specifically includes: Obtain the ground type elements corresponding to each first information data group, and compare and count the ground type elements with a preset ground type database, so as to obtain a statistical analysis result; the statistical analysis result includes a same element extraction statistical result and a multi-element extraction statistical result; Use each ground type element as a node, and connect the corresponding ground type elements with edges according to the same element extraction statistical result and the multi-element extraction statistical result, so as to generate a knowledge graph; The specific steps of associating the first information data group, the ground type elements, and a preset interactive display map according to the nodes and edges to establish a map knowledge service include: According to the knowledge graph, obtain the ground type elements to be displayed on the map, the connections between the ground type elements, and the first information data group associated with the ground type elements, and extract the longitude and latitude coordinates of the ground type elements from the preset ground type database; On the preset interactive display map, mark the ground type elements with a first geometric element according to the nodes, mark the connections between the first geometric elements with a second geometric element according to the edges, and mount the corresponding first information data group on the ground type elements marked by the first geometric element.
2. The construction method of the map knowledge service according to claim 1, wherein, Searching for and obtaining a first information data group related to the information keyword in a plurality of preset websites specifically includes: Search for the information keyword in a plurality of preset websites to obtain a plurality of first web pages; Screen the plurality of first web pages respectively to extract the web page main content of each first web page, extract the ground type elements of each web page main content respectively, and correspondingly use the web page main content as the first information data group.
3. The construction method of the map knowledge service according to claim 1, characterized in that The construction method further includes: Receive an interactive instruction sent by a user; the interactive instruction includes a third geometric element that the user expects to access; According to the third geometric element, display the corresponding first information data group to the user.
4. An apparatus for constructing a map knowledge service, characterized in that The construction device includes a data acquisition unit, a graph generation unit, and a service establishment unit, wherein, The data acquisition unit is used to obtain preset information keywords, and search for and obtain a first information data group related to the information keywords in a plurality of preset websites; each first information data group corresponds to several ground type elements; The graph generation unit is used to perform statistical analysis on the first information data group according to a preset land type database, and generate a knowledge graph based on the statistical analysis results; the knowledge graph includes nodes and edges; wherein, each node corresponds to a land type element, and the edge represents that there is a connection between the land type elements corresponding to the two nodes respectively; The service establishment unit is used to associate the first information data group, the land type elements, and a preset interactive display map according to the nodes and edges, so as to establish a map knowledge service. The specific steps include: Obtain the land type elements to be displayed on the map, the connections between the land type elements, and the web page main content associated with the land type elements from the knowledge graph, extract the longitude and latitude coordinates of the land type elements from the preset land type database, and the web page main content is extracted from the first information data group; On the preset interactive display map, mark the land type elements with the first geometric elements according to the nodes, and mark the connections between the first geometric elements with the second geometric elements according to the edges, and mount the web page main content corresponding to the land type elements marked by the first geometric elements; The graph generation unit is further used for: Obtain the land type elements to be displayed on the map, the connections between the land type elements, and the first information data group associated with the land type elements from the knowledge graph, extract the longitude and latitude coordinates of the land type elements from the preset land type database; On the preset interactive display map, mark the land type elements with the first geometric elements according to the nodes, and mark the connections between the first geometric elements with the second geometric elements according to the edges, and mount the first information data group corresponding to the land type elements marked by the first geometric elements; 5. The construction device of the map knowledge service according to claim 4, characterized in that The construction device further includes an interactive display unit, and the interactive display unit is used for: Receive an interactive instruction sent by the user; the interactive instruction includes a third geometric element that the user expects to access; According to the third geometric element, display the corresponding first information data group to the user.
6. A construction system for map knowledge services, characterized in that, The construction system includes a construction module and a data storage module. The construction module is communicatively connected to the data storage module. The data storage module is used to store all data, and the construction module is used to execute the construction method of the map knowledge service according to any one of claims 1-3 based on all the data stored in the data storage module.
7. The construction system of the map knowledge service according to claim 6, characterized in that, The construction system further includes a user interaction module, and the user interaction module includes a touch / non-touch display screen, an input keyboard, a microphone, an indicator light or a speaker.
Citation Information
Patent Citations
Service knowledge graph construction method and device, electronic equipment and storage medium
CN113392212A