CN110795555B - Knowledge graph data display method and related device - Google Patents

Knowledge graph data display method and related device Download PDF

Info

Publication number
CN110795555B
CN110795555B CN201911051768.0A CN201911051768A CN110795555B CN 110795555 B CN110795555 B CN 110795555B CN 201911051768 A CN201911051768 A CN 201911051768A CN 110795555 B CN110795555 B CN 110795555B
Authority
CN
China
Prior art keywords
graph data
knowledge
knowledge graph
target
step number
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911051768.0A
Other languages
Chinese (zh)
Other versions
CN110795555A (en
Inventor
郑志浩
邹明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Mininglamp Software System Co ltd
Original Assignee
Beijing Mininglamp Software System Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Mininglamp Software System Co ltd filed Critical Beijing Mininglamp Software System Co ltd
Priority to CN201911051768.0A priority Critical patent/CN110795555B/en
Publication of CN110795555A publication Critical patent/CN110795555A/en
Application granted granted Critical
Publication of CN110795555B publication Critical patent/CN110795555B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/34Browsing; Visualisation therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/36Creation of semantic tools, e.g. ontology or thesauri
    • G06F16/367Ontology
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Animal Behavior & Ethology (AREA)
  • Computational Linguistics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention provides a knowledge graph data display method and a related device, and relates to the technical field of data processing. The knowledge graph data display method comprises the following steps: recording the data of the knowledge graph added or deleted to the knowledge graph by the user each time, wherein the data of the knowledge graph comprises the operation times; when a user performs adjustment operation, acquiring the adjustment step number in response to the adjustment operation; acquiring target knowledge graph data according to the operation times and the adjusting steps; and displaying the target knowledge graph data. The knowledge graph data display method provided by the invention can realize the operation of the previous step and the next step without the aid of a back-end data request mode.

Description

Knowledge graph data display method and related device
Technical Field
The application relates to the technical field of data processing, in particular to a knowledge graph data display method and a related device.
Background
When the data is displayed on the traditional front-end page, the method for realizing the previous step comprises the following steps: and sending the request data to the back-end interface once, and displaying the data of the previous step returned by the back-end interface again. However, the data displayed by the knowledge graph cannot be realized in a traditional mode, and because the data displayed by the knowledge graph is uncertain, a user can autonomously add interested data to the knowledge graph or delete unnecessary data according to own needs, the knowledge graph cannot realize the previous step by means of a mode of requesting data by a back end.
Disclosure of Invention
In order to overcome at least the above-mentioned deficiencies of the prior art, an object of the present application is to provide a method and related apparatus for displaying data of a knowledge graph, which can implement the operations of the previous step and the next step without the help of a back-end request data.
In a first aspect, an embodiment provides a method for displaying knowledge-graph data, the method including:
recording the data of the knowledge graph added or deleted to the knowledge graph by a user each time, wherein the data of the knowledge graph comprises the operation times;
when a user carries out adjustment operation, responding to the adjustment operation to obtain adjustment steps;
acquiring target knowledge graph data according to the operation times and the adjusting steps;
and displaying the target knowledge graph data.
In an alternative embodiment, the adjusting operation includes a back-off operation, the adjusting step number includes a back-off step number, and the step of acquiring the adjusting step number in response to the adjusting operation when the user performs the adjusting operation includes:
when a user performs a backward operation, responding to the backward operation to obtain the backward step number;
the step of obtaining target knowledge-graph data according to the operation times and the adjustment steps comprises:
and acquiring the target knowledge graph data according to the operation times and the backward step number.
In an alternative embodiment, the step of obtaining target knowledge-graph data according to the number of operations and the number of back steps comprises:
subtracting the current operation times and the backward step number to obtain target times;
and if the target times are positive numbers, using the knowledge graph data with the same operation times as the target knowledge graph data.
In an alternative embodiment, the adjusting operation includes a forward operation, the adjusting step number includes a forward step number, and the step of acquiring the adjusting step number in response to the adjusting operation when the user performs the adjusting operation includes:
when a user carries out forward operation, responding to the forward operation to obtain the forward step number;
the step of obtaining target knowledge-graph data according to the operation times and the adjustment steps comprises:
and acquiring the target knowledge graph data according to the operation times and the forward steps.
In an alternative embodiment, the step of obtaining target knowledge-graph data according to the number of operations and the number of forward steps comprises:
adding the current operation times and the forward step number to obtain target times;
and if the target times are not more than the maximum value in the operation times, using the knowledge graph data with the same operation times as the target knowledge graph data.
In an alternative embodiment, the method further comprises:
storing the knowledge-graph data in a local memory;
when a user carries out refreshing operation, synchronizing the knowledge graph data in the local memory into a global state library;
and displaying the target knowledge graph data in the global state base according to the operation times and the adjusting steps.
In an alternative embodiment, the step of recording the data of the knowledge-graph added or deleted to the knowledge-graph by the user each time comprises:
and when the user adds or deletes the knowledge graph data once to the knowledge graph, adding one to the operation times.
In a second aspect, embodiments provide a knowledge-graph data presentation apparatus, the apparatus comprising:
the system comprises a recording module, a judging module and a judging module, wherein the recording module is used for recording the data of the knowledge graph added or deleted to the knowledge graph by a user each time, and the data of the knowledge graph comprises the operation times;
the acquisition module is used for responding to the adjustment operation to acquire the adjustment step number when the user performs the adjustment operation;
the processing module is used for acquiring target knowledge graph data according to the operation times and the adjusting steps;
and the display module is used for displaying the target knowledge graph data.
In a third aspect, an embodiment provides an electronic device, including a memory storing a computer program and a processor, where the computer program is read by the processor and executed to implement the method according to any one of the foregoing embodiments.
In a fourth aspect, embodiments provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is read and executed by a processor, the computer program implements the method according to any one of the foregoing embodiments.
Compared with the prior art, the method has the following beneficial effects:
the method comprises the steps of recording knowledge graph data added or deleted to a knowledge graph each time by a user, wherein the knowledge graph data comprise operation times; when a user performs adjustment operation, acquiring the adjustment step number in response to the adjustment operation; acquiring target knowledge graph data according to the operation times and the adjusting steps; and displaying the target knowledge graph data. Therefore, by recording the knowledge graph data added or deleted to or from the knowledge graph by the user each time, when the user performs adjustment operation, the target knowledge graph data can be obtained from the recorded knowledge graph data according to the operation times and the adjustment steps, wherein the target knowledge graph data are the recorded knowledge graph data displayed in response to the backward operation of the user, and the operation of the previous step and the operation of the next step are realized without the help of a rear-end request data.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart diagram of a knowledge-graph displaying method according to an embodiment of the present invention;
fig. 3 is a schematic interface display diagram of an electronic device according to an embodiment of the present invention;
fig. 4 is a schematic view of another interface display of an electronic device according to an embodiment of the present invention;
fig. 5 is a schematic view of another interface display of the electronic device according to the embodiment of the present invention;
FIG. 6 is a schematic flow chart diagram of another knowledge-graph displaying method according to an embodiment of the present invention;
FIG. 7 is a flow chart of another knowledge-graph displaying method according to an embodiment of the present invention;
FIG. 8 is a functional block diagram of a knowledge-graph displaying apparatus according to an embodiment of the present invention;
fig. 9 is a schematic diagram of functional modules of another knowledge-graph displaying apparatus according to an embodiment of the present invention.
Icon: 100-an electronic device; 110-a memory; 120-a processor; 130-a communication module; 140-knowledge-graph data presentation means; 141-a recording module; 142-an acquisition module; 143-a processing module; 144-a display module; 145-storage module; 146-a synchronization module; 150-back key; 160-forward key.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, as generally described and illustrated in the figures herein, could be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the description of the present application, it is further noted that, unless expressly stated or limited otherwise, the terms "disposed," "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meaning of the above terms in this application will be understood to be a specific case for those of ordinary skill in the art.
Referring to fig. 1, a schematic structural diagram of an electronic device 100 according to an embodiment of the present invention is provided, where the electronic device 100 includes a memory 110, a processor 120, and a communication module 130, and elements of the memory 110, the processor 120, and the communication module 130 are directly or indirectly electrically connected to achieve data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines.
The memory 110 is used for storing programs or data. The memory 110 may include a local memory (localStorage) and a global state library. The local memory and the global state library are both used for storing the data of the knowledge graph, the local memory may be a local memory of a browser in the electronic device 100, and the global state library may be a database that is self-contained in a front-end architecture used by the knowledge graph, for example, the front-end architecture used by the knowledge graph is act. Of course, when the knowledge graph uses other front-end architectures, the global state library may be a database corresponding to the other front-end architectures, and the global state library may also be a flex library, a Mobx library, a Vuex library, or the like. The Memory 110 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like.
The processor 120 is used to read/write data or programs stored in the memory 110 and perform corresponding functions. For example, a computer program stored in the memory 110, when executed by the processor 120, can implement the method for displaying knowledge-graph data disclosed by the embodiments of the present invention.
The communication module 130 is used for establishing a communication connection between the electronic device 100 and another device through a network or a communication bus, and transceiving data through the network or the communication bus.
It should be understood that the configuration shown in fig. 1 is merely a schematic diagram of the configuration of the electronic device 100, and that the electronic device 100 may include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof.
In the embodiment, the electronic device 100 may be a mobile phone, a tablet, a personal computer, and the like.
The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by the processor 120, the method for displaying knowledge graph data disclosed in the embodiment of the present invention is implemented.
Please refer to fig. 2, which is a flowchart illustrating a method for displaying knowledge-graph data according to an embodiment of the present invention. It should be noted that the method for displaying knowledge graph data provided by the embodiment of the present invention is not limited by fig. 2 and the following specific sequence, and it should be understood that, in other embodiments, the sequence of some steps in the method for displaying knowledge graph data provided by the embodiment of the present invention may be interchanged according to actual needs, or some steps in the method may be omitted or deleted. The method for displaying knowledge-graph data can be applied to the electronic device 100 shown in fig. 1, and the specific flow shown in fig. 2 will be described in detail below.
Step S101, recording the data of the knowledge graph added or deleted to the knowledge graph by the user each time, wherein the data of the knowledge graph comprises the operation times.
In this embodiment, after entering the knowledge-graph interface, the user may add or delete the knowledge-graph data to the knowledge-graph in several times according to the need of the user, and when the user adds or deletes the knowledge-graph data each time, the electronic device 100 records the knowledge-graph data that the user adds or deletes each time, and each time the knowledge-graph data is recorded, an operation number is generated correspondingly.
In this embodiment, when the user adds or deletes the data of the knowledge graph once to the knowledge graph, the number of operations is added by one.
It is to be appreciated that as shown in fig. 3, an interface display diagram of an entity added to the knowledge-graph interface for the first time by the user is displayed, and when the entity a is added to the knowledge-graph interface for the first time by the user, the electronic device 100 records first knowledge-graph data, wherein the first knowledge-graph data comprises a first operation number and the entity a, and the first operation number is 1. As shown in fig. 4, an interface display diagram of the user adding an entity to the knowledge-graph interface for the second time is displayed, and when the user adds an entity B to the knowledge-graph interface for the second time, the electronic device 100 records second knowledge-graph data, where the second knowledge-graph data includes a second operation number, an entity a, and an entity B, and the second operation number is 2. As shown in fig. 5, an interface display diagram for a user to add a plurality of entities to the knowledge-graph interface for the third time is displayed, and when the user adds an entity C and an entity D to the knowledge-graph data for the third time, the electronic device 100 records third knowledge-graph data, where the third knowledge-graph data includes a third operation time, an entity a, an entity B, an entity C, and an entity D, and the third operation time is 3.
And step S102, when the user carries out the adjustment operation, the adjustment step number is acquired in response to the adjustment operation.
In the present embodiment, the adjustment operation includes a backward operation and a forward operation, and the adjustment step number includes a backward step number and a forward step number. As shown in fig. 3-5, when the user clicks the back key 150 of the knowledge-graph interface, the electronic device 100 obtains the number of back steps in response to the user clicking the back key 150. When the user clicks the forward button 160 of the knowledge-graph interface, the electronic device 100 acquires the forward step number in response to the user clicking the forward button 160.
And step S103, acquiring target knowledge graph data according to the operation times and the adjusting steps.
In the present embodiment, when the adjustment operation is the back operation, the electronic apparatus 100 obtains the target knowledge-map data in accordance with the number of operations and the number of back steps. When the adjustment operation is a forward operation, the electronic apparatus 100 obtains target knowledge-map data in accordance with the number of operations and the number of forward steps. The operation times are the operation times included in the knowledge graph data recorded by the electronic device 100 and currently added or deleted from the knowledge graph by the user, and the target knowledge graph data is knowledge graph data recorded by the electronic device 100, namely historical knowledge graph data.
And step S104, displaying the target knowledge graph data.
In this embodiment, the electronic device 100 replaces the currently displayed knowledge-graph data of the knowledge-graph interface with the target knowledge-graph data.
As shown in fig. 6, which is a schematic flow chart of another knowledge graph displaying method provided in the embodiment of the present invention, based on the schematic flow chart of the knowledge graph displaying method shown in fig. 2, the step S102 further includes the following sub-steps:
in step S201, when the user performs the backward operation, the backward step number is acquired in response to the backward operation.
In the present embodiment, when the user clicks the back key 150 of the knowledge-graph interface, the electronic apparatus 100 acquires the number of back steps in response to the user clicking the back key 150. If the user performs one-time click operation on the back key 150, the number of back steps acquired by the electronic device 100 is 1; if the user performs two click operations on the back button 150, the number of back steps acquired by the electronic device 100 is 2.
Referring to fig. 6, step S103 includes the following sub-steps:
step S301, obtaining target knowledge graph data according to the operation times and the backward steps.
In this embodiment, the electronic device 100 may subtract the current operation frequency and the backward step number to obtain a target frequency; and if the target times are positive numbers, using the knowledge graph data with the same operation times as the target knowledge graph data.
It can be understood that the target times are obtained by subtracting the operation times and the back-off step number included in the knowledge graph data displayed on the current interface. If the third knowledge graph data displayed on the current interface is available, the operation times are 3; if the user clicks the backward key twice, the backward step number is 2; the target number obtained by subtracting the number of operation 3 from the number of back-off steps 2 is 1.
In this embodiment, if it is determined whether the target number of times is a positive number, it may be determined whether the previous operation is possible. If the target times are negative numbers, the last step of operation cannot be performed, the knowledge graph interface can display the first knowledge graph data, and can also continuously display the current identification graph data unchanged. If the target times are positive numbers, the fact that the previous step of operation can be carried out is indicated, and the knowledge graph data with the same operation times and the target times are used as target knowledge graph data and displayed on a knowledge graph interface.
It is to be understood that, if the third knowledge-graph data shown in fig. 5 is displayed on the knowledge-graph interface, if the user performs two click operations on the back key, the obtained target number of times is 1, and since the first knowledge-graph data includes the first operation number of times of 1, the first knowledge-graph data shown in fig. 3 is displayed on the knowledge-graph interface.
Referring to fig. 6, step S102 further includes the following sub-steps:
in step S202, when the user performs the forward operation, the forward step number is acquired in response to the forward operation.
In the embodiment, the knowledge-graph interface is further provided with a forward key 160, and when the user clicks the forward key 160 of the knowledge-graph interface, the electronic device 100 acquires a forward step number in response to the user clicking the forward key 160. If the user performs one click operation on the forward key 160, the number of forward steps acquired by the electronic device 100 is 1; if the user performs two click operations on the forward button 160, the number of forward steps acquired by the electronic device 100 is 2.
Referring to fig. 6, step S103 further includes the following sub-steps:
and step S302, acquiring target knowledge graph data according to the operation times and the advance steps.
In this embodiment, the electronic device 100 may add the current operation frequency and the previous step number to obtain a target frequency; and if the target times are not more than the maximum value in the operation times, using the knowledge graph data with the same operation times as the target knowledge graph data.
It can be understood that the target times are obtained by adding the operation times and the forward steps included in the knowledge graph data displayed on the current interface. If the third knowledge graph data displayed on the current interface is available, the operation times are 3; if the user clicks the forward key twice, the forward steps are 2; the target number of times obtained by adding the operation number 3 to the previous step number 2 is 5.
In this embodiment, it is determined whether the target number of times is not greater than the maximum value among the number of times of operations, and it may be determined whether the next operation is possible. If the target times are larger than the maximum value of the operation times, the last step of operation cannot be performed, the knowledge graph interface can display the knowledge graph data with the maximum operation times, and can also continuously display the current identification graph data unchanged. If the target times are not more than the maximum value in the operation times, the fact that the previous step of operation can be carried out is indicated, and the knowledge graph data with the same operation times and the target times are used as the target knowledge graph data and displayed on the knowledge graph interface.
It is to be understood that, if the maximum value of the number of operations included in the knowledge-graph data recorded by the electronic device 100 is 3, if the first knowledge-graph data shown in fig. 3 is currently displayed on the knowledge-graph interface, if the user performs two click operations on the forward key, the obtained target number is 3, and the target number 3 is equal to the maximum number of operations 3, and since the third knowledge-graph data includes the third number of operations 3, the third knowledge-graph data shown in fig. 5 is displayed on the knowledge-graph interface.
Referring to fig. 7, which is another schematic flow chart of the knowledge graph displaying method according to the embodiment of the present invention, the knowledge graph displaying method shown in fig. 7 further includes the following steps based on the knowledge graph displaying method shown in fig. 2:
step S105, storing the knowledge-graph data into a local memory.
And step S106, synchronizing the knowledge graph data in the local memory to the global state library when the user carries out refreshing operation.
And step S107, displaying the target knowledge graph data in the global state base according to the operation times and the adjustment steps.
In this embodiment, the electronic device 100 stores the recorded knowledge-graph data in both the local memory and the global state library, but when the user refreshes the browser, the knowledge-graph data in the global state library is automatically cleared, but the knowledge-graph data in the local memory is retained. Therefore, when the user performs the refresh operation, the electronic device 100 synchronizes the knowledge graph data in the local memory to the global state base, and after the refresh operation is completed, the electronic device 100 acquires the knowledge graph data with the largest operation frequency value from the global state base for displaying. If the user performs the backward operation or the forward operation, the electronic device 100 obtains the target knowledge-graph data from the global state base according to the current operation frequency and the backward step number for display, or obtains the target knowledge-graph data from the global state base according to the current operation frequency and the forward step number for display.
In order to perform the corresponding steps in the above embodiments and various possible manners, an implementation manner of the knowledge-graph data presentation apparatus 140 is given below. Referring to fig. 8, fig. 8 is a functional module schematic diagram of a knowledge-graph data display apparatus 140 according to an embodiment of the present invention. It should be noted that the basic principle and the generated technical effect of the knowledge-graph data displaying apparatus 140 provided in the present embodiment are the same as those of the above embodiments, and for the sake of brief description, no part of the present embodiment is mentioned, and reference may be made to the corresponding contents in the above embodiments. The knowledge-graph data presentation device 140 comprises: a recording module 141, an acquisition module 142, a processing module 143, and a display module 144.
The recording module 141 is configured to record the data of the knowledge graph, which is added or deleted to the knowledge graph by the user each time, where the data of the knowledge graph includes the number of operations.
It is understood that the recording module 141 is configured to execute the content of step S101.
The obtaining module 142 is configured to obtain the adjustment step number in response to the adjustment operation when the user performs the adjustment operation.
It is understood that the obtaining module 142 is configured to execute the contents of step S102, step S201, and step S202.
The processing module 143 is configured to obtain target knowledge-graph data according to the number of operations and the number of adjustment steps.
It is understood that the processing module 143 executes the contents of step S103, step S301 and step S302.
The display module 144 is used for displaying the target knowledge-graph data.
It is understood that the display module 144 is used for executing the content of the above step S104.
Further, as shown in fig. 9, the knowledge-graph data presentation device 140 further includes the following devices:
the storage module 145 is used to store the knowledge-graph data in the local storage 110.
It is understood that the storage module 145 is used for executing the content of the above step S105.
The synchronization module 146 is used to synchronize the knowledge-graph data in the local memory 110 to the global state library when a refresh operation is performed by a user.
It is understood that the synchronization module 146 is used for executing the content of the step S106.
The processing module 143 is further configured to display the target knowledge-graph data in the global state base according to the number of operations and the number of adjustment steps.
It is understood that the processing module 143 is configured to execute the content of step S107.
Alternatively, the recording module 141, the obtaining module 142, the processing module 143, the display module 144, the storage module 145, and the synchronization module 146 may be stored in the memory 110 in the form of software or Firmware (Firmware) and may be executed by the processor 120.
In summary, the embodiment of the present invention provides a method for displaying data of a knowledge graph and a related device, in which the method records the data of the knowledge graph added or deleted to the knowledge graph by a user each time, wherein the data of the knowledge graph includes the number of operations; when a user performs adjustment operation, acquiring the adjustment step number in response to the adjustment operation; acquiring target knowledge graph data according to the operation times and the adjusting steps; and displaying the target knowledge graph data. It can be seen that, by recording the knowledge graph data added or deleted to the knowledge graph by the user each time, when the user performs adjustment operation, the target knowledge graph data can be obtained from the recorded knowledge graph data according to the operation times and the adjustment steps, wherein the target knowledge graph data is the recorded knowledge graph data displayed in response to the user backing operation, and further the previous step and the next step of operation are realized without the help of a rear-end request data.
The above description is only for various embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the present application, and all such changes or substitutions are included in the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (6)

1. A method for displaying knowledge-graph data, the method comprising:
recording the data of the knowledge graph added or deleted to the knowledge graph by a user each time, wherein the data of the knowledge graph comprises the operation times;
when a user performs adjustment operation, responding to the adjustment operation to obtain adjustment steps; acquiring target knowledge graph data according to the operation times and the adjusting steps;
the adjusting operation comprises a backward operation, the adjusting step number comprises a backward step number, and when the user performs the adjusting operation, the step of obtaining the adjusting step number in response to the adjusting operation comprises the following steps:
when a user performs a backward operation, responding to the backward operation to obtain the backward step number;
the step of obtaining target knowledge-graph data according to the operation times and the adjustment steps comprises:
subtracting the current operation times and the backward step number to obtain target times;
if the target times are positive numbers, using the knowledge graph data with the same operation times as the target knowledge graph data;
or, the adjusting operation includes a forward operation, the adjusting step number includes a forward step number, and when the user performs the adjusting operation, the step of obtaining the adjusting step number in response to the adjusting operation includes:
when a user carries out forward operation, responding to the forward operation to obtain the forward steps;
the step of obtaining target knowledge-graph data according to the operation times and the adjustment steps comprises:
adding the current operation times and the forward step number to obtain target times;
if the target times are not larger than the maximum value of the operation times, using the knowledge graph data with the same operation times as the target knowledge graph data;
and displaying the target knowledge graph data.
2. The method of displaying knowledge-graph data according to claim 1, further comprising:
storing the knowledge-graph data in a local memory;
when a user carries out refreshing operation, synchronizing the knowledge graph data in the local memory into a global state library;
and displaying the target knowledge graph data in the global state base according to the current operation times and the current adjusting step number.
3. The method of claim 1, wherein the step of recording the knowledge-graph data added or deleted by the user to the knowledge-graph each time comprises:
and when the user adds or deletes the knowledge graph data once to the knowledge graph, adding one to the operation times.
4. A knowledge-graph data presentation apparatus, the apparatus comprising:
the system comprises a recording module, a judging module and a judging module, wherein the recording module is used for recording the data of the knowledge graph added or deleted to the knowledge graph by a user each time, and the data of the knowledge graph comprises the operation times;
the acquisition module is used for responding to the adjustment operation to acquire the adjustment step number when the user performs the adjustment operation; the processing module is used for acquiring target knowledge graph data according to the operation times and the adjusting steps;
the adjusting operation comprises a backing operation, the adjusting step number comprises a backing step number, and the obtaining module is further used for responding to the backing operation to obtain the backing step number when a user performs the backing operation;
the processing module is further configured to perform subtraction operation on the current operation times and the backward step number to obtain target times; if the target times are positive numbers, using the knowledge graph data with the same operation times as the target knowledge graph data;
or, the adjusting operation includes a forward operation, the adjusting step number includes a forward step number, and the obtaining module is further configured to obtain the forward step number in response to the forward operation when the user performs the forward operation;
the processing module is further configured to perform addition operation on the current operation times and the forward step number to obtain target times; if the target times are not larger than the maximum value of the operation times, using the knowledge graph data with the same operation times as the target knowledge graph data;
and the display module is used for displaying the target knowledge graph data.
5. An electronic device, comprising a memory storing a computer program and a processor, the computer program being read and executed by the processor for performing the method according to any of claims 1-3.
6. A computer-readable storage medium, on which a computer program is stored which, when read and executed by a processor, implements the method of any one of claims 1-3.
CN201911051768.0A 2019-10-31 2019-10-31 Knowledge graph data display method and related device Active CN110795555B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911051768.0A CN110795555B (en) 2019-10-31 2019-10-31 Knowledge graph data display method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911051768.0A CN110795555B (en) 2019-10-31 2019-10-31 Knowledge graph data display method and related device

Publications (2)

Publication Number Publication Date
CN110795555A CN110795555A (en) 2020-02-14
CN110795555B true CN110795555B (en) 2022-06-17

Family

ID=69440585

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911051768.0A Active CN110795555B (en) 2019-10-31 2019-10-31 Knowledge graph data display method and related device

Country Status (1)

Country Link
CN (1) CN110795555B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113495978B (en) * 2020-03-18 2024-01-02 中电长城网际系统应用有限公司 Data retrieval method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105868332A (en) * 2016-03-28 2016-08-17 百度在线网络技术(北京)有限公司 hot topic recommendation method and device
CN107688606A (en) * 2017-07-26 2018-02-13 北京三快在线科技有限公司 The acquisition methods and device of a kind of recommendation information, electronic equipment
CN109857787A (en) * 2019-01-18 2019-06-07 维沃移动通信有限公司 A kind of methods of exhibiting and terminal
CN110110156A (en) * 2019-04-04 2019-08-09 平安科技(深圳)有限公司 Industry public sentiment monitoring method, device, computer equipment and storage medium
CN110209787A (en) * 2019-05-29 2019-09-06 袁琦 A kind of intelligent answer method and system based on pet knowledge mapping

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170124497A1 (en) * 2015-10-28 2017-05-04 Fractal Industries, Inc. System for automated capture and analysis of business information for reliable business venture outcome prediction
WO2017100970A1 (en) * 2015-12-14 2017-06-22 Microsoft Technology Licensing, Llc Facilitating discovery of information items using dynamic knowledge graph
US10223639B2 (en) * 2017-06-22 2019-03-05 International Business Machines Corporation Relation extraction using co-training with distant supervision
CN110019823B (en) * 2017-07-13 2023-03-28 阿里巴巴集团控股有限公司 Method and device for updating knowledge graph
US10860940B2 (en) * 2017-08-30 2020-12-08 Pearson Education, Inc. System and method for automated sequencing database generation
CN110110091B (en) * 2018-01-25 2021-06-15 北大方正集团有限公司 Method and system for displaying knowledge element map, computer equipment and storage medium
CN108875827B (en) * 2018-06-15 2022-04-12 拓元(广州)智慧科技有限公司 Method and system for classifying fine-grained images
CN110120001B (en) * 2019-05-08 2021-07-20 成都佳发安泰教育科技股份有限公司 Method and system for scoring based on combination of knowledge graph library and memory curve

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105868332A (en) * 2016-03-28 2016-08-17 百度在线网络技术(北京)有限公司 hot topic recommendation method and device
CN107688606A (en) * 2017-07-26 2018-02-13 北京三快在线科技有限公司 The acquisition methods and device of a kind of recommendation information, electronic equipment
CN109857787A (en) * 2019-01-18 2019-06-07 维沃移动通信有限公司 A kind of methods of exhibiting and terminal
CN110110156A (en) * 2019-04-04 2019-08-09 平安科技(深圳)有限公司 Industry public sentiment monitoring method, device, computer equipment and storage medium
CN110209787A (en) * 2019-05-29 2019-09-06 袁琦 A kind of intelligent answer method and system based on pet knowledge mapping

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于中文知识图谱的人物实体识别;李薇 等;《计算机工程》;20170315;第43卷(第03期);225-231 *

Also Published As

Publication number Publication date
CN110795555A (en) 2020-02-14

Similar Documents

Publication Publication Date Title
RU2609752C2 (en) Method and mobile terminal device for independent video image playback
TWI760304B (en) Terminal device and health managing method
TW202013282A (en) Method and device for identifying risky merchant
CN110795555B (en) Knowledge graph data display method and related device
CN110619099A (en) Comment content display method, device, equipment and storage medium
CN111737922A (en) Data processing method, device, equipment and medium based on recurrent neural network
CN113051493A (en) Application program display method and device, storage medium and terminal
KR20180081231A (en) Method for sharing data and an electronic device thereof
CN109492163B (en) List display recording method and device, terminal equipment and storage medium
CN111737920B (en) Data processing method, equipment and medium based on cyclic neural network
CN111737921B (en) Data processing method, equipment and medium based on cyclic neural network
US20170131857A1 (en) Wallpaper processing method and electronic device
CN111309411A (en) Schedule display method and device
CN107995538B (en) Video annotation method and system
WO2016131230A1 (en) Event information processing method and device
CN112202958B (en) Screenshot method and device and electronic equipment
CN111123744B (en) Menu recording method and device, storage medium and electronic equipment
CN113377473A (en) Task creation method and device, electronic equipment and computer readable storage medium
CN112711936A (en) Information display method, device, equipment and storage medium
CN115081412A (en) Table content processing method, device, equipment and storage medium
CN111694999A (en) Information processing method and device and electronic equipment
US20180322177A1 (en) Flexible content integration
CN115645905B (en) Cursor display method and device, electronic equipment and storage medium
CN111666277B (en) Data chart, data source file updating method, device, system and storage medium
CN112883008B (en) Data migration method, device, system and storage medium

Legal Events

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