CN108255874A - A kind of method and apparatus for being used to provide opening API search result - Google Patents
A kind of method and apparatus for being used to provide opening API search result Download PDFInfo
- Publication number
- CN108255874A CN108255874A CN201611249740.4A CN201611249740A CN108255874A CN 108255874 A CN108255874 A CN 108255874A CN 201611249740 A CN201611249740 A CN 201611249740A CN 108255874 A CN108255874 A CN 108255874A
- Authority
- CN
- China
- Prior art keywords
- api
- search results
- information
- dimension
- inquiry
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
Abstract
The object of the present invention is to provide a kind of for providing the method and apparatus of opening API search result.Specifically, it according to candidate opening API, acquisition and the corresponding dimension description information of candidate opening API, is recorded with obtaining candidate opening API information;It is recorded according to candidate opening API information, establishs or updates API data library;Obtain the inquiry request about opening API that user submits;Inquiry dimension description information according to corresponding to inquiry request, carries out matching inquiry in API data library, to obtain and inquire the initial API search results that dimension description information matches;According to the matching degree between inquiry dimension description information and the dimension description information of initial API, the result matching degree of the initial API search results is determined, to determine target API search results according to result matching degree;Target API search results are supplied to user.Compared with prior art, the present invention realizes semantic-based opening API search mechanism, quickly can position and retrieve opening API, improves recall precision.
Description
Technical field
Internet technical field of the present invention more particularly to a kind of technology for being used to provide opening API search result.
Background technology
In Internet era, the service of website is packaged into series of computation machine data-interface easy to identify and is opened away,
It is used for third party developer, this behavior is just called Open API, provides the platform of opening API (application programming interface)
Itself is thus referred to as open platform.By open platform, website can not only provide the easy access to Web page, can also be into
The complicated data interaction of row, the development platform with operating system equivalence is converted to by their Web site.Third party developer can
Colourful application is developed to be based on these already existing, disclosed Web sites.
However, in existing user when open platform retrieves API, usual platform matches to provide phase based on " keyword "
Retrieval result is answered, but does not support semantic retrieval, it is also incomplete in the presence of such as API description informations, for example lack the information such as service quality
The defects of shortage more accurately querying condition, such as input parameter, output result etc. and similar opening API are not easy screening,
Reduce user demand satisfaction and recall precision.
Invention content
It is an object of the present invention to provide a kind of for providing the method and apparatus of opening API search result.
According to an aspect of the invention, there is provided a kind of method for providing opening API search result, wherein, it should
Method includes:
According to candidate opening API, acquisition and the corresponding dimension description information of the candidate opening API, to obtain correspondence
Candidate opening API information record;
According to the candidate opening API information record, API data library is establishd or updated;
Wherein, this method further includes:
Obtain the inquiry request about opening API that user submits;
One or more inquiry dimension description informations according to corresponding to the inquiry request, in the API data library
Matching inquiry is carried out, to obtain the initial API search results of one or more to match with the inquiry dimension description information,
In, the initial API search results include corresponding initial API and its dimension description information;
According to the dimension description of the inquiry dimension description information initial API corresponding with the initial API search results
Matching degree between information determines the result matching degree of the initial API search results, with according to the result matching degree from described
Target API search results are determined in one or more initial API search results;
The target API search results are supplied to the user.
According to another aspect of the present invention, a kind of offer equipment for being used to provide opening API search result is be provided,
In, which includes:
For according to candidate opening API, obtain with the corresponding dimension description information of the candidate opening API, to obtain
The device of corresponding candidate's opening API information record;
For according to the candidate opening API information record, establising or updating the device in API data library;
Wherein, which further includes:
For obtaining the device of the inquiry request about opening API of user's submission;
For one or more inquiry dimension description informations according to corresponding to the inquiry request, in the API data
Matching inquiry is carried out in library, is tied with obtaining the initial API search of one or more to match with the inquiry dimension description information
The device of fruit, wherein, the initial API search results include corresponding initial API and its dimension description information;
For the dimension according to the inquiry dimension description information initial API corresponding with the initial API search results
Matching degree between description information determines the result matching degree of the initial API search results, with according to the result matching degree from
The device of target API search results is determined in one or more of initial API search results;
For the target API search results to be supplied to the device of the user.
According to another aspect of the invention, a kind of computing device is additionally provided, including:
One or more processors;
Memory, for storing one or more programs,
When one or more of programs are performed by one or more of processors so that one or more of places
It manages device and performs a kind of such as aforementioned method for providing opening API search result according to one aspect of the invention.
Compared with prior art, one embodiment of the present of invention establishes API numbers by being based on candidate opening API information record
According to library, and according to the user of acquisition submit about opening API inquiry request corresponding to one or more inquiry dimensions descriptions
Information carries out matching inquiry in the API data library, with obtain with match one of inquiry dimension description information or
Multiple initial API search results, it is then, corresponding with the initial API search results according to the inquiry dimension description information
Matching degree between the dimension description information of initial API determines the result matching degree of the initial API search results, with according to institute
It states result matching degree and target API search results is determined from one or more of initial API search results, realize based on language
The opening API search mechanism of justice, allows opening API to have semantic reasoning ability, quickly can position and retrieve opening API, not only
The accuracy of API retrievals is improved, improves recall precision, also improves the opening API retrieval experience of user.Further,
The present invention can also determine the target according to the result matching degree of the initial API search results as the target API search results
The priority of API search results, according to the priority, the target API search results are supplied to the user, into one
Step improves opening API retrieval experience and the user satisfaction of user.
Description of the drawings
By reading the detailed description made to non-limiting example made with reference to the following drawings, of the invention is other
Feature, objects and advantages will become more apparent upon:
Fig. 1 shows to be set for providing the offer equipment of opening API search result according to a kind of of one aspect of the invention
Standby schematic diagram;
Target API search results Fig. 2 shows one embodiment of the invention provide schematic diagram;
Fig. 3 shows the search interface schematic diagram for including nonproductive poll dimension description information of one embodiment of the invention;
Fig. 4 shows a kind of method flow diagram for being used to provide opening API search result according to a further aspect of the present invention;
Fig. 5 shows the block diagram suitable for being used for the exemplary computer system/server for realizing embodiment of the present invention.
The same or similar reference numeral represents the same or similar component in attached drawing.
Specific embodiment
The present invention is described in further detail below in conjunction with the accompanying drawings.
Fig. 1 shows a kind of offer equipment 1 for being used to provide opening API search result according to one aspect of the invention,
In, equipment 1 is provided and includes, according to candidate opening API, obtaining and believing with the candidate corresponding dimension description of opening API
Breath, with obtain corresponding candidate opening API information record device (hereinafter referred to as " candidate record acquisition device 11 "), for root
According to the candidate opening API information record, the device (hereinafter referred to as " data library device 12 ") in API data library is establishd or updated;
For obtaining the device (hereinafter referred to as " acquisition request device 13 ") of the inquiry request about opening API of user's submission;For
One or more inquiry dimension description informations according to corresponding to the inquiry request, are matched in the API data library
Inquiry, it is (following to obtain the device of the initial API search results of one or more to match with the inquiry dimension description information
Referred to as " matching inquiry device 14 "), wherein, the initial API search results include corresponding initial API and its dimension description letter
Breath;For the dimension description letter according to the inquiry dimension description information initial API corresponding with the initial API search results
Matching degree between breath determines the result matching degree of the initial API search results, with according to the result matching degree from described one
Device (hereinafter referred to as " the objective result determining device of target API search results is determined in a or multiple initial API search results
15”);For the target API search results to be supplied to the device of the user (hereinafter referred to as " providing device 16 ").
Specifically, candidate record acquisition device 11 obtains corresponding with the candidate opening API according to candidate opening API
Dimension description information, to obtain corresponding candidate opening API information record;Data library device 12 is according to described candidate open
API information records, and establishs or updates API data library;Acquisition request device 13 obtains the inquiry about opening API that user submits
Request;One or more inquiry dimension description informations of the matching inquiry device 14 according to corresponding to the inquiry request, described
Matching inquiry is carried out in API data library, to obtain the initial API of one or more to match with the inquiry dimension description information
Search result;Objective result determining device 15 is corresponding with the initial API search results according to the inquiry dimension description information
Initial API dimension description information between matching degree, the matching degrees of the initial API search results is determined, with according to
Matching degree determines target API search results from one or more of initial API search results;Device 16 is provided by the mesh
Mark API search results are supplied to the user.
Here, provide equipment 1 refer to summarize various opening APIs simultaneously can the inquiry based on user by corresponding opening API
The platform of user is supplied to, here, opening API refers to software systems by disclosing its application programming interface (API) or letter
(function) is counted external program to be allow to increase the function of the software systems or uses the resource of the software systems, without
Need to change the source code of the software systems.Preferably, opening API can also refer to technical opening, such as Baidu, rise
News, Alibaba etc..In a particular embodiment, equipment 1 is provided and includes but not limited to the network equipment, user equipment or the network equipment
Formed equipment is integrated by network with user equipment.Here, the network equipment include but not limited to as network host,
The realizations such as single network server, multiple network server collection or the set of computers based on cloud computing;Or by user equipment
It realizes.Here, cloud is made of a large amount of hosts or network server for being based on cloud computing (Cloud Computing), wherein, cloud meter
It is one kind of Distributed Calculation, a super virtual computer being made of the computer collection of a group loose couplings.Here, institute
State user equipment can be any one can with user by modes such as keyboard, touch tablet, touch screen or handwriting equipments into pedestrian
The electronic product of machine interaction, such as PC, mobile phone, smart mobile phone, PDA, wearable device, palm PC PPC or tablet computer etc..
The network includes but not limited to internet, wide area network, Metropolitan Area Network (MAN), LAN, VPN network, wireless self-organization network (Ad Hoc
Network) etc..Those skilled in the art will be understood that above-mentioned offer equipment 1 is only for example, other are existing or are likely to occur from now on
The network equipment or user equipment be such as applicable to the present invention, should also be included within the scope of the present invention, and herein to draw
It is incorporated herein with mode.Here, the network equipment and user equipment include it is a kind of can according to the instruction for being previously set or storing,
The automatic electronic equipment for carrying out numerical computations and information processing, hardware include but not limited to microprocessor, application-specific integrated circuit
(ASIC), programmable gate array (FPGA), digital processing unit (DSP), embedded device etc..
Specifically, candidate record acquisition device 11 determines candidate opening API first, such as using known opening API as time
Select opening API;Then, according to candidate opening API, by such as being carried out at semantic tagger to the attribute of the candidate opening API
The mode of reason, come obtain with the candidate corresponding dimension description information of opening API, it is corresponding candidate open so as to obtain
API information records.
Here, the dimension description information refers to from different perspectives include but not limited to following the description of API attribute
Any one of at least:1) field belonging to API, such as manufacturing industry, logistics, education;2) the affiliated functional categories of API refer to API institutes
Specific service type in its field realized, such as manufacture field, order management belongs to a service in manufacturing industry
Classification can be subdivided into the specific services such as generation order, order tracking below;3) input parameter of API;4) API's is defeated
Go out parameter;5) service quality of API in a particular embodiment, the service quality of API can be weighed with different indexs, is such as passed through
Time (represent service response time, refer to the time interval from service request to service response), Cost (represent service into
This, refers to the payable expense of service user institute), Reliability (represents reliability of service, refers to service normal fortune
Capable probability, value is between 0~1) etc. indexs weigh;6) other information of API, including but not limited to such as the publication of API
Square information, called situation information etc..Those skilled in the art will be understood that above-mentioned dimension description information is only for example, other are existing
Dimension description information that is having or being likely to occur from now on is such as applicable to the present invention, should also be included in the scope of the present invention with
It is interior, and be incorporated herein by reference herein.
For example, for known opening API 1, API2, API3 etc., from four latitude (inputs in field, API belonging to API
Parameter, the output parameter of API, API service quality) carry out semantic tagger after, obtain the dimension description information of each API, and
Every API and its corresponding dimension description information are recorded as a candidate opening API information, then candidate record acquisition device
11 obtain candidate opening API information record as shown in the following Table 1:
Candidate API | Dimension description information |
API1’ | Field 1 ', input parameter 1 ', output parameter 1 ', service quality scoring 1 ' |
API2’ | Field 2 ', input parameter 2 ', output parameter 2 ', service quality scoring 2 ' |
API3’ | Field 3 ', input parameter 3 ', output parameter 3 ', service quality scoring 3 ' |
… | … |
Table 1
Those skilled in the art will be understood that the mode of above-mentioned acquisition candidate opening API information record is only for example, other
The mode of the candidate opening API information record of acquisition that is existing or being likely to occur from now on is such as applicable to the present invention, should also include
Within the scope of the present invention, and it is incorporated herein by reference herein.
Then, data library device 12 establishs or updates API data library, such as will according to the candidate opening API information record
The candidate opening API information record that candidate record acquisition device 11 obtains stores one by one, forms API data library, and timely update
(such as being updated by period mode) is recorded with adding in new candidate opening API information.
The application programming interfaces that acquisition request device 13 is provided by open platform itself obtain user in the open platform
The inquiry request about opening API submitted alternatively, by the dynamic pages technology such as ASP, JSP, obtains user in opening
The inquiry request about opening API submitted in platform search column.
For example, it is assumed that user A is intended to search for navigation APP in certain open platform, inputted in the search column of the open platform
" navigation ", then acquisition request device 13 pass of user A submissions can be got by the dynamic pages technology such as ASP, JSP
In the inquiry request of opening API.
One or more inquiry dimension description informations of the matching inquiry device 14 according to corresponding to the inquiry request, in institute
It states and matching inquiry is carried out in API data library, it is initial to obtain the one or more to match with the inquiry dimension description information
API search results.
Here, the inquiry dimension description information refers to the attribute of the API to intending inquiry that the inquiry request is reflected
Description, including dimension and the dimension included by aforementioned dimension description information it is identical or approximate, here, for during simplicity,
It is not repeating, and is being incorporated herein by reference.It in a particular embodiment, can be according to the query specification included by inquiry request
Information, to determine the description information of inquiry dimension and respective dimensions corresponding to the inquiry request, to obtain respective queries dimension
For example, it is assumed that user inputs keyword " hawkeye track ", a service type under map field is belonged to because of it for description information,
It can determine that changing the corresponding inquiry dimension of inquiry request is:1) map field;2) hawkeye track service type, inquires dimension accordingly
Description information is:" map-hawkeye track ".
For example, connecting example, for the keyword " navigation " of user A inputs, a service under map field is belonged to because of it
Classification, it may be determined that changing the corresponding inquiry dimension of inquiry request is:1) map field;2) navigation Service classification, corresponding inquiry dimension
It is " map-navigation " to spend description information, then matching inquiry device 14 can be according to the inquiry dimension description information, in data library device
Matching inquiry is carried out in the 12 API data libraries establishd or updated, to obtain with inquiring dimension description information " map-navigation " phase
The initial API search results of one or more matched, such as obtain initial API search results as shown in table 2 below:
Table 2
Objective result determining device 15 is corresponding with the initial API search results according to the inquiry dimension description information
Matching degree between the dimension description information of initial API determines the result matching degree of the initial API search results, with according to institute
It states result matching degree and target API search results is determined from one or more of initial API search results.
Specifically, objective result determining device 15 is searched first according to the inquiry dimension description information with the initial API
Matching degree between the dimension description information of the corresponding initial API of hitch fruit determines the result matching of the initial API search results
Degree.Here, objective result determining device 15 determines that the mode of the result matching degree includes but not limited to following at least any one:
1) according to the inquiry dimension description information with belonging to same dimension in the dimension description information of the initial API
Sub- matching degree between description information determines the result matching degree, such as sums to obtain the knot by the sub- matching degree of each dimension
Fruit matching degree.
Specifically, Matching Model S=is initially set up<Sd,Sc,Sn,Is,Os,QoS>, wherein:SdRepresent API fields,
ScRepresent the functional category belonging to API, SnRepresent the name of API, Is,OsRepresent input, the output parameter set of API, QoS tables
Show the service quality of API.
Then, the matching process of following dimension is gradually performed:
(1) to the API fields S in Matching Model SdIt is matched, the API mistakes being not belonging in user's request field
It filters;
(2) to the affiliated functional category S in ScIt is matched, further filtering does not meet the API of user's request;
(3) to the API names S in SnIt is matched;
(4) to the input/output argument set I in Ss,OsIt is matched;
(5) service quality QoS in S is evaluated;
(6) matching result of above five steps is combined, calculates the result matching of each initial API search result
Degree.
The computational methods of the matching step of each dimension described further below:
Step 1:To API fields SdMatching
If the S of the API of user's requestRWith the S of announced APIAIt is to belong to same field (quoting identical concept), then
Just it is considered that SRWith SASuccessful match is only in fields, matching degree calculation formula is such as shown in (1):
Step 2:To the functional category S belonging to APIcMatching.The functional category matching degree is calculated as shown in formula (2).
Wherein, a is a parameter that can be adjusted (in a particular embodiment, the numerical value of a can be scheduled), and d is one
A integer, their value define in the following several ways:
If SR.Sc≡SA.Sc, then d=0, i.e. CMD (S are enabledR.Sc,SA.Sc)=1;
If in the body,OrD=1 is then enabled, i.e.,
If SR.Sc≠SA.Sc, then
CMD(SR.Sc,SA.Sc)=0.
Step 3:API names SnMatching
The functional category belonging to matching and API to API names is using same formula, the same above formula of computational methods
(2)
Step 4:The input of API, output parameter Is,OsMatching
In the matching algorithm, the matching degree of input or output parameter is decided by the class belonging to them, and computational methods are as follows
Formula (3):
IOMD(SR.IsOs,SA.IsOs)=α × IMD+ β × OMD (3)
In formula (3), α, β are customized parameter, and range belongs to [0~1], in a particular embodiment, the numerical value of α, β
Can be scheduled.Wherein, matching degrees of the IMD between input parameter, computational methods use above formula (2).OMD is defeated
Go out the matching degree between parameter, computational methods use above formula (2).
Step 5:The service quality QoS matching of API
The matching degree computational methods of the dimension use above formula (2).
Step 6:According to the matching degree of above each dimension, e.g., the matching degree of above each dimension is summed, is used
Matching degree between the API and announced API of family request.
For example, connecting example, then objective result determining device 15 can obtain inquiry dimension description information " according to above method
Figure-navigation " and the matching degree between the dimension description information of the API1 shown in upper table 2 to API5 are respectively:3、2、a/(a+
1), 1,1, it is assumed that a=1 then inquires dimension description information " map-navigation " and with the dimension of the API1 shown in upper table 2 to API5
Matching degree between description information is respectively:3、2、0.5、1、1.
2) according to the inquiry dimension description information with belonging to same dimension in the dimension description information of the initial API
The weight information of sub- matching degree and the dimension between description information weights and determines the result matching degree.
Preferably, the weight information is determined based on following at least any one:
The weight information is scheduled;
The weight information of the dimension is determined to the preference information of respective dimensions according to the user.
For example, after the sub- matching degree of each dimension is obtained according to above step one to step 5, objective result determining device 15
By the sub- matching degree and the weight information of the dimension between the description information for belonging to same dimension, weighting determines the result matching
Degree, as shown in the following formula (4):
MD(SR,SA)=β1·DMD+β2·CMD+β3·IOMD+β4·QoSMD+β5·NMD (4)
Wherein, β1+β2+β3+β4+β5=1, β1、β2、β3、β4、β5∈ [0,1].
Those skilled in the art will be understood that the above-mentioned mode for determining the result matching degree is only for example, other are existing
Or the mode for determining the result matching degree being likely to occur from now on is such as applicable to the present invention, should also be included in protection of the present invention
Within range, and it is incorporated herein by reference herein.
Those skilled in the art will be understood that it is above-mentioned determine the weight information mode be only for example, other it is existing or
The mode for determining the weight information being likely to occur from now on is such as applicable to the present invention, should also be included in the scope of the present invention
Within, and be incorporated herein by reference herein.
Then, objective result determining device 15 is searched for according to the result matching degree from one or more of initial API
As a result target API search results are determined in.For example, for the initial API search results API1 to API5 shown in upper table 2, because
Its result matching degree is respectively 3,2,0.5,1,1, then objective result determining device 15 can will meet predetermined matching degree threshold value such as 2
Initial API search results obtain target API search results as API1, API2 as target API search results.
Then, communication mode of the device 16 by agreements such as http, https is provided, the target API search results are carried
The user is supplied, for example, connect example, provides device 16 according to schematic diagram as shown in Figure 2 by target API search results
API1, API2 are supplied to user A, so that user A is browsed.
Preferably, it provides and constantly works between each device of equipment 1.Specifically, candidate record obtains dress
11 are put to continue according to candidate opening API, acquisition and the corresponding dimension description information of the candidate opening API, to obtain correspondence
Candidate opening API information record;Data library device 12 continues, according to the candidate opening API information record, to establish or update
API data library;Acquisition request device 13 persistently obtains the inquiry request about opening API of user's submission;Matching inquiry device
14 continue one or more inquiry dimension description informations according to corresponding to the inquiry request, in the API data library into
Row matching inquiry, to obtain the initial API search results of one or more to match with the inquiry dimension description information;Target
As a result determining device 15 continues according to the inquiry dimension description information initial API corresponding with the initial API search results
Dimension description information between matching degree, the result matching degrees of the initial API search results is determined, with according to the result
Target API search results are determined from one or more of initial API search results with degree;Device 16 is provided to continue by described in
Target API search results are supplied to the user.It is set here, those skilled in the art will be understood that " lasting " refers to provide
It constantly carries out obtaining candidate opening API information record respectively between standby 1 each step, establishs or updates API data library, obtains
User about opening API inquiry request, obtain initial API search results, determine target API search results and provide, directly
Stop obtaining the inquiry request about opening API of user in a long time to offer equipment 1.
Preferably, equipment 1 is provided to further include to search for knot according to the initial API as the target API search results
The result matching degree of fruit determines that (hereinafter referred to as " priority determining device ", does not show for the priority of target API search results
Go out), wherein, device 16 is provided according to the priority, and the target API search results are supplied to the user.
For example, for target API search result API1 and API2 that objective result determining device 15 determines, because of its result
It is respectively 3,2 with degree, as a result matching degree is higher, and corresponding priority is higher, then priority determining device can determine that target API is searched for
As a result the priority of API1 and API2 is respectively 1,2, i.e., the priority of target API search results API1 is preferential more than API2
Grade correspondingly, provides device 16 prioritized API1 and API2, i.e. sequence of API1 in result provides page and exists
Before API2.
Preferably, the inquiry request about opening API that the user that acquisition request device 13 obtains submits includes corresponding
Query specification information;Wherein, equipment 1 is provided to further include, according to the query specification information, to determine the inquiry request institute
The description information of corresponding inquiry dimension and respective dimensions, to obtain the device of one or more of inquiry dimension description informations
(hereinafter referred to as " description determining device ", be not shown).
Here, description determining device determines that the mode of the inquiry dimension description information and aforementioned matching inquiry device 14 are true
The mode of the fixed inquiry dimension description information is identical or approximate, for simplicity, therefore is not repeating herein, and with the side of reference
Formula is incorporated herein.
It is highly preferred that the inquiry request further includes nonproductive poll dimension description information;Wherein, description determining device according to
The query specification information, and with reference to the nonproductive poll dimension description information, determine the inquiry corresponding to the inquiry request
The description information of dimension and respective dimensions, to obtain one or more of inquiry dimension description informations.
For example, for user A, it is assumed that it is intended to search for navigation APP in certain open platform, in the search column of the open platform
Middle input " navigation ", the also dimension in search interface as shown in Figure 3 describe to have input the description letter of respective dimensions in combobox
Breath, that is, have input nonproductive poll dimension description information, and the service quality scoring of API is inputted such as in API service quality combobox
0.8, then acquisition request device 13 is by the dynamic pages technology such as ASP, JSP, can get user A submissions about opening
Put the inquiry request of API.
Here, the search interface of the present invention contributes to from latitudes such as API introductions, input parameter, output parameter, API mass
User's quick-searching meets its demand, further improves recall precision and experienced with retrieval to required API;It is meanwhile more rich
API information, be also convenient for more comprehensively understanding of the user to opening API,.
Then, query specification information of the description determining device according to included by inquiry request, and with reference to the nonproductive poll
Dimension description information determines the description information of the inquiry dimension and respective dimensions corresponding to the inquiry request, with described in acquisition
One or more inquiry dimension description information.
For example, connecting example, the keyword " navigation " and submission for user A inputs want API service quality score
0.8 is asked, a service type under map field is belonged to because of keyword " navigation ", and nonproductive poll dimension description information is " API
Service quality scoring is 0.8 ", it may be determined that the corresponding inquiry dimension of the inquiry request is:1) map field;2) navigation Service class
Not;3) API service quality, corresponding dimension description information of inquiring is " map-navigation-API service quality score 0.8 ".
Here, it will be appreciated by those skilled in the art that in a particular embodiment, determining device and matching inquiry device are described
14 can be independent module or integrated module.
Fig. 4 shows a kind of method flow diagram for being used to provide opening API search result according to a further aspect of the present invention.
Wherein, the method comprising the steps of S1, step S2, step S3, step S4, step S5 and step S6.
Specifically, in step sl, equipment 1 is provided according to candidate opening API, is obtained opposite with the candidate opening API
The dimension description information answered, to obtain corresponding candidate opening API information record;In step s 2, equipment 1 is provided according to described
Candidate opening API information record, establishs or updates API data library;In step s3, equipment 1 is provided and obtains the pass that user submits
In the inquiry request of opening API;In step s 4, one or more of the equipment 1 according to corresponding to the inquiry request is provided to look into
Dimension description information is ask, matching inquiry is carried out in the API data library, to obtain and the inquiry dimension description information phase
The initial API search results of one or more matched;In step s 5, provide equipment 1 according to it is described inquiry dimension description information with
Matching degree between the dimension description information of the corresponding initial API of the initial API search results determines initial API search
As a result matching degree, to determine target API search from one or more of initial API search results according to the matching degree
As a result;In step s 6, equipment 1 is provided, the target API search results is supplied to the user.
Here, provide equipment 1 refer to summarize various opening APIs simultaneously can the inquiry based on user by corresponding opening API
The platform of user is supplied to, here, opening API refers to software systems by disclosing its application programming interface (API) or letter
(function) is counted external program to be allow to increase the function of the software systems or uses the resource of the software systems, without
Need to change the source code of the software systems.Preferably, opening API can also refer to technical opening, such as Baidu, rise
News, Alibaba etc..In a particular embodiment, equipment 1 is provided and includes but not limited to the network equipment, user equipment or the network equipment
Formed equipment is integrated by network with user equipment.Here, the network equipment include but not limited to as network host,
The realizations such as single network server, multiple network server collection or the set of computers based on cloud computing;Or by user equipment
It realizes.Here, cloud is made of a large amount of hosts or network server for being based on cloud computing (Cloud Computing), wherein, cloud meter
It is one kind of Distributed Calculation, a super virtual computer being made of the computer collection of a group loose couplings.Here, institute
State user equipment can be any one can with user by modes such as keyboard, touch tablet, touch screen or handwriting equipments into pedestrian
The electronic product of machine interaction, such as PC, mobile phone, smart mobile phone, PDA, wearable device, palm PC PPC or tablet computer etc..
The network includes but not limited to internet, wide area network, Metropolitan Area Network (MAN), LAN, VPN network, wireless self-organization network (Ad Hoc
Network) etc..Those skilled in the art will be understood that above-mentioned offer equipment 1 is only for example, other are existing or are likely to occur from now on
The network equipment or user equipment be such as applicable to the present invention, should also be included within the scope of the present invention, and herein to draw
It is incorporated herein with mode.Here, the network equipment and user equipment include it is a kind of can according to the instruction for being previously set or storing,
The automatic electronic equipment for carrying out numerical computations and information processing, hardware include but not limited to microprocessor, application-specific integrated circuit
(ASIC), programmable gate array (FPGA), digital processing unit (DSP), embedded device etc..
Specifically, in step sl, equipment 1 is provided and determines candidate opening API first, such as using known opening API as
Candidate opening API;Then, according to candidate opening API, by such as carrying out semantic tagger to the attribute of the candidate opening API
The mode of processing, come obtain with the candidate corresponding dimension description information of opening API, it is corresponding candidate open so as to obtain
API information records.
Here, the dimension description information refers to from different perspectives include but not limited to following the description of API attribute
Any one of at least:1) field belonging to API, such as manufacturing industry, logistics, education;2) the affiliated functional categories of API refer to API institutes
Specific service type in its field realized, such as manufacture field, order management belongs to a service in manufacturing industry
Classification can be subdivided into the specific services such as generation order, order tracking below;3) input parameter of API;4) API's is defeated
Go out parameter;5) service quality of API in a particular embodiment, the service quality of API can be weighed with different indexs, is such as passed through
Time (represent service response time, refer to the time interval from service request to service response), Cost (represent service into
This, refers to the payable expense of service user institute), Reliability (represents reliability of service, refers to service normal fortune
Capable probability, value is between 0~1) etc. indexs weigh;6) other information of API, including but not limited to such as the publication of API
Square information, called situation information etc..Those skilled in the art will be understood that above-mentioned dimension description information is only for example, other are existing
Dimension description information that is having or being likely to occur from now on is such as applicable to the present invention, should also be included in the scope of the present invention with
It is interior, and be incorporated herein by reference herein.
For example, for known opening API 1, API2, API3 etc., from four latitude (inputs in field, API belonging to API
Parameter, the output parameter of API, API service quality) carry out semantic tagger after, obtain the dimension description information of each API, and
Using every API and its corresponding dimension description information as a candidate opening API information record, then in step sl, provide
Equipment 1 obtains candidate opening API information record as shown in the following Table 3:
Candidate API | Dimension description information |
API1’ | Field 1 ', input parameter 1 ', output parameter 1 ', service quality scoring 1 ' |
API2’ | Field 2 ', input parameter 2 ', output parameter 2 ', service quality scoring 2 ' |
API3’ | Field 3 ', input parameter 3 ', output parameter 3 ', service quality scoring 3 ' |
… | … |
Table 3
Those skilled in the art will be understood that the mode of above-mentioned acquisition candidate opening API information record is only for example, other
The mode of the candidate opening API information record of acquisition that is existing or being likely to occur from now on is such as applicable to the present invention, should also include
Within the scope of the present invention, and it is incorporated herein by reference herein.
Then, in step s 2, equipment 1 is provided according to the candidate opening API information record, establishs or updates API numbers
According to library, the candidate opening API information record for such as obtaining it in step sl stores one by one, forms API data library, and in time more
It newly (such as updates by period mode), is recorded with adding in new candidate opening API information.
In step s3, the application programming interfaces that equipment 1 is provided by open platform itself are provided, user is obtained and is opened at this
The inquiry request about opening API of platform submission is laid flat, alternatively, by the dynamic pages technology such as ASP, JSP, obtains user
The inquiry request about opening API submitted in open platform search column.
For example, it is assumed that user A is intended to search for navigation APP in certain open platform, inputted in the search column of the open platform
" navigation " then in step s3, provides equipment 1 by the dynamic pages technology such as ASP, JSP, can get user A and carry
The inquiry request about opening API handed over.
In step s 4, one or more inquiry dimension description letters of the equipment 1 according to corresponding to the inquiry request are provided
Breath, matching inquiry is carried out in the API data library, to obtain one or more matched with the inquiry dimension description information
A initial API search results.
Here, the inquiry dimension description information refers to the attribute of the API to intending inquiry that the inquiry request is reflected
Description, including dimension and the dimension included by aforementioned dimension description information it is identical or approximate, here, for during simplicity,
It is not repeating, and is being incorporated herein by reference.It in a particular embodiment, can be according to the query specification included by inquiry request
Information, to determine the description information of inquiry dimension and respective dimensions corresponding to the inquiry request, to obtain respective queries dimension
For example, it is assumed that user inputs keyword " hawkeye track ", a service type under map field is belonged to because of it for description information,
It can determine that changing the corresponding inquiry dimension of inquiry request is:1) map field;2) hawkeye track service type, inquires dimension accordingly
Description information is:" map-hawkeye track ".
For example, connecting example, for the keyword " navigation " of user A inputs, a service under map field is belonged to because of it
Classification, it may be determined that changing the corresponding inquiry dimension of inquiry request is:1) map field;2) navigation Service classification, corresponding inquiry dimension
It is " map-navigation " to spend description information, then in step s 4, providing equipment 1 can be according to the inquiry dimension description information, in step
In rapid S2, provide in the API data library that equipment 1 establishs or updates and carry out matching inquiry, to obtain and inquire dimension description information
The initial API search results of one or more that " map-navigation " matches such as obtain initial API search knots as shown in table 4 below
Fruit:
Table 4
In step s 5, it is corresponding with the initial API search results according to the inquiry dimension description information to provide equipment 1
Initial API dimension description information between matching degree, the result matching degrees of the initial API search results is determined, with basis
The result matching degree determines target API search results from one or more of initial API search results.
Specifically, in step s 5, equipment 1 is provided first according to the inquiry dimension description information and the initial API
Matching degree between the dimension description information of the corresponding initial API of search result determines the result of the initial API search results
With degree.Here, in step s 5, the mode that equipment 1 determines the result matching degree is provided and includes but not limited at least appoint below
One:
1) according to the inquiry dimension description information with belonging to same dimension in the dimension description information of the initial API
Sub- matching degree between description information determines the result matching degree, such as sums to obtain the knot by the sub- matching degree of each dimension
Fruit matching degree.
Specifically, Matching Model S=is initially set up<Sd,Sc,Sn,Is,Os,QoS>, wherein:SdRepresent API fields,
ScRepresent the functional category belonging to API, SnRepresent the name of API, Is,OsRepresent input, the output parameter set of API, QoS tables
Show the service quality of API.
Then, the matching process of following dimension is gradually performed:
(1) to the API fields S in Matching Model SdIt is matched, the API mistakes being not belonging in user's request field
It filters;
(2) to the affiliated functional category S in ScIt is matched, further filtering does not meet the API of user's request;
(3) to the API names S in SnIt is matched;
(4) to the input/output argument set I in Ss,OsIt is matched;
(5) service quality QoS in S is evaluated;
(6) matching result of above five steps is combined, calculates the result matching of each initial API search result
Degree.
The computational methods of the matching step of each dimension described further below:
Step 1:To API fields SdMatching
If the S of the API of user's requestRWith the S of announced APIAIt is to belong to same field (quoting identical concept), then
Just it is considered that SRWith SASuccessful match is only in fields, matching degree calculation formula is such as shown in (5):
Step 2:To the functional category S belonging to APIcMatching.The functional category matching degree is calculated as shown in formula (6).
Wherein, a is a parameter that can be adjusted (in a particular embodiment, the numerical value of a can be scheduled), and d is one
A integer, their value define in the following several ways:
If SR.Sc≡SA.Sc, then d=0, i.e. CMD (S are enabledR.Sc,SA.Sc)=1;
If in the body,OrD=1 is then enabled, i.e.,
If SR.Sc≠SA.Sc, then
CMD(SR.Sc,SA.Sc)=0.
Step 3:API names SnMatching
The functional category belonging to matching and API to API names is using same formula, the same above formula of computational methods
(6)
Step 4:The input of API, output parameter Is,OsMatching
In the matching algorithm, the matching degree of input or output parameter is decided by the class belonging to them, and computational methods are as follows
Formula (7):
IOMD(SR.IsOs,SA.IsOs)=α × IMD+ β × OMD (7)
In formula (7), α, β are customized parameter, and range belongs to [0~1], in a particular embodiment, the numerical value of α, β
Can be scheduled.Wherein, matching degrees of the IMD between input parameter, computational methods use above formula (6).OMD is defeated
Go out the matching degree between parameter, computational methods use above formula (6).
Step 5:The service quality QoS matching of API
The matching degree computational methods of the dimension use above formula (6).
Step 6:According to the matching degree of above each dimension, e.g., the matching degree of above each dimension is summed, is used
Matching degree between the API and announced API of family request.
For example, connecting example, then in step s 5, inquiry dimension description information can be obtained according to above method by providing equipment 1
" map-navigation " and the matching degree between the dimension description information of the API1 shown in upper table 4 to API5 are respectively:3、2、a/(a
+ 1), 1,1, it is assumed that a=1 then inquires dimension description information " map-navigation " and with the dimension of the API1 shown in upper table 4 to API5
Matching degree between description information is respectively:3、2、0.5、1、1.
2) according to the inquiry dimension description information with belonging to same dimension in the dimension description information of the initial API
The weight information of sub- matching degree and the dimension between description information weights and determines the result matching degree.
Preferably, the weight information is determined based on following at least any one:
The weight information is scheduled;
The weight information of the dimension is determined to the preference information of respective dimensions according to the user.
For example, after obtaining the sub- matching degree of each dimension according to above step one to step 5, in step s 5, equipment is provided
Sub- matching degree and the weight information of the dimension between the description information for belonging to same dimension, weighting are determined the result by 1
With degree, as shown in the following formula (8):
MD(SR,SA)=β1·DMD+β2·CMD+β3·IOMD+β4·QoSMD+β5·NMD (8)
Wherein, β1+β2+β3+β4+β5=1, β1、β2、β3、β4、β5∈ [0,1].
Those skilled in the art will be understood that the above-mentioned mode for determining the result matching degree is only for example, other are existing
Or the mode for determining the result matching degree being likely to occur from now on is such as applicable to the present invention, should also be included in protection of the present invention
Within range, and it is incorporated herein by reference herein.
Those skilled in the art will be understood that it is above-mentioned determine the weight information mode be only for example, other it is existing or
The mode for determining the weight information being likely to occur from now on is such as applicable to the present invention, should also be included in the scope of the present invention
Within, and be incorporated herein by reference herein.
Then, in step s 5, equipment 1 is provided to be searched from one or more of initial API according to the result matching degree
Target API search results are determined in hitch fruit.For example, for the initial API search results API1 to API5 shown in upper table 4,
Because its result matching degree is respectively 3,2,0.5,1,1, then in step s 5, predetermined matching degree threshold value can will be met by providing equipment 1
If 2 initial API search results are as target API search results, target API search results are obtained as API1, API2.
Then, in step s 6, communication mode of the equipment 1 by agreements such as http, https is provided, by the target API
Search result is supplied to the user, for example, connecting example, in step s 6, provides equipment 1 according to schematic diagram as shown in Figure 2
Target API search results API1, API2 are supplied to user A, so that user A is browsed.
Preferably, it provides and constantly works between each step of equipment 1.Specifically, in step sl, it provides
Equipment 1 continues according to candidate opening API, acquisition and the corresponding dimension description information of the candidate opening API, to obtain correspondence
Candidate opening API information record;In step s 2, equipment 1 is provided to continue, according to the candidate opening API information record, to build
Vertical or update API data library;In step s3, the inquiry about opening API that equipment 1 persistently obtains user's submission is provided to ask
It asks;In step s 4, one or more inquiry dimension descriptions that equipment 1 continues according to corresponding to the inquiry request are provided to believe
Breath, matching inquiry is carried out in the API data library, to obtain one or more matched with the inquiry dimension description information
A initial API search results;In step s 5, it is lasting according to the inquiry dimension description information and described initial to provide equipment 1
Matching degree between the dimension description information of the corresponding initial API of API search results determines the knot of the initial API search results
Fruit matching degree, to determine target API search from one or more of initial API search results according to the result matching degree
As a result;In step s 6, equipment 1 is provided to continue the target API search results being supplied to the user.Here, this field
Technical staff will be understood that " lasting " refers to constantly carry out obtaining candidate opening respectively between each step of offer equipment 1
API information record, establish or update API data library, obtain user about opening API inquiry request, obtain initial API and search
Hitch fruit determines target API search results and provides, until provide equipment 1 stops in a long time acquisition user about
The inquiry request of opening API.
Preferably, equipment 1 is provided and further includes step S7 (not shown).Specifically, in the step s 7, provide equipment 1 basis
The result matching degree of initial API search results as the target API search results, determines target API search results
Priority, wherein, in step s 6, equipment 1 is provided according to the priority, the target API search results are supplied to institute
State user.
For example, in step s 5, provide equipment 1 determining target API search result API1 and API2, because of its result
Matching degree is respectively 3,2, and as a result matching degree is higher, and corresponding priority is higher, then priority determining device can determine that target API is searched
The priority of hitch fruit API1 and API2 are respectively 1,2, i.e., the priority of target API search results API1 is preferential more than API2
Grade correspondingly, in step s 6, provides equipment 1 prioritized API1 and API2, i.e. API1 in result provides page
Sequence before API2.
Preferably, in step s3, the inquiry request about opening API for providing user's submission of the acquisition of equipment 1 includes
Corresponding query specification information;Wherein, equipment 1 is provided and further includes step S8 (not shown).Specifically, in step s 8, it provides
Equipment 1 determines the description letter of the inquiry dimension and respective dimensions corresponding to the inquiry request according to the query specification information
Breath, to obtain one or more of inquiry dimension description informations.
Here, in step s 8, provide mode that equipment 1 determines the inquiry dimension description information with it is aforementioned in step S4
In, equipment 1 is provided and determines that the mode for inquiring dimension description information is identical or approximate, for simplicity, therefore herein not superfluous
It states, and is incorporated herein by reference.
It is highly preferred that the inquiry request further includes nonproductive poll dimension description information;Wherein, in step s 8, it provides
Equipment 1 determines that the inquiry request institute is right according to the query specification information, and with reference to the nonproductive poll dimension description information
The inquiry dimension and the description information of respective dimensions answered, to obtain one or more of inquiry dimension description informations.
For example, for user A, it is assumed that it is intended to search for navigation APP in certain open platform, in the search column of the open platform
Middle input " navigation ", the also dimension in search interface as shown in Figure 3 describe to have input the description letter of respective dimensions in combobox
Breath, that is, have input nonproductive poll dimension description information, and the service quality scoring of API is inputted such as in API service quality combobox
0.8, then in step s3, equipment 1 is provided by the dynamic pages technology such as ASP, JSP, can get user A submissions
Inquiry request about opening API.
Here, the search interface of the present invention contributes to from latitudes such as API introductions, input parameter, output parameter, API mass
User's quick-searching meets its demand, further improves recall precision and experienced with retrieval to required API;It is meanwhile more rich
API information, be also convenient for more comprehensively understanding of the user to opening API,.
Then, in step s 8, query specification information of the equipment 1 according to included by inquiry request is provided, and with reference to described
Nonproductive poll dimension description information determines the description information of the inquiry dimension and respective dimensions corresponding to the inquiry request, with
Obtain one or more of inquiry dimension description informations.
For example, connecting example, the keyword " navigation " and submission for user A inputs want API service quality score
0.8 is asked, a service type under map field is belonged to because of keyword " navigation ", and nonproductive poll dimension description information is " API
Service quality scoring is 0.8 ", it may be determined that the corresponding inquiry dimension of the inquiry request is:1) map field;2) navigation Service class
Not;3) API service quality, corresponding dimension description information of inquiring is " map-navigation-API service quality score 0.8 ".
Fig. 5 shows the block diagram suitable for being used for the exemplary computer system/server 2 for realizing embodiment of the present invention.
The computer system/server 2 that Fig. 5 is shown is only an example, should not be to the function and use scope of the embodiment of the present invention
Bring any restrictions.
As shown in figure 5, computer system/server 2 is showed in the form of universal computing device.Computer system/service
The component of device 2 can include but is not limited to:One or more processor or processing unit 21, system storage 22, connection
The bus 23 of different system component (including system storage 22 and processing unit 21).
Bus 23 represents one or more in a few class bus structures, including memory bus or Memory Controller,
Peripheral bus, graphics acceleration port, processor or the local bus using the arbitrary bus structures in a variety of bus structures.It lifts
For example, these architectures include but not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC)
Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Computer system/server 2 typically comprises a variety of computer system readable media.These media can be any
The usable medium that can be accessed by computer system/server 2, including volatile and non-volatile medium, movably and not
Moveable medium.
System storage 22 can include the computer system readable media of form of volatile memory, such as arbitrary access
Memory (RAM) 221 and/or cache memory 222.Computer system/server 2 may further include other removable
Dynamic/immovable, volatile/non-volatile computer system storage medium.Only as an example, storage system 223 can be used
In reading and writing immovable, non-volatile magnetic media (Fig. 5 do not show, commonly referred to as " hard disk drive ").Although do not show in Fig. 5
Go out, can provide for moving the disc driver of non-volatile magnetic disk (such as " floppy disk ") read-write and to removable
The CD drive of anonvolatile optical disk (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these cases,
Each driver can be connected by one or more data media interfaces with bus 23.System storage 22 can be included extremely
A few program product, the program product have one group of (for example, at least one) program module, these program modules are configured to
Perform the function of various embodiments of the present invention.
Program/utility 224 with one group of (at least one) program module 225 can be stored in such as system and deposit
In reservoir 22, such program module 225 include --- but being not limited to --- operating system, one or more application program,
Other program modules and program data may include the reality of network environment in each or certain combination in these examples
It is existing.Program module 225 usually performs function and/or method in embodiment described in the invention.
Computer system/server 2 can also be with one or more external equipments 25 (such as keyboard, sensing equipment, display
Device 24 etc.) communication, the equipment interacted with the computer system/server 2 communication can be also enabled a user to one or more,
And/or any equipment with the computer system/server 2 is enabled to communicate with one or more of the other computing device
(such as network interface card, modem etc.) communicates.This communication can be carried out by input/output (I/O) interface 26.Also,
Computer system/server 2 can also by network adapter 20 and one or more network (such as LAN (LAN), extensively
Domain net (WAN) and/or public network, such as internet) communication.As shown in figure 5, network adapter 20 passes through bus 23 and calculating
Other modules communication of machine systems/servers 2.It should be understood that although being not shown in Fig. 5, computer system/service can be combined
Device 2 uses other hardware and/or software module, including but not limited to:Microcode, device driver, redundant processing unit, outside
Disk drive array, RAID system, tape drive and data backup storage system etc..
Processing unit 21 is stored in program in system storage 22 by operation, so as to perform various functions application and
Data processing, such as realize the following method for providing opening API search result, wherein, this method includes:
According to candidate opening API, acquisition and the corresponding dimension description information of the candidate opening API, to obtain correspondence
Candidate opening API information record;
According to the candidate opening API information record, API data library is establishd or updated;
Wherein, this method further includes:
Obtain the inquiry request about opening API that user submits;
One or more inquiry dimension description informations according to corresponding to the inquiry request, in the API data library
Matching inquiry is carried out, to obtain the initial API search results of one or more to match with the inquiry dimension description information,
In, the initial API search results include corresponding initial API and its dimension description information;
According to the dimension description of the inquiry dimension description information initial API corresponding with the initial API search results
Matching degree between information determines the result matching degree of the initial API search results, with according to the result matching degree from described
Target API search results are determined in one or more initial API search results;
The target API search results are supplied to the user.
It should be noted that the present invention can be carried out in the assembly of software and/or software and hardware, for example, can adopt
With application-specific integrated circuit (ASIC), general purpose computer or any other realized similar to hardware device.In one embodiment
In, software program of the invention can perform to realize steps described above or function by processor.Similarly, it is of the invention
Software program can be stored in computer readable recording medium storing program for performing (including relevant data structure), for example, RAM memory,
Magnetic or optical driver or floppy disc and similar devices.In addition, hardware can be used to realize in some steps or function of the present invention, example
Such as, as coordinating with processor so as to perform the circuit of each step or function.
In addition, the part of the present invention can be applied to computer program product, such as computer program instructions, when its quilt
When computer performs, by the operation of the computer, it can call or provide according to the method for the present invention and/or technical solution.
And the program instruction of the method for the present invention is called, it is possibly stored in fixed or moveable recording medium and/or passes through
Broadcast or the data flow in other signal loaded mediums and be transmitted and/or be stored according to described program instruction operation
In the working storage of computer equipment.Here, including a device according to one embodiment of present invention, which includes using
Memory in storage computer program instructions and processor for executing program instructions, wherein, when the computer program refers to
When order is performed by the processor, method and/or skill of the device operation based on aforementioned multiple embodiments according to the present invention are triggered
Art scheme.
It is obvious to a person skilled in the art that the present invention is not limited to the details of above-mentioned exemplary embodiment, Er Qie
In the case of without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter
From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the present invention is by appended power
Profit requirement rather than above description limit, it is intended that all by what is fallen within the meaning and scope of the equivalent requirements of the claims
Variation includes within the present invention.Any reference numeral in claim should not be considered as to the involved claim of limitation.This
Outside, it is clear that one word of " comprising " is not excluded for other units or step, and odd number is not excluded for plural number.That is stated in device claim is multiple
Unit or device can also be realized by a unit or device by software or hardware.The first, the second grade words are used for table
Show title, and do not represent any particular order.
Claims (17)
1. a kind of method for providing opening API search result, wherein, this method includes:
According to candidate opening API, acquisition and the corresponding dimension description information of the candidate opening API, to obtain corresponding time
Opening API information is selected to record;
According to the candidate opening API information record, API data library is establishd or updated;
Wherein, this method further includes:
Obtain the inquiry request about opening API that user submits;
One or more inquiry dimension description informations according to corresponding to the inquiry request, carry out in the API data library
Matching inquiry, to obtain the initial API search results of one or more to match with the inquiry dimension description information, wherein,
The initial API search results include corresponding initial API and its dimension description information;
According to the dimension description information of the inquiry dimension description information initial API corresponding with the initial API search results
Between matching degree, determine the result matching degrees of the initial API search results, with according to the result matching degree from one
Or target API search results are determined in multiple initial API search results;
The target API search results are supplied to the user.
2. according to the method described in claim 1, wherein, the inquiry request includes corresponding query specification information;
Wherein, this method further includes:
According to the query specification information, the description letter of the inquiry dimension and respective dimensions corresponding to the inquiry request is determined
Breath, to obtain one or more of inquiry dimension description informations.
3. according to the method described in claim 2, wherein, the inquiry request further includes nonproductive poll dimension description information;
Wherein, one or more of inquiry dimension description informations are obtained to include:
According to the query specification information, and with reference to the nonproductive poll dimension description information, determine that the inquiry request institute is right
The inquiry dimension and the description information of respective dimensions answered, to obtain one or more of inquiry dimension description informations.
4. according to the method in any one of claims 1 to 3, wherein, according to it is described inquiry dimension description information with it is described
Matching degree between the dimension description information of initial API determines the result matching degree of the initial API search results, with according to institute
It states result matching degree and determines that target API search results include from one or more of initial API search results:
Believed according to the inquiry dimension description information with belonging to the description of same dimension in the dimension description information of the initial API
The weight information of sub- matching degree and the dimension between breath weights and determines the result matching degree;
According to the result matching degree, target API search results are determined from one or more of initial API search results.
5. according to the method described in claim 4, wherein, the weight information is determined based on following at least any one:
The weight information is scheduled;
The weight information of the dimension is determined to the preference information of respective dimensions according to the user.
6. the method according to any one of claims 1 to 5, wherein, this method further includes:
According to the result matching degree of the initial API search results as the target API search results, determine that target API is searched
The priority of hitch fruit,
Wherein, the user is supplied to include the target API search results:
According to the priority, the target API search results are supplied to the user.
7. method according to any one of claim 1 to 6, wherein, according to candidate opening API, obtain and the candidate
The corresponding dimension description information of opening API is included with obtaining corresponding candidate opening API information record:
According to candidate opening API, semantic tagger processing is carried out to the attribute of the candidate opening API, to obtain and the candidate
The corresponding dimension description information of opening API;
According to the candidate opening API and its corresponding dimension description information, corresponding candidate opening API information record is obtained.
8. method according to any one of claim 1 to 7, wherein, the dimension description information is at least appointed including following
One:
Field belonging to-API;
The affiliated functional categories of-API;
The input parameter of-API;
The output parameter of-API;
The service quality of-API.
9. it is a kind of for providing the offer equipment of opening API search result, wherein, which includes:
For according to candidate opening API, obtain with the corresponding dimension description information of the candidate opening API, to obtain correspondence
Candidate opening API information record device;
For according to the candidate opening API information record, establising or updating the device in API data library;
Wherein, which further includes:
For obtaining the device of the inquiry request about opening API of user's submission;
For one or more inquiry dimension description informations according to corresponding to the inquiry request, in the API data library
Matching inquiry is carried out, to obtain the initial API search results of one or more to match with the inquiry dimension description information
Device, wherein, the initial API search results include corresponding initial API and its dimension description information;
For the dimension description according to the inquiry dimension description information initial API corresponding with the initial API search results
Matching degree between information determines the result matching degree of the initial API search results, with according to the result matching degree from described
The device of target API search results is determined in one or more initial API search results;
For the target API search results to be supplied to the device of the user.
10. offer equipment according to claim 9, wherein, the inquiry request includes corresponding query specification information;
Wherein, which further includes:
For according to the query specification information, determining the description of the inquiry dimension and respective dimensions corresponding to the inquiry request
Information, to obtain the device of one or more of inquiry dimension description informations.
11. offer equipment according to claim 10, wherein, the inquiry request further includes nonproductive poll dimension description letter
Breath;
Wherein, the device for obtaining one or more of inquiry dimension description informations is used for:
According to the query specification information, and with reference to the nonproductive poll dimension description information, determine that the inquiry request institute is right
The inquiry dimension and the description information of respective dimensions answered, to obtain one or more of inquiry dimension description informations.
12. the offer equipment according to any one of claim 9 to 11, wherein, according to the inquiry dimension description information
Matching degree between the dimension description information of the initial API determines the result matching degree of the initial API search results, with
The device of target API search results is determined from one or more of initial API search results according to the result matching degree
For:
Believed according to the inquiry dimension description information with belonging to the description of same dimension in the dimension description information of the initial API
The weight information of sub- matching degree and the dimension between breath weights and determines the result matching degree;
According to the result matching degree, target API search results are determined from one or more of initial API search results.
13. offer equipment according to claim 12, wherein, the weight information is based on following at least any one come really
It is fixed:
The weight information is scheduled;
The weight information of the dimension is determined to the preference information of respective dimensions according to the user.
14. the offer equipment according to any one of claim 9 to 13, wherein, which further includes:
For the result matching degree according to the initial API search results as the target API search results, the target is determined
The priority of API search results,
Wherein, the device of the user is supplied to be used for the target API search results:
According to the priority, the target API search results are supplied to the user.
15. the offer equipment according to any one of claim 9 to 14, wherein, according to candidate opening API, acquisition and institute
The corresponding dimension description information of candidate opening API is stated, is used for the device for obtaining corresponding candidate opening API information record:
According to candidate opening API, semantic tagger processing is carried out to the attribute of the candidate opening API, to obtain and the candidate
The corresponding dimension description information of opening API;
According to the candidate opening API and its corresponding dimension description information, corresponding candidate opening API information record is obtained.
16. the offer equipment according to any one of claim 9 to 15, wherein, the dimension description information includes following
Any one of at least:
Field belonging to-API;
The affiliated functional categories of-API;
The input parameter of-API;
The output parameter of-API;
The service quality of-API.
17. a kind of computing device, including:
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are performed by one or more of processors so that one or more of processors
Perform the method as described in any in claim 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611249740.4A CN108255874A (en) | 2016-12-29 | 2016-12-29 | A kind of method and apparatus for being used to provide opening API search result |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611249740.4A CN108255874A (en) | 2016-12-29 | 2016-12-29 | A kind of method and apparatus for being used to provide opening API search result |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108255874A true CN108255874A (en) | 2018-07-06 |
Family
ID=62721450
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611249740.4A Pending CN108255874A (en) | 2016-12-29 | 2016-12-29 | A kind of method and apparatus for being used to provide opening API search result |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108255874A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110069560A (en) * | 2019-04-02 | 2019-07-30 | 北京明略软件系统有限公司 | The management method and device of electronic map |
CN110175466A (en) * | 2019-04-16 | 2019-08-27 | 平安科技(深圳)有限公司 | Method for managing security, device, computer equipment and the storage medium of open platform |
CN111405051A (en) * | 2020-03-20 | 2020-07-10 | 北京百度网讯科技有限公司 | Processing method, device and equipment of Application Programming Interface (API) information |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110153590A1 (en) * | 2009-12-18 | 2011-06-23 | Electronics And Telecommunications Research Institute | Apparatus and method for searching for open api and generating mashup block skeleton code |
CN103176997A (en) * | 2011-12-21 | 2013-06-26 | 上海博路信息技术有限公司 | Publishing and receiving system for multi-dimensional information |
CN103593373A (en) * | 2012-08-16 | 2014-02-19 | 北京百度网讯科技有限公司 | Search result sorting method and search result sorting device |
CN104462434A (en) * | 2014-12-15 | 2015-03-25 | 北京国双科技有限公司 | Data inquiring method and device |
-
2016
- 2016-12-29 CN CN201611249740.4A patent/CN108255874A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110153590A1 (en) * | 2009-12-18 | 2011-06-23 | Electronics And Telecommunications Research Institute | Apparatus and method for searching for open api and generating mashup block skeleton code |
CN103176997A (en) * | 2011-12-21 | 2013-06-26 | 上海博路信息技术有限公司 | Publishing and receiving system for multi-dimensional information |
CN103593373A (en) * | 2012-08-16 | 2014-02-19 | 北京百度网讯科技有限公司 | Search result sorting method and search result sorting device |
CN104462434A (en) * | 2014-12-15 | 2015-03-25 | 北京国双科技有限公司 | Data inquiring method and device |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110069560A (en) * | 2019-04-02 | 2019-07-30 | 北京明略软件系统有限公司 | The management method and device of electronic map |
CN110175466A (en) * | 2019-04-16 | 2019-08-27 | 平安科技(深圳)有限公司 | Method for managing security, device, computer equipment and the storage medium of open platform |
CN110175466B (en) * | 2019-04-16 | 2024-03-08 | 平安科技(深圳)有限公司 | Security management method and device for open platform, computer equipment and storage medium |
CN111405051A (en) * | 2020-03-20 | 2020-07-10 | 北京百度网讯科技有限公司 | Processing method, device and equipment of Application Programming Interface (API) information |
CN111405051B (en) * | 2020-03-20 | 2022-04-22 | 北京百度网讯科技有限公司 | Processing method, device and equipment of Application Programming Interface (API) information |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11468019B2 (en) | Apparatus, systems, and methods for analyzing characteristics of entities of interest | |
CN106446005B (en) | Factorization model | |
JP4911536B2 (en) | Regional information retrieval device, regional information retrieval device control method, regional information retrieval system, and regional information retrieval system control method | |
US8001125B1 (en) | Method and apparatus for defining relationships between tags | |
US8782041B1 (en) | Text search for weather data | |
CN108388582A (en) | The mthods, systems and devices of related entities for identification | |
US20100049731A1 (en) | Extensible attributes model for business applications | |
JP5221630B2 (en) | Server, information management method, information management program, and computer-readable recording medium for recording the program | |
WO2014160806A1 (en) | Electronic system with real property preference mechanism and method of operation thereof | |
CN110764665B (en) | Information processing method, information processing device and terminal equipment | |
US8706732B1 (en) | Managing information about entities using clusters of received observations | |
JP2013058192A (en) | System, method and computer program product for parcel assessment | |
CN102930048A (en) | Data abundance automatically found by semanteme and using reference and visual data | |
CN108255874A (en) | A kind of method and apparatus for being used to provide opening API search result | |
WO2014139057A1 (en) | Method and system for providing personalized content | |
CN105893396A (en) | Interpreting user queries based on nearby locations | |
US20160188721A1 (en) | Accessing Multi-State Search Results | |
US10922321B2 (en) | Interpreting user queries based on device orientation | |
US11430076B1 (en) | View scores | |
WO2020006834A1 (en) | Financial institution recommending method, equipment, storage medium, and device | |
CN106462603A (en) | Disambiguation of queries implicit to multiple entities | |
US20180011934A1 (en) | Identifying spatial records | |
CN107463590B (en) | Automatic session phase discovery | |
KR20130085011A (en) | Indexing system of space object for combination object of soi and content | |
JP4828653B1 (en) | Server, dictionary generation method, dictionary generation program, and computer-readable recording medium for recording the program |
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 |