Semantic model instantiation method, system and device

By converting semantic models into feature vectors and automatically extracting keyword vectors from semi-structured documents, the labor-intensive semantic model instantiation problem in the existing technology is solved, fast and automatic data matching and extraction is achieved, and the cost is reduced Cost and time of knowledge graph construction.

CN112449700BActive Publication Date: 2024-09-24SIEMENS AG
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201980008609.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-06-28
Publication Date
2024-09-24
Estimated Expiration
2039-06-28

AI Technical Summary

Technical Problem

It is difficult for existing technologies to automatically identify and extract relevant data instances in semi-structured files, resulting in high human involvement, cost and time in the instantiation process of semantic models in the industrial field, and difficulty in adapting to different forms of raw data.

Method used

By converting semantic models into feature vectors, calculating synonyms and building a synonym database, it automatically converts semi-structured documents into keyword vectors, compares the correlation between semantic vectors and keyword vectors, and realizes automatic extraction and matching of data instances.

Benefits of technology

It greatly reduces the workload and cost of knowledge graph construction, realizes convenient knowledge-based services, and accelerates the data extraction and matching process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112449700B
    Figure CN112449700B
Patent Text Reader

Abstract

The present invention provides a semantic model instantiation method, system and device, which include the following steps: S1, receiving a semantic model based on an ontology, parsing the semantic model and converting the semantic model into a feature vector set, wherein the feature vector represents the type, attribute and relationship between the attributes of the ontology; S3, importing a semi-structured file, converting the semi-structured file into a keyword vector based on the semantic vector of the semantic model; S4, comparing the correlation between the semantic vector and the keyword vector, and identifying the keyword vector corresponding to the semantic vector. The present invention can greatly reduce the workload and cost of building a knowledge graph, and accelerate convenient knowledge-based services.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of industrial software, and in particular to a semantic model instantiation method, system and device. Background Art

[0002] Many industries such as social networks, e-commerce, and manufacturing are beginning to provide customers with knowledge-based intelligent functions and services, which require an extensible knowledge database as a foundation. Domain semantic models or schemas can be established by domain experts, however, it is not easy to fill data into the knowledge database according to the semantic model.

[0003] For example, the instantiation of semantic models by filling them with data instances or data individuals still relies mainly on manual work. Typically, when instantiating a semantic model, data instances are manually identified and extracted by engineers in the field. Or the data needs to be processed in some predefined data formats and intermediate tables to be populated into the knowledge database using customized programs. These methods are highly human-involved, so they are costly and time-consuming. In many industrial fields, the original data has different forms, which makes it difficult to apply the customized data extraction process to other situations. Therefore, customers lack tools to automatically extract data instances from domain files based on the defined domain semantic model.

[0004] The prior art provides two solutions. One of the solutions is table analysis and retrieval, which aims at the correlation between user questions and table contents. Among them, when a user asks a question, the table analysis and retrieval algorithm will search the data in the table to determine one or more tables that can potentially answer the above question. Retrieval methods include string similarity algorithm BM25 and unit data similarity calculation. The system may include devices such as semantic parsing, table format analysis, table question similarity comparison and table retrieval process. However, this solution only focuses on how to match user queries and table contents.

[0005] Another approach is ontology matching, which aims to find correlations between entities of two ontologies including types, parameters and instances. Ontology matching includes two basic steps: similarity calculation and queue extraction. These steps compare the two ontologies from two linguistic and structural perspectives, with the goal of transferring data from one ontology model to another. However, this approach does not consider tables as input. Some similar methods also try to extract network table information based on ontology information, but these approaches are mainly based on heuristic rules, which are difficult to extend to arbitrary tables with diverse layouts.

[0006] In addition, existing software tools in the industrial field cannot automatically identify the relationship between any semi-structured document (table) and a domain semantic model to extract relevant data instances. Summary of the invention

[0007] The first aspect of the present invention provides a semantic model instantiation method, which includes the following steps: S1, receiving a semantic model based on an ontology, parsing the semantic model and converting the semantic model into a set of feature vectors, wherein the feature vectors represent the type, attributes and the relationship between the attributes of the ontology; S3, importing a semi-structured file, and converting the semi-structured file into a keyword vector based on the semantic vector of the semantic model; S4, comparing the correlation between the semantic vector and the keyword vector, and identifying the keyword vector corresponding to the semantic vector.

[0008] Furthermore, the following step is also included between steps S1 and S3: S2, matching synonyms of the semantic vector word based on the semantic vector of the semantic model, wherein step S3 also includes the following step: converting the semi-structured document into a keyword vector based on the semantic vector based on the semantic model and its synonyms.

[0009] Furthermore, the step S4 further includes the following step: extracting semi-structured document instance data of the keyword vector corresponding to the semantic vector into a database.

[0010] Furthermore, the ontology includes types, attributes, and relationships between the attributes.

[0011] Furthermore, when the semi-structured file is a table file, the step S3 further includes the following steps: determining the header position of the table file, and identifying the data portion of the table file.

[0012] Furthermore, the step S4 also includes the following steps: executing multiple correlation calculation methods based on the semantic vector, the synonym thesaurus and the keyword vector to obtain multiple correlation values ​​to compare the correlation between the semantic vector and the keyword vector, weighting the correlation values ​​to construct a correlation matrix and screening out parameter mappings to identify the keyword vector corresponding to the semantic vector, wherein the parameter mapping represents matching keyword vectors and semantic vectors.

[0013] Furthermore, the correlation matrix is ​​constructed by the following algorithm:

[0014] M ij =∑w q Sim q (O i , K j )

[0015] Among them, M ij is the correlation, O is the semantic vector, k is the keyword vector, and w q is the weight, Simq It is a correlation algorithm, i, j, q are natural numbers.

[0016] The second aspect of the present invention provides a semantic model instantiation system, including: a processor; and a memory coupled to the processor, the memory having instructions stored therein, the instructions causing the electronic device to perform actions when executed by the processor, the actions including: S1, receiving a semantic model based on an ontology, parsing the semantic model and converting the semantic model into a set of feature vectors, wherein the feature vectors represent the type, attributes and the relationship between the attributes of the ontology; S3, importing a semi-structured file, converting the semi-structured file into a keyword vector based on the semantic vector of the semantic model; S4, comparing the correlation between the semantic vector and the keyword vector, and identifying the keyword vector corresponding to the semantic vector. Furthermore, between the actions S1 and S3, the following is also included: S2, matching the synonyms of the semantic vector words based on the semantic vector of the semantic model, wherein the action S3 also includes: converting the semi-structured file into a keyword vector based on the semantic vector based on the semantic model and its synonyms.

[0017] Furthermore, after the action S4, the step of extracting semi-structured document instance data of the keyword vector corresponding to the semantic vector into a database.

[0018] Furthermore, the ontology includes types, attributes, and relationships between the attributes.

[0019] Furthermore, when the semi-structured file is a table file, the action S3 further includes: determining a header position of the table file, and identifying a data portion of the table file.

[0020] Furthermore, the action S4 also includes: executing multiple correlation calculation methods based on the semantic vector, the synonym thesaurus and the keyword vector to obtain multiple correlation values ​​to compare the correlation between the semantic vector and the keyword vector, weighting the correlation values ​​to construct a correlation matrix and screening out parameter mapping to identify the keyword vector corresponding to the semantic vector, wherein the parameter mapping represents the matching keyword vector and semantic vector.

[0021] Furthermore, the correlation matrix is ​​constructed by the following algorithm:

[0022] M ij =∑w q Sim q (O i , K j )

[0023] Among them, M ijis the correlation, O is the semantic vector, k is the keyword vector, and w q is the weight, Sim q It is a correlation algorithm, i, j, q are natural numbers.

[0024] The third aspect of the present invention provides a semantic model instantiation device, which includes: a first conversion device, which receives a semantic model based on an ontology, parses the semantic model and converts the semantic model into a set of feature vectors, wherein the feature vectors represent the type, attributes and the relationship between the attributes of the ontology; a second conversion device, which imports a semi-structured file and converts the semi-structured file into a keyword vector based on the semantic vector of the semantic model; a comparison and identification device, which compares the correlation between the semantic vector and the keyword vector, and identifies the keyword vector corresponding to the semantic vector.

[0025] A fourth aspect of the present invention provides a computer program product tangibly stored on a computer readable medium and comprising computer executable instructions which, when executed, cause at least one processor to perform the method according to the first aspect of the present invention.

[0026] A fifth aspect of the present invention provides a computer-readable medium having computer-executable instructions stored thereon, which, when executed, cause at least one processor to perform the method according to the first aspect of the present invention.

[0027] The innovation of the present invention is to convert the semantic model into a semantic vector, including a type vector and a related vector, and to calculate synonyms and build a synonym word library for each semantic vector. The separated semantic vector acts as a guide for information extraction. This enables any semantic model to be parsed into multiple data retrieval search formulas, which helps to automate the data retrieval process that matches the description of the semantic model.

[0028] The innovation of the present invention is to organize useful header data from any semi-structured file and convert it into a keyword vector, which includes identifying the keyword parameter part and the data part of the table file and extracting these keyword parameters into a tree structure. This enables the table to be converted into a vector, and the vector can be used for further comparison and calculation for data extraction.

[0029] The innovation of the present invention is also to extract the correlation mapping of any semantic vector and keyword vector to extract relevant information from semi-structured documents. This is to calculate the difference between the semantic vector and the keyword vector and match the parameter mapping. This realizes a fast and automatic way of evaluating and matching data based on a model.

[0030] The present invention can greatly reduce the workload and cost of building a knowledge graph and accelerate convenient knowledge-based services. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 is a structural schematic diagram of a semantic model instantiation device according to a specific embodiment of the present invention;

[0032] Figure 2 is a schematic diagram of the structure of the semantic model of the semantic model instantiation device according to a specific embodiment of the present invention;

[0033] Figure 3 is a device diagram of a second conversion device 120 of a semantic model instantiation device according to a specific embodiment of the present invention;

[0034] Figure 4 is a schematic diagram of table file processing of a semantic model instantiation device according to a specific embodiment of the present invention;

[0035] Figure 5 It is a flowchart of the steps of defining four key parts of a table file, ULC, RH, CH, and data, of a semantic model instantiation device according to a specific embodiment of the present invention;

[0036] Figure 6 is a schematic diagram of a keyword matrix of a semantic model instantiation device according to a specific embodiment of the present invention;

[0037] Figure 7 is a schematic diagram of correlation calculation of a semantic model instantiation device according to a specific embodiment of the present invention;

[0038] Figure 8 It is a schematic diagram of a correlation matrix of a semantic model instantiation device according to a specific embodiment of the present invention. DETAILED DESCRIPTION

[0039] The specific implementation of the present invention is described below in conjunction with the accompanying drawings.

[0040] The present invention provides a semantic model instantiation mechanism that can extract data instances based on a summary model, which utilizes the corresponding semi-structured data and semantic models. The present invention automatically extracts data from semi-structured documents based on arbitrary semantic models by automatically screening and executing domain semi-structured documents and quickly determining and extracting useful data instances into a knowledge database based on semantic definitions with reasonable accuracy.

[0041] like Figure 1As shown, the semantic model instantiation method provided by the present invention is executed by a semantic model instantiation device 100, wherein the semantic model instantiation device 100 includes a first conversion device 110, a second conversion device 120, a comparison and identification device 130, a matching device 140, an extraction device 150 and a database 160. Among them, the first conversion device 110 parses the semantic model A and converts the semantic model A into a feature vector set. The matching device 140 is used to match the synonyms of the semantic vector words of the semantic model A. Then, the second conversion device 120 inputs the semantic vector and its word synonyms, and imports a semi-structured file B to convert the semi-structured file B into a keyword vector based on the semantic vector of the semantic model A. Then, the comparison and identification device 130 compares the correlation between the semantic vector and the keyword vector, and identifies the keyword vector corresponding to the semantic vector. Finally, the extraction device 150 extracts the semi-structured file instance data of the keyword vector corresponding to the semantic vector to the database 160.

[0042] A first aspect of the present invention provides a semantic model instantiation method, which comprises the following steps:

[0043] First, step S1 is performed, the first conversion device 110 receives a semantic model A based on ontology, parses the semantic model A and converts the semantic model A into a set of feature vectors, wherein the feature vectors represent the type, attributes and the relationship between the attributes of the ontology. That is, the first conversion device 110 decomposes the semantic model A into concepts of classes and subclasses, and uses feature vectors to describe the classes and subclasses.

[0044] The ontology includes types, attributes and the relationship between the attributes. The types also include subclasses of the types. The present invention can establish an ontology library in advance and continuously update the ontology library during the execution of the present invention. For example, the types of the ontology library include: equipment, products, labor, materials, processes and maintenance, etc. The above types are interconnected.

[0045] For example, Figure 2As shown in the figure, the ontology includes a large product model, and the product model includes multiple subcategories: maintenance, equipment, workshop, process, product and labor. Each subcategory corresponds to multiple attributes. Specifically, the attributes of labor include name, phone number, level, gender and number; the attributes of maintenance include number, labor, month, week, planned time, actual time, working hours and level; the attributes of equipment include parameters, name, start service time, type and power; the attributes of workshop include name; the attributes of process include actual start time, actual end time, blockade, buffer size, planned end time, number, planned start time and name; the attributes of product include order number, picture confirmation, actual transportation time, contract, transportation method, customer, planned transportation time, payment, price, structure and production capacity, etc.

[0046] Therefore, the output of the first conversion device 110 is a set of feature vectors and relationships between multiple vectors, wherein the feature vectors include semantic vectors and feature vectors, wherein the feature vectors are particularly vectors of ontology types. Specifically, each vector includes a type name, a vector name, and the relationship between them. Therefore, illustratively, the format of one of the semantic vectors is:

[0047] (Type name, vector1, vector2...vectorN, relation1, relation2...relationM)

[0048] For example, the semantic vectors are "the worker operates machine C", "the worker produces products" and "the machine has a fault", among which "operate", "produce" and "have" are the relations therein.

[0049] Then, step S3 is executed, the second conversion device 120 imports a semi-structured file B, and converts the semi-structured file B into a keyword vector based on the semantic vector of the semantic model A. Specifically, the second conversion device 120 extracts header data from any semi-structured file B and reorganizes the header data according to a certain logic for subsequent processing, wherein the semi-structured file B is a table file. Figure 3 As shown, the second conversion device 120 includes three sub-devices: a pre-processing device 1201, a recognition device 1202 and a keyword device 1203. The step S3 includes three sub-steps S31, S32 and S33. In many industrial fields, there is a main file type, such as semi-structured files at the production site, such as tables in databases, Excel tables constructed by humans, network HTML tables, etc.

[0050] When the semi-structured file is a table file, step S3 further includes the following steps: determining the header position of the table file, and identifying the data portion of the table file.

[0051] Among them, in sub-step S31, the preprocessing device 1201 performs basic conversion and cleaning on the input table file. For example, the preprocessing device 1201 can convert an Excel table file into an HTML table because the HTML table includes richer and clearer header data.

[0052] Then, in sub-step S32, the recognition device 1202 reads the table preprocessed by the preprocessing device 1201 to recognize the attributes of the data content in the table file. Specifically, the present invention first defines four key parts ULC, RH, CH, and Data for any table file, and then determines these key parts.

[0053] Specifically, referring to Figure 4 , first define four key parts ULC, RH, CH, and data for table B1 to identify the header and content of table B1. First, refer to the table structure B'. B' is a two-dimensional table. Among them, the header part is the RH part. RH represents the depth of the table row title, and the height of RH is h1. CH represents the depth of the table column title, and its width is h2. Among them, there is ULC between RH and CH. ULC represents the upper left space of the entire table. The height of ULC is h1, and the width of ULC is h2. Among them, the part below RH and to the right of CH is the data part data. The upper left grid of the data part is C3, and the lower right grid is C4. The upper left grid of ULC is C1, and the lower right grid of ULC is C2. The problem is how to find and define the four key parts ULC, RH, CH, and Data.

[0054] Specifically, as Figure 5 shown, first find the ULC part and identify C1, C2, h1, and h2 of the ULC part. When h1 > 0 and h2 > 0, continue to judge whether RH = h1 and CH = h2. When the above conditions are met, it is determined that table B1 is a two-dimensional table, and C3 should be identified according to the extraction rules of the two-dimensional table. Otherwise, it is judged that there is no ULC part, so it is determined that the table should be identified as C3 according to the extraction rules of the one-dimensional table.

[0055] Next, when RH = h1 and CH = h2 are not satisfied, then judge whether RH < h1 or CH < h2. When RH < h1 or CH < h2 is satisfied, then calculate the correlation between the semantic vector and the keyword vector, and identify C3 and extract the potentially embedded one-dimensional table.

[0056] When RH < h1 or CH < h2 is not satisfied, then judge whether RH > h1. When RH > h1 is satisfied, only extract RH and C3 of the data part. When RH > h1 is not satisfied, then judge whether CH > h2. When CH > h2 is satisfied, only extract CH and C3 of the data part.

[0057] Therefore, by executing the above steps, the four key parts ULC, RH, CH, and data can be found and defined to determine the header part and the data part of Table B1.

[0058] In sub-step S33, the input of the keyword device 1203 is a table with key positions, which is extracted by applying the standard rules to table titles and attributes and stored in a tree structure, wherein the tree structure will be reorganized into a weighted vector for the subsequent analysis step.

[0059] For example, the attributes of a one-dimensional table are extracted into a tree structure and converted into the following table keyword vector:

[0060] Operation equipment ledger Serial number Classification Importance Equipment ownership Installation location Device Name Equipment No. …… Remark 0 1 1 1 1 1 1 1 …… 1

[0061] Further, according to a preferred embodiment of the present invention, step S2 is further included between steps S1 and S3: matching synonyms of the semantic vector words based on the semantic vector of the semantic model. Wherein, step S3 also includes the following steps: the second conversion device 120 converts the semi-structured document into a keyword vector based on the semantic vector based on the semantic model and its synonyms.

[0062] Among them, the second conversion device 120 is used to generate a group of synonyms for each word of the semantic vector. Although existing software can also automatically help provide synonyms, these software tools are difficult to provide reasonable results for complex or compound words, especially those composed of more than one secondary vocabulary. Therefore, the present invention provides a second conversion device 120 that can be applied to complex words or compound words.

[0063] For example, a compound word is first divided into multiple secondary words (sub-word#1, sub-word#2...sub-word#n), then the relevance of each headphone word is calculated, and finally the compound word is constructed using the association principle. Therefore, the second conversion device 120 includes a synonym result list to establish a synonym matrix, so the keyword library is also composed of a keyword matrix.

[0064] Figure 6 A keyword matrix is ​​shown, the type name class name has the first attribute attribute1, the second attribute attribute2... the Nth attribute attribute N The above type name class name, the first attribute attribute1, the second attribute attribute e2 ... Nth attribute attribute N All have an initial word, as well as the initial word word and its synonyms s1, s1...sM For example, the original word and its synonyms are as follows:

[0065]

[0066] Finally, step S4 is performed, and the comparison and identification device 130 compares the correlation between the semantic vector and the keyword vector, and identifies the keyword vector corresponding to the semantic vector. Specifically, according to a specific embodiment of the present invention, the keyword vector is a table keyword vector. Therefore, the comparison and identification device 130 calculates the correlation between the table keyword vector and the semantic vector. The input of the comparison and identification device 130 includes a keyword vector, a semantic vector and a synonym thesaurus. The present invention uses an algorithm to calculate the difference between a keyword vector and a semantic vector.

[0067] Specifically, the step S4 also includes the following steps: executing multiple correlation calculation methods based on the semantic vector, the synonym thesaurus and the keyword vector to obtain multiple correlation values ​​to compare the correlation between the semantic vector and the keyword vector, weighting the correlation values ​​to construct a correlation matrix and screening out parameter mappings to identify the keyword vector corresponding to the semantic vector, wherein the parameter mapping represents matching keyword vectors and semantic vectors.

[0068] like Figure 7 As shown, multiple correlation calculation methods are performed based on semantic vectors, synonym thesaurus and keyword vectors. Exemplarily, the correlation algorithm includes a first correlation algorithm, a second correlation algorithm and a third correlation algorithm. For example, the first correlation algorithm is the cilin correlation algorithm, the second correlation algorithm is the word2vector correlation algorithm, and the third correlation algorithm is the modified jaccard correlation algorithm. After executing the first correlation algorithm, the second correlation algorithm and the third correlation algorithm on the semantic vector, the synonym thesaurus and the keyword vector, their respective correlation values ​​will be obtained, which are the first correlation value, the second correlation value and the third correlation value respectively. These three correlation values ​​will be combined to construct a correlation matrix using the following algorithm:

[0069] M ij =∑w q Sim q (O i , K j )

[0070] Among them, M ij is the correlation, O is the semantic vector, k is the keyword vector, and w q is the weight, Sim qis the correlation algorithm, i, j, q are natural numbers. The correlation between table titles and semantic type names can be given a higher weight because the names usually express more information than each parameter.

[0071] Figure 8 The correlation matrix is ​​shown, with the horizontal axis being the keyword vector k and the vertical axis being the semantic vector O. After obtaining the correlation matrix, the parameter mapping is then screened, and the threshold rule is applied to determine the matched keyword pairings, and the output is the parameter mapping, that is, the labeled binary vector, which represents the matching results of the table parameters. Among them, the parameter mapping represents the matched keyword vector and the semantic vector, and the screening parameter mapping performs the Similarity Couple Determination algorithm. "1" represents a matched parameter, and "0" represents an unmatched parameter.

[0072] Finally, the step S4 is followed by the following steps: the extraction device 150 extracts the semi-structured document instance data of the keyword vector corresponding to the semantic vector to the database 160. The extraction device 150 extracts the table data based on the output of the comparison and recognition device 130. In one embodiment, only matched data is extracted from the semantic model. In another embodiment, data with and without matching table parameters are extracted and stored, but these data are marked with different relevance levels. The purpose of extracting unmatched table parameters is for potential future analysis and utilization. Data relevance is also identified and extracted.

[0073] The second aspect of the present invention provides a semantic model instantiation system, including: a processor; and a memory coupled to the processor, the memory having instructions stored therein, the instructions causing the electronic device to perform actions when executed by the processor, the actions including: S1, receiving a semantic model based on an ontology, parsing the semantic model and converting the semantic model into a set of feature vectors, wherein the feature vectors represent the type, attributes and the relationship between the attributes of the ontology; S3, importing a semi-structured file, converting the semi-structured file into a keyword vector based on the semantic vector of the semantic model; S4, comparing the correlation between the semantic vector and the keyword vector, and identifying the keyword vector corresponding to the semantic vector. Furthermore, between the actions S1 and S3, the following is also included: S2, matching the synonyms of the semantic vector words based on the semantic vector of the semantic model, wherein the action S3 also includes: converting the semi-structured file into a keyword vector based on the semantic vector based on the semantic model and its synonyms.

[0074] Furthermore, after the action S4, the step of extracting semi-structured document instance data of the keyword vector corresponding to the semantic vector into a database.

[0075] Furthermore, the ontology includes types, attributes, and relationships between the attributes.

[0076] Furthermore, when the semi-structured file is a table file, the action S3 further includes: determining a header position of the table file, and identifying a data portion of the table file.

[0077] Furthermore, the action S4 also includes: executing multiple correlation calculation methods based on the semantic vector, the synonym thesaurus and the keyword vector to obtain multiple correlation values ​​to compare the correlation between the semantic vector and the keyword vector, weighting the correlation values ​​to construct a correlation matrix and screening out parameter mapping to identify the keyword vector corresponding to the semantic vector, wherein the parameter mapping represents the matching keyword vector and semantic vector.

[0078] Furthermore, the correlation matrix is ​​constructed by the following algorithm:

[0079] M ij =∑w q Sim q (O i , K j )

[0080] Among them, M ij is the correlation, o is the semantic vector, k is the keyword vector, w q is the weight, Sim q It is a correlation algorithm, i, j, q are natural numbers.

[0081] The third aspect of the present invention provides a semantic model instantiation device, which includes: a first conversion device, which receives a semantic model based on an ontology, parses the semantic model and converts the semantic model into a set of feature vectors, wherein the feature vectors represent the type, attributes and the relationship between the attributes of the ontology; a second conversion device, which imports a semi-structured file and converts the semi-structured file into a keyword vector based on the semantic vector of the semantic model; a comparison and identification device, which compares the correlation between the semantic vector and the keyword vector, and identifies the keyword vector corresponding to the semantic vector.

[0082] A fourth aspect of the present invention provides a computer program product tangibly stored on a computer readable medium and comprising computer executable instructions which, when executed, cause at least one processor to perform the method according to the first aspect of the present invention.

[0083] A fifth aspect of the present invention provides a computer-readable medium having computer-executable instructions stored thereon, which, when executed, cause at least one processor to perform the method according to the first aspect of the present invention.

[0084] The innovation of the present invention is to convert the semantic model into a semantic vector, including a type vector and a related vector, and to calculate synonyms and build a synonym word library for each semantic vector. The separated semantic vector acts as a guide for information extraction. This enables any semantic model to be parsed into multiple data retrieval search formulas, which helps to automate the data retrieval process that matches the description of the semantic model.

[0085] The innovation of the present invention is to organize useful header data from any semi-structured file and convert it into a keyword vector, which includes identifying the keyword parameter part and the data part of the table file and extracting these keyword parameters into a tree structure. This enables the table to be converted into a vector, and the vector can be used for further comparison and calculation for data extraction.

[0086] The innovation of the present invention is also to extract the correlation mapping of any semantic vector and keyword vector to extract relevant information from semi-structured documents. This is to calculate the difference between the semantic vector and the keyword vector and match the parameter mapping. This realizes a fast and automatic way of evaluating and matching data based on a model.

[0087] The present invention can greatly reduce the workload and cost of building a knowledge graph and accelerate convenient knowledge-based services.

[0088] Although the content of the present invention has been described in detail through the above preferred embodiments, it should be recognized that the above description should not be regarded as limiting the present invention. After reading the above content, various modifications and substitutions of the present invention will be obvious to those skilled in the art. Therefore, the scope of protection of the present invention should be defined by the attached claims. In addition, any figure mark in the claims should not be regarded as limiting the claims involved; the word "comprising" does not exclude devices or steps not listed in other claims or the specification; words such as "first" and "second" are only used to indicate names, and do not indicate any specific order.

Claims

1. Semantic model instantiation method, where: The steps include: S1, receiving a semantic model based on ontology, parsing the semantic model and converting the semantic model into a set of feature vectors, wherein the feature vectors represent the type and attributes of the ontology and the relationship between the attributes; S3, importing a semi-structured file, and converting the semi-structured file into a keyword vector based on the semantic vector of the semantic model; S4, comparing the correlation between the semantic vector and the keyword vector, and identifying the keyword vector corresponding to the semantic vector.

2. The semantic model instantiation method according to claim 1, characterized in that: The following steps are also included between steps S1 and S3: S2, matching the synonyms of the semantic vector word based on the semantic vector of the semantic model, Wherein, the step S3 further includes the following steps: The semi-structured document is converted into a keyword vector based on the semantic vector based on the semantic model and its synonyms.

3. The semantic model instantiation method according to claim 1, characterized in that: The step S4 further includes the following step: extracting the semi-structured document instance data of the keyword vector corresponding to the semantic vector into a database.

4. The semantic model instantiation method according to claim 1, characterized in that: The ontology includes types, attributes, and relationships between the attributes.

5. The semantic model instantiation method according to claim 1, characterized in that: When the semi-structured file is a table file, step S3 further includes the following steps: The header position of the table file is determined, and the data portion of the table file is identified.

6. The semantic model instantiation method according to claim 1, characterized in that: The step S4 further comprises the following steps: Executing multiple correlation calculation methods based on the semantic vector, the synonym word library and the keyword vector to obtain multiple correlation values ​​to compare the correlation between the semantic vector and the keyword vector, weighting the correlation values ​​to construct a correlation matrix and screening out parameter mapping to identify the keyword vector corresponding to the semantic vector, The parameter mapping represents the matched keyword vector and semantic vector.

7. The semantic model instantiation method according to claim 6, characterized in that: The correlation matrix is ​​constructed by the following algorithm: M ij =∑w q Yes q (THE i ,K j ) Among them, M ij is the correlation, O is the semantic vector, k is the keyword vector, and w q is the weight, Sim q It is a correlation algorithm, i, j, q are natural numbers. 8.Semantic model instantiation system, including: processor; as well as A memory coupled to the processor, the memory having instructions stored therein, wherein when the instructions are executed by the processor, the electronic device performs actions, the actions comprising: S1, receiving a semantic model based on ontology, parsing the semantic model and converting the semantic model into a set of feature vectors, wherein the feature vectors represent the type and attributes of the ontology and the relationship between the attributes; S3, importing a semi-structured file, and converting the semi-structured file into a keyword vector based on the semantic vector of the semantic model; S4, comparing the correlation between the semantic vector and the keyword vector, and identifying the keyword vector corresponding to the semantic vector.

9. The semantic model instantiation system according to claim 8, characterized in that: The steps S1 and S3 also include: S2, matching the synonyms of the semantic vector word based on the semantic vector of the semantic model, The action S3 further includes: The semi-structured document is converted into a keyword vector based on the semantic vector based on the semantic model and its synonyms.

10. The semantic model instantiation system according to claim 8, characterized in that: The action S4 further includes: extracting the semi-structured document instance data of the keyword vector corresponding to the semantic vector into a database.

11. The semantic model instantiation system according to claim 8, characterized in that: The ontology includes types, attributes, and relationships between the attributes.

12. The semantic model instantiation system according to claim 8, characterized in that: When the semi-structured file is a table file, the action S3 further includes: The header position of the table file is determined, and the data portion of the table file is identified.

13. The semantic model instantiation system according to claim 8, characterized in that: The action S4 further includes: Executing multiple correlation calculation methods based on the semantic vector, the synonym word library and the keyword vector to obtain multiple correlation values ​​to compare the correlation between the semantic vector and the keyword vector, weighting the correlation values ​​to construct a correlation matrix and screening out parameter mapping to identify the keyword vector corresponding to the semantic vector, The parameter mapping represents the matched keyword vector and semantic vector.

14. The semantic model instantiation system according to claim 13, characterized in that: The correlation matrix is ​​constructed by the following algorithm: M ij =∑w q Yes q (THE i ,K j ) Among them, M ij is the correlation, O is the semantic vector, k is the keyword vector, and w q is the weight, Sim q It is a correlation algorithm, i, j, q are natural numbers.

15. A semantic model instantiation device, wherein: include: A first conversion device receives a semantic model based on an ontology, parses the semantic model and converts the semantic model into a set of feature vectors, wherein the feature vectors represent the type of the ontology, the attributes and the relationship between the attributes; A second conversion device, which imports a semi-structured document and converts the semi-structured document into a keyword vector based on the semantic vector of the semantic model; A comparison and identification device compares the correlation between the semantic vector and the keyword vector, and identifies the keyword vector corresponding to the semantic vector.

16. A computer readable medium having stored thereon computer executable instructions which, when executed, cause at least one processor to perform the method according to any one of claims 1 to 7.