Knowledge graph creation method, information acquisition method, device and equipment
By adding time period nodes to the knowledge graph, the relationship line is simplified, the problem of low data acquisition efficiency is solved, data analysis capabilities and efficiency are improved, and data acquisition and analysis are achieved efficiently.
Patent Information
- Application Number
- CN202010284836.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-04-13
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2040-04-13
AI Technical Summary
In the prior art, data acquisition efficiency is low, knowledge graph construction methods are complex, resulting in low data acquisition efficiency, and data analysis resources are scarce and analysis capabilities are insufficient.
By adding time periods as data nodes in the knowledge graph, the node relationship is simplified, and the node relationships based on entity names, data indicators and time periods are quickly and accurately obtained data, improving data acquisition efficiency.
It has achieved the improvement of data acquisition efficiency, simplified the relationship line of the knowledge graph, improved data analysis capabilities, and provided data attribution analysis and intelligent services.
Smart Images

Figure CN113535966B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of big data processing technology, and in particular to a knowledge graph creation method, information acquisition method, device and equipment. Background Art
[0002] For many years, data acquisition in production work is still mainly done by manual structured query language (SQL) query. This is because the data acquisition process usually starts from data points, then to thematic data points, and then to the corresponding data. For example, first obtain the data of a certain application (APP) business, then find the thematic data of a special service from the APP, and then find the data of each type of service from the thematic data. This kind of data acquisition efficiency is relatively low.
[0003] In order to improve the efficiency of data acquisition, the knowledge graph of data is currently built based on the data warehouse, and then the corresponding data is acquired based on the corresponding entity nodes and the relationship information between entity nodes in the knowledge graph. However, the current way of constructing the knowledge graph still makes the efficiency of data acquisition low. Among them, the entity node is the name of an APP, the name of each project, or the name of a special service, etc. Summary of the invention
[0004] One or more embodiments of the present invention describe a method for creating a knowledge graph, a method, apparatus and device for acquiring information, which effectively improve the efficiency of data acquisition.
[0005] In order to solve the above-mentioned technical problems, the present invention is achieved as follows:
[0006] In a first aspect, a method for creating a knowledge graph is provided, which may include:
[0007] Acquire first data, the first data including multiple entity names, data indicators and time periods, and attribute information between the multiple entity names;
[0008] A knowledge graph is created based on preset graph relationships, attribute information, data indicators and time periods between multiple entity names; wherein the preset graph relationships include nodes of time periods.
[0009] In a second aspect, a method for obtaining information is provided, which may include:
[0010] Receiving input keywords, the keywords including at least one of an entity name, a data indicator, and a time period;
[0011] Generate information associated with keywords according to the graph relationship of the knowledge graph; wherein the knowledge graph is the knowledge graph created by the method described in the first aspect.
[0012] In a third aspect, a device for creating a knowledge graph is provided, which may include:
[0013] An acquisition unit, configured to acquire first data, the first data including a plurality of entity names, data indicators and time periods, and attribute information between the plurality of entity names;
[0014] A creation unit is used to create a knowledge graph based on a preset graph relationship, attribute information, data indicators and time periods between multiple entity names; wherein the preset graph relationship includes nodes of time periods.
[0015] In a fourth aspect, a device for obtaining information is provided, which may include:
[0016] A receiving unit, configured to receive an input keyword, wherein the keyword includes at least one of an entity name, a data indicator, and a time period;
[0017] A generation unit, used to generate information associated with keywords according to the graph relationship of the knowledge graph; wherein the knowledge graph is a knowledge graph created by the device described in the third aspect.
[0018] In a fifth aspect, a computing device is provided, comprising at least one processor and a memory, wherein the memory is used to store computer program instructions, and the processor is used to read and execute the computer program instructions to control the computing device to implement any one of the methods of the first to second aspects.
[0019] In a sixth aspect, a computer-readable storage medium is provided, on which a computer program is stored. If the computer program is executed in a computer, the computer is caused to execute the method of any one of the first to second aspects.
[0020] In the scheme of the embodiment of the present invention, a knowledge graph based on entity names, data indicators and time periods as nodes is created through a preset graph relationship. In the data acquisition process, the corresponding data can be quickly and accurately acquired based on the node relationship of entity names, data indicators and time periods in the knowledge graph, thereby improving the efficiency of data acquisition. At the same time, the knowledge graph is created by using the time period as a node of the knowledge graph, which simplifies the relationship lines of each node in the knowledge graph. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The present invention may be better understood from the following description of specific embodiments of the present invention in conjunction with the accompanying drawings, wherein the same or similar reference numerals represent the same or similar features.
[0022] Figure 1 It is a schematic diagram of the structure of a knowledge graph provided by an embodiment of the present invention;
[0023] Figure 2 It is a flowchart of a method for creating a knowledge graph provided by an embodiment of the present invention;
[0024] Figure 3 It is a schematic diagram of a design framework of a knowledge graph provided by an embodiment of the present invention;
[0025] Figure 4 is a schematic diagram of a method for obtaining information provided by an embodiment of the present invention;
[0026] Figure 5 It is a structural schematic diagram of a knowledge graph creation device provided by an embodiment of the present invention;
[0027] Figure 6 is a structural schematic diagram of a data acquisition device provided by an embodiment of the present invention;
[0028] Figure 7 It is a structural schematic diagram of a computing device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0029] The features and exemplary embodiments of various aspects of the present invention will be described in detail below. In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and Examples. It should be understood that the specific embodiments described herein are only configured to explain the present invention and are not configured to limit the present invention. For those skilled in the art, the present invention can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present invention by illustrating examples of the present invention.
[0030] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply the existence of any such measured relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "include..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0031] For big data processing, the current data acquisition has the following problems. First, data query is usually performed in the form of SQL query, and the data acquisition efficiency is relatively low. Second, the value of data is not fully released, and users need to have a high level of data interpretation ability to convert data performance into data processing actions, that is, the data interpretation requirements are high. Third, in most cases, the energy of professional analysts is difficult to meet the large number of data analysis requirements, and most staff members cannot obtain timely data decision support, that is, data analysis resources are scarce. Finally, the analysis process of each data dimension in data analysis is cumbersome, and it is easy to lose the molecules of important dimension data, that is, insufficient analysis ability.
[0032] In order to solve the above problems, the database organizes the relationship between data through relational tables, that is, in a two-dimensional way. This method cannot establish the association between data well, and cannot or cannot clearly express the source and results of data. At the same time, directly obtaining data through relational tables has the following disadvantages: 1. Data acquisition is relatively difficult, because most data databases are built according to the snowflake model, that is, data storage is relatively scattered, and the relationship between data in the query process is relatively messy and complex, and the amount of calculation is relatively large; 2. It is impossible to provide data attribution analysis and intelligent services for multi-indicator correlation insights, because data is stored in separate tables, and it is impossible to calculate the relationship between data and the mutual influence between data, so it can only provide some intelligent services of suggestions.
[0033] Therefore, the data in the database is graphed to form a knowledge graph, and a data relationship method is used to describe and manage data, so as to provide data processing services more efficiently. However, the current knowledge graph data relationships are huge and redundant. In intelligent services, many calculations require data for a long period of time (such as 365 days). For such data calculations, the amount of calculations will be large, the calculation efficiency will be low, and the storage cost will be relatively high.
[0034] In order to solve the above problems, the embodiments of the present invention provide a method for creating a graph, a method for obtaining information, an apparatus and a device, by adding data nodes with attached time series information (or called time period) to the knowledge graph, such as Figure 1 As shown in the figure, a shopping mall is used as an example. Figure 1 The knowledge graph shown has added data nodes for time periods. Compared with the prior art, the time period exists in the knowledge graph as a relationship line between each data node, which simplifies the relationship lines of the knowledge graph. In addition, during the data acquisition process, the corresponding data can be quickly and accurately acquired based on the relationship information between entity nodes in the knowledge graph, thereby improving the efficiency of data acquisition.
[0035] exist Figure 1The knowledge graph shown includes multiple data nodes, such as "A e-commerce", "brand", "merchant", "core channel", "venue channel", "brand_A e-commerce", "core channel_A e-commerce", "merchant_A e-commerce", "venue channel_A e-commerce", etc. These data nodes can also be called entity nodes; it also includes data indicators and time periods such as "time period 1_indicator 1" and "time period 2_indicator 1". Data indicators and time periods are also data nodes in the knowledge graph. Figure 1 It is just a diagram of the graph. The knowledge graph can also include the relationship information between other entity nodes, entity nodes and data indicators and time periods; it can also include other shopping malls, such as B shopping mall, C shopping mall and other industries.
[0036] The technical solution provided by the embodiments of the present invention is described below in conjunction with the accompanying drawings.
[0037] Figure 2 FIG. 1 is a flow chart of a method for creating a knowledge graph provided by an embodiment of the present invention. Figure 2 As shown, the method may include the following steps:
[0038] S110, obtaining first data, the first data including multiple entity names, data indicators and time periods, and attribute information between the multiple entity names.
[0039] The first data is obtained from the database. The first data may be data that needs to be analyzed based on data submitted by the application end. The first data includes multiple entity names, data indicators and time periods. The entity name may be the name of an APP, the name of a project, the name of a product, or the name of a special service, such as "A e-commerce", "brand", "merchant", "venue channel", etc. The entity name may also be a combination of the name of an APP, the name of a project, the name of a product, or the name of a special service, such as "brand_A e-commerce", "merchant_A e-commerce", "venue channel_A e-commerce", etc.
[0040] Data indicators refer to indicators used to calibrate the amount of entity name data, which can also be called target parameters. They can be the amount of resource transfer (such as transaction volume), product sales, product views, project costs and profits, etc.
[0041] The time period is a concept of time, and may be a preset time period, for example, 1 hour, 1 day, seven months, 1 year, and so on.
[0042] The attribute information between multiple entity names refers to the relationship information between entity names and entity names in the knowledge graph, including but not limited to the definition of entity names, hierarchical information of entity names, relationship information between entity names, relationship information between entity names and data indicators, time periods, etc.
[0043] For example, Figure 1 As shown, the relationship information between entity names includes the definitions of entity names such as "A e-commerce", "brand", "merchant", "core channel", and "venue channel"; the relationship information between "A e-commerce", "brand", "merchant", "core channel", and "venue channel"; including the relationship information between "brand_A e-commerce", "core channel_A e-commerce", "merchant_A e-commerce", and "venue channel_A e-commerce"; as well as the hierarchical relationship between "A e-commerce" and "brand" and "brand_A e-commerce", the hierarchical relationship between "A e-commerce" and "merchant", and "merchant_A e-commerce", and so on.
[0044] S120, creating a knowledge graph based on a preset graph relationship, attribute information, data indicators and time periods between multiple entity names, wherein the preset graph relationship includes nodes of time periods.
[0045] Databases are generally designed based on the snowflake model. The snowflake model refers to when one or more dimension tables are not directly connected to the fact table, but are connected to the fact table through other dimension tables. Its diagram is like multiple snowflakes connected together, so it is called a snowflake model.
[0046] The fact table is used in the database to store the main content of the subject. The database can include one or more fact tables. Taking daily workload as an example, daily workload can include the following attributes: working date, personnel, working hours, overtime hours, nature of work, whether it is field work, work content, and reviewer; among them, working hours and overtime hours are the main content, that is, the basic content of the workload body; other information, such as working date, personnel, nature, whether it is field work, etc. can be classified. For example, the working date has the levels of year, month, and day, personnel have the relationship between superiors and subordinates, and whether it is field work also has two types of attendance classification: field work and normal work. Usually, the attributes that can be classified are listed separately as dimension tables.
[0047] A fact table typically includes a multi-part index that maintains the relationship between facts and dimensions.
[0048] The creation of the knowledge graph in the embodiment of the present invention is designed based on the snowflake model, and the graph relationship is designed in advance, mainly including hierarchical dimension design (or called dimension design), relationship design, attribute design and rule design, such as Figure 3 shown.
[0049] Concept design is to abstract all data dimensions into concepts, which have different levels. The concept here refers to a collection of classes, such as thing concepts and event concepts, such as Figure 1 The categories shown are "Merchants", "Venue Channels", etc.
[0050] Concept design includes concept definition, concept scope and concept level. Figure 1 As shown in the figure, the concepts of "merchant" and "brand" are defined. The scope of the concept refers to the scope of services allowed, such as the goods allowed to be sold. In other words, it is a legal constraint on the sale of goods. The concept level refers to how many levels of relationships are set. You can set multiple levels of concepts, including zero-level concepts, first-level concepts, second-level concepts, etc.
[0051] Relationship design includes inter-concept relationships, intra-concept relationships, and concept hierarchical relationships. Figure 1 As shown in the figure, "A e-commerce as a whole" is a zero-level concept; "A e-commerce", "brand", "merchant", "core channel", and "venue channel" are first-level concepts; "brand_A e-commerce", "core channel_A e-commerce", "merchant_A e-commerce", and "venue channel_A e-commerce" are second-level concepts, and "time period 1_indicator 1" and "time period 2_indicator 1" are third-level concepts; the lines between the zero-level concept, the first-level concept, the second-level concept, and the third-level concept are inter-level relationships, and the intra-level relationship can be the relationship between "B e-commerce" and "A e-commerce" ( Figure 1 not shown).
[0052] Attribute design includes primary key attributes, indicator attributes and time period attributes. Primary key attributes refer to the index relationship of constructing fact tables, so as to query the relationship between fact data and classification data in dimension tables. In the embodiment of the present invention, fact data can be data indicators. Indicator attributes can include resource transfer volume (such as transaction volume), number of times a product is viewed, etc. Time period attributes set the time period for which data is summarized, such as 1 hour, 1 day, 1 month, 1 year, etc.
[0053] The rule design includes unified indicator words, unified time words, and unified dimension words. For example, the same data indicator word is used as a node in the knowledge graph, or the same time word is used as a node in the knowledge graph, or the same dimension (or entity name) is used as a node in the knowledge graph.
[0054] After the knowledge graph relationship is pre-designed, a knowledge graph is created based on the pre-designed graph relationship and the attribute information, data indicators and time periods between multiple entity names in the acquired first data. In the created knowledge graph, the time period exists as a node.
[0055] The embodiment of the present invention adds the time period as a data node to the knowledge graph. In the process of data acquisition, the corresponding data can be quickly and accurately acquired based on the node relationship between the entity name, data indicator and time period in the knowledge graph, thereby improving the efficiency of data acquisition. At the same time, the knowledge graph is created by using the time period as a node of the knowledge graph, which reduces the relationship lines in the knowledge graph and simplifies the knowledge graph.
[0056] Optionally, in one embodiment, the preset graph relationship includes the definition of nodes composed of multiple entity names, the scope of the nodes and the hierarchy of the nodes, as well as the relationship between the nodes, the relationship within the nodes, and the hierarchical relationship of the nodes. The entity name refers to the dimension of the classified category in each hierarchical concept in the graph relationship design, such as "A e-commerce", "brand", "merchant", "core channel", "venue channel" in the first-level concept, and "brand_A e-commerce", "core channel_A e-commerce", "merchant_A e-commerce", "venue channel_A e-commerce" in the second-level concept. The node here refers to the concept.
[0057] Optionally, in one embodiment, a knowledge graph is created based on a preset graph relationship, attribute information between multiple entity names, data indicators and the time period, including:
[0058] Cluster the attribute information, data indicators and time periods between multiple entity names; create a knowledge graph based on the preset graph relationship and the clustered entity names, data indicators and time period data as nodes of the knowledge graph.
[0059] Cluster the data with different entity names, different data indicators, and different time periods, and use the preset graph relationships and the clustered entity names, data indicators, and time period data as nodes of the knowledge graph to create a knowledge graph.
[0060] Optionally, in one embodiment, a knowledge graph is created based on preset graph relationships and clustered entity names, data indicators, and time period data as nodes of the knowledge graph, including:
[0061] A knowledge graph is created based on the preset graph relationships and the data corresponding to the same entity name, the same data indicator and different time periods after clustering as nodes of the knowledge graph.
[0062] The embodiment of the present invention adds the time period as a data node to the knowledge graph. During the data acquisition process, the corresponding data can be quickly and accurately acquired based on the node relationship of the same entity name, the same data indicator or the same time period in the knowledge graph, thereby improving the efficiency of data acquisition.
[0063] Optionally, in one embodiment, the method may further include:
[0064] The preset overview template is used to edit the data obtained based on the created knowledge graph into the format of the overview template for users to read.
[0065] Figure 2 The knowledge graph created by the method can be used as a plug-in application for data acquisition in a database, or as a database system application. The specific application scenario is not limited in the embodiments of the present invention.
[0066] Figure 4 FIG. 1 is a schematic diagram of a method for obtaining information provided by an embodiment of the present invention. Figure 4 As shown, the method may include the following steps:
[0067] S210, receiving input keywords, where the keywords include at least one of an entity name, a data indicator, and a time period.
[0068] When you need to get the required data from the database, based on Figure 2 The knowledge graph created in is obtained from the database.
[0069] Receive keyword input based on the application end, where the keyword may include at least one of an entity name, a data indicator, or a time period. S220: Generate information associated with the keyword according to the graph relationship of the knowledge graph.
[0070] Based on the knowledge graph relationship and the keyword, the data associated with the keyword is obtained from the database. In the preset relationship graph, the concept definition, concept scope, concept hierarchy, inter-concept relationship, intra-concept relationship, concept hierarchy relationship, primary key attribute, indicator attribute, time period attribute, unified indicator word, unified time word and unified dimension word (or entity name) are designed, so Figure 2 The created knowledge graph can provide data query services for any multi-relationships, and can quickly and accurately obtain corresponding data from each entity name, data indicator and time period, thereby improving the efficiency of data acquisition.
[0071] At the same time, based on the relationship between concepts composed of entity names in the knowledge graph, the relationship within concepts composed of entity names, and the relationship between conceptual hierarchies composed of entity names, the relationship between entity names, data indicators and time periods can be used to perform contribution analysis of the corresponding data of the entity names, intelligent analysis of data paths, and attribution analysis of data, thereby improving data analysis capabilities.
[0072] For example, if the received keywords to be searched are time period 1 (such as 1 month) and data indicator 1 (such as trading volume), then the trading volume for 1 month under each graph path corresponding to all entity names in the knowledge graph is obtained based on the knowledge graph.
[0073] For another example, during the data acquisition process, a data contribution analysis is conducted to obtain the transaction volume of all brands within one month. It is found that the transaction volume of brand A within one month accounts for 60% of the total transaction volume of brand sales in one month. Therefore, the analysis shows that brand A has the greatest contribution.
[0074] For another example, in data attribution processing, we take the transaction volume of brand A in May and June as an example. The transaction volume of brand A in May is 1,000, and the transaction volume of all brands in June is 990. The transaction volume in June is 1% lower than that in May. Data analysis shows that the return volume of merchant X is 10. The attribution analysis shows that there is something wrong with the sales model of merchant X. It should be noted that this is just an example, and the specific situation can be analyzed according to the actual situation.
[0075] The embodiment of the present invention is based on Figure 2 The knowledge graph created by the embodiment shown can be used for keyword query, and can intelligently obtain data quickly and accurately through the entity names, data indicators and time periods at each level of the knowledge graph. At the same time, data analysis and data attribution analysis can be provided, improving data analysis capabilities.
[0076] Optionally, in one embodiment, the method may further include:
[0077] S230, receiving an overview template selected by a user; and editing the generated information related to the keyword according to the format of the overview template to generate display information.
[0078] The overview template may be an edited template with a fixed format or a personalized template. It may be designed based on user needs, and the user may independently select an overview template for the information to be presented, thereby improving the user experience.
[0079] Optionally, in one embodiment, after editing the generated keyword-related information according to the format of the overview template to generate display information, the method further includes:
[0080] S240: Display the display information for the user to read.
[0081] In one embodiment, the display information may be notification information in the APP, which pushes and displays report information to the user. The report content is content pushed based on keywords configured by the user. For example, when setting up birthday information push, the birthday dates of friends in the corresponding address book in the APP can be extracted, and a push message of blessing messages can be sent to friends whose birthdays are coming up on the corresponding date.
[0082] Figures 1 to 4 Describes the creation method of knowledge graph and the method of information acquisition. Figures 5 to 7The knowledge graph creation device and data acquisition device provided in the embodiments of the present invention are described.
[0083] Figure 5 It is a knowledge graph creation device provided by an embodiment of the present invention. The device 500 includes an acquisition unit 510 and a creation unit 520.
[0084] The acquisition unit 510 is used to acquire first data, where the first data includes multiple entity names, data indicators and time periods, and attribute information between the multiple entity names.
[0085] The creation unit 520 is used to create a knowledge graph based on a preset graph relationship, attribute information between multiple entity names, data indicators and the time period; wherein the preset graph relationship includes nodes of the time period.
[0086] Optionally, in one embodiment, the preset graph relationship includes the definition of nodes composed of multiple entity names, the scope of the nodes and the hierarchy of the nodes, as well as the relationship between the nodes and the hierarchical relationship of the nodes.
[0087] Optionally, in one embodiment, the creation unit 520 is specifically used to: cluster the attribute information, data indicators and time periods between multiple entity names; and create a knowledge graph based on the preset graph relationship and the data of the entity names, data indicators and time periods after clustering as nodes of the knowledge graph. Optionally, in one embodiment, the creation unit 520 is specifically used to create a knowledge graph based on the preset graph relationship and the data corresponding to the same entity name, the same data indicator and different time periods after clustering as nodes of the knowledge graph.
[0088] Each unit of the device of the embodiment of the present invention can realize Figure 2 The method for creating the knowledge graph in the embodiment of the present invention will not be described here for the sake of brevity. The device provided by the embodiment of the present invention can quickly and accurately acquire data based on the relationship information of the knowledge graph during the data acquisition process, thereby improving the efficiency of data acquisition.
[0089] Figure 6 It is an information acquisition device provided by an embodiment of the present invention. The device 600 includes a receiving unit 610 and a generating unit 620.
[0090] The receiving unit 610 is used to receive input keywords, where the keywords include at least one of an entity name, a data indicator, and a time period.
[0091] A generating unit 620 is used to generate information associated with keywords according to the graph relationship of the knowledge graph; wherein the knowledge graph is Figure 5The knowledge graph created by the device.
[0092] Optionally, in one embodiment, the receiving unit 610 is further configured to receive a summary template selected by a user; the generating unit 620 is further configured to edit the generated information associated with the keyword in the format of the summary template to generate display information.
[0093] Optionally, in one embodiment, the device 600 further includes a display unit 630 for displaying information.
[0094] Each unit of the device provided in the embodiment of the present invention can be implemented Figure 4 The method of obtaining the information shown is described briefly and will not be repeated here. Figure 5 The knowledge graph created by the device acquires data based on the received keywords, and can quickly and accurately acquire data through the relationship information of the knowledge graph, thereby improving the efficiency of data acquisition.
[0095] Figure 7 An embodiment of the present invention further provides a structural schematic diagram of a computing device. Figure 7 The computing device shown can implement a method for creating a knowledge graph and a method for processing data.
[0096] The device may include a processor 701 and a memory 702 storing computer program instructions.
[0097] Specifically, the processor 701 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured as one or more integrated circuits of the embodiments of the present application.
[0098] The memory 702 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 702 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a tape, or a universal serial bus (USB) drive or a combination of two or more of these. Where appropriate, the memory 702 may include a removable or non-removable (or fixed) medium. Where appropriate, the memory 702 may be inside or outside the integrated gateway device. In a particular embodiment, the memory 702 is a non-volatile solid-state memory. In a particular embodiment, the memory 702 includes a read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM) or a flash memory, or a combination of two or more of these.
[0099] The processor 701 reads and executes the computer program instructions stored in the memory 702 to implement Figure 2 and Figure 4 Any of the methods in the embodiments shown.
[0100] In one example, the device may further include a bus 704. Figure 7 As shown, the processor 701, the memory 702 and the transceiver 703 are connected via a bus 704 and communicate with each other.
[0101] Bus 704 includes hardware, software or both.For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industry standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industry standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In suitable cases, bus 703 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.
[0102] The embodiment of the present invention also provides a computer-readable storage medium corresponding to the method for creating the above-mentioned indication graph and the method for data processing. In a possible embodiment, the embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed in a computer, the computer executes the steps of at least one of the following methods in the embodiment of the present invention: the method for creating a knowledge graph and the method for data processing.
[0103] It should be clear that the present invention is not limited to the specific configurations and processes described in the above embodiments and shown in the figures. For the convenience and brevity of description, a detailed description of the known methods is omitted here, and the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, which will not be repeated here.
[0104] Those skilled in the art can clearly understand that the method process of the present invention is not limited to the specific steps described and shown. Any technician familiar with the technical field, after understanding the spirit of the present invention, can make various changes, modifications and additions, or equivalent substitutions and change the order of steps within the technical scope disclosed by the present invention. These modifications or substitutions should be included in the protection scope of the present invention.
Claims
1. A method for creating a knowledge graph, comprising: Acquire first data, the first data including multiple entity names, data indicators and time periods, and attribute information between the multiple entity names, each of the entity names including the name of an application, the name of a project, the name of a product, the name of a special service, or each of the entity names including a combination of the name of the application, the name of the project, the name of the product, or the name of the special service, and the data indicator refers to an indicator used to calibrate the data volume of the entity name; Creating a knowledge graph according to the preset graph relationship, the attribute information between the multiple entity names, the data indicators and the time period; Wherein, the preset graph relationship includes nodes of time period; The preset graph relationship includes the definition of the nodes composed of the multiple entity names, the scope of the nodes and the hierarchy of the nodes, as well as the relationship between the nodes and the hierarchical relationship of the nodes; The knowledge graph includes nodes of the knowledge graph and entity names and relationship information between entity names, and the nodes of the knowledge graph are preset graph relationships and clustered entity names, data indicators and time period data; The entity names and the relationship information between the entity names include the definition of the entity names, the hierarchical information of the entity names, and the relationship information between the entity names and data indicators and time periods.
2. The method according to claim 1, creating a knowledge graph based on the preset graph relationship, the attribute information between the multiple entity names, the data indicators and the time period, comprising: Clustering the attribute information between the multiple entity names, the data indicators, and the time period; Create a knowledge graph based on the preset graph relationships and clustered entity names, data indicators and time period data as nodes of the knowledge graph.
3. According to the method of claim 2, the step of creating a knowledge graph based on the preset graph relationship and the clustered entity names, data indicators and time period data as nodes of the knowledge graph comprises: A knowledge graph is created based on the preset graph relationships and the data corresponding to the same entity name, the same data indicator and different time periods after clustering as nodes of the knowledge graph.
4. A method for obtaining information, comprising: receiving input keywords, wherein the keywords include at least one of an entity name, a data indicator, and a time period; Generate information associated with the keyword according to the graph relationship of the knowledge graph; Wherein, the knowledge graph is a knowledge graph created by the method described in any one of claims 1 to 3.
5. The method according to claim 4, further comprising: receiving a user-selected overview template; The generated information associated with the keyword is edited according to the format of the overview template to generate display information.
6. The method according to claim 5, after editing the generated information associated with the keyword in the format of the overview template to generate display information, the method further comprises: The display information is displayed.
7. A knowledge graph creation device, comprising: an acquisition unit, configured to acquire first data, wherein the first data includes a plurality of entity names, data indicators and a time period, and attribute information between the plurality of entity names, each of the entity names includes a name of an application, a name of a project, a name of a commodity, a name of a special service, or each of the entity names includes a combination of the name of the application, the name of the project, the name of the commodity, or the name of the special service, and the data indicator refers to an indicator used to calibrate the data volume of the entity name; A creation unit, configured to create a knowledge graph according to a preset graph relationship, attribute information between the plurality of entity names, the data indicators and the time period; The preset graph relationship includes nodes of a time period; the preset graph relationship includes the definition of the nodes composed of the multiple entity names, the scope of the nodes and the hierarchy of the nodes, as well as the relationship between the nodes and the hierarchical relationship of the nodes; The knowledge graph includes nodes of the knowledge graph and entity names and relationship information between entity names, and the nodes of the knowledge graph are preset graph relationships and clustered entity names, data indicators and time period data; The entity names and the relationship information between the entity names include the definition of the entity names, the hierarchical information of the entity names, and the relationship information between the entity names and data indicators and time periods.
8. The device according to claim 7, wherein the creating unit is specifically configured to: Clustering the attribute information between the multiple entity names, the data indicators, and the time period; Create a knowledge graph based on the preset graph relationships and clustered entity names, data indicators and time period data as nodes of the knowledge graph.
9. The device according to claim 8, wherein the creating unit is specifically configured to: A knowledge graph is created based on the preset graph relationships and the data corresponding to the same entity name, the same data indicator and different time periods after clustering as nodes of the knowledge graph.
10. An information acquisition device, comprising: A receiving unit, configured to receive an input keyword, wherein the keyword includes at least one of an entity name, a data indicator, and a time period; A generating unit, configured to generate information associated with the keyword according to a graph relationship of the knowledge graph; Wherein, the knowledge graph is a knowledge graph created by the device described in any one of claims 7 to 9.
11. The device according to claim 10, The receiving unit is further used to receive the overview template selected by the user; The generating unit is further configured to edit the generated information associated with the keyword in a format of an overview template to generate display information.
12. The device according to claim 11, further comprising a display unit for displaying the display information.
13. A computing device, wherein: The computing device comprises at least one processor and a memory, wherein the memory is used to store computer program instructions, and the processor is used to read and execute the computer program instructions to control the computing device to implement any one of the methods according to claims 1 to 6.
14. A computer-readable storage medium having a computer program stored thereon, wherein: If the computer program is executed in a computer, the computer is caused to execute any one of the methods according to claims 1 to 6.
