CN111475602A - Multi-version knowledge graph storage method and device, storage medium and electronic equipment - Google Patents

Multi-version knowledge graph storage method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN111475602A
CN111475602A CN202010576844.6A CN202010576844A CN111475602A CN 111475602 A CN111475602 A CN 111475602A CN 202010576844 A CN202010576844 A CN 202010576844A CN 111475602 A CN111475602 A CN 111475602A
Authority
CN
China
Prior art keywords
version
sub
map
version map
data
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
CN202010576844.6A
Other languages
Chinese (zh)
Other versions
CN111475602B (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.)
Chengdu Business Big Data Technology Co Ltd
Original Assignee
Chengdu Business Big Data Technology 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 Chengdu Business Big Data Technology Co Ltd filed Critical Chengdu Business Big Data Technology Co Ltd
Priority to CN202010576844.6A priority Critical patent/CN111475602B/en
Publication of CN111475602A publication Critical patent/CN111475602A/en
Application granted granted Critical
Publication of CN111475602B publication Critical patent/CN111475602B/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/31Indexing; Data structures therefor; Storage structures
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Animal Behavior & Ethology (AREA)
  • Computational Linguistics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to a method and a device for storing a multi-version knowledge graph, a storage medium and electronic equipment. The multi-version knowledge graph storage method comprises the following steps: generating a real-time updated master version map, wherein the master version map is updated with the update of the data source linked with the master version map; and generating at least one update time solidified sub-version map, wherein the solidification time of the sub-version map is the update cutting time of the data source linked with the sub-version map. The multi-version knowledge graph storage method provides a main version graph capable of being updated in real time and at least one sub-version graph belonging to a historical version, so that the generation of multiple versions of the knowledge graph is realized, and the real-time updating and history tracing are facilitated. Therefore, compared with the existing map platform/product, the multi-version knowledge map storage method can trace the historical map on the basis of updating the map in real time, and has better applicability.

Description

Multi-version knowledge graph storage method and device, storage medium and electronic equipment
Technical Field
The invention relates to the technical field of knowledge maps, in particular to a multi-version knowledge map storage method and device, a storage medium and electronic equipment.
Background
Knowledge map (Knowledge Graph) is a series of different graphs displaying Knowledge development process and structure relationship in the book intelligence field, describing Knowledge resources and carriers thereof by using visualization technology, mining, analyzing, constructing, drawing and displaying Knowledge and mutual relation between Knowledge resources and Knowledge carriers.
At present, the research and development center of knowledge maps focuses on how to better perform data visualization and how to realize a stronger map calculation method, and therefore, a plurality of visualization map layouts with standard definitions, such as hierarchical layouts, gravitional layouts, grid layouts and the like, appear, and the map platform has thinking and calculation capabilities due to the support of classical map calculations such as Pagerank, L PA and the like.
The chinese patent application publication No. CN110580293A discloses a method and an apparatus for storing entity relationships, which can solve the technical problem that historical entity relationships cannot be queried by storing the entity relationships before and after change. However, the method can only query entity relationships, which are only a small part of data in the knowledge graph and are independent from other data, and the method still cannot solve the technical problem of how to trace the historical graph.
Disclosure of Invention
The invention aims to provide a multi-version knowledge graph storage method, a multi-version knowledge graph storage device, a multi-version knowledge graph storage medium and electronic equipment, which can simultaneously provide a main version graph capable of being updated in real time and a sub-version graph belonging to a historical version, and can trace the historical graph on the basis of updating the graph in real time.
In order to achieve the above object, the embodiments of the present invention provide the following technical solutions:
a multi-version knowledge graph storage method comprises the following steps:
generating and storing a real-time updated master version map, wherein the master version map is updated along with the update of the data source linked with the master version map;
and generating and storing at least one update time solidified sub-version map, wherein the solidification time of the sub-version map is the cutting time of the data source update linked with the sub-version map.
According to the method, the main version map capable of being updated in real time and the at least one sub-version map belonging to the historical version are provided, so that the generation and storage of multiple versions of the knowledge map are realized, and the real-time updating and history tracing are facilitated. Therefore, compared with the existing map platform/product, the method can trace the historical map on the basis of updating the map in real time, and has better applicability.
The step of generating at least one update time-fixed sub-version map comprises:
for any sub-version map, selecting map library data from the map library initialization time point to the curing time point of the sub-version map as the generation data of the sub-version map;
and generating the sub-version map according to the generated data and storing the sub-version map.
In the method, the gallery data is segmented on the basis of time, and only the gallery data required by the sub-version map needs to be backed up. However, if the original data forming the gallery data (such as database data and CSV files) is divided on a time basis, it is necessary to back up the original data linked to the sub-version map and the gallery data generated by the original data. Thus, less data is saved by dividing the gallery data on a time basis than by dividing the original data forming the gallery data on a time basis. Therefore, when the sub-version atlas is generated, the atlas database is divided, so that the data expansion degree can be reduced, and the data redundancy can be reduced.
The multi-version knowledge graph storage method further comprises the following steps:
and for any sub-version map, saving the map calculation result completed before the sub-version map solidification time as the map calculation result of the sub-version map.
In the method, the sub-version map and the map calculation result are stored simultaneously, so that the sub-version map can be corresponding to the map calculation result obtained by calculation according to the sub-version map, and the map calculation result is ensured to be consistent with the sub-version map.
The multi-version knowledge graph storage method further comprises the following steps:
and for any sub-version map, storing a judgment analysis result completed before the sub-version map solidification time as a judgment analysis result of the sub-version map, wherein the judgment analysis result is generated according to user operation.
In the method, the sub-version map can be corresponding to the judging analysis result generated by operating the sub-version map, so that the judging analysis result is consistent with the sub-version map.
On the other hand, the embodiment of the invention also provides a storage device of the multi-version knowledge graph, which comprises the following components:
the generation module of the master version map is used for generating and storing a master version map updated in real time, wherein the master version map is updated along with the update of the data source linked with the master version map;
and the generation module of the sub-version map is used for generating and storing at least one sub-version map with fixed update time, wherein the fixed time of the sub-version map is the cutting time of the update of the data source linked with the sub-version map.
In the device, a main version map capable of being updated in real time and at least one sub-version map belonging to a historical version are provided, so that generation and storage of multiple versions of the knowledge map are realized, and real-time updating and history tracing are facilitated. Therefore, compared with the existing map platform/product, the historical map can be traced on the basis of updating the map in real time, and the map platform/product has better applicability.
The generation module of the sub-version map comprises:
the drawing library data selection submodule is used for selecting the drawing library data from the drawing library initialization time point to the curing time point of the sub-version map as the generation data of the sub-version map for any sub-version map;
and the sub-version map generation submodule is used for generating the sub-version map according to the generated data and storing the sub-version map.
In the device, the gallery data is divided on the basis of time, and only the gallery data required by the sub-version map needs to be backed up. However, the original data (such as database data and CSV files) forming the gallery data are divided on a time basis, and the original data linked to the sub-version map and the gallery data generated by the original data need to be backed up. Thus, less data is saved by dividing the gallery data on a time basis than by dividing the original data forming the gallery data on a time basis. Therefore, when the sub-version atlas is generated, the atlas database is divided, so that the data expansion degree can be reduced, and the data redundancy can be reduced.
The storage device of the multi-version knowledge graph further comprises:
and the graph calculation result storage module is used for storing the graph calculation result completed before the solidification time of the sub-version graph as the graph calculation result of the sub-version graph for any sub-version graph.
In the device, the sub-version map can be corresponding to the map calculation result obtained by calculation according to the sub-version map, so that the map calculation result is consistent with the sub-version map.
The storage device of the multi-version knowledge graph further comprises:
and the judging analysis result storage module is used for storing the judging analysis result finished before the curing time of any sub-version map as the judging analysis result of the sub-version map, wherein the judging analysis result is generated according to the operation of a user.
In the device, the sub-version map can be corresponding to the judging analysis result generated by operating the sub-version map, so that the judging analysis result is consistent with the sub-version map.
In still another aspect, the present invention also provides a computer-readable storage medium including computer-readable instructions, which, when executed, cause a processor to perform the operations of the method described in the present invention.
In another aspect, an embodiment of the present invention also provides an electronic device, including: a memory storing program instructions; and the processor is connected with the memory and executes the program instructions in the memory to realize the steps of the method in the embodiment of the invention.
The invention provides a main version map capable of being updated in real time and at least one sub-version map belonging to a historical version, so that generation and storage of multiple versions of a knowledge map are realized, and real-time updating and history tracing are facilitated. Therefore, compared with the existing map platform/product, the method can trace the historical map on the basis of updating the map in real time, and has better applicability. For example, the data of the public security house mouth archive changes in real time, the data which is not updated by the data loses the essential meaning, meanwhile, in the data change process, it is crucial to trace the historical data, the historical data contains information of the historical meaning (such as the past name of a person), and if only the data is updated once, but not the historical data is stored, the data is disordered.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed 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 invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a flowchart of a method for storing a multi-version knowledge graph according to an embodiment of the present invention.
Fig. 2a is a schematic diagram of a relationship between shared data of the sub-version map and the main version map according to the embodiment of the present invention.
Fig. 2b is an application diagram of a multi-version knowledge graph storage method according to an embodiment of the present invention.
FIG. 3 is a block diagram of a multi-version knowledge-graph storage device according to an embodiment of the present invention.
Fig. 4 is a block diagram of the electronic device according to the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart of a method for storing a multi-version knowledge graph provided in the embodiment, where steps are not executed sequentially except for explicit logical relationships.
Specifically, referring to fig. 1, the method for storing a multi-version knowledge graph provided in this embodiment includes the following steps:
and S10, generating and storing a real-time updated master version map, wherein the master version map is updated along with the update of the data source linked with the master version map.
The data sources may include databases and CSV (Comma-Separated Values Comma/character Separated Values) files. When the data source linked with the main version map is a database, after the database has incremental data, the incremental data can be acquired through an open interface and converted into gallery data, the gallery data is updated, and the main version map is updated according to the updating of the gallery data. And when the data source linked with the main version map is a CSV file, regenerating the main version map according to the updated CSV file after the CSV file is updated.
And S20, generating at least one update time solidified sub-version map and storing the map, wherein the solidification time of the sub-version map is the cutting time of the data source update linked with the sub-version map.
In step S20, at least one sub-version map with a fixed update time is generated, for example, one sub-version map is generated, two sub-version maps with different cure times are generated, three sub-version maps with different cure times are generated, or four sub-version maps with different cure times are generated. The curing time of the sub-version map is the update cutting time of the data source linked with the sub-version map, that is, the data source linked with the sub-version map has the update cutting time and the update cutting time is the curing time. For example, if the user wishes to save (view) the sub-version map before 12 months and 1 day in 2019, the user may select 12 months and 1 day in 2019 as the solidification time of the sub-version map, and correspondingly, select data before 12 months and 1 day in 2019 as the generation data of the sub-version map, that is, the update cut time of the data source linked with the sub-version map (i.e., the data for generating the sub-version map) is 2019, 12 months and 1 day. It should be noted that the data source linked to the sub-version map may be a part of the data source linked to the main version map, for example, the data source linked to the main version map is updated continuously, for example, updated to the current time (for example, 5/27/2020), while the data source linked to the sub-version map is only the part of the data source linked to the main version map updated to 12/1/2019, that is, if the user selects 12/1/2019 as the update cut time, the sub-version map is generated by the data source data before the time. The data source linked to the sub-version atlas may also be gallery data, i.e. data that can be mapped directly, which is part of gallery data generated from the data source linked to the main version atlas. For example, the data source linked to the master version atlas generates gallery data including gallery data updated to 27 days 5 and 27 of 2020, while the data source linked to the sub version atlas includes only gallery data updated therein to 1 day 12 and 12 of 2019. When a user selects an updated cutting time, a sub-version map is correspondingly generated according to data before the updated cutting time.
As shown in fig. 2a, the dashed line with arrows represents the time axis. In particular, for the generated main version map and the sub version map, the original data can be shared, such as the database and the CSV file in the foregoing. All data generated by a user, such as logging in, adding/deleting certain data, modifying certain node data and the like, can be stored in the original data, all data generated by the user can be retained to the maximum extent by sharing the original data, and data loss caused by cutting the original data can be avoided. By taking the form of raw data sharing, but gallery data cutting, the atlas structure can be solidified without missing any data records.
By the technical scheme, the main version map capable of being updated in real time and the at least one sub-version map belonging to the historical version are provided, so that generation and storage of multiple versions of the knowledge map are realized, and real-time updating and history tracing are facilitated. Therefore, compared with the existing map platform/product, the method can trace the historical map on the basis of updating the map in real time, and has better applicability. For example, the data of the public security house mouth archive changes in real time, the data which is not updated by the data loses the essential meaning, meanwhile, the historical data is traced back in the data change process, the historical data contains information of the historical meaning (such as the past name of a person), and if only the data is updated once, but the historical data is not stored, the data is disordered.
It should be noted that the process of constructing a knowledge graph based on specific data (e.g., text data containing information about entities, attributes of the entities, relationships between the entities, etc.) is not a technical problem to be solved by the present invention, and therefore, in this embodiment, a description of how to construct a knowledge graph is omitted.
In addition, the main version map and the sub-version map may be stored in different media or devices, or may be stored in the same medium or device, and at this time, the main version map and the sub-version map may be stored in a partitioned manner, or an index table may be constructed to facilitate search and query.
As an optimized embodiment, step S20 includes the following sub-steps:
and S21, for any sub-version map, selecting the map library data from the map library initialization time point to the solidification time point of the sub-version map as the generation data of the sub-version map.
That is, the data source linked to the sub-version map in step S20 is gallery data. As shown in fig. 2b, the gallery data corresponding to the main version map is segmented on a time basis (i.e., time-sliced) by step S21, and for any one of the sub-version maps, the gallery data from the gallery initialization time point to the solidification time point of the sub-version map is selected as the generation data of the sub-version map. Since the updated cutting time and the curing time are equal, in actual use, although the time slice is used for segmenting the gallery data, the user can cut the gallery data by selecting the curing time on the map display interface.
And S22, generating the sub-version map according to the generated data and storing the sub-version map.
By the technical scheme, the gallery data is segmented on the basis of time, and only the gallery data required by the sub-version map needs to be backed up. However, the original data (such as database data and CSV files) forming the gallery data are divided on a time basis, and the original data linked to the sub-version map and the gallery data generated by the original data need to be backed up. Thus, less data is saved by dividing the gallery data on a time basis than by dividing the original data forming the gallery data on a time basis. Therefore, when the sub-version atlas is generated, the atlas database is divided, so that the data expansion degree can be reduced, and the data redundancy can be reduced.
With continued reference to fig. 1, in a further refinement, the method further includes step S30: and for any sub-version map, saving the map calculation result completed before the sub-version map solidification time as the map calculation result of the sub-version map.
Since the graph calculation result is obtained by performing graph calculation on the sub-version graph, when the sub-version graph is changed, the graph calculation result obtained by calculation is also changed. Through step S30, the sub-version map may be associated with the map calculation result calculated from the sub-version map, thereby ensuring that the map calculation result and the sub-version map are consistent.
With continuing reference to fig. 1, in another further refinement, the method further includes step S40: and for any sub-version map, saving the judgment analysis result completed before the sub-version map curing time as the judgment analysis result of the sub-version map.
Wherein, the analysis result is generated according to the user operation. The user operation comprises adding or deleting map nodes, modifying data attributes, storing all or part of the map structure and the like. Because the judgment analysis result is obtained by the user operating the sub-version map, when the sub-version map changes, the judgment analysis result obtained by the user operating the sub-version map also changes. Through the step S40, the sub-version map may be associated with the analysis result generated by operating the sub-version map, so as to ensure that the analysis result is consistent with the sub-version map.
Based on the inventive concept, the embodiment also provides a storage device of the multi-version knowledge graph. Specifically, referring to fig. 3, the storage device of the multi-version knowledge graph includes:
and the generation module 10 of the master version map is used for generating and storing a master version map updated in real time, wherein the master version map is updated along with the update of the data source linked with the master version map.
And the generation module 20 of the sub-version map is used for generating and storing at least one update time solidified sub-version map, wherein the solidification time of the sub-version map is the cutting time of the data source update linked with the sub-version map.
By the technical scheme, the main version map capable of being updated in real time and the at least one sub-version map belonging to the historical version are provided, so that the generation of multiple versions of the knowledge map is realized, and the history can be updated and traced in real time. Therefore, compared with the existing map platform/product, the method can trace the historical map on the basis of updating the map in real time, and has better applicability. For example, the data of the public security house mouth archive changes in real time, the data which is not updated by the data loses the essential meaning, meanwhile, the historical data is traced back in the data change process, the historical data contains information of the historical meaning (such as the past name of a person), and if only the data is updated once, but the historical data is not stored, the data is disordered.
In a more optimized solution, the generation module 20 of the sub-version map comprises:
and the gallery data selection submodule is used for selecting gallery data from the gallery initialization time point to the solidification time point of the sub-version map as the generation data of the sub-version map for any sub-version map.
And the sub-version map generation submodule is used for generating the sub-version map according to the generated data and storing the sub-version map.
By the technical scheme, the gallery data is segmented on the basis of time, and only the gallery data required by the sub-version map needs to be backed up. However, the original data (such as database data and CSV files) forming the gallery data are divided on a time basis, and the original data linked to the sub-version map and the gallery data generated by the original data need to be backed up. Thus, less data is saved by dividing the gallery data on a time basis than by dividing the original data forming the gallery data on a time basis. Therefore, when the sub-version atlas is generated, the atlas database is divided, so that the data expansion degree can be reduced, and the data redundancy can be reduced.
In particular, for the generated main version map and the sub version map, the original data can be shared, such as the database and the CSV file in the foregoing. All data generated by users, such as logging in, adding and deleting a certain piece of data, modifying a certain node data and the like, can be stored in the original data, the original data is shared, all data generated by the users can be reserved to the maximum extent, and data loss caused by splitting the original data can be avoided. By taking the form of raw data sharing, but gallery data segmentation, the atlas structure can be solidified without missing any data records.
In a further refinement, the means for storing the multi-version knowledge-graph further comprises:
and the graph calculation result storage module is used for storing the graph calculation result completed before the solidification time of the sub-version graph as the graph calculation result of the sub-version graph for any sub-version graph.
Since the graph calculation result is obtained by performing graph calculation on the sub-version graph, when the sub-version graph is changed, the graph calculation result obtained by calculation is also changed. By the technical scheme, the sub-version map can be corresponding to the map calculation result obtained by calculation according to the sub-version map, and the map calculation result is ensured to be consistent with the sub-version map.
In a further refinement, the storage device further comprises:
and the judging analysis result storage module is used for storing the judging analysis result finished before the curing time of any sub-version map as the judging analysis result of the sub-version map.
Wherein, the analysis result is generated according to the user operation. The user operation comprises adding or deleting map nodes, modifying data attributes, storing all or part of the map structure and the like. Because the judgment analysis result is obtained by operating the sub-version map, when the sub-version map is changed, the judgment analysis result obtained by calculation is also changed. By the technical scheme, the sub-version map can be corresponding to the judging analysis result generated by operating the sub-version map, and the judging analysis result is ensured to be consistent with the sub-version map. With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
As shown in fig. 4, the present embodiment also provides an electronic device, which may include a processor 51 and a memory 52, wherein the memory 52 is coupled to the processor 51. It is noted that this figure is exemplary and that other types of structures may be used in addition to or in place of this structure to implement data extraction, graph generation, communication, or other functionality.
As shown in fig. 4, the electronic device may further include: an input unit 53, a display unit 54, and a power supply 55. It is to be noted that the electronic device does not necessarily have to comprise all the components shown in fig. 4. Furthermore, the electronic device may also comprise components not shown in fig. 4, reference being made to the prior art.
The processor 51, also sometimes referred to as a controller or operational control, may comprise a microprocessor or other processor device and/or logic device, the processor 51 receiving input and controlling operation of the various components of the electronic device.
The memory 52 may be one or more of a buffer, a flash memory, a hard drive, a removable medium, a volatile memory, a non-volatile memory, or other suitable devices, and may store the configuration information of the processor 51, the instructions executed by the processor 51, the recorded table data, and other information. The processor 51 may execute a program stored in the memory 52 to realize information storage or processing, or the like. In one embodiment, a buffer memory, i.e., a buffer, is also included in the memory 52 to store the intermediate information.
Embodiments of the present invention further provide a computer readable instruction, where when the instruction is executed in an electronic device, the program causes the electronic device to execute the operation steps included in the method of the present invention.
Embodiments of the present invention further provide a storage medium storing computer-readable instructions, where the computer-readable instructions cause an electronic device to execute the operation steps included in the method of the present invention.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Those of ordinary skill in the art will appreciate that the various illustrative modules described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the several embodiments provided in the present application, it should be understood that the disclosed system may be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the modules is merely a logical division, and in actual implementation, there may be other divisions, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted, or not implemented.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention.

Claims (10)

1. A multi-version knowledge graph storage method is characterized by comprising the following steps:
generating and storing a real-time updated master version map, wherein the master version map is updated along with the update of the data source linked with the master version map;
and generating and storing at least one update time solidified sub-version map, wherein the solidification time of the sub-version map is the cutting time of the data source update linked with the sub-version map.
2. The method of claim 1, wherein the step of generating at least one update-time-hardened sub-version map comprises:
for any sub-version map, selecting map library data from the map library initialization time point to the curing time point of the sub-version map as the generation data of the sub-version map;
and generating the sub-version map according to the generated data and storing the sub-version map.
3. The method of storing a multi-version knowledge-graph of claim 2, further comprising the steps of:
and for any sub-version map, saving the map calculation result completed before the sub-version map solidification time as the map calculation result of the sub-version map.
4. The method of storing a multi-version knowledge-graph according to claim 2 or 3, further comprising the steps of:
and for any sub-version map, storing a judgment analysis result completed before the sub-version map solidification time as a judgment analysis result of the sub-version map, wherein the judgment analysis result is generated according to user operation.
5. A multi-version knowledge graph storage device, comprising:
the generation module of the master version map is used for generating and storing a master version map updated in real time, wherein the master version map is updated along with the update of the data source linked with the master version map;
and the generation module of the sub-version map is used for generating and storing at least one sub-version map with fixed update time, wherein the fixed time of the sub-version map is the cutting time of the update of the data source linked with the sub-version map.
6. The multi-version knowledge graph storage device according to claim 5, wherein the sub-version graph generation module comprises:
the drawing library data selection submodule is used for selecting the drawing library data from the drawing library initialization time point to the curing time point of the sub-version map as the generation data of the sub-version map for any sub-version map;
and the sub-version map generation submodule is used for generating the sub-version map according to the generated data and storing the sub-version map.
7. The multi-version knowledge-graph storage device of claim 6, further comprising:
and the graph calculation result storage module is used for storing the graph calculation result completed before the solidification time of the sub-version graph as the graph calculation result of the sub-version graph for any sub-version graph.
8. The multi-version knowledge-graph storage device according to claim 6 or 7, further comprising:
and the judging analysis result storage module is used for storing the judging analysis result finished before the curing time of any sub-version map as the judging analysis result of the sub-version map, wherein the judging analysis result is generated according to the operation of a user.
9. A computer readable storage medium comprising computer readable instructions that, when executed, cause a processor to perform the operations of the method of any of claims 1-4.
10. An electronic device, comprising:
a memory storing program instructions;
a processor coupled to the memory and executing the program instructions in the memory to implement the steps of the method of any of claims 1-4.
CN202010576844.6A 2020-06-23 2020-06-23 Multi-version knowledge graph storage method and device, storage medium and electronic equipment Active CN111475602B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010576844.6A CN111475602B (en) 2020-06-23 2020-06-23 Multi-version knowledge graph storage method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010576844.6A CN111475602B (en) 2020-06-23 2020-06-23 Multi-version knowledge graph storage method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN111475602A true CN111475602A (en) 2020-07-31
CN111475602B CN111475602B (en) 2020-10-16

Family

ID=71763957

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010576844.6A Active CN111475602B (en) 2020-06-23 2020-06-23 Multi-version knowledge graph storage method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN111475602B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112860912A (en) * 2021-02-10 2021-05-28 北京字节跳动网络技术有限公司 Method and device for updating knowledge graph
CN114579888A (en) * 2022-04-26 2022-06-03 支付宝(杭州)信息技术有限公司 Methods, systems, and non-transitory computer-readable media for knowledge-graph data construction

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107368468A (en) * 2017-06-06 2017-11-21 广东广业开元科技有限公司 A kind of generation method and system of O&M knowledge mapping
US20190057165A1 (en) * 2017-02-02 2019-02-21 Kensho Technologies, Llc Graphical user interface for displaying search engine results
CN109657067A (en) * 2018-11-19 2019-04-19 平安科技(深圳)有限公司 Methods of exhibiting, device, computer equipment and the storage medium of knowledge mapping
CN109871373A (en) * 2019-01-31 2019-06-11 北京明略软件系统有限公司 A kind of date storage method and device, computer readable storage medium
CN110580293A (en) * 2019-09-03 2019-12-17 北京明略软件系统有限公司 Entity relationship storage method and device
CN110609887A (en) * 2019-09-18 2019-12-24 中科赛思联科(苏州)网络科技有限公司 Scientific and technological resource big data query recommendation system and method based on knowledge graph
CN110688495A (en) * 2019-12-09 2020-01-14 武汉中科通达高新技术股份有限公司 Method and device for constructing knowledge graph model of event information and storage medium
CN111090683A (en) * 2019-11-29 2020-05-01 上海勘察设计研究院(集团)有限公司 Engineering field knowledge graph construction method and generation device thereof
CN111209444A (en) * 2020-01-06 2020-05-29 电子科技大学 Time-series multi-version graph based topological data storage method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190057165A1 (en) * 2017-02-02 2019-02-21 Kensho Technologies, Llc Graphical user interface for displaying search engine results
CN107368468A (en) * 2017-06-06 2017-11-21 广东广业开元科技有限公司 A kind of generation method and system of O&M knowledge mapping
CN109657067A (en) * 2018-11-19 2019-04-19 平安科技(深圳)有限公司 Methods of exhibiting, device, computer equipment and the storage medium of knowledge mapping
CN109871373A (en) * 2019-01-31 2019-06-11 北京明略软件系统有限公司 A kind of date storage method and device, computer readable storage medium
CN110580293A (en) * 2019-09-03 2019-12-17 北京明略软件系统有限公司 Entity relationship storage method and device
CN110609887A (en) * 2019-09-18 2019-12-24 中科赛思联科(苏州)网络科技有限公司 Scientific and technological resource big data query recommendation system and method based on knowledge graph
CN111090683A (en) * 2019-11-29 2020-05-01 上海勘察设计研究院(集团)有限公司 Engineering field knowledge graph construction method and generation device thereof
CN110688495A (en) * 2019-12-09 2020-01-14 武汉中科通达高新技术股份有限公司 Method and device for constructing knowledge graph model of event information and storage medium
CN111209444A (en) * 2020-01-06 2020-05-29 电子科技大学 Time-series multi-version graph based topological data storage method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112860912A (en) * 2021-02-10 2021-05-28 北京字节跳动网络技术有限公司 Method and device for updating knowledge graph
CN112860912B (en) * 2021-02-10 2024-05-07 北京字节跳动网络技术有限公司 Method and device for updating knowledge graph
CN114579888A (en) * 2022-04-26 2022-06-03 支付宝(杭州)信息技术有限公司 Methods, systems, and non-transitory computer-readable media for knowledge-graph data construction
CN114579888B (en) * 2022-04-26 2022-08-30 支付宝(杭州)信息技术有限公司 Methods, systems, and non-transitory computer-readable media for knowledge-graph data construction

Also Published As

Publication number Publication date
CN111475602B (en) 2020-10-16

Similar Documents

Publication Publication Date Title
US20180039399A1 (en) Interactive user interface for dynamically updating data and data analysis and query processing
Karnitis et al. Migration of relational database to document-oriented database: Structure denormalization and data transformation
US8983982B2 (en) Mechanism for deprecating object oriented data
US10579678B2 (en) Dynamic hierarchy generation based on graph data
EP3340078B1 (en) Interactive user interface for dynamically updating data and data analysis and query processing
CN109933311A (en) A kind of information system creation method and relevant apparatus
CN111324577B (en) Yml file reading and writing method and device
CN112650766A (en) Database data operation method, system and server
CN111475602B (en) Multi-version knowledge graph storage method and device, storage medium and electronic equipment
CN111078094B (en) Distributed machine learning visualization device
CN105989015B (en) Database capacity expansion method and device and method and device for accessing database
US20070083543A1 (en) XML schema template builder
US11675769B2 (en) On-demand, dynamic and optimized indexing in natural language processing
CN112182236A (en) Knowledge graph construction method and system and electronic equipment
CN110597821B (en) Method and device for changing database table structure
CN116226112A (en) Data cleaning method and device, storage medium and electronic equipment
CN106780157B (en) Ceph-based power grid multi-temporal model storage and management system and method
US9330372B2 (en) Generating an improved development infrastructure
CN109408322B (en) A kind of automatic business process implementation method of cloud platform
CN110389944B (en) Metadata management system and method based on model
CN116894035A (en) Multi-source heterogeneous data blood-edge relation construction method, system, equipment and medium
CN111984680B (en) Method and system for realizing materialized view performance optimization based on Hive partition table
CN115017161A (en) Method, device and application for updating tree data structure by combining virtual DOM
CN114356403A (en) Configuration data processing method, device and system based on low-code application development
CN114385864A (en) Graph searching method, device, equipment 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
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Storage method, device, storage medium and electronic equipment of multi version knowledge atlas

Effective date of registration: 20210305

Granted publication date: 20201016

Pledgee: Agricultural Bank of China Limited Chengdu Shudu sub branch

Pledgor: CHENGDU BUSINESS BIG DATA TECHNOLOGY Co.,Ltd.

Registration number: Y2021980001476

PE01 Entry into force of the registration of the contract for pledge of patent right
PP01 Preservation of patent right

Effective date of registration: 20240428

Granted publication date: 20201016