Method, system, computer device and storage medium for storing engineering design knowledge
By generating domain knowledge graphs, the complexity of storing and understanding engineering design knowledge is solved, and the standardized storage and interconnection of knowledge are realized, thereby improving the reusability of knowledge and the computer's ability to understand it.
Patent Information
- Application Number
- CN202210924791.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-02
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2042-08-02
AI Technical Summary
Existing methods of storing engineering design knowledge are complex and difficult to understand, making it difficult to achieve knowledge accumulation within a discipline, knowledge interconnection between disciplines, and computer understanding.
By collecting knowledge data in the field of engineering design, generating a domain knowledge text set, constructing a knowledge expression pattern dictionary, extracting knowledge triples and generating a knowledge graph, and achieving standardized storage.
It enables the standardized storage of engineering design knowledge, enhances the industrial applicability of knowledge storage, facilitates the reuse of design knowledge and the interconnection of knowledge between different disciplines, and lays the foundation for computers to understand design knowledge.
Smart Images

Figure CN115357709B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of engineering design technology, and in particular to a method, system, computer device, and storage medium for storing engineering design knowledge. Background Technology
[0002] The field of engineering design is characterized by its high degree of specialization, complexity, and independence. Its corresponding knowledge products have always been produced, stored, displayed, delivered, used, and maintained in project units, forming an industrial closed loop.
[0003] Existing engineering design knowledge is primarily presented and stored in the form of drawings, specifications, standards, experience summaries, technical disclosure documents, various plans, and reports. Based on these documents, all participating parties communicate on a project-by-project basis to form the final deliverables, which are then provided for subsequent construction and operation. However, the current methods of storing and utilizing engineering design knowledge have the following problems:
[0004] 1) Complex expression methods: It is mainly expressed through text, charts, and models. The design process involves more than 40 disciplines, with complex upstream and downstream interfaces. The existing expression methods are all unstructured data and mainly use natural language, making it difficult to expand and utilize this type of knowledge.
[0005] 2) Difficult to understand: Personnel lacking engineering design capabilities cannot accurately understand the design intent expressed in the relevant design materials. Furthermore, computers cannot understand these materials, making it difficult to facilitate subsequent design work.
[0006] Therefore, there is an urgent need to provide a structured extraction and storage method for engineering design knowledge that can standardize the storage of engineering design knowledge with different data structures, facilitate the reuse of design knowledge, realize the accumulation of knowledge within a profession, the interconnection of knowledge between professions, and lay the foundation for computers to understand design knowledge. Summary of the Invention
[0007] The purpose of this invention is to provide a method for storing engineering design knowledge. This method involves collecting and processing various knowledge materials within the engineering design field to generate a domain knowledge text set. Then, a knowledge representation pattern dictionary is constructed to extract knowledge graph triples and design knowledge storage patterns. Based on this, a domain knowledge graph is generated and stored. This addresses the shortcomings of existing design knowledge storage methods, achieving standardized storage of engineering design knowledge while enhancing the industrial applicability of knowledge storage. It facilitates the reuse of design knowledge, enables the accumulation of knowledge within a profession and the interconnection of knowledge between professions, and lays the foundation for computers to understand design knowledge.
[0008] In order to achieve the above objectives, it is necessary to provide a method, system, computer device, and storage medium for storing engineering design knowledge to address the aforementioned technical problems.
[0009] In a first aspect, embodiments of the present invention provide a method for storing engineering design knowledge, the method comprising the following steps:
[0010] Collect knowledge data in the field of engineering design, interpret and process the knowledge data, and generate a domain knowledge text set; the engineering design field includes professional fields and business fields; the knowledge data includes text data and non-text data;
[0011] Based on the domain knowledge text set, a corresponding knowledge representation pattern dictionary is constructed; the knowledge representation pattern dictionary includes a concept dictionary and a concept relationship dictionary.
[0012] Based on the knowledge representation pattern dictionary, knowledge triples are extracted from the domain knowledge text set, and the knowledge triples are sorted to obtain knowledge graph triples.
[0013] Based on the knowledge graph triples, a knowledge storage pattern is obtained, and based on the knowledge storage pattern, a corresponding domain knowledge graph is generated and stored.
[0014] Furthermore, the step of interpreting and processing the knowledge data to generate a domain knowledge text set includes:
[0015] The non-textual materials were translated using specialized languages to obtain the corresponding translated text materials;
[0016] The translated text data and the text data are marked with source tags to obtain the domain knowledge text set.
[0017] Furthermore, the step of constructing a corresponding knowledge representation pattern dictionary based on the domain knowledge text set includes:
[0018] Based on the semantic content of the domain knowledge text set, design concept types and design concept relationship types are pre-defined;
[0019] Based on the design concept type and design concept relationship type, construct the corresponding concept dictionary and concept relationship dictionary respectively;
[0020] Extract the concept words and relation words from the domain knowledge text set, and fill the corresponding concept dictionary and concept relation dictionary with the concept words and relation words respectively.
[0021] Further, the step of extracting concept words and relation words from the domain knowledge text set, and filling the concept words and relation words into the corresponding concept dictionary and concept relation dictionary respectively, includes:
[0022] Based on the concept dictionary, the concept words and their corresponding parts of speech are extracted from the domain knowledge text set, and the concept words and their corresponding parts of speech are filled into the corresponding concept dictionary. The concept dictionary is then updated based on the updated concept dictionary.
[0023] Based on the concept relation dictionary, the relation words and their corresponding parts of speech are extracted from the domain knowledge text set, and the relation words and their corresponding parts of speech are filled into the corresponding concept relation dictionary. Based on the updated concept relation dictionary, the concept relation dictionary is updated.
[0024] Furthermore, the step of extracting knowledge triples from the domain knowledge text set based on the knowledge representation pattern dictionary includes:
[0025] Based on the knowledge representation pattern dictionary, the domain knowledge text set is segmented to obtain the corresponding text segmentation sequence, and multiple semantic templates are generated based on preset knowledge extraction rules and regular expressions.
[0026] Based on each semantic template, information is extracted from the text segmentation sequence to obtain the corresponding triplet to be confirmed;
[0027] Determine whether the information of each triple to be confirmed is complete. If it is incomplete, update the corresponding semantic template by setting information completion content, and re-extract the knowledge triple using the updated semantic template. Otherwise, directly use the triple to be confirmed as the knowledge triple.
[0028] Furthermore, the step of sorting the knowledge triples to obtain knowledge graph triples includes:
[0029] The knowledge triples are sorted according to the order of the semantic templates in the domain knowledge text set to obtain the knowledge graph triples.
[0030] Furthermore, the step of obtaining the knowledge storage pattern based on the knowledge graph triples includes:
[0031] The longest path method is used to analyze and group the logical relationships of each knowledge graph triple, resulting in multiple logical relationship groups. Based on each logical relationship group, a corresponding relation subgraph is generated.
[0032] The knowledge source is marked on the relational subgraph to obtain the corresponding knowledge storage pattern.
[0033] Secondly, embodiments of the present invention provide a storage system for engineering design knowledge, the system comprising:
[0034] The data processing module is used to collect knowledge data in the field of engineering design, interpret and process the knowledge data, and generate a domain knowledge text set; the engineering design field includes professional fields and business fields; the knowledge data includes text data and non-text data;
[0035] The pattern construction module is used to construct a corresponding knowledge representation pattern dictionary based on the domain knowledge text set; the knowledge representation pattern dictionary includes a concept dictionary and a concept relationship dictionary;
[0036] The knowledge extraction module is used to extract knowledge triples from the domain knowledge text set according to the knowledge expression pattern dictionary, and sort the knowledge triples to obtain knowledge graph triples.
[0037] The knowledge graph generation module is used to obtain a knowledge storage pattern based on the knowledge graph triples, and to generate and store the corresponding domain knowledge graph based on the knowledge storage pattern.
[0038] Thirdly, embodiments of the present invention also provide a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the above-described method.
[0039] Fourthly, embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the above-described method.
[0040] This application provides a method, system, computer device, and storage medium for storing engineering design knowledge. The method interprets and processes various knowledge materials in the engineering design field, generates a domain knowledge text set, constructs a knowledge representation pattern dictionary including a concept dictionary and a concept relationship dictionary based on the domain knowledge text set, extracts knowledge triples from the domain knowledge text set based on the knowledge representation pattern dictionary, sorts the knowledge triples to obtain knowledge graph triples, and then designs a knowledge storage pattern based on the knowledge graph triples to generate and store the corresponding domain knowledge graph. Compared with existing technologies, this method for storing engineering design knowledge achieves standardized storage of engineering design knowledge with diverse data structures while effectively improving the industrial practicality of knowledge storage. It not only facilitates the reuse of design knowledge but also enables the accumulation of knowledge within a profession and the interconnection of knowledge between professions. Furthermore, it lays the foundation for computers to understand design knowledge and provides convenience for the visualization of knowledge structures across domains and rapid cross-disciplinary knowledge searches. Attached Figure Description
[0041] Figure 1 This is a schematic diagram illustrating an application scenario of the method for storing engineering design knowledge in an embodiment of the present invention;
[0042] Figure 2 This is a flowchart illustrating the method for storing engineering design knowledge in an embodiment of the present invention;
[0043] Figure 3 This is a flowchart illustrating the process of generating a domain knowledge text set based on engineering domain knowledge data in an embodiment of the present invention.
[0044] Figure 4 This is a flowchart illustrating the process of constructing a knowledge representation pattern dictionary in an embodiment of the present invention;
[0045] Figure 5 This is a schematic diagram of the process for obtaining ordered knowledge graph triples in an embodiment of the present invention;
[0046] Figure 6 This is a schematic diagram of the process for generating the corresponding knowledge graph in an embodiment of the present invention;
[0047] Figure 7 This is a schematic diagram of the logical grouping corresponding to the sub-diagram in the field of engineering design in an embodiment of the present invention;
[0048] Figure 8 This is a schematic diagram of the knowledge map storage in the field of engineering design in an embodiment of the present invention;
[0049] Figure 9 This is a schematic diagram of the structure of the engineering design knowledge storage system in an embodiment of the present invention;
[0050] Figure 10 This is an internal structural diagram of the computer device in an embodiment of the present invention. Detailed Implementation
[0051] To make the objectives, technical solutions, and beneficial effects of this application clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. Obviously, the embodiments described below are only part of the embodiments of the present invention and are used to illustrate the present invention, but are not intended to limit the scope of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the scope of protection of the present invention.
[0052] The engineering design knowledge storage method provided by this invention is a knowledge graph construction method applicable to various engineering design fields, and can be applied to, for example... Figure 1The terminal or server shown. The terminal can be, but is not limited to, various personal computers, laptops, smartphones, tablets, and portable wearable devices. The server can be a standalone server or a server cluster composed of multiple servers. The server or terminal can, according to the engineering design knowledge storage method of this invention, standardize and extract and store heterogeneous knowledge from various fields of engineering design based on knowledge graph technology. This enables the accumulation of design knowledge across different professions and the interconnection of knowledge between professions, facilitating the reuse of design knowledge in various fields and the understanding and use of design knowledge by computers. Furthermore, it provides convenience for the visual display of knowledge structures between different fields and for rapid cross-professional knowledge searches within the same field. The following embodiments will use "rail transit fire protection review" as a sub-field, employing the compiled fire protection review regulations as knowledge data to provide a detailed exemplary description of the engineering design knowledge storage method of this invention. The application process for design data in other knowledge fields is similar.
[0053] In one embodiment, such as Figure 2 As shown, a method for storing engineering design knowledge is provided, including the following steps:
[0054] S11. Collect knowledge data in the field of engineering design, interpret and process the knowledge data, and generate a knowledge text set for the field. The engineering design field includes professional fields and business fields. Professional fields can be understood as various design specialties within the field, including 83 specialties such as passenger flow, train operation and management, vehicles, lines and clearances. For details, please refer to the Technical Interface Manual for Urban Rail Transit Design - compiled by Guangzhou Metro Design Institute Co., Ltd., November 2019. Business fields can be understood as fields related to engineering project business, including but not limited to construction drawing review business, fire protection special review business, and joint review and signing business. The knowledge data can be understood as the objects collected and stored after clarifying the sub-fields that need to be processed, including but not limited to drawings, design chapters of various specialties, drawing instructions, design specifications and design BIM models. According to the specific type of knowledge data, it can be generally divided into text data and non-text data.
[0055] Interpreting and processing knowledge data can be understood as primarily processing non-textual data. Since non-textual data such as drawings and BIM models cannot be directly used for knowledge extraction, they need to be textualized to construct a domain knowledge text set for use. Specifically, for example... Figure 3 As shown, the steps of interpreting and processing the knowledge data to generate a domain knowledge text set include:
[0056] The non-textual materials are translated using specialized languages to obtain corresponding translated text materials. Here, the method of translating non-textual materials into text materials using professional knowledge and languages can be implemented using existing technologies, and no specific restrictions are imposed here.
[0057] The translated text data and the text data are marked with source tags to obtain the domain knowledge text set. The source tag can be understood as the source of the knowledge data, which facilitates the effective tracing of knowledge graph information in the future. For example, in the example of the "Fire Protection Review of Rail Transit" specification, the first text comes from the Metro Design Fire Protection Standard - GB 51298-2018, and the corresponding clause number is 2.0.5. Then the text is marked as 51298-2018-2.0.5-0, and the last -0 is the version number. Different versions are set up for different text content as needed to facilitate updates and tracing in later use.
[0058] S12. Construct a corresponding knowledge representation pattern dictionary based on the domain knowledge text set; the knowledge representation pattern dictionary includes a concept dictionary and a concept relationship dictionary; wherein, the concept dictionary can be understood as a set composed of concept words and parts of speech, obtained by extracting and summarizing each concept word and its corresponding part of speech based on the design concept type after determining the design concept type based on the knowledge concept type involved in the domain knowledge text set; similarly, the concept relationship dictionary can be understood as a set composed of concept relationships and parts of speech, obtained by extracting and summarizing each relationship word and its corresponding part of speech based on the design concept relationship type after determining the design concept relationship type based on the concept relationship type involved in the domain knowledge text set; specifically, the step of constructing a corresponding knowledge representation pattern dictionary based on the domain knowledge text set includes:
[0059] Based on the semantic content of the domain knowledge text set, design concept types and design concept relationship types are pre-defined. The concept words, relationship words, and related parts of speech in the domain knowledge text set vary depending on the specific sub-domain. The design concept types and design concept relationship types must be designed according to the characteristics of the selected knowledge domain text set. For example, the concept types and example words corresponding to the business domain of "rail transit fire safety review" include, but are not limited to, the following:
[0060] 1) Design concept level A (ma): It will not be included by other design concepts, but will only include other design concepts, such as: station, transfer station, section, underground station, platform public area, etc.
[0061] 2) Design Concept Level B (mb): It may be included by other design concepts, such as: public areas, equipment management areas, sunken plazas, connecting passages, etc.
[0062] 3) Design concept level C (mc): It is included by other design concepts but will not include other design concepts, such as: escalators, fireproof roller shutters, openings, stairs, fireproof partitions, etc.
[0063] Correspondingly, the relation types and example terms include, but are not limited to, the following:
[0064] 1) Qualitative requirements relationship (r): Propose specific qualitative requirements for the design concept, such as: should be adopted, should be adopted, should not be used as, should be set up, etc.
[0065] 2) Quantitative requirements (c): Specific quantitative requirements are put forward for the design concept, such as: should not be less than, should not be greater than, should be higher than, etc.;
[0066] 3) Attribute Relationship (a): Requirements for the attributes of the design concept, such as: building area, length, width, fire resistance rating, etc.;
[0067] 4) Parallel relationship (p): Parallelism of other concepts, such as "、", and, together, between, with, and, etc.;
[0068] 5) Conditional relation (o): The premise for the existence of relations between other concepts, such as: when using..., when located in..., when..., etc.;
[0069] 6) Positional Relationship (w): Positional requirements between design concepts, such as: ground, sides, same floor layout, appropriate location, corner, etc.;
[0070] 7) Limiting Relationships (f): Limiting requirements between design concepts, such as: of, each, and, etc.;
[0071] 8) Characteristic Relationships (t): The characteristics that the design concept needs to have, such as: independent setting, separate setting, segmentation, fire resistance limit, etc.
[0072] 9) Referential relationship (e): The reference in the specification refers to the design concept mentioned above, such as: such area, the following buildings, rooms that need to be operated in case of fire, commercial and other non-subway functional buildings, etc.
[0073] Based on the design concept type and design concept relationship type, construct corresponding concept dictionaries and concept relationship dictionaries respectively; wherein, the concept dictionary can be understood as a set composed of {concept type: {concept word: part of speech}}; the concept relationship dictionary can be understood as a set composed of {concept relationship type: {relation word: part of speech}};
[0074] Extract concept words and relation words from the domain knowledge text set, and fill the corresponding concept dictionary and concept relation dictionary with the concept words and relation words respectively, such as... Figure 4 As shown, it specifically includes:
[0075] Based on the concept dictionary, the concept words and their corresponding parts of speech are extracted from the domain knowledge text set, and the concept words and their corresponding parts of speech are filled into the corresponding concept dictionary. The concept dictionary is then updated based on the updated concept dictionary. During the process of filling the concept words and their corresponding parts of speech into the corresponding concept dictionary, it is necessary to determine whether the concept words and their corresponding parts of speech extracted each time already exist based on the content of the concept dictionary. If they do not exist, the concept dictionary and concept dictionary are updated sequentially for subsequent extraction. Otherwise, no update is performed, and the current concept dictionary and concept dictionary are used for extraction until all concept words and their corresponding parts of speech in the knowledge domain text set have been extracted, resulting in the concept dictionary in the knowledge expression pattern dictionary, which is used for subsequent knowledge graph triple extraction.
[0076] Based on the concept relation dictionary, the relation words and their corresponding parts of speech are extracted from the domain knowledge text set, and the relation words and their corresponding parts of speech are filled into the corresponding concept relation dictionary. The concept relation dictionary is then updated based on the updated concept relation dictionary. During the process of filling the relation words and their corresponding parts of speech into the corresponding concept relation dictionary, it is necessary to determine whether the relation words and their corresponding parts of speech extracted each time already exist based on the content of the concept relation dictionary. If they do not exist, the concept relation dictionary and concept relation dictionary are updated sequentially for subsequent extraction. Otherwise, no update is performed, and the current concept relation dictionary and concept relation dictionary are used for extraction until all relation words and their corresponding parts of speech in the knowledge domain text set are extracted, resulting in the concept relation dictionary in the knowledge expression pattern dictionary, which is used for subsequent knowledge graph triple extraction.
[0077] Furthermore, in the process of constructing the concept dictionary and concept relation dictionary, to ensure the accuracy of concept word and relation word extraction, this embodiment considers the existence of synonyms and pronouns in the knowledge domain text set. To ensure the accuracy of concept word and relation word extraction, preferably, during the construction of the knowledge expression pattern dictionary, synonym replacement processing is performed on existing synonym relation words, and reference resolution processing is performed on existing pronouns. The specific steps include:
[0078] The process involves determining whether synonyms and pronouns exist for the concept words and relational words. If they do, the concept words and relational words are replaced with synonyms and their pronouns are resolved, and then filled into the corresponding concept dictionary and concept relation dictionary, respectively. Otherwise, they are directly filled into the corresponding concept dictionary and concept relation dictionary. Synonym replacement refers to replacing synonymous descriptions of knowledge concepts and relationships within the domain that exist due to imprecise textual descriptions, such as fire escape routes, fire-prevention dedicated routes, and fire-fighting and rescue routes, which represent the same design concept, during the extraction process to ensure the correctness of subsequent processing. Pronoun resolution refers to clarifying the specific referents of pronouns in the text, such as "areas," "the following buildings," and "rooms that need to be operated during a fire," based on the context, and filling or replacing them with specific design concepts to obtain the correct content.
[0079] S13. Based on the knowledge representation pattern dictionary, extract knowledge triples from the domain knowledge text set, and sort the knowledge triples to obtain knowledge graph triples; wherein, a knowledge graph triple can be understood as an ordered triple with complete SPO relations extracted from the domain knowledge text set according to the knowledge representation pattern dictionary; specifically, as follows... Figure 5 As shown, the step of extracting knowledge triples from the domain knowledge text set based on the knowledge representation pattern dictionary includes:
[0080] Based on the knowledge representation pattern dictionary, the domain knowledge text set is segmented to obtain the corresponding text segmentation sequence. Multiple semantic templates are then generated based on preset knowledge extraction rules and regular expressions. The text segmentation sequence includes a text word sequence and its corresponding part-of-speech sequence. The segmentation method used in the specific acquisition process can be implemented using existing technologies, and no specific restrictions are imposed here. The following explanation uses the "rail transit fire safety review" business as a sub-domain, and illustrates the segmentation result of the first text in its business text set as an example:
[0081] If the text to be segmented is "Dedicated passages and stairwells for firefighters to enter station halls, platforms, and sections from the ground for fire fighting and rescue must use Class A fire doors," then based on the knowledge representation pattern dictionary obtained in the above steps, the following segmentation sequence can be obtained:
[0082] The corresponding part-of-speech sequence is as follows: 'Supply', 'firefighters', 'from', 'ground', 'enter', 'station hall', 'platform', 'section', 'and other areas', 'to', 'firefight', 'rescue', 'dedicated passages', 'and', 'stairwells', 'must use', 'Class A fireproof', 'doors'.
[0083] 'v', 'n', 'p', 'w', 'v', 'mb', 'p', 'mb', 'p', 'ma', 'e', 'v', 'v', 'vn', 'f', 'mb', 'p', 'mb', 'r', 'a', 'mc', 'x';
[0084] The design of semantic templates involves creating semantic modules of concepts and relations based on the concept and relation types in the concept and relation dictionaries. Then, the content extracted from knowledge graph triples is designed based on these semantic templates. The following example, using "rail transit fire safety review" as a sub-domain, illustrates the semantic templates required for the application, designed based on the knowledge representation pattern dictionary. Each item below represents a template, and each template consists of multiple "slots":
[0085] As shown below, the relevant semantic templates can be freely extended according to actual application needs to meet the knowledge extraction requirements in the corresponding domain. They are designed based on regular expressions and include, but are not limited to, the following three types:
[0086] 'm[ab]r...m[bc]' (four slots): indicates the extraction of knowledge from "Design Concept Level A / Design Concept Level B - Continuous - Design Qualitative Requirements Relationship - Discontinuous - Design Concept Level B / Design Concept Level C";
[0087] 'am[abc]' (two slots): indicates the extraction of knowledge of "attribute relationship - continuity - design concept level A / design concept level B / design concept level C";
[0088] 'm[ab]...f...m[bc]': indicates the extraction of knowledge from "Design Concept Level A / Design Concept Level B - Discontinuity - Limitation Relationship - Discontinuity - Design Concept Level B / Design Concept Level C";
[0089] Based on each semantic template, information is extracted from the text segmentation sequence to obtain corresponding triples to be confirmed. These triples can be understood as semantic slot filling using semantic templates and the text segmentation sequence, followed by SPO information extraction based on the slot-filled semantic template. In the specific semantic slot filling process, synonym disambiguation and referential resolution are also performed according to a knowledge representation pattern dictionary to ensure the accuracy of the resulting triples. The following description uses "rail transit fire safety review" as a sub-field to illustrate the slot-filled semantic templates obtained from the above-mentioned text segmentation sequence using the three different semantic templates.
[0090] Based on the template 'm[ab]r...m[bc]', the following can be extracted: 'stairwell', 'must be used', '...', 'door';
[0091] Based on the template 'am[abc]]', the following can be extracted: 'Class A fireproof', 'door';
[0092] Based on the template 'm[ab]...f...m[bc]', the following can be extracted: 'station hall', '...', 'of', '...', 'dedicated passage'; 'platform', '...', 'of', '...', 'dedicated passage'; 'section', '...', 'of', '...', 'dedicated passage'; 'station hall', '...', 'of', '...', 'stairwell'; 'platform', '...', 'of', '...', 'stairwell'; 'section', '...', 'of', '...', 'stairwell';
[0093] As shown above, similarly, in practical applications, different fill content can be obtained from the same text word sequence based on different semantic templates. Based on this, a corresponding knowledge graph SPO information triple extraction method is designed, resulting in the following triples to be confirmed for subsequent processing:
[0094] Based on the template 'm[ab]r...m[bc]', the following filler values are extracted: 'stairwell', 'must be used', '...', 'door'. Based on this, the SPO triple is defined as '1, 2, 4', that is, the first, second, and fourth elements of the extracted filler content are used as the subject-verb (relation)-object in the knowledge graph, respectively. Thus, the SPO triple to be confirmed is: 'stairwell'->'must be used'->'door'.
[0095] Based on the template 'am[abc]]', the following filler values are extracted: 'Class A fireproof', 'door'; based on this, the SPO triple is defined as '2, 300, 3', that is, the second and third elements in the extracted filler content are used as the subject-object in the knowledge graph respectively;
[0096] Based on the template 'm[ab]...f...m[bc]', the following are extracted: 'station hall', '...', 'of', '...', 'dedicated passage'; 'platform', '...', 'of', '...', 'dedicated passage'; 'section', '...', 'of', '...', 'dedicated passage'; 'station hall', '...', '...', 'stairwell'; 'platform', '...', 'of', '...', 'stairwell'; 'section', '...', 'of', '...', 'stairwell'; Based on this, the SPO triple is defined as '1, 301, 5', that is, the first and fifth elements in the extracted and filled content are used as the subject-object in the knowledge graph respectively;
[0097] As can be seen, the above method only extracts the subject-object pairs from the knowledge graph and does not yield incomplete triples. The missing relations 300 and 301 can be completed using the following steps.
[0098] Determine whether the information of each triplet to be confirmed is complete. If it is incomplete, update the corresponding semantic template by setting information to complete the content, and re-extract the knowledge triplet using the updated semantic template. Otherwise, directly use the triplet to be confirmed as the knowledge triplet.
[0099] Specifically, this can be understood as needing to perform a triplet information completeness check on the words extracted based on semantic templates. If the information is incomplete, the semantic template needs to be improved, information completion content needs to be set, and the extraction needs to be repeated. As mentioned above, the triplet to be confirmed extracted based on the template 'am[abc]]' has missing information. After custom completion of the relationship in the semantic model according to actual needs, the corresponding SPO knowledge triplet is extracted again as: 'door'->'has'->'Class A fireproof'. The triplet to be confirmed extracted based on the template 'm[ab]...f...m[bc]' also has missing information. After custom completion of the design concept and the relationship between the concepts according to actual needs, the corresponding SPO triplet is extracted again as follows: 'station hall'->'contains'->'dedicated passage'.
[0100] Similarly, by analogy, based on different semantic templates and corresponding custom completion information, the corresponding triplet data can be obtained from the filling content of the semantic template: the 'S'->'P'->'O' relationship. After forming a complete triplet sequence, the triplet information is sorted according to the extracted conditions, order, and other relationships to form an ordered knowledge graph triplet. Specifically, the step of sorting the knowledge triplets to obtain the knowledge graph triplet includes:
[0101] Based on the order of the semantic templates in the domain knowledge text set, the knowledge triples are sorted to obtain the knowledge graph triples. Based on the above-obtained knowledge triples example, sorting them according to the order of the extracted templates in the text yields the following ordered knowledge graph triples:
[0102] The station concourse includes dedicated passageways; the platform includes dedicated passageways; the tunnel section includes dedicated passageways; the station concourse includes stairwells; the platform includes stairwells; the tunnel section includes stairwells; stairwells must have doors; doors must be Class A fire-resistant.
[0103] After obtaining the ordered knowledge graph triples corresponding to the domain knowledge text set based on the above method steps, it is possible to use, for example... Figure 6 The method shown below generates and stores the corresponding domain knowledge graph.
[0104] S14. Based on the knowledge graph triples, obtain the knowledge storage pattern, and based on the knowledge storage pattern, generate and store the corresponding domain knowledge graph; wherein, the knowledge storage pattern can be understood as the storage structure of the actual knowledge graph including logical relation grouping and corresponding subgraphs and knowledge source tags. Specifically, the steps of obtaining the knowledge storage pattern based on the knowledge graph triples include:
[0105] The longest path method is used to analyze and group the logical relationships of each knowledge graph triple, resulting in multiple logical relationship groups. Based on each logical relationship group, a corresponding relation subgraph is generated. That is, based on the knowledge graph triples given in the example above, the longest path method is used to organize them, resulting in the following... Figure 7 The logical relationship combinations and corresponding relational sub-diagrams are shown below;
[0106] The relational subgraph is labeled with knowledge sources to obtain, as follows: Figure 8 The corresponding knowledge storage model is shown below;
[0107] After obtaining different types of knowledge storage modes through the above methods and steps, you can select the appropriate storage mode for the corresponding domain according to actual needs. It should be noted that all knowledge graph triples formed in a domain must be stored using the same knowledge storage mode in order to obtain accurate and effective knowledge graphs.
[0108] This application's embodiments collect data from subdivided engineering design domains, interpret and process various types of knowledge data, and generate domain knowledge text sets. Furthermore, it designs concept word types and relation word types based on the semantic content of the domain knowledge text sets, and constructs a knowledge expression pattern dictionary including a concept dictionary and a concept relation dictionary. This dictionary is used to extract ordered knowledge graph triples from the domain knowledge text sets. Based on these knowledge graph triples, a knowledge storage pattern is designed to generate and store the corresponding domain knowledge graph. This technical solution not only effectively solves the shortcomings of existing engineering design knowledge storage and achieves standardized storage of engineering design knowledge with diverse data structures, but also effectively improves the industrial applicability of knowledge storage. It facilitates the reuse of design knowledge, realizes the accumulation of knowledge within a profession and the interconnection of knowledge between professions, and lays the foundation for computers to understand design knowledge. This, in turn, provides convenience for the visualization of knowledge structures between domains and rapid cross-professional knowledge searches.
[0109] It should be noted that although the steps in the flowchart above are shown sequentially as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order requirement for the execution of these steps, and they can be executed in other orders.
[0110] In one embodiment, such as Figure 9 As shown, an engineering design knowledge storage system is provided, the system comprising:
[0111] Data processing module 1 is used to collect knowledge data in the field of engineering design, interpret and process the knowledge data, and generate a domain knowledge text set; the engineering design field includes professional fields and business fields; the knowledge data includes text data and non-text data;
[0112] Pattern construction module 2 is used to construct a corresponding knowledge representation pattern dictionary based on the domain knowledge text set; the knowledge representation pattern dictionary includes a concept dictionary and a concept relationship dictionary;
[0113] The knowledge extraction module 3 is used to extract knowledge triples from the domain knowledge text set according to the knowledge expression pattern dictionary, and sort the knowledge triples to obtain knowledge graph triples.
[0114] The knowledge graph generation module 4 is used to obtain a knowledge storage pattern based on the knowledge graph triples, and to generate and store the corresponding domain knowledge graph based on the knowledge storage pattern.
[0115] For specific limitations regarding the storage system for engineering design knowledge, please refer to the limitations on the storage method for engineering design knowledge mentioned above, which will not be repeated here. Each module in the aforementioned storage system for engineering design knowledge can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device in hardware form, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0116] Figure 10 An internal structural diagram of a computer device is shown in one embodiment. This computer device may specifically be a terminal or a server. Figure 10As shown, the computer device includes a processor, memory, network interface, display, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The network interface is used to communicate with external terminals via a network connection. When the computer program is executed by the processor, it implements a method for storing engineering design knowledge. The display screen can be an LCD screen or an e-ink screen. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad mounted on the computer device casing, or an external keyboard, touchpad, or mouse.
[0117] Those skilled in the art will understand that Figure 10 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computing devices may include more or fewer components than those shown in the figure, or combine certain components, or have the same component arrangement.
[0118] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the method described above.
[0119] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps of the above-described method.
[0120] In summary, the present invention provides a method, system, computer device, and storage medium for storing engineering design knowledge. The method involves collecting data from subdivided areas within engineering design, interpreting and processing various types of knowledge data, and generating a domain knowledge text set. It also designs concept word types and relation word types based on the semantic content of the domain knowledge text set, and constructs a knowledge expression pattern dictionary including a concept dictionary and a concept relation dictionary. This dictionary is used to extract ordered knowledge graph triples from the domain knowledge text set. Based on these knowledge graph triples, a knowledge storage pattern is designed to generate and store the corresponding domain knowledge graph. This method not only effectively solves the shortcomings of existing engineering design knowledge storage and achieves standardized storage of engineering design knowledge with diverse data structures, but also effectively improves the industrial applicability of knowledge storage. It facilitates the reuse of design knowledge, enables the accumulation of knowledge within a profession and the interconnection of knowledge between professions, lays the foundation for computers to understand design knowledge, and provides convenience for the visualization of knowledge structures between domains and rapid cross-disciplinary knowledge searches.
[0121] The various embodiments in this specification are described in a progressive manner. For directly identical or similar parts of the embodiments, refer to each other. Each embodiment focuses on its differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions in the method embodiments. It should be noted that the technical features of the above embodiments can be combined arbitrarily. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as the combination of these technical features does not contradict each other, it should be considered within the scope of this specification.
[0122] The embodiments described above are merely preferred embodiments of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various improvements and substitutions without departing from the technical principles of this invention, and these improvements and substitutions should also be considered within the scope of protection of this application. Therefore, the scope of protection of this patent application should be determined by the scope of the claims.
Claims
1. A method for storing engineering design knowledge, characterized in that, The method includes the following steps: Collect knowledge data in the field of engineering design, interpret and process the knowledge data, and generate a domain knowledge text set; the engineering design field includes professional fields and business fields; the knowledge data includes textual and non-textual data; the non-textual data includes drawings and design BIM models; Based on the domain knowledge text set, a corresponding knowledge representation pattern dictionary is constructed; the knowledge representation pattern dictionary includes a concept dictionary and a concept relationship dictionary. Based on the knowledge representation pattern dictionary, knowledge triples are extracted from the domain knowledge text set, and the knowledge triples are sorted to obtain knowledge graph triples. Based on the knowledge graph triples, a knowledge storage pattern is obtained, and based on the knowledge storage pattern, a corresponding domain knowledge graph is generated and stored. The step of interpreting and processing the knowledge data to generate a domain knowledge text set includes: The non-textual materials were translated using specialized languages to obtain the corresponding translated text materials; By tagging the source of the translated text data and the text data, the domain knowledge text set is obtained; The step of constructing a corresponding knowledge representation pattern dictionary based on the domain knowledge text set includes: Based on the semantic content of the domain knowledge text set, design concept types and design concept relationship types are predefined; the design concept types include design concept level A (which will not be contained by other design concepts and will only contain other design concepts), design concept level B (which will be contained by other design concepts and may contain other design concepts), and design concept level C (which will be contained by other design concepts but will not contain other design concepts); the design concept relationship types include qualitative requirement relationship, quantitative requirement relationship, attribute relationship, parallel relationship, conditional relationship, positional relationship, limiting relationship, characteristic relationship, and referential relationship; Based on the design concept type and design concept relationship type, construct corresponding concept dictionaries and concept relationship dictionaries respectively; the concept dictionary is a set consisting of {concept type: {concept word: part of speech}}; the concept relationship dictionary is a set consisting of {concept relationship type: {relation word: part of speech}}. Extracting concept words and relation words from the domain knowledge text set, and filling the concept words and relation words into the corresponding concept dictionary and concept relation dictionary respectively, includes: determining whether the concept words and relation words have synonyms and pronouns; if they do, performing synonym replacement and pronoun resolution processing on the concept words and relation words, and then filling them into the corresponding concept dictionary and concept relation dictionary respectively. The step of extracting knowledge triples from the domain knowledge text set based on the knowledge representation pattern dictionary includes: Based on the knowledge representation pattern dictionary, the domain knowledge text set is segmented to obtain the corresponding text segmentation sequence, and multiple semantic templates are generated based on preset knowledge extraction rules and regular expressions. Based on each semantic template, information is extracted from the text segmentation sequence to obtain the corresponding triplet to be confirmed; Determine whether the information of each triple to be confirmed is complete. If it is incomplete, update the corresponding semantic template by setting information to complete the content, and re-extract the knowledge triple using the updated semantic template. Otherwise, directly use the triple to be confirmed as the knowledge triple.
2. The method for storing engineering design knowledge as described in claim 1, characterized in that, The step of extracting concept words and relation words from the domain knowledge text set and filling the concept words and relation words into the corresponding concept dictionary and concept relation dictionary respectively includes: Based on the concept dictionary, the concept words and their corresponding parts of speech are extracted from the domain knowledge text set, and the concept words and their corresponding parts of speech are filled into the corresponding concept dictionary. The concept dictionary is then updated based on the updated concept dictionary. Based on the concept relation dictionary, the relation words and their corresponding parts of speech are extracted from the domain knowledge text set, and the relation words and their corresponding parts of speech are filled into the corresponding concept relation dictionary. Based on the updated concept relation dictionary, the concept relation dictionary is updated.
3. The method for storing engineering design knowledge as described in claim 1, characterized in that, The step of sorting the knowledge triples to obtain knowledge graph triples includes: The knowledge triples are sorted according to the order of the semantic templates in the domain knowledge text set to obtain the knowledge graph triples.
4. The method for storing engineering design knowledge as described in claim 1, characterized in that, The step of obtaining the knowledge storage pattern based on the knowledge graph triples includes: The longest path method is used to analyze and group the logical relationships of each knowledge graph triple, resulting in multiple logical relationship groups. Based on each logical relationship group, a corresponding relation subgraph is generated. The knowledge source is marked on the relational subgraph to obtain the corresponding knowledge storage pattern.
5. A storage system for engineering design knowledge, characterized in that, The system, which uses the engineering design knowledge storage method as described in claim 1, comprises: The data processing module is used to collect knowledge data in the field of engineering design, interpret and process the knowledge data, and generate a domain knowledge text set; the engineering design field includes professional fields and business fields; the knowledge data includes text data and non-text data; The pattern construction module is used to construct a corresponding knowledge representation pattern dictionary based on the domain knowledge text set; the knowledge representation pattern dictionary includes a concept dictionary and a concept relationship dictionary; The knowledge extraction module is used to extract knowledge triples from the domain knowledge text set according to the knowledge expression pattern dictionary, and sort the knowledge triples to obtain knowledge graph triples. The knowledge graph generation module is used to obtain a knowledge storage pattern based on the knowledge graph triples, and to generate and store the corresponding domain knowledge graph based on the knowledge storage pattern.
6. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 4.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Multi-level knowledge graph construction method and system for field of chemical engineering
CN111694966A
Knowledge graph construction method and system oriented to construction engineering field
CN114417008A
