CN117453205A - System architecture creation method, device, equipment and computer readable storage medium - Google Patents

System architecture creation method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN117453205A
CN117453205A CN202311395759.XA CN202311395759A CN117453205A CN 117453205 A CN117453205 A CN 117453205A CN 202311395759 A CN202311395759 A CN 202311395759A CN 117453205 A CN117453205 A CN 117453205A
Authority
CN
China
Prior art keywords
target
architecture
element information
preset
modeling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311395759.XA
Other languages
Chinese (zh)
Inventor
禹春雷
陈卓
陈军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Merchants Securities Co ltd
Original Assignee
China Merchants Securities Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Merchants Securities Co ltd filed Critical China Merchants Securities Co ltd
Priority to CN202311395759.XA priority Critical patent/CN117453205A/en
Publication of CN117453205A publication Critical patent/CN117453205A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/30Semantic analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design

Abstract

The present application relates to the field of information technologies, and in particular, to a system architecture creation method, apparatus, device, and computer readable storage medium, where the method includes: obtaining modeling element information, and respectively calculating semantic similarity between the modeling element information and each piece of preset element information; if target element information with semantic similarity larger than a preset threshold exists in each piece of preset element information, multiplexing target architecture elements corresponding to the target element information to create a system architecture; if the target element information does not exist in the preset element information, a target architecture element is created, and a system architecture is created by using the target architecture element. By adopting the technical scheme, repeated creation of the same architecture element can be avoided, so that the management difficulty of the system architecture is reduced, and the management efficiency is improved.

Description

System architecture creation method, device, equipment and computer readable storage medium
Technical Field
The present disclosure relates to the field of information technologies, and in particular, to a system architecture creation method, apparatus, device, and computer readable storage medium.
Background
An enterprise IT system architecture (Enterprise Information Technology System Architecture) is a structure and organization of information technology systems in an organization or enterprise, and particularly relates to how IT systems within an enterprise are designed, built, and managed to support business needs and strategic goals, which are to ensure that individual IT components and resources can cooperate to provide an efficient, scalable, maintainable, and secure IT environment. Because a plurality of business teams and development teams exist in an organization or an enterprise, in the system architecture process of an enterprise IT system, different teams may have different naming modes and presentation habits, so that the same architecture element has a plurality of description modes, which results in the increase of the management difficulty of the system architecture and the low management efficiency of the system architecture.
Disclosure of Invention
The main objective of the present application is to provide a system architecture creation method, apparatus, device and computer readable storage medium, which aims to reduce the management difficulty of the system architecture, thereby improving the management efficiency of the system architecture.
To achieve the above object, the present application provides a system architecture creation method, including the steps of:
Obtaining modeling element information, and respectively calculating semantic similarity between the modeling element information and each piece of preset element information;
if target element information with semantic similarity larger than a preset threshold exists in each piece of preset element information, multiplexing target architecture elements corresponding to the target element information to create a system architecture;
if the target element information does not exist in the preset element information, a target architecture element is created, and a system architecture is created by using the target architecture element.
Optionally, the step of obtaining modeling element information includes:
taking a preset architecture element corresponding to a modeling instruction sent by a user as a reference architecture element, and receiving a first editing operation of the user on element information of the reference architecture element to obtain modeling element information;
or acquiring a search keyword input by a user, and taking the search keyword as the modeling element information.
Optionally, the modeling element information includes a modeling element name and a modeling element description, and the step of calculating semantic similarity between the modeling element information and each preset element information includes:
converting the modeling element names and the modeling element descriptions into target vectors;
And respectively calculating cosine similarity between the target vector and each preset vector, and taking the cosine similarity as semantic similarity between the target vector and each preset element information, wherein the preset vector is a vector obtained by converting the preset element information.
Optionally, the step of converting the modeling element name and the modeling element description into a target vector includes:
and obtaining a target vector by inputting the element name and the element description into a word embedding model, wherein the word embedding model is obtained by training by taking a text as input data and taking a vector as tag data.
Optionally, the step of creating the target architecture element includes:
taking a framework element corresponding to preset element information with highest semantic similarity in the preset element information as an editable element;
the editable element is provided to a user and a second editing operation of the editable element by the user is received to generate a target architecture element.
Optionally, after the step of creating the target architecture element, the method further includes:
and storing the target architecture element, target element information of the target architecture element and a corresponding relation between the target architecture element and the target element information, and taking the target element information as the preset element information.
Optionally, the step of saving the target architecture element, the target element information of the target architecture element, and the correspondence between the target architecture element and the target element information includes:
generating a target element identifier for the target architecture element, and establishing an identifier vector mapping relation between the target element identifier and target element information of the target architecture element by using a hash table;
and storing the identification vector map in an internal memory database, storing the target element identification in a relational database, and storing the relational database and the target architecture element in an architecture diagram database.
To achieve the above object, the present application further provides a system architecture creation apparatus, including:
the acquisition module is used for acquiring modeling element information and respectively calculating semantic similarity between the modeling element information and each preset element information;
the element multiplexing module is used for multiplexing target architecture elements corresponding to the target element information to create a system architecture if target element information with semantic similarity larger than a preset threshold exists in each piece of preset element information;
And the element creation module is used for creating a target architecture element if the target element information does not exist in each piece of preset element information, and creating a system architecture by using the target architecture element.
To achieve the above object, the present application further provides a system architecture creation apparatus, including: a memory, a processor, and a system architecture creation program stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the system architecture creation method as described above.
In addition, in order to achieve the above object, the present application also proposes a computer-readable storage medium having stored thereon a system architecture creation program which, when executed by a processor, implements the steps of the system architecture creation method as described above.
According to the method and the device, the modeling element information is obtained, semantic similarity between the modeling element information and each piece of preset element information is calculated, and whether the stored preset element information is repeated with the modeling element information used in current modeling or not is determined according to the size of the semantic similarity. If the target element information with the semantic similarity larger than the preset threshold value exists in each piece of preset element information, multiplexing the target architecture element corresponding to the target element information to create a system architecture, namely multiplexing the target architecture element corresponding to the repeated element information to model when the preset element information with the repeated preset element information exists in the preset element information. If the target element information does not exist in each piece of preset element information, a target architecture element is created and a system architecture is created by using the target architecture element, namely, when the repeated element information does not exist in the preset element information, the target architecture element is created and is modeled by using the target architecture element.
The method and the device avoid repeated creation of the same architecture element, so that the complexity of management of the architecture element is reduced, element information of the same architecture element is consistent, the possibility of management confusion is reduced, and the management difficulty of a system architecture is reduced, so that the management efficiency is improved.
Drawings
FIG. 1 is a schematic diagram of a hardware operating environment according to an embodiment of the present application;
FIG. 2 is a flowchart of a first embodiment of a system architecture creation method according to the present application;
FIG. 3 is a schematic diagram of a system architecture page according to an embodiment of the system architecture creation method of the present application;
FIG. 4 is a flowchart of a second embodiment of a system architecture creation method according to the present application;
FIG. 5 is a flowchart of a first embodiment of a system architecture creation method according to the present application;
FIG. 6 is a schematic flow chart of creating a system architecture according to an embodiment of the system architecture creation method of the present application;
FIG. 7 is a schematic diagram of an application flow related to an embodiment of a system architecture creation method of the present application;
fig. 8 is a schematic diagram of functional modules of a system architecture creation apparatus according to a preferred embodiment of the present application.
The realization, functional characteristics and advantages of the present application will be further described with reference to the embodiments, referring to the attached drawings.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
As shown in fig. 1, fig. 1 is a schematic device structure diagram of a hardware running environment according to an embodiment of the present application.
It should be noted that, in the system architecture creation device of the embodiment of the present application, the system architecture creation device may be a smart phone, a personal computer, a server, or other devices, which is not limited herein.
As shown in fig. 1, the system architecture creation apparatus may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Those skilled in the art will appreciate that the device structure shown in fig. 1 does not constitute a limitation of the system architecture creation apparatus, and may include more or fewer components than shown, or may combine certain components, or may be a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and a system architecture creation program may be included in the memory 1005, which is one type of computer storage medium. An operating system is a program that manages and controls the hardware and software resources of a device, supporting the creation of programs by the system architecture, as well as the execution of other software or programs. In the device shown in fig. 1, the user interface 1003 is mainly used for data communication with the client; the network interface 1004 is mainly used for establishing communication connection with a server; and the processor 1001 may be configured to call a system architecture creation program stored in the memory 1005, and perform the following operations:
obtaining modeling element information, and respectively calculating semantic similarity between the modeling element information and each piece of preset element information;
if target element information with semantic similarity larger than a preset threshold exists in each piece of preset element information, multiplexing target architecture elements corresponding to the target element information to create a system architecture;
If the target element information does not exist in the preset element information, a target architecture element is created, and a system architecture is created by using the target architecture element.
Further, the step of obtaining modeling element information includes:
taking a preset architecture element corresponding to a modeling instruction sent by a user as a reference architecture element, and receiving a first editing operation of the user on element information of the reference architecture element to obtain modeling element information;
or acquiring a search keyword input by a user, and taking the search keyword as the modeling element information.
Further, the modeling element information includes a modeling element name and a modeling element description, and the step of calculating semantic similarity between the modeling element information and each preset element information includes:
converting the modeling element names and the modeling element descriptions into target vectors;
and respectively calculating cosine similarity between the target vector and each preset vector, and taking the cosine similarity as semantic similarity between the target vector and each preset element information, wherein the preset vector is a vector obtained by converting the preset element information.
Further, the step of converting the modeling element name and the modeling element description into a target vector includes:
and obtaining a target vector by inputting the element name and the element description into a word embedding model, wherein the word embedding model is obtained by training by taking a text as input data and taking a vector as tag data.
Further, the step of creating the target architecture element includes:
taking a framework element corresponding to preset element information with highest semantic similarity in the preset element information as an editable element;
the editable element is provided to a user and a second editing operation of the editable element by the user is received to generate a target architecture element.
Further, after the step of creating the target architecture element, the method further includes:
and storing the target architecture element, target element information of the target architecture element and a corresponding relation between the target architecture element and the target element information, and taking the target element information as the preset element information.
Further, the step of saving the target architecture element, the target element information of the target architecture element, and the correspondence between the target architecture element and the target element information includes:
Generating a target element identifier for the target architecture element, and establishing an identifier vector mapping relation between the target element identifier and target element information of the target architecture element by using a hash table;
and storing the identification vector map in an internal memory database, storing the target element identification in a relational database, and storing the relational database and the target architecture element in an architecture diagram database.
Based on the above-described structure, various embodiments of a system architecture creation method are presented.
Referring to fig. 2, fig. 2 is a flowchart of a first embodiment of a system architecture creation method according to the present application.
The present embodiments provide embodiments of a system architecture creation method, it being noted that although a logical order is illustrated in a flowchart, in some cases the steps illustrated or described may be performed in a different order than that illustrated herein. In this embodiment, the execution body of the system architecture creation method may be a personal computer, a smart phone, a server, or other devices, but the present embodiment is not limited thereto, and for convenience of description, the execution body is omitted for explanation of each embodiment. In this embodiment, the system architecture creation method includes steps S10 to S30.
Step S10, modeling element information is obtained, and semantic similarity between the modeling element information and each piece of preset element information is calculated respectively.
The system architecture is a high-level structural design of a complex system, and is used for guiding the construction, evolution and maintenance of the system. The system architecture is typically made up of multiple components that work together to achieve the goals of the system. The main components of the system architecture may include: architecture elements, i.e., components that make up a system structure, each architecture element having corresponding element information that may characterize functions and identities of the architecture element, and may specifically include element names and functional descriptions of the elements (hereinafter referred to as element descriptions to illustrate distinction); an interface defining a communication manner and rules between the architecture elements; architecture modes, such as hierarchical architecture, micro-service architecture, event driven architecture, etc.; dependencies, which describe how one architectural element depends on other architectural elements to perform its own functions, may specifically further include other components, for example, a protocol, a security policy, a performance optimization policy, a business rule, and the like, which are not limited in this embodiment.
In creating a system architecture, naming and presentation habits of the same architecture element may be different due to different creators or creation teams; alternatively, chinese and English may use different words when representing the same concept, and even different words of Chinese may represent the same meaning; or, due to the fact that the team lacks of effective information sharing and communication mechanisms, the situation that the same architecture element is repeatedly created and element information of the same architecture element is inconsistent exists, and management difficulty of a system architecture is increased.
In this embodiment, before the system architecture is created, it is detected whether there is an existing construction element that is repeated with the construction element that is required for the current modeling, based on the semantic similarity and the element information of the construction element. Specifically, element information describing an architecture element that needs to be used for creating a system rack is referred to as modeling element information, which is acquired before the system architecture element is created. The manner of obtaining the modeling element information in this embodiment is not limited herein, and for example, the modeling element information may be determined based on a modeling instruction of a user to create an architecture element, or the element information input when the user creates the architecture element may be used as the modeling element information.
The system architecture creation device may store the created architecture element and element information corresponding to the architecture element, which will be hereinafter referred to as a preset architecture element and preset element information, respectively. After the modeling element information is obtained, semantic similarity between the modeling element information and each preset element information, that is, semantic similarity, is calculated respectively, and a specific manner of calculating the semantic similarity is not limited herein, for example, the semantic similarity may be calculated Based on a Word Embedding model (Word Embedding), a Word Alignment (Word Alignment-Based), a neural network model, a knowledge graph and other methods.
Step S20, if target element information with semantic similarity greater than a preset threshold exists in each piece of preset element information, multiplexing target architecture elements corresponding to the target element information to create a system architecture.
According to whether the semantic similarity is larger than a preset threshold value, whether the architecture element matched with the modeling element information exists or not is judged. Specifically, if the semantic similarity is greater than the preset threshold, the semantic similarity between the preset element information and the modeling element information is higher, that is, the semantic similarity between the preset element information and the architecture element represented by the modeling element information is high, at this time, the preset architecture element is considered to be matched with the modeling element information, and the preset architecture element can be reused to create a system architecture.
That is, in this embodiment, if target element information with semantic similarity greater than a preset threshold exists in each preset element information, a system architecture is created by multiplexing a target architecture element corresponding to the target element information.
Further, in a possible embodiment, there may be a plurality of target element information in the preset element information, in this embodiment, it is necessary to determine element information satisfying a preset condition from the plurality of target element information, hereinafter referred to as system element information to show distinction, and then create a system architecture using an architecture element of the system element information (hereinafter referred to as system architecture element to show distinction). In this embodiment, the preset condition may be that the semantic similarity of the preset element information is highest, the preset element information is the element information indicated by the selection instruction of the user, or the number of times of using the preset element information to create the system architecture is the highest, and specifically may be set according to the actual requirement, which is not limited herein.
Step S30, if the target element information does not exist in each piece of preset element information, creating a target architecture element, and creating a system architecture by using the target architecture element.
If the semantic similarity is smaller than or equal to the preset threshold value, the semantic similarity between the preset element information and the modeling element information is lower, that is, the semantic similarity between the preset element information and the modeling element information is lower, and at the moment, the preset architecture element matched with the modeling element information is considered to be absent, and at the moment, a new architecture element can be created for building a system architecture.
That is, in this embodiment, if the target element information does not exist in the preset element information, the target architecture element is created, and the system architecture is created using the target architecture element. The manner of creating the target architecture element is not limited herein, for example, in a possible implementation manner, the architecture element corresponding to the preset element information with the highest semantic similarity may be adjusted to obtain the target architecture element; for example, in a possible implementation manner, a target element component corresponding to the modeling element information may be determined from different types of preset element components, and the target element component is defined according to the modeling element information to obtain a target architecture element, where the corresponding target element component may be determined based on the description of the modeling element information.
Further, in a possible implementation manner, a minimum threshold of the semantic similarity is preset, which is hereinafter referred to as a first threshold to indicate distinction, if the semantic similarity between the preset element information and the modeling element information is lower than the first threshold, it indicates that the semantic proximity between the preset element information and the modeling element information is very low, that is, there may not be any architecture element corresponding to the modeling element information in the previous system architecture, and the architecture element corresponding to the modeling element information is an architecture element with a brand new type and function. In this embodiment, a framework element component having a shape different from that of each preset element component is generated, and then a target framework element is obtained by defining a target element component according to modeling element information.
Further, in a possible embodiment, in step S10: modeling element information is acquired, including steps S101-S102.
Step S101, taking a preset architecture element corresponding to a modeling instruction sent by a user as a reference architecture element, and receiving a first editing operation of the user on element information of the reference architecture element to obtain modeling element information;
the system architecture page can display a plurality of preset architecture elements, and a user can send modeling instructions in a dragging, clicking and other modes, wherein the modeling instructions specify reference architecture elements from the plurality of preset architecture elements. That is, in this embodiment, a preset architecture element corresponding to a modeling instruction sent by a user is taken as a reference architecture element, and a first editing operation of the user on element information of the reference architecture element is received to obtain modeling element information.
Or, in step S102, a search keyword input by the user is obtained, and the search keyword is used as the modeling element information.
The system architecture page may also provide an architecture element search function, and a user may search for architecture elements that meet the demand by inputting keywords under the page of the search function, so in this embodiment, search keywords for search may be used as modeling element information. That is, search keywords input by the user are acquired, and the search keywords are used as modeling element information.
Illustratively, in one possible implementation, referring to FIG. 3, there are multiple types of architecture element components on the left side of the page where the system architecture is created, such as a holding-up query service component, a bid clearing component, and a comprehensive business component, among others. On the left side, the user can type in keywords, and the key words are modeling element information, namely, search keywords input by the user are acquired, and the search keywords are used as the modeling element information. As shown in the right interface in fig. 3, the user may directly drag the component, edit the dragged component, and obtain the modeling element information by using the edited content, that is, the preset architecture element corresponding to the modeling instruction sent by the user, as the reference architecture element, and receiving the first editing operation of the user on the element information of the reference architecture element. As shown in fig. 3, the architecture element used to create the system architecture in this embodiment is a binning query service, and 3 preset architecture elements related to binning can be queried through semantic similarity search, that is, 3 existing graphics are already matched as shown in fig. 3.
In this embodiment, by acquiring modeling element information, calculating semantic similarity between the modeling element information and each preset element information, and determining whether the stored preset element information is repeated with the modeling element information used in the current modeling according to the size of the semantic similarity. If the target element information with the semantic similarity larger than the preset threshold value exists in each preset element information, multiplexing the target architecture element corresponding to the target element information to create a system architecture, namely multiplexing the target architecture element corresponding to the repeated element information for modeling when the preset element information has the preset element information repeated with the modeling element information. If no target element information exists in each preset element information, a target architecture element is created and a system architecture is created by using the target architecture element, namely, when no repeated element information exists in the preset element information, the target architecture element is created and modeling is performed by using the target architecture element.
The embodiment of the application avoids repeated creation of the same architecture element, thereby reducing the complexity of management of the architecture element, enabling element information of the same architecture element to have consistency, reducing the possibility of management confusion, and reducing the management difficulty of the system architecture, thereby improving the management efficiency.
Further, based on the above first embodiment, a second embodiment of the system architecture creation method of the present invention is provided, in this embodiment, the modeling element information includes a modeling element name and a modeling element description, referring to fig. 4, step S20: the calculating of the semantic similarity between the modeling element information and each preset element information comprises the following steps: steps S201 to S202.
Step S201, converting the modeling element name and the modeling element description into a target vector.
In the present embodiment, modeling element names and modeling element descriptions are converted into vectors, hereinafter referred to as target vectors to show discrimination. The specific manner of converting the modeling element names and modeling element descriptions into vectors is not limited herein, and may be, for example, text vectorization by means of a Bag of Words model (BoW), a TF-IDF (Term Frequency-Inverse Document Frequency) model, a Word embedding (Word embedding) model, a document embedding model, an N-grams (a method of dividing text into N consecutive Words or characters), or the like.
Step S202, respectively calculating cosine similarity between the target vector and each preset vector, and taking the cosine similarity as semantic similarity between the target vector and each preset element information, wherein the preset vector is a vector obtained by converting the preset element information.
In this embodiment, the cosine similarity between the target vector and each preset vector is calculated, and the cosine similarity is used as the semantic similarity between the target vector and each preset element information. The preset vector is a vector obtained by converting preset element information, in a specific embodiment, the preset vector, the preset element information, and a corresponding relation between the preset vector and the preset element information are stored in advance, and the preset vector is determined based on the preset vector, the preset element information, and the corresponding relation between the preset vector and the preset element information in calculating the cosine similarity; the preset element information may be converted into the target element information when the cosine similarity is calculated.
Further, in a possible embodiment, step S201: the modeling element name and the modeling element description are converted into a target vector, including step S2011.
Step S2011 is to obtain a target vector by inputting the element name and the element description into a word embedding model, wherein the word embedding model is obtained by training with text as input data and a vector as tag data.
In this embodiment, the object vector is obtained by embedding the element name and the element description input word into the model. The word embedding model is obtained by training with text as input data and vectors as tag data, and the specific training process is not limited herein.
The semantic representation capability of the word embedding model is strong, so that the meaning of the text can be better understood; compared with the traditional word bag model, the word embedding model considers word sequence information of words, so that the text vector is closer to the expression mode of natural language; and word embedding is suitable for multiple languages, can be used for text vectorization of multiple languages, and has wider applicability. Therefore, the accuracy of the target vector obtained by text vectorization through the word embedding model is high, so that the accuracy of the final cosine similarity is high.
Further, in a possible embodiment, in step S30: a target architecture element is created, comprising steps S301-S302.
Step S301, using a framework element corresponding to the preset element information with the highest semantic similarity in the preset element information as an editable element;
in this embodiment, when no preset element information exists, that is, when no architecture element that is to be matched with the modeling element information exists, the architecture element corresponding to the preset element information with the highest semantic similarity in the preset element information is used as the editable element.
Step S302, the editable element is provided for a user, and a second editing operation of the editable element by the user is received to generate a target architecture element.
The editable element is provided to the user and a second editing operation of the editable element by the user is received to generate the target architecture element.
In this embodiment, compared with the method of creating a new target architecture element, the method of creating a system architecture can reduce the steps of creating the architecture element and improve the efficiency of creating the target architecture element by modifying the existing architecture element, thereby improving the efficiency of creating the system architecture.
In this embodiment, the modeling element names and modeling element descriptions are converted into target vectors; and respectively calculating cosine similarity between the target vector and each preset vector, and taking the cosine similarity as semantic similarity between the target vector and each preset element information.
According to the embodiment, the semantic similarity between the modeling element information and each preset element information is calculated, whether the stored preset element information is repeated with modeling element information used by current modeling is determined according to the size of the semantic similarity, so that whether the framework elements matched with the modeling element information exist or not is determined, repeated creation of the same framework element is avoided, the complexity of management of the framework element is reduced, the element information of the same framework element is consistent, the possibility of management confusion is reduced, and therefore management difficulty of a system framework is reduced, and management efficiency is improved.
Further, based on the first and/or second embodiments, a third embodiment of the system architecture creation method of the present invention is provided, in this embodiment, referring to fig. 5, step S30: after creating the target architecture element, step S40 is also included.
Step S40, storing the target architecture element, target element information of the target architecture element, and a correspondence between the target architecture element and the target element information, and taking the target element information as the preset element information.
In this embodiment, after the target architecture element is created, the target architecture element, target element information of the target architecture element, and a correspondence between the target architecture element and the target element information are saved, and the target element information is used as preset element information.
Further, in a possible embodiment, step S40: and storing the target architecture element, target element information of the target architecture element and a corresponding relation between the target architecture element and the target element information, wherein the method comprises the steps of S401-S402.
Step S401, generating a target element identifier for the target architecture element, and using a hash table to establish an identifier vector mapping relationship between the target element identifier and target element information of the target architecture element.
And generating a target element identifier for the target architecture element, wherein the target element identifier is a unique identity identifier for characterizing the target architecture element, and the specific mode for generating the identifier is not limited.
After the target element identification is generated, a hash table is used for establishing an identification vector mapping relation between the target element identification and target element information of the target architecture element.
Step S402, the identification vector map is stored in an internal memory database, the target element identification is stored in a relational database, and the relational database and the target architecture element are stored in an architecture diagram database.
The identification vector map is stored in the memory database, the target element identification is stored in the relational database, and the relational database and the target architecture element are stored in the architecture diagram database.
In this embodiment, a target architecture element, target element information of the target architecture element, and a correspondence between the target architecture element and the target element information are stored, and the target element information is used as preset element information. The implementation avoids repeated creation of the same architecture element, thereby reducing the complexity of management of the architecture element, enabling element information of the same architecture element to have consistency, reducing the possibility of management confusion, and realizing the reduction of the management difficulty of the system architecture, and improving the management efficiency.
Illustratively, in one possible implementation, referring to FIG. 6, the architecture modeling process data processing flow may be:
1. modeling element information is acquired. The system architecture management software provides canvas for a user to draw architecture diagrams in a dragging manner during system architecture modeling. When a component is dragged from the tool box to the canvas, a new architecture element is generated, and the user enters the name and description of the architecture element.
2. Semantic similarity search, namely, respectively calculating the semantic similarity between the modeling element information and each preset element information.
3. And detecting whether a target architecture element exists, namely detecting whether a target architecture element corresponding to target element information with semantic similarity larger than a preset threshold exists.
4. It is detected whether the target architectural element is multiplexed. In this embodiment, if there is a target architecture element, it may prompt from the interface that there is a similar target architecture element, and ask the user if it is to be multiplexed; if the user confirms the conversion to the multiplex system, the conversion is automatically converted to a reference without creating a new element.
5. If the target architecture element is multiplexed, a system architecture is created. If the target architecture element is not multiplexed, the target architecture element is talked around and a system architecture is created using the target architecture element. That is, if target element information with semantic similarity greater than a preset threshold exists in each piece of preset element information, a system architecture is created by multiplexing target architecture elements corresponding to the target element information; if the target element information does not exist in the preset element information, a target architecture element is created, and a system architecture is created by using the target architecture element. Taking a preset architecture element corresponding to a modeling instruction sent by a user as a reference architecture element, and receiving a first editing operation of the user on element information of the reference architecture element to obtain modeling element information;
6. In this embodiment, after creating the system architecture, the architecture diagram data is created.
In this embodiment, the modeling element information includes a modeling element name and a modeling element description, and the process of semantic similarity search of the architecture element may be:
1. vectors of element names and descriptions are generated using a word embedding model that supports pretrained completion of Chinese and English simultaneously, i.e., the modeling element names and the modeling element descriptions are converted into target vectors.
Specifically, it is possible to use:
open source models such as "bert-base-multilangual-based" or "shifting 624/text2 vec-base-multilangual".
2. And calculating sentence cosine similarity between the vector of the search text and all the vectors in the memory, acquiring all the vectors with similarity values larger than 0.9, and acquiring corresponding architecture element information from the relational database according to the architecture element ID and returning the information to the user. (namely, respectively calculating cosine similarity between the target vector and each preset vector, and taking the cosine similarity as semantic similarity between the target vector and each preset element information, if target element information with semantic similarity larger than a preset threshold value exists in each preset element information, multiplexing a target architecture element corresponding to the target element information to create a system architecture, and if the target element information does not exist in each preset element information, creating a target architecture element and using the target architecture element to create the system architecture).
Illustratively, in this embodiment, referring to fig. 7, the data storage and search process architecture modeling process data processing flow may be:
1. architecture element semantic search may specifically take keyword search (i.e., obtain a search keyword input by a user, and use the search keyword as the modeling element information).
2. Text vectorization Text2Vec is performed, and a vector of a keyword is generated by using a sentence embedding model with pre-training (namely, the modeling element name and the modeling element description are converted into target vectors, cosine similarity between the target vectors and each preset vector is calculated respectively, and the cosine similarity is used as semantic similarity between the target vectors and each preset element information).
3. The names and descriptions of the architecture elements are obtained from the stored architecture diagram data, text2Vec is subjected to Text vectorization, and vectors of the names and descriptions of the architecture elements are generated by using a sentence embedding model with pre-training.
4. Semantic similarity computation is performed using the vector of "keywords" and the name of the architectural element and the vector of description.
In this embodiment, after the semantic similarity is calculated, a vector of a "keyword" and a name and a vector of a description of an architecture element are also stored in a vector storage (memory) (that is, the target architecture element, target element information of the target architecture element, and a correspondence between the target architecture element and the target element information are stored, and the target element information is used as the preset element information).
5. And determining an element ID list with similar semantics according to the result of the semantic similarity calculation, and acquiring detailed information of the elements based on the ID list.
6. And determining an architecture element ID from the architecture diagram definition based on the detailed information, and acquiring architecture diagram, architecture element and relation data from the stored architecture diagram data based on the architecture element ID (namely, if target element information with semantic similarity larger than a preset threshold value exists in each piece of preset element information, multiplexing target architecture elements corresponding to the target element information to create a system architecture).
In addition, an embodiment of the present application further provides a system architecture creation apparatus, referring to fig. 8, where the system architecture creation apparatus includes:
the acquisition module 10 is used for acquiring modeling element information and respectively calculating semantic similarity between the modeling element information and each preset element information;
the element multiplexing module 20 is configured to multiplex a target architecture element corresponding to the target element information to create a system architecture if target element information with semantic similarity greater than a preset threshold exists in each piece of preset element information;
an element creation module 30, configured to create a target architecture element if the target element information does not exist in each piece of preset element information, and create a system architecture using the target architecture element.
Further, the acquisition module 10 is further configured to:
taking a preset architecture element corresponding to a modeling instruction sent by a user as a reference architecture element, and receiving a first editing operation of the user on element information of the reference architecture element to obtain modeling element information;
or acquiring a search keyword input by a user, and taking the search keyword as the modeling element information.
Further, the modeling element information includes a modeling element name and a modeling element description, and the obtaining module 10 is further configured to:
converting the modeling element names and the modeling element descriptions into target vectors;
and respectively calculating cosine similarity between the target vector and each preset vector, and taking the cosine similarity as semantic similarity between the target vector and each preset element information, wherein the preset vector is a vector obtained by converting the preset element information.
Further, the acquisition module 10 is further configured to:
and obtaining a target vector by inputting the element name and the element description into a word embedding model, wherein the word embedding model is obtained by training by taking a text as input data and taking a vector as tag data.
Further, the element creation module 30 is further configured to:
taking a framework element corresponding to preset element information with highest semantic similarity in the preset element information as an editable element;
the editable element is provided to a user and a second editing operation of the editable element by the user is received to generate a target architecture element.
Further, the system architecture creation apparatus further includes a save module configured to:
and storing the target architecture element, target element information of the target architecture element and a corresponding relation between the target architecture element and the target element information, and taking the target element information as the preset element information.
Further, the saving module is further configured to:
generating a target element identifier for the target architecture element, and establishing an identifier vector mapping relation between the target element identifier and target element information of the target architecture element by using a hash table;
and storing the identification vector map in an internal memory database, storing the target element identification in a relational database, and storing the relational database and the target architecture element in an architecture diagram database.
Embodiments of the system architecture creation apparatus of the present application may refer to embodiments of the system architecture creation method of the present application, and are not described herein again.
In addition, the embodiment of the present application also proposes a computer-readable storage medium, on which a system architecture creation program is stored, which when executed by a processor, implements the steps of a system architecture creation method as described below.
Embodiments of the system architecture creation apparatus and the computer readable storage medium of the present application may refer to embodiments of the system architecture creation method of the present application, and are not described herein in detail.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing embodiment numbers of the present application are merely for describing, and do not represent advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in an area contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method described in the embodiments of the present application.
The foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the claims, and all equivalent structures or equivalent processes using the descriptions and drawings of the present application, or direct or indirect application in other related technical fields are included in the scope of the claims of the present application.

Claims (10)

1. A system architecture creation method, characterized in that the system architecture creation method comprises the steps of:
obtaining modeling element information, and respectively calculating semantic similarity between the modeling element information and each piece of preset element information;
if target element information with semantic similarity larger than a preset threshold exists in each piece of preset element information, multiplexing target architecture elements corresponding to the target element information to create a system architecture;
if the target element information does not exist in the preset element information, a target architecture element is created, and a system architecture is created by using the target architecture element.
2. The system architecture creation method of claim 1, wherein the step of obtaining modeling element information comprises:
taking a preset architecture element corresponding to a modeling instruction sent by a user as a reference architecture element, and receiving a first editing operation of the user on element information of the reference architecture element to obtain modeling element information;
or acquiring a search keyword input by a user, and taking the search keyword as the modeling element information.
3. The system architecture creation method of claim 1, wherein the modeling element information includes a modeling element name and a modeling element description, and the step of calculating semantic similarity between the modeling element information and each preset element information, respectively, includes:
Converting the modeling element names and the modeling element descriptions into target vectors;
and respectively calculating cosine similarity between the target vector and each preset vector, and taking the cosine similarity as semantic similarity between the target vector and each preset element information, wherein the preset vector is a vector obtained by converting the preset element information.
4. The system architecture creation method of claim 3 wherein the step of converting the modeling element name and the modeling element description into a target vector comprises:
and obtaining a target vector by inputting the element name and the element description into a word embedding model, wherein the word embedding model is obtained by training by taking a text as input data and taking a vector as tag data.
5. The system architecture creation method of claim 1, wherein the step of creating a target architecture element comprises:
taking a framework element corresponding to preset element information with highest semantic similarity in the preset element information as an editable element;
the editable element is provided to a user and a second editing operation of the editable element by the user is received to generate a target architecture element.
6. The system architecture creation method of any of claims 1 to 5, further comprising, after the step of creating the target architecture element:
and storing the target architecture element, target element information of the target architecture element and a corresponding relation between the target architecture element and the target element information, and taking the target element information as the preset element information.
7. The system architecture creation method of claim 6, wherein the step of saving the target architecture element, target element information of the target architecture element, and correspondence between the target architecture element and the target element information comprises:
generating a target element identifier for the target architecture element, and establishing an identifier vector mapping relation between the target element identifier and target element information of the target architecture element by using a hash table;
and storing the identification vector map in an internal memory database, storing the target element identification in a relational database, and storing the relational database and the target architecture element in an architecture diagram database.
8. A system architecture creation apparatus, the system architecture creation apparatus comprising:
The acquisition module is used for acquiring modeling element information and respectively calculating semantic similarity between the modeling element information and each preset element information;
the element multiplexing module is used for multiplexing target architecture elements corresponding to the target element information to create a system architecture if target element information with semantic similarity larger than a preset threshold exists in each piece of preset element information;
and the element creation module is used for creating a target architecture element if the target element information does not exist in each piece of preset element information, and creating a system architecture by using the target architecture element.
9. A system architecture creation device, the system architecture creation device comprising: a memory, a processor, and a system architecture creation program stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the system architecture creation method of any of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a system architecture creation program, which, when executed by a processor, implements the steps of the system architecture creation method of any of claims 1 to 7.
CN202311395759.XA 2023-10-24 2023-10-24 System architecture creation method, device, equipment and computer readable storage medium Pending CN117453205A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311395759.XA CN117453205A (en) 2023-10-24 2023-10-24 System architecture creation method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311395759.XA CN117453205A (en) 2023-10-24 2023-10-24 System architecture creation method, device, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN117453205A true CN117453205A (en) 2024-01-26

Family

ID=89590377

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311395759.XA Pending CN117453205A (en) 2023-10-24 2023-10-24 System architecture creation method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN117453205A (en)

Similar Documents

Publication Publication Date Title
CN109002510B (en) Dialogue processing method, device, equipment and medium
KR20220027220A (en) Predictive Similarity Scoring Subsystem in Natural Language Understanding (NLU) Frameworks
US10303689B2 (en) Answering natural language table queries through semantic table representation
KR102299744B1 (en) Method for obtaining data model in knowledge graph, apparatus, device and medium
CN105550206B (en) The edition control method and device of structured query sentence
US20180060779A1 (en) Method of generating business process model and computerized system associated therewith
CN112579733A (en) Rule matching method, rule matching device, storage medium and electronic equipment
Keim et al. Towards consistency checking between software architecture and informal documentation
CN110233946B (en) Method for executing outbound service, electronic device and computer readable storage medium
CN117520514A (en) Question-answering task processing method, device, equipment and readable storage medium
US11940953B2 (en) Assisted updating of electronic documents
JPH10289240A (en) Image processor and its control method
CN109582967B (en) Public opinion abstract extraction method, device, equipment and computer readable storage medium
CN109033082B (en) Learning training method and device of semantic model and computer readable storage medium
KR20200103133A (en) Method and apparatus for performing extract-transfrom-load procedures in a hadoop-based big data processing system
CN116186219A (en) Man-machine dialogue interaction method, system and storage medium
CN117453205A (en) System architecture creation method, device, equipment and computer readable storage medium
CN115795046A (en) Data processing method, device, system, electronic device and storage medium
CN115982322A (en) Water conservancy industry design field knowledge graph retrieval method and retrieval system
KR101870658B1 (en) System and method for distributed realtime processing of linguistic intelligence moduel
CN115221337A (en) Data weaving processing method and device, electronic equipment and readable storage medium
JP7187411B2 (en) Coaching system and coaching method
CN114021541A (en) Presentation generation method, device, equipment and storage medium
CN113468258A (en) Heterogeneous data conversion method and device and storage medium
CN111859148A (en) Theme extraction method, device and equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination