CN110750702B - Micro-service retrieval method and device, electronic equipment and storage medium - Google Patents

Micro-service retrieval method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110750702B
CN110750702B CN201910857755.6A CN201910857755A CN110750702B CN 110750702 B CN110750702 B CN 110750702B CN 201910857755 A CN201910857755 A CN 201910857755A CN 110750702 B CN110750702 B CN 110750702B
Authority
CN
China
Prior art keywords
micro
service
function description
service function
determining
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.)
Active
Application number
CN201910857755.6A
Other languages
Chinese (zh)
Other versions
CN110750702A (en
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 Institute of Microsystem and Information Technology of CAS
Original Assignee
Shanghai Institute of Microsystem and Information Technology of CAS
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 Institute of Microsystem and Information Technology of CAS filed Critical Shanghai Institute of Microsystem and Information Technology of CAS
Priority to CN201910857755.6A priority Critical patent/CN110750702B/en
Publication of CN110750702A publication Critical patent/CN110750702A/en
Application granted granted Critical
Publication of CN110750702B publication Critical patent/CN110750702B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9532Query formulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9538Presentation of query results

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The micro-service retrieval method disclosed by the embodiment of the application comprises the following steps: receiving a function requirement sent by a client; the method comprises the steps of including an object set of required service in function requirements, determining a feature information set of the object set, wherein the feature information set comprises a category information set to which an object in the object set belongs and a corresponding keyword information set, determining an ontology knowledge slice based on registered micro-services and the category information set, wherein the ontology knowledge slice is a part of service description in the registered micro-services, and determining a micro-service function description set from the ontology knowledge slice according to the keyword information set, wherein the matching value of each micro-service function description in the micro-service function description set and the keyword information set is larger than a preset threshold value, and sending a service search result to a client, wherein the micro-service function description set is carried by the service search result. The method not only can avoid the micro-service retrieval from depending on the traversal search of a knowledge system, but also can meet the low-delay requirement of the micro-service retrieval.

Description

Micro-service retrieval method and device, electronic equipment and storage medium
Technical Field
The invention relates to the field of computer algorithms, in particular to a micro-service retrieval method and device, electronic equipment and a storage medium.
Background
In recent years, with the help of the internet technology and the east wind of the mobile communication technology, the electronic computer technology is rapidly developed, and the integration level and the operation rate of a computer core chip are rapidly improved, so that the electronic computer gradually becomes an essential auxiliary tool for the daily life of the general public.
Language communication is the basis for human society and human civilization, and words are the fundamental elements of language. The words have three basic elements of pronunciation, shape and meaning, wherein the pronunciation and the shape are the external form of the words, and the meaning is the content of the words. In the process of learning and literacy, people conveniently retrieve one or two other elements by using a paper tool, namely a dictionary under the condition that one element in a word is known. Therefore, linguistics is actively introduced into the electronic computer technology, an ontology knowledge system constructed by an expert system, a knowledge system and a knowledge-intensive information system is used as a retrieval tool to replace a dictionary, and the characteristics of rapidness, accuracy, large storage capacity and integration of the computer technology are highlighted.
However, with the popularization of 5G networks, micro services can be better applied to various emerging services, such as internet of things, cloud computing-based services, industrial control, autopilot, mission critical communication, and the like. However, due to the different specifications used by service providers in different fields, it is easy to match the micro-services provided by the service providers with the user's needs, and the availability of the micro-services is reduced. In addition, when the user requirements are complex, the service provider does not know the central knowledge base or has no regulation mechanism, and the situation that the cooperative work cannot be performed occurs.
At present, micro-service retrieval in the prior art mostly depends on traversal search of an ontology knowledge system, and service requests with low time delay requirements are difficult to respond.
Disclosure of Invention
The invention provides a micro-service retrieval method, a micro-service retrieval device, electronic equipment and a storage medium, and aims to solve the problem that the micro-service retrieval method in the prior art is difficult to respond to a service request with a low time delay requirement.
In order to solve the above technical problem, an embodiment of the present application provides a micro service retrieval method, including:
receiving a function requirement sent by a client; the function requirement comprises an object set of required service;
determining a characteristic information set of an object set; the characteristic information set comprises a category information set to which the objects in the object set belong and a corresponding keyword information set;
determining an ontology slice based on the registered microservice and category information set; the ontology slice is a part of service description in the registered microservice;
determining a micro-service function description set from the ontology knowledge slice according to the keyword information set; the matching value of each micro service function description in the micro service function description set and the keyword information set is greater than a preset threshold value;
sending a service searching result to the client; the service search result carries the micro service function description set.
Further, the feature information set also comprises a format information set of the objects in the object set;
determining an ontology slice based on the registered microservice and category information sets, comprising:
determining an ontology knowledge slice based on the registered microservices, the category information set and the format information set;
the multiple ontology slices in the registered microservice correspond to the multiple objects in the object set in a one-to-one mode.
Further, determining a micro-service function description set from the ontology knowledge slice according to the keyword information set, comprising:
determining a micro-service function description subset from ontology knowledge slices corresponding to the keyword information based on each keyword information in the keyword information set;
and determining a micro service function description set according to each micro service function description subset.
Furthermore, the micro service function description set comprises a micro service function description subset corresponding to each object in the object set;
before sending the service search result to the client, the method further includes:
determining the execution sequence of the micro service function description subset corresponding to each object in the object set;
the service search result carries the micro service function description set and the execution sequence.
Further, the keyword information includes:
the object uses the word itself, the object uses a synonym of the word, the object uses an hypernym of the word, the object uses a hyponym of the word, and/or the object uses a root word of the word.
Further, after sending the service search result to the client, the method further includes:
and updating the ontology knowledge slice based on the micro service function description set so that the ontology knowledge slice comprises the micro service function description set.
Correspondingly, the embodiment of the application also provides a micro-service retrieval device, which comprises:
the receiving module is used for receiving the function requirements sent by the client; the functional requirements comprise an object set of required services;
the first determination module is used for determining a characteristic information set of the object set; the characteristic information set comprises a category information set to which the objects in the object set belong and a corresponding keyword information set;
the second determination module is used for determining an ontology knowledge slice based on the registered microservice and category information set; the ontology slice is a part of service description in the registered microservice;
the third determining module is used for determining a micro-service function description set from the ontology knowledge slice according to the keyword information set; the matching value of each micro service function description in the micro service function description set and the keyword information set is greater than a preset threshold value;
the feedback module is used for sending a service searching result to the client; the service search result carries the micro service function description set.
Further, the apparatus further includes an updating module, configured to update the ontology slice based on the micro service function description set, so that the ontology slice includes the micro service function description set.
Correspondingly, an embodiment of the present application further provides an electronic device, which includes a processor and a memory, where at least one instruction, at least one program, a code set, or a set of instructions is stored in the memory, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded by the processor and executed to implement the foregoing micro-service retrieval method.
Accordingly, an embodiment of the present application further provides a computer-readable storage medium, where at least one instruction, at least one program, a code set, or a set of instructions is stored in the storage medium, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by a processor to implement the above micro-service retrieval method.
The embodiment of the application has the following beneficial effects:
the embodiment of the application discloses a micro-service retrieval method, a device, electronic equipment and a storage medium, wherein the method comprises the steps of receiving a function requirement sent by a client; the method comprises the steps of including an object set of required service in function requirements, determining a feature information set of the object set, wherein the feature information set comprises a category information set to which an object in the object set belongs and a corresponding keyword information set, determining an ontology knowledge slice based on registered micro-services and the category information set, wherein the ontology knowledge slice is a part of service description in the registered micro-services, and determining a micro-service function description set from the ontology knowledge slice according to the keyword information set, wherein the matching value of each micro-service function description in the micro-service function description set and the keyword information set is larger than a preset threshold value, and sending a service search result to a client, wherein the micro-service function description set is carried by the service search result. Based on the embodiment of the application, the ontology knowledge slice matched with the object set is determined according to the category information to which the registered micro service and the object set belong, and the micro service function description set of the object is determined according to the ontology knowledge slice and the keyword information set of the object in the object set, so that the micro service retrieval is not only prevented from depending on the traversal search of a knowledge system, but also the low-delay requirement of the micro service retrieval can be met.
Drawings
In order to more clearly illustrate the technical solutions and advantages of the embodiments of the present application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a schematic diagram of an application environment provided by an embodiment of the present application;
fig. 2 is a schematic flowchart of a method for micro-service retrieval according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a microservice retrieving apparatus according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings. It should be apparent that the described embodiment is only one embodiment of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
An "embodiment" as referred to herein relates to a particular feature, structure, or characteristic that may be included in at least one implementation of the present application. In the description of embodiments of the present application, the terms "comprises" and "comprising," along with any variations thereof, are intended to cover a non-exclusive inclusion, such that a method, system, article, or apparatus that comprises a list of steps or modules is not necessarily limited to those steps or modules explicitly listed, but may include other steps or modules not expressly listed or inherent to such method, system, article, or apparatus.
Referring to fig. 1, a schematic diagram of an application environment provided by the embodiment of the present application is shown, including a server 110 and a client 120. The server 110 may be a desktop computer, a notebook computer, a mobile phone, a tablet computer, or the like, which may be loaded with a micro-service retrieval program. The server 110 includes a service registration module, a function arrangement engine module, and a service retrieval module, where the service provider issues a micro service and labels the micro service as a micro service function description by registering in the service registration module, and the service retrieval module arranges an execution sequence of objects in an object set included in a function requirement as a workflow by receiving the function requirement sent by the client 120. And determining a micro-service function description set according to the category information set and the format information set to which the object belongs in the object set and the keyword information set corresponding to the object, and feeding back a service search result to the client. In the embodiment of the present application, the server 110 and the client 120 may be connected through a wired connection or a wireless link.
A specific embodiment of a micro-service retrieval method according to the present application is described below, and fig. 2 is a schematic flow chart of a micro-service retrieval method according to an embodiment of the present application, where the method operation steps shown in the embodiment or the flow chart are provided in this specification, but more or fewer operation steps may be included based on conventional or non-inventive labor. The sequence of steps recited in the embodiments is only one of many execution sequences and does not represent a unique execution sequence, and in actual execution, the steps may be executed sequentially or in parallel according to the methods shown in the embodiments or the figures (e.g., in the context of parallel processors or multi-threaded processing). Specifically, as shown in fig. 2, the method includes:
s201: receiving a function requirement sent by a client; the functional requirements include a set of objects for the desired service.
In the embodiment of the present application, the functional requirements are defined as:
R=<R id ,R in ,R out ,F 1 ,C,φ>
wherein R is id A unique address identification, R, representing the functional requirements in Input data representing a client interface, R out Output data representing the client interface, F 1 The function requirement is represented, different sub-function requirements are provided for different objects, C represents a constraint condition of the function requirement on server software or hardware resources, and phi represents a workflow of the function requirement, that is, an execution sequence of the sub-function requirements corresponding to the objects in the object set included in the function requirement. The execution sequence of the sub-function requirements corresponding to the object is arranged out of order, and the workflow is defined as phi = { R = · f 1 →R · f 2 →R · f 3 Say } f represents an object in the set of objects that need service in the functional demand, R · f i And representing the sub-function requirements corresponding to the objects in the object set of the required service in the function requirements.
S203: determining a characteristic information set of an object set; the characteristic information set comprises a category information set to which the objects in the object set belong and a corresponding keyword information set.
In this embodiment of the present application, the feature information set of the object set further includes a format information set.
In the embodiment of the present application, the input data of the client interface is defined as:
I i =<IC,IS,IT>
wherein, IC represents the category information set of the objects in the object set in the input data, IS represents the keyword information set of the objects in the object set, and IT represents the format information set of the objects in the object set.
The output data of the client interface is defined as:
O i =<OC,OS,OT>
wherein, OC represents the kind information set of the object in the object set in the output data, OS represents the keyword information set of the object in the object set, and OT represents the format information set of the object in the object set.
S205: determining an ontology slice based on the registered microservice and category information set; the ontology slice is part of the service description in the registered microservice.
According to the definition of the feature information set of the object set, in the embodiment of the present application, an optional implementation manner of determining the ontology slice based on the registered microservice and category information set is as follows: and determining an ontology knowledge slice based on the registered microservice, the category information set and the format information set, wherein a plurality of ontology knowledge slices in the registered microservice and a plurality of objects in the object set are in one-to-one correspondence.
S207: determining a micro-service function description set from the ontology knowledge slice according to the keyword information set; and the matching value of each micro service function description in the micro service function description set and the keyword information set is greater than a preset threshold value.
In the embodiment of the present application, a specific implementation manner of determining the micro service function description set from the ontology knowledge slice according to the keyword information set is as follows:
and determining a micro service function description subset from the ontology knowledge slice corresponding to the keyword information based on each keyword information in the keyword information set, and determining the micro service function description set according to each micro service function description subset. The micro service function description set comprises a micro service function description subset corresponding to each object in the object set; the keyword information includes: the object uses the word itself, the object uses synonyms of words, the object uses hypernyms of words, hyponyms of words and/or root words of words.
In the embodiment of the present application, the method for determining keyword information includes: when the object is the function definition description, the keyword information of the object is a predicate verb in the function definition; when an object is an input/output data definition description, keyword information of the object is a subject in the input/output data.
A specific embodiment is introduced based on the above method of determining an ontology slice and determining a micro-service function description set.
It should be noted that, in the embodiment of the present application, the definition of the server interface is:
S=<S idinout ,F 2 ,Q>
wherein S is id Unique address identification, omega, representing registered microservices in Set of objects, Ω, representing the required service in the functional requirements out Set of functional requirements representing processed output, F 2 And expressing an ontology knowledge slice, and Q expressing the quality requirement of function requirement processing, wherein the quality requirement comprises transmission bandwidth, transmission delay, data packet loss rate and the like.
Determining an ontology knowledge slice based on the registered micro-service, the category information set and the format information set, determining an ontology knowledge slice matched with an object set of a required service in the function requirements sent by the client, and determining a micro-service function description set from the ontology knowledge slice according to the keyword information set.
The specific matching method for determining the micro-service function description set from the ontology knowledge slice according to the keyword information set comprises the following steps:
Figure BDA0002198627940000071
wherein the content of the first and second substances,
Figure BDA0002198627940000081
n denotes the number of objects in the set of objects of the required service in the functional requirement, R · f 1 Representing the sub-function requirements corresponding to the objects in the object set of the required service in the function requirements, S representing the micro-service registered in the server, F 2 Representing an ontology knowledge slice, x representing keyword information of an object in an object set of a required service in the functional requirement, y representing keyword information of micro service function description of a micro service function description set in the ontology knowledge slice, semSim (x, y) representing the matching degree of the keyword information of x and the keyword information of y, m representing the number of keyword information corresponding to the object in the functional requirement, R · f 2 The method comprises the steps of representing a keyword information set of a micro service function description set in an ontology slice, wherein CategoryRank represents the domain correlation of x and y, if the keyword information is the same, the domain correlation is strong, and vice versa; d (y, x) represents the semantic distance between the keyword information of the object in the function requirement and the keyword information described by the micro service function in the ontology knowledge slice.
The semantic distance of the keyword information is defined as:
Figure BDA0002198627940000082
wherein, pathlength (y, x) represents the shortest path between the keyword information of the object and the keyword information described by the microservice function in the tree structure of ontology slice, syn i A set of synonyms representing object usage.
In the embodiment of the application, keywords of objects in functional requirements are determinedThe matching value of the information and the keyword information described by the micro service function in the ontology knowledge slice is larger than a preset threshold value theta, namely Match (R) · f i, S)>And theta indicates that the keyword information of the object in the function requirement is matched with the keyword information of the micro-service function description in the ontology knowledge slice.
In an optional embodiment, matching values of sub-function requirements corresponding to the objects in the object set and micro-service function descriptions in the micro-service function description set are calculated one by one, and then preset threshold comparison is performed one by one.
In another optional implementation method, the matching value between the object set and the micro service function description set is calculated, and then a preset threshold comparison is performed.
S209: sending a service searching result to the client; the service search result carries the micro service function description set.
In the embodiment of the present application, before sending the service search result to the client, the method further includes determining an execution order of the micro service function description subsets corresponding to each object in the object set, where the service search result carries the micro service function description set and the execution order.
In the embodiment of the application, after the service search result is sent to the client, the method further includes updating the ontology slice based on the micro service function description set, so that the ontology slice includes the micro service function description set.
In an optional embodiment, after sending the service lookup result to the client, the method further includes updating a hash table based on the micro service function description set, where the hash table is used to store the retrieved object, the micro service function description matching the object, and the micro service corresponding to the function description.
The micro-service retrieval method disclosed by the embodiment of the application comprises the steps of receiving a function requirement sent by a client; the method comprises the steps of including an object set of required service in function requirements, determining a feature information set of the object set, wherein the feature information set comprises a category information set to which an object in the object set belongs and a corresponding keyword information set, determining an ontology knowledge slice based on registered micro-services and the category information set, wherein the ontology knowledge slice is a part of service description in the registered micro-services, and determining a micro-service function description set from the ontology knowledge slice according to the keyword information set, wherein the matching value of each micro-service function description in the micro-service function description set and the keyword information set is larger than a preset threshold value, and sending a service search result to a client, wherein the micro-service function description set is carried by the service search result. Based on the embodiment of the application, the ontology knowledge slice matched with the object set is determined according to the category information to which the registered micro service and the object set belong, and the micro service function description set of the object is determined according to the ontology knowledge slice and the keyword information set of the object in the object set, so that the micro service retrieval is not only prevented from depending on the traversal search of a knowledge system, but also the low-delay requirement of the micro service retrieval can be met.
Two specific embodiments are introduced based on the above-mentioned micro-service retrieval method.
In an alternative embodiment, the function requirement sent by the client is a navigation request. The navigation request contains three large objects of address information, route planning and guidance synchronization. The specification introduces a specific micro-service retrieval method by taking the object of route planning as an example.
The server interface receives the functional requirements sent by the client, wherein,
the objects are:
routeplanning;
the input data is:
I 1 =<act,planning,ASCIItext>
Figure BDA0002198627940000101
Figure BDA0002198627940000102
/>
the server determines that the feature information set of the object input to the server interface includes category information act, keyword information playing and format information ASCIItext, and determines the ontology slice based on WordNet [2] ("vocabulary web: english vocabulary database", 1995, volume 38, no. 1, pages 39-41) based on the category information act of the object. The ontology knowledge slice is:
act{preparating,reading{<planning>{scheduling,programming}}}
determining a micro-service function descriptor set from the ontology slice according to keyword information planning of the object routeplanning, namely
act{<planning>{scheduling,programming}}
And sending the micro service function description of scheduling and/or programming to the client and updating the body knowledge slice, or storing the route planning routeplanning into a hash table, and simultaneously processing according to the object address information or the guide synchronization received by the server interface if the matching values of the keyword information scheduling, the programming and the keyword information planning of the object in the keyword information set of the micro service function description subset are all larger than a preset threshold value theta = 0.8.
In another alternative embodiment, the function requirement sent by the client is a video call request. The video request contains two major objects, feedback camera data and feedback microphone data. The present specification introduces a specific micro-service retrieval method by taking an object of feeding back camera data as an example.
The server interface receives the function requirements sent by the client,
wherein the objects are: feeding back camera data; the execution sequence of the sub-function requirements corresponding to the object, namely the workflow, is:
phi = { data transfer → video encoding → data transfer → video decoding → video rendering }
Taking an input data as an example, when the input data is:
I 1 = data transmission, communication, text };
the server determines that the characteristic information set of the object input into the server interface comprises category information data transmission, keyword information transmission and format information text, and determines an ontology knowledge slice based on the Harvard and big synonym forest expansion edition and the category information data transmission of the object. The ontology knowledge slice is:
data transfer { data transfer, data transfer { < transfer > { transfer, convey } } }
Determining a micro-service function description subset from the ontology knowledge slice according to the keyword information transmission of the object data transmission, namely:
data transmission { < transmission > { transmission, delivery, transmission }
And if the second 'data transmission' in the workflow is processed, the second 'data transmission' can be directly obtained through the updated ontology knowledge slice or directly obtained from the hash table.
Fig. 3 is a schematic structural diagram of a micro-service retrieval device provided in an embodiment of the present application, and as shown in fig. 3, the device includes:
the receiving module 301 is configured to receive a function requirement sent by a client; the function requirement comprises an object set of required service;
a first determining module 303, configured to determine a feature information set of the object set; the characteristic information set comprises a category information set to which the objects in the object set belong and a corresponding keyword information set;
a second determination module 305 for determining an ontology slice based on the registered microservice and category information sets; the ontology slice is a part of service description in the registered microservice;
a third determining module 307, configured to determine a micro service function description set from the ontology knowledge slice according to the keyword information set; the matching value of each micro service function description in the micro service function description set and the keyword information set is greater than a preset threshold value;
a feedback module 309, configured to send a service search result to the client; the service search result carries the micro service function description set.
The device and method embodiments in the embodiments of the present application are based on the same application concept.
The embodiment of the present application further provides an electronic device, which may be disposed in a server to store at least one instruction, at least one program, a code set, or a set of instructions related to implementing a micro-service retrieval method in the method embodiment, where the at least one instruction, the at least one program, the code set, or the set of instructions is loaded from the memory and executed to implement the above micro-service retrieval method.
The present application further provides a storage medium, which can be disposed in a server to store at least one instruction, at least one program, a code set, or an instruction set related to implementing a micro-service retrieval method in the method embodiment, where the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the micro-service retrieval method.
Optionally, in this embodiment, the storage medium may be located in at least one network server of a plurality of network servers of a computer network. Optionally, in this embodiment, the storage medium may include, but is not limited to, a storage medium including: a U-disk, a Read Only Memory (ROM), a removable hard disk, a magnetic disk, or an optical disk, etc. that can store program codes.
As can be seen from the embodiments of the micro-service retrieval method, the micro-service retrieval device, the electronic device, or the storage medium provided by the present application, the method in the present application includes receiving a function requirement sent by a client; the method comprises the steps of including an object set of required service in function requirements, determining a feature information set of the object set, wherein the feature information set comprises a category information set to which an object in the object set belongs and a corresponding keyword information set, determining an ontology knowledge slice based on registered micro-services and the category information set, wherein the ontology knowledge slice is a part of service description in the registered micro-services, and determining a micro-service function description set from the ontology knowledge slice according to the keyword information set, wherein the matching value of each micro-service function description in the micro-service function description set and the keyword information set is larger than a preset threshold value, and sending a service search result to a client, wherein the micro-service function description set is carried by the service search result. Based on the embodiment of the application, the ontology knowledge slice matched with the object set is determined according to the registered type information of the micro-service and the object set, and the micro-service function description set of the object is determined according to the ontology knowledge slice and the keyword information set of the object in the object set, so that the micro-service retrieval is not only prevented from depending on traversal search of a knowledge system, but also the low-delay requirement of the micro-service retrieval can be met.
It should be noted that: the foregoing sequence of the embodiments of the present application is for description only and does not represent the superiority and inferiority of the embodiments, and the specific embodiments are described in the specification, and other embodiments are also within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in the order of execution in different embodiments and achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown or connected to enable the desired results to be achieved, and in some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
All the embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment is described with emphasis on differences from other embodiments. In particular, for the embodiments of the apparatus, since they are based on embodiments similar to the method embodiments, the description is relatively simple, and reference may be made to the partial description of the method embodiments for relevant points.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.

Claims (10)

1. A micro-service retrieval method, comprising:
receiving a function requirement sent by a client; the functional requirements comprise an object set of required services;
determining a set of feature information of the set of objects; the characteristic information set comprises a category information set to which the objects in the object set belong and a corresponding keyword information set;
determining an ontology slice based on the registered microservices and the category information set; the ontology slice is part of a service description in the registered microservice;
determining a micro service function description set from the ontology knowledge slice according to the keyword information set; the matching value of each micro service function description in the micro service function description set and the keyword information set is greater than a preset threshold value;
sending a service searching result to the client; and the service searching result carries the micro service function description set.
2. The method of claim 1, wherein the set of feature information further comprises a set of format information for objects in the set of objects;
the determining an ontology slice based on the registered microservices and the set of category information includes:
determining the ontology slice based on the registered microservice, the set of category information, and the set of format information;
a plurality of ontology slices in the registered microservice and a plurality of objects in the set of objects are in one-to-one correspondence.
3. The method of claim 2, wherein determining a set of microservice function descriptions from the ontology knowledge slice according to the set of keyword information comprises:
determining a micro service function description subset from the ontology knowledge slice corresponding to the keyword information based on each keyword information in the keyword information set;
and determining the micro service function description set according to each micro service function description subset.
4. The method according to claim 1, wherein the micro service function description set includes a sub-set of micro service function descriptions corresponding to each object in the object set;
before sending the service search result to the client, the method further includes:
determining an execution sequence of a micro service function description subset corresponding to each object in the object set;
and the service search result carries the micro service function description set and the execution sequence.
5. The method of claim 1, wherein the keyword information comprises:
the object uses a word itself, the object uses a synonym of a word, the object uses an hypernym of a word, the object uses a hyponym of a word, and/or the object uses a root word of a word.
6. The method of claim 1, wherein after sending the service lookup result to the client, further comprising:
updating the ontology knowledge slice based on the micro service function description set so that the micro service function description set is contained in the ontology knowledge slice.
7. A microservice retrieval device, comprising:
the receiving module is used for receiving the function requirements sent by the client; the functional requirements comprise an object set of required services;
a first determination module, configured to determine a feature information set of the object set; the characteristic information set comprises a category information set to which the objects in the object set belong and a corresponding keyword information set;
a second determination module for determining an ontology slice based on the registered microservice and the category information set; the ontology slice is a subset of the registered microservices;
a third determining module, configured to determine a micro-service function description set from the ontology knowledge slice according to the keyword information set; the matching value of each micro service function description in the micro service function description set and the keyword information set is greater than a preset threshold value;
the feedback module is used for sending a service searching result to the client; and the service searching result carries the micro service function description set.
8. The apparatus of claim 7, further comprising:
and the updating module is used for updating the ontology knowledge slice based on the micro service function description set so that the ontology knowledge slice comprises the micro service function description set.
9. An electronic device comprising a processor and a memory, wherein the memory has stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by the processor to implement the microservice retrieval method of any of claims 1-6.
10. A computer readable storage medium, having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement the micro-service retrieval method as claimed in any one of claims 1 to 6.
CN201910857755.6A 2019-09-11 2019-09-11 Micro-service retrieval method and device, electronic equipment and storage medium Active CN110750702B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910857755.6A CN110750702B (en) 2019-09-11 2019-09-11 Micro-service retrieval method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910857755.6A CN110750702B (en) 2019-09-11 2019-09-11 Micro-service retrieval method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110750702A CN110750702A (en) 2020-02-04
CN110750702B true CN110750702B (en) 2023-03-31

Family

ID=69276338

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910857755.6A Active CN110750702B (en) 2019-09-11 2019-09-11 Micro-service retrieval method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110750702B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118075267A (en) * 2024-04-22 2024-05-24 青岛青软晶尊微电子科技有限公司 Digital back-end service platform construction method based on design circuit

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002073639A (en) * 2000-08-31 2002-03-12 Nri & Ncc Co Ltd Knowledge management system
CN105760399A (en) * 2014-12-19 2016-07-13 华为软件技术有限公司 Data retrieval method and device
US10289538B1 (en) * 2018-07-02 2019-05-14 Capital One Services, Llc Systems and methods for failure detection with orchestration layer

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002073639A (en) * 2000-08-31 2002-03-12 Nri & Ncc Co Ltd Knowledge management system
CN105760399A (en) * 2014-12-19 2016-07-13 华为软件技术有限公司 Data retrieval method and device
US10289538B1 (en) * 2018-07-02 2019-05-14 Capital One Services, Llc Systems and methods for failure detection with orchestration layer

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于本体相似的Web服务搜索;何召卫等;《计算机应用》(第01期);全文 *

Also Published As

Publication number Publication date
CN110750702A (en) 2020-02-04

Similar Documents

Publication Publication Date Title
CN111898643B (en) Semantic matching method and device
US7275049B2 (en) Method for speech-based data retrieval on portable devices
CN106960030B (en) Information pushing method and device based on artificial intelligence
US20170075985A1 (en) Query transformation for natural language queries
CN109086303A (en) The Intelligent dialogue method, apparatus understood, terminal are read based on machine
US10303689B2 (en) Answering natural language table queries through semantic table representation
KR102046486B1 (en) Information inputting method
US8825661B2 (en) Systems and methods for two stream indexing of audio content
US11573990B2 (en) Search-based natural language intent determination
CN109710739B (en) Information processing method and device and storage medium
US20210110111A1 (en) Methods and systems for providing universal portability in machine learning
US9424344B2 (en) Method and apparatus for natural language search for variables
CN114880447A (en) Information retrieval method, device, equipment and storage medium
CN114385780A (en) Program interface information recommendation method and device, electronic equipment and readable medium
US8046361B2 (en) System and method for classifying tags of content using a hyperlinked corpus of classified web pages
CN110750702B (en) Micro-service retrieval method and device, electronic equipment and storage medium
CN110309355B (en) Content tag generation method, device, equipment and storage medium
CN114579883A (en) Address query method, method for obtaining address vector representation model and corresponding device
CN113505196A (en) Part-of-speech-based text retrieval method and device, electronic equipment and storage medium
CN113407815B (en) Method and device for generating scene theme
CN114385781B (en) Interface file recommendation method, device, equipment and medium based on statement model
CN106844783B (en) Information processing method and device
Muroň et al. User-Driven Toponym Disambiguation Using Dialogue
CN116431781A (en) Question answering method and device and electronic equipment
CN111400444A (en) Document selection method and device

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
GR01 Patent grant
GR01 Patent grant