A method, system and device for constructing a knowledge production pipeline

By building a knowledge production pipeline and using knowledge operators and flow diagrams of standardized interfaces to automatically generate knowledge graphs, it solves the problem of duplication of work in the construction of knowledge graphs for different platforms and fields, improves production efficiency and operator reuse, and reduces costs. development costs.

CN114153990BActive Publication Date: 2024-10-22ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111488612.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-07
Publication Date
2024-10-22
Estimated Expiration
2041-12-07

AI Technical Summary

Technical Problem

There is a lot of duplication of work when building knowledge graphs across different platforms and business areas, resulting in low production efficiency and the lack of a unified standardized method to achieve efficient knowledge graph construction.

Method used

By acquiring knowledge operators and knowledge processing flow diagrams of preset standardized interfaces, a knowledge production pipeline is constructed, knowledge graphs are automatically generated, and standardized processes and basic computing components are provided to support the construction of knowledge production pipelines.

Benefits of technology

It realizes the automated and standardized construction of knowledge production pipelines, reduces customized development and maintenance costs, saves technology development time, avoids duplication of work, and improves the reuse and computing performance of knowledge operators.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114153990B_ABST
    Figure CN114153990B_ABST
Patent Text Reader

Abstract

The embodiments of this specification provide a method, system and device for constructing a knowledge production pipeline, the method comprising: obtaining a knowledge operator; the knowledge operator has a preset standardized interface, and the knowledge operator comprises one or more of the following operators: an extraction operator, a mapping operator, a standardization operator, a chain operator, and a fusion operator; obtaining a knowledge processing flow graph; the knowledge processing flow graph at least reflects the data dependency relationship between each knowledge operator; loading the knowledge operator according to the knowledge processing flow graph to obtain the knowledge production pipeline; the knowledge production pipeline is used to receive instance data and process it to generate a knowledge graph.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a method, system and device for constructing a knowledge production pipeline. Background Art

[0002] Different platforms or different business fields have their own data and data formats. With the development of data management and data construction, each business party hopes to transform the data they have into a knowledge graph to efficiently present the knowledge information contained in the data, thereby effectively improving the efficiency of data management and utilization. Overall, if each business party uses the data in its own business field to create a knowledge graph, a large amount of duplication of work will be consumed, which is not conducive to improving production efficiency.

[0003] Therefore, there is an urgent need for a knowledge production method that uses a standardized framework to help different platforms or different business fields build knowledge graphs. Summary of the invention

[0004] One aspect of the present specification provides a method for constructing a knowledge production pipeline, including: obtaining knowledge operators; the knowledge operators have a preset standardized interface, and the knowledge operators include one or more of the following operators: extraction operators, mapping operators, standardization operators, chain operators, and fusion operators; obtaining a knowledge processing flow graph; the knowledge processing flow graph at least reflects the data dependency relationship between each knowledge operator; loading the knowledge operators according to the knowledge processing flow graph to obtain the knowledge production pipeline; the knowledge production pipeline is used to receive instance data and process it to generate a knowledge graph.

[0005] Another aspect of the present specification provides a system for constructing a knowledge production pipeline, including: a knowledge operator acquisition module, used to acquire the knowledge operator; the knowledge operator has a preset standardized interface, and the knowledge operator includes one or more of the following operators: extraction operator, mapping operator, standardization operator, chain operator, fusion operator; a knowledge processing flow graph acquisition module, used to acquire a knowledge processing flow graph; the knowledge processing flow graph at least reflects the data dependency relationship between each knowledge operator; a knowledge production pipeline determination module, used to load the knowledge operator according to the knowledge processing flow graph to obtain the knowledge production pipeline; the knowledge production pipeline is used to receive instance data and process it to generate a knowledge graph.

[0006] Another aspect of the present specification provides a device for constructing a knowledge production pipeline, comprising at least one storage medium and at least one processor, wherein the at least one storage medium is used to store computer instructions; and the at least one processor is used to execute the computer instructions to implement the method for constructing the knowledge production pipeline.

[0007] Another aspect of the present specification provides a knowledge graph generation method, including: acquiring instance data; based on the instance data, generating or updating a target graph through a knowledge production pipeline generated by the method described. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] This specification will be further described in the form of exemplary embodiments, which will be described in detail by the accompanying drawings. These embodiments are not restrictive, and in these embodiments, the same number represents the same structure, wherein:

[0009] Figure 1 is an exemplary flow chart of a method for constructing a knowledge production pipeline according to some embodiments of this specification;

[0010] Figure 2 is a block diagram of a knowledge production pipeline construction system according to some embodiments of this specification;

[0011] Figure 3 It is a schematic diagram of a knowledge processing flow diagram according to some embodiments of this specification;

[0012] Figure 4 is an exemplary flow chart of generating a knowledge graph based on structured data according to some embodiments of this specification;

[0013] Figure 5 This is an exemplary flowchart for generating a knowledge graph based on unstructured data according to some embodiments of this specification. DETAILED DESCRIPTION

[0014] In order to more clearly illustrate the technical solutions of the embodiments of this specification, the following is a brief introduction to the drawings required for the description of the embodiments. Obviously, the drawings described below are only some examples or embodiments of this specification. For ordinary technicians in this field, this specification can also be applied to other similar scenarios based on these drawings without creative work. Unless it is obvious from the language environment or otherwise explained, the same reference numerals in the figures represent the same structure or operation.

[0015] It should be understood that the "system", "device", "unit" and / or "module" used in this specification is a method for distinguishing different components, elements, parts, parts or assemblies at different levels. However, if other words can achieve the same purpose, the words can be replaced by other expressions.

[0016] As shown in this specification and claims, unless the context clearly indicates an exception, the words "a", "an", "an" and / or "the" do not refer to the singular and may also include the plural. Generally speaking, the terms "comprise" and "include" only indicate the inclusion of the steps and elements that have been clearly identified, and these steps and elements do not constitute an exclusive list. The method or device may also include other steps or elements.

[0017] Flowcharts are used in this specification to illustrate the operations performed by the system according to the embodiments of this specification. It should be understood that the preceding or following operations are not necessarily performed precisely in order. Instead, the steps may be processed in reverse order or simultaneously. At the same time, other operations may also be added to these processes, or one or more operations may be removed from these processes.

[0018] Different platforms and business fields have a large amount of data (such as business data that can be recorded in the form of pictures, texts, tables, etc.). In order to improve business results, business efficiency and computing performance, these business data can usually be converted into knowledge graphs for representation. Knowledge graphs refer to a knowledge base composed of a series of entity instances (i.e., data instances corresponding to entities) and the relationships between entity instances. Among them, entities are a broad abstraction of objective individuals, which can refer to tangible objects in the physical world, such as people, cars, merchants, etc., or intangible objects, such as words, songs, movies, funds, program codes, etc. Data instances can be actual examples corresponding to the abstract concept of entities, such as people can be specifically Zhang San, Li Si, Li Ming, etc., songs can be specifically "Blue and White Porcelain", "Nightingale", "Swan Lake", and merchants can be specifically Merchant A, Merchant B, Merchant C, etc. There can be relationships between entity instances, for example, Merchant A has business dealings with Merchant B, Merchant C is a sub-merchant of Merchant A, and Zhang San is the manager of Merchant A, etc. In some embodiments, the relationship between entity instances can also be regarded as the relationship between corresponding entities. For example, a person and a merchant can have a management relationship or an employment relationship. In some embodiments, entity instances in a knowledge graph can be represented by nodes, and the relationship between entity instances can be represented by edges connecting nodes.

[0019] In some embodiments, the business party can use data to build a knowledge graph on its own. The specific process can be to build the ontology definition data (or schema) of the knowledge graph, which includes entity definition and relationship definition. Further, the graph operator is defined based on the schema, and finally the knowledge graph is built by executing the graph operator. However, in this process, it will also involve requirements such as graph query, text processing, and graph embedding representation, so the business party needs to develop components to implement these functions. In other words, the business party needs to carry out additional technical development in order to build a knowledge graph, and building a knowledge graph is only the preliminary work to complete its target business tasks (such as entity classification, relationship prediction, etc.). On the other hand, from an overall perspective, different business parties will have a lot of duplication of work in order to build the knowledge graph they need. For example, business party A developed an attribute standardization operator to standardize the attributes of the nodes, and business party B also needs to standardize the node attributes of its graph, so it also developed a similar attribute standardization operator.

[0020] If there is a unified platform (such as a knowledge generation platform or a knowledge graph platform) to provide graph construction services for various business parties, it will not only save the business parties' technical development time, but also avoid duplication of work as a whole and make full use of existing graph operators or functional components.

[0021] In view of the above situation, some embodiments of this specification provide a more efficient knowledge production method and system. This method builds a knowledge production pipeline for the business party (or user) through a standardized process. The business party inputs the instance data into the knowledge production pipeline to automatically generate a knowledge graph. Specifically, the method includes obtaining an operator of a preset standardized interface (such as a knowledge operator or a graph operator, etc.) and a knowledge processing flow diagram, and based on the knowledge processing flow diagram, the knowledge operator is loaded according to the knowledge processing flow diagram to obtain a knowledge production pipeline. Through the construction method and system of the knowledge production pipeline described in some embodiments of this specification, the construction of the knowledge production pipeline can be automated and standardized, the construction process is more efficient, and the cost of customized development and maintenance is reduced. Furthermore, the knowledge operators used in the knowledge production pipeline in some embodiments of this specification can be uploaded to the operator library as needed (or can be retrieved from the operator library), so that users can also use high-quality knowledge operators in other fields, greatly reducing development costs. Furthermore, the knowledge production pipeline construction system described in some embodiments of this specification also provides basic computing components for users to call when customizing knowledge operators to more efficiently build the knowledge production pipeline. The basic computing components include graph retrieval components, text processing components, embedding components and other components to support the construction of the knowledge production pipeline.

[0022] Figure 1It is an exemplary flow chart of a method for constructing a knowledge production pipeline according to some embodiments of this specification.

[0023] In some embodiments, the knowledge production pipeline construction method 100 can be executed by a processing device, such as a processing device of a knowledge production platform. The knowledge production platform can provide knowledge graph services for various business fields. Depending on the business type, the business field may include security, payment, securities, insurance, face recognition and other fields. The knowledge production platform can receive data provided by the business party and generate a corresponding knowledge graph, or the knowledge production platform can provide users with a knowledge production pipeline development system for the business party to build a knowledge production pipeline as needed. The specific process is shown in process 100. In some embodiments, method 100 can be implemented by a knowledge production pipeline construction system 200 deployed on a processing device.

[0024] like Figure 1 As shown, the method 100 may include:

[0025] Step 110, obtaining knowledge operators.

[0026] In some embodiments, step 110 may be performed by the knowledge operator acquisition module 210 .

[0027] Knowledge operators are mainly used to find entity instances and determine the relationship between entity instances from a large number of data instances based on entity definition or relationship description, and then obtain knowledge graphs. Knowledge operators can also be understood as graph computing algorithms or methods, which are used to perform data processing operations or calculations for graph construction. It can be implemented in various ways such as data processing / calculation units, program codes, machine learning models, etc. In some embodiments, data can be input to the operator, and the operator can perform corresponding data processing / calculation, complete data conversion, and output the converted data.

[0028] In some embodiments, the knowledge operator includes one or more of the following operators: an extraction operator, a mapping operator, a standardization operator, a chaining operator, and a fusion operator.

[0029] The extraction operator can extract structured data from unstructured data instances. Among them, structured data is mainly data stored in the form of KV (key-value). For example, exemplary structured data may include: company name-Aotong Technology, company type-transportation industry, etc. In some embodiments, structured data may also be data stored in a data table, such as a row in a data table represents a data record, a column corresponds to a field name, and the value in the column is the corresponding field value. Generally, structured data has a relatively fixed and standardized format, which can intuitively express the data name and its value, and is convenient for graph construction. Unstructured data refers to data other than structured data, such as text, audio, images, etc. from articles such as news reports. If the basis of graph construction is unstructured data, it is necessary to process the unstructured data through the extraction operator to obtain structured data. Specifically, the extraction operator can be implemented by an extraction model and a sequence annotation model. Among them, the extraction model can process text and extract data instances therein. The sequence annotation model can process text and annotate the characters or words in the text respectively. The annotation types include keyword start position B, keyword middle position I, non-keyword position O, etc., and then obtain the data instance in the text through the annotation results of the text. For example, the text "I love to eat watermelon" can correspond to the annotation sequence OOOBI, and then it can be determined that the data instance therein is "watermelon". In some embodiments, the keyword type can be further refined, and then the corresponding data name can be determined while obtaining the data instance. Here, the data name can be regarded as a Key or field name, and the data instance can be regarded as a Value or field value. Exemplary, there is an unstructured text: "Our court is scheduled to hear the dispute over infringement of audio and video producers between aa Co., Ltd. and BB Technology Co., Ltd. at 9:30 am on November 19, 2015 in Court 18 of the Dongcheng District People's Court (North District) of Beijing." After knowledge extraction, the structured data is as follows: "Event name: Dispute over infringement of audio and video producers between aa Co., Ltd. and BB Technology Co., Ltd.; Event type: Court hearing; Time: 09:30, November 19, 2015; Location: Court 18, Dongcheng District People's Court (North District), Beijing; Plaintiff: Beijing aa Co., Ltd."

[0030] The mapping operator is used to correspond structured data to entities, attributes, etc. in the knowledge graph. In some embodiments, entities, attributes, and other data in the knowledge graph can be defined through the schema of the graph. For example, the schema defines data such as company entities, enterprise type attributes, and address attributes. The mapping operator can correspond the data value of the corresponding data name to the entity or attribute based on the name of the entity or attribute in the schema definition and the similarity of the data name in the structured data. Exemplarily, the structured data has the name - Auton Technology, and the enterprise type - Transportation Industry. Then, "Auton Technology" can be mapped to a data instance under the company entity, and "Transportation Industry" can be mapped to a data instance under the enterprise type attribute. More descriptions about schema can be found later. In some embodiments, operator developers or users can define the correspondence between structured data names and entities, attributes, etc., thereby realizing the mapping of structured data to graph entities or attributes.

[0031] Standardization operators can achieve standardization of attribute values, etc. Standardization of attribute values ​​can be unified standardization of the data format of the instance value of the attribute (such as the instance value of the attribute is a numeric value or a character or a binary number), data expression constraints (such as the constraint of the time type attribute is that the instance value is the value of the year, month, and day or the value of the 24-hour time type, and the constraint of the amount type attribute is that the instance value is the value in US dollars or the value in RMB), data expression type (such as the instance value of the attribute is integer data or floating point data), etc. Depending on the attribute, standardization operators can include date standardization operators, address standardization operators, currency standardization operators, etc., to standardize the attribute values ​​of the corresponding type.

[0032] The fusion operator can realize the fusion of two or more entities in the graph. In some embodiments, entity instances with similar or identical semantics can be fused. For example, due to different data sources, there are differences in the description of data instances, but the semantics are the same or similar. At this time, there may be two or more entity instances pointing to the same object. For example, the two entity instances of "Aotong Technology Co., Ltd." and "Aotong Technology" can be fused to obtain a fused entity instance, and the fused entity instance can be represented by "Aotong Technology Co., Ltd." or "Aotong Technology". In some embodiments, after two or more entity instances are fused to obtain a fused entity instance, the attributes and related edges corresponding to the two or more fused entity instances will also be adjusted to adapt to the fused entity instance. Specifically, the attributes corresponding to the fused entity instance can be the union of the attribute values ​​corresponding to the two or more fused entity instances, or a part of the union. The edges related to the fused entity instance can include each related edge in the two or more fused entity instances.

[0033] The chain operator can establish an edge between two corresponding entity instances based on at least one corresponding attribute value of the two entity instances. As mentioned above, the attribute corresponding to the entity can represent further description information of the entity, and exemplary attributes include address, type, etc. In some embodiments, the attribute values ​​corresponding to the entity instance can determine whether there is an association relationship between the two entity instances, and then an edge between the two entities can be established. For example, the attribute corresponding to the entity "CRO.Company" from the insurance business field includes "address", and the entity "City" comes from the payment business field. According to the attribute "address" corresponding to "CRO.Company", an edge or relationship between "CRO.Company" and "City" can be established, such as establishing a relationship of [city]. For another example, the entity "commodity" from the manufacturing business field has a corresponding attribute "commodity type", and the entity "merchant" from the sales business field also has a corresponding attribute "main business scope". Then, the relationship between "commodity" and "merchant" can be established based on the attribute fields of the two, such as establishing a relationship of [sales relationship].

[0034] In some embodiments, the knowledge operator has a preset standardized interface. The preset standardized interface includes input parameters and output parameters in a preset form. Exemplarily, for example, the input parameter of the extraction operator can be text, and the output can be a label sequence. The input parameter of the standardization operator can be an attribute value in a certain format, and the output parameter is the standardized attribute value. For another example, the input parameters of the chain finger operator are the source entity, the source entity attribute value, and the candidate destination entity. In some instances, the attribute value of the candidate destination entity can also be included, and the output parameter can be a triple including the source entity, the relationship, and the destination entity. For another example, the input parameters of the fusion operator can be two or more entities, the attributes of each entity, and the one-hop subgraph of each entity (one-hop graph), and the output parameter can be the fused entity, the attributes of the fused entity, and its one-hop subgraph. The knowledge operator has a preset standardized interface to facilitate the assembly, calling, and reuse of the knowledge operator. In other words, the knowledge operator can be selected and applied by different business scenarios. For example, the business party L1 creates a time standardization operator A, and the business party L2 also needs to perform time attribute standardization. At this time, the business party L2 can directly call this operator A through the preset standardized interface to implement the time standardization process.

[0035] In some embodiments, the knowledge operator acquired in step 110 may be custom developed by a business party or a user.

[0036] In some embodiments, the knowledge operator can be custom written and provided by the user. After the writing is completed, the user can upload the knowledge operator to the knowledge production platform. The knowledge production platform can compile and execute the knowledge operator. In some embodiments, the knowledge production platform can add the knowledge operator custom written by the user to the operator library. It can be understood that the knowledge operator custom written by the user should also meet the needs of the preset standardized interface, which allows the custom-written knowledge operator to be directly specified and called by other users from the operator library, thereby effectively enriching the operator library, reducing the user's repeated development work on the knowledge operator, and improving work efficiency.

[0037] Users can customize knowledge operators according to operator usage scenarios and different industries. Specifically, knowledge operators can be written by users based on the ontology definition data of the target graph. The ontology definition data of the knowledge graph (or the schema of the knowledge graph) refers to the data that defines the entities and relationships between entities included in the knowledge graph, and can represent the semantic information of the data instances of the ontology of the knowledge graph. The ontology definition data of the knowledge graph can guide the collection of data instances, and compose based on data instances to obtain a knowledge graph (also called an instance graph). In some embodiments, the ontology definition data of the knowledge graph may include entity fields for defining entities. The entity field can be understood as an entity name or entity representation, such as an entity field can be "company entity", "user", etc., and the value of the entity field can be the aforementioned entity instance. The entity field can correspond to multiple attribute fields, and the attribute field can be an abstraction of the entity description information, such as an attribute field can be "address", "age", "registered capital", etc., and the value of the attribute field can be a specific description of the corresponding entity instance, such as "No. 11, Jianshe Road", "28 years old", "5 million", etc. In some embodiments, the ontology definition data of the knowledge graph may include a relationship description for defining the relationship between entities. The relationship description may be an abstraction of the relationship type between entities, such as "employment relationship", "parent-subsidiary company relationship", "parent-child relationship", etc. In some embodiments, the relationship description may further include relationship attributes, which are used to further explain the relationship description, such as "employment relationship" may be specifically "temporary employment" or "formal employment", and "parent-subsidiary company relationship" may further include "wholly-owned holding relationship", "partial holding relationship", etc. Through the relationship description, it is possible to determine whether there is an edge between two entity instances when constructing the knowledge graph. For example, the schema of the target graph includes the entity field CRO.Company, the attribute address, the entity City, and the relationship description inCity. The user can customize the link operator link(CRO.Company,inCity,City,address). When calling the operator to process the data instances corresponding to the entity fields "CRO.Company" and "City", the relationship description between the "CRO.Company" entity instance and the "City" entity instance can be established as "inCity" based on the value of the attribute field "address" of the "CRO.Company" entity instance.

[0038] In some embodiments, the ontology definition data of the target graph can be written by the user according to business needs. In some embodiments, the knowledge generation platform can formulate or collect some ontology definition data of the graph as a template, and the user determines the ontology definition data of the target graph based on the graph ontology definition template provided by the platform. For example, the user can directly use the graph ontology definition template as the ontology definition data of the target graph, or update and improve it based on the graph ontology definition template (schema template) provided by the platform, such as adding some entity definitions or relationship descriptions, or deleting some of the content, to obtain the ontology definition data of the target graph (that is, the schema defined by the user himself).

[0039] In some embodiments, the knowledge production platform may also provide basic computing components. Basic computing components may include one or more of the following: graph retrieval components, text processing components, and embedding components. The graph retrieval component can be used to perform entity retrieval in graph data. For example, when establishing a link for a set source node, several candidate destination nodes can be retrieved from the existing knowledge graph based on the graph retrieval component, avoiding the traversal of the entire graph node and effectively reducing the amount of calculation. The text processing component can provide some basic text processing functions such as word segmentation, synonym query, text replacement (such as full-width symbols to half-width symbols), etc., to facilitate the fusion operator to perform synonym matching and then perform entity / relation fusion. It can also perform word segmentation or text replacement and other preprocessing on the text before the extraction operator calls the extraction model or sequence labeling model. The embedding component is used to complete text embedding or graph embedding. Specifically, the text can be processed to obtain a vector representation of the text. For example, when the entity is fused, the similarity of two or more entity instances can be determined based on the text vector representation, and it can further be determined whether entity fusion is required. The embedding component can learn the representation of the existing graph and obtain the vector representation of the node or edge. For example, the vector representation of the node can be used for graph retrieval services. For example, vector retrieval or query can be performed in the graph based on the vector representation of the target entity to obtain several candidate entity instances that are similar or identical to the target entity. These entity instances are then fused through the fusion operator. The graph retrieval service based on vector retrieval can effectively improve the retrieval efficiency and save query time. Users can call the above basic computing components when developing operators, which can reduce the workload during operator development and improve work efficiency.

[0040] Step 120, obtaining a knowledge processing flow diagram.

[0041] In some embodiments, step 120 may be performed by the knowledge processing flow graph acquisition module 220 .

[0042] The knowledge processing flow graph can reflect the data dependency between knowledge operators, or can reflect the data processing link from input data to output graph. The knowledge processing flow graph includes work nodes and data edges, where a work node corresponds to one or more knowledge operators, and a data edge reflects the data flow between work nodes. Figure 3 An exemplary knowledge processing flow diagram 300 is shown. Figure 3 In FIG. 3 , nodes 310 to 360 represent different working nodes, and the lines between the nodes are data edges.

[0043] In the knowledge processing flow diagram 300, the input node 310 is used to receive the unstructured data instance to be processed, and the knowledge extraction node 320 can be used to process the unstructured data instance to obtain structured data; the knowledge mapping node 330 is used to map the data value in the structured data instance to the entity or attribute corresponding to the knowledge graph; the attribute standardization node 340 is used to standardize the expression of the attribute value in the data instance; the link node 350 is used to connect the entity instances based on the relevant attribute values ​​to establish the relationship or edge between the entity instances, and the output node 360 ​​outputs the corresponding knowledge graph.

[0044] It should be noted that Figure 3 The knowledge processing flow diagram shown is only an example and cannot be used as a limitation of this specification. For example, the positions of nodes 320 to 350 can be changed; for another example, the nodes therein can be increased or decreased to meet the needs of different usage scenarios (for example, a fusion operator can be added to fuse entity instances pointing to the same object, and when the input data is structured data, the knowledge extraction node 320 can be omitted). Such changes are still within the scope of protection of this specification.

[0045] The knowledge processing flow graph can be assembled and provided by the user. The processing equipment of the knowledge generation platform can provide a creation environment for the knowledge production pipeline, which may include a visual creation page for the knowledge processing flow graph. The user can add work nodes to the page according to the needs of the usage scenario. At the same time, the user can also change the order of each work node by dragging and dropping on the page, and establish data edges between nodes to complete the configuration of the knowledge processing flow graph. After the user completes the configuration, the knowledge processing flow graph acquisition module 220 can obtain the knowledge processing flow graph from the creation environment. In some embodiments, the user can also add data acquisition nodes, such as Figure 3 In the node 321, the data acquisition node can be set at the output end of a certain working node.

[0046] Step 130, loading the knowledge operators according to the knowledge processing flow diagram to obtain the knowledge production pipeline.

[0047] In some embodiments, step 130 may be performed by the knowledge production pipeline determination module 230 .

[0048] After completing the setting of the knowledge processing flow diagram in step 120, the knowledge production pipeline determination module 230 loads the corresponding knowledge operator to obtain the knowledge production pipeline. Specifically, the knowledge production pipeline determination module 230 compiles the knowledge operator to obtain an executable code; then the executable code of each knowledge operator is assembled according to the workflow embodied in the knowledge processing flow diagram to obtain the loaded knowledge production pipeline. For example, the knowledge production pipeline determination module 230 can add one or more extraction operators at the knowledge extraction node 320. For another example, the knowledge production pipeline determination module 230 can add a chain finger operator at the chain finger node 350 to implement chain finger processing. The knowledge production pipeline can further be used to receive instance data and process it to generate a knowledge graph. The knowledge production pipeline can be understood as the splicing of multiple knowledge operator execution codes. The instance data input to the pipeline is converted into a knowledge graph for output and storage through the processing of each knowledge operator in the pipeline.

[0049] In some embodiments, when loading the knowledge production pipeline, the knowledge production pipeline determination module 230 may set a data collection component for the output data of one or more knowledge operators (e.g., Figure 3 The data collection node 321 in the knowledge production pipeline is used to load the data collection component for the knowledge extraction node); the data collection component is used to collect the output data of one or more knowledge operators for data backtracking, knowledge verification or knowledge evaluation during the process of processing instance data in the knowledge production pipeline to generate a knowledge graph. For example, the data collection component can collect data processed by the knowledge operator to verify and verify the calculation results of the knowledge operator; when there is a problem with the data finally output by the knowledge production pipeline (such as a calculation bug, etc.), the output data of each knowledge operator can be traced back layer by layer based on the data collected by the data collection component to analyze the cause of the problem.

[0050] Figure 2 It is a block diagram of a knowledge production pipeline construction system shown in some embodiments of this specification.

[0051] In some embodiments, the knowledge production pipeline construction system 200 may include a knowledge operator acquisition module 210, a knowledge processing flow graph acquisition module 220, and a knowledge production pipeline determination module 230. In some embodiments, the knowledge production pipeline construction system 200 may also include an operator library writing module 240 (not shown in the figure). In some embodiments, the knowledge production pipeline construction system 200 may also include a basic computing component calling module 250 (not shown in the figure).

[0052] In some embodiments, the knowledge operator acquisition module 210 can be used to acquire the knowledge operator; the knowledge operator has a preset standardized interface, and the knowledge operator includes one or more of the following operators: extraction operator, mapping operator, standardization operator, chain finger operator, fusion operator. In some embodiments, the preset standardized interface includes input parameters and output parameters in a preset form. In some embodiments, the knowledge operator can be custom written and provided by the user or specified by the user from an operator library.

[0053] In some embodiments, the knowledge processing flow graph acquisition module 220 may be used to acquire a knowledge processing flow graph; the knowledge processing flow graph at least reflects the data dependency relationship between the knowledge operators.

[0054] In some embodiments, the knowledge production pipeline determination module 230 can be used to load the knowledge operator according to the knowledge processing flow graph to obtain the knowledge production pipeline; the knowledge production pipeline is used to receive instance data and process it to generate a knowledge graph.

[0055] In some embodiments, the operator library writing module 240 may be used to add user-defined knowledge operators to the operator library.

[0056] In some embodiments, the basic computing component calling module 250 can be used to provide basic computing components for users to call when customizing knowledge operators; the basic computing components include one or more of the following: graph retrieval components, text processing components, and embedding components.

[0057] In some embodiments, the knowledge operator is written by a user based on ontology definition data of a target graph, and the ontology definition data of the target graph is customized by the user or determined by the user based on a graph ontology definition template.

[0058] In some embodiments, the knowledge processing flow graph includes work nodes and data edges, wherein the work nodes correspond to one or more knowledge operators, and the data edges reflect the data flow between the work nodes; the knowledge processing graph is assembled and provided by the user.

[0059] In some embodiments, the knowledge processing flow graph acquisition module 220 is further used to: compile the knowledge operators to obtain executable codes; and assemble the executable codes of each knowledge operator according to the knowledge processing flow graph.

[0060] In some embodiments, the instance data is in the form of structured data or unstructured data.

[0061] In some embodiments, the knowledge processing flow graph acquisition module 220 is also used to: set a data collection component for the output data of one or more knowledge operators; the data collection component is used to collect the output data of one or more knowledge operators in the process of processing instance data in the knowledge production pipeline to generate a knowledge graph for data backtracking, knowledge verification or knowledge evaluation.

[0062] It should be understood that the system and its modules shown can be implemented in various ways. For example, in some embodiments, the system and its modules can be implemented by hardware, software, or a combination of software and hardware. Among them, the hardware part can be implemented using dedicated logic; the software part can be stored in a memory and executed by an appropriate instruction execution system, such as a microprocessor or a dedicated design hardware. Those skilled in the art will understand that the above-mentioned methods and systems can be implemented using computer executable instructions and / or included in processor control codes, such as such as carrier media such as disks, CDs or DVD-ROMs, programmable memories such as read-only memories (firmware), or data carriers such as optical or electronic signal carriers. Such codes are provided on the system and its modules of this specification. Not only can the hardware circuits such as ultra-large-scale integrated circuits or gate arrays, semiconductors such as logic chips, transistors, or programmable hardware devices such as field programmable gate arrays, programmable logic devices, etc. be implemented, they can also be implemented with software such as executed by various types of processors, and can also be implemented by a combination of the above-mentioned hardware circuits and software (e.g., firmware).

[0063] It should be noted that the above description of the system and its modules is only for convenience of description and does not limit the present specification to the scope of the embodiments. It is understandable that, after understanding the principle of the system, those skilled in the art may arbitrarily combine the modules or form a subsystem to connect with other modules without deviating from the principle.

[0064] Figure 4 It is an exemplary flowchart of a method for generating a knowledge graph based on structured data according to some embodiments of this specification.

[0065] In some embodiments, the knowledge production pipeline can be executed to generate a knowledge graph based on data instances. In some embodiments, the knowledge production pipeline can adapt to different processing engines so that it can still run on a processing device other than the knowledge production platform. Exemplarily, the knowledge production pipeline can be run on a processing device of the knowledge production platform to implement process 400.

[0066] like Figure 4 As shown, the process 400 may include:

[0067] Step 410: Obtain structured instance data.

[0068] For a description of the instance data, see Figure 1 The corresponding instructions in will not be repeated here.

[0069] In some embodiments, the full amount of structured instance data can be uploaded directly. In the embodiment of this scenario, the knowledge graph corresponding to the instance data can be directly generated according to steps 420 to 460. At this time, similar or identical entity instances can be matched in batches, and the entity instances can be merged before the graph is created.

[0070] In some embodiments, only incremental data of structured instance data may be uploaded. In an embodiment of this scenario, a round of steps 420 to 460 may be first executed to construct a portion of the knowledge graph based on the incrementally transmitted instance data, and then multiple rounds of steps 420 to 460 may be executed to update the existing knowledge graph, thereby gradually constructing a complete knowledge graph. At this point, the nodes to be fused or candidate destination nodes may be retrieved in the existing graph based on the graph query component to complete the fusion of the newly added nodes or the establishment of link fingers.

[0071] Step 420, perform instance data mapping.

[0072] In some embodiments, the knowledge production pipeline can load a mapping operator to map instance data. For more information about the knowledge mapping process, see Figure 1 Relevant description about the mapping operator in step 110.

[0073] Step 430, perform instance data attribute normalization.

[0074] In some embodiments, the knowledge production pipeline can load a normalization operator to normalize instance data attributes. For the attribute normalization process, see Figure 1 Relevant description about the normalization operator in step 110.

[0075] Step 440, establish an instance data link.

[0076] In some embodiments, the knowledge production pipeline can load the chain finger operator to establish the instance data chain finger. For the process of establishing the chain finger, please refer to Figure 1 Relevant description about the chain finger operator in step 110.

[0077] In some embodiments, process 400 further includes step 450: performing entity fusion.

[0078] In some embodiments, the knowledge production pipeline can load a fusion operator to perform entity fusion. For more information about the entity fusion process, see Figure 1Relevant description about the fusion operator in step 110.

[0079] Step 460, generate a knowledge graph.

[0080] In some embodiments, after the aforementioned steps, the structured data is converted into nodes in the graph, and edges are generated between the nodes, thereby obtaining a knowledge graph. The knowledge graph can be used by users. For example, users or business parties can mine data relationships or rules in the knowledge graph through a graph reasoning algorithm, or obtain a vector representation of the graph (including nodes, or vector representations of nodes and edges) through a graph representation learning process, and then complete node classification and other processing.

[0081] Figure 5 It is an exemplary flow chart of a method for generating a knowledge graph based on unstructured data according to some embodiments of this specification. Similar to process 400, process 500 is also implemented by running a knowledge production pipeline.

[0082] Step 510: Obtain unstructured instance data.

[0083] In some embodiments, the instance data may also be stored as unstructured data. The unstructured data may be exemplarily set in the form of pictures, text segments, etc. In the embodiment of this scenario, it is necessary to use a knowledge extraction operator to extract knowledge from the unstructured data to convert it into structured data. For example, the unstructured data may be a text segment "Our court is scheduled to hear the case of infringement of the audio and video producer between aa Co., Ltd. and BB Co., Ltd. at 09:30 am on November 19, 2015 in Court No. 18 of the Dongcheng District People's Court (North District) of Beijing."

[0084] Similar to process 400, in some embodiments, the full amount of unstructured instance data may be uploaded directly. In an embodiment of this scenario, a knowledge graph may be directly generated according to steps 520 to 570.

[0085] In some embodiments, only incremental data of unstructured instance data may be uploaded. In the embodiment of this scenario, the knowledge graph is gradually constructed by executing steps 520 to 570 in multiple rounds according to the incrementally transmitted unstructured instance data.

[0086] Step 520: Extract knowledge from instance data.

[0087] Since unstructured data cannot be directly mapped, in the embodiments of this scenario, it is usually necessary to extract knowledge from the data for subsequent steps. In some embodiments, knowledge extraction can be performed based on extraction operators. For the knowledge extraction process, see Figure 1 Relevant description about the extraction operator in step 110.

[0088] After knowledge extraction is completed, unstructured data is converted into structured data, which can then be used together with Figure 4 The knowledge graph is generated in a similar manner as in steps 420 to 460.

[0089] Step 530: Perform instance data mapping.

[0090] For more descriptions on the instance data mapping, please refer to the corresponding description of step 420, which will not be repeated here.

[0091] Step 540, perform instance data attribute normalization.

[0092] For more descriptions on the instance attribute normalization, please refer to the corresponding description of step 430, which will not be repeated here.

[0093] Step 550, establish an instance data link.

[0094] For more descriptions about the instance data link finger, please refer to the corresponding description of step 440, which will not be repeated here.

[0095] In some embodiments, process 500 further includes step 560: performing entity fusion.

[0096] For more descriptions on entity fusion, please refer to the corresponding description of step 450, which will not be repeated here.

[0097] Step 570, generate a knowledge graph.

[0098] For more descriptions on knowledge graph generation, please refer to the corresponding instructions of step 460, which will not be repeated here.

[0099] The beneficial effects that may be brought about by the embodiments of this specification include but are not limited to: (1) providing a method for constructing a knowledge production pipeline. Users can write or specify knowledge operators with preset standardized interfaces in the knowledge production platform, and construct a knowledge processing flow diagram to specify the data processing process. Finally, the platform assembles the knowledge operators based on the knowledge processing flow diagram to construct a knowledge production pipeline, which effectively saves time and labor costs for the business party to build a knowledge graph. At the same time, it allows the business party to focus more on the development or optimization of knowledge operators without considering the adaptation problem with the knowledge production pipeline, realizes the separate iteration and update of the knowledge operator algorithm, and improves the quality and computing performance of the knowledge operator; (2) The knowledge operator has a preset standardized interface, which standardizes the development of knowledge operators and realizes the reuse of high-quality knowledge operators in the operator library, so that some business parties can even directly call the operators in the operator library, saving the operator development cost; (3) A data acquisition component is set at the output data of the knowledge operator to realize data backtracking, knowledge verification or knowledge evaluation of the output data of the knowledge operator; (4) The unified access of structured data and unstructured data is realized under the same knowledge production pipeline construction platform. It should be noted that different embodiments may produce different beneficial effects. In different embodiments, the beneficial effects that may be produced may be any one or a combination of the above, or any other beneficial effects that may be obtained.

[0100] The basic concepts have been described above. Obviously, for those skilled in the art, the above detailed disclosure is only for example and does not constitute a limitation of this specification. Although not explicitly stated here, those skilled in the art may make various modifications, improvements and corrections to this specification. Such modifications, improvements and corrections are suggested in this specification, so such modifications, improvements and corrections still belong to the spirit and scope of the exemplary embodiments of this specification.

[0101] At the same time, this specification uses specific words to describe the embodiments of this specification. For example, "one embodiment", "an embodiment", and / or "some embodiments" refer to a certain feature, structure or characteristic related to at least one embodiment of this specification. Therefore, it should be emphasized and noted that "one embodiment" or "an embodiment" or "an alternative embodiment" mentioned twice or more in different positions in this specification does not necessarily refer to the same embodiment. In addition, certain features, structures or characteristics in one or more embodiments of this specification can be appropriately combined.

[0102] In addition, it will be understood by those skilled in the art that various aspects of this specification may be illustrated and described by a number of patentable categories or situations, including any new and useful process, machine, product or combination of substances, or any new and useful improvements thereto. Accordingly, various aspects of this specification may be performed entirely by hardware, entirely by software (including firmware, resident software, microcode, etc.), or by a combination of hardware and software. The above hardware or software may be referred to as "data blocks", "modules", "engines", "units", "components" or "systems". In addition, various aspects of this specification may be represented as a computer product located in one or more computer-readable media, which includes computer-readable program code.

[0103] A computer storage medium may include a propagated data signal containing computer program code, for example, in baseband or as part of a carrier wave. The propagated signal may be in a variety of forms, including electromagnetic, optical, etc., or a suitable combination. A computer storage medium may be any computer-readable medium other than a computer-readable storage medium, which can be connected to an instruction execution system, device or apparatus to communicate, propagate or transmit the program for use. The program code on the computer storage medium may be transmitted via any suitable medium, including radio, cable, fiber optic cable, RF, or similar media, or any combination of the above media.

[0104] The computer program code required for the operation of each part of this specification can be written in any one or more programming languages, including object-oriented programming languages ​​such as Java, Scala, Smalltalk, Eiffel, JADE, Emerald, C++, C#, VB.NET, Python, etc., conventional procedural programming languages ​​such as C language, Visual Basic, Fortran2003, Perl, COBOL2002, PHP, ABAP, dynamic programming languages ​​such as Python, Ruby and Groovy, or other programming languages, etc. The program code can be run entirely on the user's computer, or run on the user's computer as an independent software package, or run partially on the user's computer and partially on a remote computer, or run entirely on a remote computer or processing device. In the latter case, the remote computer can be connected to the user's computer through any network form, such as a local area network (LAN) or a wide area network (WAN), or connected to an external computer (e.g., via the Internet), or in a cloud computing environment, or used as a service such as software as a service (SaaS).

[0105] In addition, unless explicitly stated in the claims, the order of the processing elements and sequences described in this specification, the use of alphanumeric characters, or the use of other names are not intended to limit the order of the processes and methods of this specification. Although the above disclosure discusses some invention embodiments that are currently considered useful through various examples, it should be understood that such details are only for illustrative purposes, and the attached claims are not limited to the disclosed embodiments. On the contrary, the claims are intended to cover all modifications and equivalent combinations that are consistent with the essence and scope of the embodiments of this specification. For example, although the system components described above can be implemented by hardware devices, they can also be implemented only by software solutions, such as installing the described system on an existing processing device or mobile device.

[0106] Similarly, it should be noted that in order to simplify the description disclosed in this specification and thus help understand one or more embodiments of the invention, in the above description of the embodiments of this specification, multiple features are sometimes combined into one embodiment, figure or description thereof. However, this disclosure method does not mean that the features required by the subject matter of this specification are more than the features mentioned in the claims. In fact, the features of the embodiments are less than all the features of the single embodiment disclosed above.

[0107] In some embodiments, numbers describing the number of components and attributes are used. It should be understood that such numbers used in the description of the embodiments are modified by the modifiers "about", "approximately" or "substantially" in some examples. Unless otherwise specified, "about", "approximately" or "substantially" indicate that the numbers are allowed to vary by ±20%. Accordingly, in some embodiments, the numerical parameters used in the specification and claims are approximate values, which may change according to the required features of individual embodiments. In some embodiments, the numerical parameters should take into account the specified significant digits and adopt the general method of retaining digits. Although the numerical domains and parameters used to confirm the breadth of their range in some embodiments of this specification are approximate values, in specific embodiments, the setting of such numerical values ​​is as accurate as possible within the feasible range.

[0108] Each patent, patent application, patent application publication, and other materials, such as articles, books, specifications, publications, documents, etc., cited in this specification are hereby incorporated by reference in their entirety. Except for application history documents that are inconsistent with or conflicting with the contents of this specification, documents that limit the broadest scope of the claims of this specification (currently or later attached to this specification) are also excluded. It should be noted that if the descriptions, definitions, and / or use of terms in the materials attached to this specification are inconsistent or conflicting with the contents described in this specification, the descriptions, definitions, and / or use of terms in this specification shall prevail.

[0109] Finally, it should be understood that the embodiments described in this specification are only used to illustrate the principles of the embodiments of this specification. Other variations may also fall within the scope of this specification. Therefore, as an example and not a limitation, alternative configurations of the embodiments of this specification may be considered consistent with the teachings of this specification. Accordingly, the embodiments of this specification are not limited to the embodiments explicitly introduced and described in this specification.

Claims

1. A method for constructing a knowledge production pipeline, comprising: Get knowledge operators; The knowledge operator has a preset standardized interface, and the knowledge operator includes one or more of the following operators: an extraction operator, a mapping operator, a standardization operator, a chaining operator, and a fusion operator; Acquire a knowledge processing flow diagram; the knowledge processing flow diagram at least reflects the data dependency relationship between the knowledge operators; The knowledge operator is loaded according to the knowledge processing flow diagram to obtain the knowledge production pipeline; the knowledge production pipeline is used to receive instance data and process it to generate a knowledge graph. 2 . The method according to claim 1 , wherein the preset standardized interface comprises input parameters and output parameters in a preset form.

3. According to the method as claimed in claim 1, the knowledge operator is custom written and provided by the user or specified by the user from an operator library.

4. The method of claim 3, further comprising: Add user-defined knowledge operators to the operator library.

5. The method of claim 3, further comprising: Provides basic computing components for users to call when writing custom knowledge operators; The basic computing components include one or more of the following: a graph retrieval component, a text processing component, and an embedding component.

6. According to the method as claimed in claim 3, the knowledge operator is written by the user based on the ontology definition data of the target graph, and the ontology definition data of the target graph is customized by the user or determined by the user based on a graph ontology definition template.

7. The method according to claim 1, wherein the knowledge processing flow graph comprises work nodes and data edges, wherein: A working node corresponds to one or more knowledge operators, and a data edge reflects the data flow between working nodes; the knowledge processing flow graph is constructed and provided by a user.

8. The method according to claim 1, wherein loading the knowledge operator according to the knowledge processing flow graph comprises: Compile the knowledge operator to obtain executable code; The executable code of each knowledge operator is assembled according to the knowledge processing flow diagram.

9. The method according to claim 1, wherein the instance data is in the form of structured data or unstructured data.

10. The method of claim 1, wherein the method is executed by a processing device of a knowledge production platform.

11. The method according to claim 1, wherein loading the knowledge operator according to the knowledge processing flow graph further comprises: Setting a data collection component for output data of one or more knowledge operators; The data collection component is used to collect output data of one or more knowledge operators for data backtracking, knowledge verification or knowledge evaluation during the process of the knowledge production pipeline processing instance data to generate a knowledge graph.

12. A system for constructing a knowledge production pipeline, comprising: A knowledge operator acquisition module, used to acquire the knowledge operator; The knowledge operator has a preset standardized interface, and the knowledge operator includes one or more of the following operators: an extraction operator, a mapping operator, a standardization operator, a chaining operator, and a fusion operator; A knowledge processing flow graph acquisition module is used to acquire a knowledge processing flow graph; the knowledge processing flow graph at least reflects the data dependency relationship between the knowledge operators; A knowledge production pipeline determination module, used for loading the knowledge operators according to the knowledge processing flow diagram to obtain the knowledge production pipeline; The knowledge production pipeline is used to receive instance data and process it to generate a knowledge graph.

13. A device for constructing a knowledge production pipeline, comprising at least one storage medium and at least one processor, wherein the at least one storage medium is used to store computer instructions; and the at least one processor is used to execute the computer instructions to implement the method for constructing a knowledge production pipeline as described in any one of claims 1-11.

14. A knowledge graph generation method, comprising: Get instance data; Based on the instance data, a target graph is generated or updated through a knowledge production pipeline generated by a method according to any one of claims 1 to 11.