Apparatus, data structure and computer implemented method for comparing ontologies

By using knowledge graph similarity ranking and minimum set coverage in production lines or supply chains, the inefficiency of automating or expanding production lines or supply chains is solved, achieving efficient automated matching and optimization.

CN123178632APending Publication Date: 2026-11-27ROBERT BOSCH GMBH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610746305.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2025-05-27
Filing Date
2026-05-27
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies struggle to efficiently and automatically optimize or scale the design of production lines or supply chains, especially when the knowledge graph is very large, resulting in inefficient matching processes.

Method used

By providing a first knowledge graph representing a first ontology, a second knowledge graph representing a second ontology, and a third knowledge graph representing a third ontology, their similarity and ranking are determined. The most relevant knowledge graph is found within a finite time using the minimum set coverage problem or the weighted minimum set coverage problem, thereby achieving automated production line or supply chain optimization.

Benefits of technology

It enables efficient matching and optimization of production lines or supply chains within a limited timeframe, providing interpretable ranking and variance analysis to support the improvement and expansion of production lines or supply chains.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178632A_ABST
    Figure CN123178632A_ABST
Patent Text Reader

Abstract

Apparatus, data structure and computer-implemented method for comparing ontologies, in particular for optimizing or extending a production line or a supply chain, wherein the method comprises providing a first knowledge graph representing a first ontology (202), providing a second knowledge graph representing a second ontology (204), providing a third knowledge graph representing a third ontology (206), determining a result of comparing the ontologies, wherein the result comprises a ranking of the second and third knowledge graphs according to a similarity between the first and second knowledge graphs and a similarity between the first and third knowledge graphs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to equipment, data structures, and computer-implemented methods for comparing entities, particularly for optimizing or expanding production lines or supply chains. Background Technology

[0002] In industrial applications, ontology is used to describe, for example, manufacturing processes, supply chains, and physical equipment.

[0003] Matching an ontology's draft with available ontologies allows for improvements to the draft's design or its expansion. In industrial applications, an expanded draft corresponds to, for example, an expanded production line or an expanded supply chain.

[0004] Ernesto Jimenez-Ruiz, Bernardo Cuenca Grau, Yujiao Zhou, and Ian Horrocks’ “Large-scale Interactive Ontology Matching” (Algorithms and Implementation, ECAI 2012) describes a method for ontology matching.

[0005] Agmon S.’s “The Relaxation Method for Linear Inequalities” (Canadian Journal of Mathematics. 1954; 6: 382-392. doi: 10.4153 / CJM-1954-037-2) describes a relaxation method for linear inequalities. Summary of the Invention

[0006] The computer method of independent claim 1 compares a draft of an ontology with an available ontology. This method enables the automatic improvement of the draft's design or expansion.

[0007] A computer-implemented method for comparing ontology, particularly for optimizing or extending a production line or supply chain, includes: providing a first knowledge graph representing a first ontology, providing a second knowledge graph representing a second ontology, providing a third knowledge graph representing a third ontology, and determining a result for comparing the ontology, wherein the result includes ranking the second and third knowledge graphs based on similarity between the first and second knowledge graphs and similarity between the first and third knowledge graphs. The ontology is represented as a knowledge graph. Given a draft knowledge graph representation, the method finds the knowledge graph most relevant to the draft representation in a given set of knowledge graphs representing available ontology. The method performs this in runtime comparable to quicksort applied to the union of triples belonging to a given knowledge graph. The method returns the matching knowledge graph as a result in a finite amount of time, particularly when the set of knowledge graphs is very large.

[0008] The advantage of this method is that it solves the optimization problem of geometric representation of entities based on knowledge graphs and provides interpretable rankings.

[0009] The method may include determining a first knowledge graph based on a first ontology, determining a second knowledge graph based on a second ontology, and determining a third knowledge graph based on a third ontology.

[0010] The method may include providing atomic words and relations to a first ontology, providing entities associated with atomic words according to the first ontology to a first knowledge graph, providing relations based on relations of atomic words in the first ontology to the first knowledge graph, providing atomic words and relations to a second ontology, providing entities associated with atomic words according to the second ontology to a second knowledge graph, providing relations based on relations of atomic words in the second ontology to the second knowledge graph, and determining the similarity between the first knowledge graph and the second knowledge graph based on atomic words associated with entities related to the same relations in both knowledge graphs.

[0011] For example, to efficiently determine similarity, the method may include determining a first subgraph of entities related by a given relation in a first knowledge graph, a second subgraph of entities related by a given relation in a second knowledge graph, and a third subgraph of entities related by a given relation in a third knowledge graph; determining a first set of entities including entities in subgraphs associated with the same atomic words; determining a second set of entities including entities in subgraphs connected to entities in the first set of entities by paths of a given length and associated with the same atomic words; and determining similarity based on the first set of entities and the second set of entities.

[0012] For example, to take synonyms into account, the method may include finding synonyms of atomic words associated with entities in the second knowledge graph, associating synonyms with entities, and determining the similarity between the first and second knowledge graphs based on the synonyms.

[0013] For example, to efficiently determine similarity, the method may include determining an indication for whether a second knowledge graph includes entities from a first entity set, determining an indication for whether a second knowledge graph includes entities from a second entity set, and determining the similarity between a first knowledge graph and a second knowledge graph based on the indication determined for the second knowledge graph; or determining an indication for whether a third knowledge graph includes entities from a first entity set, determining an indication for whether a third knowledge graph includes entities from a second entity set, and determining the similarity between a first knowledge graph and a third knowledge graph based on the indication determined for the third knowledge graph.

[0014] For example, to efficiently determine similarity, the method may include solving a minimum set cover problem or a weighted minimum set cover problem, wherein the problem is defined depending on the indication.

[0015] The method may include a first ontology and a first knowledge graph representing a production line, wherein a second ontology and a second knowledge graph represent a first proposed alternative production line, wherein a third ontology and a third knowledge graph represent a second proposed alternative production line, wherein the method includes result-dependent optimization of the production line, wherein a proposed alternative production line represented by a knowledge graph ranked as more similar to the knowledge graph representing the production line is selected as the optimized production line, or wherein the method includes result-dependent expansion of the production line, wherein a proposed alternative production line represented by a knowledge graph ranked as more similar to the knowledge graph representing the production line is selected as the optimized production line. According to one example, a production line exists represented by a first ontology. For example, a proposed alternative production line is compared with an existing production line. The characteristics of the existing production line are known, and the selected proposed alternative production line is designed to be closer to having the characteristics of the existing production line than other proposed alternative production lines. The difference between the knowledge graph representing the selected proposed alternative production line and the first knowledge graph reveals modifications. The difference can be determined. The difference can be output.

[0016] The method may include configuring the production line according to an entity representing a selected alternative production line.

[0017] The method may include a first ontology and a first knowledge graph representing the supply chain, wherein a second ontology and a second knowledge graph represent a first proposed alternative supply chain, wherein a third ontology and a third knowledge graph represent a second proposed alternative supply chain, wherein the method includes outcome-dependent supply chain optimization, wherein a proposed alternative supply chain represented by a knowledge graph ranked as more similar to the knowledge graph representing the supply chain is selected as the optimized supply chain, or wherein the method includes outcome-dependent supply chain expansion, wherein a proposed alternative supply chain represented by a knowledge graph ranked as more similar to the knowledge graph representing the supply chain is selected as the optimized supply chain. According to one example, a supply chain exists represented by a first ontology. For example, the proposed alternative supply chain is compared with an existing supply chain. The characteristics of the existing supply chain are known, and the selected proposed alternative supply chain is designed to be closer to having the characteristics of the existing supply chain than other proposed alternative supply chains. Differences between the knowledge graph representing the selected proposed alternative supply chain and the first knowledge graph reveal modifications. The differences can be determined. The differences can be output. The existing supply chain may include required materials or components. The proposed alternative supply chain may represent materials or components that can be supplied by different suppliers. This means that the knowledge graph representing a more compatible proposed alternative supply chain is ranked more similarly.

[0018] An apparatus for comparing an ontology includes at least one processor and at least one memory, wherein the at least one memory stores instructions that, when executed by the at least one processor, cause the apparatus to perform the method.

[0019] A computer program for comparing ontologies includes computer-readable instructions that, when executed by a computer, cause the computer to perform the method.

[0020] A data structure for comparing ontology includes at least one data field for a first knowledge graph representing a first ontology, a second knowledge graph representing a second ontology, a third knowledge graph representing a third ontology, and a result of comparing ontology, wherein the result includes rankings of the second and third knowledge graphs based on similarity between the first and second knowledge graphs and similarity between the first and third knowledge graphs.

[0021] The data structure may include at least one data field for the first ontology, the second ontology, and the third ontology.

[0022] The data structure may include at least one data field for the following: a first subgraph of entities related by a given relation in a first knowledge graph, a second subgraph of entities related by a given relation in a second knowledge graph, a third subgraph of entities related by a given relation in a third knowledge graph, a first entity set including entities of subgraphs associated with the same atomic word, and a second entity set including entities of the first entity set associated with the same atomic word.

[0023] The data structure may include at least one data field for the following purposes: an indication of whether the second knowledge graph includes entities in the first entity set; or the data structure may include at least one data field for the following purposes: an indication of whether the third knowledge graph includes entities in the first entity set; or the third knowledge graph includes entities in the second entity set. Attached Figure Description

[0024] Further examples can be derived from the description and accompanying figures below. In the accompanying figures: Figure 1 The diagram schematically depicts a device for comparing a draft of the ontology with a usable ontology. Figure 2 The illustration shows the first result of comparing the draft with the available ontology. Figure 3 The illustration shows the second result of comparing the draft with the available ontology. Figure 4 A flowchart is depicted for a method used to compare a draft with an available ontology. Figure 5 A data structure is illustrated schematically. Detailed Implementation

[0025] Figure 1 A device 100 for comparing a draft of an ontology with an available ontology is schematically depicted.

[0026] Device 100 includes at least one processor 102 and at least one memory 104. The at least one memory 104 is configured to store instructions that, when executed by the at least one processor 102, cause device 100 to perform a method for comparing a draft of an ontology with a usable ontology.

[0027] Device 100 may include interface 106. Interface 106 is configured to receive at least one ontology. Interface 106 is configured to output the result of comparing a draft of an ontology with an available ontology.

[0028] Device 100 is configured to represent ontology as a knowledge graph.

[0029] A knowledge graph can be viewed as a directed graph with additional information associated with vertices (entities) and arcs.

[0030] Let the arc set A(G) be a set of triples of the form <subject, predicate, object>, and the vertex set V(G) be the set of all entities, i.e., subjects or objects, or isolated entities. Each triple is an arc connecting two entities. The type of the arc (i.e., the type of relationship between the two entities) is specified by the predicate.

[0031] Device 100 is configured to communicate via knowledge graph G 0 This represents a draft of the ontology. Device 100 is configured to use the knowledge graph G. j The available ontology is represented by a set of j∈[n].

[0032] Device 100 is configured for use in Figure G j With G 0 Constructing graph G in the sense of similarity j The ranking.

[0033] Device 100 is configured for fusing map G 0 and G j To obtain the knowledge graph G.

[0034] This means that Figure G j It is a subgraph of knowledge graph G.

[0035] Device 100 is configured to represent text information associated with entity x as a string T(x). The string T(x) includes at least one atomic word. The atomic word is, for example, a word in natural language.

[0036] For example, if entity x corresponds to a class, then string T(x) includes the class name as one or more words or information from annotations such as labels or comments.

[0037] Device 100 is configured to represent atomic words associated with entity x as a set of atomic words L(x).

[0038] In one example, where atomic words are words in natural language, device 100 can be configured to expand the atomic word set L(x) by adding semantically similar words that already exist in L(x) using a suitable natural language model or chatbot. Semantically similar words are, for example, synonyms of atomic words.

[0039] According to one example, device 100 can be configured to extend knowledge graph G by adding, for example, synonyms or supernouns as new entities related to those in L(x).

[0040] For example, device 100 can be configured to extend knowledge graph G using natural language queries that are appropriately formulaic for chatbots.

[0041] Device 100 can be configured for use in Figure G 0 and G j The device 100 can be configured to represent atomic words from different languages ​​in a set of atomic words L(x) in one language. This language can be one of the different languages ​​or another language. The device 100 can also be configured to translate atomic words that are not in one language into one language.

[0042] Atomic words are not limited to textual information in natural language. A graph can be a digital representation of a physical system. Atomic words can include features characterizing a time series of a physical system.

[0043] Device 100 is configured to determine a subgraph G of a knowledge graph G derived from relation p. p .

[0044] This means that subgraph G p This includes triples in a knowledge graph G whose predicate is relation p. Subgraph G p For example, it is a set of triples (x, p, x′) belonging to a knowledge graph G, where x and x′ are entities of the knowledge graph G.

[0045] For example, a knowledge graph G includes the predicate "subSetOf", and subgraphs G p This includes all triples containing the predicate "subSetOf".

[0046] Device 100 is configured to determine embedding.

[0047] Device 100 is configured to determine the embedding based on the set. Set D is called a dictionary.

[0048] Device 100 is configured, for example, to use the following procedure at time O(d|V(G) 0 )|log|D(G 0 )|) is the entity x∈V(G 0 A dictionary D(G) is constructed from atomic words with an average number d. 0 ):

[0049] This means that device 100 is configured to identify with G 0 The atomic words associated with the entity.

[0050] For the atomic word a∈D(G) 0E(a) denotes entity x∈V(G) 0 A set of x such that a∈L(x).

[0051] The entity set E(a) is constructed during the process of the program.

[0052] Subgraph G p It can be constructed in time O(|A(G)|).

[0053] Device 100 can be configured to be used for a∈D(G) 0 Construct entity x∈V(G) p The first entity set Make a∈L(x), and construct entity x∈V(G) p The second entity set This makes entity a∈L(x).

[0054] Entity set The set of entities x is recursively defined such that for some

[0055] Entity set A set defined as entity x, such that for some

[0056] Device 100 is configured to construct a binary matrix A defined as follows: The rows of binary matrix A correspond to some x∈V(G) 0 ) and for some j∈[n]. some x∈V(G j entity set

[0057] The columns of the binary matrix correspond to the graphs G above for which there exist l, p, a, x. j , j∈[n]. Let J be the index set of these graphs.

[0058] If G j have The entities in the set correspond to the entity set. The rows and corresponding to graph G j An entry in binary matrix A at the intersection of columns is equal to 1, and otherwise, the entry is equal to 0.

[0059] Device 100 is configured to cover knowledge graph G by solving the following minimum set coverage problem. 0 With knowledge graph G j Matching: Alternatively, the following weighted minimum set cover problem can be solved: Where w j Indicate weight.

[0060] For weight w j =1, the weighted minimum set cover problem is the minimum set cover problem.

[0061] Example weight w j yes

[0062] The problems described above belong to the category of set covering problems. Both the minimum cover and minimum weight cover problems are NP-hard.

[0063] Device 100 can be configured to use an integer programming solver to find the optimal solution. An integer programming solver can be used if |J| is relatively small.

[0064] Otherwise, device 100 can be configured to apply heuristic algorithms to find a reasonably good solution.

[0065] Device 100 can be configured with a heuristic based on solving linear programming relaxation.

[0066] Device 100 can be configured with a fast greedy heuristic algorithm that sorts the weights w in a non-decreasing order. j Sort j∈J. Let π be a permutation of the index set J corresponding to the non-decreasing order of the weights. Device 100 can be configured to rank according to a first procedure used for ranking: t:=1 J1: = {π(1)} t := t+1 J t :=J t-1 ∪{π(t)} end while Return(π(1), ..., π(t)) Where π represents the corresponding permutation, J t It is the set of indices that has been traversed through the corresponding iteration t, and A j These are the corresponding columns of matrix A for each j. The ranking procedure starts with the smallest weight and proceeds up to...

[0067] The first ranking procedure returns the index of the most relevant knowledge graph, and π leads to the corresponding ranking.

[0068] The algorithm always compares j with the minimum value w.j Place it at the first position in the sorting process.

[0069] The second procedure for ranking the minimum set cover problem additionally includes an upper bound ξ on the optimal value of the corresponding weighted set cover problem and an accuracy ∈ > 0: Input: ξ, ∈ ∈ (0, 1), k∈Z ++ Output: z π(1) , ..., z π(|J′|) z::=0 repeat z′:=z Sample k rows A′ of A from a uniform distribution. Until z = z' or the given number of iterations is reached. J′:={j∈J:z j >0} Make z π(1) ≥…≥z π (|J′|) Return (π(1), ..., π(t)) and the corresponding weights (z). π(1) , ..., z π(|J′|) ) Where ξ represents the upper bound of the hypothesis for the optimal value, ∈ represents the accuracy, and (π(1), ..., π(t)) is a subset of the knowledge graph G. j The rank of j∈[n]. (Compared to G) 0 Related.

[0070] If the upper bound ξ is an effective upper bound for the optimal value, then the current solution z converges to an approximate solution of LP relaxation whose objective value is not greater than ξ+∈.

[0071] Sampling performed at each iteration of the second procedure used for ranking allows for reduced computational costs and guarantees high-probability coverage of the knowledge graph G. 0 Associated classes of a given proportion It will also find a list of the most relevant knowledge graphs. This is tuned by the parameter k, and a higher value of this parameter results in higher quality results. An example value for k is k = 10. The second procedure is a modification of Agmon and Motzkin's relaxation method for solving systems of linear inequalities.

[0072] The second procedure for ranking has the advantage that, at each iteration, the current solution is closer to all solutions of the LP relaxation, including those feasible for the original set-cover problem, provided that ξ is a valid upper bound on the optimal value of the set-cover problem. Furthermore, after a certain number of iterations, the current solution z considered by the second procedure for ranking can be used to generate a ranking. Therefore, in practical applications, running the algorithm up to a given number of iterations is sufficient, rather than waiting until z = z′. The latter condition is guaranteed to be met only if ξ is a valid upper bound on the optimal value of the set-cover problem.

[0073] Figure 2 The diagram illustrates the knowledge graph G. 0 The draft ontology 202 is represented by the ontology set, wherein the first ontology 204 of the set is derived from the first knowledge graph G. 1 This indicates that the second ontology 206 of the set is derived from the second knowledge graph G. 2 This indicates that the third ontology 208 of the set is derived from the third knowledge graph G. 3 This indicates that the fourth ontology 210 of the set is derived from the fourth knowledge graph G. 4 This indicates that the fifth ontology 212 of the set is derived from the fifth knowledge graph G. 5 express.

[0074] Draft ontology 202 is an example of an ontology provided for comparison with a set of ontology sets. This description is not limited to the fact that ontology 202 is a draft. Any other ontology can be compared with a set of ontology sets or another set of ontology sets, as described with respect to draft ontology 202 and the set of ontology sets.

[0075] Knowledge Graph G 0 This includes the first entity 214 associated with the atomic words (a, b, c, d). Based on this example, the knowledge graph G... 0 The first entity 214 is the knowledge graph G. 0 The root node.

[0076] Knowledge Graph G 0 The first entity 214 is connected to the knowledge graph G through relation p. 0 Second entity 216, knowledge graph G 0 The third entity 218 and the knowledge graph G 0 The fourth entity 220 is related.

[0077] Knowledge Graph G 0 The second entity 216 is associated with the atomic word (e, f). Knowledge Graph G 0 The third entity 218 is associated with the atomic word (e, g). Knowledge Graph G 0 The fourth entity 220 is associated with the atomic word (h, i, j).

[0078] Knowledge Graph G 0The third entity 218 is connected to the knowledge graph G through relation p. 0 The fifth entity 222 is related.

[0079] Knowledge Graph G 0 The fifth entity 222 is associated with the atomic word (e, g).

[0080] Knowledge Graph G 1 This includes the first entity 224 associated with the atomic words (a, b, c, d). Based on this example, the knowledge graph G... 1 The first entity 224 is the knowledge graph G 1 The root node.

[0081] Knowledge Graph G 1 The first entity 224 is connected to the knowledge graph G through relation p. 1 The second entity 226 and knowledge graph G 1 The third entity 228 is related.

[0082] Knowledge Graph G 1 The second entity 226 is associated with the atomic word (k, l). Knowledge Graph G 1 The third entity 228 is associated with the atomic word (w).

[0083] Knowledge Graph G 2 This includes the first entity 230 associated with the atomic words (a, b, c, d). Based on this example, the knowledge graph G... 2 The first entity 230 is the knowledge graph G 2 The root node.

[0084] Knowledge Graph G 2 The first entity 230 is connected to the knowledge graph G through relation p. 2 The second entity 232 and knowledge graph G 2 The third entity 234 is related.

[0085] Knowledge Graph G 2 The second entity 232 is associated with the atomic word (k, l). Knowledge graph G 2 The third entity 234 is associated with the atomic word (m, n).

[0086] Knowledge Graph G 3 This includes the first entity 236 associated with the atomic words (a, b, c, d). Based on this example, the knowledge graph G... 3 The first entity 236 is the knowledge graph G 3 The root node.

[0087] Knowledge Graph G 3 The first entity 236 is connected to the knowledge graph G through relation p. 3 The second entity 238 and knowledge graph G 3The third entity 240 is related.

[0088] Knowledge Graph G 3 The second entity 238 is associated with the atomic word (k, m). Knowledge Graph G 3 The third entity 240 is associated with the atomic word (r).

[0089] Knowledge Graph G 4 This includes the first entity 242 associated with the atomic words (a, b, c, d). Based on this example, the knowledge graph G... 4 The first entity 242 is the knowledge graph G. 4 The root node.

[0090] Knowledge Graph G 4 The first entity 242 is connected to the knowledge graph G through relation p. 4 Second entity 244, knowledge graph G 4 The third entity 246 and knowledge graph G 4 The fourth entity 248 is related.

[0091] Knowledge Graph G 4 The second entity 244 is associated with the atomic word (k, l). The third entity 246 of the knowledge graph is associated with the atomic word (m, n). Knowledge Graph G 4 The fourth entity 248 is associated with the atomic words (p, q, r).

[0092] Knowledge Graph G 4 The third entity 246 is connected to the knowledge graph G through relation p. 4 The fifth entity 250 is related.

[0093] Knowledge Graph G 4 The fifth entity 250 is associated with the atomic word (s, t).

[0094] Knowledge Graph G 5 This includes the first entity 252 associated with the atomic words (a, b, c, d). Based on this example, the knowledge graph G... 5 The first entity 252 is the knowledge graph G. 5 The root node.

[0095] Knowledge Graph G 5 The first entity 252 is connected to the knowledge graph G through relation p. 5 Second entity 254, knowledge graph G 5 The third entity 256, knowledge graph G 5 The fourth entity 258 and knowledge graph G 5 The fifth entity 260 is related.

[0096] Knowledge Graph G 5The second entity 254 is associated with the atomic word (k, l). Knowledge Graph G 5 The third entity 256 is associated with the atomic word (m, n). Knowledge Graph G 5 The fourth entity, 258, is associated with the atomic word (k, m, r). Knowledge Graph G 5 The fifth entity 260 is associated with the atomic word (s, t).

[0097] The atomic word associated with entity x is denoted as L(x). For example, L(x) = (a, b, c, d) for x is used to represent the root node of one of the knowledge graphs.

[0098] Device 100 is configured to identify G j j∈[1,...,5] and knowledge graph G 0 The knowledge graph with the fewest similarities.

[0099] Device 100 is configured to identify the minimum quantity by solving a minimum set cover problem or a weighted minimum set cover problem.

[0100] For example, G j The minimum set covering problem has five variables, j∈[1,...,5]. This corresponds to the knowledge graph G. 4 The columns of matrix A are all 1 vectors.

[0101] This means that in the first procedure used for ranking, setting variables z4 = 1 and z1, z2, z3, z5 = 0 is sufficient to obtain the optimal solution 262.

[0102] Optimal solution 262 illustrates the first result of comparing the draft ontology with the available ontology.

[0103] Device 100 can be configured to use language models to identify knowledge graphs G. 0 , ..., G 5 The entity is associated with at least one of the atomic words and at least one synonym.

[0104] Device 100 can be configured to apply language models to knowledge graphs G. 1 , ..., G 5 The identifiers in the atomic words associated with the entity and the knowledge graph G 0 The entity is associated with at least one of the atomic words and at least one synonym.

[0105] Device 100 can be configured to compare the draft ontology with the ontology set, taking into account at least one of the identified synonyms.

[0106] Device 100 is configured, for example, to add synonyms of atomic words associated with entity x to the set of atomic words L(x) associated with entity x.

[0107] Figure 3 This is illustrated as an example, where the atom word 'e' is a synonym for the atom word 'w'.

[0108] Figure 3 The diagram illustrates the knowledge graph G. 0 The draft ontology 202 and the knowledge graph G are represented. j Let j∈[1, ..., 5] represent the ontology set. Figure 2 Compared to the ontology set described in [the text], except for the atomic word w, Figure 3 The first knowledge graph G of the set described in 1 The third entity 228 is also associated with the atomic word e.

[0109] For example, G j The minimum set covering problem has five variables, j∈[1,...,5]. Matrix A corresponds to the knowledge graph G. 1 The columns of A are all 1 vectors, and matrix A corresponds to the knowledge graph G. 4 The columns are all 1s in the vector.

[0110] This means that in the first procedure used for ranking, it is sufficient to set variables z1=1 and z4=1 and variables z2, z3, z5=0 to obtain the optimal solution 264.

[0111] This means that knowledge graph G 1 It is additionally included in the optimal solution 264.

[0112] Optimal solution 264 illustrates the second result of comparing the draft ontology with the available ontology.

[0113] Figure 4 A flowchart is depicted for a method to compare a draft with an available ontology.

[0114] The method includes step 400.

[0115] Step 400 includes providing an ontology draft and an ontology set.

[0116] Ontologies are provided, for example, with atomic terms and relations.

[0117] The method includes step 402.

[0118] Step 402 includes providing a knowledge graph G representing the draft ontology 202. 0 .

[0119] Step 402 includes providing a knowledge graph G representing the ontology set. jA set of.

[0120] For example, knowledge graph G 0 G j It depends on the corresponding knowledge graph G 0 G j The ontology represented is determined separately. For example, knowledge graph G 0 G j Provided with information based on the corresponding knowledge graph G 0 G j The entities associated with the atomic words of the represented ontology. For example, knowledge graph G. 0 G j Provided with information based on the corresponding knowledge graph G 0 G j The relationships between atomic words in the ontology.

[0121] The method includes step 404.

[0122] Step 404 includes determining the results of the comparison ontology.

[0123] The results include knowledge graphs representing draft ontology 202 and knowledge graph G. j The corresponding similarity between individual knowledge graphs of a set, for a knowledge graph G representing an ontology set. j The sets are ranked.

[0124] The similarity between two knowledge graphs can be determined, for example, by the atomic words associated with entities that are related to the same relations in the two knowledge graphs.

[0125] The method may include determining the similarity between two knowledge graphs based on synonyms of atomic words associated with entities in one of the knowledge graphs.

[0126] The method may include finding synonyms of atomic words associated with an entity and associating those synonyms with the entity as additional atomic words.

[0127] The determination of the result may include determining the knowledge graph G represented by the ontology draft 202. 0 A subgraph G of entities related to a given relation p. p and knowledge graph G j A set of.

[0128] The determination result may include determining the entity set. and depends on the entity set Determine similarity.

[0129] First Entity Set This includes entities in subgraphs associated with the same atomic word.

[0130] The first entity set Including paths of a given length of 1 to the first entity set The entities in the subgraph that are connected to the entities in the graph.

[0131] The method may include determining an indication of whether a knowledge graph used to indicate a set of knowledge graphs includes entities from a first entity set.

[0132] The method may include determining an indication of whether a knowledge graph, used to indicate the knowledge graph set, includes entities from a second entity set.

[0133] The method may include determining the similarity of at least one knowledge graph in a set of knowledge graphs, depending on an indication determined for at least one knowledge graph.

[0134] The method may include determining similarity by solving a minimum set problem or a weighted minimum set problem that depends on the indication.

[0135] An example of an indication is the element at the intersection of a row and a column of matrix A.

[0136] An example of how similarity is determined based on an indication is solving the minimum set problem or the weighted minimum set problem defined by matrix A.

[0137] Figure 5 The data structure 500 used for comparing the ontology is illustrated schematically.

[0138] Data structure 500 includes at least one data field 502 for representing a knowledge graph of draft ontology 202.

[0139] Data structure 500 includes at least one data field 502 for the knowledge graph collection.

[0140] Data structure 500 includes at least one data field 502 for the result.

[0141] Data structure 500 may include at least one data field 502 for draft body 202.

[0142] Data structure 500 may include at least one data field 502 for the set of ontology 202, ... 212.

[0143] Data structure 500 may include at least one data field 502 for a subgraph of entities related by a given relationship.

[0144] Data structure 500 may include data for entity sets. At least one data field 502.

[0145] Data structure 500 may include at least one data field 502 for indicating, in particular, matrix A.

[0146] The production line example is described below: According to the production line example, the first ontology 202 and the first knowledge graph represent the production line, the second ontology 204 and the second knowledge graph represent the first proposed alternative production line, and the third ontology 206 and the third knowledge graph represent the second proposed alternative production line.

[0147] The method may include optimizing the production line based on the results.

[0148] Suggested alternative production lines, ranked as those more similar to the knowledge graph representing the production line, are selected as the optimized production line.

[0149] The method may include expanding the production line depending on the results.

[0150] Suggested alternative production lines, ranked as those more similar to the knowledge graph representing the production line, are selected as the optimized production line.

[0151] The supply chain example is described below: According to the supply chain example, the first ontology 202 and the first knowledge graph represent the supply chain, the second ontology 204 and the second knowledge graph represent the first proposed alternative supply chain, and the third ontology 206 and the third knowledge graph represent the second proposed alternative supply chain.

[0152] The method may include optimizing the supply chain based on the outcome, wherein a suggested alternative supply chain ranked as more similar to a knowledge graph representing the supply chain is selected as the optimized supply chain.

[0153] The method may include, depending on the outcome, expanding the supply chain, wherein a suggested alternative supply chain ranked as more similar to a knowledge graph representing the supply chain is selected as the optimized supply chain.

Claims

1. A computer-implemented method for comparing ontologies, particularly for optimizing or expanding production lines or supply chains, characterized in that, The method includes providing (402) a first knowledge graph representing a first ontology (202), providing (402) a second knowledge graph representing a second ontology (204), providing (402) a third knowledge graph representing a third ontology (206), and determining (404) a result of comparing the ontology, wherein the result includes ranking the second knowledge graph and the third knowledge graph based on the similarity between the first knowledge graph and the second knowledge graph, and the similarity between the first knowledge graph and the third knowledge graph.

2. The method according to claim 1, characterized in that, The method includes determining (402) a first knowledge graph based on a first ontology (202), determining (402) a second knowledge graph based on a second ontology (204), and determining (402) a third knowledge graph based on a third ontology (206).

3. The method according to any one of the preceding claims, characterized in that, The method includes providing (400) atomic words and relations to a first ontology (202), providing (402) entities associated with atomic words according to the first ontology to a first knowledge graph, providing (402) relations of relations of atomic words in the first ontology (202) to the first knowledge graph, providing (400) atomic words and relations to a second ontology (204), providing (402) entities associated with atomic words according to the second ontology to the second knowledge graph, providing (402) relations of relations of atomic words in the second ontology (204) to the second knowledge graph, determining (404) the similarity between the first knowledge graph and the second knowledge graph based on the atomic words associated with the entities, wherein the entities are associated with the same relations in the two knowledge graphs.

4. The method according to claim 3, characterized in that, The method includes determining a first subgraph of entities related by a given relation in a first knowledge graph, a second subgraph of entities related by a given relation in a second knowledge graph, and a third subgraph of entities related by a given relation in a third knowledge graph; determining (404-2) a first set of entities including entities in subgraphs associated with the same atomic word; determining a second set of entities including entities in subgraphs connected to entities in the first set of entities by paths of a given length and associated with the same atomic word; and determining similarity based on the first set of entities and the second set of entities.

5. The method according to claim 4, characterized in that, The method includes finding synonyms of atomic words associated with entities in the second knowledge graph, associating the synonyms with the entities, and determining the similarity between the first knowledge graph and the second knowledge graph based on the synonyms.

6. The method according to claim 4 or 5, characterized in that, The method includes determining an indication for indicating whether a second knowledge graph includes entities in a first entity set, determining an indication for indicating whether a second knowledge graph includes entities in a second entity set, and determining the similarity between a first knowledge graph and a second knowledge graph based on the indication determined for the second knowledge graph, or determining an indication for indicating whether a third knowledge graph includes entities in a first entity set, determining an indication for indicating whether a third knowledge graph includes entities in a second entity set, and determining the similarity between a first knowledge graph and a third knowledge graph based on the indication determined for the third knowledge graph.

7. The method according to claim 6, characterized in that, The method includes solving a minimum set problem or a weighted minimum set problem, wherein the problem is defined depending on the instructions.

8. The method according to any one of the preceding claims, characterized in that, The first ontology (202) and the first knowledge graph represent production lines, wherein the second ontology (204) and the second knowledge graph represent first suggested alternative production lines, wherein the third ontology (206) and the third knowledge graph represent suggested alternative production lines, wherein the method includes optimizing the production line based on the outcome, wherein suggested alternative production lines represented by a knowledge graph ranked as more similar to the knowledge graph representing the production line are selected as optimized production lines, or wherein the method includes expanding the production line based on the outcome, wherein suggested alternative production lines represented by a knowledge graph ranked as more similar to the knowledge graph representing the production line are selected as optimized production lines.

9. The method according to claim 8, characterized in that, The production line is configured according to the suggested alternative production line body.

10. The method according to any one of the preceding claims, characterized in that, A first ontology (202) and a first knowledge graph represent a supply chain, wherein a second ontology (204) and a second knowledge graph represent a first proposed alternative supply chain, wherein a third ontology (206) and a third knowledge graph represent a second proposed alternative supply chain, wherein the method includes optimizing the supply chain based on an outcome, wherein a proposed alternative supply chain represented by a knowledge graph ranked as more similar to the knowledge graph representing the supply chain is selected as the optimized supply chain, or wherein the method includes expanding the supply chain based on an outcome, wherein a proposed alternative supply chain represented by a knowledge graph ranked as more similar to the knowledge graph representing the supply chain is selected as the optimized supply chain.

11. A device (100) for comparing bodies, particularly for optimizing or expanding production line or supply chain management, characterized in that, The device (100) includes at least one processor (102) and at least one memory (104), wherein the at least one memory (104) stores instructions that, when executed by the at least one processor (102), cause the device to perform the method according to any one of the preceding claims.

12. A computer program, characterized in that, The computer program includes computer-readable instructions that, when executed by a computer, cause the computer to perform the method according to any one of claims 1 to 10.

13. A data structure (500) for comparing ontologies, particularly for optimizing or extending production lines or supply chains, characterized in that, The data structure includes at least one data field (502) for representing a first knowledge graph of a first ontology (202), a second knowledge graph of a second ontology (204), a third knowledge graph of a third ontology (206), and a result of comparing the ontology, wherein the result includes rankings of the second and third knowledge graphs based on the similarity between the first and second knowledge graphs and the similarity between the first and third knowledge graphs.

14. The data structure (500) according to claim 13, characterized in that, The data structure (500) includes at least one data field (502) for the first ontology (202), the second ontology (204), and the third ontology (206).

15. The data structure (500) according to claim 13 or 14, characterized in that, The data structure (500) includes at least one data field (502) for the following: a first subgraph of entities related by a given relation in a first knowledge graph, a second subgraph of entities related by a given relation in a second knowledge graph, a third subgraph of entities related by a given relation in a third knowledge graph, a first entity set of entities including subgraphs associated with the same atomic word, and a second entity set of entities including the first entity set of entities associated with the same atomic word.

16. The data structure (500) according to claims 13 to 15, characterized in that, The data structure (500) includes at least one data field (502) for the following: an indication of whether the second knowledge graph includes entities in the first entity set, an indication of whether the second knowledge graph includes entities in the second entity set, or the data structure (500) includes at least one data field (502) for the following: an indication of whether the third knowledge graph includes entities in the first entity set, an indication of whether the third knowledge graph includes entities in the second entity set.