CN110020040A - Inquire the methods, devices and systems of data - Google Patents

Inquire the methods, devices and systems of data Download PDF

Info

Publication number
CN110020040A
CN110020040A CN201710706286.9A CN201710706286A CN110020040A CN 110020040 A CN110020040 A CN 110020040A CN 201710706286 A CN201710706286 A CN 201710706286A CN 110020040 A CN110020040 A CN 110020040A
Authority
CN
China
Prior art keywords
data
inquiry
keyword
data identification
field
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.)
Granted
Application number
CN201710706286.9A
Other languages
Chinese (zh)
Other versions
CN110020040B (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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology 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 Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201710706286.9A priority Critical patent/CN110020040B/en
Publication of CN110020040A publication Critical patent/CN110020040A/en
Application granted granted Critical
Publication of CN110020040B publication Critical patent/CN110020040B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/332Query formulation
    • G06F16/3325Reformulation based on results of preceding query
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/951Indexing; Web crawling techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]

Landscapes

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

Abstract

This application discloses the methods, devices and systems of inquiry data.Wherein, a specific embodiment of this method includes: that the inquiry field of key word of the inquiry is sent to keyword storage server;Receive the first verification data and inquire Data Identification associated by each value in field that keyword storage server is returned according to above-mentioned inquiry field;Data Identification associated by each value in inquiry field is sent to results server, so that the above results server Data Identification according to associated by each value in inquiry field obtains query result, wherein, key word of the inquiry and corresponding query result are associated with identical Data Identification;The query result and the second verify data that reception result server returns;Match in response to first verification data and the second verify data, above-mentioned query result is determined as effective query result.The validity of inquiry data can be improved in the embodiment.

Description

Inquire the methods, devices and systems of data
Technical field
This application involves field of computer technology, and in particular to Internet technical field, more particularly to the side of inquiry data Method, device and system.
Background technique
With the development of internet, data owner often stores data in third-party service platform.User query When data, inquiry request can be sent to third-party service platform according to the information that data owner provides.If data owner Data by damage from third-party, modification, it will cause query result insincere, and then the benefit damage of user, data owner. Therefore, the validity of data storage and query is not high.
Summary of the invention
The purpose of the application is to propose a kind of methods, devices and systems of improved inquiry data, to solve above carry on the back The technical issues of scape technology segment is mentioned.
In a first aspect, the embodiment of the present application provides a kind of method for inquiring data, this method comprises: by key word of the inquiry Inquiry field be sent to keyword storage server;Receive keyword storage server is returned according to above-mentioned inquiry field the Data Identification associated by each value in one verify data and inquiry field;Each value in inquiry field is sent to results server Associated Data Identification, so that the Data Identification acquisition according to associated by each value in inquiry field of the above results server is looked into Ask result, wherein key word of the inquiry and corresponding query result are associated with identical Data Identification;Reception result service The query result and the second verify data that device returns;Match in response to first verification data and the second verify data, it will be above-mentioned Query result is determined as effective query result.
In some embodiments, by the inquiry field of key word of the inquiry be sent to keyword storage server include: will be upper It states inquiry field and is divided at least one keyword to divide section according to predetermined keyword segmentation rule;The key obtained according to segmentation Word divides section and sends inquiry request to keyword storage server associated with above-mentioned keyword segmentation section respectively, for each Keyword storage server obtains Data Identification associated by each value in first verification data and inquiry field.
In some embodiments, Data Identification associated by each value obtains by the following method in above-mentioned inquiry field: First keyword storage server obtains primary data logo collection according to the first keyword segmentation section and is sent to the second key Word storage server, wherein primary data mark is Data Identification associated by the first keyword segmentation section;By primary data mark Know set and be divided into upper bound logo collection, intermediate logo collection and lower bound logo collection, wherein upper bound mark is above-mentioned inquiry field In Data Identification associated by maximum first keyword segmentation section, lower bound mark the smallest first is closed in above-mentioned inquiry field Key word divides Data Identification associated by section;Second keyword storage server and keyword storage server roots at different levels later The Data Identification in upper bound logo collection and lower bound logo collection is filtered step by step according to corresponding keyword segmentation section, to screen out It is not belonging to Data Identification associated by the value of inquiry field;By filtered upper bound logo collection and lower bound logo collection with it is above-mentioned Data Identification in intermediate logo collection is determined as inquiring Data Identification associated by each value in field.
In some embodiments, first verification data includes the Data Identification that keyword storage server filters out.
Second aspect, present invention also provides a kind of devices for inquiring data, which includes: the first sending module, is matched It sets for the inquiry field of key word of the inquiry to be sent to keyword storage server;First receiving module is configured to receive In the first verification data and inquiry field that keyword storage server is returned according to above-mentioned inquiry field associated by each value Data Identification;Second sending module is configured to send data mark associated by each value in inquiry field to results server Know, so that the above results server Data Identification according to associated by each value in inquiry field obtains query result, wherein look into It askes keyword and corresponding query result is associated with identical Data Identification;Second receiving module is configured to receive The query result and the second verify data that results server returns;Result verification module is configured in response to the first verifying number Match according to the second verify data, above-mentioned query result is determined as effective query result.
In some embodiments, the first sending module includes: cutting unit, is configured to above-mentioned inquiry field according to pre- Determining keyword segmentation rule is divided at least one keyword to divide section;Transmission unit is configured to the pass obtained according to segmentation Key word divides section and sends inquiry request to keyword storage server associated with above-mentioned keyword segmentation section respectively, for each A keyword storage server obtains Data Identification associated by each value in first verification data and inquiry field.
In some embodiments, Data Identification associated by each value includes above-mentioned keyword storage in above-mentioned inquiry field The Data Identification that server obtains by the following method: the first keyword storage server is obtained according to the first keyword segmentation section Primary data logo collection is simultaneously sent to the second keyword storage server, and wherein primary data mark is the segmentation of the first keyword Data Identification associated by section;Primary data logo collection is divided into upper bound logo collection, intermediate logo collection and lower bound mark Set, wherein upper bound mark is Data Identification associated by maximum first keyword segmentation section, lower bound in above-mentioned inquiry field Mark is Data Identification associated by the smallest first keyword segmentation section in above-mentioned inquiry field;Second keyword storage service Device and keyword storage servers at different levels later divide section step by step to upper bound logo collection and lower boundary mark according to corresponding keyword The Data Identification known in set is filtered, and is not belonging to Data Identification associated by the value of inquiry field to screen out;After filtering Upper bound logo collection and lower bound logo collection and above-mentioned intermediate logo collection in Data Identification be determined as inquiring it is each in field Data Identification associated by a value.
In some embodiments, first verification data includes the Data Identification that keyword storage server filters out.
The third aspect, present invention also provides a kind of systems for inquiring data, and above system includes keyword storage service Device, results server and terminal, in which: terminal is configured to for the inquiry field of key word of the inquiry to be sent to keyword storage clothes Business device;Keyword storage server is configured to be obtained according to above-mentioned inquiry field each in first verification data and inquiry field The associated Data Identification of value simultaneously feeds back to terminal;Terminal is also configured to reception keyword storage server returns first and tests Data Identification associated by each value in data and inquiry field is demonstrate,proved, and sends each value institute in inquiry field to results server Associated Data Identification;Results server is configured to the Data Identification according to associated by each value in inquiry field and obtains inquiry As a result and terminal is fed back to, wherein key word of the inquiry and corresponding query result are associated with identical Data Identification;Eventually End is also configured to the query result and the second verify data of reception result server return, and in response to first verification data and Second verify data matches, and above-mentioned query result is determined as effective query result.
The methods, devices and systems of inquiry data provided by the present application, by terminal by the inquiry field of key word of the inquiry It is sent to keyword storage server;Keyword storage server obtains first verification data and inquiry according to above-mentioned inquiry field Data Identification associated by each value and terminal is fed back in field;Terminal receives keyword storage server returns first and tests Data Identification associated by each value in data and inquiry field is demonstrate,proved, and sends each value institute in inquiry field to results server Associated Data Identification;Results server Data Identification acquisition query result according to associated by each value in inquiry field is simultaneously anti- It is fed to terminal, wherein key word of the inquiry and corresponding query result are associated with identical Data Identification;Terminal receives knot The query result and the second verify data that fruit server returns, and in response to first verification data and the second verify data phase Match, above-mentioned query result is determined as effective query result.Due to key word of the inquiry and query result be respectively stored in it is different On server, it is associated between key word of the inquiry and query result by identical Data Identification, and stored according to keyword The verify data that server and results server return respectively is verified, so as to improve the validity of inquiry data.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is that this application can be applied to exemplary system architecture figures therein;
Fig. 2 is the flow chart according to one embodiment of the method for the inquiry data of the application;
Fig. 3 is the structural schematic diagram that one embodiment of device of data is inquired according to the application;
Fig. 4 is the structural schematic diagram according to one embodiment of the system of the inquiry data of the application;
Fig. 5 is adapted for the structural representation of the computer system for the terminal device or server of realizing the embodiment of the present application Figure.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to Convenient for description, part relevant to related invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 is shown can be using the exemplary system architecture 100 of the embodiment of the method for the inquiry data of the application.
As shown in Figure 1, system architecture 100 may include terminal device 101,102, server 105 and data storing platform 103,104.Terminal device 101,102, server 105 and data storing platform 103,104 can pass through network between any two Communication connection.Here network may include various connection types, such as wired, wireless communication link or fiber optic cables etc. Deng.
User can be used terminal device 101,102 and be interacted by network with server 105, to receive or send message Deng.Various telecommunication customer end applications can be installed, such as the application of shopping class, searching class are applied, immediately on terminal device 101,102 Means of communication etc..
Terminal device 101,102 can be the various electronic equipments with communication function, including but not limited to smart phone, Tablet computer, E-book reader, pocket computer on knee and desktop computer etc..
Server 105 can be to provide the server of various services, such as to the various applications on terminal device 101,102 The background server etc. that equal offers are supported.Server 105 can analyze the data such as the inquiry or unlocking request received Deng processing, and processing result is fed back into terminal device 101,102.For example, by keyword storage server and results server Address feed back to terminal device 101,102.
Server 105 can send data to data storing platform 103,104 by network and be stored.In the application In, every data can be divided into two parts by server 105, be respectively stored on data storing platform 103 and 104, this two Dividing can be marked by an identical Data Identification.For example, when the data of server 105 are with key assignments (key-value) When describing to form, key (key) be can store in data storing platform 103, and value (value) can store in data storing platform 104.Data storing platform 103,104 may include one or more storage equipment respectively.For example, user can pass through end End equipment 101,102 inquires data.Wherein, inquiry request is sent to data storing platform 103 by terminal device 101,102, The corresponding Data Identification of key word of the inquiry is obtained, then, number is sent to data storing platform 104 by terminal device 101,102 According to mark, query result is obtained.
Generally, the method for inquiry data provided by the present application can be applied in terminal device 101,102.Correspondingly, The device of inquiry data provided by the present application can be set in terminal device 101,102.
It should be understood that the number of terminal device, data storing platform and server in Fig. 1 is only schematical.Root It factually now needs, can have any number of terminal device, data storing platform and server.
With continued reference to Fig. 2, Fig. 2 shows one embodiment of the method for the inquiry data of the application.The inquiry data Method, comprising the following steps:
Step 201, the inquiry field of key word of the inquiry is sent to keyword storage server.
In the present embodiment, operation have inquiry data method electronic equipment (such as terminal device shown in FIG. 1 101, 102) the inquiry field of the key word of the inquiry of data to be checked can be sent to keyword storage server.Here, to be checked Data can be the arbitrary data, such as student performance, case history etc. that user wants inquiry.
In general, when user query data query result can be obtained by the inquiry field of key word of the inquiry.For example, inquiry When keyword is student's number, the occurrence that student can be numbered obtains query result student performance etc. as inquiry field. In the present embodiment, key word of the inquiry query result corresponding with inquiry field can be respectively stored on different servers, Key word of the inquiry query result corresponding with inquiry field can be associated by identical Data Identification.For example, data are gathered around Student can be numbered and be stored in keyword storage server (number as shown in Figure 1 by person's of having (server 105 as shown in Figure 1) According to storage platform 103) on, each student number can also be generated one random number by data owner by machine, then root Student performance is stored on results server (data storing platform 104 as shown in Figure 1) according to the random number.
Step 202, the first verification data and inquiry that keyword storage server is returned according to above-mentioned inquiry field are received Data Identification associated by each value in field.
In the present embodiment, keyword storage server can generate first verification data according to above-mentioned inquiry field, and Obtain Data Identification associated by each value in inquiry field.Operation has electronic equipment (such as Fig. 1 institute of the method for inquiry data 102) terminal device 101 that shows can receive above-mentioned first verification data and above-mentioned Data Identification from keyword storage server.
Here, first verification data can be keyword storage server and obtain associated by each value according to inquiry field Data Identification during obtain, redundant data for being verified to query result.For example, first verification data can To include but is not limited at least one of following: Data Identification associated by each value, these Data Identifications generate in inquiry field Validation value etc..Optionally, first verification data may include the Data Identification that keyword storage server filters out.
It is appreciated that since key word of the inquiry query result corresponding with inquiry field can pass through identical Data Identification It is associated, keyword storage server can be according to the corresponding Data Identification of value each in inquiry field acquisition inquiry field. For example, some value (such as student number 0012345) in inquiry field can correspond to a Data Identification FF0F (binary number 1111111100001111).When inquiring field is student number 0012345~0012354, keyword storage server can be returned This corresponding Data Identification of 10 student numbers.
Step 203, Data Identification associated by each value in inquiry field is sent to results server, for result service Device Data Identification according to associated by each value in inquiry field obtains query result.
In the present embodiment, operation have inquiry data method electronic equipment (such as terminal device shown in FIG. 1 101, It 102) then can be into results server sending step 202 from the received Data Identification of keyword storage server, for knot Fruit server is searched corresponding query result according to these Data Identifications and is fed back.When the method for the inquiry data of the present embodiment is answered When for students' result enquiry, which for example can be examining for 0012345~0012354 corresponding 10 student of student number Try achievement etc..
Results server can also generate the second verify data while obtaining query result.Wherein, the second verifying number According to can be it is that results server obtains when according to inquiry word segment search query result, for what is verified to query result Redundant data.Second verify data for example can include but is not limited to pieces of data and is digitally signed by preset-key algorithm The authentication key of generation.Wherein, preset key algorithm can be the well known algorithm for digital signature, such as secure hash Algorithm (The Secure Hash Algorithm, SHA), MD5 algorithm (Message-Digest Algorithm 5), RSA are public Key Encryption Algorithm, DES (Data Encryption Standard, data encryption standards) algorithm etc., details are not described herein.
Step 204, the query result and the second verify data that reception result server returns.
In the present embodiment, operation have inquiry data method electronic equipment (such as terminal device shown in FIG. 1 101, 102) query result that can be then returned from results server reception result server and the second verify data.
Step 205, match in response to first verification data and the second verify data, above-mentioned query result is determined as having Imitate query result.
In the present embodiment, operation have inquiry data method electronic equipment (such as terminal device shown in FIG. 1 101, 102) first verification data and the second verify data may further be matched, if first verification data and the second verifying number According to matching, then above-mentioned query result can be determined as effective query result.
Here, the matching of first verification data and the second verify data can be the matching of consistency.Such as, when the first verifying When inquiring Data Identification associated by each value in field when data, above-mentioned electronic equipment can be generated according to these Data Identifications The authentication key of generation is digitally signed by preset-key algorithm, when the certification of the authentication key and the second verify data is close When key is consistent, first verification data and the second verify data match.
When first verification data and the second verify data do not match that, above-mentioned electronic equipment can determine query result mistake It is accidentally or invalid, inquiry error or unavailable emphasis can also be provided.
In some optional implementations of the present embodiment, data owner can also be by key word of the inquiry according to scheduled Segmentation rule is split, and different segmentation sections is stored in different keyword storage servers.The scheduled segmentation Rule can be issued by data owner.For example, can be by from the every 4 segmentation sections of low level, then student's number 0012345 can To be divided into segmentation section " 001 ", " 2345 ".At this point, the inquiry field of key word of the inquiry is sent to key by above-mentioned electronic equipment Word storage server may include: to be divided at least one keyword to divide according to predetermined keyword segmentation rule inquiry field Section;The keyword segmentation section obtained according to segmentation is sent out to keyword storage server associated with keyword segmentation section respectively Inquiry request is sent, so that each keyword storage server obtains in first verification data and inquiry field associated by each value Data Identification.For example, key word of the inquiry is student's number, and inquiry field is 0002345~0012353, and above-mentioned electronics is set The standby inquiry field that can will change is divided into " 000~001 ", " 345~353 ", and is sent respectively to the first keyword storage service Device, the second keyword storage server, so that the first keyword storage server, the second keyword storage server are according to predetermined Data Identification associated by each value in Rule first verification data and inquiry field.
In some implementations, keyword storage server is obtained in inquiry field by the following method associated by each value Data Identification: the first keyword storage server obtains primary data logo collection according to the first keyword segmentation section and is sent to Second keyword storage server, wherein primary data mark is Data Identification associated by the first keyword segmentation section;It will be first Beginning Data Identification set is divided into upper bound logo collection, intermediate logo collection and lower bound logo collection, wherein upper bound mark is inquiry Data Identification associated by maximum first keyword segmentation section in field, lower bound mark are the smallest first passes in inquiry field Key word divides Data Identification associated by section;Second keyword storage server and keyword storage server roots at different levels later The Data Identification in upper bound logo collection and lower bound logo collection is filtered step by step according to corresponding keyword segmentation section;It will filtering Upper bound logo collection and lower bound logo collection afterwards is determined as inquiring each in field with the Data Identification in intermediate logo collection The associated Data Identification of value.When inquiry field is divided into more segmentation sections, and so on, the second keyword storage clothes Device and the keyword storage servers at different levels later of being engaged in are according to the high-order sequence to status successively to upper bound logo collection and lower bound Data Identification in logo collection is filtered.
As an example, being student's number with key word of the inquiry, inquiry field is 000345~002353, above-mentioned electronic equipment It can will change inquiry field to be divided into for " 000~002 ", " 345~353 ", above-mentioned electronic equipment can be by high-order keyword Segmentation section " 000~002 " is sent to the first keyword storage server, is stored by the first keyword storage server traversal The high order field of student's number obtains the student that high order field is " 000~002 " and numbers corresponding Data Identification, such as obtains Be that 000000~002999 student numbers corresponding Data Identification, identified as primary data, and pass through primary data mark Know set to be saved.Meanwhile above-mentioned electronic equipment can be believed using these Data Identifications as redundant data as the first verifying A part of breath.It is appreciated that being identified by the primary data that the first keyword storage server obtains, some data mark Know, if 000000~000344,002354~002999 corresponding Data Identification is not that user wants, this partial data mark It is contained mainly in Data Identification associated by the first keyword segmentation section minimum and maximum in inquiry field, it is also necessary to according to Other bit fields are screened.Primary data logo collection can be divided into upper bound identification sets by the first keyword storage server Conjunction, intermediate logo collection and lower bound logo collection, wherein the associated data mark of inquiry field that it is 000 that upper bound mark, which is high-order, Know, lower bound mark is Data Identification associated by the high-order inquiry field for 002;The inquiry word that it is 001 that centre mark, which is high-order, Data Identification associated by section.
Primary data logo collection can be sent to the second keyword storage server by the first keyword storage server. Second keyword storage server can inquire field " 345~353 " to the upper bound according to from above-mentioned electronic equipment received second Data Identification in logo collection and lower bound logo collection is filtered.Data Identification in the logo collection of the upper bound, second is closed Key word storage server can by inquire field upper bound range 353 be filtered, screen out the second inquiry field be 354~ The 999 corresponding Data Identification of inquiry field.Similarly, to the Data Identification in lower bound logo collection, the second keyword storage clothes Business device can be filtered by inquiring the lower bound range 345 of field, screen out the inquiry word that the second inquiry field is 000~344 The corresponding Data Identification of section.Optionally, the second keyword storage server can be by Bloom filter to upper bound logo collection It is filtered with the Data Identification in lower bound logo collection.
In some optional implementations of the present embodiment, first verification data includes that keyword storage server filters out Data Identification, above-mentioned electronic equipment can be signed according to these Data Identifications by Digital Signature Algorithm (such as MD5 digest) Name obtains authentication key.When keyword storage server has multistage, above-mentioned electronic equipment can also from afterbody successively to The preceding key value for calculating root node, wherein the key of superior node is the cascade of the key value of downstream site, afterbody node It is calculated by the Data Identification for being included.Above-mentioned electronic equipment can test the authentication key that this is calculated as first Demonstrate,prove the validation value of data.Second verify data may include that the Data Identification of the pieces of data saved in results server passes through number The key value that word signature algorithm (such as MD5 digest) is signed, and the cascade for calculating each key value obtains authentication key work For the second verify data.When first verification data is consistent with the second verify data, above-mentioned electronic equipment, which can ask, determines first Verify data matches with the second verify data, and otherwise, first verification data is not matched that with the second verify data.
The method of the inquiry data of the present embodiment, since key word of the inquiry and query result are respectively stored in different services It on device, is associated between key word of the inquiry and query result by identical Data Identification, and according to keyword storage service The verify data that device and results server return respectively is verified, so as to improve the validity of inquiry data.
With further reference to Fig. 3, as the realization of the method to the corresponding inquiry data of embodiment illustrated in fig. 2, the application is mentioned A kind of one embodiment of device for inquiring data is supplied.
As shown in figure 3, the device 300 of the inquiry data of the present embodiment includes: that the first sending module 301, first receives mould Block 302, the second sending module 303, the second receiving module 304 and result verification module 305.Wherein, the first sending module 301 can Keyword storage server is sent to the inquiry field for being configured to key word of the inquiry;First receiving module 302 can match It sets for receiving the first verification data and inquire each in field that keyword storage server is returned according to above-mentioned inquiry field The associated Data Identification of value;Second sending module 303 may be configured to send to results server each in inquiry field The associated Data Identification of value, so that the above results server Data Identification according to associated by each value in inquiry field obtains Query result, wherein key word of the inquiry and corresponding query result are associated with identical Data Identification;Second receives mould Block 304 may be configured to the query result and the second verify data of reception result server return;Result verification module 305 can To be configured to match in response to first verification data and the second verify data, above-mentioned query result is determined as effective query As a result.
In some optional implementations of the present embodiment, the first sending module 301 may include: that cutting unit (does not show Out), it may be configured to be divided at least one keyword to divide according to predetermined keyword segmentation rule above-mentioned inquiry field Section;Transmission unit (not shown), may be configured to according to segmentation obtain keyword segmentation section respectively to above-mentioned keyword Divide the associated keyword storage server of section and send inquiry request, is tested so that each keyword storage server obtains first Demonstrate,prove Data Identification associated by each value in data and inquiry field.
In some optional implementations of the present embodiment, Data Identification packet associated by each value in above-mentioned inquiry field Include the Data Identification that above-mentioned keyword storage server obtains by the following method: the first keyword storage server is according to first Keyword segmentation section obtains primary data logo collection and is sent to the second keyword storage server, and wherein primary data identifies It is Data Identification associated by the first keyword segmentation section;Primary data logo collection is divided into upper bound logo collection, intermediate mark Know set and lower bound logo collection, wherein upper bound mark is maximum first keyword segmentation Duan Suoguan in above-mentioned inquiry field The Data Identification of connection, lower bound mark are Data Identifications associated by the smallest first keyword segmentation section in above-mentioned inquiry field; Second keyword storage server and keyword storage servers at different levels later divide section step by step to upper according to corresponding keyword Data Identification in boundary's logo collection and lower bound logo collection is filtered, and is not belonging to associated by the value of inquiry field with screening out Data Identification;Data Identification in filtered upper bound logo collection and lower bound logo collection and above-mentioned intermediate logo collection is true It is set to Data Identification associated by each value in inquiry field.
In some optional implementations of the present embodiment, first verification data may include keyword storage server mistake The Data Identification filtered.
It is worth noting that inquire all modules for being recorded in the devices 300 of data with it is each in the method with reference to Fig. 2 description A step is corresponding.As a result, above with respect to inquiry data method description operation and feature be equally applicable to device 300 and its In include module or unit, details are not described herein.
It will be understood by those skilled in the art that the device 300 of above-mentioned inquiry data can also include some other known knots Structure, such as processor, memory etc., in order to unnecessarily obscure embodiment of the disclosure, these well known structures in Fig. 3 not It shows.
As shown in figure 4, showing the system 400 of the inquiry data of the application one embodiment.System 400 may include closing Key word storage server 401, results server 402 and terminal 403.Wherein: terminal 403 may be configured to key word of the inquiry Inquiry field be sent to keyword storage server 401;Keyword storage server 401 may be configured to be looked into according to above-mentioned Field is ask to obtain Data Identification associated by each value in first verification data and inquiry field and feed back to terminal 403;Terminal 403 can also be configured to receive the first verification data and inquire each value in field that keyword storage server 401 returns Associated Data Identification, and Data Identification associated by each value in inquiry field is sent to results server 402;As a result it takes Business device 402 may be configured to the Data Identification according to associated by each value in inquiry field and obtain query result and feed back to end End 403, wherein key word of the inquiry and corresponding query result are associated with identical Data Identification;Terminal 403 can be with Be configured to the query result and the second verify data of the return of reception result server 402, and in response to first verification data and Second verify data matches, and above-mentioned query result is determined as effective query result.
Wherein, the device 300 of the method 200 of the inquiry data in previous embodiment and inquiry data can be adapted for system Terminal 403 in 400, details are not described herein.
Below with reference to Fig. 5, it illustrates the terminal device/server computers for being suitable for being used to realize the embodiment of the present application The structural schematic diagram of system 500.Terminal device/server shown in Fig. 5 is only an example, should not be to the embodiment of the present application Function and use scope bring any restrictions.
As shown in figure 5, computer system 500 includes central processing unit (CPU) 501, it can be read-only according to being stored in Program in memory (ROM) 502 or be loaded into the program in random access storage device (RAM) 503 from storage section 508 and Execute various movements appropriate and processing.In RAM503, also it is stored with system 500 and operates required various programs and data. CPU601, ROM 502 and RAM503 is connected with each other by bus 504.Input/output (I/O) interface 505 is also connected to bus 504。
I/O interface 505 is connected to lower component: the importation including keyboard, touch screen, microphone or scanner etc. 506;Output par, c 507 including cathode-ray tube (CRT), liquid crystal display (LCD) etc.;Storage unit including hard disk etc. Divide 508;And the communications portion 509 of the network interface card including LAN card, modem etc..Communications portion 609 via The network of such as internet executes communication process.Driver 510 is also connected to I/O interface 505 as needed.Detachable media 511, such as disk, CD, magneto-optic disk, semiconductor memory etc., are mounted on as needed on driver 510, in order to from The computer program read thereon is mounted into storage section 508 as needed.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communications portion 509, and/or from detachable media 511 are mounted.When the computer program is executed by central processing unit (CPU) 601, limited in execution the present processes Above-mentioned function.It should be noted that non-volatile computer-readable medium involved in the application can be non-volatile calculating Machine readable signal medium or non-volatile computer readable storage medium storing program for executing either the two any combination.It is non-volatile What computer readable storage medium for example may be-but not limited to-electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor is System, device or device, or any above combination.The more specific example of non-volatile computer readable storage medium storing program for executing can be with Including but not limited to: there is electrical connection, the portable computer diskette, hard disk, random access storage device of one or more conducting wires (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc Read-only memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this application, Non-volatile computer readable storage medium storing program for executing can be any tangible medium for including or store program, which can be commanded Execution system, device or device use or in connection.And in this application, computer-readable signal media can To include in a base band or as the data-signal that carrier wave a part is propagated, wherein carrying computer-readable program generation Code.The data-signal of this propagation can take various forms, including but not limited to electromagnetic signal, optical signal or above-mentioned any Suitable combination.Computer-readable signal media can also be any computer-readable other than computer readable storage medium Medium, the computer-readable medium can be sent, propagated or transmitted for being used by instruction execution system, device or device Or program in connection.The program code for including on computer-readable medium can pass with any suitable medium It is defeated, including but not limited to: wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the application, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction Combination realize.
Being described in module involved in the embodiment of the present application can be realized by way of software, can also be by hard The mode of part is realized.Described module also can be set in the processor, for example, can be described as: a kind of processor packet Include the first sending module, the first receiving module, the second sending module, the second receiving module and result verification module.Wherein, these The title of module does not constitute the restriction to the unit itself under certain conditions, for example, the first sending module can also be retouched It states as " being configured to for the inquiry field of key word of the inquiry to be sent to the module of keyword storage server ".
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art Member is it should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from foregoing invention design, it is carried out by above-mentioned technical characteristic or its equivalent feature Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed herein Can technical characteristic replaced mutually and the technical solution that is formed.

Claims (11)

1. a kind of method for inquiring data, which is characterized in that the described method includes:
The inquiry field of key word of the inquiry is sent to keyword storage server;
Receive the first verification data and inquire each value in field that keyword storage server is returned according to the inquiry field Associated Data Identification;
Data Identification associated by each value in inquiry field is sent to results server, so that the results server is according to looking into It askes Data Identification associated by each value in field and obtains query result, wherein key word of the inquiry and corresponding inquiry knot Fruit is associated with identical Data Identification;
The query result and the second verify data that reception result server returns;
Match in response to first verification data and the second verify data, the query result is determined as effective query result.
2. the method according to claim 1, wherein described be sent to key for the inquiry field of key word of the inquiry Word storage server includes:
It is divided at least one keyword to divide section according to predetermined keyword segmentation rule the inquiry field;
The keyword segmentation section obtained according to segmentation is respectively to keyword storage service associated with keyword segmentation section Device sends inquiry request, is closed so that each keyword storage server obtains each value in first verification data and inquiry field The Data Identification of connection.
3. according to the method described in claim 2, it is characterized in that, Data Identification associated by each value in the inquiry field It obtains by the following method:
First keyword storage server obtains primary data logo collection according to the first keyword segmentation section and is sent to second Keyword storage server, wherein primary data mark is Data Identification associated by the first keyword segmentation section;
Primary data logo collection is divided into upper bound logo collection, intermediate logo collection and lower bound logo collection, wherein upper boundary mark Knowledge is Data Identification associated by maximum first keyword segmentation section in the inquiry field, and lower bound mark is the inquiry word Data Identification associated by the smallest first keyword segmentation section in section;
Second keyword storage server and keyword storage servers at different levels later divide section step by step according to corresponding keyword Data Identification in upper bound logo collection and lower bound logo collection is filtered, is closed with screening out the value for being not belonging to inquire field The Data Identification of connection;
Data Identification in filtered upper bound logo collection and lower bound logo collection and the intermediate logo collection is determined as Inquire Data Identification associated by each value in field.
4. the method according to claim 1, wherein first verification data includes the filtering of keyword storage server The Data Identification fallen.
5. a kind of device for inquiring data, which is characterized in that described device includes:
First sending module is configured to the inquiry field of key word of the inquiry being sent to keyword storage server;
First receiving module is configured to receive the first verifying number that keyword storage server is returned according to the inquiry field According to Data Identification associated by each value in inquiry field;
Second sending module is configured to send Data Identification associated by each value in inquiry field to results server, with Query result is obtained for results server Data Identification according to associated by each value in inquiry field, wherein inquiry is closed Key word and corresponding query result are associated with identical Data Identification;
Second receiving module is configured to the query result and the second verify data of the return of reception result server;
Result verification module is configured to match in response to first verification data and the second verify data, and the inquiry is tied Fruit is determined as effective query result.
6. device according to claim 5, which is characterized in that first sending module includes:
Cutting unit is configured to the inquiry field being divided at least one keyword according to predetermined keyword segmentation rule Divide section;
Transmission unit, the keyword segmentation section for being configured to obtain according to segmentation is respectively to associated with keyword segmentation section Keyword storage server send inquiry request, so that each keyword storage server obtains first verification data and inquiry Data Identification associated by each value in field.
7. device according to claim 6, which is characterized in that Data Identification associated by each value in the inquiry field The Data Identification obtained by the following method including the keyword storage server:
First keyword storage server obtains primary data logo collection according to the first keyword segmentation section and is sent to second Keyword storage server, wherein primary data mark is Data Identification associated by the first keyword segmentation section;
Primary data logo collection is divided into upper bound logo collection, intermediate logo collection and lower bound logo collection, wherein upper boundary mark Knowledge is Data Identification associated by maximum first keyword segmentation section in the inquiry field, and lower bound mark is the inquiry word Data Identification associated by the smallest first keyword segmentation section in section;
Second keyword storage server and keyword storage servers at different levels later divide section step by step according to corresponding keyword Data Identification in upper bound logo collection and lower bound logo collection is filtered, is closed with screening out the value for being not belonging to inquire field The Data Identification of connection;
Data Identification in filtered upper bound logo collection and lower bound logo collection and the intermediate logo collection is determined as Inquire Data Identification associated by each value in field.
8. the apparatus according to claim 1, which is characterized in that first verification data includes the filtering of keyword storage server The Data Identification fallen.
9. it is a kind of inquire data system, which is characterized in that the system comprises keyword storage server, results server and Terminal, in which:
Terminal is configured to the inquiry field of key word of the inquiry being sent to keyword storage server;
Keyword storage server is configured to be obtained according to the inquiry field each in first verification data and inquiry field The associated Data Identification of value simultaneously feeds back to terminal;
Terminal is also configured to receive the first verification data and inquire each value institute in field that keyword storage server returns Associated Data Identification, and Data Identification associated by each value in inquiry field is sent to results server;
Results server is configured to the Data Identification according to associated by each value in inquiry field and obtains query result and feed back To terminal, wherein key word of the inquiry and corresponding query result are associated with identical Data Identification;
Terminal is also configured to the query result and the second verify data of reception result server return, and in response to the first verifying Data and the second verify data match, and the query result is determined as effective query result.
10. a kind of calculating equipment, comprising:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors are real The now method as described in any in claim 1-4.
11. a kind of non-volatile computer readable storage medium storing program for executing, is stored thereon with computer program, which is characterized in that the program The method as described in any in claim 1-4 is realized when being executed by processor.
CN201710706286.9A 2017-08-17 2017-08-17 Method, device and system for querying data Active CN110020040B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710706286.9A CN110020040B (en) 2017-08-17 2017-08-17 Method, device and system for querying data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710706286.9A CN110020040B (en) 2017-08-17 2017-08-17 Method, device and system for querying data

Publications (2)

Publication Number Publication Date
CN110020040A true CN110020040A (en) 2019-07-16
CN110020040B CN110020040B (en) 2021-07-06

Family

ID=67186088

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710706286.9A Active CN110020040B (en) 2017-08-17 2017-08-17 Method, device and system for querying data

Country Status (1)

Country Link
CN (1) CN110020040B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109299619A (en) * 2018-10-09 2019-02-01 北京腾云天下科技有限公司 Data query method calculates equipment and system
CN110737678A (en) * 2019-10-23 2020-01-31 北京锐安科技有限公司 data searching method, device, equipment and storage medium
CN115118695A (en) * 2022-07-01 2022-09-27 北京达佳互联信息技术有限公司 Message processing method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110213778A1 (en) * 2010-02-26 2011-09-01 Robert Brian Hess Processor Implemented Systems and Methods for Using the Catalog Part of an SQL Identifier to Expose/Access Heterogeneous Data
CN105610881A (en) * 2014-11-06 2016-05-25 阿里巴巴集团控股有限公司 Distributed cache range query method, device and system
CN106897335A (en) * 2016-06-28 2017-06-27 阿里巴巴集团控股有限公司 A kind of storage method of business datum, the generation method of record identifier and device
CN106959963A (en) * 2016-01-12 2017-07-18 杭州海康威视数字技术股份有限公司 A kind of data query method, apparatus and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110213778A1 (en) * 2010-02-26 2011-09-01 Robert Brian Hess Processor Implemented Systems and Methods for Using the Catalog Part of an SQL Identifier to Expose/Access Heterogeneous Data
CN105610881A (en) * 2014-11-06 2016-05-25 阿里巴巴集团控股有限公司 Distributed cache range query method, device and system
CN106959963A (en) * 2016-01-12 2017-07-18 杭州海康威视数字技术股份有限公司 A kind of data query method, apparatus and system
CN106897335A (en) * 2016-06-28 2017-06-27 阿里巴巴集团控股有限公司 A kind of storage method of business datum, the generation method of record identifier and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
施威铭研究室 等: "《Linux 7指令参考手册》", 31 December 2001, 人民邮电出版社 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109299619A (en) * 2018-10-09 2019-02-01 北京腾云天下科技有限公司 Data query method calculates equipment and system
CN110737678A (en) * 2019-10-23 2020-01-31 北京锐安科技有限公司 data searching method, device, equipment and storage medium
CN110737678B (en) * 2019-10-23 2023-08-04 北京锐安科技有限公司 Data searching method, device, equipment and storage medium
CN115118695A (en) * 2022-07-01 2022-09-27 北京达佳互联信息技术有限公司 Message processing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN110020040B (en) 2021-07-06

Similar Documents

Publication Publication Date Title
CN106911697B (en) Access rights setting method, device, server and storage medium
CN109543942A (en) Data verification method, device, computer equipment and storage medium
CN108846753B (en) Method and apparatus for processing data
CN107302597B (en) Message file pushing method and device
CN106843976B (en) Method and apparatus for generating image file
CN111797294A (en) Visualization method and related equipment
CN106055602A (en) File verification method and apparatus
CN110019080A (en) Data access method and device
CN109614327B (en) Method and apparatus for outputting information
CN108776692A (en) Method and apparatus for handling information
CN110321738A (en) Information processing method and device
CN112784823B (en) Face image recognition method, face image recognition device, computing equipment and medium
CN110020040A (en) Inquire the methods, devices and systems of data
CN111314063A (en) Big data information management method, system and device based on Internet of things
CN109635256A (en) Method and apparatus for verifying data
CN110336781A (en) A kind of method and apparatus based on browser identification terminal uniqueness
CN111259409A (en) Information encryption method and device, electronic equipment and storage medium
CN109889410B (en) Method, system, device, proxy equipment and storage medium for testing service function
CN109150898A (en) Method and apparatus for handling information
JP2023523191A (en) ACCOUNT IDENTIFICATION METHODS, DEVICES, ELECTRONIC DEVICES AND COMPUTER-READABLE MEDIA
CN108011936A (en) Method and apparatus for pushed information
CN115687276B (en) File processing method and device, electronic equipment and storage medium
CN110533128A (en) A kind of anti-fake data processing method of tracing to the source, device, system and medium based on encryption
CN108810130A (en) A kind of method and apparatus of distribution request planning
CN103220327B (en) user information storage method and device

Legal Events

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