WO2024021409A1 - 数据检索方法及装置 - Google Patents
数据检索方法及装置 Download PDFInfo
- Publication number
- WO2024021409A1 WO2024021409A1 PCT/CN2022/135150 CN2022135150W WO2024021409A1 WO 2024021409 A1 WO2024021409 A1 WO 2024021409A1 CN 2022135150 W CN2022135150 W CN 2022135150W WO 2024021409 A1 WO2024021409 A1 WO 2024021409A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- target data
- provider
- data
- credibility
- description information
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 66
- 239000003999 initiator Substances 0.000 claims abstract description 46
- 230000004044 response Effects 0.000 claims abstract description 12
- 230000000875 corresponding effect Effects 0.000 claims description 39
- 238000011156 evaluation Methods 0.000 claims description 13
- 230000002596 correlated effect Effects 0.000 claims description 6
- 238000005516 engineering process Methods 0.000 description 11
- 230000008569 process Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- OKTJSMMVPCPJKN-UHFFFAOYSA-N Carbon Chemical compound [C] OKTJSMMVPCPJKN-UHFFFAOYSA-N 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 239000006227 byproduct Substances 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000001149 cognitive effect Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 229910021389 graphene Inorganic materials 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
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
- G06F16/9535—Search customisation based on user profiles and personalisation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- 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/951—Indexing; Web crawling techniques
-
- 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
- G06F16/9532—Query formulation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
Definitions
- the embodiments of this specification relate to the field of blockchain technology, and in particular, to a data retrieval method and device.
- Data retrieval refers to the process of extracting data from the database according to user needs.
- embodiments of this specification provide a data retrieval method and device.
- a data retrieval method which includes: responding to a retrieval request initiated by a user, performing data retrieval according to keywords contained in the retrieval request, and obtaining several target data; obtaining each target The credibility of the data provider, the obtained credibility is determined based on the description information of the provider of several target data maintained in the blockchain system; the retrieved target data and the obtained credibility are returned to The initiator of the retrieval request displays each received target data according to the credibility of each provider.
- a data retrieval method including: in response to a retrieval transaction initiated by a user, retrieval in data maintained by the blockchain system according to the keywords contained in the retrieval transaction, Obtain several target data; among the description information of all providers maintained by the blockchain system, search for the description information of the providers of the several target data, and determine the credibility of each provider based on the found description information. ; Return the retrieved target data and the determined credibility level to the initiator of the retrieval transaction, so that the initiator displays each received target data according to the credibility level of each provider.
- a data indexing device including: a retrieval unit that responds to a retrieval request initiated by a user, performs data retrieval based on keywords included in the retrieval request, and obtains a number of target data;
- the acquisition unit obtains the credibility of the provider of each target data, and the obtained credibility is determined based on the description information of the providers of several target data maintained in the blockchain system;
- the return unit obtains the retrieved target data
- the data and the obtained credibility are returned to the initiator of the retrieval request, so that the initiator displays each received target data according to the credibility of each provider.
- a data indexing device including: a retrieval unit, in response to a retrieval transaction initiated by a user, in the data maintained by the blockchain system according to the keywords contained in the retrieval transaction. Perform a search to obtain a number of target data; the search unit searches for the description information of the providers of the several target data in the description information of all providers maintained by the blockchain system, and determines each provider based on the found description information. The credibility of the provider; the return unit returns the retrieved target data and the determined credibility to the initiator of the retrieval transaction, so that the initiator can display the received data based on the credibility of each provider. of each target data.
- an electronic device including: a processor; and a memory for storing instructions executable by the processor.
- the processor implements the method described in the first aspect or the second aspect by running the executable instructions.
- a computer-readable storage medium on which computer instructions are stored.
- the instructions are executed by a processor, the steps of the method described in the first or second aspect are implemented.
- Figure 1 is a flow chart of a data retrieval method provided by an exemplary embodiment.
- Figure 2 is a flow chart of another data retrieval method provided by an exemplary embodiment.
- Figure 3 is an interaction diagram of a data retrieval method provided by an exemplary embodiment.
- Figure 4 is a schematic structural diagram of a device provided by an exemplary embodiment.
- Figure 5 is a block diagram of a data retrieval device provided in an exemplary embodiment.
- Figure 6 is a block diagram of a data retrieval device provided in an exemplary embodiment.
- the steps of the corresponding method are not necessarily performed in the order shown and described in this specification.
- methods may include more or fewer steps than described in this specification.
- a single step described in this specification may be broken down into multiple steps for description in other embodiments; and multiple steps described in this specification may also be combined into a single step in other embodiments. describe.
- a retrieval platform that provides retrieval services usually maintains a corresponding database. Users only need to submit keywords to the search platform, and the required data can be filtered from the database.
- the retrieval platform In the process of data retrieval in related technologies, the retrieval platform only performs data retrieval based on keywords and displays the retrieved data. It is difficult for users to know whether the data source of each data is trustworthy.
- the present disclosure proposes a data retrieval method that enables users to identify whether the data source of each data is credible based on the retrieval results, thereby avoiding the problem in related technologies that users cannot identify whether the retrieved data is credible.
- Figure 1 is a flow chart of a data retrieval method according to an exemplary embodiment of this specification. As shown in Figure 1, the method may include the following steps:
- Step 102 In response to the retrieval request initiated by the user, perform data retrieval based on the keywords contained in the retrieval request to obtain several target data.
- the related technology only performs data retrieval based on keywords without any other processing, making it impossible for users to know whether the retrieved data is trustworthy.
- this manual in addition to performing data retrieval based on the keywords provided by the user, this manual further obtains the credibility of the provider of each retrieved target data, and combines the retrieved target data and the obtained credibility. Return to the originator of the retrieval request. On this basis, the initiator can display each target data based on the credibility of each provider.
- this specification displays the target data provided by the corresponding provider based on the credibility of the provider.
- the user can know the credibility of the provider of each retrieved target data from the finally displayed retrieval results.
- the data provided by a provider with a relatively higher degree of credibility is usually more credible, that is, the credibility of the provider is usually strongly bound to the credibility of the data it provides. It can be seen that through the technical solution in this specification, users can identify relatively more trustworthy target data from several target data, avoiding many problems caused by the difficulty in related technologies for users to know whether each target data is trustworthy.
- this manual maintains the description information of each provider in the blockchain system, and the credibility of the provider of each target data obtained can be determined based on the description information of the provider maintained on the chain. . It should be understood that maintaining the provider's description information in the blockchain system can avoid the problem that the description information is tampered with, causing the determined provider's credibility itself to be unreliable, and indirectly ensures the accuracy of the final displayed search results. reliability.
- data retrieval operations can be performed either in the off-chain database or in the data maintained by the blockchain system.
- the keywords contained in it can be read. If data retrieval is performed in an off-chain database, the read keywords can be sent to the corresponding off-chain database for use by the chain.
- the database performs data retrieval based on keywords and returns the retrieved target data; if data retrieval is performed in the blockchain system, the keywords can be submitted to the blockchain system so that the blockchain system can retrieve the data based on the keywords. Perform data retrieval in the maintained data and return the retrieved target data.
- the above examples are only illustrative. The specific database and method to perform data retrieval can be determined by those skilled in the art according to actual needs, and this specification does not limit this.
- Step 104 Obtain the credibility of each provider of target data.
- the obtained credibility is determined based on the description information of the providers of several target data maintained in the blockchain system.
- the credibility of the obtained target data provider is determined based on the description information of the target data provider maintained in the blockchain system.
- the operation of determining the degree of credibility based on the description information can be performed by different subjects according to the actual situation.
- the operation of determining the degree of credibility can be performed by the execution subject of this specification that is different from the blockchain system.
- the blockchain system can search for the provider of the target data in the description information of all providers maintained. description information, and return the found description information, so that the execution subject of this specification can determine the credibility of the provider of each target data based on the received description information.
- the operation of determining the degree of credibility can be performed by the blockchain system. For example, after the blockchain system finds the description information of the provider of the target data, it can directly determine the identity of each target data based on the found description information. The trustworthiness of the provider and the determined trustworthiness will be returned.
- the description information of the data provider can be stored in the blockchain system in different ways.
- the description information of the provider can be stored in the blockchain structure of the blockchain system.
- the storage function of the certificate can complete the storage of data; for another example, the description information of the provider can be stored in the contract state of the smart contract deployed in the blockchain system, or in the world state of the blockchain system.
- the blockchain system when the blockchain system receives data submitted by any provider, it can call and execute the corresponding smart contract to store the data into the contract state or world state.
- the provider's description information when the provider's description information is stored in the blockchain structure, the provider's description information can be stored in different locations according to actual needs.
- the storage location of the description information of the provider of the target data can be related to the target block that maintains the target data, for example, the description of any provider of the target data
- the information can be stored in the block header of the target block that maintains the any target data.
- the description information of the provider of any target data can be stored in the block header of the target block that maintains the any target data. in the associated block.
- a data source block dedicated to storing the description information of the provider can be maintained.
- the description information of the provider of any target data needs to be obtained, , which can be obtained from the data source block.
- the description information of the provider can be stored in at least one of the block header, the regular block, and the data source block.
- the description information of the target data provider when the description information of the target data provider is stored in the block header of the target block, it can be extracted directly from it.
- the index information of the description information of the provider of the target data can be maintained in the block header of the target block. Then, when the blockchain system needs to obtain the description information of the provider of any target data, the corresponding index information can be read from the block header of the target block corresponding to the any target data, and the corresponding index information can be read according to the read The index information is obtained, and the description information of the provider of any target data is read from the data source block and the associated block.
- the description information of the provider when you need to obtain the description information of the provider of any target data, you can call and Execute the corresponding smart contract to read from the corresponding contract state or world state.
- the description information of the provider can be maintained in the contract state of the certificate deposit contract by executing the certificate deposit contract. Then, when it is necessary to obtain the description information of the provider, the certificate deposit contract can be called again to obtain the contract status from the certificate deposit contract. Read the description information of the corresponding provider.
- this example is only illustrative. The specific method of reading the description information from the contract state or the world state can be determined by those skilled in the art according to actual needs, and this specification does not limit this.
- description information in several dimensions can be maintained in the blockchain system.
- the description information of the provider may include: the data type for which the provider has the authority to provide, the name of the provider, the unique identifier of the provider, the industry to which the provider belongs, the link that the provider is responsible for in the industry, etc.
- this example is only illustrative.
- the specific information contained in the description information of the provider maintained in the blockchain system can be determined by those skilled in the art according to actual needs, and this specification does not limit this.
- the above-mentioned name of the provider, the unique identifier of the provider, etc. can be regarded as information used to describe the basic situation of the provider.
- information in other dimensions can also be used as description information of the provider of any target data.
- other data provided by the provider of any target data can also be used as the description information of the provider of any target data; for another example, other data provided by the provider of any target data can also be used as the description information of the provider of any target data.
- the ratio of advantages and disadvantages serves as the description information of the provider of any target data.
- this example is only illustrative. What kind of information can be used as the description information of the provider of the target data can be determined by those skilled in the art according to actual needs, and this specification does not limit this.
- the credibility of the corresponding provider can be determined based on the description information.
- the credibility of its provider can be positively correlated with at least one of the following: the type to which any target data belongs, and the matching of the data type for which the provider of any target data has permission to provide. degree; the degree of matching between any target data and other data provided by the provider of any target data; the proportion of the historical evaluation information of other data provided by the provider of any target data.
- the provider of any target data has a data type with permission to provide, and the closer it is to the data type of any target data (that is, the higher the degree of matching), the higher the credibility of the corresponding provider.
- the corresponding provider can be given a trust value "used to indicate a higher degree of credibility".
- the method of "determining the matching degree of the data type of the target data and the data type for which the provider has permission to provide” is only illustrative. How to determine the matching degree can be determined by those skilled in the art according to the actual situation. The instructions do not limit this.
- the matching degree between any target data and other data provided by its provider the higher the credibility of the provider.
- the matching degree between any target data and other data can be related to the object it describes. For example, if the two describe the same object, the first trust value can be assigned to the corresponding provider. If the two describe different objects but are of the same type, the second trust value can be assigned to the corresponding provider. If If the two describe different types of objects, the corresponding provider can be given a third trusted value. Wherein, the first credible value is greater than the second credible value, and the second credible value is greater than the third credible value.
- the method of determining the matching degree of the target data and other data provided by the provider is only illustrative. The specific method of determining the matching degree can be determined by those skilled in the art according to actual conditions, and this specification does not limit this.
- the blockchain system can maintain the corresponding evaluation system. For users to evaluate the retrieved data, and the evaluation information is also maintained in the blockchain system.
- the blockchain system can also grant the corresponding provider a trustworthy identification when the provider's credibility is higher than the preset level to represent that the provider has a higher credibility. Then, the blockchain system can also return the trusted identification of the provider of several retrieved target data. Correspondingly, the trusted identification can also be returned to the initiator of the retrieval request, so that the initiator can verify the trusted identification. Display in association with corresponding target data.
- the trustworthy identification granted by the blockchain system to each provider whose trustworthiness is higher than the preset level can be uniquely determined; the blockchain system can also be granted to all providers whose trustworthiness is higher than the preset level.
- a unified trusted identity of the provider The specific method of granting a trusted identity to the provider can be determined by those skilled in the art based on actual needs, and this specification does not limit this.
- Step 106 Return the retrieved target data and the obtained credibility level to the initiator of the retrieval request, so that the initiator displays each received target data according to the credibility level of each provider.
- the retrieved target data and the obtained credibility can be returned to the initiator of the retrieval request, so that the retrieved target data and the credibility of the provider can be retrieved according to each provider's request.
- the credibility of the party is displayed, and each target data received is displayed.
- the initiator can sort each target data according to the credibility of each provider, and display each target data after completing the sorting.
- target data provided by providers with a relatively higher degree of credibility can be prioritized for display, so that when users browse the retrieved target data, they can focus on the target data provided by providers with a higher degree of credibility.
- the initiator can correlate and display each target data and the credibility of its provider.
- the credibility of the provider can be displayed in the association area of each displayed target data, so that users can know whether the provider of the corresponding target data is credible by correlating the credibility displayed.
- the execution subject of this specification can be a retrieval platform connected to the blockchain system.
- the retrieval platform can be any server or server cluster that provides retrieval services, or any other entity device that can provide retrieval services. or virtual device.
- the above-mentioned execution subject is only illustrative. Which execution subject the technical solution of this specification is applied to can be determined by those skilled in the art according to the actual situation, and this specification does not limit this.
- the blockchain system in this manual can be deployed based on the traditional architecture of blockchain technology, that is, all nodes in the blockchain system are formed by deploying blockchain code on corresponding physical devices. , in most cases, each node corresponds to a physical device; it can also be deployed based on the BaaS (Blockchain as a Service) architecture in blockchain technology, that is, all nodes in the blockchain network are in the cloud through cloud services. It is formed by deploying blockchain code on the implemented virtual machine, and the blockchain nodes do not need to correspond one-to-one to the corresponding physical devices.
- the specific method of deploying the blockchain system in this specification can be deployed by those skilled in the art according to actual conditions, and this specification does not limit this.
- this specification can further obtain the credibility of the provider of the retrieved target data, and combine the retrieved target data and the obtained The credibility level is returned to the initiator of the retrieval request, so that the initiator can display each target data based on the description information of each provider.
- the credibility obtained by this manual is based on the description information of the provider maintained in the blockchain system.
- the blockchain technology has the characteristics of non-tampering, which allows this manual to ensure the credibility and reliability of the provider of the obtained target data, and indirectly improves the reliability of the displayed search results.
- the description information of the provider can be maintained in the blockchain structure of the blockchain system, the world state of the blockchain system, or the contract state of the smart contract deployed in the blockchain system. , so that this manual can have strong scalability.
- the description information of any target data provider in addition to the information used to describe the provider's situation, may also include other data provided by the corresponding provider, as well as historical evaluation information of the other data, resulting in this specification.
- the credibility of the target data provider can be evaluated from multiple dimensions, which improves the accuracy of the determined credibility of each provider.
- FIG. 2 is a flow chart of another data retrieval method according to an exemplary embodiment of the description. As shown in Figure 2, the method may include the following steps:
- Step 202 In response to the retrieval transaction initiated by the user, search the data maintained by the blockchain system according to the keywords contained in the retrieval transaction to obtain several target data.
- the retrieval method in this embodiment is applied to the blockchain system, the user needs to initiate a retrieval request in the form of a transaction.
- the user initiates a retrieval transaction containing keywords to indicate the blockchain
- the system performs data retrieval in the maintained data based on keywords.
- the blockchain system can call pre-deployed retrieval transactions to perform retrieval operations.
- Step 204 Search the description information of the providers of several target data in the description information of all providers maintained by the blockchain system, and determine the credibility of each provider based on the found description information.
- the description information of the provider of the target data can be searched from the description information of all maintained providers, and the availability of each provider can be determined based on the found description information. degree of trust.
- the description information of the data provider can be stored in the blockchain system in different ways.
- the description information of the provider can be stored in the blockchain structure of the blockchain system; for another example, the description information of the provider can be stored in the contract state of the smart contract deployed in the blockchain system, or the blockchain in the world state of the system.
- the description information of the provider can be stored in different locations according to actual needs.
- the storage location of the description information of the provider of the target data can be related to the target block where the target data is maintained.
- the description information of the provider of any target data can be stored in the target block where the target data is maintained.
- the description information of the provider of any target data can be stored in the associated block of the target block that maintains the any target data; for another example, the blockchain system
- a data source block dedicated to storing the description information of the provider can be maintained. In this case, when the description information of the provider of any target data needs to be obtained, the data source can be obtained Obtained from the block.
- an index with the description information of the provider of the target data can be maintained in the block header of the target block.
- the blockchain system needs to obtain the description information of the provider of any target data, it can read the corresponding index information from the block header of the target block corresponding to the any target data, so as to The read index information reads the description information of the provider of any target data from the data source block and the associated block.
- the description information of the provider may include: the data type for which the provider has the authority to provide, the name of the provider, the unique identifier of the provider, the industry to which the provider belongs, the link that the provider is responsible for in the industry, etc.
- information in other dimensions can also be used as description information of the provider of any target data.
- other data provided by the provider of any target data can also be used as the description information of the provider of any target data; for another example, other data provided by the provider of any target data can also be used as the description information of the provider of any target data.
- the ratio of advantages and disadvantages serves as the description information of the provider of any target data.
- the credibility of its provider can be positively correlated with at least one of the following: the type to which any target data belongs, and the data type to which the provider of any target data has permission to provide.
- the blockchain system can also grant the corresponding provider a trustworthy identification when the provider's credibility is higher than the preset level to represent that the provider has a higher credibility. Then, when the blockchain system retrieves the target data, it can also determine the trusted identifiers of several providers of the target data from the found description information, and return the trusted identifiers to the initiator of the retrieval transaction. , so that the initiator associates and displays the trusted identifier with the corresponding target data.
- Step 206 Return the retrieved target data and the determined credibility level to the initiator of the retrieval transaction, so that the initiator displays each received target data according to the credibility level of each provider.
- the retrieved target data and the obtained credibility can be returned to the initiator of the retrieval request, so that the retrieved target data and the credibility of the provider can be retrieved according to the requirements of each provider.
- the degree of credibility of each target data received is displayed.
- the initiator can sort each target data according to the credibility of each provider, and display each target data after completing the sorting.
- the initiator can correlate and display each target data and the credibility of its provider.
- the blockchain system in this specification can maintain data provided by various providers, so that when the blockchain system receives a retrieval transaction, it can perform data retrieval in the maintained data to obtain several targets. data. Furthermore, the blockchain system can also obtain the description information of each provider of target data, and determine the credibility of each provider based on the obtained description information. On this basis, the blockchain system can return the retrieved target data and the obtained credibility to the initiator of the retrieval transaction, so that the initiator can process each target data based on the description information of each provider. Make a presentation.
- FIG. 3 is an interaction diagram of a data retrieval method according to an exemplary embodiment of this specification. As shown in Figure 3, the method may include the following steps:
- Step 301 The client generates a retrieval request in response to a retrieval instruction containing keywords initiated by the user.
- the client can display an input box for data retrieval to the user, so that the user can enter keywords in the input box based on their own retrieval needs.
- the client when the client detects a search instruction initiated by the user by inputting a keyword, the client can generate a search request based on the keyword.
- Step 302 The client sends the generated retrieval request to the BaaS server.
- the blockchain system is deployed based on the BaaS architecture.
- the blockchain system deployed based on the BaaS architecture may include a BaaS server and a blockchain network, where the BaaS server is responsible for connecting with the blockchain network. Therefore, after the client generates a retrieval request, it can send the retrieval request to the BaaS platform, so that the BaaS platform generates a retrieval transaction based on the keywords contained in the retrieval request and sends it to the blockchain network.
- Step 303 The BaaS server generates a retrieval transaction based on the retrieval request.
- Step 304 the BaaS server sends the retrieval transaction to the blockchain network.
- Step 305 The blockchain network performs data retrieval based on keywords and obtains several target data.
- the blockchain network after receiving the retrieval transaction sent by the BaaS server, the blockchain network can search in the maintained data based on the keywords contained in the retrieval transaction to obtain several target data.
- Step 306 The blockchain network determines the target block that maintains each target data.
- the target block that maintains the target data can be further determined to obtain the description information of the provider of the target block based on the index information contained in the block header of the target block. .
- Step 307 The blockchain network reads the index information from the block header of the target block.
- the block header of the target block may maintain brief information of the provider of the target data, such as the name of the provider, the provider's unique number, etc. This brief information can also be used as part of the description of the corresponding provider.
- Step 308 The blockchain network obtains the description information of the provider of each target data based on the index information.
- the index information in the block header of the target block may include two parts: one is the index information of other data provided by the provider of the target data; the other is the description information of the provider of the target data.
- the index information in the data source block refers to the block in the blockchain structure that is dedicated to storing the provider's description information.
- historical evaluation information with corresponding data can also be maintained in each block of the blockchain structure.
- the blockchain network is based on index information.
- the description information of the provider of the target data obtained can include: other data provided by the provider, historical evaluation information of other data, and information maintained in the data source block. Description of this provider.
- the description information listed here is only illustrative. The specific information contained in the obtained description information can be determined by those skilled in the art according to actual needs, and this embodiment does not limit this.
- Step 309 The blockchain network determines the trustworthy value of each provider based on the obtained description information.
- the trustworthiness value of the corresponding provider can be determined. This trust value is used to evaluate the trustworthiness of the corresponding provider.
- the degree of matching between the other data and the target data can be determined. For example, when the object described by the two is the same object, a higher value can be assigned to it. High matching value; on the other hand, it can determine the proportion of historical evaluation information of other data; on the other hand, it can be determined based on the description information obtained from the data source block that the provider of the target data has the authority to provide The data type is compared with the data type of the target data to obtain a matching value. On this basis, a trustworthy value can be obtained based on the obtained matching value and the pros and cons ratio, which can be used to characterize the credibility of the corresponding provider.
- Step 310 The blockchain network returns the retrieved target data and the determined trusted values of each provider to the BaaS platform.
- the blockchain network after the blockchain network obtains the target data and the trusted value of the provider, it can return the target data and its trusted value to the BaaS platform, and forward it to the client by BaaS for use by the client.
- the end sorts and displays each target data according to the trustworthiness value of the provider of each target data.
- step 311 the BaaS platform returns the received target data and the trusted values of each provider to the client.
- Step 312 The client sorts and displays each target data according to the received trustworthy values of each provider.
- this embodiment in addition to performing data retrieval in the blockchain network based on keywords to obtain the target data, this embodiment can also obtain the description information of the provider of the target data from the blockchain structure, and obtain the target data based on the obtained The description information determines the trustworthiness of each provider. On this basis, after receiving the retrieval results, the client can sort the target data according to the trust value before displaying it, so that the user can clearly know whether the source of the target data is reliable based on the displayed retrieval results.
- Figure 4 is a schematic structural diagram of a device provided by an exemplary embodiment.
- the device includes a processor 402, an internal bus 404, a network interface 406, a memory 408 and a non-volatile memory 410.
- the processor 402 reads the corresponding computer program from the non-volatile memory 410 into the memory 408 and then runs it.
- the embodiments of this specification do not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc. That is to say, the execution subject of the following processing flow is not limited to each logical unit, nor is it limited to each logical unit. Can be hardware or logic devices.
- the data retrieval device can be applied to the equipment shown in Figure 4 to implement the technical solution of this specification.
- the data retrieval device may include: a retrieval unit 501, in response to a retrieval request initiated by the user, perform data retrieval according to the keywords contained in the retrieval request, and obtain a number of target data; an acquisition unit 502, obtain the provision of each target data
- the degree of credibility of the party, the obtained degree of credibility is determined according to the description information of the provider of the several target data maintained in the blockchain system; the return unit 503 returns the retrieved target data and the obtained degree of credibility to the initiator of the retrieval request, so that the initiator displays each received target data according to the credibility of each provider.
- the retrieval unit 501 is further used to: perform data retrieval in the off-chain database according to the keywords contained in the retrieval request; or, perform data retrieval in the data maintained by the blockchain system according to the keywords. .
- the acquisition unit 502 is further configured to: receive description information of the providers of several target data returned by the blockchain system, and determine the trustworthiness of the providers of each target data based on the received description information. Degree; the returned description information is found by the blockchain system from the description information of all providers maintained;
- the credibility of the provider who receives each target data returned by the blockchain system is determined by the blockchain system finding the several targets from the description information of all providers maintained. After obtaining the description information of the data provider, it is determined based on the found description information.
- the description information of the data provider is stored in the blockchain structure maintained by the blockchain system; or the description information of the data provider is stored in the smart contract deployed by the blockchain system. In the contract state, or in the world state of the blockchain system.
- the description information of the provider of any target data is stored in the block header of the target block that maintains the any target data; and/or the description information of the provider of any target data is stored in Maintain the associated block of the target block in which any target data is stored; and/or, the description information of the provider of any target data is stored in the maintained data source block.
- the block header of the target block maintains: index information of the description information of the provider of any target data stored in the associated block and/or the data source block.
- the credibility of the provider of any target data is positively correlated with at least one of the following: the target data type to which the any target data belongs and the data for which the provider of any target data has the permission to provide The matching degree of the type; the matching degree of any target data with other data provided by the provider of any target data; the proportion of the historical evaluation information of other data provided by the provider of any target data. .
- the acquisition unit 502 is further configured to: receive the trusted identification of the provider of the plurality of target data returned by the blockchain system, where the trusted identification is used to characterize the provider of the plurality of target data.
- the credibility level is higher than the preset level; wherein the trusted identification and the corresponding target data are displayed in association with the initiator.
- the credibility of each provider is used by the initiator to sort and display each target data.
- the data retrieval device can be applied to the equipment shown in Figure 4 to implement the technical solution of this specification.
- the data retrieval device may include: a retrieval unit 601, which responds to a retrieval transaction initiated by the user, searches in the data maintained by the blockchain system according to the keywords contained in the retrieval transaction, and obtains several target data; the search unit 602. In the description information of all providers maintained by the blockchain system, search the description information of the providers of the several target data, and determine the credibility of each provider based on the found description information; return to the unit 603. Return the retrieved target data and the determined credibility level to the initiator of the retrieval transaction, so that the initiator displays each received target data according to the credibility level of each provider.
- the description information of the data provider is stored in the blockchain structure maintained by the blockchain system; or the description information of the data provider is stored in the smart contract deployed by the blockchain system. In the contract state, or in the world state of the blockchain system.
- the description information of the provider of any target data is stored in the block header of the target block that maintains the any target data; and/or the description information of the provider of any target data is stored in Maintain the associated block of the target block in which any target data is stored; and/or, the description information of the provider of any target data is stored in the maintained data source block.
- the block header of the target block maintains: index information of the description information of the provider of any target data stored in the associated block and/or the data source block.
- the credibility of the provider of any target data is positively correlated with at least one of the following: the target data type to which the any target data belongs and the data for which the provider of any target data has the permission to provide The degree of matching of types; the degree of matching of any target data with other data provided by the provider of any target data; the degree of quality of historical evaluation information of other data provided by the provider of any target data .
- the search unit 602 is further configured to determine, from the found description information, the trusted identification of the provider of the plurality of target data, the trusted identification being used to characterize the provision of the plurality of target data.
- the credibility level of the party is higher than the preset level; wherein, the trusted identification and the corresponding target data are displayed in association with the initiating party.
- a typical implementation device is a computer, which may be in the form of a personal computer, a laptop, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email transceiver, or a game controller. desktop, tablet, wearable device, or a combination of any of these devices.
- a computer includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
- processors CPUs
- input/output interfaces network interfaces
- memory volatile and non-volatile memory
- Memory may include non-permanent storage in computer-readable media, random access memory (RAM) and/or non-volatile memory in the form of read-only memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
- RAM random access memory
- ROM read-only memory
- flash RAM flash random access memory
- Computer-readable media includes both persistent and non-volatile, removable and non-removable media that can be implemented by any method or technology for storage of information.
- Information may be computer-readable instructions, data structures, modules of programs, or other data.
- Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), and read-only memory.
- PRAM phase change memory
- SRAM static random access memory
- DRAM dynamic random access memory
- RAM random access memory
- read-only memory read-only memory
- ROM read-only memory
- EEPROM electrically erasable programmable read-only memory
- flash memory or other memory technology
- compact disc read-only memory CD-ROM
- DVD digital versatile disc
- Magnetic tape cartridges magnetic disk storage, quantum memory, graphene-based storage media or other magnetic storage devices, or any other non-transmission medium, can be used to store information that can be accessed by computing devices.
- computer-readable media does not include transitory media, such as modulated data signals and carrier waves.
- first, second, third, etc. may be used to describe various information in the embodiments of this specification, the information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other.
- first information may also be called second information, and similarly, the second information may also be called first information.
- word “if” as used herein may be interpreted as "when” or "when” or "in response to determination.”
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Computing Systems (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Technology Law (AREA)
- General Business, Economics & Management (AREA)
- Mathematical Physics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
本说明书实施例提供一种数据检索方法及装置。其中,该方法可以包括:响应于用户发起的检索请求,根据所述检索请求中包含的关键词进行数据检索,得到若干目标数据;获取各个目标数据的提供方的可信程度,获取到的可信程度根据区块链系统中维护的所述若干目标数据的提供方的描述信息确定;将检索到的目标数据和获取的可信程度返回至所述检索请求的发起方,以由所述发起方根据各个提供方的可信程度,展示接收到的各个目标数据。
Description
本说明书实施例涉及区块链技术领域,尤其涉及一种数据检索方法及装置。
数据检索指的是:根据用户需求从数据库中提取出数据的过程。
在相关技术中,用户只需将关键词提供至检索平台,即可从相应的数据库中筛选得到所需要的数据。然而,基于关键词检索到的数据并非均是可信的,而用户并不能对此进行识别。
发明内容
有鉴于此,本说明书实施例提供一种数据检索方法及装置。
为实现上述目的,本说明书实施例提供技术方案如下:
根据本说明书实施例的第一方面,提出了一种数据检索方法,包括:响应于用户发起的检索请求,根据所述检索请求中包含的关键词进行数据检索,得到若干目标数据;获取各个目标数据的提供方的可信程度,获取到的可信程度根据区块链系统中维护的所述若干目标数据的提供方的描述信息确定;将检索到的目标数据和获取的可信程度返回至所述检索请求的发起方,以由所述发起方根据各个提供方的可信程度,展示接收到的各个目标数据。
根据本说明书实施例的第二方面,提出了一种数据检索方法,包括:响应于用户发起的检索交易,根据所述检索交易中包含的关键词在区块链系统维护的数据中进行检索,得到若干目标数据;在所述区块链系统维护的所有提供方的描述信息中,查找所述若干目标数据的提供方的描述信息,并根据查找到的描述信息确定各个提供方的可信程度;将检索到的目标数据和确定的可信程度返回至所述检索交易的发起方,以由所述发起方根据各个提供方的可信程度,展示接收到的各个目标数据。
根据本说明书实施例的第三方面,提出了一种数据索引装置,包括:检索单元,响应于用户发起的检索请求,根据所述检索请求中包含的关键词进行数据检索,得到若干目标数据;获取单元,获取各个目标数据的提供方的可信程度,获取到的可信程度根据区块链系统中维护的所述若干目标数据的提供方的描述信息确定;返回单元,将检索到的目标数据和获取的可信程度返回至所述检索请求的发起方,以由所述发起方根据各个提供方的可信程度,展示接收到的各个目标数据。
根据本说明书实施例的第四方面,提出了一种数据索引装置,包括:检索单元,响应于用户发起的检索交易,根据所述检索交易中包含的关键词在区块链系统维护的数据中进行检索,得到若干目标数据;查找单元,在所述区块链系统维护的所有提供方的描述信息中,查找所述若干目标数据的提供方的描述信息,并根据查找到的描述信息确定各个提供方的可信程度;返回单元,将检索到的目标数据和确定的可信程度返回至所述 检索交易的发起方,以由所述发起方根据各个提供方的可信程度,展示接收到的各个目标数据。
根据本说明书实施例的第五方面,提出了一种电子设备,包括:处理器;用于存储处理器可执行指令的存储器。其中,所述处理器通过运行所述可执行指令以实现如第一方面或第二方面所述的方法。
根据本说明书实施例的第六方面,提出了一种计算机可读存储介质,其上存储有计算机指令,该指令被处理器执行时实现如第一方面或第二方面所述方法的步骤。
图1是一示例性实施例提供的一种数据检索方法的流程图。
图2是一示例性实施例提供的另一种数据检索方法的流程图。
图3是一示例性实施例提供的一种数据检索方法的交互图。
图4是一示例性实施例提供的一种设备的结构示意图。
图5是一示例性实施例提供的一种数据检索装置的框图。
图6是一示例性实施例提供的一种数据检索装置的框图。
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本说明书实施例相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本说明书实施例的一些方面相一致的装置和方法的例子。
需要说明的是:在其他实施例中并不一定按照本说明书示出和描述的顺序来执行相应方法的步骤。在一些其他实施例中,其方法所包括的步骤可以比本说明书所描述的更多或更少。此外,本说明书中所描述的单个步骤,在其他实施例中可能被分解为多个步骤进行描述;而本说明书中所描述的多个步骤,在其他实施例中也可能被合并为单个步骤进行描述。
提供检索服务的检索平台,通常维护有相应的数据库。用户只需向检索平台提交关键词,即可从数据库中筛选得到所需的数据。
相关技术在进行数据检索的过程中,检索平台仅基于关键词进行了数据检索,并对检索到的数据进行了展示,用户难以知晓各个数据的数据来源是否可信。
应当理解的是,若数据来源不可靠,极有可能导致检索到的数据中存在不可信的信息,例如,虚假信息、过时信息等。若用户采信了这些信息,将很可能使用户出现误判、认知错误等情况,进而导致事情复杂化、产生经济损失等问题。
有鉴于此,本公开提出了一种数据检索方法,使用户能够根据检索结果识别出各个 数据的数据来源是否可信,进而避免相关技术中用户无法识别检索到的数据是否可信的问题。
图1为本说明书一示例性实施例示出的一种数据检索方法的流程图。如图1所示,该方法可以包括以下步骤:
步骤102,响应于用户发起的检索请求,根据所述检索请求中包含的关键词进行数据检索,得到若干目标数据。
由上述介绍可知,相关技术仅基于关键词进行了数据检索,而未作其他处理,致使用户无法知晓检索到的数据是否可信。
有鉴于此,本说明书除了根据用户提供的关键词进行数据检索以外,还进一步获取了检索到的各个目标数据的提供方的可信程度,并将检索到的目标数据和获取的可信程度均返回至检索请求的发起方。在此基础上,该发起方即可根据各个提供方的可信程度,对各个目标数据进行展示。
应当理解的是,本说明书是基于提供方的可信程度,对相应提供方提供的目标数据进行展示。换言之,用户可以从最终展示的检索结果中,知晓检索到的各个目标数据的提供方的可信程度。而可信程度相对更高的提供方,其提供的数据通常是更为可信的,即提供方的可信程度与其提供的数据的可信程度通常强绑定。可见,通过本说明书的技术方案,用户能够从若干目标数据中识别出相对更为可信的目标数据,避免相关技术中用户难以知晓各个目标数据是否可信而导致的诸多问题。
需要声明的是,本说明书将各个提供方的描述信息维护于区块链系统中,而获取到的各个目标数据的提供方的可信程度,则可以基于链上维护的提供方的描述信息确定。应当理解的是,将提供方的描述信息维护于区块链系统中,能够避免描述信息被篡改而导致确定的提供方的可信程度本身不可信的问题,间接保证了最终展示的检索结果的可靠性。
在本说明书中,数据检索的操作既可以在链下数据库中进行,也可以在区块链系统维护的数据中进行。具体的,在接收到检索请求后,即可读取其中包含的关键词,若在链下数据库中进行数据检索,则可以将读取的关键词发送至相应的链下数据库,以由该链下数据库根据关键词进行数据检索,并将检索到的目标数据返回;若在区块链系统中进行数据检索,则可以将关键词提交至区块链系统,以由区块链系统根据关键词在维护的数据中进行数据检索,并将检索到的目标数据返回。当然,上述举例仅是示意性的,具体在何种数据库中、通过何种方式进行数据检索,均可由本领域技术人员根据实际需求确定,本说明书对此不作限制。
步骤104,获取各个目标数据的提供方的可信程度,获取到的可信程度根据区块链系统中维护的所述若干目标数据的提供方的描述信息确定。
在本说明书中,获取到的目标数据的提供方的可信程度,基于区块链系统中维护的目标数据的提供方的描述信息确定。其中,基于描述信息确定可信程度的操作,可以根据实际情况由不同的主体执行。
例如,确定可信程度的操作,可以由区别于区块链系统的、本说明书的执行主体执行,譬如,区块链系统可以在维护的所有提供方的描述信息中,查找目标数据的提供方的描述信息,并将查找到的描述信息返回,以由本说明书的执行主体根据接收到的描述信息确定各个目标数据的提供方的可信程度。
再例如,确定可信程度的操作,可以由区块链系统执行,譬如,区块链系统在查找到目标数据的提供方的描述信息后,可以直接基于查找到的描述信息确定各个目标数据的提供方的可信程度,并将确定的可信程度返回。
当然,上述举例仅是示意性的,基于描述信息确定可信程度的操作具体由哪一主体执行,可由本领域技术人员根据实际需求确定,本说明书对此不作限制。
在本说明书中,数据的提供方的描述信息可以通过不同方式存储于区块链系统中。例如,提供方的描述信息可以存储于区块链系统的区块链结构中,在该情况下,区块链系统在接收到的任一提供方提交的数据时,只需通过区块链系统的存证功能,即可完成对数据的存储;再例如,提供方的描述信息可以存储于区块链系统中部署的智能合约的合约状态中,或者区块链系统的世界状态中,在该情况下,区块链系统在接收到任一提供方提交的数据时,可以调用并执行相应的智能合约,以将数据存储至合约状态或世界状态中。
在本说明书中,在提供方的描述信息存储于区块链结构的情况下,可以根据实际需求将提供方的描述信息存储于不同的位置。例如,当目标数据也存储于区块链系统时,目标数据的提供方的描述信息的存储位置,可以与维护有该目标数据的目标区块相关,譬如,任一目标数据的提供方的描述信息,可以存储于维护有该任一目标数据的目标区块的区块头中,再譬如,任一目标数据的提供方的描述信息,可以存储于维护有该任一目标数据的目标区块的关联区块中。再例如,区块链系统的区块链结构中,可以维护有专用于存储提供方的描述信息的数据来源区块,在该情况下,在需要获取任一目标数据的提供方的描述信息时,即可从该数据来源区块中获取。当然,上述举例仅是示意性的,在实际应用中,可以将提供方的描述信息存储至区块头、常规区块、数据来源区块中的至少一者中。
需要声明的是,当目标数据的提供方的描述信息存储于目标区块的区块头时,直接从中提取即可。而当目标数据的提供方的描述信息存储于数据来源区块和目标区块的关联区块时,则可以在目标区块的区块头中维护有目标数据的提供方的描述信息的索引信息,那么,在区块链系统需要获取任一目标数据的提供方的描述信息时,即可从与该任一目标数据对应的目标区块的区块头中读取相应的索引信息,以根据读取到的索引信息,从数据来源区块和关联区块中读取该任一目标数据的提供方的描述信息。当然,在目标区块的区块头中维护索引信息的举例仅是示意性的,具体如何从关联区块和数据来源区块中获取提供方的描述信息,可由本领域技术人员根据实际需求设置,本说明书对此不作限制。
在本说明书中,在提供方的描述信息存储于智能合约的合约状态、或区块链系统的世界状态的情况下,则可以在需要获取任一目标数据的提供方的描述信息时,调用并执 行相应的智能合约,以从相应的合约状态或世界状态中读取。例如,提供方的描述信息可以通过执行存证合约,维护于存证合约的合约状态中,那么,当需要获取该提供方描述信息时,即可再次调用该存证合约,以从其合约状态中读取相应提供方的描述信息。当然,该举例仅是示意性的,具体如何从合约状态或世界状态中读取描述信息,可由本领域技术人员根据实际需求确定,本说明书对此不作限制。
在本说明书中,区块链系统中可以维护有若干维度的描述信息。例如,提供方的描述信息可以包括:提供方具有提供权限的数据类型、提供方的名称、提供方的唯一标识、提供方所属行业、提供方在所属行业中负责的环节等。当然,该举例仅是示意性的,区块链系统中维护的提供方的描述信息,具体包含哪些信息,可由本领域技术人员根据实际需求确定,本说明书对此不作限制。
在本说明书中,对于任一目标数据,上述提供方的名称、提供方的唯一标识等可以视为是用于描述提供方的基本情况的信息。除了该类信息以外,还可以将其他维度的信息作为该任一目标数据的提供方的描述信息。例如,还可以将该任一目标数据的提供方提供的其他数据,作为该任一目标数据的提供方的描述信息;再例如,还可以将该任一目标数据的提供方提供的其他数据的优劣比例,作为该任一目标数据的提供方的描述信息。当然,该举例仅是示意性的,具体还可以将何种信息作为目标数据的提供方的描述信息,可由本领域技术人员根据实际需求确定,本说明书对此不作限制。
在本说明书中,在获取到目标数据的提供方的描述信息后,即可根据该描述信息,确定相应提供方的可信程度。例如,对于任一目标数据,其提供方的可信程度可以与下述至少一者呈正相关:该任一目标数据所属类型,与该任一目标数据的提供方具有提供权限的数据类型的匹配程度;该任一目标数据与该任一目标数据的提供方提供的其他数据的匹配程度;该任一目标数据的提供方提供的其他数据的历史评价信息的优劣比例。
换言之,任一目标数据的提供方具有提供权限的数据类型,与该任一目标数据的数据类型越接近(即匹配程度较高),则相应提供方的可信程度越高。例如,当该任一目标数据的数据类型与其提供方具有提供权限的数据类型相同时,则可以赋予相应提供方“用于表征可信程度较高”的可信值。当然,该“确定目标数据的数据类型,与其提供方具有提供权限的数据类型的匹配程度”的方式仅是示意性的,具体如何确定该匹配程度,可由本领域技术人员根据实际情况确定,本说明书对此不作限制。
而任一目标数据与其提供方提供的其他数据匹配程度越高,则该提供方的可信程度越高,在实际应用中,任一目标数据与其他数据的匹配程度可以与其描述的对象相关,例如,若两者描述的为同一对象,则可以赋予相应提供方第一可信值,若两者描述的为不同对象但为同类型对象,则可以赋予相应提供方第二可信值,若两者描述的为不同类型的对象,则可以赋予相应提供方第三可信值。其中,第一可信值大于第二可信值,而第二可信值大于第三可信值。当然,该确定目标数据与其提供方提供的其他数据的匹配程度的方式仅是示意性的,具体如何确定该匹配程度,可由本领域技术人员根据实际情况确定,本说明书对此不作限制。
而任一目标数据的提供方提供的其他数据的历史评价信息的优劣比例越高,该提供 方的可信程度便越高,在该情况下,区块链系统可以维护相应的评价体系,以供用户对检索到的数据进行评价,并将评价信息也维护于区块链系统中。
当然,上述举例仅是示意性的,任一目标数据的提供方的可信程度,具体与哪一或哪些提供方的描述信息相关,以及为何种关系,均可由本领域技术人员根据实际情况确定,本说明书对此不作限制。
在本说明书中,区块链系统还可以在提供方的可信程度高于预设程度时,授予相应的提供方可信标识,以用于表征该提供方可信程度较高。那么,区块链系统还可以返回检索到的若干目标数据的提供方的可信标识,相应的,该可信标识还可以被返回至检索请求的发起方,以由该发起方对可信标识和相应的目标数据进行关联展示。
在本说明书中,区块链系统授予每一可信程度高于预设程度的提供方的可信标识,可以是唯一确定的;区块链系统也可以授予所有可信程度高于预设程度的提供方统一的可信标识。具体如何为提供方授予可信标识,可由本领域技术人员根据实际需求确定,本说明书对此不作限制。
步骤106,将检索到的目标数据和获取的可信程度返回至所述检索请求的发起方,以由所述发起方根据各个提供方的可信程度,展示接收到的各个目标数据。
在本说明书中,在检索到目标数据,及其提供方的可信程度之后,即可将检索到的目标数据和获取到的可信程度返回至检索请求的发起方,以由其根据各个提供方的可信程度,展示接收到的各个目标数据。
例如,发起方可以根据各个提供方可信程度,对各个目标数据进行排序,并在完成排序后,对各个目标数据进行展示。其中,可以对可信程度相对更高的提供方提供的目标数据进行优先展示,以使用户在阅览检索到的目标数据时,着重关注可信程度更高的提供方提供的目标数据。
再例如,发起方可以对各个目标数据,及其提供方的可信程度进行关联展示。譬如,可以在展示的每一目标数据的关联区域中,展示其提供方的可信程度,以便用户通过关联展示的可信程度,知晓相应目标数据的提供方是否可信。
当然,上述举例仅是示意性的,具体如何根据目标数据的提供方的可信程度,对目标数据进行展示,可由本领域技术人员根据实际情况确定,本说明书对此不作限制。
需要声明的是,本说明书的执行主体可以为与区块链系统对接的检索平台,例如,该检索平台可以为提供检索服务的任一服务器或服务器集群,或者其他任何能够提供检索服务的实体设备或虚拟设备。当然,上述执行主体仅是示意性的,具体将本说明书的技术方案应用于哪一执行主体,可由本领域技术人员根据实际情况确定,本说明书对此不作限制。
还需声明的是,本说明书中的区块链系统,既可以基于区块链技术的传统架构部署,即区块链系统中的所有节点均通过在相应实体设备上部署区块链代码而形成,大多数情况下,每个节点均对应于一个实体设备;也可以基于区块链技术中的BaaS(Blockchain as a Service)架构部署,即区块链网络中的所有节点均通过云服务在云端实现的虚拟机上部署区块链代码而形成,区块链节点无需一一对应于相应的实体设备。具体如何部署本说明书中的区块链系统,可由本领域技术人员根据实际情况部署,本说明书对此不作限制。
由上述技术方案可知,本说明书除了根据检索请求中包含的关键词进行数据检索以外,还可以进一步获取检索到的目标数据的提供方的可信程度,并将检索到的目标数据和获取到的可信程度均返回至检索请求的发起方,以由该发起方根据各个提供方的描述信息,对各个目标数据进行展示。
应当理解的是,由于本说明书中检索请求的发起方根据各个提供方的可信程度,对目标数据进行展示,因此,用户可以从展示的检索结果中,知晓各个目标数据的提供方的可信程度,进而可以从检索结果中甄选所需的信息。显然,通过该方式能够避免由于数据来源不可信,导致用户误信虚假信息、过时信息等,而造成损失或误判的问题。
除此之外,本说明书获取到的可信程度,基于区块链系统中维护的提供方的描述信息获得。而区块链技术具有不可篡改的特性,使得本说明书可以保证获取到的目标数据的提供方的可信程度的可靠性,间接提高了展示的检索结果的可靠程度。
进一步的,提供方的描述信息既可以维护于区块链系统的区块链结构中,也可以维护于区块链系统的世界状态中、或部署于区块链系统的智能合约的合约状态中,使得本说明书可以具有较强的可扩展性。
再进一步的,任一目标数据的提供方的描述信息,除了用于描述提供方的情况的信息以外,还可以包括相应提供方提供的其他数据,以及该其他数据的历史评价信息,致使本说明书可以从多个维度对目标数据的提供方的可信程度进行评估,提高了确定的各个提供方的可信程度的准确性。
在本说明书中,还提出了另一种数据检索方法。在该方法中,大多数操作方式,例如,如何获取提供方的可信程度、如何在区块链系统中维护提供方的描述信息等,均与上文所述的数据检索方法一致。只不过执行主体由“检索平台”变更为“区块链系统”,以及,在区块链系统维护的数据中进行数据检索罢了。因此,在该数据检索方法的介绍中,相关内容均可参照上文的介绍,在下文中不再赘述。
图2为说明书一示例性实施例示出的另一种数据检索方法的流程图。如图2所示,该方法可以包括以下步骤:
步骤202,响应于用户发起的检索交易,根据所述检索交易中包含的关键词在区块链系统维护的数据中进行检索,得到若干目标数据。
由于本实施例的检索方法应用于区块链系统,因此,用户需要以交易的形式发起检索请求,换言之,在本实施例中,用户发起的为包含关键词的检索交易,以指示区块链系统根据关键词在维护的数据中进行数据检索。在实际执行过程中,区块链系统可以调用预先部署的检索交易,以执行检索操作。
步骤204,在所述区块链系统维护的所有提供方的描述信息中,查找所述若干目标数据的提供方的描述信息,并根据查找到的描述信息确定各个提供方的可信程度。
如上所述,在根据关键词检索到目标数据后,即可从维护的所有提供方的描述信息中,查找目标数据的提供方的描述信息,并根据查找到的描述信息确定各个提供方的可信程度。
如上所述,数据的提供方的描述信息可以通过不同方式存储于区块链系统中。例如,提供方的描述信息可以存储于区块链系统的区块链结构中;再例如,提供方的描述信息可以存储于区块链系统中部署的智能合约的合约状态中,或者区块链系统的世界状态中。
如上所述,在提供方的描述信息存储于区块链结构的情况下,可以根据实际需求将提供方的描述信息存储于不同的位置。例如,目标数据的提供方的描述信息的存储位置,可以与维护有该目标数据的目标区块相关,譬如,任一目标数据的提供方的描述信息,可以存储于维护有该任一目标数据的目标区块的区块头中,再譬如,任一目标数据的提供方的描述信息,可以存储于维护有该任一目标数据的目标区块的关联区块中;再例如,区块链系统的区块链结构中,可以维护有专用于存储提供方的描述信息的数据来源区块,在该情况下,在需要获取任一目标数据的提供方的描述信息时,即可从该数据来源区块中获取。
如上所述,当目标数据的提供方的描述信息存储于数据来源区块和目标区块的关联区块时,可以在目标区块的区块头中维护有目标数据的提供方的描述信息的索引信息,那么,在区块链系统需要获取任一目标数据的提供方的描述信息时,即可从与该任一目标数据对应的目标区块的区块头中读取相应的索引信息,以根据读取到的索引信息,从数据来源区块和关联区块中读取该任一目标数据的提供方的描述信息。
如上所述,区块链系统中可以维护有若干维度的描述信息。例如,提供方的描述信息可以包括:提供方具有提供权限的数据类型、提供方的名称、提供方的唯一标识、提供方所属行业、提供方在所属行业中负责的环节等。
如上所述,对于任一目标数据,除了上述用于描述提供方的基本情况的信息以外,还可以将其他维度的信息作为该任一目标数据的提供方的描述信息。例如,还可以将该任一目标数据的提供方提供的其他数据,作为该任一目标数据的提供方的描述信息;再例如,还可以将该任一目标数据的提供方提供的其他数据的优劣比例,作为该任一目标数据的提供方的描述信息。
如上所述,对于任一目标数据,其提供方的可信程度可以与下述至少一者呈正相关:该任一目标数据所属类型,与该任一目标数据的提供方具有提供权限的数据类型的匹配程度;该任一目标数据与该任一目标数据的提供方提供的其他数据的匹配程度;该任一目标数据的提供方提供的其他数据的历史评价信息的优劣比例。
如上所述,区块链系统还可以在提供方的可信程度高于预设程度时,授予相应的提供方可信标识,以用于表征该提供方可信程度较高。那么,区块链系统在检索到目标数据的情况下,还可以从查找到的描述信息中,确定出若干目标数据的提供方的可信标识, 并将可信标识返回至检索交易的发起方,以由发起方对可信标识与相应的目标数据进行关联展示。
步骤206,将检索到的目标数据和确定的可信程度返回至所述检索交易的发起方,以由所述发起方根据各个提供方的可信程度,展示接收到的各个目标数据。
如上所述,在检索到目标数据,及其提供方的可信程度之后,即可将检索到的目标数据和获取到的可信程度返回至检索请求的发起方,以由其根据各个提供方的可信程度,展示接收到的各个目标数据。例如,发起方可以根据各个提供方可信程度,对各个目标数据进行排序,并在完成排序后,对各个目标数据进行展示。再例如,发起方可以对各个目标数据,及其提供方的可信程度进行关联展示。
由上述技术方案可知,本说明书中的区块链系统可以维护有各个提供方提供的数据,使得区块链系统在接收到检索交易的情况下,可以在维护的数据中进行数据检索得到若干目标数据。进一步的,区块链系统还可以获取各个目标数据的提供方的描述信息,并基于获取到的描述信息确定各个提供方的可信程度。在此基础上,区块链系统即可将检索到的目标数据和获取到的可信程度均返回至检索交易的发起方,以由该发起方根据各个提供方的描述信息,对各个目标数据进行展示。
下面,以区块链系统搭建于BaaS平台为例,对本说明书的技术方案进行介绍。
图3为本说明书一示例性实施例示出的一种数据检索方法的交互图。如图3所示,该方法可以包括以下步骤:
步骤301,客户端响应于用户发起的包含关键词的检索指令,生成检索请求。
在本实施例中,客户端可以向用户展示用于数据检索的输入框,以便用户基于自身检索需求在该输入框中输入关键词。其中,客户端在检测到用户通过输入关键词发起的检索指示的情况下,即可基于该关键词生成检索请求。
步骤302,客户端向BaaS服务器发送生成的检索请求。
在本实施例中,区块链系统基于BaaS架构部署,基于BaaS架构部署的区块链系统可以包含BaaS服务器和区块链网络,其中,BaaS服务器负责与区块链网络进行对接。因此,客户端在生成检索请求后,可以将检索请求发送至BaaS平台,以由BaaS平台基于检索请求中包含的关键词生成检索交易,并发送至区块链网络。
步骤303,BaaS服务器基于检索请求生成检索交易。
步骤304,BaaS服务器将检索交易发送至区块链网络。
步骤305,区块链网络基于关键词进行数据检索,得到若干目标数据。
在本实施例中,区块链网络在接收到BaaS服务器发送的检索交易之后,即可基于检索交易中包含的关键词,在维护的数据中进行检索,以得到若干目标数据。
步骤306,区块链网络确定维护有各个目标数据的目标区块。
在本实施例中,在检索到目标数据后,即可进一步确定维护有目标数据的目标区 块,以根据目标区块的区块头中包含的索引信息,获取目标区块的提供方的描述信息。
步骤307,区块链网络从目标区块的区块头中读取索引信息。
在本实施例中,目标区块的区块头中可以维护有目标数据的提供方的简要信息,如提供方的名称、提供方的唯一编号等。而这些简要信息也可以作为相应提供方的描述信息的一部分。
步骤308,区块链网络根据索引信息,获取各个目标数据的提供方的描述信息。
在本实施例中,目标区块的区块头中的索引信息可以包含两部分:其一为,目标数据的提供方提供的其他数据的索引信息;其二为,目标数据的提供方的描述信息在数据来源区块中的索引信息,数据来源区块指的是区块链结构中专用于存储提供方的描述信息的区块。
需要声明的是,区块链结构的各个区块中还可以维护有相应数据的历史评价信息。在此基础上,区块链网络基于索引信息,获取到的目标数据的提供方的描述信息可以包括:该提供方提供的其他数据、其他数据的历史评价信息、维护于数据来源区块中的该提供方的描述信息。当然,此处列举的描述信息仅是示意性的,获取到的描述信息具体包含哪些信息,可由本领域技术人员根据实际需求确定,本实施例对此不作限制。
步骤309,区块链网络根据获取到的描述信息,确定各个提供方的可信值。
在本实施例中,在获取到提供方的描述信息后,即可确定出相应提供方的可信值。该可信值用于评估相应提供方的可信程度。
举例而言,一方面,在获取的目标数据的提供方提供的其他数据后,可以确定其他数据与目标数据的匹配程度,例如,在两者描述的对象为同一对象时,可以赋予其一个较高的匹配值;另一方面,可以确定其他数据的历史评价信息的优劣比例;又一方面,可以根据从数据来源区块中获取到的描述信息,确定目标数据的提供方具有提供权限的数据类型,并将该数据类型与目标数据的数据类型进行对比,得到一个匹配值。在此基础上,即可基于获取到的匹配值、优劣比例得到一个可信值,以用于表征相应提供方的可信程度。
步骤310,区块链网络将检索到的目标数据和确定的各个提供方的可信值返回至BaaS平台。
在本实施例中,区块链网络在获得目标数据及其提供方的可信值之后,即可将目标数据及其可信值返回至BaaS平台,并由BaaS转发至客户端,以由客户端根据各个目标数据的提供方的可信值,对各个目标数据进行排序并展示。
步骤311,BaaS平台将接收到的各个目标数据和各个提供方的可信值返回至客户端。
步骤312,客户端根据接收到的各个提供方的可信值,对各个目标数据进行排序并展示。
由上述技术方案可知,本实施例除了根据关键词在区块链网络中进行数据检索以得到目标数据以外,还可以从区块链结构中获取目标数据的提供方的描述信息,并根据获取到的描述信息确定各个提供方的可信值。在此基础上,客户端在接收到检索结果后,即可根据可信值对目标数据进行排序后再展示,使得用户可以根据展示的检索结果明确知晓目标数据的来源是否可靠。
图4是一示例性实施例提供的一种设备的示意结构图。请参考图4,在硬件层面,该设备包括处理器402、内部总线404、网络接口406、内存408以及非易失性存储器410,当然还可能包括其他业务所需要的硬件。本说明书实施例可以基于软件方式来实现,比如由处理器402从非易失性存储器410中读取对应的计算机程序到内存408中然后运行。当然,除了软件实现方式之外,本说明书实施例并不排除其他实现方式,比如逻辑器件抑或软硬件结合的方式等等,也就是说以下处理流程的执行主体并不限定于各个逻辑单元,也可以是硬件或逻辑器件。
请参考图5,数据检索装置可以应用于如图4所示的设备中,以实现本说明书的技术方案。其中,该数据检索装置可以包括:检索单元501,响应于用户发起的检索请求,根据所述检索请求中包含的关键词进行数据检索,得到若干目标数据;获取单元502,获取各个目标数据的提供方的可信程度,获取到的可信程度根据区块链系统中维护的所述若干目标数据的提供方的描述信息确定;返回单元503,将检索到的目标数据和获取的可信程度返回至所述检索请求的发起方,以由所述发起方根据各个提供方的可信程度,展示接收到的各个目标数据。
可选的,检索单元501被进一步用于:根据所述检索请求中包含的关键词在链下数据库中进行数据检索;或者,根据所述关键词在区块链系统维护的数据中进行数据检索。
可选的,获取单元502被进一步用于:接收所述区块链系统返回的所述若干目标数据的提供方的描述信息,并根据接收到的描述信息确定各个目标数据的提供方的可信程度;返回的描述信息由所述区块链系统从维护的所有提供方的描述信息中查找得到;
接收所述区块链系统返回的各个目标数据的提供方的可信程度,接收到的可信程度由所述区块链系统在从维护的所有提供方的描述信息中查找到所述若干目标数据的提供方的描述信息后,基于查找到的描述信息确定。
可选的,数据的提供方的描述信息,存储于所述区块链系统维护的区块链结构中;或者,数据的提供方的描述信息,存储于所述区块链系统部署的智能合约的合约状态中、或者所述区块链系统的世界状态中。
可选的,任一目标数据的提供方的描述信息,存储于维护有该任一目标数据的目标区块的区块头中;和/或,任一目标数据的提供方的描述信息,存储于维护有该任一目标数据的目标区块的关联区块中;和/或,任一目标数据的提供方的描述信息,存储于维护的数据来源区块中。
可选的,所述目标区块的区块头中维护有:存储于所述关联区块和/或所述数据来 源区块中的所述任一目标数据的提供方的描述信息的索引信息。
可选的,任一目标数据的提供方的可信程度与下述至少之一呈正相关:所述任一目标数据所属的目标数据类型与所述任一目标数据的提供方具有提供权限的数据类型的匹配程度;所述任一目标数据与所述任一目标数据的提供方提供的其他数据的匹配程度;所述任一目标数据的提供方提供的其他数据的历史评价信息的优劣比例。
可选的,获取单元502被进一步用于:接收所述区块链系统返回的所述若干目标数据的提供方的可信标识,所述可信标识用于表征所述若干目标数据的提供方的可信程度高于预设程度;其中,所述可信标识与相应的目标数据由所述发起方关联展示。
可选的,各个提供方的可信程度,由所述发起方用于对各个目标数据进行排序展示。
请参考图6,数据检索装置可以应用于如图4所示的设备中,以实现本说明书的技术方案。其中,该数据检索装置可以包括:检索单元601,响应于用户发起的检索交易,根据所述检索交易中包含的关键词在区块链系统维护的数据中进行检索,得到若干目标数据;查找单元602,在所述区块链系统维护的所有提供方的描述信息中,查找所述若干目标数据的提供方的描述信息,并根据查找到的描述信息确定各个提供方的可信程度;返回单元603,将检索到的目标数据和确定的可信程度返回至所述检索交易的发起方,以由所述发起方根据各个提供方的可信程度,展示接收到的各个目标数据。
可选的,数据的提供方的描述信息,存储于所述区块链系统维护的区块链结构中;或者,数据的提供方的描述信息,存储于所述区块链系统部署的智能合约的合约状态中、或者所述区块链系统的世界状态中。
可选的,任一目标数据的提供方的描述信息,存储于维护有该任一目标数据的目标区块的区块头中;和/或,任一目标数据的提供方的描述信息,存储于维护有该任一目标数据的目标区块的关联区块中;和/或,任一目标数据的提供方的描述信息,存储于维护的数据来源区块中。
可选的,所述目标区块的区块头中维护有:存储于所述关联区块和/或所述数据来源区块中的所述任一目标数据的提供方的描述信息的索引信息。
可选的,任一目标数据的提供方的可信程度与下述至少之一呈正相关:所述任一目标数据所属的目标数据类型与所述任一目标数据的提供方具有提供权限的数据类型的匹配程度;所述任一目标数据与所述任一目标数据的提供方提供的其他数据的匹配程度;所述任一目标数据的提供方提供的其他数据的历史评价信息的优劣程度。
可选的,查找单元602被进一步用于:从查找到的描述信息中,确定出所述若干目标数据的提供方的可信标识,所述可信标识用于表征所述若干目标数据的提供方的可信程度高于预设程度;其中,所述可信标识与相应的目标数据由所述发起方关联展示。
上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机,计算机的具体形式 可以是个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件收发设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任意几种设备的组合。
在一个典型的配置中,计算机包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带、磁盘存储、量子存储器、基于石墨烯的存储介质或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。
上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。
在本说明书实施例使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本说明书实施例。在本说明书实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。
应当理解,尽管在本说明书实施例可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本说明书实施例范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以 被解释成为“在……时”或“当……时”或“响应于确定”。
以上所述仅为本说明书实施例的较佳实施例而已,并不用以限制本说明书实施例,凡在本说明书实施例的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本说明书实施例保护的范围之内。
Claims (19)
- 一种数据检索方法,包括:响应于用户发起的检索请求,根据所述检索请求中包含的关键词进行数据检索,得到若干目标数据;获取各个目标数据的提供方的可信程度,获取到的可信程度根据区块链系统中维护的所述若干目标数据的提供方的描述信息确定;将检索到的目标数据和获取的可信程度返回至所述检索请求的发起方,以由所述发起方根据各个提供方的可信程度,展示接收到的各个目标数据。
- 根据权利要求1所述的方法,所述根据所述检索请求中包含的关键词进行数据检索,包括:根据所述检索请求中包含的关键词在链下数据库中进行数据检索;或者,根据所述关键词在区块链系统维护的数据中进行数据检索。
- 根据权利要求1所述的方法,所述获取各个目标数据的提供方的可信程度,包括:接收所述区块链系统返回的所述若干目标数据的提供方的描述信息,并根据接收到的描述信息确定各个目标数据的提供方的可信程度;返回的描述信息由所述区块链系统从维护的所有提供方的描述信息中查找得到;接收所述区块链系统返回的各个目标数据的提供方的可信程度,接收到的可信程度由所述区块链系统在从维护的所有提供方的描述信息中查找到所述若干目标数据的提供方的描述信息后,基于查找到的描述信息确定。
- 根据权利要求1所述的方法,数据的提供方的描述信息,存储于所述区块链系统维护的区块链结构中;或者,数据的提供方的描述信息,存储于所述区块链系统部署的智能合约的合约状态中、或者所述区块链系统的世界状态中。
- 根据权利要求1所述的方法,任一目标数据的提供方的描述信息,存储于维护有该任一目标数据的目标区块的区块头中;和/或,任一目标数据的提供方的描述信息,存储于维护有该任一目标数据的目标区块的关联区块中;和/或,任一目标数据的提供方的描述信息,存储于维护的数据来源区块中。
- 根据权利要求5所述的方法,所述目标区块的区块头中维护有:存储于所述关联区块和/或所述数据来源区块中的所述任一目标数据的提供方的描述信息的索引信息。
- 根据权利要求1所述的方法,任一目标数据的提供方的可信程度与下述至少之一呈正相关:所述任一目标数据所属的目标数据类型与所述任一目标数据的提供方具有提供权限的数据类型的匹配程度;所述任一目标数据与所述任一目标数据的提供方提供的其他数据的匹配程度;所述任一目标数据的提供方提供的其他数据的历史评价信息的优劣比例。
- 根据权利要求1所述的方法,所述获取各个目标数据的提供方的可信程度,包 括:接收所述区块链系统返回的所述若干目标数据的提供方的可信标识,所述可信标识用于表征所述若干目标数据的提供方的可信程度高于预设程度;其中,所述可信标识与相应的目标数据由所述发起方关联展示。
- 根据权利要求1所述的方法,各个提供方的可信程度,由所述发起方用于对各个目标数据进行排序展示。
- 一种数据检索方法,包括:响应于用户发起的检索交易,根据所述检索交易中包含的关键词在区块链系统维护的数据中进行检索,得到若干目标数据;在所述区块链系统维护的所有提供方的描述信息中,查找所述若干目标数据的提供方的描述信息,并根据查找到的描述信息确定各个提供方的可信程度;将检索到的目标数据和确定的可信程度返回至所述检索交易的发起方,以由所述发起方根据各个提供方的可信程度,展示接收到的各个目标数据。
- 根据权利要求10所述的方法,数据的提供方的描述信息,存储于所述区块链系统维护的区块链结构中;或者,数据的提供方的描述信息,存储于所述区块链系统部署的智能合约的合约状态中、或者所述区块链系统的世界状态中。
- 根据权利要求10所述的方法,任一目标数据的提供方的描述信息,存储于维护有该任一目标数据的目标区块的区块头中;和/或,任一目标数据的提供方的描述信息,存储于维护有该任一目标数据的目标区块的关联区块中;和/或,任一目标数据的提供方的描述信息,存储于维护的数据来源区块中。
- 根据权利要求12所述的方法,所述目标区块的区块头中维护有:存储于所述关联区块和/或所述数据来源区块中的所述任一目标数据的提供方的描述信息的索引信息。
- 根据权利要求10所述的方法,任一目标数据的提供方的可信程度与下述至少之一呈正相关:所述任一目标数据所属的目标数据类型与所述任一目标数据的提供方具有提供权限的数据类型的匹配程度;所述任一目标数据与所述任一目标数据的提供方提供的其他数据的匹配程度;所述任一目标数据的提供方提供的其他数据的历史评价信息的优劣程度。
- 根据权利要求10所述的方法,所述根据查找到的描述信息确定各个提供方的可信程度,包括:从查找到的描述信息中,确定出所述若干目标数据的提供方的可信标识,所述可信标识用于表征所述若干目标数据的提供方的可信程度高于预设程度;其中,所述可信标识与相应的目标数据由所述发起方关联展示。
- 一种数据索引装置,包括:检索单元,响应于用户发起的检索请求,根据所述检索请求中包含的关键词进行数 据检索,得到若干目标数据;获取单元,获取各个目标数据的提供方的可信程度,获取到的可信程度根据区块链系统中维护的所述若干目标数据的提供方的描述信息确定;返回单元,将检索到的目标数据和获取的可信程度返回至所述检索请求的发起方,以由所述发起方根据各个提供方的可信程度,展示接收到的各个目标数据。
- 一种数据索引装置,包括:检索单元,响应于用户发起的检索交易,根据所述检索交易中包含的关键词在区块链系统维护的数据中进行检索,得到若干目标数据;查找单元,在所述区块链系统维护的所有提供方的描述信息中,查找所述若干目标数据的提供方的描述信息,并根据查找到的描述信息确定各个提供方的可信程度;返回单元,将检索到的目标数据和确定的可信程度返回至所述检索交易的发起方,以由所述发起方根据各个提供方的可信程度,展示接收到的各个目标数据。
- 一种电子设备,包括:处理器;用于存储处理器可执行指令的存储器;其中,所述处理器通过运行所述可执行指令以实现如权利要求1至15中任一项所述的方法。
- 一种计算机可读存储介质,其上存储有计算机指令,该指令被处理器执行时实现如权利要求1至15中任一项所述方法的步骤。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210910153.4A CN115269986A (zh) | 2022-07-29 | 2022-07-29 | 数据检索方法及装置 |
CN202210910153.4 | 2022-07-29 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2024021409A1 true WO2024021409A1 (zh) | 2024-02-01 |
Family
ID=83746578
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/135150 WO2024021409A1 (zh) | 2022-07-29 | 2022-11-29 | 数据检索方法及装置 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN115269986A (zh) |
WO (1) | WO2024021409A1 (zh) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115269986A (zh) * | 2022-07-29 | 2022-11-01 | 蚂蚁区块链科技(上海)有限公司 | 数据检索方法及装置 |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108647966A (zh) * | 2018-05-09 | 2018-10-12 | 深圳市融讯科技有限公司 | 一种基于区块链的数据交互方法及装置 |
CN110334267A (zh) * | 2019-06-28 | 2019-10-15 | 阿里巴巴集团控股有限公司 | 一种基于区块链的内容搜索方法、装置及电子设备 |
CN112333217A (zh) * | 2021-01-07 | 2021-02-05 | 北京邮电大学 | 基于区块链的联合推荐方法和系统 |
WO2021208909A1 (zh) * | 2020-04-17 | 2021-10-21 | 支付宝(杭州)信息技术有限公司 | 基于区块链的仓库信用评级、结果获取、验证 |
CN114461918A (zh) * | 2022-02-17 | 2022-05-10 | 北京百度网讯科技有限公司 | 物品推荐方法、装置、电子设备和存储介质 |
CN115269986A (zh) * | 2022-07-29 | 2022-11-01 | 蚂蚁区块链科技(上海)有限公司 | 数据检索方法及装置 |
-
2022
- 2022-07-29 CN CN202210910153.4A patent/CN115269986A/zh active Pending
- 2022-11-29 WO PCT/CN2022/135150 patent/WO2024021409A1/zh unknown
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108647966A (zh) * | 2018-05-09 | 2018-10-12 | 深圳市融讯科技有限公司 | 一种基于区块链的数据交互方法及装置 |
CN110334267A (zh) * | 2019-06-28 | 2019-10-15 | 阿里巴巴集团控股有限公司 | 一种基于区块链的内容搜索方法、装置及电子设备 |
WO2021208909A1 (zh) * | 2020-04-17 | 2021-10-21 | 支付宝(杭州)信息技术有限公司 | 基于区块链的仓库信用评级、结果获取、验证 |
CN112333217A (zh) * | 2021-01-07 | 2021-02-05 | 北京邮电大学 | 基于区块链的联合推荐方法和系统 |
CN114461918A (zh) * | 2022-02-17 | 2022-05-10 | 北京百度网讯科技有限公司 | 物品推荐方法、装置、电子设备和存储介质 |
CN115269986A (zh) * | 2022-07-29 | 2022-11-01 | 蚂蚁区块链科技(上海)有限公司 | 数据检索方法及装置 |
Also Published As
Publication number | Publication date |
---|---|
CN115269986A (zh) | 2022-11-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10834123B2 (en) | Generating data clusters | |
US10725981B1 (en) | Analyzing big data | |
US10042931B2 (en) | Data query method and apparatus | |
CN111898139B (zh) | 数据读写方法及装置、电子设备 | |
US10042911B2 (en) | Discovery of related entities in a master data management system | |
US8977623B2 (en) | Method and system for search engine indexing and searching using the index | |
CN113220717B (zh) | 基于区块链的数据核验方法及装置、电子设备 | |
EP3188051B1 (en) | Systems and methods for search template generation | |
CN111488291B (zh) | 区块链网络的压力测试方法及装置、系统 | |
US10795882B2 (en) | Blockchain-based data compression and searching | |
WO2020024650A1 (zh) | 数据处理方法和装置、客户端 | |
US11734324B2 (en) | Systems and methods for high efficiency data querying | |
CN113094387A (zh) | 一种数据查询方法、装置、电子设备及机器可读存储介质 | |
WO2024021409A1 (zh) | 数据检索方法及装置 | |
WO2020108152A1 (zh) | 身份数据的防误用方法及装置、电子设备 | |
TWI780355B (zh) | 維修對象的定損方法及裝置、電子設備 | |
CN115185998A (zh) | 目标字段查找方法及装置、服务器、计算机可读存储介质 | |
US7725468B2 (en) | Improving efficiency in processing queries directed to static data sets | |
US12061719B2 (en) | System and method for agentless detection of sensitive data in computing environments | |
CN110874365A (zh) | 一种信息查询方法及其相关设备 | |
CN110245072A (zh) | 一种测试方法及装置 | |
CN112783954B (zh) | 数据访问方法、装置及服务器 | |
CN109214884B (zh) | 需求撮合方法及装置、电子设备 | |
US11061906B2 (en) | Join operations for hierarchical dimensions | |
CN110889040B (zh) | 用于推送信息的方法和装置 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22952843 Country of ref document: EP Kind code of ref document: A1 |