A method, apparatus, computer device, and storage medium for generating an associated viewing model.
By generating an associated viewing model, the problem of lack of associated coding in the design and construction of nuclear power plants is solved, enabling efficient data querying and analysis, and providing a tool for rapid problem solving.
Patent Information
- Application Number
- CN202210032396.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-12
- Publication Date
- 2025-12-02
- Estimated Expiration
- 2042-01-12
AI Technical Summary
The lack of associated object coding information in the business data generated during the design and construction of nuclear power plants makes data integration and management difficult, and hinders effective querying and analysis.
By acquiring the data object, a pre-defined target character extraction script is invoked to extract the target character encoding, and the association between the target character encoding and the data object is established to generate an associated viewing model.
It improves the efficiency of data query and analysis, realizes a panoramic data view centered on the coded object, facilitates rapid analysis and resolution of problems, and improves the structuring level of data.
Smart Images

Figure CN114490756B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and in particular to a method for generating an associative viewing model, an apparatus for generating an associative viewing model, a computer device, and a storage medium. Background Technology
[0002] The design and construction of nuclear power plants generate a wide variety of operational data, including quality data, change data, and experience feedback data. When this data occurs, the relevant departments fill in the corresponding information in the relevant systems, creating issue slips for tracking and management. Traditional solutions typically involve storing all issue slips in a unified manner, failing to effectively manage them. Furthermore, the various operational data generated during nuclear power plant design and construction often lack associated object coding information, or the object coding information is incomplete, non-standardized, or poorly structured; making data integration and management difficult, and hindering data querying, analysis, and application. Summary of the Invention
[0003] In view of the above problems, the present invention is proposed to provide a method for generating an associated viewing model, an apparatus for generating an associated viewing model, a computer device, and a storage medium that overcome or at least partially solve the above problems.
[0004] This invention discloses a method for generating an associated viewing model, comprising:
[0005] Retrieve the data object;
[0006] The pre-defined target character extraction script is invoked to perform extraction operations on the data object to obtain the target character encoding;
[0007] Establish the association between the target character encoding and the data object to generate an associated viewing model.
[0008] Preferably, the preset target character extraction script is generated in the following way:
[0009] Get the entity object code;
[0010] Encoding rule information is obtained based on the entity object encoding;
[0011] Generate a target character extraction script based on the encoding rule information.
[0012] Preferably, obtaining the entity object code includes:
[0013] Extract the entity object code from the entity object data.
[0014] Preferably, the entity object data includes equipment data, pipeline data, and structure data.
[0015] Preferably, obtaining the encoding rule information based on the entity object encoding includes:
[0016] The entity object encoding is subjected to string recognition and parsing to obtain encoding rule information.
[0017] Preferably, the step of generating the target character extraction script based on the encoding rule information includes:
[0018] Generate a regular expression for string matching based on the encoding rule information;
[0019] The regular expression is used as the target character extraction script.
[0020] Preferably, the data object includes 3D model data and / or file data and / or material data and / or planning data; the step of calling a preset target character extraction script to perform extraction operations on the data object to obtain the target character encoding includes:
[0021] The target character extraction script is invoked to perform extraction operations on the 3D model data and / or file data and / or material data and / or planning data to obtain the target character encoding.
[0022] Preferably, establishing the association between the target character encoding and the data object, and generating the associated viewing model, includes:
[0023] Establish the association between the target character encoding and the 3D model data and / or file data and / or material data and / or planning data, and generate an associated viewing model.
[0024] The present invention also discloses an apparatus for generating an associated viewing model, comprising:
[0025] The data object acquisition module is used to acquire data objects;
[0026] The extraction module is used to call a preset target character extraction script to perform extraction operations on the data object and obtain the target character encoding.
[0027] The association establishment module is used to establish the association between the target character encoding and the data object, and generate an association viewing model.
[0028] Preferably, the device further includes:
[0029] The entity object encoding acquisition module is used to acquire the entity object encoding.
[0030] The encoding rule information acquisition module is used to obtain encoding rule information based on the encoding of the entity object;
[0031] The script generation module is used to generate target character extraction scripts based on encoding rule information.
[0032] Preferably, the entity object encoding acquisition module includes:
[0033] The entity object code extraction submodule is used to extract the entity object code from the entity object data.
[0034] Preferably, the entity object data includes equipment data, pipeline data, and structure data.
[0035] Preferably, the encoding rule information acquisition module includes:
[0036] The encoding rule information acquisition submodule is used to perform string recognition and parsing on the encoding of the entity object to obtain encoding rule information.
[0037] Preferably, the script generation module includes:
[0038] The regular expression generation submodule is used to generate regular expressions for string matching based on the encoding rule information;
[0039] The script determination submodule is used to determine the regular expression as the target character extraction script.
[0040] The present invention also discloses a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the above-described method for generating the associated viewing model.
[0041] The present invention also discloses 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 for generating the associated viewing model.
[0042] The beneficial effects of this invention are:
[0043] In this invention, data objects can be acquired; a preset target character extraction script can be invoked to perform extraction operations on the data objects to obtain target character codes; an association relationship between the target character codes and the data objects can be established to generate an associated viewing model; by establishing an association relationship between the encoded object and multiple data objects, data querying, analysis, and application can be greatly facilitated; all data of a certain encoded object can be displayed uniformly, allowing for an intuitive understanding of the problems encountered by the encoded object, eliminating the need to search one by one in the system, thus improving data search efficiency; a panoramic data view centered on the encoded object is formed, providing a good tool and means for rapid analysis and resolution of problems, and improving the structuring degree of the data. Attached Figure Description
[0044] To more clearly illustrate the technical solutions in this invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0045] Figure 1 This is a flowchart illustrating the steps of an embodiment of the method for generating an associated viewing model according to the present invention;
[0046] Figure 2 This is a flowchart illustrating the steps of generating a target character extraction script according to the present invention;
[0047] Figure 3 This is a flowchart illustrating the entity object encoding extraction step of the present invention;
[0048] Figure 4 This is a flowchart illustrating one step of obtaining encoding rule information according to the present invention;
[0049] Figure 5 This is a flowchart illustrating the steps for determining a target character extraction script according to the present invention;
[0050] Figure 6 This is a flowchart illustrating a target character encoding acquisition step according to the present invention;
[0051] Figure 7 This is a flowchart illustrating the steps of generating an associated viewing model according to the present invention;
[0052] Figure 8 This is an information viewing page for the basic description information of a problem form according to the present invention;
[0053] Figure 9 This is a schematic diagram of an entity object information extracted according to the present invention;
[0054] Figure 10 This is a schematic diagram illustrating the relationship network of the present invention;
[0055] Figure 11 This is a structural block diagram of an embodiment of an associated viewing model generation device of the present invention;
[0056] Figure 12 This is an internal structural diagram of a computer device according to one embodiment. Detailed Implementation
[0057] To make the technical problems solved, technical solutions, and beneficial effects of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0058] Reference Figure 1 The diagram illustrates a flowchart of an embodiment of a method for generating an associated viewing model according to the present invention, which may specifically include the following steps:
[0059] Step 101, obtain the data object;
[0060] In this invention, the method for generating the associated viewing model can be applied to a terminal or a server, or to a system composed of a terminal and a server connected together. Specifically, the terminal may include, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices may include smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, etc. Portable wearable devices may include smartwatches, smart bracelets, head-mounted devices, etc.
[0061] A server can be a standalone server or a server cluster consisting of multiple servers. Terminals and servers can be connected via Ethernet for data transmission.
[0062] First, data objects can be obtained. These data objects can include various business data generated during the design and construction process in a certain engineering field. For example, the data objects can be various business data generated during the design and construction process of nuclear power facilities, such as three-dimensional models of equipment and buildings, process documents, planning documents, material documents, etc. Specifically, the data objects can include problem sheets. This invention does not impose too many restrictions on the types of data objects.
[0063] Step 102: Call the preset target character extraction script to perform extraction operations on the data object to obtain the target character encoding;
[0064] After obtaining one or more data objects, a pre-set target character extraction script can be called to perform extraction operations and obtain the target character encoding; that is, the target character extraction script can be pre-installed on the terminal or server.
[0065] In one embodiment, refer to Figure 2 The diagram illustrates a flowchart of a target character extraction script generation step according to the present invention. The generation method of the target character extraction script includes the following steps:
[0066] Step 11, obtain the entity object code;
[0067] Step 12: Obtain encoding rule information based on the entity object encoding;
[0068] Step 13: Generate the target character extraction script based on the encoding rule information.
[0069] In this invention, the entity object code can first be obtained. Specifically, the entity object code can be extracted from the entity object data. It should be noted that the entity object data can include the core of integrating and managing business data in a certain engineering field, such as equipment, pipelines and structures. For example, the entity object data can be the core of integrating and managing nuclear power business data, including equipment, pipelines and structures. This invention does not impose too many restrictions on the types of entity object data.
[0070] Furthermore, the encoding of the entity object can be parsed to obtain encoding rule information. For example, if the character encoding of a certain device is "3APG 0001PO-", after parsing, the encoding rule information can be obtained as follows: the first position is a number, representing the unit number; the second to fourth positions are letters, representing the system number; the fifth to eighth positions are numbers, representing the serial number; and the eighth to tenth positions are numbers / letters, representing the object type code.
[0071] After obtaining the encoding rule information, a regular expression can be generated to extract the entity object encoding or object encoding fragment based on the encoding rule information, that is, to obtain the target character extraction script. Running the target character extraction script will extract the target character encoding.
[0072] Step 103: Establish the association between the target character encoding and the data object, and generate an association viewing model.
[0073] In practical application of this invention, after obtaining the target character encoding, an association relationship can be established between the target character encoding and the data object, generating an association viewing model. The association viewing model can be searched based on the target character encoding to obtain and display the corresponding data object, thereby improving the efficiency of data retrieval.
[0074] Furthermore, a mapping relationship is established between entity object codes and target character codes, that is, a mapping relationship is established between entity object data and target character codes. Then, based on the association relationship between target character codes and data objects, a mapping relationship is formed between entity object data, target character codes, and data objects, generating an association viewing model of the three, which further improves the convenience of viewing.
[0075] In this invention, data objects can be acquired; a preset target character extraction script can be invoked to perform extraction operations on the data objects to obtain target character codes; an association relationship between the target character codes and the data objects can be established to generate an associated viewing model; by establishing an association relationship between the encoded object and multiple data objects, data querying, analysis, and application can be greatly facilitated; all data of a certain encoded object can be displayed uniformly, allowing for an intuitive understanding of the problems encountered by the encoded object, eliminating the need to search one by one in the system, thus improving data search efficiency; a panoramic data view centered on the encoded object is formed, providing a good tool and means for rapid analysis and resolution of problems, and improving the structuring degree of the data.
[0076] Reference Figure 3 The diagram illustrates a flowchart of an entity object encoding extraction step according to the present invention, including:
[0077] Step 21: Extract the entity object code from the entity object data.
[0078] Specifically, the entity object code can first be extracted from the entity object data. It should be noted that the entity object data includes equipment data, pipeline data, and structure data, etc., and this invention does not impose too many restrictions on it. For example, if the character code of a certain device is "3APG 0001PO-", then the extracted entity object data is "device", and the entity object code is "3APG 0001PO-".
[0079] Reference Figure 4 The diagram illustrates a flowchart of a step for obtaining encoding rule information according to the present invention, including:
[0080] Step 31: Perform string recognition and parsing on the entity object encoding to obtain encoding rule information.
[0081] Furthermore, string recognition and parsing are performed on the entity object code to obtain encoding rule information. For example, the above entity object data is "equipment", and the entity object code is "3APG 0001PO-". After string recognition and parsing, the encoding rule information is as follows: the first digit is a number, representing the unit number; the second to fourth digits are letters, representing the system number; the fifth to eighth digits are numbers, representing the serial number; and the eighth to tenth digits / letters represent the object type code.
[0082] Reference Figure 5 The diagram illustrates a flowchart of a target character extraction script determination step according to the present invention, including:
[0083] Step 41: Generate a regular expression for string matching based on the encoding rule information;
[0084] Step 42: Determine the regular expression as the target character extraction script.
[0085] Specifically, in this invention, a regular expression for string matching is generated based on the encoding rule information. This regular expression can be a string matching pattern used to check whether a text contains a specific string and extract that specific string, thus obtaining the target character extraction script corresponding to the regular expression. The target character encoding of the entity object is parsed and extracted by constructing a regular expression.
[0086] Reference Figure 6 The diagram illustrates a flowchart of a target character encoding acquisition step according to the present invention. The step of calling a preset target character extraction script to perform extraction operations on a data object to obtain the target character encoding includes:
[0087] Step 51: Call the target character extraction script to perform extraction operations on the 3D model data and / or file data and / or material data and / or planning data to obtain the target character code.
[0088] In this invention, the data objects include three-dimensional model data and / or file data and / or material data and / or planning data; then the target character extraction script can be called to perform extraction operations on the three-dimensional model data and / or file data and / or material data and / or planning data to obtain the target character encoding.
[0089] Reference Figure 7 The diagram illustrates a flowchart of the steps for generating an associated viewing model according to the present invention, including:
[0090] Step 61: Establish the association between the target character encoding and the 3D model data and / or file data and / or material data and / or planning data, and generate an associated viewing model.
[0091] Furthermore, after obtaining the target character codes corresponding to one or more data objects, the target character codes can be linked to the 3D model data and / or file data and / or material data and / or plan data to generate an associated viewing model. The target object codes are then associated with problem sheets, 3D models, files, and other data to form a unified data view centered on the entity objects.
[0092] By establishing the association between entity objects and data objects, data querying, analysis, and application can be greatly facilitated; all data objects of an entity object can be displayed uniformly without having to search through the system, thus improving search efficiency.
[0093] To enable those skilled in the art to better understand the present invention, a specific example is provided below:
[0094] Taking various types of business data generated during the design and construction of nuclear power plants as an example, when business data changes, the relevant system can receive the corresponding input information and form a problem form. The specific method steps for generating the associated viewing model in this invention are as follows:
[0095] S1, determine the class of entity objects to be associated.
[0096] Among them, the entity object class (i.e. entity object data) is the core for integrating and managing nuclear power business data, and generally includes equipment data, pipeline data, and structure data.
[0097] S2 summarizes and analyzes the character encoding of entity object classes (i.e., entity object encoding) to obtain encoding rule information.
[0098] Character encoding refers to a string used to uniquely identify an entity object. This character encoding is typically composed of numbers and letters according to certain rules. For example, the character encoding of a device is "3APG0001PO-". After parsing, the encoding rule information can be obtained as follows: the first position is a number, representing the unit number; the second to fourth positions are letters, representing the system number; the fifth to eighth positions are numbers, representing the serial number; and the eighth to tenth positions are numbers / letters, representing the object type code.
[0099] S3 generates a code script (i.e., target character extraction script) for extracting object codes or object code fragments based on the encoding rules of entity objects.
[0100] This code script can be expressed using regular expressions. A regular expression is a string matching pattern that can be used to check whether a text contains a specific string and extract that specific string.
[0101] S4, relying on this code script, parses and extracts target character codes (or fragments) that conform to the encoding rules from the title, description and other information of the business problem ticket, and performs combination, standardization and other processes.
[0102] In the text information such as the title, solution and cause analysis of the problem form, the target character codes (fragments) that conform to the encoding rules are extracted by regular expressions in the code script until all target character codes (fragments) in the problem form are extracted. If necessary, they are combined and arranged according to the object encoding rules.
[0103] like Figure 8 and Figure 9 As shown, Figure 8 This is the information viewing page for the FCR (Fundamental Description Information) of the issue ticket. Figure 9The entity object information extracted for this FCR involves parsing and extracting the unique codes of the seven objects (3JPT1005MPL, 3JPT2005MPL, etc.) associated with this FCR, in order to establish the association between the FCR and these seven entity objects. Users can quickly find the FCR information by using any one of the entity objects.
[0104] S5. Associate the target object with all question forms containing the target character code to obtain the association network between the entity object and all question forms (i.e., the association viewing model).
[0105] Similarly, we can parse and extract object coding information from data such as 3D models, documents, materials, and plans, thereby establishing the association between these data and entity objects.
[0106] S6, when you need to view information such as issue slips, 3D models, and files associated with an entity object, you can quickly access and view them by relying on the established network of relationships, such as... Figure 10 As shown.
[0107] Thus, when a problem needs to be analyzed and solved (which is usually related to one or several entity objects), the object panoramic data map shown in the figure above can be used to quickly view relevant data, models, files, historical problem records, etc., avoiding the need to search for relevant information in different business systems.
[0108] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the present invention is not limited to the described order of actions, because according to the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily essential to the present invention.
[0109] Reference Figure 11 The diagram illustrates a structural block diagram of an embodiment of an associated viewing model generation device according to the present invention, which may specifically include the following modules:
[0110] Data object acquisition module 301 is used to acquire data objects;
[0111] The extraction operation module 302 is used to call a preset target character extraction script to perform extraction operations on the data object and obtain the target character encoding.
[0112] The association establishment module 303 is used to establish the association between the target character encoding and the data object, and generate an association viewing model.
[0113] Preferably, the device further includes:
[0114] The entity object encoding acquisition module is used to acquire the entity object encoding.
[0115] The encoding rule information acquisition module is used to obtain encoding rule information based on the encoding of the entity object;
[0116] The script generation module is used to generate target character extraction scripts based on encoding rule information.
[0117] Preferably, the entity object encoding acquisition module includes:
[0118] The entity object code extraction submodule is used to extract the entity object code from the entity object data.
[0119] Preferably, the entity object data includes equipment data, pipeline data, and structure data.
[0120] Preferably, the encoding rule information acquisition module includes:
[0121] The encoding rule information acquisition submodule is used to perform string recognition and parsing on the encoding of the entity object to obtain encoding rule information.
[0122] Preferably, the script generation module includes:
[0123] The regular expression generation submodule is used to generate regular expressions for string matching based on the encoding rule information;
[0124] The script determination submodule is used to determine the regular expression as the target character extraction script.
[0125] Preferably, the data object includes 3D model data and / or file data and / or material data and / or planning data; the extraction operation module includes:
[0126] The extraction operation submodule is used to call the target character extraction script to perform extraction operations on the 3D model data and / or file data and / or material data and / or planning data to obtain the target character encoding.
[0127] Preferably, the association establishment module includes:
[0128] The association establishment submodule is used to establish the association between the target character encoding and the three-dimensional model data and / or file data and / or material data and / or planning data, and generate an associated viewing model.
[0129] The modules in the aforementioned model generation device 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, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.
[0130] The aforementioned apparatus for generating the associated viewing model can be used to execute the method for generating the associated viewing model provided in any of the above embodiments, and has corresponding functions and beneficial effects.
[0131] In one embodiment, a computer device is provided, which may be a terminal or a server, and its internal structure diagram may be as follows: Figure 12 As shown, the computer device includes a processor, memory, network interface, display screen, 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 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 generating an associative viewing model. 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.
[0132] Those skilled in the art will understand that Figure 12 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 computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0133] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement... Figures 1 to 6 The steps of the embodiment.
[0134] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program implementing the following when executed by a processor. Figures 1 to 6 The steps of the embodiment.
[0135] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.
[0136] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, apparatus, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0137] This invention is described with reference to flowchart illustrations and / or block diagrams of the method, terminal device (system), and computer program product according to the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0138] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0139] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal equipment, causing a series of operational steps to be performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable terminal equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0140] Although preferred embodiments of the invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the invention.
[0141] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes said element.
[0142] The foregoing has provided a detailed description of a method for generating an associated viewing model, an apparatus for generating an associated viewing model, a computer device, and a storage medium provided by the present invention. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A method for generating an associated viewing model, characterized in that, include: Acquire data objects; the data objects include 3D model data and / or file data and / or material data and / or planning data; The pre-defined target character extraction script is invoked to perform extraction operations on the data object to obtain the target character encoding; Establish the association between the target character encoding and the data object, and generate an associated viewing model; The preset target character extraction script is generated in the following way: Get the entity object code; Encoding rule information is obtained based on the entity object encoding; Generate a target character extraction script based on encoding rule information; The step of generating the target character extraction script based on the encoding rule information includes: Generate a regular expression for string matching based on the encoding rule information; The regular expression is used as the target character extraction script; The step of calling a pre-set target character extraction script to perform extraction operations on the data object and obtain the target character encoding includes: The target character extraction script is invoked to perform extraction operations on the 3D model data and / or file data and / or material data and / or planning data to obtain the target character encoding.
2. The method for generating an associated viewing model according to claim 1, characterized in that, The process of obtaining the entity object code includes: Extract the entity object code from the entity object data.
3. The method for generating the associated viewing model according to claim 2, characterized in that, The entity object data includes equipment data, pipeline data, and structure data.
4. The method for generating an associated viewing model according to claim 1, characterized in that, The step of obtaining encoding rule information based on the entity object encoding includes: The entity object encoding is subjected to string recognition and parsing to obtain encoding rule information.
5. The method for generating an associated viewing model according to claim 1, characterized in that, in, The step of establishing the association between the target character encoding and the data object, and generating an associated viewing model, includes: Establish the association between the target character encoding and the 3D model data and / or file data and / or material data and / or planning data, and generate an associated viewing model.
6. A device for generating an associated viewing model, characterized in that, include: A data object acquisition module is used to acquire data objects; the data objects include 3D model data and / or file data and / or material data and / or planning data; The extraction module is used to call a preset target character extraction script to perform extraction operations on the data object and obtain the target character encoding. Specifically, the target character extraction script is invoked to perform extraction operations on the 3D model data and / or file data and / or material data and / or planning data to obtain the target character encoding; The association establishment module is used to establish the association between the target character encoding and the data object, and generate an association viewing model; The entity object encoding acquisition module is used to acquire the entity object encoding. The encoding rule information acquisition module is used to obtain encoding rule information based on the encoding of the entity object; The script generation module is used to generate a target character extraction script based on encoding rule information; The script generation module includes: The regular expression generation submodule is used to generate regular expressions for string matching based on the encoding rule information; The script determination submodule is used to determine the regular expression as the target character extraction script.
7. The apparatus for generating an associated viewing model according to claim 6, characterized in that, The entity object encoding acquisition module includes: The entity object code extraction submodule is used to extract the entity object code from the entity object data.
8. The apparatus for generating an associated viewing model according to claim 7, characterized in that, The entity object data includes equipment data, pipeline data, and structure data.
9. The apparatus for generating an associated viewing model according to claim 6, characterized in that, The encoding rule information acquisition module includes: The encoding rule information acquisition submodule is used to perform string recognition and parsing on the encoding of the entity object to obtain encoding rule information.
10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method for generating the associated viewing model according to any one of claims 1 to 5.
11. 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 for generating the associated viewing model according to any one of claims 1 to 5.
Citation Information
Patent Citations
Multi-element test data source generation method and device, equipment and medium
CN113220782A