A knowledge graph adaptation method and system on mobile terminals

The knowledge graph data on the PC side is obtained through the HTTP protocol and the loop processing and iframe embedding technology are used to solve the problem of function adaptation between the mobile terminal and the PC side, and the portable office of the knowledge graph on the mobile terminal is realized, which improves the efficiency of mobile office.

CN114756689BActive Publication Date: 2025-08-26NARI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210377402.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-12
Publication Date
2025-08-26
Estimated Expiration
2042-04-12

AI Technical Summary

Technical Problem

How to achieve consistency between the knowledge graph and the PC function on the mobile terminal, especially in the mobile office environment to achieve functional adaptation of the knowledge analysis system.

Method used

The HTTP protocol is used to obtain the PC-side map data, form a data set through loop processing, and use an iframe to embed it into the front end of the APP to control the display area, and draw the map page with the data set.

Benefits of technology

It realizes portable office work with the knowledge graph on the mobile terminal, ensures the consistency of the functions of the mobile terminal and the intranet system, and improves the efficiency of mobile office.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114756689B_ABST
    Figure CN114756689B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and system for adapting a knowledge graph on a mobile terminal, comprising: adopting the HTTP protocol, taking the relationship between two entity data as an element, obtaining graph data located on a PC terminal, and processing the obtained graph data in a loop to obtain a data set required for display on a page, and drawing a graph page based on the data set; embedding the graph page into the front end of an APP through an iframe, and controlling the display area of ​​the graph page on the front end of the APP through the width and height of the iframe.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of mobile terminal adaptation technology, and specifically relates to a knowledge graph adaptation method and system on a mobile terminal. Background Art

[0002] Knowledge graph analysis, a multidisciplinary technology that draws on information visualization, information science, applied mathematics, and other disciplines, can help users quickly find the information they need, making searches more comprehensive and insightful. Compared to traditional literature reviews and bibliometrics, knowledge graph analysis offers advantages in quantification, objectivity, and visualization.

[0003] In the context of scientometrics data visualization, the use of knowledge graphs for visual knowledge analysis applications has greatly improved work efficiency. Therefore, most companies already have or will have their own knowledge systems. With the development of intranet knowledge systems and in order to adapt to mobile office, how to present the knowledge analysis system on the intranet in the form of mobile software or clients, and how to make the functions of the system on the mobile terminal roughly consistent with the functions of the knowledge analysis system on the intranet, this is a problem that needs to be solved urgently. Summary of the Invention

[0004] Purpose of the invention: In order to adapt the knowledge graph on the PC to the mobile terminal, the present invention proposes a method and system for adapting the knowledge graph on the mobile terminal.

[0005] Technical solution: A method for adapting knowledge graphs on mobile devices, including:

[0006] Using the HTTP protocol, the relationship between two entity data is used as an element to obtain the graph data on the PC side. The obtained graph data is processed in a loop to obtain the data set required for display on the page. Based on the data set, the graph page is drawn;

[0007] Embed the atlas page into the APP front end through iframe, and control the display area of ​​the atlas page on the APP front end through the width and height of the iframe.

[0008] Furthermore, the acquired graph data is reconstructed using a loop processing method, and the relationship between two entity data is used as an element to obtain a data set, including:

[0009] S1: Based on the acquired entity data, a path entity data list and a path entity relationship data list are formed;

[0010] S2: Take entity data A from the path entity data list, and filter out entity data B that has a relationship with entity data A from the path entity relationship data list by combining the from and to fields; put entity data A, entity data B and the pointing relationship into the data set;

[0011] S3: Repeat S2 until the last entity data in the path entity data list is retrieved to obtain a complete data set.

[0012] Furthermore, the S1 specifically includes:

[0013] Assign the acquired entity data to the data variable. The data structure of the data variable is as follows:

[0014]

[0015] Among them, nameList contains the starting point and end point data of the graph; pathList is the graph path data, entityList in pathList is the path entity data, and relationList in pathList is the path entity relationship data.

[0016] Furthermore, the structure of the data set is as follows:

[0017]

[0018]

[0019] Furthermore, the drawing of the graph page according to the data set includes: drawing the graph entity based on the nodeId and nodeName in the data set and assigning a click action to the graph entity;

[0020] By judging the value of arrow in the data set, the direction of the arrow is located, and the arrow and the name of the loading arrow line are drawn to obtain the atlas page.

[0021] The present invention also discloses a knowledge graph adaptation system on a mobile terminal, comprising:

[0022] The data set acquisition module is used to acquire the graph data on the PC side using the HTTP protocol and the relationship between two entity data as elements, and then processes the acquired graph data in a loop to obtain the data set required for display on the page;

[0023] A map page drawing module is used to draw a map page based on a data set;

[0024] The display module is used to embed the atlas page into the APP front end through an iframe, and control the display area of ​​the atlas page on the APP front end through the width and height of the iframe.

[0025] Furthermore, the data set acquisition module includes:

[0026] A path entity data list and path entity relationship data list forming submodule, used to form a path entity data list and a path entity relationship data list based on the acquired entity data;

[0027] The inter-entity pointing relationship filtering submodule is used to extract entity data A from the path entity data list, and filter out entity data B that has a relationship with entity data A from the path entity relationship data list through the combination of the from and to fields;

[0028] The data collection storage submodule is used to store entity data A, entity data B and pointing relationships.

[0029] Furthermore, in the path entity data list and path entity relationship data list forming submodule, the acquired entity data is assigned to the data variable and the data variable is analyzed to form the path entity data list and the path entity relationship data list;

[0030] The data structure of the data variable is as follows:

[0031]

[0032]

[0033] Among them, nameList contains the starting point and end point data of the graph; pathList is the graph path data, entityList in pathList is the path entity data, and relationList in pathList is the path entity relationship data.

[0034] Furthermore, the structure of the data set is as follows:

[0035]

[0036] Furthermore, the atlas page drawing module includes the following submodules:

[0037] The graph entity drawing submodule is used to draw graph entities based on the nodeId and nodeName in the data set;

[0038] The click action assignment submodule is used to assign click actions to graph entities;

[0039] The arrow drawing submodule is used to determine the direction of the arrow by judging the value of arrow in the data set, drawing the arrow and loading the name of the arrow line.

[0040] Beneficial effect: The present invention converts the knowledge graph on the intranet into mobile-adaptive software through looping and iframe nesting, which can be directly installed on the mobile phone to carry out portable office work. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 It is a data processing flow chart;

[0042] Figure 2 Embed the graph flow chart into an iframe. DETAILED DESCRIPTION

[0043] The technical solution of the present invention will now be further described with reference to the accompanying drawings and embodiments.

[0044] The core technology of the method of the present invention is mainly loop and iframe nesting. The basic concepts of loop and iframe nesting are now explained.

[0045] A loop is a repetitive statement in programming languages, consisting of a loop body and a condition. Its advantages include: first, it allows you to reorganize data that doesn't meet your needs into the desired data type; second, it allows you to implement desired functions with large amounts of data, often with repetitive data, using simple programs.

[0046] Iframe is an HTML tag that acts as a document within a document, or a floating frame (FRAME). The iframe element creates an inline frame (i.e., an inline frame) that contains another document. The advantage of iframe is that it can display the embedded web page intact. Second, if multiple web pages reference iframe, then you only need to modify the content of the iframe to change the content of each called page, which is convenient and quick. Third, if the web pages have the same style, header, and version, they can be written as one page and nested with iframe to increase the reusability of the code. Fourth, if you encounter slow-loading third-party content such as icons and advertisements, iframe can solve this problem.

[0047] The adaptation method of the present invention is now described by taking the realization of the relationship retrieval function as an example.

[0048] The adaptation method of the present invention mainly comprises the following steps:

[0049] The APP front-end uses HTTP to call the graph modeling interface to obtain the graph's entity information, market analysis data, relationship retrieval data, etc. to calculate and display internal data;

[0050] The APP front end calls the basic information of the atlas card from the APP backend and adjusts the corresponding pages and information to realize its display on the app.

[0051] On the APP front end, the main steps include:

[0052] Step 1: On the mobile phone relationship search page, enter entity A and entity B. Using HTTP, with entity A and entity B as elements, call the graph modeling interface to obtain the relationship search data of the knowledge graph. Depending on different application scenarios, you can also obtain internal data including but not limited to entity information and market analysis data. Assign the obtained data to the data variable. The data structure of the data variable is as follows:

[0053]

[0054]

[0055] Among them, nameList contains the starting point and end point data of the graph; pathList is the graph path data, entityList in pathList is the path entity data, and relationList in pathList is the path entity relationship data.

[0056] Step 2: Reconstruct data based on the data variable. The reconstruction steps are as follows:

[0057] S201: define the data set lastList;

[0058] S202: Retrieve entity data A from the path entity data entityList;

[0059] S203: Filtering the relationship between the current path entity data A and the next path entity data from the path entity relationship data relationList by combining the from and to fields, that is, the arrow points to the entity data B;

[0060] S204: Put the entity data A and the corresponding arrow-pointing data B into the data set lastList;

[0061] S205: Repeat steps S202 to S204 above for the remaining entity data in entityList and the corresponding arrow data to obtain and put them into the data set lastList until the last entity data in the path entity data entityList is taken out. This will give the complete data set lastList for graph drawing. The structure of the data set lastList is shown in the following table:

[0062]

[0063] Step 3: Draw a graph based on the data set lastList obtained in step 2. The specific drawing operations are: draw graph entities based on the nodeId variable and nodeName variable in the data set lastList and assign click actions to the graph entities. Locate the direction of the arrow by judging the value of the arrow variable in the data set lastList, draw the arrow and load the name of the arrow line, thereby drawing a complete relationship graph.

[0064] Step 4: Embed the atlas page into the front end of the APP through an iframe, and control the display area of ​​the atlas page on the front end of the APP through the width and height of the iframe to realize the display on the mobile terminal.

[0065] The present invention adopts iframe nesting, so that the method supports embedding other information or page content in the page, and splitting the page into multiple pages for operation and exchange as needed.

[0066] For example, an enterprise could build a technology resource map, centered around a professional knowledge ontology, to achieve integrated management of internal and external knowledge resources such as patents, papers, achievements, and standards. This could support cross-category discovery of technology intelligence associations, semantic retrieval of technology intelligence, and technical decision analysis. Using the method presented in this invention, the technology resource map on the intranet could be made into mobile-friendly software that could be installed directly on a mobile phone, enabling portable office work.

[0067] Another company aggregated product information by building a product knowledge graph, including product attributes (such as SKU, cost, price, etc.), product specifications (such as size, warranty and packaging information, etc.), product-related indicators and instructions for use, etc.; refined product selling points, such as structured sorting and refining of the characteristics, advantages, benefits and evidence of each product according to the FABE principle, to accurately empower sales staff with product knowledge; competitive product intelligence analysis, statistical analysis of hot words, categories, prices and other multi-dimensional information of competing companies' products, and more detailed topic penetration analysis based on the company of interest. Through the method of the present invention, the product knowledge graph on the internal network can be made into mobile terminal adaptation software, which can be directly installed on the mobile phone for portable office work.

Claims

1. A method for adapting a knowledge graph on a mobile terminal, characterized by: include: Using the HTTP protocol, the relationship between two entity data is used as an element to obtain the graph data on the PC side. The obtained graph data is processed in a loop to obtain the data set required for display on the page. Based on the data set, the graph page is drawn; Embed the atlas page into the APP front end through an iframe, and control the display area of ​​the atlas page on the APP front end through the width and height of the iframe; The obtained graph data is reconstructed using a loop processing method, and the relationship between two entity data is used as an element to obtain a data set, including: S1: Based on the acquired entity data, a path entity data list and a path entity relationship data list are formed; S2: Take entity data A from the path entity data list, and filter out entity data B that has a relationship with entity data A from the path entity relationship data list by combining the from and to fields; put entity data A, entity data B and the pointing relationship into the data set; S3: Repeat S2 until the last entity data in the path entity data list is retrieved to obtain a complete data set.

2. The method for adapting a knowledge graph on a mobile terminal according to claim 1, characterized in that: Said S1 specifically includes: Assign the acquired entity data to the data variable. The data structure of the data variable is as follows: Among them, nameList contains the starting point and end point data of the graph; pathList is the graph path data, entityList in pathList is the path entity data, and relationList in pathList is the path entity relationship data.

3. The method for adapting a knowledge graph on a mobile terminal according to claim 2, characterized in that: The structure of the data set is as follows:

4. The method for adapting a knowledge graph on a mobile terminal according to claim 3, characterized in that: Drawing a map page according to the data set includes: drawing a map entity based on the nodeId and nodeName in the data set and assigning a click action to the map entity; By judging the value of arrow in the data set, the direction of the arrow is located, and the arrow and the name of the loading arrow line are drawn to obtain the atlas page.

5. A knowledge graph adaptation system on a mobile terminal, characterized by: include: The data set acquisition module is used to acquire the graph data on the PC side using the HTTP protocol and the relationship between two entity data as elements, and then processes the acquired graph data in a loop to obtain the data set required for display on the page; A map page drawing module is used to draw a map page based on a data set; The display module is used to embed the atlas page into the APP front end through an iframe, and control the display area of ​​the atlas page on the APP front end through the width and height of the iframe; The data set acquisition module includes: A path entity data list and path entity relationship data list forming submodule, used to form a path entity data list and a path entity relationship data list based on the acquired entity data; The inter-entity pointing relationship filtering submodule is used to extract entity data A from the path entity data list, and filter out entity data B that has a relationship with entity data A from the path entity relationship data list through the combination of the from and to fields; The data collection storage submodule is used to store entity data A, entity data B and pointing relationships.

6. The knowledge graph adaptation system on a mobile terminal according to claim 5, characterized in that: In the path entity data list and path entity relationship data list forming submodule, the acquired entity data is assigned to the data variable and the data variable is analyzed to form the path entity data list and the path entity relationship data list; The data structure of the data variable is as follows: Among them, nameList contains the starting point and end point data of the graph; pathList is the graph path data, entityList in pathList is the path entity data, and relationList in pathList is the path entity relationship data.

7. The knowledge graph adaptation system on a mobile terminal according to claim 6, characterized in that: The structure of the data set is as follows:

8. The knowledge graph adaptation system on a mobile terminal according to claim 7, characterized in that: The atlas page drawing module includes the following submodules: The graph entity drawing submodule is used to draw graph entities based on the nodeId and nodeName in the data set; The click action assignment submodule is used to assign click actions to graph entities; The arrow drawing submodule is used to determine the direction of the arrow by judging the value of arrow in the data set, drawing the arrow and loading the name of the arrow line.

Citation Information

Patent Citations

  • Knowledge map interactive visual query method based on RDF

    CN109033260A

  • Method, apparatus, storage medium and processor for processing knowledge map

    CN109508384A