CN100395753C - Inquiry method and system, and inquiry switching device - Google Patents

Inquiry method and system, and inquiry switching device Download PDF

Info

Publication number
CN100395753C
CN100395753C CNB2005101171501A CN200510117150A CN100395753C CN 100395753 C CN100395753 C CN 100395753C CN B2005101171501 A CNB2005101171501 A CN B2005101171501A CN 200510117150 A CN200510117150 A CN 200510117150A CN 100395753 C CN100395753 C CN 100395753C
Authority
CN
China
Prior art keywords
query
data
fuzzy
keyword
module
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
CNB2005101171501A
Other languages
Chinese (zh)
Other versions
CN1851700A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB2005101171501A priority Critical patent/CN100395753C/en
Publication of CN1851700A publication Critical patent/CN1851700A/en
Application granted granted Critical
Publication of CN100395753C publication Critical patent/CN100395753C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The present invention discloses an inquiry method which comprises that an outer applicative device is used for transmitting a fuzzy inquiry request which comprises a fuzzy inquiry condition for originating an inquiry, the fuzzy inquiry condition is converted into data for providing information which can be recognized by the device, the converted information is used as an accurate inquiry condition in an accurate inquiry request and is sent to an information providing device which is used for looking up inquiry result information which accords with the condition according to the receiving accurate inquiry request, and found result information is returned to the outer applicative device. The present invention also discloses an inquiry system and an inquiry switching device. The present invention is characterized in that the fuzzy inquiry request emitted by the outer applicative device is converted into the accurate inquiry request which can be recognized by the information providing device, the accurate inquiry request which comprises accurate inquiry sentences is sent to the information providing device for carrying out the inquiry, and the applicative device can obtain contents which need inquiring from the information providing device through a fuzzy inquiry description with abundant semantic meanings.

Description

A kind of querying method and system and a kind of query conversion device
Technical field
The present invention relates to communication network information inquiry field, be meant a kind of querying method, a kind of inquiry system and a kind of query conversion device especially.
Background technology
The data of communication network provides institute's objects stored in the equipment, can show different values in a plurality of sub-attribute of multiple attribute item usually.Therefore, when application apparatus provides equipment to initiate query requests to data, must in query requests, different querying conditions be set the different sub-attribute at the attribute item that will inquire about, data provides equipment to search the object that meets according to the querying condition in the query requests like this, and the object information that is found is returned to application apparatus.
Owing to must comprise in detail that data provides attribute item and the sub-attribute information in the equipment in the query requests that application apparatus sent, can't realize that application apparatus carries out fuzzy query by the demand of oneself, has caused the stiff dumb of inquiry mode; And because data provides the title of each data item of institute's objects stored in the equipment and attribute thereof for application apparatus, be to be difficult to understand, so application apparatus must memory document provides the data storage situation of equipment, improved the complexity of application apparatus.
In addition, provide the data storage situation of equipment to provide equipment to initiate query requests,, reduced the security that data provides equipment so data provides the data storage situation of equipment to be exposed to the outside fully to data because application apparatus need be known data.
Summary of the invention
In view of this, first fundamental purpose of the present invention is to provide a kind of querying method, and this method can realize that application apparatus just can provide from data by the abundant querying condition of fuzzy semanteme and obtain the Query Result information that satisfies this condition the equipment.
Second fundamental purpose of the present invention is to provide a kind of inquiry system, and this system can realize that application apparatus just can provide from data by the abundant querying condition of fuzzy semanteme and obtain the Query Result information that satisfies condition the equipment.
The 3rd fundamental purpose of the present invention is to provide a kind of query conversion device, and this device can realize that the fuzzy query request that outer application system is sent is converted to the accurate query requests that data provides equipment to discern.
First aspect in order to achieve the above object the invention provides a kind of querying method, and this comprises following steps:
A, applications equipment comprise the fuzzy query request initiation inquiry of fuzzy query conditions by transmission;
B, basis are carried out the involved data of query conversion, fuzzy query conditions is converted to the precise inquiry conditions that data provides equipment to discern, and will comprises that the accurate query requests data of sending to of this precise inquiry conditions provides equipment;
C, data provide equipment to search the Query Result information that meets precise inquiry conditions according to the accurate query requests that receives, and the object information that is found is returned to applications equipment.
Preferably, the described precise inquiry conditions that fuzzy query conditions is converted to data and provides equipment to discern comprises:
Fuzzy query conditions is converted to the information that data provides equipment to discern, the information of being changed out is adjusted according to requestor's authority.
Preferably, comprise in the described information of changing out: data provides the item of the attribute in the system;
Described authority according to the requestor is adjusted into the information of being changed out:
According to the attribute item information that the requestor can visit the attribute item of being changed out is filtered.
Preferably, the described requestor's of obtaining authority comprises: according to set in advance or provide the requester accesses control tabulation of obtaining the equipment to determine requestor's authority from data.
Described fuzzy query conditions can be keyword;
The then described precise inquiry conditions that fuzzy query conditions is converted to data and provides equipment to discern comprises:
B11, the data of obtaining each the keyword correspondence in the fuzzy query request provide the item of the attribute in the system;
B12, with the attribute item that obtained as precise inquiry conditions.
Preferably, among the described step B12 as precise inquiry conditions be with the attribute item that is obtained:
With logical connector the attribute item that is obtained is connected.
Described fuzzy query conditions can also be: keyword and corresponding fuzzy value, or the descriptive statement of being made up of keyword or keyword and corresponding fuzzy value that connects of logical connector;
The described precise inquiry conditions that fuzzy query conditions is converted to data and provides equipment to discern comprises:
B21, the data of obtaining each the keyword correspondence in the fuzzy query request provide the item of the attribute in the system;
B22, according to the fuzzy value of keyword correspondence, determine the value of each attribute item of this keyword correspondence;
B23, the attribute item determined or attribute item and corresponding value are connected, generate precise inquiry conditions by logical connector.
Preferably, described fuzzy query conditions generates according to the keyword table of comparisons that comprises keyword and fuzzy value corresponding relation that sets in advance in the applications equipment;
Further comprise before the described step B21: keyword and corresponding fuzzy value are decomposed according to the keyword table of comparisons corresponding with the described keyword table of comparisons that sets in advance.
Preferably, described step B22 is:
According to the fuzzy value of keyword correspondence, in the analysis strategy configuration file, search the value of each attribute item of this keyword correspondence.
Preferably, further comprise in the described fuzzy query request: requestor's sign and the content of being asked.
Described step B can be carried out by the query conversion device of independent setting.
Described step B can also provide equipment to carry out by data.
Second aspect in order to achieve the above object the invention provides a kind of inquiry system, and this system comprises:
Applications equipment is used for sending the fuzzy query request to the query conversion device, and reception provides the Query Result information of equipment from query conversion device or data;
The query conversion device, be used for according to carrying out the involved data of query conversion, to be converted to the accurate query requests that data provides equipment to discern from the fuzzy query request of applications equipment, and provide equipment with the accurate query requests data of changing out of sending to, or the further reception data Query Result information that provides equipment to return, and this Query Result information sent to corresponding applications equipment according to described accurate query requests;
Data provides equipment, be used to receive accurate query requests from the query conversion device, obtain corresponding Query Result information according to this accurate query requests, and the Query Result information obtained returned to corresponding applications equipment by the query conversion device, or directly the Query Result information of being obtained is returned to corresponding external unit.
Preferably, comprise in the described query conversion device:
IO interface, being used for query conversion device and applications equipment and data provides equipment to communicate, and receives the fuzzy query request from applications equipment, and the fuzzy query conditions in this fuzzy query request is sent to the query translation module; And receive from the precise inquiry conditions after the translation of query translation module, provide equipment to send accurate query requests according to this precise inquiry conditions to data; Or the Query Result information that further data is provided equipment to return according to accurate query requests sends to applications equipment;
Data memory module is used for the storing queries translation module and carries out the involved data of query conversion;
The query translation module is used for carrying out alternately with data memory module, will be from the fuzzy query conditions of IO interface, and the precise inquiry conditions that the data of being converted to provides equipment to discern, and the precise inquiry conditions after will changing returns to IO interface.
Preferably, comprise in the described query translation module:
The query specification decomposing module is used for decomposing carry out keyword from the fuzzy query conditions of IO interface according to the keyword table of comparisons of data memory module, and fuzzy query conditions is resolved into keyword and corresponding value;
Analysis strategy is selected module, and the keyword that is used for decompositing according to the query specification decomposing module is determined analysis ability module corresponding in the analysis strategy competence set module with the keyword that data memory module is stored with the corresponding relation data of analysis ability module;
Comprise a plurality of analysis ability modules in the analysis strategy competence set module, the corresponding keyword of each analysis ability module is used for attribute item and the value of determining correspondence analyzed in pairing keyword and fuzzy value;
The query statement generation module is used for attribute item that the analysis ability module analysis according to analysis strategy competence set module goes out and value generated query statement as precise inquiry conditions, and the precise inquiry conditions that generates is sent to input/output interface module.
The 3rd aspect in order to achieve the above object the invention provides a kind of query conversion device, comprises in this device:
IO interface, being used for query conversion device and applications equipment and data provides equipment to communicate, and receives the fuzzy query request from applications equipment, and the fuzzy query conditions in this fuzzy query request is sent to the query translation module; And receive from the precise inquiry conditions after the translation of query translation module, provide equipment to send accurate query requests according to this precise inquiry conditions to data; Or the Query Result information that further data is provided equipment to return according to accurate query requests sends to applications equipment;
Data memory module is used for the storing queries translation module and carries out the involved data of query conversion;
The query translation module is used for carrying out alternately with data memory module, will be from the fuzzy query conditions of IO interface, and the precise inquiry conditions that the data of being converted to provides equipment to discern, and the precise inquiry conditions after will changing returns to IO interface.
Preferably, comprise in the described query translation module:
The query specification decomposing module is used for decomposing carry out keyword from the fuzzy query conditions of IO interface according to the keyword table of comparisons of data memory module, and fuzzy query conditions is resolved into keyword and corresponding value;
Analysis strategy is selected module, and the keyword that is used for decompositing according to the query specification decomposing module is determined analysis ability module corresponding in the analysis strategy competence set module with the keyword that data memory module is stored with the corresponding relation data of analysis ability module;
Comprise a plurality of analysis ability modules in the analysis strategy competence set module, the corresponding keyword of each analysis ability module is used for attribute item and the value of determining correspondence analyzed in pairing keyword and fuzzy value;
The query statement generation module is used for attribute item that the analysis ability module analysis according to analysis strategy competence set module goes out and value generated query statement as precise inquiry conditions, and the precise inquiry conditions that generates is sent to input/output interface module.
Among the present invention, be converted to the accurate query requests that data provides equipment to discern by the fuzzy query request that applications equipment is sent, the accurate query requests data of sending to that will comprise accurate query statement again provides equipment to inquire about, and has realized that application apparatus is described just can provide from data by the abundant fuzzy query of semanteme to obtain the content that will inquire about the equipment;
In addition, provide the device of the query conversion between the equipment by being arranged on application apparatus and data among the present invention, the data that shielded provides the data storage situation of equipment, and the data that guaranteed provides the security of equipment;
And then, among the present invention by requestor's access rights are set, thereby realized the same queries request of sending for different requestors, provide the different access authority of equipment according to the requestor to data, return different Query Result information from the trend requestor.
Description of drawings
Fig. 1 is the composition structural drawing of Information Referral System of the present invention;
Fig. 2 provides the synoptic diagram of the data store organisation in the equipment for data of the present invention;
Fig. 3 is a kind of concrete example of data store organisation shown in Figure 2;
Fig. 4 provides the composition structural drawing of query conversion device in the equipment specific embodiment for data of the present invention;
Fig. 5 is the overview flow chart of querying method of the present invention;
Fig. 6 is the specific implementation process flow diagram of step 502 among Fig. 5;
Fig. 7 is the specific implementation process flow diagram of step 5023 among Fig. 6;
Fig. 8 is the specific implementation process flow diagram of step 5024 among Fig. 6.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, the present invention is described in further detail below in conjunction with accompanying drawing.
Main thought of the present invention is, fuzzy query conditions in the fuzzy query request that application apparatus is sent is converted to the precise inquiry conditions that data provides equipment to discern, thereby make application apparatus carry out fuzzy query by the demand of oneself, realize inquiry mode flexibly, also improved the security that data provides equipment.
The present invention will be described in detail below by specific embodiment.
Among the present invention, the composition of Information Referral System specific embodiment comprises that data provides equipment 11, applications equipment 12 and query conversion device 13 as shown in Figure 1.
Wherein, data provides equipment 11 to be meant the equipment of the data that in store applications equipment will be used in the storage medium of equipment.In the present embodiment, data provides equipment to be used to receive accurate query requests from the query conversion device, and searches suitable Query Result information according to this request in the data of self storage, and the object information that is found is returned to the query conversion device.Here, data provides equipment also can directly the object information that is found be returned to applications equipment.Provide equipment the object information that is found to be returned under the situation of applications equipment by the query conversion device for data, the query conversion device data of sending to provides in the accurate query requests of equipment can not comprise that the requestor identifies; Provide equipment directly the object information that is found to be returned under the situation of applications equipment for data, the query conversion device data of sending to provides in the accurate query requests of equipment needs to comprise that the requestor identifies.
Provide in the equipment in data, data is root node usually with the object, and object properties are that the data structure of child node is stored.Wherein, each object can have different a plurality of attributes, and the lower floor of each attribute can comprise sub-attribute, is generally concrete value as the attribute of leaf node.As shown in Figure 2, wherein 200 is object as root node, and 210,220,230 and 240 is several attributes of 200, and 210 attributes wherein have several attributes as this sub-attribute of 210: 211,212 and 213.Current, sub-attributes such as 211,212 wherein can also have sub-attribute again, are not described in detail here.Above-mentioned 210,220,230 and 240 is ground floor attribute item, and 211,212 and 213 etc. is second layer attribute item, and the sub-attribute of second layer attribute item is the 3rd a layer of attribute item, and the like.
By a concrete example above-mentioned data store organisation is described again below.For example, in Fig. 3, object is user 300, the attribute that this user has comprises game class business 310, film class business 320 etc., and comprises the leisure ratio as the attribute of the professional sub-attribute of game class: 60%, and adventure ratio: 30%, weights: 80%, month hourage: 80 etc.Here the sub-attribute of game class business is the leaf node of this data store organisation, is concrete value.
Above-mentioned data can be kept at data to be provided in the database of equipment, the title that is equivalent to show in the database such as attribute 310,320 then, and the field during 310,320 sub-attribute is equivalent to show, specifically as shown in Table 1 and Table 2.
Figure C20051011715000141
Table 1 table 2
Applications equipment 12 provides the application apparatus of the data in the equipment 11 for needs use data.In the present embodiment, applications equipment is used for sending the fuzzy query request to query conversion device 13, comprises content and the query specification statement that the requestor identifies, asked in this fuzzy query request.Requestor's sign is this applications equipment mark, and the content of being asked can be the user ID that satisfies condition, the attribute information of known users etc., and the query specification statement is fuzzy query conditions, is the vague description to querying condition.Applications equipment can pass through http protocol, soap protocol or File Transfer Protocol equivalent-load to the fuzzy query request that the query conversion device sends, and its form can be for XML etc.Following a and b are two kinds of examples with the fuzzy query request of XML carrying.Wherein, comprise in a request message: requestor's sign is ad3e4asdf3432ds; The content of being asked is the user ID that satisfies condition; Querying condition, i.e. query specification, for free time more AND physical condition good.Comprise in the b request message: requestor's sign is ad3e4asdf3432ds; The content of being asked is the attribute situation of known users; Querying condition comprises institute's requesting users sign and query specification, and wherein institute's requesting users is designated abo12asd34351ddfas, and query specification is free time.
The part request message of the user ID that a, request satisfy condition:
<xml>
……
<requestor sign〉ad3e4asdf3432ds</requestor's sign 〉
<request content〉satisfy condition user ID</request content
<query specification〉" free time is more " AND " physical condition is good "</query specification 〉
……
</xml>
The part request message of the attribute situation of b, request known users:
<xml>
……
<requestor sign〉ad3e4asdf3432ds</requestor's sign 〉
<request content〉known users attribute information</request content
<user ID〉abo12asd34351ddfas</user ID 〉
<query specification〉free time</query specification 〉
……
</xml>
In the fuzzy query request, the query specification statement need meet the agreement of this applications equipment and query conversion device 13, by the free time among keyword such as the b, or by keyword and fuzzy value such as free time in a and more form corresponding with keyword.Keyword can be the searching keyword that inquiry that free time, physical condition, adventurous spirit etc. will be carried out outside application apparatus 12 is described, can be that to sum up a group of coming out by the method for mathematical statistics from practical application general, can describe the phrase collection of user property comprehensively; The fuzzy value of keyword correspondence is the coarse vocabulary that is used for describing keyword, can its span be limited according to the characteristics of keyword itself, as can for good, better, many, more, high,, less, considerably less etc.
In the present embodiment, between applications equipment 12 and the query conversion device 13, can arrange the fuzzy value of keyword and keyword correspondence by the keyword table of comparisons, applications equipment can generate the query specification statement of combination in any according to the keyword table of comparisons.This keyword table of comparisons is kept in applications equipment and the query conversion device simultaneously.Externally in the application apparatus, the keyword table of comparisons can be stored in the configuration file, and its storage organization can be as shown in table 3.Designator in the table 3 is a Boolean, and Boolean is that the pairing keyword in this position of true respresentation and value externally can be combined to form the query specification statement in the query specification of application apparatus.
Table 3
In addition, table 4a is a kind of concrete example of the keyword table of comparisons, by table 4a, the available query specification statement of external inquiry system can comprise: space time is more, free time is many, free time is general, free time is few, adventurous spirit is good, adventurous spirit is general, wealth is good or the like.The external inquiry system can directly send above-mentioned query specification statement when initiating inquiry as querying condition, also above-mentioned query specification statement can be made up as querying condition to send.The method of combination can be with two, or more query specification statement is to unite with (AND) or logical operation form (OR).For example can for: free time, more AND physical condition was good, and free time, more OR adventurous spirit was good.
Figure C20051011715000161
Table 4a table 4b
In the present embodiment, the composition of query conversion device comprises that input and output connect 410, data memory module 420 and query translation module 430 as shown in Figure 4.
Wherein, IO interface 410 is used for query conversion device and applications equipment and data provides equipment to communicate, reception sends to the query translation module from the fuzzy query request of applications equipment with the fuzzy query statement in this fuzzy query request; And receive from the accurate query statement after the translation of query translation module, should provide equipment to send accurate query requests as querying condition to data by accurate query statement; And the Query Result information that provides equipment to return according to accurate query requests data sends to applications equipment.
Data memory module 420 is used for the storing queries conversion equipment and carries out the involved data of query conversion, comprises corresponding relation, analysis strategy configuration file and the requestor's of the keyword table of comparisons, keyword and analysis ability module access control list (ACL) etc.
Query translation module 430 is used for carrying out alternately with data memory module 420, to connect 410 fuzzy query statement from input and output, the accurate query statement that the data of being converted to provides equipment to discern, and the accurate query statement after will changing returns to IO interface 410.
In the query translation module 430, specifically comprise query specification decomposing module 431, analysis strategy selection module 432, analysis strategy competence set module 433 and query statement generation module 434.
Wherein, query specification decomposing module 431 is used for according to the keyword table of comparisons of data memory module 420 the fuzzy query statement from IO interface being carried out the keyword decomposition, and the fuzzy query statement is resolved into keyword and corresponding value.For example, for: free time, more AND physical condition was good, this fuzzy query statement, according to the keyword table of comparisons resolve into free time<-more, physical condition<-good, and logical connector AND is kept in the register.
The keyword that analysis strategy selects module 432 to be used for decompositing according to query specification decomposing module 431 is determined analysis ability module corresponding in the analysis strategy competence set module 433 with the keyword of data memory module 420 storages with the corresponding relation data of analysis ability module.
Comprise a plurality of analysis ability modules in the analysis strategy competence set module 433, the corresponding keyword of each analysis ability module.Analysis ability module in the analysis strategy competence set module 433 is extendible, can be at any time increases according to the increase of keyword.After analysis strategy selects module to determine the analysis ability module of keyword correspondence, determined analysis ability module provides specific object item and value rule in the equipment according to the data of keyword correspondence of storage in the data memory module 420, tentatively determines corresponding attribute item; According to the acl list of storage in the data memory module 420, the attribute item of tentatively determining is filtered then, obtain the attribute item of having the right to visit as requestor's applications equipment.For example, based on above-mentioned fuzzy query request a, in acl list, set requestor that the requestor is designated ad3e4asdf3432ds and only had access rights to game service, if the attribute item of tentatively determining is game service and film class business, then professional this attribute item of film class is filtered, and the attribute item that resulting requestor has the right to visit is a game service.
In the present embodiment, also can not store acl list in the data memory module 420, then can the attribute item not filtered in this analysis ability module, or provide equipment 11 to send request to data to obtain the attribute item information that requestors institute can visit, and preliminary definite attribute item is filtered according to the attribute item information that request obtains.
Behind the attribute item of determining according to keyword that the acquisition requestor has the right to visit, query statement generation module 434 is according to the analysis strategy configuration file of storage in the value of keyword correspondence in the fuzzy query descriptive statement and the data memory module 420, the generation data of sending to provides the accurate query specification statement of equipment 11, can comprise the attribute item in this accurate query statement, or further comprise the value information of this attribute item.
Based on above-mentioned fuzzy query request a, the analysis strategy configuration file is described below, in the analysis strategy configuration file of this example, free time and physical condition is described by an example:
<configuration>
<template〉(@ type item: (@ attribute item (@ operational symbol @ attribute item) *) @ comparison operator @ correlative value) (AND|OR (@ type item: (@ attribute item (@ operational symbol @ attribute item) *) @ comparison operator @ correlative value)) *</template 〉
……
<keyword id=" 1 " name=" free time " 〉
<config value=" more " 〉
<item type=" game service " id=" 1 " 〉
<rule?type=″Multiply″>
<dataItem id=" 1 "〉month hourage</dataItem 〉
<dataItem id=" 2 "〉weights</dataItem 〉
<operator〉greater than</operator 〉
<result>60</result>
</rule>
</item>
<item type=" film business " id=" 1 " 〉
<operator〉OR</operator〉// logical connector between two item
</item>
</config>
<config value=" lacks " 〉
……
</config>
</keyword 〉
<keyword id=" 2 " name=" physical condition " 〉
<config value=" good " 〉
<item type=" medical class business " id=" 1 " 〉
<rule?type=″Simple″>
<dataItem id=" 1 "〉month expense</dataItem 〉
<operator〉less than</operator 〉
<result>100</result>
</rule>
</item>
</config>
<config value=" poor " 〉
……
</config>
</keyword 〉
</configuration>
In the above-mentioned example file, label<template〉in content be the specific format of accurate query statement, i.e. the form of the accurate query statement after native system analysis conversion, this form provides equipment 11 to consult to draw for query conversion device 13 and data.Data provides the form that equipment proposes in above-mentioned example file: (@ type item: (@ attribute item (@ operational symbol @ attribute item) *) @ comparison operator @ correlative value) (AND|OR (@ type item: (@ attribute item (@ operational symbol @ attribute item) *) @ comparison operator @ correlative value)) *, the form that the result met that expression is exported by the query conversion device, that is:
1, the formula that connects by " AND/OR " by the formula of describing in or multinomial 2;
2, be made up of " @ type item: (@ attribute item (@ operational symbol @ attribute item) *) @ comparison operator @ correlative value ", " (@ operational symbol @ attribute item) * " expression " behind the @ attribute item " can have zero or a plurality of " @ operational symbol @ attribute items ".Wherein " @ type item " is the ground floor attribute item in the storage organization shown in Fig. 2, i.e. table in the database; " @ attribute item " is the second layer attribute item in the tree structure, i.e. field in the database in the example; " @ operational symbol " is mathematical operator, as "+,-, * ,/" etc.; " @ comparison operator " refers to the operational symbol of the contrast that is used to be worth, as "<,>,=" etc.; " @ correlative value " refers to be used for really result's numerical value relatively.
Suppose that the attribute item of determining according to keyword that requestor that the analysis ability module of this keyword correspondence of free time obtains has the right to visit is a game service, and the attribute item of determining according to keyword that the requestor that the analysis ability module of this keyword correspondence of physical condition obtains has the right to visit is medical class business.Then query statement generation module 434 according in the former fuzzy request free time correspondence value be more, the accurate query statement of being determined is: game service: weights * moon hourage>60; According to the value of the physical condition correspondence in the former fuzzy request for well, the accurate query statement of being determined is: medical class business: month expense<100, and then be kept at logical connector AND in the register when decomposing according to the 431 pairs of vague description statements of query specification decomposing module, final generate will the data of sending to provide the accurate query statement of equipment to be: (game service: (weights (* month hourage)>60)) (AND (medical class business: (month expense)<100)).Certainly, if in the above-mentioned hypothesis, if comprise film class business in the attribute item that the requestor has the right to visit, then need between game service and the film business to connect, and final sum medical treatment class business connects the final accurate query statement of generation by logical connector according to the logical connector that provides in the analysis strategy configuration file.
In the above-described embodiments, query conversion device 13 externally application apparatus and data provides beyond the equipment, realizes with independent apparatus-form; Also can be arranged in the applications equipment, be connected by the interface module of the input/output interface module in the query conversion device with applications equipment; Or the data that is arranged on provides in the equipment, provides the interface module of equipment to be connected by input/output interface module in the query conversion device and data.
It more than is detailed description to Information Referral System specific embodiment of the present invention.By specific embodiment querying method of the present invention is elaborated again below.
The overview flow chart of querying method of the present invention may further comprise the steps as shown in Figure 5:
Step 501, applications equipment send the fuzzy query request and initiate fuzzy query;
Step 502, the fuzzy query request is converted to the accurate query requests that data provides equipment to discern, and should the accurate query requests data of sending to provides equipment;
Step 503, data provide equipment to search qualified Query Result information according to the accurate query requests that receives, and the object information that is found is returned to applications equipment.
Included content specifically describes in detail in Information Referral System of the present invention in above-mentioned fuzzy query request and the accurate query requests, repeats no more here.
Above-mentioned steps 502 can be carried out by the query conversion device of independent setting, also can provide equipment to carry out by data.
Provide the process of the accurate query requests that equipment can discern to be described in detail below in conjunction with a concrete example in the step 502 the fuzzy query request being converted to data.As shown in Figure 6, step 502 mainly may further comprise the steps:
Step 5021, the fuzzy query statement in the fuzzy query request that receives is decomposed, decomposite keyword and corresponding value, and preserve the logical connector in the query specification statement.
Being exemplified as of combination in this flow process, comprise in the fuzzy query request: free time, more AND physical condition was good.Then in this step, decomposing the back obtains: 1, free time<-more; 2, physical condition<-good.
Certainly, if include only keyword in the fuzzy query statement in this step, then only need to extract keyword; In addition, in the fuzzy query statement, also can not comprise logical connector, then also not need to preserve.
Step 5022, read first keyword that decomposites, search the attribute item of this keyword correspondence.Here, can search the corresponding attribute item of keyword according to the keyword that sets in advance and the corresponding relation of attribute item.
For example, first keyword that reads is free time, provides the attribute item of this keyword correspondence that obtains in the equipment to comprise in data: game service and film business.
Step 5023, filter according to requestor's authority attribute item to keyword.This step mainly is meant the attribute item of having the right to visit according to requestor in the requester accesses that the sets in advance control tabulation, with in the attribute item that is found in the step 5022 not the attribute item among the attribute item that above-mentioned requestor has the right to visit filter out.
Suppose that the attribute item that this requestor who obtains can visit comprises: game service and medical profession after then the attribute item of determining according to free time being filtered, have only stayed this attribute item of game service.
Step 5024, determine as accurately concrete the attribute item and the value of query statement according to the pairing value of attribute item, keyword of the keyword correspondence of being determined in the step 5023 and the analysis strategy configuration file that sets in advance.
The realization in this step of above-mentioned concrete example is determined the specific object item of accurate query statement and the description of value to inquiry system specific embodiment part according to the analysis strategy configuration file referring to above-mentioned.
Step 5025, judge whether all keywords that decomposite in the step 5021 have been finished the determining of concrete attribute item and value, if execution in step 5026 then; Otherwise execution in step 5027 reads next keyword, and execution in step 5023 then;
The logical connector of step 5026, basis storage in advance is connected the accurate query statement of generation with the specific object item of a plurality of keyword correspondences with value.
In above-mentioned flow process, if include only keyword in the fuzzy query statement in the fuzzy query request, then in Fig. 6, only need execution in step 5022 and step 5023, the attribute item that stays after filtering is direct, or after connecting by logical connector, provide equipment as the precise inquiry conditions data of sending to.Data provides equipment according to these attribute items as precise inquiry conditions in step 503, and in conjunction with the content of being asked, the Query Result information that correspondence is inquired returns to applications equipment.
Above-mentioned steps 5023 can specifically may further comprise the steps:
Step 50231, obtain the Resources list of requestor's correspondence, promptly extract the attribute item information that the requestor can visit according to requester accesses control tabulation.
In step 50232, the read step 5022 first attribute item in definite attribute item.
Step 50233, in the Resources list, search the attribute item that is read, and judge whether to find, if find execution in step 50234; Otherwise, execution in step 50236.
Step 50234, judge whether can read step 5022 in determined next attribute item, if execution in step 50235 then reads next attribute item, execution in step 50233 then; Otherwise finish this flow process.
Here, judge whether can read step 5022 in determined next attribute item, promptly judge whether all properties item of being determined in the step 5022 have been finished searching in the Resources list.
The current attribute item that reads in the determined attribute item in step 50236, the deletion step 5022, execution in step 50234 then.
In addition, above-mentioned steps 5024 can also specifically may further comprise the steps:
Step 50241, obtain the analysis strategy configuration file that sets in advance, and therefrom obtain the pairing configuration information of current keyword.
First attribute item to staying after the current keyword filtration in step 50242, the read step 5023.
Step 50243, search the analysis rule strategy of the attribute item correspondence that is read, determine the value and the qualified relation of one deck attribute item down according to pairing analysis rule strategy, and determined information is described according to form given in the analysis strategy configuration file.
Step 50244, judge whether all properties item that stays after filtering in the step 5023 is finished to its value of one deck attribute item and description of qualified relation down, if finish this step; Otherwise execution in step 50245 is filtered the next attribute item in the remaining attribute item in back in the read step 5023, execution in step 50243 then.
Be appreciated that the above only for preferred embodiment of the present invention, or not within the spirit and principles in the present invention not all in order to restriction the present invention, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (17)

1. querying method is characterized in that the method includes the steps of:
A, applications equipment comprise the fuzzy query request initiation inquiry of fuzzy query conditions by transmission;
B, basis are carried out the involved data of query conversion, fuzzy query conditions is converted to the precise inquiry conditions that data provides equipment to discern, and will comprises that the accurate query requests data of sending to of this precise inquiry conditions provides equipment;
C, data provide equipment to search the Query Result information that meets precise inquiry conditions according to the accurate query requests that receives, and the Query Result information that is found is returned to applications equipment.
2. method according to claim 1 is characterized in that, the described precise inquiry conditions that fuzzy query conditions is converted to data and provides equipment to discern comprises:
Fuzzy query conditions is converted to the information that data provides equipment to discern, the information of being changed out is adjusted according to requestor's authority, and with adjusted information as precise inquiry conditions.
3. method according to claim 2 is characterized in that, comprises in the described information of changing out: data provides the item of the attribute in the system;
Described authority according to the requestor is adjusted into the information of being changed out:
According to the attribute item information that the requestor can visit the attribute item of being changed out is filtered.
4. method according to claim 2 is characterized in that, described requestor's authority according to set in advance or provide the requester accesses control tabulation of obtaining the equipment to determine from data.
5. according to the method described in the claim 1, it is characterized in that described fuzzy query conditions is: keyword;
The described precise inquiry conditions that fuzzy query conditions is converted to data and provides equipment to discern comprises:
B11, the data of obtaining each the keyword correspondence in the fuzzy query request provide the item of the attribute in the system;
B12, with the attribute item that obtained as precise inquiry conditions.
6. method according to claim 5 is characterized in that, among the described step B12 with the attribute item that is obtained as precise inquiry conditions is:
With logical connector the attribute item that is obtained is connected, as precise inquiry conditions.
7. according to the method described in the claim 1, it is characterized in that described fuzzy query conditions is: keyword and corresponding fuzzy value, or the descriptive statement of forming by keyword or keyword and corresponding fuzzy value that connects of logical connector;
The described precise inquiry conditions that fuzzy query conditions is converted to data and provides equipment to discern comprises:
B21, the data of obtaining each the keyword correspondence in the fuzzy query request provide the item of the attribute in the system;
B22, according to the fuzzy value of keyword correspondence, determine the value of each attribute item of this keyword correspondence;
B23, the attribute item determined or attribute item and corresponding value are connected, generate precise inquiry conditions by logical connector.
8. method according to claim 7 is characterized in that, described fuzzy query conditions generates according to the keyword table of comparisons that comprises keyword and fuzzy value corresponding relation that sets in advance in the applications equipment;
Further comprise before the described step B21: keyword and corresponding fuzzy value are decomposed according to the keyword table of comparisons corresponding with the described keyword table of comparisons that sets in advance.
9. method according to claim 7 is characterized in that, described step B22 is:
According to the fuzzy value of keyword correspondence, in the analysis strategy configuration file that sets in advance, search the value of each attribute item of this keyword correspondence.
10. according to arbitrary described method in the claim 1 to 9, it is characterized in that, further comprise in the described fuzzy query request: requestor's sign and the content of being asked.
11., it is characterized in that described step B is carried out by the query conversion device of independent setting according to arbitrary described method in the claim 1 to 9.
12., it is characterized in that described step B provides equipment to carry out by data according to arbitrary described method in the claim 1 to 9.
13. an inquiry system is characterized in that, this system comprises:
Applications equipment is used for sending the fuzzy query request to the query conversion device, and reception provides the Query Result information of equipment from query conversion device or data;
The query conversion device, be used for according to carrying out the involved data of query conversion, to be converted to the accurate query requests that data provides equipment to discern from the fuzzy query request of applications equipment, and provide equipment with the accurate query requests data of changing out of sending to, or the further reception data Query Result information that provides equipment to return, and this Query Result information sent to corresponding applications equipment according to described accurate query requests;
Data provides equipment, be used to receive accurate query requests from the query conversion device, obtain corresponding Query Result information according to this accurate query requests, and the Query Result information obtained returned to corresponding applications equipment by the query conversion device, or directly the Query Result information of being obtained is returned to corresponding external unit.
14. system according to claim 13 is characterized in that, comprises in the described query conversion device:
IO interface, being used for query conversion device and applications equipment and data provides equipment to communicate, and receives the fuzzy query request from applications equipment, and the fuzzy query conditions in this fuzzy query request is sent to the query translation module; And reception provides equipment to send accurate query requests according to this precise inquiry conditions to data from the precise inquiry conditions of query translation module; Or the Query Result information that further data is provided equipment to return according to accurate query requests sends to applications equipment;
Data memory module is used for the storing queries translation module and carries out the involved data of query conversion;
The query translation module is used for carrying out alternately with data memory module, will be from the fuzzy query conditions of IO interface, and the precise inquiry conditions that the data of being converted to provides equipment to discern, and the precise inquiry conditions after will changing returns to IO interface.
15. system according to claim 14 is characterized in that, comprises in the described query translation module:
The query specification decomposing module is used for decomposing carry out keyword from the fuzzy query conditions of IO interface according to the keyword table of comparisons of data memory module, and fuzzy query conditions is resolved into keyword and corresponding value;
Analysis strategy is selected module, and the keyword that is used for decompositing according to the query specification decomposing module is determined analysis ability module corresponding in the analysis strategy competence set module with the keyword that data memory module is stored with the corresponding relation data of analysis ability module;
Comprise a plurality of analysis ability modules in the analysis strategy competence set module, the corresponding keyword of each analysis ability module is used for attribute item and the value of determining correspondence analyzed in pairing keyword and fuzzy value;
The query statement generation module is used for attribute item that the analysis ability module analysis according to analysis strategy competence set module goes out and value generated query statement as precise inquiry conditions, and the precise inquiry conditions that generates is sent to input/output interface module.
16. a query conversion device is characterized in that, comprises in this device:
IO interface, being used for query conversion device and applications equipment and data provides equipment to communicate, and receives the fuzzy query request from applications equipment, and the fuzzy query conditions in this fuzzy query request is sent to the query translation module; And receive from the precise inquiry conditions after the translation of query translation module, provide equipment to send accurate query requests according to this precise inquiry conditions to data; Or the Query Result information that further data is provided equipment to return according to accurate query requests sends to applications equipment;
Data memory module is used for the storing queries translation module and carries out the involved data of query conversion;
The query translation module is used for carrying out alternately with data memory module, will be from the fuzzy query conditions of IO interface, and the precise inquiry conditions that the data of being converted to provides equipment to discern, and the precise inquiry conditions after will changing returns to IO interface.
17. device according to claim 16 is characterized in that, comprises in the described query translation module:
The query specification decomposing module is used for decomposing carry out keyword from the fuzzy query conditions of IO interface according to the keyword table of comparisons of data memory module, and fuzzy query conditions is resolved into keyword and corresponding value;
Analysis strategy is selected module, and the keyword that is used for decompositing according to the query specification decomposing module is determined analysis ability module corresponding in the analysis strategy competence set module with the keyword that data memory module is stored with the corresponding relation data of analysis ability module;
Comprise a plurality of analysis ability modules in the analysis strategy competence set module, the corresponding keyword of each analysis ability module is used for attribute item and the value of determining correspondence analyzed in pairing keyword and fuzzy value;
The query statement generation module is used for attribute item that the analysis ability module analysis according to analysis strategy competence set module goes out and value generated query statement as precise inquiry conditions, and the precise inquiry conditions that generates is sent to input/output interface module.
CNB2005101171501A 2005-11-01 2005-11-01 Inquiry method and system, and inquiry switching device Active CN100395753C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005101171501A CN100395753C (en) 2005-11-01 2005-11-01 Inquiry method and system, and inquiry switching device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005101171501A CN100395753C (en) 2005-11-01 2005-11-01 Inquiry method and system, and inquiry switching device

Publications (2)

Publication Number Publication Date
CN1851700A CN1851700A (en) 2006-10-25
CN100395753C true CN100395753C (en) 2008-06-18

Family

ID=37133179

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005101171501A Active CN100395753C (en) 2005-11-01 2005-11-01 Inquiry method and system, and inquiry switching device

Country Status (1)

Country Link
CN (1) CN100395753C (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103124972B (en) * 2010-09-30 2016-10-19 皇家飞利浦电子股份有限公司 Medical query refinement system, method, device and include the work station of medical query system
KR101236481B1 (en) * 2010-11-04 2013-02-22 전자부품연구원 Sharing method of contents in homenetwork system
CN103593412B (en) * 2013-10-24 2017-10-03 北京京东尚科信息技术有限公司 A kind of answer method and system based on tree structure problem
CN106445923A (en) * 2016-10-18 2017-02-22 上海众恒信息产业股份有限公司 Stack-framework-based enquiry system and enquiry method
CN111459978A (en) * 2020-03-20 2020-07-28 平安国际智慧城市科技股份有限公司 Query method, query device, computer equipment and storage medium
CN111914155A (en) * 2020-08-06 2020-11-10 南京力通达电气技术有限公司 Query conversion system and method based on keyword matching
CN115687276A (en) * 2022-11-18 2023-02-03 抖音视界有限公司 File processing method and device, electronic equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1601524A (en) * 2003-09-25 2005-03-30 鸿富锦精密工业(深圳)有限公司 Fuzzy inquiry system and method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1601524A (en) * 2003-09-25 2005-03-30 鸿富锦精密工业(深圳)有限公司 Fuzzy inquiry system and method

Also Published As

Publication number Publication date
CN1851700A (en) 2006-10-25

Similar Documents

Publication Publication Date Title
CN100395753C (en) Inquiry method and system, and inquiry switching device
US7702685B2 (en) Querying social networks
JP4249726B2 (en) Method and system for indexing and searching database groups
US20060161655A1 (en) Method and a system to organize and manage a semantic web service discovery
CN105051728A (en) Data base query translation system
CN107480252A (en) A kind of data query method, client, service end and system
US20070271228A1 (en) Documentary search procedure in a distributed system
Paulus et al. Gathering and Combining Semantic Concepts from Multiple Knowledge Bases.
CN109948150A (en) The high performance service context of knowledge based map finds method in a kind of multi-domain environment
CN109063114A (en) Heterogeneous data integrating method, device, terminal and the storage medium of energy cloud platform
US20120109933A1 (en) Method and apparatus for federated search
CN106484815A (en) A kind of automatic identification optimization method for retrieving scene based on mass data class SQL
US20180285356A1 (en) Object search server, system having same and used to search for object based on color-sentiment, and method thereof
Surianarayanan et al. Towards quicker discovery and selection of web services considering required degree of match through indexing and decomposition of non–functional constraints
Piller et al. SemSub: Semantic subscriptions for the MQTT protocol
Zhang OWL-S based web service discovery in distributed system
US9281994B2 (en) Processing algebraic expressions for keyed data sets
Hoang et al. The virtual query language for information retrieval in the semanticLIFE framework
Farooq et al. An efficient technique for web services identification
JP3820661B2 (en) Hypertext management device
Haase et al. Personalized information retrieval in bibster, a semantics-based bibliographic peer-to-peer system
Castano et al. Ontology knowledge spaces for semantic collaboration in networked enterprises
Aslam et al. Semantic based query rewriting in heterogeneous sources
KR100908105B1 (en) Method on patent information providing according to user classification
Bügel et al. Application of semantic services in ORCHESTRA

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant