CN109145188A - For searching for the method, equipment and computer readable storage medium of block chain data - Google Patents
For searching for the method, equipment and computer readable storage medium of block chain data Download PDFInfo
- Publication number
- CN109145188A CN109145188A CN201810878351.0A CN201810878351A CN109145188A CN 109145188 A CN109145188 A CN 109145188A CN 201810878351 A CN201810878351 A CN 201810878351A CN 109145188 A CN109145188 A CN 109145188A
- Authority
- CN
- China
- Prior art keywords
- block chain
- chain data
- uniform resource
- resource location
- webpage
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 70
- 230000002123 temporal effect Effects 0.000 claims abstract description 62
- 238000012546 transfer Methods 0.000 claims abstract description 37
- 230000004048 modification Effects 0.000 claims description 17
- 238000012986 modification Methods 0.000 claims description 17
- 238000009418 renovation Methods 0.000 claims description 12
- 238000012545 processing Methods 0.000 claims description 8
- 230000006399 behavior Effects 0.000 claims description 6
- 238000000151 deposition Methods 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 12
- 230000006870 function Effects 0.000 description 11
- 238000004590 computer program Methods 0.000 description 7
- 230000008901 benefit Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 230000004069 differentiation Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000007717 exclusion Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 241000239290 Araneae Species 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000007405 data analysis Methods 0.000 description 1
- 239000004744 fabric Substances 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000000644 propagated effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000002441 reversible effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The content of present invention discloses the method for searching for block chain data, this method comprises: A., via hypertext transfer protocol interface webpage read requests, the webpage read requests include the first uniform resource location and first time information;B. determining whether there is index associated with first uniform resource location in caching, wherein, one or more indexes that the buffer memory was retrieved within a predetermined period of time, each index include uniform resource location, webpage associated with the uniform resource location and the second temporal information retrieved;C1. there is index associated with first uniform resource location in the caching, and in the case where the first time information is earlier than second temporal information in the index, webpage associated with first uniform resource location is returned via the hypertext transfer protocol interface.
Description
Technical field
The content of present invention is related to block chaining search technology, relates more particularly to a kind of for searching for the side of block chain data
Method, a kind of equipment for searching for block chain data and a kind of corresponding computer readable storage medium.
Background technique
Search engine refers to that collect information from WWW automatically is supplied to user and inquires after centainly arranging
System.During search engine collects information, each is connected using referred to as web crawler (Spider)
Hyperlink on webpage.Web crawler is according to webpage chain to hyperlink therein, just as " a biography described in daily life
Ten, ten hundred are passed ... " equally, since a few webpage, it is connected to web page interlinkage every other on network.Theoretically, if
There is hyperlink appropriate on webpage, web crawler can traverse most webpages.
Block chain (Blockchain) is the intelligent peer-to-peer network with distributed data base identification, propagation and information-recording
Network, also referred to as value internet.Block chain has decentralization, tamper-resistant, data consistency stores, transparent procedures is traceable etc.
Technical advantage is considered being owned by extensively in various fields such as finance, reference, Internet of Things, economic trade clearing, asset managements
Application prospect.
Summary of the invention
Method, equipment and the computer-readable storage that the embodiment provides a kind of for searching for block chain data
Medium can collect information from the index retrieved, to improve the search efficiency for block chain data.
For this purpose, the first aspect of the content of present invention proposes a kind of method for searching for block chain data, the method
Include:
A. via hypertext transfer protocol interface webpage read requests, the webpage read requests include the first unification
Resource locator address and first time information;
B. determining whether there is index associated with first uniform resource location in caching, wherein described
One or more indexes that buffer memory was retrieved within a predetermined period of time, each index include that the unified resource retrieved is determined
Bit address, webpage associated with the uniform resource location and the second temporal information;
C1. there is index associated with first uniform resource location in the caching, and described
In the case that first time information is earlier than second temporal information in the index, connect via the hypertext transfer protocol
Mouth returns to webpage associated with first uniform resource location.
In addition, the second aspect of the content of present invention proposes a kind of equipment for searching for block chain data, the equipment
It include: processor;And memory executes the processor following for storing instruction
Operation:
A. via hypertext transfer protocol interface webpage read requests, the webpage read requests include the first unification
Resource locator address and first time information;
B. determining whether there is index associated with first uniform resource location in caching, wherein described
One or more indexes that buffer memory was retrieved within a predetermined period of time, each index include that the unified resource retrieved is determined
Bit address, webpage associated with the uniform resource location and the second temporal information;
C1. there is index associated with first uniform resource location in the caching, and described
In the case that first time information is earlier than second temporal information in the index, connect via the hypertext transfer protocol
Mouth returns to webpage associated with first uniform resource location.
Finally, the third aspect of the content of present invention provides a kind of computer readable storage medium, has and be stored in it
On computer-readable program instructions, the computer-readable program instructions are used to execute the first aspect of content according to the present invention
The method for searching for block chain data.
According to the present invention content for searching for the methods of block chain data, equipment and corresponding computer-readable depositing
Storage media can be determined whether once to carry out identical retrieval based on the index that memory scan in the buffer is crossed, determined once
The index was returned in the case where through carrying out identical retrieval, and then improved the search efficiency to block chain data.
Detailed description of the invention
It refers to the following detailed description in conjunction with the accompanying drawings, the feature, advantage and other aspects of various embodiments of the present invention will become
Must be more obvious, show several embodiments of the invention by way of example rather than limitation herein, in the accompanying drawings:
Fig. 1 is the schematic diagram of the network structure of the block chain of content according to the present invention;
Fig. 2A is the flow chart of the method for searching for block chain data of content according to the present invention;
The schematic diagram of the first embodiment for the index that Fig. 2 B is stored in the caching for content according to the present invention;
Fig. 3 is the flow chart of the first embodiment of the method for searching for block chain data of content according to the present invention;
Fig. 4 A is the flow chart of the second embodiment of the method for searching for block chain data of content according to the present invention;
The schematic diagram of the second embodiment for the index that Fig. 4 B is stored in the caching for content according to the present invention;
Fig. 5 is the schematic diagram of the first embodiment of the equipment for searching for block chain data of content according to the present invention;With
And
Fig. 6 is the schematic diagram of the second embodiment of the equipment for searching for block chain data of content according to the present invention.
Specific embodiment
Below with reference to each exemplary embodiment of attached drawing detailed description of the present invention.Flow chart and block diagram in attached drawing are shown
The architecture, function and operation in the cards of method and system according to various embodiments of the present invention.It should be noted that
Each of flowchart or block diagram box can represent a part of a module, program segment or code, the module, journey
Sequence section or a part of code may include it is one or more for realizing in each embodiment the logic function of defined can
It executes instruction.It should also be noted that in some alternative implementations, function marked in the box can also be according to being different from
The sequence marked in attached drawing occurs.For example, two boxes succeedingly indicated can actually be basically executed in parallel, or
They can also be executed in a reverse order sometimes, this depends on related function.It should also be noted that flow chart
And/or the combination of the box in each of block diagram box and flowchart and or block diagram, it can be used as defined in execution
The dedicated hardware based systems of functions or operations is realized, or the combination of specialized hardware and computer instruction can be used
To realize.
Term as used herein "include", "comprise" and similar terms are construed as being open term, i.e. " packet
Include/including but not limited to ", expression can also include other content.Term "based" is " being based at least partially on ".Term " one
A embodiment " expression " at least one embodiment ";Term " another embodiment " expression " at least one other embodiment ", etc.
Deng.
Technology, method and apparatus known to person of ordinary skill in the relevant may be not discussed in detail, but suitable
In the case of, the technology, method and apparatus are regarded as part of specification.For the company between each unit in attached drawing
Line, it is only for convenient for explanation, indicate that the unit at least line both ends is in communication with each other, it is not intended that the non-line of limitation
Unit between can not communicate.
Term " search node " in the content of present invention refers to a kind of block chain independently of other nodes in block chain
Node is provided with hypertext transfer protocol interface on search node to handle the webpage that search engine or user equipment are sent
Read requests, and be additionally provided with caching thereon to store index, furthermore the search node only being capable of public affairs on the block chain of synchronization zone
Open data.
" reading " in term " webpage read requests " in the content of present invention include gone by search engine crawl webpage and
Webpage is obtained by user equipment by user, wherein obtain webpage by user equipment and specifically refer to user and pass through user
The webpage that is generated by block chain data of exhibition is inquired or browsed to equipment.
Term " user equipment " in the content of present invention refer to including but not limited to smart phone, tablet computer, desktop computer,
The intelligent terminal of laptop.
Term " uniform resource location " in the content of present invention refers to the address of the resource of standard on internet, also known as
Uniform resource locator (URL:Uniform Resource Locator) or web page address.Correspondingly, in the content of present invention
Term " the first uniform resource location " refers to that the method for searching for block chain data proposed according to the present invention executes
When the same level uniform resource location, i.e. the same level URL;And the term " the second uniform resource location " in the content of present invention
Refer to the uniform resource location of next stage when the method for searching for block chain data proposed according to the present invention executes,
That is secondary URL.
Term " the first block chain data " in summary of the invention refers in block chain at the first uniform resource location
Block chain data;Ground is corresponded, the term " the second block chain data " in the content of present invention refers in block chain the
Block chain data at two uniform resource locations.
Term " public data " in the content of present invention, which refers to, does not need the i.e. addressable data of authentication, and " privacy
Data ", which refer to, needs authentication just addressable data.
Term " first time information " in the content of present invention refers to that user equipment or the access of search engine last time are unified
The modification time of the relevant webpage of resource locator address;Term " the second temporal information " refers to area at the uniform resource location
The time that block chain data update.
Term " first ", " second " in the content of present invention are only used for description reference, purpose or certain specific things, and cannot
It is interpreted as indication or suggestion relative importance, or implicitly indicates the quantity of indicated technical characteristic.
Term " multiple " in the content of present invention refers to two or more.
Occur term " retrieval " and " search " in the content of present invention, wherein term " retrieval " refers to that search engine passes through
Web crawler for the crawl of block chain data, processing, establish and index and the process of traversal, and term " search " refers to and searches
Index holds up reception user and inputs looking into for the web page contents for establishing index before after keyword on the search engine page
It looks for.
Statement " the second block chain number at least one described second uniform resource location in the content of present invention
According to associated with the first block chain data " refer to hierarchy attributes included by the first block chain data and predefines
Hierarchical relationship tree table it is bright with the presence or absence of in the second uniform resource location the second block chain data incidence relation.
Term " hierarchical relationship tree " in the content of present invention, which refers to, predetermined shows accessed block chain data institute
The logical relation tree of the hierarchical structure of the webpage of generation.
Term " hierarchy attributes " in the content of present invention, which refers to, shows that unified resource associated with read webpage is fixed
Bit address belongs to the information of which layer in above-mentioned hierarchical relationship tree.
Term " the first attribute " in the content of present invention is privacy or openly for label pad chain data.
It is i.e. addressable that term " open account book " in the content of present invention refers to that wherein only storage does not need authentication
The block chain account book of public data.
Term " privacy account book " in the content of present invention refers to that wherein only storage needs authentication just addressable hidden
The block chain account book of private data.
Term " the open region of account book " in the content of present invention refers in account book for storing the region of public data.
Term " privacy area of account book " in the content of present invention refers in account book for storing the region of private data.
The embodiment of the present invention is primarily upon following technical problem: firstly, current block chain node can not handle search
The hypertext transfer protocol requests that engine is sent;Secondly, current network search engines are grabbed by web crawler
The mode of webpage carrys out the information in traverses network, but current search engine can not traverse the block in block chain network
Chain data;Again, when being retrieved to the data in existing block chain, due to the data volume in block chain be easy to cause greatly it is negative
The block chain node burden of duty retrieval is very heavy, retrieval rate is slow, recall precision is low and may interfere with the normal operation of block chain,
Additionally there may be the risks for obtaining protected data (that is, private data).In addition, current search engine is searched for
All should be public data, and block chain network may store public data and private data simultaneously, in search process
These two types of data should be distinguished.
To solve these problems, the search service for being directed to block chain network is realized, the embodiment of the present invention provides firstly
A kind of hypertext transfer protocol interface, the hypertext transfer protocol interface is for example in the search node of block chain, so that searching
Socket point is capable of handling the hypertext transfer protocol requests by search engine or user equipment transmission.Secondly, in search node
Setting caching, enables the caching to store the index that search engine or user equipment were retrieved within a predetermined period of time.Again,
The embodiment of the present invention using the uniform resource location of other webpages as information by being added in the webpage, so that search
Engine can realize the webpage capture function for block chain network by the web page interlinkage to other webpages.In addition, this hair
Bright embodiment also directed in block chain network public data and private data carried out differentiation processing.More specifically realize
Method and other advantages of the invention see below in elaboration.
Fig. 1 shows the schematic diagram of the network structure 100 of the block chain of content according to the present invention, the block chain in Fig. 1
Network structure 100 includes block chain node 111,112,113,114,115,116 and search node 117;Wherein, search section
Point 117 includes caching.Network Synchronization data, the network can be passed through between block chain node 111-116 and search node 117
It can be any wired and or wireless network.
In the content of present invention, search node 117 can only synchronize public data, be unable to synchronous private data.It needs
It is noted that can realize that data are synchronous using existing or exploitation in the future simultaneous techniques in the content of present invention.In addition,
The caching being arranged in search node 117 can store the one or more indexes retrieved in the set time period, each
Index includes uniform resource location, webpage associated with the uniform resource location and the second time retrieved
Information.Fig. 2 B shows the exemplary index of storage in the buffer, and which includes URL1 and corresponding webpage html_
1, the second temporal information STAMP 1, URLn and corresponding webpage html_n, the second temporal information STAMP n.In addition,
In view of the limitation of buffer memory capacity in search node 117, at the end of the set period of time, rope all in the caching will be deleted
Draw, to realize the real-time update indexed in caching.
Fig. 2A shows the flow chart of the method 200 for searching for block chain data, in the present embodiment, shown in FIG. 1
Method 200 shown in Fig. 2A can be implemented in search node 117 in block chain network 100, specific as follows:
Step 210: via hypertext transfer protocol interface webpage read requests, the webpage read requests include the
One uniform resource location and first time information.
In specifically crawl webpage information, search engine end can increase following functions, the i.e. accessible area of search engine
Block chain entry address (such as: http://test.com.homepage), in order to which search engine is able to access that the block chain.
Alternatively, user can use browser access block chain entry address (such as: http://test.com.homepage), make
It obtains user and is able to access that the block chain.
Step 220: determining and whether there is index associated with first uniform resource location in caching.
In this step, being determined according to first uniform resource location in the webpage read requests in caching is
It is no to there is index associated with the first uniform resource location, and the buffer memory was retrieved within a predetermined period of time
One or more indexes, each index include the uniform resource location retrieved, with the unified resource positioningly
The associated webpage in location and the second temporal information
Step 230: in the presence of index associated with first uniform resource location in the caching, and
In the case that the first time information is earlier than second temporal information in the index, assisted via the Hyper text transfer
It discusses interface and returns to webpage associated with first uniform resource location;Specific embodiment is as follows:
First, judge whether search engine or user once accessed net associated with the first uniform resource location
Page showed search engine or user once when there is index associated with the first uniform resource location in the caching
Through accessing;Then, judge the concrete modification time (that is, first time information) of the webpage of the access whether earlier than caching
The modification time (that is, second temporal information for indicating block chain data renewal time) of the corresponding web page of middle storage, when first
When temporal information is earlier than the second temporal information in the index, show that modified mistake first uniform resource location is related
The webpage of connection.
Second, it, will be via super text when the determination associated webpage of modified mistake first uniform resource location
This transport protocol interface returns to the webpage associated with the first uniform resource location in index to search engine or user,
Thus ensure that search engine or user can obtain newest search result.
In addition, specific to how by generating webpage associated with the first uniform resource location, implementation
It can be diversified.Such as block chain data pointed by the first uniform resource location can be generated in webpage,
In addition, this second there are at least one second i.e. second uniform resource location of uniform resource location
Uniform resource location can be also presented on the webpage, so, which can either include the data of block chain, also can
Including uniform resource location.With multiple uniform resource locations, these uniform resource locations
It can be sequentially arranged on the webpage.It also can be by the way that block chain data be generated and block chain number according to its logical relation
The mode of the associated Boolean Search dendrogram of data in is realized.
Next, which is returned into user equipment or search engine.User equipment or search engine are receiving
After the webpage of the return, block chain data therein and its access address can either be directly extracted, it also can be to block link network
Further webpage read requests are initiated in network side, to grab subsequent block chain data.
If there is index associated with first uniform resource location and described the in the caching
In the case that one temporal information is equal to second temporal information in the index, via the hypertext transfer protocol interface
Return to the mark for indicating that webpage is unmodified.Specifically, it is determined that existing in caching related to first uniform resource location
The index and first time information of connection are equal to the second temporal information in respective index, then show user or search engine once
The webpage of search does not change, namely without providing search result to user or search engine, therefore assists via Hyper text transfer
It discusses interface and returns to the mark for indicating that webpage is unmodified.In the concrete realization, it is above-mentioned to show that HTTP status code ' 304 ' can be returned
Situation.
In the present embodiment, if it is determined that index associated with the first uniform resource location is not present in caching,
Then method 200 further includes following steps:
Firstly, the case where index associated with first uniform resource location is not present in the caching
Under, obtain the first block chain data at first uniform resource location.Secondly, judging whether there is at least one
Second uniform resource location, wherein the second block chain number at least one described second uniform resource location
According to associated with the first block chain data.Again, in the feelings that there is at least one second uniform resource location
Under condition, generated and first system according to the first block chain data and at least one described second uniform resource location
The associated webpage of one resource locator address;Or the case where at least one described second uniform resource location is not present
Under, webpage associated with first uniform resource location is generated according to the first block chain data.Then, via
The hypertext transfer protocol interface returns to webpage associated with first uniform resource location.Finally, by this
One uniform resource location, webpage associated with first uniform resource location and the second temporal information are as new
Index be stored in the caching.
In the content of present invention, obtains the first block chain data at first uniform resource location and specifically wrap
Include: determined whether according to the account book storage location of the first block chain data obtain first unified resource positioningly
The first block chain data at location;It specifically, is open number in the first block chain data or the second block chain data
In the case where, the first block chain data or the second block chain data are stored in open account book;And described
In the case that first block chain data or the second block chain data are private data, the first block chain data or described
Second block chain data are stored in privacy account book;The situation in the open account book is stored in the first block chain data
Under, obtain the first block chain data at first uniform resource location.
In the content of present invention, obtaining the first block chain data at first uniform resource location can be with
It include: to be determined whether to obtain according to the storage region position of the first block chain data to position in first unified resource
The first block chain data at address;It specifically, is open in the first block chain data or the second block chain data
In the case where data, the first block chain data or the second block chain data are stored in the open region of account book;With
And in the case where the first block chain data or the second block chain data are private data, the first block chain number
According to or the second block chain data be stored in the privacy area of account book;The account is stored in the first block chain data
In the case where in this open region, the first block chain data at first uniform resource location are obtained.
In the content of present invention, judging whether there is at least one second uniform resource location further comprises: root
According to hierarchy attributes included by the first block chain data and predetermined hierarchical relationship tree to determine whether in the presence of described in
At least one second uniform resource location.
In the content of present invention, when generating webpage associated with the first uniform resource location, block chain
Hierarchy attributes included by data can also play the role of very important, it will according to layer included by the first block chain data
Secondary attribute and predetermined hierarchical relationship tree are to determine whether there are at least one the second uniform resource locations.It is specific next
The hierarchy attributes for seeing such as block chain data A are " insurance ", and predetermined hierarchical relationship tree table is bright that there are hierarchy attributes
For the block chain data B of " insurance/block chain insurance ", then block chain data B is then the next stage block chain of block chain data A
Data.If webpage read requests are will to be directed toward hierarchy attributes to grab the block chain data A that hierarchy attributes are " insurance "
Uniform resource location for the block chain data B of " insurance/block chain insurance " also generates on webpage, i.e., generated
It is the uniform resource location of the block chain data B of " insurance/block chain insurance " comprising being directed toward hierarchy attributes in webpage.
In addition, in the present embodiment in order to ensure containing corresponding unified resource positioningly in the index that is stored in caching
The newest block chain data of location, in order to quickly and efficiently return to newest webpage to user or search engine, in the present invention
Method provided by holding for searching for block chain data further comprises first embodiment 300 as shown in Figure 3 in order to update
It indexes, specifically comprises the following steps: in caching
Step 310: being determined in the block chain based on the uniform resource location stored in each index and accordingly united
Block chain data at one resource locator address.
Step 320: by data corresponding to the webpage stored in the block chain data and the index be compared with
Determine whether the block chain data at the uniform resource location update.
In this step, it is had differences between data corresponding to the webpage stored in block chain data and the index
When, show the block chain data at the updated uniform resource location.
Step 330: in the case that the block chain data at the uniform resource location are updated, in the index
The middle block chain data webpage generated being updated to webpage associated with the uniform resource location according to update,
And by second time information renovation be the block chain data renewal time.
The content of present invention can be realized using the embodiment updates corresponding index in the buffer.
Alternatively, the content of present invention can also realize the real-time update for indexing in caching using following examples:
Accordingly unify money in the block chain firstly, determining based on the uniform resource location stored in each index
Block chain data at the positioning address of source.
Secondly, the modification time information of the block chain data is compared with the second temporal information in the index
Whether updated with the block chain data at the determination uniform resource location.
Specifically, show when the second temporal information that the modification time information of the block chain data is not later than in the index
Block chain data at the uniform resource location are not updated, when the modification time information of the block chain data is later than this
Show that the block chain data at the uniform resource location have been updated when the second temporal information in index.
Third, the case where the modification time information of the block chain data is later than the second temporal information in the index
Under, webpage associated with the uniform resource location is updated to the block chain data according to update in the index
Webpage generated, and be the renewal time of the block chain data by second time information renovation.
The content of present invention can also real-time update indexes accordingly in the buffer using above-described embodiment.
Optionally, in order to ensure containing the newest of corresponding uniform resource location in the index that is stored in caching
Block chain data, in order to quickly and efficiently return to newest webpage to user equipment or search engine, the content of present invention is mentioned
The method for searching for block chain data supplied can also realize above-mentioned mesh using second embodiment 400 as shown in Figure 4 A
's.
In the method shown in Fig. 4 A, firstly, further including indicate to allow to return difference webpage the in webpage read requests
One indicator, each of caching index further includes one or more difference webpages and corresponding with each difference webpage
Time segment information.
400 concrete operations of method as shown in Figure 4 A are as follows:
Step 410: being determined in the block chain based on the uniform resource location stored in each index and accordingly united
Block chain data at one resource locator address.
Step 420: by data corresponding to the webpage stored in the block chain data and the index be compared with
Determine whether the block chain data at the uniform resource location update.
In this step, data corresponding to the webpage stored in the block chain data and the index are compared and are sentenced
It is disconnected to whether there is data difference, the block chain having had updated at the uniform resource location is determined when there are data difference
Data.
Step 430: the case where block chain data at the uniform resource location in the index are updated
Under, phase is generated using the data difference between data corresponding to the webpage stored in the block chain data of update and the index
The difference webpage answered, by the renewal time of second temporal information and block chain data together as with the difference webpage
Corresponding time segment information.
Step 440: webpage associated with the uniform resource location is updated to the block chain number according to update
It is the renewal time of the block chain data according to webpage generated, and by second time information renovation.
Therefore, the updated index includes uniform resource location, associated with the uniform resource location
Webpage, the second temporal information, one or more difference webpages associated with the uniform resource location and with it is each
The corresponding time segment information of a difference webpage.
In actual operation, if realizing the update to indexing in caching using second embodiment 400 shown in Fig. 4 A,
There is index associated with first uniform resource location in the caching and the first time information is early
In the case where second temporal information in the index, the method for searching for block chain data further include:
It whether there is the first indicator firstly, determining in the received webpage read requests of institute.
That is, showing what the search engine for issuing the webpage read requests or user used when there are the first indicator
Browser allows to return to difference webpage.
Secondly, being believed there are in the case where the first indicator based on the first time in received webpage read requests
Breath is corresponding with the time residual quantity to exist in the determination caching with the time residual quantity between second temporal information
When one or more difference webpages, returned via the hypertext transfer protocol interface corresponding with the time residual quantity
One or more difference webpages.
The above-mentioned steps of the content of present invention can the search node 117 as shown in Fig. 1 realize.
For example, it includes the first uniform resource location URLx, at the first time letter that search engine is sent to search node 117
When the webpage read requests of breath (for example, 18:30) and the first indicator, search node 117 searches whether exist in the buffer
Index associated with URLx.The example of index associated with URLx in the buffer is shown in figure 4b, is specifically included
URLx and corresponding webpage html_x, the second temporal information (for example, 19:00), within a predetermined period of time according to URLx
Obtain multiple and different difference webpages (for example, △ html_1, △ html_2, △ html_3) and with these difference webpage phases
Corresponding time segment information (for example, 18:45-19:00,18:30-18:45,18:10-18:30).Search node 117 is according to
Time residual quantity (18:30-19:00) between one temporal information (for example, 18:30) and the second temporal information (for example, 19:00),
And it is determined from multiple time segment informations (for example, 18:10-18:30,18:30-18:45,18:45-19:00) in the index
There are two difference webpages in the buffer (that is, corresponding respectively to △ html_1 of 18:45-19:00,18:30-18:45, △
Html_2), then search node 117 via hypertext transfer protocol interface returns to the two difference webpages.
For another example, it includes the first uniform resource location URLx, first time that search engine is sent to search node 117
When the webpage read requests of information (for example, 08:20) and the first indicator, search node 117 searches whether to deposit in the buffer
In index associated with URLx.In the case of predetermined amount of time is set as two small, exist and URLx phase in the buffer
In the case where associated index, corresponding second temporal information (for example, 19:00) of URLx is checked, and also find URLx
Corresponding multiple time segment informations (for example, 18:10-18:30,18:30-18:45,18:45-19:00), but in view of first
Time residual quantity between temporal information (for example, 08:20) and the second temporal information (for example, 19:00) is considerably beyond described pre-
Section of fixing time (for example, two hours), then search node 117 postpones webpage (for example, html_x) associated with URLx
Search engine is returned to via hypertext transfer protocol interface in depositing.
In the content of present invention, in order to realize through the uniform resource location for block chain number associated there
According to correct parsing, the content of present invention proposes the analysis mode for being used to specify the block chain data for block chain data configuration
Attribute.For example, the attribute includes the data format name for indicating the data analysis method of the block chain data.
When stating chained address in realization, the Robots agreement abided by needed for following search engine is also needed.It is specific and
Speech, Robots agreement are also referred to as crawler agreement, the robot protocol etc., and full name is " web crawlers exclusion criteria " (Robots
Exclusion Protocol), website tells which page of search engine that can grab by Robots agreement, which page is not
It can crawl.
Specific to the content of present invention, for every chained address in the portal site, it is also desirable to pass through Robots agreement
Inform the chained address that search engine allows to traverse.The content of present invention using block chain data itself attribute (such as according to this
Disclosed in summary of the invention block chain data include public data and private data) realize the search behavior for search engine
Control, wherein public data and private data are stored in different location or the public data and described hidden of block chain
Private data have different labels.
The alliances such as Fabric, Corda chain then all does access privilege control to whole data in all block chain data.
It can be seen that block platform chain is for there is the data of different requirements all to do the same access control without different access
The ability of control.And in general, usually using alliance's platform chain, access authority control is done to total data for enterprise-level block chain
System causes external search engine that can not retrieve the disclosed information of needs.
Specifically, public data and private data are stored in the different location or public data and privacy number of block chain
According to the implementation method with different labels can there are many kinds of.
For example, the content of present invention can distinguish multiple account books, such as by first account book labeled as public affairs
This is made out a bill, i.e., only stores above-mentioned public data thereon, and other account books are labeled as privacy account book, is only stored thereon hidden
Private data.Those skilled in the art is it is to be appreciated that the quantity of open account book and privacy account book can be according to needs on block chain
The ratio dynamic configuration of disclosed data and private data.Thus, it is possible to realize the differentiation pair for the data in block chain network
To be provided safeguard for the subsequent search service for the data on block chain.
In the case where the first block chain data are stored in open account book, obtain at the first uniform resource location
First block chain data.The first block chain data at the first uniform resource location are stored in the situation in privacy account book
Under, the first block chain data can not be obtained.
Alternatively, also first account book for example can be divided into two different regions, is stored on first region
Public data, and private data is stored on Two Areas, it thus also can be realized for the data in block chain network
Differentiation is treated, to provide safeguard for the subsequent search service for the data on block chain.
In the case where the first block chain data are stored in the open region of account book, obtain and positioned in the first unified resource
The first block chain data at address;It, can not in the case where the first block chain data are stored in the privacy area of account book
Obtain the first block chain data.
Additionally or alternatively, block chain data are stored in a manner of key assignments (Key/Value), wherein block chain data
It further include the first attribute.When the first attribute list area pellucida block chain data are public data, then the block chain data can be retrieved;
When the first attribute list area pellucida block chain data are private data, then the block chain data can not be retrieved.
Meet search engine such as not can guarantee in block chain network for the access of block chain data
The technical issues of searching requirement of Robots agreement, the inventor of the content of present invention innovatively recognizes can be by being transformed area
The attribute of data in block chain network is adapted to search engine, is searched in block chain network to realize based on search engine
The purpose of data, in addition, block chain can also be met for needing to carry out secret protection partial data while realizing retrieval
Secret protection.
On the one hand the above-mentioned method for searching for block chain data can be realized only examines public data on block chain
Rope avoids the acquisition to private data on block chain;On the other hand can using cache in index come determine whether once into
Identical retrieval of going is easy to implement the quick response to webpage read requests, and reduces search node processing webpage reading and ask
The pressure asked which thereby enhances the search efficiency to public data on block chain.Meanwhile it being solved provided by content through the invention
Certainly scheme can also mitigate the burden and interference in search process to block chain, to avoid search engine to block chain other
Node is directly accessed, and is thereby reduced the risk for the private data that search engine obtains on block chain, is enhanced block chain
Safety during interconnecting with conventional internet.In addition, solution provided by content can be real through the invention
Interconnecting for existing block chain and internet information, further plays the immense value of block chain.
In addition, alternatively, the above method can be by computer program product, i.e. computer readable storage medium is real
It is existing.Computer program product may include computer readable storage medium, containing for executing each of the content of present invention
The computer-readable program instructions of aspect.Computer readable storage medium, which can be, can keep and store by instruction execution equipment
The tangible device of the instruction used.Computer readable storage medium for example can be but not limited to storage device electric, magnetic storage is set
Standby, light storage device, electric magnetic storage apparatus, semiconductor memory apparatus or above-mentioned any appropriate combination.It is computer-readable
The more specific example (non exhaustive list) of storage medium includes: portable computer diskette, hard disk, random access memory
(RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), static random access memory
(SRAM), Portable compressed disk read-only memory (CD-ROM), digital versatile disc (DVD), memory stick, floppy disk, mechanical coding
Equipment, the punch card for being for example stored thereon with instruction or groove internal projection structure and above-mentioned any appropriate combination.Here
Used computer readable storage medium is not interpreted instantaneous signal itself, such as radio wave or other Free propagations
Electromagnetic wave, the electromagnetic wave (for example, the light pulse for passing through fiber optic cables) propagated by waveguide or other transmission mediums or logical
Cross the electric signal of electric wire transmission.
Fig. 5 shows the equipment disclosed in the first embodiment of content according to the present invention for searching for block chain data
500 block diagram.From figure 5 it can be seen that for search for block chain data equipment 500 include processor 501 and with processing
The memory 502 that device 501 couples.Wherein, memory 502 is stored with instruction.Instruction to handle when being executed by processor 501
Device 501 executes following movement:
A. via hypertext transfer protocol interface webpage read requests, the webpage read requests include the first unification
Resource locator address and first time information;
B. determining whether there is index associated with first uniform resource location in caching, wherein described
One or more indexes that buffer memory was retrieved within a predetermined period of time, each index include that the unified resource retrieved is determined
Bit address, webpage associated with the uniform resource location and the second temporal information;
C1. there is index associated with first uniform resource location in the caching, and described
In the case that first time information is earlier than second temporal information in the index, connect via the hypertext transfer protocol
Mouth returns to webpage associated with first uniform resource location.
In one embodiment of content according to the present invention, when described instruction executes the processor 501 is also held
The following operation of row:
C2. there is index associated with first uniform resource location and described first in the caching
In the case that temporal information is equal to second temporal information in the index, returned via the hypertext transfer protocol interface
Return the mark for indicating that webpage is unmodified.
In one embodiment of content according to the present invention, when described instruction executes the processor 501 is also held
The following operation of row:
D11. it is determined based on the uniform resource location stored in each index and accordingly unifies money in the block chain
Block chain data at the positioning address of source;
D12. data corresponding to the webpage stored in the block chain data and the index are compared with determination
Whether the block chain data at the uniform resource location update;
It D13., will in the index in the case that block chain data at the uniform resource location are updated
Webpage associated with the uniform resource location is updated to the block chain data webpage generated according to update, and will
Second time information renovation is the renewal time of the block chain data.
In one embodiment of content according to the present invention, when described instruction executes the processor 501 is also held
The following operation of row:
D21. it is determined based on the uniform resource location stored in each index and accordingly unifies money in the block chain
Block chain data at the positioning address of source;
D22. the modification time information of the block chain data is compared with the second temporal information in the index
Whether updated with the block chain data at the determination uniform resource location;
D23. the case where the modification time information of the block chain data is later than the second temporal information in the index
Under, webpage associated with the uniform resource location is updated to the block chain data according to update in the index
Webpage generated, and be the renewal time of the block chain data by second time information renovation.
In one embodiment of content according to the present invention, the webpage read requests further include indicating to allow to return to difference
First indicator of webpage, it is described caching each of index further include one or more difference webpages and with respectively it is each
The corresponding time segment information of a difference webpage, described instruction also make the processor 501 execute following operation when executing:
E1. corresponding unified resource in the block chain is determined based on the uniform resource location stored in each index
Block chain data at positioning address;
E2. data corresponding to the webpage stored in the block chain data and the index are compared to determine
State whether the block chain data at uniform resource location update;
E3. in the case that the block chain data at the uniform resource location in the index are updated, benefit
Data difference generation between the data corresponding to the webpage stored in the block chain data of update and the index is corresponding
Difference webpage, by the renewal time of second temporal information and block chain data together as opposite with the difference webpage
The time segment information answered;
E4. webpage associated with the uniform resource location is updated to be given birth to according to the block chain data of update
At webpage, and by second time information renovation be the block chain data renewal time.
In one embodiment of content according to the present invention, exists in the caching and positioned with first unified resource
Address it is associated index and the first time information earlier than second temporal information in the index in the case where,
Described instruction also makes the processor 501 execute following operation when executing:
F1. determining in the received webpage read requests of institute whether there is the first indicator;
F2. the first time information is based on there are in the case where the first indicator in received webpage read requests
Time residual quantity between second temporal information in the determination caching to exist and the time residual quantity corresponding one
When a or multiple difference webpages, returned and the time residual quantity corresponding one via the hypertext transfer protocol interface
A or multiple difference webpages.
In one embodiment of content according to the present invention, when described instruction executes the processor 501 is also held
The following operation of row:
C31. in the case where index associated with first uniform resource location is not present in the caching,
Obtain the first block chain data at first uniform resource location;
C32. judge whether there is at least one second uniform resource location, wherein it is described at least one second
The second block chain data at uniform resource location are associated with the first block chain data;
C33. in the case where there is at least one described second uniform resource location, according to the first block chain
Data and at least one described second uniform resource location generate associated with first uniform resource location
Webpage;And
C34. it is returned via the hypertext transfer protocol interface associated with first uniform resource location
Webpage.
In one embodiment of content according to the present invention, via the hypertext transfer protocol in the step C34
After interface returns to webpage associated with first uniform resource location, described instruction makes the processing when executing
Device 501 also executes following operation:
C35. by first uniform resource location, webpage associated with first uniform resource location
And second temporal information is stored indexed by the caching.
In one embodiment of content according to the present invention, when described instruction executes the processor 501 is also held
The following operation of row:
There is no at least one described second uniform resource location, according to the first block chain number
According to generation webpage associated with first uniform resource location.
In one embodiment of content according to the present invention, judged whether there is in the step C32 at least one second
Uniform resource location further comprises:
Judge to be according to hierarchy attributes included by the first block chain data and predetermined hierarchical relationship tree
It is no to there is at least one described second uniform resource location.
It is fixed in first unified resource to obtain in one embodiment of content according to the present invention, in the step C31
The first block chain data at bit address further comprise:
Determined whether to obtain according to the account book storage location of the first block chain data in first unified resource
The first block chain data at positioning address,
Wherein, described in the case where the first block chain data or the second block chain data are public data
First block chain data or the second block chain data are stored in open account book;And in the first block chain data or
In the case that the second block chain data are private data, the first block chain data or the second block chain data are deposited
Storage is in privacy account book;
In the case where the first block chain data are stored in the open account book, obtain in the described first unified money
The first block chain data at the positioning address of source.
It is fixed in first unified resource to obtain in one embodiment of content according to the present invention, in the step C31
The first block chain data at bit address further comprise:
Determined whether to obtain according to the storage region position of the first block chain data in first unified resource
The first block chain data at positioning address,
Wherein, described in the case where the first block chain data or the second block chain data are public data
First block chain data or the second block chain data are stored in the open region of account book;And in the first block chain
In the case that data or the second block chain data are private data, the first block chain data or the second block chain
Data are stored in the privacy area of account book;
In the case where the first block chain data are stored in the open region of the account book, obtain described first
The first block chain data at uniform resource location.
In one embodiment of content according to the present invention, the first block chain data and/or the second block chain
Data include the first attribute, and wherein, and first at first uniform resource location is obtained in the step C31
Block chain data further comprise:
Show the case where the first block chain data are public data in the first attribute of the first block chain data
Under, obtain the first block chain data at first uniform resource location.
In conclusion the content of present invention proposed the method by searching for block chain data, equipment and it is corresponding based on
On the one hand calculation machine readable storage medium storing program for executing can search for the data once searched in the buffer and search to improve to block chain data
On the other hand data on block chain can be made accurate control by rope efficiency, realize only access can disclosed data, and
It defines a kind of internal mechanism and interface for access retrieval, can not only allow external web page link that can directly link block chain
In public data, the public data in block chain can also be allowed to interlink.In addition, being solved provided by content through the invention
Certainly block chain may be implemented in scheme and the quick of internet information is interconnected, and further plays the immense value of block chain.
Fig. 6 shows the schematic block diagram of the equipment 600 for searching for block chain data.It should be appreciated that equipment 600 can be with
It is embodied as realizing the function of the method 200 for searching for block chain data in Fig. 2A.As can be seen from Figure 6 it is used for the field of search
The equipment 600 of block chain data includes central processing unit (CPU) 601 (for example, processor), can be according to being stored in read-only deposit
Computer program instructions in reservoir (ROM) 602 are loaded into random access storage device (RAM) 603 from storage unit 608
Computer program instructions, to execute various movements appropriate and processing.In RAM 603, the equipment 600 operation can be also stored
Required various programs and data.CPU 601, ROM 602 and RAM 603 are connected with each other by bus 604.Input/output
(I/O) interface 605 is also connected to bus 604.
Multiple components in equipment 600 are connected to I/O interface 605, comprising: input unit 606, such as keyboard, mouse etc.;
Output unit 607, such as various types of displays, loudspeaker etc.;Storage unit 608, such as disk, CD etc.;And it is logical
Believe unit 609, such as network interface card, modem, wireless communication transceiver etc..It is all that communication unit 609 allows the equipment 600 to pass through
As the computer network of internet and/or various telecommunication networks exchange information/data with other equipment.
Various methods described above, such as method for searching for block chain data can be executed by CPU 601.Example
Such as, in some embodiments, computer software programs be can be implemented as searching for the method 200 of block chain data, it is tangible
Ground is contained in machine readable media, such as storage unit 608.In some embodiments, computer program is some or all of
It can be loaded into and/or be installed in the equipment 600 via ROM 602 and/or communication unit 609.Work as computer program loads
When being executed to RAM 603 and by CPU 601, one or more movements or the step in method as described above 200 can be executed.
In general, various example embodiments of the invention can in hardware or special circuit, software, firmware, logic, or
Implement in any combination thereof.Some aspects can be implemented within hardware, and other aspects can be can be by controller, micro process
Implement in the firmware or software that device or other calculating equipment execute.When the various aspects of the embodiment of the present invention are illustrated or described as frame
When figure, flow chart or other certain graphical representations of use, it will be understood that box described herein, device, system, techniques or methods can
Using as unrestricted example in hardware, software, firmware, special circuit or logic, common hardware or controller or other in terms of
It calculates and implements in equipment or its certain combination.
For executing the computer-readable program instructions or computer program product of the various aspects of the content of present invention
It can store beyond the clouds, when needing to call, user can be accessed by mobile Internet, fixed network or other networks and is stored in
The computer-readable program instructions of the one side for executing the content of present invention on cloud, thus implementation basis the content of present invention
Various aspects disclosed in technical solution.
It should be noted that although being referred to the several devices or sub-devices of equipment in the detailed description above, it is this
Division is only exemplary rather than enforceable.In fact, according to an embodiment of the invention, two or more above-described dresses
The feature and function set can embody in one apparatus.Conversely, the feature and function of an above-described device can be with
Further division is to be embodied by multiple devices.
Alternative embodiment that the above description is only an embodiment of the present invention, the embodiment being not intended to restrict the invention, for
For those skilled in the art, the embodiment of the present invention can have various modifications and variations.It is all in the embodiment of the present invention
Within spirit and principle, made any modification, equivalence replacement, improvement etc. should be included in the protection of the embodiment of the present invention
Within the scope of.
Although by reference to several embodiments that specific examples describe the present invention, it should be appreciated that, it is of the invention
Embodiment is not limited to disclosed specific embodiment.The embodiment of the present invention be intended to cover appended claims spirit and
Included various modifications and equivalent arrangements in range.Scope of the following claims is to be accorded the broadest interpretation, thus comprising
All such modifications and equivalent structure and function.
Claims (29)
1. a kind of method for searching for block chain data, which comprises
A. via hypertext transfer protocol interface webpage read requests, the webpage read requests include the first unified resource
Positioning address and first time information;
B. determining whether there is index associated with first uniform resource location in caching, wherein the caching
Store the one or more indexes retrieved within a predetermined period of time, each index include the unified resource retrieved positioningly
Location, webpage associated with the uniform resource location and the second temporal information;
C1. there is index associated with first uniform resource location in the caching, and described first
In the case that temporal information is earlier than second temporal information in the index, returned via the hypertext transfer protocol interface
Return webpage associated with first uniform resource location.
2. according to the method described in claim 1, wherein, the method also includes:
C2. there is index associated with first uniform resource location and the first time in the caching
In the case that information is equal to second temporal information in the index, table is returned via the hypertext transfer protocol interface
Show the unmodified mark of webpage.
3. according to the method described in claim 1, wherein, the method also includes:
D11. determine that corresponding unified resource is fixed in the block chain based on the uniform resource location stored in each index
Block chain data at bit address;
D12. data corresponding to the webpage stored in the block chain data and the index are compared described in determination
Whether the block chain data at uniform resource location update;
It D13., will be with institute in the index in the case that block chain data at the uniform resource location are updated
It states the associated webpage of uniform resource location and is updated to block chain data webpage generated according to update, and will be described
Second time information renovation is the renewal time of the block chain data.
4. according to the method described in claim 1, wherein, the method also includes:
D21. determine that corresponding unified resource is fixed in the block chain based on the uniform resource location stored in each index
Block chain data at bit address;
D22. the modification time information of the block chain data is compared with the second temporal information in the index with true
Whether the block chain data at the fixed uniform resource location update;
D23. in the case where the modification time information of the block chain data is later than the second temporal information in the index,
Webpage associated with the uniform resource location is updated to be given birth to according to the block chain data of update in the index
At webpage, and by second time information renovation be the block chain data renewal time.
5. according to the method described in claim 1, wherein, the webpage read requests further include indicating to allow to return to difference webpage
The first indicator, each of described caching index further includes one or more difference webpages and poor with each respectively
The corresponding time segment information of rete mirabile page, the method also includes:
E1. determine that corresponding unified resource positions in the block chain based on the uniform resource location stored in each index
Block chain data at address;
E2. data corresponding to the webpage stored in the block chain data and the index are compared with the determination system
Whether the block chain data at one resource locator address update;
E3. in the case that the block chain data at the uniform resource location in the index are updated, using more
The corresponding difference of data difference generation between data corresponding to the webpage stored in new block chain data and the index
Webpage, by the renewal time of second temporal information and block chain data together as corresponding with the difference webpage
Time segment information;
E4. webpage associated with the uniform resource location is updated to generated according to the block chain data of update
Webpage, and be the renewal time of the block chain data by second time information renovation.
6. according to the method described in claim 5, wherein, existing and first uniform resource location in the caching
It is associated index and the first time information earlier than second temporal information in the index in the case where, it is described
Method further include:
F1. determining in the received webpage read requests of institute whether there is the first indicator;
F2. the first time information and institute are based on there are in the case where the first indicator in received webpage read requests
State the time residual quantity between the second temporal information in the determination caching exist one corresponding with the time residual quantity or
When multiple difference webpages, via the hypertext transfer protocol interface return it is corresponding with the time residual quantity one or
Multiple difference webpages.
7. according to the method described in claim 1, wherein, the method also includes:
C31. it in the case where index associated with first uniform resource location is not present in the caching, obtains
The first block chain data at first uniform resource location;
C32. at least one second uniform resource location is judged whether there is, wherein at least one described second unification
The second block chain data at resource locator address are associated with the first block chain data;
C33. in the case where there is at least one described second uniform resource location, according to the first block chain data
Webpage associated with first uniform resource location is generated at least one described second uniform resource location;
And
C34. webpage associated with first uniform resource location is returned via the hypertext transfer protocol interface.
8. according to the method described in claim 7, wherein, via the hypertext transfer protocol interface in the step C34
After returning to webpage associated with first uniform resource location, the method also includes:
C35. by first uniform resource location, webpage associated with first uniform resource location and
Second temporal information is stored indexed by the caching.
9. according to the method described in claim 7, wherein, the method also includes:
It is raw according to the first block chain data there is no at least one described second uniform resource location
At webpage associated with first uniform resource location.
10. according to the method described in claim 7, wherein, at least one second unification is judged whether there is in the step C32
Resource locator address further comprises:
According to hierarchy attributes included by the first block chain data and predetermined hierarchical relationship tree to determine whether depositing
In at least one described second uniform resource location.
11. obtained according to the method described in claim 7, wherein, in the step C31 first unified resource positioningly
The first block chain data at location further comprise:
Determined whether to obtain according to the account book storage location of the first block chain data and be positioned in first unified resource
The first block chain data at address,
Wherein, in the case where the first block chain data or the second block chain data are public data, described first
Block chain data or the second block chain data are stored in open account book;And in the first block chain data or described
In the case that second block chain data are private data, the first block chain data or the second block chain data are stored in
In privacy account book;
In the case where the first block chain data are stored in the open account book, it is fixed in first unified resource to obtain
The first block chain data at bit address.
12. obtained according to the method described in claim 7, wherein, in the step C31 first unified resource positioningly
The first block chain data at location further comprise:
Determined whether to obtain according to the storage region position of the first block chain data and be positioned in first unified resource
The first block chain data at address,
Wherein, in the case where the first block chain data or the second block chain data are public data, described first
Block chain data or the second block chain data are stored in the open region of account book;And in the first block chain data
Or in the case that the second block chain data are private data, the first block chain data or the second block chain data
It is stored in the privacy area of account book;
In the case where the first block chain data are stored in the open region of the account book, obtain in first unification
The first block chain data at resource locator address.
13. according to the method described in claim 7, wherein, the first block chain data and/or the second block chain data
The first block at first uniform resource location is obtained including the first attribute, and wherein, in the step C31
Chain data further comprise:
In the case where the first attribute of the first block chain data shows that the first block chain data are public data, obtain
Take the first block chain data at first uniform resource location.
14. method according to any one of claim 1 to 13, wherein be arranged in the search node of the block chain
The caching so that described search node be able to carry out it is according to any one of claim 1 to 13 for searching for block
The method of chain data.
15. a kind of equipment for searching for block chain data, the equipment include:
Processor;And
Memory makes the processor execute following operation when described instruction executes for storing instruction:
A. via hypertext transfer protocol interface webpage read requests, the webpage read requests include the first unified resource
Positioning address and first time information;
B. determining whether there is index associated with first uniform resource location in caching, wherein the caching
Store the one or more indexes retrieved within a predetermined period of time, each index include the unified resource retrieved positioningly
Location, webpage associated with the uniform resource location and the second temporal information;
C1. there is index associated with first uniform resource location in the caching, and described first
In the case that temporal information is earlier than second temporal information in the index, returned via the hypertext transfer protocol interface
Return webpage associated with first uniform resource location.
16. equipment according to claim 15, wherein described instruction also makes the processor execute following behaviour when executing
Make:
C2. there is index associated with first uniform resource location and the first time in the caching
In the case that information is equal to second temporal information in the index, table is returned via the hypertext transfer protocol interface
Show the unmodified mark of webpage.
17. equipment according to claim 15, wherein described instruction also makes the processor execute following behaviour when executing
Make:
D11. determine that corresponding unified resource is fixed in the block chain based on the uniform resource location stored in each index
Block chain data at bit address;
D12. data corresponding to the webpage stored in the block chain data and the index are compared described in determination
Whether the block chain data at uniform resource location update;
It D13., will be with institute in the index in the case that block chain data at the uniform resource location are updated
It states the associated webpage of uniform resource location and is updated to block chain data webpage generated according to update, and will be described
Second time information renovation is the renewal time of the block chain data.
18. equipment according to claim 15, wherein described instruction also makes the processor execute following behaviour when executing
Make:
D21. determine that corresponding unified resource is fixed in the block chain based on the uniform resource location stored in each index
Block chain data at bit address;
D22. the modification time information of the block chain data is compared with the second temporal information in the index with true
Whether the block chain data at the fixed uniform resource location update;
D23. in the case where the modification time information of the block chain data is later than the second temporal information in the index,
Webpage associated with the uniform resource location is updated to be given birth to according to the block chain data of update in the index
At webpage, and by second time information renovation be the block chain data renewal time.
19. equipment according to claim 15, wherein the webpage read requests further include indicating to allow to return to difference net
Page the first indicator, it is described caching each of index further include one or more difference webpages and with respectively each
The corresponding time segment information of difference webpage, described instruction also make the processor execute following operation when executing:
E1. determine that corresponding unified resource positions in the block chain based on the uniform resource location stored in each index
Block chain data at address;
E2. data corresponding to the webpage stored in the block chain data and the index are compared with the determination system
Whether the block chain data at one resource locator address update;
E3. in the case that the block chain data at the uniform resource location in the index are updated, using more
The corresponding difference of data difference generation between data corresponding to the webpage stored in new block chain data and the index
Webpage, by the renewal time of second temporal information and block chain data together as corresponding with the difference webpage
Time segment information;
E4. webpage associated with the uniform resource location is updated to generated according to the block chain data of update
Webpage, and be the renewal time of the block chain data by second time information renovation.
20. equipment according to claim 19, wherein exist with first unified resource positioningly in the caching
Location it is associated index and the first time information earlier than second temporal information in the index in the case where, institute
The processor is also made to execute following operation when stating instruction execution:
F1. determining in the received webpage read requests of institute whether there is the first indicator;
F2. the first time information and institute are based on there are in the case where the first indicator in received webpage read requests
State the time residual quantity between the second temporal information in the determination caching exist one corresponding with the time residual quantity or
When multiple difference webpages, via the hypertext transfer protocol interface return it is corresponding with the time residual quantity one or
Multiple difference webpages.
21. equipment according to claim 15, wherein described instruction also makes the processor execute following behaviour when executing
Make:
C31. it in the case where index associated with first uniform resource location is not present in the caching, obtains
The first block chain data at first uniform resource location;
C32. at least one second uniform resource location is judged whether there is, wherein at least one described second unification
The second block chain data at resource locator address are associated with the first block chain data;
C33. in the case where there is at least one described second uniform resource location, according to the first block chain data
Webpage associated with first uniform resource location is generated at least one described second uniform resource location;
And
C34. webpage associated with first uniform resource location is returned via the hypertext transfer protocol interface.
22. equipment according to claim 21, wherein connect in the step C34 via the hypertext transfer protocol
After mouth returns to webpage associated with first uniform resource location, described instruction also makes the processing when executing
Device executes following operation:
C35. by first uniform resource location, webpage associated with first uniform resource location and
Second temporal information is stored indexed by the caching.
23. equipment according to claim 21, wherein described instruction also makes the processor execute following behaviour when executing
Make:
It is raw according to the first block chain data there is no at least one described second uniform resource location
At webpage associated with first uniform resource location.
24. equipment according to claim 21, wherein judge whether there is at least one second system in the step C32
One resource locator address further comprises:
According to hierarchy attributes included by the first block chain data and predetermined hierarchical relationship tree to determine whether depositing
In at least one described second uniform resource location.
25. equipment according to claim 21, wherein obtain in the step C31 and positioned in first unified resource
The first block chain data at address further comprise:
Determined whether to obtain according to the account book storage location of the first block chain data and be positioned in first unified resource
The first block chain data at address,
Wherein, in the case where the first block chain data or the second block chain data are public data, described first
Block chain data or the second block chain data are stored in open account book;And in the first block chain data or described
In the case that second block chain data are private data, the first block chain data or the second block chain data are stored in
In privacy account book;
In the case where the first block chain data are stored in the open account book, it is fixed in first unified resource to obtain
The first block chain data at bit address.
26. equipment according to claim 21, wherein obtain in the step C31 and positioned in first unified resource
The first block chain data at address further comprise:
Determined whether to obtain according to the storage region position of the first block chain data and be positioned in first unified resource
The first block chain data at address,
Wherein, in the case where the first block chain data or the second block chain data are public data, described first
Block chain data or the second block chain data are stored in the open region of account book;And in the first block chain data
Or in the case that the second block chain data are private data, the first block chain data or the second block chain data
It is stored in the privacy area of account book;
In the case where the first block chain data are stored in the open region of the account book, obtain in first unification
The first block chain data at resource locator address.
27. equipment according to claim 21, wherein the first block chain data and/or the second block chain number
According to including the first attribute, the firstth area at first uniform resource location and wherein, in the step C31 is obtained
Block chain data further comprise:
In the case where the first attribute of the first block chain data shows that the first block chain data are public data, obtain
Take the first block chain data at first uniform resource location.
28. equipment described in any one of 4 to 27 according to claim 1, wherein searching for the block chain is arranged in the equipment
In socket point, and described search node includes the caching, so that described search node can be realized according to claim 14
To the operation of the equipment described in any one of 27 for searching for block chain data.
29. a kind of computer readable storage medium has the computer-readable program instructions being stored thereon, the computer
Readable program instructions are used to execute according to claim 1 to the method described in any one of 14 for searching for block chain data.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810878351.0A CN109145188A (en) | 2018-08-03 | 2018-08-03 | For searching for the method, equipment and computer readable storage medium of block chain data |
PCT/CN2019/098186 WO2020024903A1 (en) | 2018-08-03 | 2019-07-29 | Method and device for searching for blockchain data, and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810878351.0A CN109145188A (en) | 2018-08-03 | 2018-08-03 | For searching for the method, equipment and computer readable storage medium of block chain data |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109145188A true CN109145188A (en) | 2019-01-04 |
Family
ID=64791677
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810878351.0A Pending CN109145188A (en) | 2018-08-03 | 2018-08-03 | For searching for the method, equipment and computer readable storage medium of block chain data |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109145188A (en) |
WO (1) | WO2020024903A1 (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109885794A (en) * | 2019-01-24 | 2019-06-14 | 曲阜师范大学 | A processing method for cyclically updating web pages based on blockchain |
CN110008738A (en) * | 2019-02-21 | 2019-07-12 | 网易(杭州)网络有限公司 | For the caching method of block chain contract data, device, medium and calculate equipment |
WO2020024903A1 (en) * | 2018-08-03 | 2020-02-06 | 上海点融信息科技有限责任公司 | Method and device for searching for blockchain data, and computer readable storage medium |
CN111159289A (en) * | 2019-12-17 | 2020-05-15 | 深圳前海微众银行股份有限公司 | A method and device for block synchronization |
CN111630549A (en) * | 2020-04-22 | 2020-09-04 | 支付宝(杭州)信息技术有限公司 | Managing transaction requests in ledger system |
WO2021048663A1 (en) * | 2019-09-12 | 2021-03-18 | nChain Holdings Limited | Sharing data via transactions of a blockchain |
US11455631B2 (en) | 2020-04-22 | 2022-09-27 | Alipay (Hangzhou) Information Technology Co., Ltd. | Managing transaction requests in ledger systems |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020140729A1 (en) * | 2001-03-30 | 2002-10-03 | Price Stephen H. | Dynamic web list display |
CN102087664A (en) * | 2011-01-27 | 2011-06-08 | 深圳市五巨科技有限公司 | Optimizing method of mobile terminal access network, system and mobile terminal |
CN103714078A (en) * | 2012-09-29 | 2014-04-09 | 百度在线网络技术(北京)有限公司 | Method, system and device for providing update contents of web pages |
CN104133852A (en) * | 2014-07-04 | 2014-11-05 | 小米科技有限责任公司 | Webpage access method, webpage access device, server and terminal |
CN108062413A (en) * | 2017-12-30 | 2018-05-22 | 平安科技(深圳)有限公司 | Web data processing method, device, computer equipment and storage medium |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10691763B2 (en) * | 2016-11-11 | 2020-06-23 | International Business Machines Corporation | Trustable web searching verification in a blockchain |
CN107273556A (en) * | 2017-08-23 | 2017-10-20 | 上海点融信息科技有限责任公司 | Block chain data index method and equipment |
CN107943893A (en) * | 2017-11-16 | 2018-04-20 | 北京奇安信科技有限公司 | A kind of search processing method and device based on internet |
CN109145188A (en) * | 2018-08-03 | 2019-01-04 | 上海点融信息科技有限责任公司 | For searching for the method, equipment and computer readable storage medium of block chain data |
-
2018
- 2018-08-03 CN CN201810878351.0A patent/CN109145188A/en active Pending
-
2019
- 2019-07-29 WO PCT/CN2019/098186 patent/WO2020024903A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020140729A1 (en) * | 2001-03-30 | 2002-10-03 | Price Stephen H. | Dynamic web list display |
CN102087664A (en) * | 2011-01-27 | 2011-06-08 | 深圳市五巨科技有限公司 | Optimizing method of mobile terminal access network, system and mobile terminal |
CN103714078A (en) * | 2012-09-29 | 2014-04-09 | 百度在线网络技术(北京)有限公司 | Method, system and device for providing update contents of web pages |
CN104133852A (en) * | 2014-07-04 | 2014-11-05 | 小米科技有限责任公司 | Webpage access method, webpage access device, server and terminal |
CN108062413A (en) * | 2017-12-30 | 2018-05-22 | 平安科技(深圳)有限公司 | Web data processing method, device, computer equipment and storage medium |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020024903A1 (en) * | 2018-08-03 | 2020-02-06 | 上海点融信息科技有限责任公司 | Method and device for searching for blockchain data, and computer readable storage medium |
CN109885794A (en) * | 2019-01-24 | 2019-06-14 | 曲阜师范大学 | A processing method for cyclically updating web pages based on blockchain |
CN109885794B (en) * | 2019-01-24 | 2020-10-20 | 曲阜师范大学 | Processing method for circularly and synchronously updating webpage based on block chain |
CN110008738A (en) * | 2019-02-21 | 2019-07-12 | 网易(杭州)网络有限公司 | For the caching method of block chain contract data, device, medium and calculate equipment |
CN114402573A (en) * | 2019-09-12 | 2022-04-26 | 区块链控股有限公司 | Share data via blockchain transactions |
US11893074B2 (en) | 2019-09-12 | 2024-02-06 | Nchain Licensing Ag | Sharing data via transactions of a blockchain |
WO2021048663A1 (en) * | 2019-09-12 | 2021-03-18 | nChain Holdings Limited | Sharing data via transactions of a blockchain |
US20220342951A1 (en) * | 2019-09-12 | 2022-10-27 | nChain Holdings Limited | Sharing Data Via Transactions of a Blockchain |
CN111159289A (en) * | 2019-12-17 | 2020-05-15 | 深圳前海微众银行股份有限公司 | A method and device for block synchronization |
WO2021120925A1 (en) * | 2019-12-17 | 2021-06-24 | 深圳前海微众银行股份有限公司 | Block synchronization method and device |
CN111159289B (en) * | 2019-12-17 | 2024-03-01 | 深圳前海微众银行股份有限公司 | Method and device for synchronizing blocks |
US11455631B2 (en) | 2020-04-22 | 2022-09-27 | Alipay (Hangzhou) Information Technology Co., Ltd. | Managing transaction requests in ledger systems |
US11455297B2 (en) | 2020-04-22 | 2022-09-27 | Alipay (Hangzhou) Information Technology Co., Ltd. | Managing transaction requests in ledger systems |
CN111630549A (en) * | 2020-04-22 | 2020-09-04 | 支付宝(杭州)信息技术有限公司 | Managing transaction requests in ledger system |
Also Published As
Publication number | Publication date |
---|---|
WO2020024903A1 (en) | 2020-02-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109145188A (en) | For searching for the method, equipment and computer readable storage medium of block chain data | |
CN109033406A (en) | For searching for the method, apparatus and storage medium of block chain data | |
CN107896175A (en) | Collecting method and device | |
CN109167811A (en) | A kind of across chain data access method and device based on block chain | |
CN109033403A (en) | For searching for the method, apparatus and storage medium of block chain data | |
CN108446976B (en) | A kind of common reserve fund transfer method, computer readable storage medium and terminal device | |
CN109740038A (en) | Network data distributed parallel computing environment and method | |
CN109101607A (en) | For searching for the method, apparatus and storage medium of block chain data | |
CN109063138A (en) | For in block chain, that is, service platform search data method, equipment and storage medium | |
CN109086413A (en) | For searching for the method, equipment and readable storage medium storing program for executing of block chain data | |
CN110489413A (en) | A kind of storage of transaction record, querying method and system, equipment and storage medium | |
CN109587271A (en) | Main chain parallel chain architecture system and block synchronous method, equipment and storage medium | |
CN108039959A (en) | Situation Awareness method, system and the relevant apparatus of a kind of data | |
CN109669931A (en) | Historical data exception analysis method, system, equipment and storage medium | |
CN109492053A (en) | Method and apparatus for accessing data | |
CN110348771A (en) | The method and apparatus that a kind of pair of order carries out group list | |
CN109447635A (en) | Information storage means and device for block chain | |
CN109903050A (en) | Transaction De-weight method, transaction building method, equipment and storage medium | |
CN109388654A (en) | A kind of method and apparatus for inquiring tables of data | |
CN110389812A (en) | For managing the method, equipment and computer readable storage medium of virtual machine | |
CN110019263A (en) | Information storage means and device | |
CN110515968A (en) | Method and apparatus for output information | |
CN110019552A (en) | User pays close attention to the method and apparatus that state updates | |
CN109542657A (en) | The processing method and server of system exception | |
CN109213824A (en) | Data grabber system, method and apparatus |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20190104 |
|
WD01 | Invention patent application deemed withdrawn after publication |