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

Knowledge graph data display method and related device Download PDF

Info

Publication number
CN110795555A
CN110795555A CN201911051768.0A CN201911051768A CN110795555A CN 110795555 A CN110795555 A CN 110795555A CN 201911051768 A CN201911051768 A CN 201911051768A CN 110795555 A CN110795555 A CN 110795555A
Authority
CN
China
Prior art keywords
knowledge
graph data
knowledge graph
target
adjustment
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.)
Granted
Application number
CN201911051768.0A
Other languages
Chinese (zh)
Other versions
CN110795555B (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 a 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 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 steps.
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, which, when read and executed by a processor, implements the method according to any of the preceding 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. 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.
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 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, generally described and illustrated in the figures herein, can 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 the present application can be understood in a specific case by 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, in which the electronic device 100 includes a memory 110, a processor 120 and a communication module 130, and various elements of the memory 110, the processor 120 and the communication module 130 are directly or indirectly electrically connected to each other to implement 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 current knowledge graph data, recorded by the electronic device 100, of the user added to or deleted from the knowledge graph, and the target knowledge graph data is the knowledge graph data, namely the historical knowledge graph data, recorded by the electronic device 100.
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 a back operation, the number of back steps is acquired in response to the back 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 and the target 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 used for executing 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 memory 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 to execute the content of 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 (10)

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 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.
2. The method of claim 1, wherein the adjustment operation comprises a back-off operation, the adjustment step count comprises a back-off step count, and the step of obtaining the adjustment step count in response to the adjustment operation when the user performs the adjustment operation comprises:
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 steps.
3. The method of displaying knowledge-graph data according to claim 2, wherein 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.
4. The method of claim 1, wherein the adjustment operation comprises a forward operation, the adjustment step number comprises a forward step number, and the step of obtaining the adjustment step number in response to the adjustment operation when the user performs the adjustment operation comprises:
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.
5. The method of displaying knowledge-graph data according to claim 4, wherein 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.
6. 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.
7. 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.
8. 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.
9. An electronic device, comprising a memory storing a computer program and a processor, the computer program, when read and executed by the processor, implementing the method according to any one of claims 1-7.
10. 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-7.
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 true CN110795555A (en) 2020-02-14
CN110795555B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113495978A (en) * 2020-03-18 2021-10-12 中电长城网际***应用有限公司 Data retrieval method and device

Citations (13)

* 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
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
CN107408116A (en) * 2015-12-14 2017-11-28 微软技术许可有限责任公司 Promote the discovery of item of information using dynamic knowledge collection of illustrative plates
CN107688606A (en) * 2017-07-26 2018-02-13 北京三快在线科技有限公司 The acquisition methods and device of a kind of recommendation information, electronic equipment
CN108875827A (en) * 2018-06-15 2018-11-23 广州深域信息科技有限公司 A kind of method and system of fine granularity image classification
US20180373990A1 (en) * 2017-06-22 2018-12-27 International Business Machines Corporation Relation extraction using co-training with distant supervision
US20190065976A1 (en) * 2017-08-30 2019-02-28 Pearson Education, Inc. System and method for automated sequencing database generation
CN109857787A (en) * 2019-01-18 2019-06-07 维沃移动通信有限公司 A kind of methods of exhibiting and terminal
CN110019823A (en) * 2017-07-13 2019-07-16 阿里巴巴集团控股有限公司 Update the method and device of knowledge mapping
CN110110091A (en) * 2018-01-25 2019-08-09 北大方正集团有限公司 Methods of exhibiting, system, computer equipment and the storage medium of Knowledge Element map
CN110110156A (en) * 2019-04-04 2019-08-09 平安科技(深圳)有限公司 Industry public sentiment monitoring method, device, computer equipment and storage medium
CN110120001A (en) * 2019-05-08 2019-08-13 成都佳发安泰教育科技股份有限公司 The method and system that a kind of knowledge based spectrum library mentions point in conjunction with memory curve
CN110209787A (en) * 2019-05-29 2019-09-06 袁琦 A kind of intelligent answer method and system based on pet knowledge mapping

Patent Citations (13)

* 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
CN107408116A (en) * 2015-12-14 2017-11-28 微软技术许可有限责任公司 Promote the discovery of item of information using dynamic knowledge collection of illustrative plates
CN105868332A (en) * 2016-03-28 2016-08-17 百度在线网络技术(北京)有限公司 hot topic recommendation method and device
US20180373990A1 (en) * 2017-06-22 2018-12-27 International Business Machines Corporation Relation extraction using co-training with distant supervision
CN110019823A (en) * 2017-07-13 2019-07-16 阿里巴巴集团控股有限公司 Update the method and device of knowledge mapping
CN107688606A (en) * 2017-07-26 2018-02-13 北京三快在线科技有限公司 The acquisition methods and device of a kind of recommendation information, electronic equipment
US20190065976A1 (en) * 2017-08-30 2019-02-28 Pearson Education, Inc. System and method for automated sequencing database generation
CN110110091A (en) * 2018-01-25 2019-08-09 北大方正集团有限公司 Methods of exhibiting, system, computer equipment and the storage medium of Knowledge Element map
CN108875827A (en) * 2018-06-15 2018-11-23 广州深域信息科技有限公司 A kind of method and system of fine granularity image classification
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
CN110120001A (en) * 2019-05-08 2019-08-13 成都佳发安泰教育科技股份有限公司 The method and system that a kind of knowledge based spectrum library mentions point in conjunction with memory curve
CN110209787A (en) * 2019-05-29 2019-09-06 袁琦 A kind of intelligent answer method and system based on pet knowledge mapping

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李薇 等: "基于中文知识图谱的人物实体识别", 《计算机工程》 *
李薇 等: "基于中文知识图谱的人物实体识别", 《计算机工程》, vol. 43, no. 03, 15 March 2017 (2017-03-15), pages 225 - 231 *

Cited By (2)

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

Also Published As

Publication number Publication date
CN110795555B (en) 2022-06-17

Similar Documents

Publication Publication Date Title
WO2016101816A1 (en) Method and device for information display in instant messaging
CN109446199B (en) Cell data processing method and device
US20240119223A1 (en) Method, apparatus and electronic device for field merging
CN110795555B (en) Knowledge graph data display method and related device
CN113515717B (en) Navigation page updating method and device, electronic equipment and storage medium
CN111737920B (en) Data processing method, equipment and medium based on cyclic neural network
WO2023202702A1 (en) Schedule information synchronization method and apparatus, and electronic device
CN111309411B (en) Schedule display method and device
US20170131857A1 (en) Wallpaper processing method and electronic device
CN109144809B (en) Focus change monitoring method, storage medium, electronic device and system
CN113268183B (en) List page countdown display method and device
CN110113416B (en) Method and device for displaying information
US10963480B2 (en) Flexible content integration
CN112711936A (en) Information display method, device, equipment and storage medium
CN111123744A (en) Menu recording method and device, storage medium and electronic equipment
CN110879738A (en) Method and device for displaying operation steps and electronic equipment
CN111325595A (en) User rights information display method and device and electronic equipment
CN111325567A (en) User rights information display method and device and electronic equipment
CN115645905B (en) Cursor display method and device, electronic equipment and storage medium
CN114968463B (en) Entity display method, device, equipment and medium
CN112883008B (en) Data migration method, device, system and storage medium
CN112328529B (en) Method, device, terminal and storage medium for determining reading progress of electronic book
CN115348476A (en) Voice instruction execution time recognition method and device and electronic equipment
AU2023206684A1 (en) Template selection method and apparatus, and electronic device and storage medium
CN113051515A (en) Method and device for processing webpage table data

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