CN112286567A - Micro-service generation method and system based on semantic matching - Google Patents

Micro-service generation method and system based on semantic matching Download PDF

Info

Publication number
CN112286567A
CN112286567A CN202011017226.4A CN202011017226A CN112286567A CN 112286567 A CN112286567 A CN 112286567A CN 202011017226 A CN202011017226 A CN 202011017226A CN 112286567 A CN112286567 A CN 112286567A
Authority
CN
China
Prior art keywords
service
combined
instance
attributes
clustering
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
CN202011017226.4A
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.)
Shanghai Aerospace Chemical Application Research Institute
Original Assignee
Shanghai Aerospace Chemical Application Research Institute
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 Shanghai Aerospace Chemical Application Research Institute filed Critical Shanghai Aerospace Chemical Application Research Institute
Priority to CN202011017226.4A priority Critical patent/CN112286567A/en
Publication of CN112286567A publication Critical patent/CN112286567A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/23Clustering techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Computation (AREA)
  • Evolutionary Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a micro-service generation method and system based on semantic matching. The method comprises the following steps: extracting service information in a service library constructed in advance; analyzing the service information to obtain a service attribute corresponding to the service information; clustering the service attributes to obtain service attribute clustering results; calculating service dependency based on the clustering result, constructing a service dependency relationship model, and recording the relevance information among the services; matching the attributes of the services based on a semantic matching mode, and generating a combined service associated with the business process by combining a service dependency relationship model; and packaging the combined service instance corresponding to the business process based on the combined service, and issuing the combined service instance. The invention can reduce the error probability in the digital construction process of the business process; the difficulty of micro-service management is low, each service instance has independent resources, and the instances have good isolation.

Description

Micro-service generation method and system based on semantic matching
Technical Field
The invention relates to the technical field of information technology processing, in particular to a micro-service generation method and a micro-service generation system based on semantic matching.
Background
In the construction of the industrial internet, an industrial internet system needs to be built, and the building of an edge computing architecture of the internet of things equipment and the research and design of an edge node micro-service management platform technology are developed. In the micro service platform architecture design, clear and severe requirements are provided for the encapsulation and the release of services, different organization departments in the platform need to support the definition and the service resource matching of services according to the special requirements of the services, and the services are flexibly released and applied through the encapsulation and the combination of a plurality of micro services. In the industrial internet production and manufacturing, the processes of processing, inspecting, optimizing and the like of various types of workpieces mostly adopt services of operation instruction types, and the services increase explosively with the increase of equipment; the services have a sequential or parallel relationship, or are processed on the upstream and downstream of the same production line, or are also a plurality of necessary conditions for the next processing, namely, the services have temporal or causal association; meanwhile, in industrial production, a plurality of production lines use the same production equipment, the same production instructions can appear in different production lines, the association between services is not limited to the same service scene, and the association between services is complex; in summary, instruction services in industrial production are numerous, associated with each other and complex in relation, so it is very important to construct a production business process digital model and implement industrial production digital management, and in this process, it is very important to describe the association and dependency between instruction services accurately and intuitively.
Through literature search, the Web service combination … …, which is realized by determining the execution sequence of the component Web services and the interaction among the component Web services, has the characteristics of hierarchy, dynamics, loose coupling, expandability and the like, is found in a Web service combination test summary [ J ] of software academic journal, 2018,29(02):299 and 319. By using the idea, the operation instruction can be packaged into Web service, a dependency and association model between services is constructed based on each service scene in industrial production, the service flow is digitally constructed in a service combination mode, and finally the service flow is packaged into micro-service deployment and release, so that the digital management of the industrial production flow is realized. The existing service combination technology does not consider the service logic correlation between services and the semantic matching of input and output interfaces between services, selects from all service sets in the process of constructing a service flow, establishes the service flow by virtue of the experience of developers or a production guide, and lacks of intelligent recommendation; and similar services that do not belong to the pipeline may be selected in the service composition process, resulting in a lack of business cohesion in the resulting flow.
Disclosure of Invention
The technical problem solved by the invention is as follows: the defects of the prior art are overcome, and a micro-service generation method and a system based on semantic matching are provided.
In order to solve the technical problem, an embodiment of the present invention provides a microservice generation method based on semantic matching, including:
extracting service information in a service library constructed in advance;
analyzing the service information to obtain a service attribute corresponding to the service information;
clustering the service attributes to obtain service attribute clustering results;
calculating service dependency based on the clustering result, constructing a service dependency relationship model, and recording relevance information among services;
matching the attributes of the services based on a semantic matching mode, and generating a combined service associated with a business process by combining the service dependency relationship model;
and based on the combined service, packaging the combined service instance corresponding to the business process and issuing the combined service instance.
Optionally, before the extracting the service information in the service library constructed in advance, the method further includes:
establishing an initial service library;
acquiring a function description file and a data resource description file input by a user;
processing the function description file and the data resource description file to obtain function service information corresponding to the function description file and data service information corresponding to the data resource description file;
and adding the functional service information and the data service information to the initial service library to generate the service library.
Optionally, the clustering the service attributes to obtain a service attribute clustering result includes:
calculating Euclidean distance between the service attributes based on a bottom-up hierarchical clustering algorithm;
and clustering the service attributes according to the Euclidean distance to generate a service attribute cluster set, and combining the service attribute cluster set into the service attribute cluster result.
Optionally, the matching processing is performed on the attributes of the service based on the semantic matching, and the combined service associated with the business process is generated by combining the service dependency relationship model, including:
performing word sense disambiguation, semantic association and semantic fusion on the service attributes to obtain a semantic processing result;
performing relevance recommendation on the service, and constructing a service list with strong relevance of the current service by combining a service dependency relationship model;
and combining services based on the semantic processing result and the service dependency relationship model to generate combined services related to the business process.
Optionally, the encapsulating, based on the composite service, the composite service instance corresponding to the business process, and publishing the composite service instance includes:
acquiring the combined service associated with the business process;
deploying and packaging the combined service instance according to the operation instance of the business process;
and issuing the packaged combined service instance.
Optionally, after the encapsulating, based on the composite service, the composite service instance corresponding to the business process and publishing the composite service instance, the method further includes:
and in the running process of the combined service instance, providing a service interface corresponding to the combined service for a user so as to realize the visualization of the running of the combined service instance.
In order to solve the above technical problem, an embodiment of the present invention further provides a microservice generation system based on semantic matching, including:
the service information extraction module is used for extracting service information in a service library constructed in advance;
the service attribute extraction module is used for analyzing the service information and acquiring the service attribute corresponding to the service information;
the service attribute clustering module is used for clustering the service attributes to obtain service attribute clustering results;
the relational model building module is used for calculating service dependency based on the clustering result, building a service dependency relational model and recording the relevance information among the services;
the combined service construction module is used for matching the attributes of the services based on a semantic matching mode and generating combined services related to the business process by combining the service dependency relationship model;
and the combined service publishing module is used for packaging the combined service instance corresponding to the business process based on the combined service and publishing the combined service instance.
Optionally, the method further comprises:
the initial service library establishing module is used for establishing an initial service library;
the description file acquisition module is used for acquiring a function description file and a data resource description file input by a user;
the service information extraction module is used for processing the function description file and the data resource description file to obtain function service information corresponding to the function description file and data service information corresponding to the data resource description file;
and the service library generating module is used for adding the functional service information and the data service information to the initial service library to generate the service library.
Optionally, the service attribute clustering module includes:
the Euclidean distance calculating unit is used for calculating the Euclidean distance between the service attributes based on a bottom-up hierarchical clustering algorithm;
and the service attribute clustering unit is used for clustering the service attributes according to the Euclidean distance to generate a service attribute cluster set and combining the service attribute cluster set into the service attribute clustering result.
Optionally, the composite service construction module includes:
the semantic matching unit is used for carrying out word sense disambiguation, semantic association and semantic fusion on the service attributes to obtain a semantic processing result;
the service dependence recommending unit is used for recommending the relevance of the service and constructing a service list with stronger relevance of the current service by combining a service dependence relation model;
and the service combination unit is used for combining services based on the semantic processing result and the service dependency relationship model and generating a combined service related to the business process.
Optionally, the composite service publishing module includes:
a combined service obtaining unit, configured to obtain a combined service instance associated with the business process;
the combined service deployment unit is used for deploying and packaging the combined service instance according to the operation instance of the business process;
and the combined service publishing unit is used for publishing the packaged combined service instance.
Optionally, the method further comprises:
and the service interface providing module is used for providing a service interface corresponding to the combined service for a user in the operation process of the combined service instance so as to realize the visualization of the operation of the combined service instance.
Compared with the prior art, the invention has the advantages that:
the embodiment of the invention classifies, analyzes and stores three different service requirements, namely service function description in a standard format, service function description in a user-defined format and data resource description, which are input by a user, extracts and clusters service attributes, classifies the attributes with strong relevance and dependency into an attribute group, and calculates the dependency between services based on the result, thereby constructing a service dependency relationship model; meanwhile, semantic matching is carried out on the service input and output interface, more accurate business process construction is carried out from the semantic logic and the business logic by combining a service dependency relationship model, the constructed business process is packaged into the micro-service, the micro-service is deployed and issued, and the micro-service management interface is output, so that the display of the micro-service operation state and the management of the operation process are more convenient and clear.
Drawings
Fig. 1 is a flowchart illustrating steps of a micro-service generation method based on semantic matching according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a microservice generation system based on semantic matching according to an embodiment of the present invention.
Detailed Description
Referring to fig. 1, a flowchart illustrating steps of a micro-service generation method based on semantic matching according to an embodiment of the present invention is shown, and as shown in fig. 1, the micro-service generation method based on semantic matching may include the following steps:
step 101: and extracting service information in a service library constructed in advance.
The embodiment of the invention can be applied to the scene of constructing the micro-service corresponding to the business process.
The service library refers to a pre-constructed database for storing micro-service information, and the process of establishing the service library can be described in detail in conjunction with the following specific implementation manner.
In this embodiment, the module provided by the microservice generation system can be described in detail.
In a specific implementation manner of the present invention, before the step 101, the method may further include:
step A1: and establishing an initial service library.
In the embodiment of the invention, the initial service library is a database which is established by business personnel in advance and has only a table structure and does not store data information.
When the service information needs to be saved, an initial service library may be pre-established, and step a2 is further performed.
Step A2: and acquiring the function description file and the data resource description file input by the user.
The system provided by the embodiment of the invention can comprise a service requirement input module, wherein the service requirement input module can be used for receiving the function description file and the data resource description file input by the user.
After acquiring the function description file and the data resource description file input by the user, step a3 is executed.
Step A3: and processing the function description file and the data resource description file to obtain the function service information corresponding to the function description file and the data service information corresponding to the data resource description file.
The system provided by the embodiment of the present invention may further include a service information storage module, and after receiving the function description file and the data resource description file input by the user, the service information storage module may process these pieces of information, specifically, the service information storage module may respectively obtain the function service information of the function description file and the data service information of the data resource description file according to the file types of the function description file and the data resource description file, and further, execute step a 4.
Step A4: and adding the functional service information and the data service information to the initial service library to generate the service library.
After the functional service information and the data service information are acquired, the functional service information and the data service information may be saved to an initial service library to generate a service library.
And the service library contains all functional services and data service description files released in the micro service platform.
After the service library is generated, the service information in the service library may be extracted, and then step 102 is performed.
Step 102: and analyzing the service information to acquire the service attribute corresponding to the service information.
The system provided by the invention can also comprise a service dependency relationship construction support module, wherein the service dependency relationship construction support module comprises a service attribute extraction module and a service association extraction module, and after the service information is obtained, the service attribute extraction module can be adopted to extract the service attribute in the service information.
After the service information is analyzed to obtain the service attribute corresponding to the service information, step 103 is executed.
Step 103: and clustering the service attributes to obtain service attribute clustering results.
Step 104: and calculating the service dependency according to the clustering result, constructing a service dependency relationship model, and recording the relevance information among the services.
After the service attributes are obtained, a service association extraction module can be adopted to cluster the service attribute set by using a clustering algorithm based on a data dictionary, the service attributes with high correlation and strong dependency are divided into an attribute group, the dependency between services is calculated according to the clustering result, and the service dependency relationship model is updated by using the calculation result, so that the service attribute clustering result and the service dependency relationship model are obtained.
After clustering the service attributes to obtain a service attribute clustering result, calculating the service dependency, and updating the service dependency relationship model, step 105 is executed.
Step 105: and matching the attributes of the services based on a semantic matching mode, and generating the combined services associated with the business process by combining the service dependency relationship model.
The system provided by the embodiment of the invention also comprises a semantic matching module, wherein the semantic matching module can respectively perform word meaning disambiguation, semantic association and semantic fusion operations on the service attribute names aiming at two different services, namely functional service and data service (wherein the data service can only be used as input), and the combined service of the business process is obtained through matching.
After generating the composite service associated with the business process, step 105 is performed.
Step 105: and based on the combined service, packaging the combined service instance corresponding to the business process and issuing the combined service instance.
After the combined service is generated, a combined service instance corresponding to the business process can be constructed based on the combined service, and the combined service instance is issued, specifically, the micro-service encapsulation module performs service combination by means of technical support of semantic matching and a service dependency relationship model, namely, construction of the business process, constructs a service with high association degree and matched input and output into a complete business process, and encapsulates, packages and deploys the business process instance; the micro-service publishing module exposes a service interface in the running micro-service instance to a system user, and operations such as visualization of the running state of the micro-service, viewing and management of state data and logs and the like can be realized through the interface.
Next, the clustering process provided by the embodiment of the present invention is described below with reference to specific implementations.
In a specific implementation manner of the present invention, the step 103 may include:
substep B1: calculating Euclidean distance between the service attributes based on a bottom-up hierarchical clustering algorithm;
substep B2: and clustering the service attributes according to the Euclidean distance to generate a service attribute cluster set, and combining the service attribute cluster set into the service attribute cluster result.
In the embodiment of the invention, the service attribute clustering is based on a bottom-up hierarchical clustering algorithm, each attribute is regarded as a different cluster, the distance between the clusters of different categories, namely the similarity, is calculated by using the Euclidean distance, a pair of clusters with the closest distance are combined and combined to form a new cluster, and the step is repeated until all the clusters of the analyzed service attributes are completed, so that an attribute clustering set of a classification result is obtained. The distance between different clusters is determined by the probability and frequency that the attributes in the two clusters appear in the same service interface, appear in the same business process and are simultaneously applied by the same service, and the distance is smaller when the frequency is higher, so that the relevance between the two service attributes is defined.
The following detailed description is presented in conjunction with specific implementations.
In another specific implementation manner of the present invention, the step 104 may include:
substep C1: performing word sense disambiguation, semantic association and semantic fusion on the service attributes to obtain a semantic processing result;
substep C2: performing relevance recommendation on the service, and constructing a service list with strong relevance of the current service by combining a service dependency relationship model;
substep C3: and combining service attributes based on the semantic processing result and the service dependency relationship model to generate combined service associated with the business process.
In bookIn the embodiment of the invention, the service dependency calculation is to calculate the frequency of each attribute in two services appearing in the same cluster, and whether the attribute is a general and basic attribute needs to be considered when calculating the frequency, namely whether the attribute is related in most services; and whether the association of each attribute has uniqueness, namely whether the attribute cluster only contains the attributes of two services or only contains a few other irrelevant attributes, the influence of the two factors can be embodied by the proportion of the service attributes in the attribute cluster, and the two factors are taken as weighting factors to be considered in the calculation of the service dependency, so that the calculation formula for obtaining the weight of the dependency between the services is
Figure BDA0002699458420000091
Wherein WS1And WS2For two services, Dep is the calculated dependency of the two services, i represents each attribute cluster, N is the total cluster number, aiAnd biRespectively the number of respective attributes, cr, of the two services that appear in the same clusteriFor the total number of service attributes, S, in a cluster where two services have the same attribute1And S2Respectively the number of attributes in the two services. Triple (WS) after completion of computation1,WS2Dep) in the form of a service dependency model, wherein WS1And WS2The service identifiers are respectively unique identifiers of two services, dep is a nonnegative integer and represents the associated weight, and 0 represents that no direct association exists between the two services.
The data dictionary contains definitions of all services and service attributes of the microservice platform.
The service dependency relationship model defines the degree of dependency between all services of the microservice platform, and records whether an association exists between two services and the weight of the association in the form of a triple.
The semantic matching unit is used for performing semantic matching of the short text and the short text based on a knowledge graph facing the industrial internet production field, and specifically comprises word sense disambiguation, semantic association and semantic fusion. Two service types, namely data resource service and functional service, need to be classified firstlyWhen the context is matched, the data resource service only provides input attributes, and the functional service provides input and output attributes; carrying out word meaning disambiguation and semantic fusion on different semantic representations of the same service attribute, and then carrying out semantic matching on the service attribute; the semantic matching module can pass through an algorithm
Figure BDA0002699458420000101
Calculating text similarity of two service attributes, wherein WS0For a given service, WS1For the service to be matched with, Similarity is the calculated matching Similarity, sa is the number of attributes matched between two services, S0And S1Respectively represent WS0And WS1The reason that the larger value of the number of the middle attributes and the larger value of the number of the middle attributes is taken is that the given service can be matched with a plurality of services or matched with other services to the same service in consideration of the diversity of the relationship between the services in the business process, such as the parallel relationship, the conditional relationship and the like, so that the algorithm only aims at the matched partial attributes in the two services.
The semantic matching module mainly has the specific functions of providing semantic support for the construction of the business process and realizing the combination of services more accurately when the following conditions occur: in a sequentially executed service scenario, when a service is screened through a service dependency relationship, several services with strong service association, such as a data resource type service (DS), are generated1(a, b) functional services WS with higher business logic relevance1(a, b) and WS2(a, b, c) (a, b, c in parentheses represent the attributes contained in the service respectively), one of the reasons that the relevance of the three services is the same is that the attribute c and the attributes a and b are not in a category when clustered, so that the attribute has no or little influence on the calculation of the similarity and can be ignored; but semantically DS1And WS1Is a matching context service, the service WS2The attribute c is added to make it unable to match the DS1And performing sequential matching, wherein the necessity of semantic matching is embodied. WS in the above example for Complex Business scenarios such as Business logic executed in parallel2(a, b, c) may be WS1(a, b) and WS3(c) Aggregation of two service branches as WS1And WS3The output of (2) is that the matching of one-to-many and many-to-one among services in the parallel scene also needs semantic matching to realize accurate construction of service logic.
The publishing process of the composite service is described in detail below with reference to specific implementations.
In another specific implementation manner of the present invention, the step 105 may include:
substep D1: acquiring the combined service associated with the business process;
substep D2: deploying and packaging the combined service instance according to the operation instance of the business process;
substep D3: and issuing the packaged combined service instance.
In the embodiment of the invention, the micro-service instance deployment unit comprises micro-service mirror image packaging, deployment and starting of the micro-service mirror image in the Docker container, and monitoring of the micro-service operation state.
The micro-service management interface comprises detailed descriptions of all service interfaces contained in the micro-service, including names, call paths, parameter lists, request bodies and response information of various types of service interfaces, and the interface can be communicated with a system platform and can also be issued to a user in a WADL format.
Compared with the prior art, the technical indexes of the embodiment of the invention can be shown in table 1:
Figure BDA0002699458420000111
Figure BDA0002699458420000121
compared with the prior art, the embodiment is based on the matching of each service and service attribute in the service flow, the service flow is digitally constructed from the semantic logic and the service logic, the service flow is packaged and issued according to the granularity of the micro-service, and the generation method of the micro-service with high service cohesion is realized. From the view of system function, the system can respectively analyze and store two service types and three service formats, thereby enriching the diversity of service combination process; the service dependency relationship model is constructed by analyzing and clustering the service attributes, calculating the dependency between services, and assisting the construction of the business process from the level of business cohesion to ensure that the services in the constructed process have high relevance in function and application scene; by carrying out semantic matching based on the knowledge graph in the industrial production field on the service attributes, the construction of the business process can be carried out from the semantic level, the constructed process is ensured to be smooth in the context environment, and the input and output interfaces between the services are mutually matched; the generated business process is encapsulated into a single micro service, so that the running state of the business process can be monitored and managed in more proper granularity; from the aspect of system efficiency, more accurate service combination can be realized through semantic matching of the service dependency relationship model and the service attributes, and the error probability of business process construction is reduced; meanwhile, the business process is managed in the micro-service style, the business cohesion inside the micro-service is higher, the micro-service is more independent and lower in coupling, the management difficulty is lower, each business instance has independent resources, and the instances have better isolation.
The micro-service generation method based on semantic matching provided by the embodiment of the invention extracts service information in a pre-constructed service library, analyzes the service information, obtains service attributes corresponding to the service information, performs clustering processing on the service attributes to obtain a service attribute clustering result, calculates service dependency, constructs a service dependency relationship model, performs matching processing on the service attributes based on a semantic matching mode, constructs a combined service associated with a service flow by combining strength and weakness of the service dependency relationship, encapsulates a combined service instance corresponding to the service flow based on the combined service, and publishes the combined service instance. The embodiment of the invention classifies, analyzes and stores three different service requirements, namely service function description in a standard format, service function description in a user-defined format and data resource description, which are input by a user, extracts and clusters service attributes, classifies the attributes with strong relevance and dependency into an attribute group, and calculates the dependency between services based on the result, thereby constructing a service dependency relationship model; meanwhile, semantic matching is carried out on the service input and output interface, more accurate business process construction is carried out from the semantic logic and the business logic by combining a service dependency relationship model, the constructed business process is packaged into the micro-service, the micro-service is deployed and issued, and the micro-service management interface is output, so that the display of the micro-service operation state and the management of the operation process are more convenient and clear.
Referring to fig. 2, a schematic structural diagram of a micro service generation system based on semantic matching according to an embodiment of the present invention is shown, and as shown in fig. 2, the micro service generation system 200 based on semantic matching may include the following modules:
a service information extraction module 210, configured to extract service information in a service library constructed in advance;
a service attribute extraction module 220, configured to analyze the service information and obtain a service attribute corresponding to the service information;
a service attribute clustering module 230, configured to perform clustering processing on the service attributes to obtain a service attribute clustering result;
a relation model building module 240, configured to calculate a service dependency based on the clustering result, build a service dependency relation model, and record relevance information between services;
the combined service construction module 250 is used for matching the attributes of the services based on a semantic matching mode and generating combined services related to the business process by combining the service dependency relationship model;
and the combined service publishing module 260 is configured to encapsulate the combined service instance corresponding to the business process based on the combined service, and publish the combined service instance.
Optionally, the method further comprises:
the initial service library establishing module is used for establishing an initial service library;
the description file acquisition module is used for acquiring a function description file and a data resource description file input by a user;
the service information extraction module is used for processing the function description file and the data resource description file to obtain function service information corresponding to the function description file and data service information corresponding to the data resource description file;
and the service library generating module is used for adding the functional service information and the data service information to the initial service library to generate the service library.
Optionally, the service attribute clustering module includes:
the Euclidean distance calculating unit is used for calculating the Euclidean distance between the service attributes based on a bottom-up hierarchical clustering algorithm;
and the service attribute clustering unit is used for clustering the service attributes according to the Euclidean distance to generate a service attribute cluster set and combining the service attribute cluster set into the service attribute clustering result.
Optionally, the composite service construction module includes:
the semantic matching unit is used for carrying out word sense disambiguation, semantic association and semantic fusion on the service attributes to obtain a semantic processing result;
the service dependence recommending unit is used for recommending the relevance of the service and constructing a service list with stronger relevance of the current service by combining a service dependence relation model;
and the service combination unit is used for combining services based on the semantic processing result and the service dependency relationship model and generating a combined service related to the business process.
Optionally, the composite service publishing module includes:
a combined service obtaining unit, configured to obtain a combined service instance associated with the business process;
the combined service deployment unit is used for deploying and packaging the combined service instance according to the operation instance of the business process;
and the combined service publishing unit is used for publishing the packaged combined service instance.
Optionally, the method further comprises:
and the service interface providing module is used for providing a service interface corresponding to the combined service for a user in the operation process of the combined service instance so as to realize the visualization of the operation of the combined service instance.
The micro-service generation system based on semantic matching provided by the embodiment of the invention extracts service information in a pre-constructed service library, analyzes the service information, obtains service attributes corresponding to the service information, performs clustering processing on the service attributes to obtain a service attribute clustering result, calculates service dependency, constructs a service dependency relationship model, performs matching processing on the service attributes based on a semantic matching mode, constructs a combined service associated with a service flow by combining strength and weakness of the service dependency relationship, encapsulates a combined service instance corresponding to the service flow based on the combined service, and publishes the combined service instance. The embodiment of the invention classifies, analyzes and stores three different service requirements, namely service function description in a standard format, service function description in a user-defined format and data resource description, which are input by a user, extracts and clusters service attributes, classifies the attributes with strong relevance and dependency into an attribute group, and calculates the dependency between services based on the result, thereby constructing a service dependency relationship model; meanwhile, semantic matching is carried out on the service input and output interface, more accurate business process construction is carried out from the semantic logic and the business logic by combining a service dependency relationship model, the constructed business process is packaged into the micro-service, the micro-service is deployed and issued, and the micro-service management interface is output, so that the display of the micro-service operation state and the management of the operation process are more convenient and clear.
Those skilled in the art will appreciate that those matters not described in detail in the present specification are well known in the art.

Claims (12)

1. A micro-service generation method based on semantic matching is characterized by comprising the following steps:
extracting service information in a service library constructed in advance;
analyzing the service information to obtain a service attribute corresponding to the service information;
clustering the service attributes to obtain service attribute clustering results;
calculating service dependency based on the clustering result, constructing a service dependency relationship model, and recording relevance information among services;
matching the attributes of the services based on a semantic matching mode, and generating a combined service associated with a business process by combining the service dependency relationship model;
and based on the combined service, packaging the combined service instance corresponding to the business process and issuing the combined service instance.
2. The method of claim 1, further comprising, prior to said extracting service information in a pre-built service library:
establishing an initial service library;
acquiring a function description file and a data resource description file input by a user;
processing the function description file and the data resource description file to obtain function service information corresponding to the function description file and data service information corresponding to the data resource description file;
and adding the functional service information and the data service information to the initial service library to generate the service library.
3. The method according to claim 1, wherein the clustering the service attributes to obtain a service attribute clustering result comprises:
calculating Euclidean distance between the service attributes based on a bottom-up hierarchical clustering algorithm;
and clustering the service attributes according to the Euclidean distance to generate a service attribute cluster set, and combining the service attribute cluster set into the service attribute cluster result.
4. The method according to claim 1, wherein the matching the attributes of the service based on the semantic matching and generating the composite service associated with the business process by combining the service dependency relationship model comprises:
performing word sense disambiguation, semantic association and semantic fusion on the service attributes to obtain a semantic processing result;
performing relevance recommendation on the service, and constructing a service list with strong relevance of the current service by combining a service dependency relationship model;
and combining service attributes based on the semantic processing result and the service dependency relationship model to generate combined service associated with the business process.
5. The method according to claim 1, wherein the encapsulating the composite service instance corresponding to the business process and publishing the composite service instance based on the composite service comprises:
acquiring the combined service associated with the business process;
deploying and packaging the combined service instance according to the operation instance of the business process;
and issuing the packaged combined service instance.
6. The method of claim 5, wherein after the encapsulating the composite service instance corresponding to the business process based on the composite service and publishing the composite service instance, further comprising:
and in the running process of the combined service instance, providing a service interface corresponding to the combined service for a user so as to realize the visualization of the running of the combined service instance.
7. A microservice generation system based on semantic matching, comprising:
the service information extraction module is used for extracting service information in a service library constructed in advance;
the service attribute extraction module is used for analyzing the service information and acquiring the service attribute corresponding to the service information;
the service attribute clustering module is used for clustering the service attributes to obtain service attribute clustering results;
the relational model building module is used for calculating service dependency based on the clustering result, building a service dependency relational model and recording the relevance information among the services;
the combined service construction module is used for matching the attributes of the services based on a semantic matching mode and generating combined services related to the business process by combining the service dependency relationship model;
and the combined service publishing module is used for packaging the combined service instance corresponding to the business process based on the combined service and publishing the combined service instance.
8. The system of claim 7, further comprising:
the initial service library establishing module is used for establishing an initial service library;
the description file acquisition module is used for acquiring a function description file and a data resource description file input by a user;
the service information extraction module is used for processing the function description file and the data resource description file to obtain function service information corresponding to the function description file and data service information corresponding to the data resource description file;
and the service library generating module is used for adding the functional service information and the data service information to the initial service library to generate the service library.
9. The system of claim 7, wherein the service attribute clustering module comprises:
the Euclidean distance calculating unit is used for calculating the Euclidean distance between the service attributes based on a bottom-up hierarchical clustering algorithm;
and the service attribute clustering unit is used for clustering the service attributes according to the Euclidean distance to generate a service attribute cluster set and combining the service attribute cluster set into the service attribute clustering result.
10. The system of claim 7, wherein the composite service construction module comprises:
the semantic matching unit is used for carrying out word sense disambiguation, semantic association and semantic fusion on the service attributes to obtain a semantic processing result;
the service dependence recommending unit is used for recommending the relevance of the service and constructing a service list with stronger relevance of the current service by combining a service dependence relation model;
and the service combination unit is used for combining services based on the semantic processing result and the service dependency relationship model and generating a combined service related to the business process.
11. The system of claim 7, wherein the composite service publication module comprises:
a combined service obtaining unit, configured to obtain a combined service instance associated with the business process;
the combined service deployment unit is used for deploying and packaging the combined service instance according to the operation instance of the business process;
and the combined service publishing unit is used for publishing the packaged combined service instance.
12. The system of claim 11, further comprising:
and the service interface providing module is used for providing a service interface corresponding to the combined service for a user in the operation process of the combined service instance so as to realize the visualization of the operation of the combined service instance.
CN202011017226.4A 2020-09-24 2020-09-24 Micro-service generation method and system based on semantic matching Pending CN112286567A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011017226.4A CN112286567A (en) 2020-09-24 2020-09-24 Micro-service generation method and system based on semantic matching

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011017226.4A CN112286567A (en) 2020-09-24 2020-09-24 Micro-service generation method and system based on semantic matching

Publications (1)

Publication Number Publication Date
CN112286567A true CN112286567A (en) 2021-01-29

Family

ID=74421280

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011017226.4A Pending CN112286567A (en) 2020-09-24 2020-09-24 Micro-service generation method and system based on semantic matching

Country Status (1)

Country Link
CN (1) CN112286567A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113222388A (en) * 2021-04-30 2021-08-06 中核武汉核电运行技术股份有限公司 Micro-service evaluation method and device
CN113703757A (en) * 2021-07-20 2021-11-26 北京用友政务软件股份有限公司 Micro-image or micro-service and application assembly method and system thereof
CN113900663A (en) * 2021-12-08 2022-01-07 阿里云计算有限公司 Data processing method and device
CN115543353A (en) * 2022-09-19 2022-12-30 北京三维天地科技股份有限公司 System management solution method and system based on distributed deployment architecture
CN115576534A (en) * 2022-09-30 2023-01-06 北京百度网讯科技有限公司 Arranging method and device of atomic service, electronic equipment and storage medium
CN115878277A (en) * 2022-07-26 2023-03-31 北京中关村科金技术有限公司 Service calling method, device and medium compatible with multi-service system
CN115951883A (en) * 2023-03-15 2023-04-11 日照市德衡信息技术有限公司 Service component management system and method of distributed micro-service architecture
CN116611749A (en) * 2023-02-13 2023-08-18 国家电投集团数字科技有限公司 Intelligent electric power data input method and system based on micro-service architecture
CN117806609A (en) * 2024-02-28 2024-04-02 中国人民公安大学 Generation type low-code development system based on knowledge graph and microservice

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113222388A (en) * 2021-04-30 2021-08-06 中核武汉核电运行技术股份有限公司 Micro-service evaluation method and device
CN113703757A (en) * 2021-07-20 2021-11-26 北京用友政务软件股份有限公司 Micro-image or micro-service and application assembly method and system thereof
CN113703757B (en) * 2021-07-20 2024-02-13 北京用友政务软件股份有限公司 Micro portrait or micro service and application assembly method and system thereof
CN113900663A (en) * 2021-12-08 2022-01-07 阿里云计算有限公司 Data processing method and device
CN115878277A (en) * 2022-07-26 2023-03-31 北京中关村科金技术有限公司 Service calling method, device and medium compatible with multi-service system
CN115543353A (en) * 2022-09-19 2022-12-30 北京三维天地科技股份有限公司 System management solution method and system based on distributed deployment architecture
CN115576534A (en) * 2022-09-30 2023-01-06 北京百度网讯科技有限公司 Arranging method and device of atomic service, electronic equipment and storage medium
CN115576534B (en) * 2022-09-30 2024-02-20 北京百度网讯科技有限公司 Method and device for arranging atomic service, electronic equipment and storage medium
CN116611749A (en) * 2023-02-13 2023-08-18 国家电投集团数字科技有限公司 Intelligent electric power data input method and system based on micro-service architecture
CN116611749B (en) * 2023-02-13 2023-10-20 国家电投集团数字科技有限公司 Intelligent electric power data input method and system based on micro-service architecture
CN115951883A (en) * 2023-03-15 2023-04-11 日照市德衡信息技术有限公司 Service component management system and method of distributed micro-service architecture
CN117806609A (en) * 2024-02-28 2024-04-02 中国人民公安大学 Generation type low-code development system based on knowledge graph and microservice
CN117806609B (en) * 2024-02-28 2024-05-10 中国人民公安大学 Generation type low-code development system based on knowledge graph and microservice

Similar Documents

Publication Publication Date Title
CN112286567A (en) Micro-service generation method and system based on semantic matching
JP7344327B2 (en) System and method for metadata-driven external interface generation of application programming interfaces
CN107577805B (en) Business service system for log big data analysis
US11693624B2 (en) AI capability research and development platform and data processing method
US9832280B2 (en) User profile configuring method and device
CN109213754A (en) A kind of data processing system and data processing method
CN111339071B (en) Method and device for processing multi-source heterogeneous data
US20170109657A1 (en) Machine Learning-Based Model for Identifying Executions of a Business Process
CN109410650B (en) Scene and semantic-based information aggregation method for whole system information management
Han et al. Spark: A big data processing platform based on memory computing
US20170109676A1 (en) Generation of Candidate Sequences Using Links Between Nonconsecutively Performed Steps of a Business Process
US20170109668A1 (en) Model for Linking Between Nonconsecutively Performed Steps in a Business Process
CN103631882A (en) Semantization service generation system and method based on graph mining technique
US20170109636A1 (en) Crowd-Based Model for Identifying Executions of a Business Process
CN103116574B (en) From the method for natural language text excavation applications process body
US20170109639A1 (en) General Model for Linking Between Nonconsecutively Performed Steps in Business Processes
CN112395424A (en) Complex product quality problem tracing method and system
CN114416855A (en) Visualization platform and method based on electric power big data
US20170109638A1 (en) Ensemble-Based Identification of Executions of a Business Process
Giancristofaro et al. Predicting sentiment toward transportation in social media using visual and textual features
CN111124892B (en) Automatic testing method and system based on command line
US20170109640A1 (en) Generation of Candidate Sequences Using Crowd-Based Seeds of Commonly-Performed Steps of a Business Process
CN109669777B (en) Industrial internet big data element demand service providing method and system
CN114756301B (en) Log processing method, device and system
Jabeen et al. Divided we stand out! forging cohorts for numeric outlier detection in large scale knowledge graphs (conod)

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