Data recommendation method based on block chain and related equipment
By storing data recommendation algorithms and feature information in the blockchain, using the identification information and search keywords of the target object, the tendency and inaccuracy of the platform's recommended data are solved, personalized and fair data recommendations are achieved, and user experience is improved.
Patent Information
- Application Number
- CN202410004501.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-02
- Publication Date
- 2025-07-04
AI Technical Summary
In the prior art, there is tendency and inaccuracy in platform recommendation data, which affects the user experience.
By storing data recommendation algorithms for different objects selected in the blockchain, using the identification information of the target object and search keywords, accurate data recommendation algorithms and target data are determined.
It realizes personalized, fair and accurate data recommendations, improves user experience and avoids unfair recommendations.
Smart Images

Figure CN120256694A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and particularly relates to a blockchain-based data recommendation method, a blockchain-based data recommendation device, a computer device, a computer-readable storage medium, and a computer program product. Background Art
[0002] With the rapid development of information technology, videos, official accounts, etc. have been integrated into people's lives. When people use these, the corresponding platforms will recommend corresponding content to users based on their browsing records. However, relying solely on the platform itself to recommend data to users may result in some unfair recommendation situations, such as tendentious advertising, forcing users to watch, so that the data viewed by users is not accurate enough, affecting the user experience.
[0003] Therefore, how to provide recommended data that meets user needs and is accurate has become an urgent technical problem to be solved. Summary of the Invention
[0004] Embodiments of the present application provide a blockchain-based data recommendation method and related devices, which can meet the personalized needs of the target object for the data recommendation method and recommend accurate data to the target object.
[0005] Embodiments of the present application disclose a blockchain-based data recommendation method on the one hand. The method includes:
[0006] Receiving a search request sent by a terminal device, where the search request carries identification information of a target object;
[0007] Determining a first data recommendation algorithm from the blockchain according to the identification information of the target object;
[0008] Determining target data according to a first search keyword, the first data recommendation algorithm, and the feature information of the data stored in the blockchain; wherein, the first search keyword is a keyword stored in the blockchain corresponding to the identification information of the target object, or the first search keyword is a keyword carried in the search request;
[0009] Querying the identification information of the target data from the blockchain and sending the identification information of the target data to the terminal device.
[0010] Embodiments of the present application disclose a blockchain-based data recommendation method on the one hand. The method includes:
[0011] Obtaining a search request of a target object, where the search request carries identification information of the target object;
[0012] Send the search request to a node of the blockchain network, so that the node determines a first data recommendation algorithm from the blockchain according to the identification information of the target object, and determines target data according to a first search keyword, the first data recommendation algorithm, and the feature information of the data stored in the blockchain, where the first search keyword is a keyword stored in the blockchain corresponding to the identification information of the target object, or the first search keyword is a keyword carried in the search request;
[0013] Receive the identification information of the target data sent by the node, where the identification information of the target data is queried by the node from the blockchain according to the target data.
[0014] An embodiment of the present application discloses a data recommendation device based on a blockchain on the one hand. The device includes:
[0015] A transceiver unit, configured to receive a search request sent by a terminal device, where the search request carries identification information of a target object;
[0016] A determination unit, configured to determine a first data recommendation algorithm from the blockchain according to the identification information of the target object;
[0017] The determination unit is further configured to determine target data according to a first search keyword, the first data recommendation algorithm, and the feature information of the data stored in the blockchain; where the first search keyword is a keyword stored in the blockchain corresponding to the identification information of the target object, or the first search keyword is a keyword carried in the search request;
[0018] A processing unit, configured to query the identification information of the target data from the blockchain and send the identification information of the target data to the terminal device.
[0019] An embodiment of the present application discloses a data recommendation device based on a blockchain on the one hand. The device includes:
[0020] An acquisition unit, configured to acquire a search request of a target object, where the search request carries identification information of the target object;
[0021] A transceiver unit, configured to send the search request to a node of the blockchain network, so that the node determines a first data recommendation algorithm from the blockchain according to the identification information of the target object, and determines target data according to a first search keyword, the first data recommendation algorithm, and the feature information of the data stored in the blockchain, where the first search keyword is a keyword stored in the blockchain corresponding to the identification information of the target object, or the first search keyword is a keyword carried in the search request;
[0022] The transceiver unit is further configured to receive the identification information of the target data sent by the node, where the identification information of the target data is queried by the node from the blockchain according to the target data.
[0023] In one aspect, an embodiment of the present application discloses a computer device, which includes a processor adapted to implement one or more computer programs; and a computer-readable storage medium storing one or more computer programs, where the one or more computer programs are adapted to be loaded and executed by the processor to perform the above-mentioned blockchain-based data recommendation method.
[0024] In one aspect, an embodiment of the present application discloses a computer-readable storage medium storing one or more computer programs, where the one or more computer programs are adapted to be loaded and executed by a processor to perform the above-mentioned blockchain-based data recommendation method.
[0025] In one aspect, an embodiment of the present application discloses a computer program product, which includes a computer program stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device performs the above-mentioned blockchain-based data recommendation method.
[0026] In the embodiment of the present application, a node in a blockchain network can determine a first data recommendation algorithm from the blockchain based on the identification information of a target object included in a received search request. Different object-selected data recommendation algorithms are stored in the blockchain, so data can be quickly and fairly recommended for an object. Determine target data according to a first search keyword, the first data recommendation algorithm, and the characteristic information of the data stored in the blockchain; where the first search keyword is a keyword corresponding to the identification information of the target object stored in the blockchain, or the first search keyword is a keyword carried in the search request; then query the identification information of the target data from the blockchain and send the identification information of the target data to the terminal device. The blockchain network determines the target data according to the keywords provided by each target object according to its own selected data recommendation algorithm, and the obtained target data better meets the needs of the target object, and the recommended content is also more accurate. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] To more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other accompanying drawings can be obtained based on these drawings.
[0028] Figure 1A It is a schematic diagram of a data sharing system disclosed in an embodiment of the present application;
[0029] Figure 1B It is a schematic diagram of a blockchain disclosed in an embodiment of the present application;
[0030] Figure 1C It is a schematic diagram of the process of generating a new block disclosed in an embodiment of the present application;
[0031] Figure 2 It is an architecture diagram of data recommendation based on blockchain disclosed in an embodiment of the present application;
[0032] Figure 3 It is a schematic flowchart of a data recommendation method based on blockchain disclosed in an embodiment of the present application;
[0033] Figure 4 It is a schematic flowchart of a search configuration process disclosed in an embodiment of the present application;
[0034] Figure 5 It is a schematic flowchart of a search process disclosed in an embodiment of the present application;
[0035] Figure 6 It is a schematic flowchart of another data recommendation method based on blockchain disclosed in an embodiment of the present application;
[0036] Figure 7 It is a schematic flowchart of yet another data recommendation method based on blockchain disclosed in an embodiment of the present application;
[0037] Figure 8 It is a schematic structural diagram of a data recommendation device based on blockchain disclosed in an embodiment of the present application;
[0038] Figure 9 It is a schematic structural diagram of another data recommendation device based on blockchain disclosed in an embodiment of the present application;
[0039] Figure 10 It is a schematic structural diagram of a computer device disclosed in an embodiment of the present application. Detailed implementation manners
[0040] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application without creative efforts shall fall within the protection scope of the present application.
[0041] The embodiment of the present application proposes a blockchain-based data recommendation method, which is mainly used in various data recommendation platforms to deploy various data recommendation algorithms in smart contracts in the blockchain, so as to implement the recommendation services for different objects. The blockchain-based data recommendation method provided by the embodiment of the present application may include the following steps: ① Receive a search request sent by a terminal device, where the search request carries identification information of a target object. ② Determine a first data recommendation algorithm from the blockchain according to the identification information of the target object. In the blockchain, data recommendation algorithms selected by different objects are stored. ③ Determine target data according to a first search keyword, the first data recommendation algorithm, and the feature information of the data stored in the blockchain; where the first search keyword is a keyword stored in the blockchain corresponding to the identification information of the target object, or the first search keyword is a keyword carried in the search request. The blockchain network determines the target data according to the keywords provided by each target object according to the data recommendation algorithm it selects, and the obtained target data better meets the needs of the target object, and the recommended content is also more accurate. ④ Query the identification information of the target data from the blockchain and send the identification information of the target data to the terminal device.
[0042] In the above process, the target object provides a search request. According to the identification information of the target object carried in the search request, the data recommendation algorithm previously set by the target object can be determined. Then, according to the keyword and the data recommendation algorithm, the target data can be accurately recommended for the object. On the one hand, the object can customize and select the algorithm and store it in the blockchain, realizing the advantage of algorithm customization, and storing the algorithm in the blockchain is open and transparent, avoiding unfair situations. On the other hand, combining the keyword provided by the object and the data recommendation algorithm can determine more accurate content and improve the object's usage experience.
[0043] In a possible implementation manner, the blockchain-based data recommendation method provided by the embodiment of the present application can be implemented based on a blockchain network. Specifically, various data recommendation algorithms, the corresponding relationships between keywords corresponding to each object and the first data recommendation algorithm, etc. can be stored in the blockchain or in a smart contract.
[0044] In a possible implementation, the data recommendation method based on blockchain provided in this application can also be implemented based on artificial intelligence technology. Specifically, when determining the target data according to the data recommendation algorithm and the first search keyword, it can be determined by an artificial intelligence model deployed in the smart contract; in addition, the feature information of the data to be uploaded to the blockchain by the data publishing device can be determined by a trained artificial intelligence model.
[0045] The explanations of the above-mentioned blockchain technology and artificial intelligence technology are as follows:
[0046] I. Blockchain
[0047] Blockchain is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, and encryption algorithm. Blockchain, in essence, is a decentralized database, a string of data blocks generated by using cryptographic methods. Each data block contains information about a batch of network transactions, which is used to verify the validity (anti-counterfeiting) of the information and generate the next block. It has the characteristics of decentralization, immutability, and traceability, and can achieve secure sharing and interaction of data.
[0048] See Figure 1A As shown in the data sharing system, the data sharing system 100 refers to a system used for data sharing between nodes. The data sharing system may include multiple nodes 101, and the multiple nodes 101 may refer to each client in the data sharing system. Each node 101 can receive input information during normal operation and maintain the shared data in the data sharing system based on the received input information. To ensure information interconnection in the data sharing system, there may be information connections between each node in the data sharing system, and nodes can transmit information through the above information connections. For example, when any node in the data sharing system receives input information, other nodes in the data sharing system obtain the input information according to the consensus algorithm and store the input information as data in the shared data, so that the data stored on all nodes in the data sharing system is consistent.
[0049] For each node in the data sharing system, it has a corresponding node identifier, and each node in the data sharing system can store the node identifiers of other nodes in the data sharing system, so as to broadcast the generated block to other nodes in the data sharing system according to the node identifiers of other nodes later. Each node can maintain a node identifier list as shown in the following table, and store the node name and node identifier in the node identifier list correspondingly. Among them, the node identifier can be an IP (Internet Protocol) address and any other information that can be used to identify the node. Only the IP address is used as an example in Table 1 for illustration.
[0050] Table 1
[0051] Node Name Node ID Node 1 111.111.111.11a Node 2 111.111.111.11b … … Node N 111.111.111.11n
[0052] Each node in the data sharing system stores an identical blockchain. The blockchain consists of multiple blocks, see Figure 1B , the blockchain consists of multiple blocks. The genesis block includes a block header and a block body. The block header stores the input information eigenvalue, version number, timestamp, and difficulty value. The block body stores the input information; the next block of the genesis block uses the genesis block as the parent block. The next block also includes a block header and a block body. The block header stores the input information eigenvalue of the current block, the block header eigenvalue of the parent block, version number, timestamp, and difficulty value, and so on, so that the block data stored in each block in the blockchain is associated with the block data stored in the parent block, ensuring the security of the input information in the block.
[0053] When generating each block in the blockchain, see Figure 1C , when the node where the blockchain is located receives the input information, it verifies the input information. After the verification is completed, it stores the input information in the memory pool and updates the hash tree used to record the input information; then, it updates the timestamp to the time when the input information is received and tries different random numbers, and performs eigenvalue calculations multiple times so that the calculated eigenvalue can satisfy the following formula:
[0054] SHA256(SHA256(version+prev_hash+merkle_root+ntime+nbits+x))<TARGET
[0055] Among them, SHA256 is the eigenvalue algorithm used to calculate the eigenvalue; version (version number) is the version information of the relevant block protocol in the blockchain; prev_hash is the block header eigenvalue of the parent block of the current block; merkle_root is the eigenvalue of the input information; ntime is the update time of the updated timestamp; nbits is the current difficulty, which is a fixed value within a period of time and is determined again after exceeding the fixed time period; x is a random number; TARGET is the eigenvalue threshold, and this eigenvalue threshold can be determined according to nbits.
[0056] In this way, when a random number that satisfies the above formula is calculated, the information can be correspondingly stored to generate a block header and a block body, thereby obtaining the current block. Subsequently, the node where the blockchain is located sends the newly generated block to other nodes in the data sharing system according to the node identifiers of other nodes in the data sharing system. Other nodes verify the newly generated block and add the newly generated block to the blockchain they store after the verification is completed.
[0057] In addition, the embodiments of the present application also involve smart contracts. A smart contract is a computer protocol designed to spread, verify, or execute a contract in an information-based manner. In a blockchain system, a smart contract (referred to as a contract for short) is a piece of code that can be understood and executed by each node of the blockchain, and can execute any logic and obtain results. In practical applications, smart contracts are managed and tried out through transactions on the blockchain. Each transaction is equivalent to a remote procedure call (RPC) request to the blockchain system. If a smart contract is equivalent to an executable program, the blockchain is equivalent to an operating system that provides a running environment. The blockchain can contain multiple contracts, which are distinguished by contract accounts (Identity, ID), identification numbers, or names.
[0058] II. Artificial Intelligence
[0059] Artificial Intelligence (AI) is a theory, method, technology, and application system that uses digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a way similar to human intelligence. Artificial intelligence also studies the design principles and implementation methods of various intelligent machines, enabling the machines to have the functions of perception, reasoning, and decision-making.
[0060] Artificial intelligence technology is an interdisciplinary subject involving a wide range of fields, including both hardware-level technologies and software-level technologies. The basic technologies of artificial intelligence generally include sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data recommendation technology, pre-trained model technology, operation / interaction systems, mechatronics, etc. Among them, the pre-trained model, also known as the large model or the basic model, can be widely applied to downstream tasks in various directions of artificial intelligence after fine-tuning. The software technologies of artificial intelligence mainly include several major directions such as computer vision technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0061] The architecture of the data recommendation system based on blockchain provided by the embodiments of the present application will be introduced below in conjunction with the accompanying drawings.
[0062] Please refer to Figure 2 , which is a network architecture diagram of a data recommendation system based on a blockchain network disclosed in the embodiments of the present application. The data recommendation system may include a terminal device 10 and a blockchain network 20. Among them, the terminal device 10 is a device corresponding to the target object, and the target object may submit a search request through the terminal device 10; the number of nodes 201 included in the blockchain network 20 is multiple, and the nodes 201 in the blockchain network 20 may be terminals or servers. The node 201 is mainly responsible for determining a first data recommendation algorithm from the blockchain according to the identification information of the target object carried in the search request, and determining the target data according to the first search keyword, the first data recommendation algorithm, and the characteristic information of the data stored in the blockchain.
[0063] Optionally, the data recommendation system based on blockchain provided by the embodiments of the present application may further include a data management server 30, a third-party server 40, and a data publishing device 50. Among them, the data management server 30 is equivalent to a data recommendation platform, responsible for providing some data recommendation algorithms, such as recommendation algorithms based on user interests, recommendation algorithms based on content similarity, etc. The third-party server 40 may also be responsible for providing some algorithms, and these algorithms may be customized, such as recommendation algorithms based on social networks, recommendation algorithms based on sentiment analysis, etc. The data publishing device 50 is used by each upload object to upload data to be chained, and stores the data to be chained in the blockchain, so that the blockchain network nodes can determine the target data corresponding to the first search keyword from the blockchain according to the data recommendation algorithm.
[0064] More specifically, the data management server 30 and the third-party server 40 may also submit algorithm chaining transactions to the nodes 201 in the blockchain network 20, so that the nodes 201 store the algorithms provided by the data management server 30 and the third-party server 40 in the blockchain. The data publishing device 50 may send data chaining transactions to the nodes 201 in the blockchain network 20, so that the nodes 201 store the characteristic information and identification information of the data to be chained in the blockchain.
[0065] In one embodiment, the above terminal device 10 and data publishing device 50 may be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, a vehicle-mounted terminal, a smart TV, etc., but are not limited thereto. The data management server 30 and the third-party server 40 may be independent physical servers, or may be a server cluster or a distributed system composed of multiple physical servers, or may also be a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. The embodiments of the present application do not limit this. The terminal device 10, the data management server 30, the third-party server 40, and the data publishing device 50 can all establish a direct communication connection with the node 201 in the blockchain network 20 through wired communication, or can establish an indirect communication connection through wireless communication. The present application does not limit this.
[0066] Combined with the above blockchain-based data recommendation system, the general solution of the blockchain-based data recommendation method provided by the embodiments of the present application is as follows: The terminal device 10 sends a search request carrying the identification information of the target object to the node 201 of the blockchain network 20. The node 201 receives the search request, determines the first data recommendation algorithm from the blockchain according to the identification information of the target object, and then determines the target data according to the first search keyword, the first data recommendation algorithm, and the feature information of the data stored in the blockchain; where the first search keyword is the keyword corresponding to the identification information of the target object stored in the blockchain, or the first search keyword is the keyword carried in the search request; then query the identification information of the target data from the blockchain and send the identification information of the target data to the terminal device 10, so as to achieve the purpose of recommending the target data to the target object. Through this method, the personalized needs of the target object for the data recommendation method can be met, and accurate data can be recommended to the target object.
[0067] In one implementation, the blockchain-based data recommendation method can be applied to a real-time recommendation scenario or a subscription recommendation scenario.
[0068] In the real-time recommendation scenario, the target object submits a search request including keywords on the terminal device interface, and then the terminal device sends the search request to the node of the blockchain network. The node of the blockchain network determines the data recommendation algorithm according to the keywords and returns it to the terminal device. The target object selects the favorite data recommendation algorithm from the returned data recommendation algorithms and returns the favorite data recommendation algorithm to the node. The node determines the target data according to the favorite data recommendation algorithm.
[0069] In the subscription recommendation scenario, the target object first submits keywords to the blockchain to determine a data recommendation algorithm, and then stores the correspondence between the keywords and the data recommendation algorithm in the blockchain. Subscriptions are generally triggered either periodically or by the target object actively. After the trigger, the blockchain directly determines the target data of the target object based on the stored correspondence between the keywords and the data recommendation algorithm.
[0070] It should be noted specifically that in this application, relevant data in the data recommendation process based on the blockchain, such as search requests and identification information of the target object carried in the search requests, etc. When the above embodiments of this application are applied to specific products or technologies, user permission or consent needs to be obtained, and the processes of collecting, using, and processing relevant data need to comply with relevant laws, regulations, and standards, conform to the principles of legality, legitimacy, and necessity, and do not involve obtaining data types prohibited or restricted by laws and regulations. In some optional embodiments, the relevant data involved in the embodiments of this application are obtained after separate authorization from the object. Additionally, when obtaining separate authorization from the object, the purpose of the relevant data involved is stated to the object.
[0071] Next, a data recommendation method based on the blockchain proposed in the embodiments of this application will be introduced in detail.
[0072] Please refer to Figure 3 , which is a schematic flowchart of a data recommendation method based on the blockchain disclosed in the embodiments of this application. This data recommendation method based on the blockchain can be executed by a blockchain network, specifically, it can be Figure 2 the node 201 shown. This data recommendation method based on the blockchain specifically may include but is not limited to the following steps:
[0073] S301: Receive a search request sent by a terminal device. The search request carries identification information of a target object.
[0074] In a possible implementation, before receiving a search request for a target object, a node of the blockchain network first receives a search configuration request sent by a terminal device. The search configuration request carries the identification information of the target object and keywords. The node responds to the search configuration request and determines K data recommendation algorithms that match the keywords carried in the search configuration request from multiple data recommendation algorithms stored in the blockchain. K is an integer greater than or equal to 1. The node sends the description information of the K data recommendation algorithms to the terminal device. The description information includes the algorithm identification and the source information. The source information is used to indicate whether the data recommendation algorithm comes from a data management server or a third-party server. Sending the determined K data recommendation algorithms to the terminal device is to enable the terminal device to obtain a first data recommendation algorithm selected by the target object according to the description information of the K data recommendation algorithms. The first data recommendation algorithm can be some or all of the K data recommendation algorithms. The node receives the description information of the first data recommendation algorithm sent by the terminal device, and then stores the corresponding relationship among the identification information of the target object, the keywords carried in the search configuration request, and the description information of the first data recommendation algorithm in the blockchain. This process is equivalent to the process of the target object pre-configuring search conditions. Storing the set corresponding relationship in the blockchain is for faster matching of target data next time. Optionally, the K data recommendation algorithms can be all the algorithms stored in the blockchain, so that the target object has more choices.
[0075] In a possible implementation, the multiple data recommendation algorithms stored in the blockchain come from a data management server or a third-party server. The process of how the blockchain stores multiple data recommendation algorithms can include: receiving an algorithm on-chain transaction sent by the data management server or the third-party server. The algorithm on-chain transaction includes the description information of the data to be put on the chain. The description information includes the algorithm identification and the source information. The source information includes the data provider identification or the third-party identification, mainly to indicate who provides the algorithm so that the target object can select its trusted provider; verifying the algorithm on-chain transaction and storing the algorithm on-chain transaction in the blockchain when the verification passes. These algorithms can be deployed in the blockchain in the form of smart contracts. When determining the algorithm to be used, the target data can be directly obtained by calling the contract.
[0076] Among them, the data recommendation algorithms provided by the data management server are mostly determined according to the usage records of the users, including but not limited to the recommendation algorithms based on user interests, the recommendation algorithms based on content similarity, etc. The algorithms provided by the third-party server are some open-source written algorithms, including some innovative recommendation algorithms, such as the recommendation algorithms based on social networks, the recommendation algorithms based on sentiment analysis, etc.
[0077] After storing the correspondence between the identification information of the target object, the keywords carried in the search configuration request, and the description information of the first data recommendation algorithm in the blockchain, the nodes of the blockchain network will also receive a search request sent by the terminal device. This search request can be triggered and sent by the terminal device at regular intervals, or it can be sent by the terminal device after the target object manually enters it on the interface of the terminal device. For different target objects, the carried identification information of the target object is different, and this identification is the unique identification of the target object.
[0078] In different scenarios, the data carried in the search request can be different. For example, in the subscription scenario, the search request may only carry the identification information of the target object, and the search request can be triggered regularly, such as news push or official account push. Another example is that in the video search scenario, the search request can also carry the search keywords input by each target object, and the search request will only be sent by the terminal device to the node after the target object clicks the search control.
[0079] S302: Determine the first data recommendation algorithm from the blockchain according to the identification information of the target object.
[0080] In step S301, the correspondence between the identification information of the target object, the keywords carried in the search configuration request, and the description information of the first data recommendation algorithm has been stored in the blockchain. Therefore, after receiving the search request, the first data recommendation algorithm corresponding to the target object can be directly queried from the blockchain according to the carried identification information of the target object. When determining the first data recommendation algorithm, the search keywords submitted by the target object in the blockchain can also be determined.
[0081] S303: Determine the target data according to the first search keyword, the first data recommendation algorithm, and the characteristic information of the data stored in the blockchain; where the first search keyword is the keyword corresponding to the identification information of the target object stored in the blockchain, or the first search keyword is the keyword carried in the search request.
[0082] Among them, determining the target data according to the first recommendation algorithm is also related to the first search keyword. If the search request carries a keyword, then the keyword carried in the search request is used as the first search keyword, and then the target data is determined according to the keyword carried in the search request, the first data recommendation algorithm, and the characteristic information of the data stored in the blockchain; if the search request does not carry a keyword, then the keyword corresponding to the identification information of the target object stored in the blockchain is used as the first search keyword, and then the target data is determined according to the keyword corresponding to the identification information of the target object stored in the blockchain, the first data recommendation algorithm, and the characteristic information of the data stored in the blockchain.
[0083] In a possible implementation manner, determining target data according to the first search keyword, the first data recommendation algorithm, and the characteristic information of the data stored in the blockchain, the general process may include: determining, according to the first data recommendation algorithm, to query the characteristic information of the data matching the first search keyword from the characteristic information of the data stored in the blockchain, and then using the data whose matching degree between the first search keyword and the characteristic information of the data reaches the threshold as the target data.
[0084] Among them, the characteristic information of the data stored in the blockchain is sent by the data publishing device to the nodes of the blockchain network in the form of a transaction. This process may generally include: the nodes of the blockchain network receiving the data on-chain transaction sent by the data publishing device. The data on-chain transaction includes the identification information and characteristic information of the data to be on-chain. The characteristic information of the data to be on-chain is set by the uploading object through the data publishing device, or the characteristic information of the data to be on-chain is obtained after the data publishing device processes the data to be on-chain. The data to be on-chain includes but is not limited to videos, picture sets, articles, etc. Verifying the data on-chain transaction, and storing the data on-chain transaction in the blockchain when the verification passes.
[0085] In a possible implementation manner, when the uploading object uploads the data to be on-chain, it can manually select the characteristic information of the data. The characteristic information may specifically refer to tag information. For example, the characteristic information may be the type of the data, which may include but is not limited to funny type, historical type, animation type, fantasy type, etc.; the characteristic information may also be the region where the data is published. It can be specific to the country, city, and the street where it is located, etc.; the characteristic information may also be the publishing time of the data, specifically 2023 / 2022, etc. The above are just examples, and of course, it can also be set according to the actual application scenario.
[0086] In a possible implementation manner, when the uploading object uploads the data to be on-chain, it does not select the characteristic information of the data. In this case, the characteristic information of the data may be identified by the data publishing device through an artificial intelligence model. The artificial intelligence model mainly extracts the characteristics of the data to be on-chain, and uses the extracted key information as the characteristic information of the data to be on-chain.
[0087] In addition, the data on-chain transaction also includes the identification information of the data to be on-chain, and the identification information of the data to be on-chain is also determined by the data publishing device. The identification information of the data to be on-chain can be any information used to represent the data to be on-chain, including but not limited to the hash value of the data to be on-chain, the storage address of the data to be on-chain, the name of the data to be on-chain, etc.
[0088] S304: Query the identification information of the target data from the blockchain, and send the identification information of the target data to the terminal device.
[0089] After determining the target data, the node of the blockchain network queries the identification information of the target data from the blockchain, and the identification information is the hash value, storage address, name, etc. described above. The identification information of the target data is then sent to the terminal device, and the identification information of the target data sent to the terminal device may include multiple. The terminal device can first determine the corresponding target data according to the identification information of the target data, and then sort the multiple target data according to certain rules, and then display the target data to the target object according to the sorting to enhance the experience of the target object. Among them, it can be sorted according to the preferences of the target object, or it can be sorted according to the popularity of the data, or it can be randomly sorted, and then the sorted target data is displayed to the target object. Optionally, this sorting can also be performed by the nodes of the blockchain network, and the embodiments of the present application are not limited to this.
[0090] The above process can be found in Figure 4 , is a flowchart of an exemplary search configuration process. In order to quickly and efficiently obtain target data in the blockchain network, you can set search keywords on the terminal device. The terminal device responds to the trigger operation for the search control and sends a search configuration request to the blockchain network. The blockchain node in the blockchain network responds to the search configuration request and returns the data recommendation algorithm stored on the chain to the terminal device, such as Figure 4 The algorithms returned in the example may include recommendation algorithms based on user interests, recommendation algorithms based on content similarity, recommendation algorithms based on social networks, recommendation algorithms based on sentiment analysis, etc. Further, the terminal device may display the above recommendation algorithms. If the target object selects the user interest recommendation algorithm, the terminal device may send the identification information of the target object and the user interest recommendation algorithm selected by the target object to the blockchain network in the form of a transaction. Subsequently, the blockchain nodes in the blockchain network may process the transaction on the blockchain.
[0091] After the transaction is put on the chain, when the target object initiates a search request, the target data can be determined for the target object based on the user interest recommendation algorithm. Figure 5 As shown in FIG. 1 , it is a flowchart of an exemplary search process. The target object sends a search request to the blockchain network through a terminal device. After the blockchain node obtains the search request, it can determine the data recommendation algorithm selected by the target object, such as Figure 4 An example of a user interest recommendation algorithm. Subsequently, the blockchain node determines the target data for the target object on the chain through the user interest recommendation algorithm, and returns the target data to the terminal device.
[0092] In a possible implementation, after sending the identification information of the target data to the terminal device, the search content can also be adjusted, specifically including: in response to a search adjustment request from the terminal device, sending description information of K data recommendation algorithms to the terminal device, so that the terminal device can obtain a second data recommendation algorithm selected by the target object according to the description information of the K data recommendation algorithms. The search adjustment request carries the identification information of the target object. K is an integer greater than or equal to 1. The description information includes an algorithm identifier and source information. The K data recommendation algorithms include the recommendation algorithms submitted by the data management server and the recommendation algorithms submitted by the third-party server; receiving the description information of the second data recommendation algorithm sent by the terminal device; storing the correspondence between the identification information of the target object, the second search keyword, and the description information of the second data recommendation algorithm in the blockchain, so as to update the correspondence between the identification information of the target object, the first search keyword, and the description information of the first data recommendation algorithm stored in the blockchain. The second search keyword is the keyword corresponding to the identification information of the target object stored in the blockchain, or the second search keyword is the keyword carried in the search adjustment request.
[0093] The above process actually describes the scenario where the target object wants to change the search keyword or the data recommendation algorithm. The target object can only change the data recommendation algorithm, or can change both the data recommendation algorithm and the search keyword at the same time. Based on this, the advantage of customization can be better reflected. As long as the target object is not satisfied with the returned target data, it can be adjusted at any time.
[0094] In the embodiment of the present application, the node of the blockchain network can determine the first data recommendation algorithm from the blockchain through the identification information of the target object included in the received search request, and determine the target data according to the first search keyword, the first data recommendation algorithm, and the characteristic information of the data stored in the blockchain; where the first search keyword is the keyword corresponding to the identification information of the target object stored in the blockchain, or the first search keyword is the keyword carried in the search request; and then query the identification information of the target data from the blockchain and send the identification information of the target data to the terminal device. The blockchain network determines the target data according to the keywords provided by each target object and the data recommendation algorithm it selects, so that the obtained target data better meets the needs of the target object and the recommended content is more accurate.
[0095] Please refer to Figure 6 , which is a schematic flowchart of another data recommendation method based on blockchain disclosed in the embodiment of the present application. This data recommendation method based on blockchain is executed by the terminal device, and specifically can be Figure 2 the terminal device 10 shown. This data recommendation method based on blockchain specifically can include but is not limited to the following steps:
[0096] S601: Obtain a search request of a target object, where the search request carries identification information of the target object.
[0097] In a possible implementation manner, before obtaining the search request of the target object, the search configuration request of the target object may also be obtained first. The search configuration request carries the identification information of the target object and keywords; the search configuration request is sent to a node of the blockchain network, so that the node determines description information of K data recommendation algorithms from the blockchain according to the keywords carried in the search configuration request, where K is an integer greater than or equal to 1, the description information includes an algorithm identifier and source information, and the K data recommendation algorithms include the recommendation algorithms submitted by the data management server and the recommendation algorithms submitted by the third-party server; receive the description information of the K data recommendation algorithms returned by the node, and display the description information of the K data recommendation algorithms, so that the target object selects a first data recommendation algorithm according to the description information of the K data recommendation algorithms; send the description information of the first data recommendation algorithm to the node, so that the node stores the correspondence between the identification information of the target object, the keywords carried in the search configuration request, and the description information of the first data recommendation algorithm into the blockchain. By determining the first data recommendation algorithm in this way, the personalized requirements of the target object for the data recommendation method can be met.
[0098] After a period of time in the above process, the terminal device may also obtain a search request. The search request is created by the target object on the terminal interface and is submitted to the terminal device after being created by the target object. The target object can independently carry keywords or the data recommendation algorithm that needs to be changed in the search request. In different scenarios, the triggering form of the search request is also different. In the subscription scenario, the search request can be directly triggered by a control; for some ordinary search requests, the search request includes keywords input by the target object, etc.
[0099] S602: Send the search request to a node of the blockchain network, so that the node determines a first data recommendation algorithm from the blockchain according to the identification information of the target object, and determines target data according to the first search keyword, the first data recommendation algorithm, and the feature information of the data stored in the blockchain, where the first search keyword is the keyword corresponding to the identification information of the target object stored in the blockchain, or the first search keyword is the keyword carried in the search request.
[0100] In a possible implementation manner, the search request may be triggered by the terminal device regularly. For example, in the subscription scenario, the search request is sent according to the subscription time. For example, it is sent at the same time every day, or at the same time every week, etc.
[0101] In another possible implementation, the search request can also be actively triggered by the target object. For example, at a certain time after subscribing, if the user wants to view real-time information, a search request can be sent to the nodes of the blockchain network according to the requirements.
[0102] Among them, the process of determining the target data based on the search request by the nodes of the blockchain network has been elaborated in detail in the embodiments in Figure 3 and will not be repeated here.
[0103] S603: Receive the identification information of the target data sent by the node, where the identification information of the target data is queried by the node from the blockchain according to the target data.
[0104] After receiving the identification information of the target data, the terminal device can first determine the corresponding target data according to the identification information of the target data, then sort multiple target data according to certain rules, and then display the target data to the target object according to the sorting to improve the experience of the target object. Among them, it can be sorted according to the preferences of the target object, or sorted according to the popularity of the data, or randomly sorted, and then the sorted target data is displayed to the target object. Optionally, this sorting can also be performed by the nodes of the blockchain network, and the embodiments of the present application do not make any limitations in this regard.
[0105] The embodiments of the present application mainly elaborate on the execution steps of the terminal device, including the terminal device obtaining the search configuration request and the search request, displaying the relevant data recommendation algorithm and displaying the target data, etc. Through the returned data recommendation algorithm, the user can select and customize the data recommendation algorithm according to his own needs and interests, so as to obtain a recommendation result that better meets his own needs.
[0106] The above are all described from a single end. Next, the data recommendation method of the embodiments of the present application will be described in terms of the interaction between the deployed terminal device, the nodes of the blockchain network, the data management server, the third-party server, and the data publishing device. Please refer to Figure 7 which is a schematic flowchart of another data recommendation method based on the blockchain disclosed in the embodiments of the present application. The data recommendation method based on the blockchain includes but is not limited to the following steps:
[0107] S701: The data management server sends an algorithm on-chain transaction to the nodes of the blockchain network.
[0108] S702: The nodes of the blockchain network store the algorithm in the algorithm on-chain transaction sent by the data management server in the blockchain.
[0109] S703: The third-party server sends an algorithm on-chain transaction to the nodes of the blockchain network.
[0110] S704: The nodes of the blockchain network store the algorithms in the algorithm on-chain transactions sent by the third-party server in the blockchain.
[0111] S705: The data publishing device sends data on-chain transactions to the nodes of the blockchain network.
[0112] S706: The nodes of the blockchain network store the data to be on-chained in the data on-chain transactions in the blockchain.
[0113] Among them, the above steps do not have a fixed order. It can be to chain data first or to chain algorithms first. The embodiments of the present application do not limit this.
[0114] S707: The terminal device sends a search configuration request to the nodes of the blockchain network. The search configuration request carries the identification information of the target object and keywords.
[0115] S708: The nodes of the blockchain network determine K data recommendation algorithms that match the keywords carried in the search configuration request from multiple data recommendation algorithms stored in the blockchain.
[0116] S709: The nodes of the blockchain network return the description information of the K data recommendation algorithms to the terminal device.
[0117] S710: The terminal device obtains the first data recommendation algorithm selected by the target object according to the description information of the K data recommendation algorithms.
[0118] S711: The terminal device sends the description information of the first data recommendation algorithm to the nodes of the blockchain network.
[0119] S712: The nodes of the blockchain network store the corresponding relationship among the identification information of the target object, the keywords carried in the search configuration request, and the description information of the first data recommendation algorithm in the blockchain.
[0120] S713: The terminal device sends a search request to the nodes of the blockchain network. The search request carries the identification information of the target object.
[0121] S714: The nodes of the blockchain network determine the first data recommendation algorithm from the blockchain according to the identification information of the target object.
[0122] S715: The nodes of the blockchain network determine the target data according to the first search keyword, the first data recommendation algorithm, and the feature information of the data stored in the blockchain, and determine the identification information of the target data.
[0123] S716: The nodes of the blockchain network return the identification information of the target data to the terminal device.
[0124] Based on the above interaction process, the data recommendation method based on blockchain provided by the embodiments of the present application may have the following advantages:
[0125] 1. Transparency: In the embodiments of the present application, the data recommendation algorithms provided by the third-party server and the data management server are stored in the blockchain, and these algorithms are publicly verifiable to users. Users can clearly understand the working principle of the recommendation algorithms, avoiding unfair recommendation means.
[0126] 2. Customizability: In the embodiments of the present application, the nodes of the blockchain network can return multiple data recommendation algorithms to the user according to the keywords provided by the user. Then, the user can select and customize the corresponding recommendation algorithm according to their own needs and interests, so as to obtain a recommendation result that better suits their taste.
[0127] 3. Innovation: Third-party developers (i.e., third-party servers) can open-source and write their own recommendation algorithms on the blockchain, which encourages the innovation and diversity of recommendation algorithms.
[0128] 4. Decentralization: The blockchain-based platform can avoid the control and censorship of a single centralized platform, ensuring the fairness and freedom of content recommendation.
[0129] Based on the above method embodiments, the embodiments of the present application also provide a data recommendation device based on blockchain. Refer to Figure 8 , which is a schematic structural diagram of a data recommendation device based on blockchain provided by the embodiments of the present application. Figure 8 The data recommendation device 800 based on blockchain shown can operate the following units:
[0130] A transceiver unit 801, configured to receive a search request sent by a terminal device, where the search request carries identification information of a target object;
[0131] A determination unit 802, configured to determine a first data recommendation algorithm from the blockchain according to the identification information of the target object;
[0132] The determination unit 802 is further configured to determine target data according to a first search keyword, the first data recommendation algorithm, and characteristic information of the data stored in the blockchain; where the first search keyword is a keyword stored in the blockchain corresponding to the identification information of the target object, or the first search keyword is a keyword carried in the search request;
[0133] A processing unit 803, configured to query the identification information of the target data from the blockchain and send the identification information of the target data to the terminal device.
[0134] In a possible implementation, the determining unit 802 is further configured to:
[0135] If the search request carries a keyword, use the keyword carried in the search request as the first search keyword;
[0136] If the search request does not carry a keyword, use the keyword stored in the blockchain corresponding to the identification information of the target object as the first search keyword.
[0137] Before receiving the search request sent by the receiving terminal device, the transceiver unit 801 is further configured to receive a search configuration request sent by the terminal device, where the search configuration request carries the identification information of the target object and a keyword; respond to the search configuration request and send the description information of K data recommendation algorithms to the terminal device, so that the terminal device obtains the first data recommendation algorithm selected by the target object according to the description information of the K data recommendation algorithms, where K is an integer greater than or equal to 1, and the K data recommendation algorithms include the recommendation algorithms submitted by the data management server and the recommendation algorithms submitted by the third-party server; receive the description information of the first data recommendation algorithm sent by the terminal device;
[0138] The processing unit 803 is further configured to store the corresponding relationship among the identification information of the target object, the keyword carried in the search configuration request, and the description information of the first data recommendation algorithm in the blockchain.
[0139] In a possible implementation, when the transceiver unit 801 responds to the search configuration request and sends the description information of K data recommendation algorithms to the terminal device, it is specifically configured to perform the following steps:
[0140] Respond to the search configuration request and determine K data recommendation algorithms that match the keyword carried in the search configuration request from the multiple data recommendation algorithms stored in the blockchain, where K is an integer greater than or equal to 1;
[0141] Send the description information of the K data recommendation algorithms to the terminal device, where the description information includes an algorithm identifier and source information.
[0142] In a possible implementation, after sending the identification information of the target data to the terminal device, the transceiver unit 801 is further configured to:
[0143] In response to a search adjustment request from the terminal device, send description information of K data recommendation algorithms to the terminal device, so that the terminal device obtains a second data recommendation algorithm selected by the target object according to the description information of the K data recommendation algorithms. The search adjustment request carries identification information of the target object. K is an integer greater than or equal to 1. The description information includes an algorithm identifier and source information. The K data recommendation algorithms include a recommendation algorithm submitted by a data management server and a recommendation algorithm submitted by a third-party server.
[0144] Receive the description information of the second data recommendation algorithm sent by the terminal device.
[0145] The processing unit 803 is further configured to store the correspondence relationship among the identification information of the target object, the second search keyword, and the description information of the second data recommendation algorithm in the blockchain, so as to update the correspondence relationship among the identification information of the target object, the first search keyword, and the description information of the first data recommendation algorithm stored in the blockchain. The second search keyword is a keyword corresponding to the identification information of the target object stored in the blockchain, or the second search keyword is a keyword carried in the search adjustment request.
[0146] In a possible implementation manner, the transceiver unit 801 is further configured to receive a data on-chain transaction sent by a data publishing device. The data on-chain transaction includes identification information and feature information of the data to be put on the chain. The feature information of the data to be put on the chain is set by an upload object through the data publishing device, or the feature information of the data to be put on the chain is obtained by the data publishing device after processing the data to be put on the chain.
[0147] The processing unit 803 is further configured to verify the data on-chain transaction, and store the data on-chain transaction in the blockchain when the verification is passed.
[0148] In a possible implementation manner, the transceiver unit 801 is further configured to receive an algorithm on-chain transaction sent by a data management server source or a third-party server. The algorithm on-chain transaction includes description information of the algorithm to be put on the chain. The description information includes an algorithm identifier and source information. The source information includes a data management party identifier or a third-party identifier.
[0149] The processing unit 803 is further configured to verify the algorithm on-chain transaction, and store the algorithm on-chain transaction in the blockchain when the verification is passed.
[0150] It can be understood that the functions of the functional units of the blockchain-based data recommendation device provided in the embodiments of the present application can be specifically implemented according to the methods in the above method embodiments, and the specific implementation process can refer to the relevant descriptions in the above method embodiments, which will not be elaborated here.
[0151] In a feasible embodiment, the blockchain-based data recommendation device provided in the embodiments of the present application can be implemented in software. The blockchain-based data recommendation device can be stored in a memory, and it can be software in the form of a program and plugins, etc., and includes a series of units, including a transceiver unit, a determination unit, and a processing unit; wherein, the transceiver unit, the determination unit, and the processing unit are used to implement the blockchain-based data recommendation method provided in the embodiments of the present application.
[0152] In other feasible embodiments, the blockchain-based data recommendation device provided in the embodiments of the present application can also be implemented in a combination of software and hardware. As an example, the blockchain-based data recommendation device provided in the embodiments of the present application can be a processor in the form of a hardware decoding processor, which is programmed to execute the blockchain-based data recommendation method provided in the embodiments of the present application. For example, the processor in the form of a hardware decoding processor can adopt one or more application-specific integrated circuits (ASICs, Application Specific Integrated Circuit), DSPs, programmable logic devices (PLDs, Programmable Logic Device), complex programmable logic devices (CPLDs, Complex Programmable LogicDevice), field-programmable gate arrays (FPGAs, Field-Programmable Gate Array) or other electronic components.
[0153] Based on the description of the above method embodiments, the embodiments of the present application also propose a blockchain-based data recommendation device. Please refer to Figure 9 As shown, the blockchain-based data recommendation device 900 can operate the following units:
[0154] An acquisition unit 901, configured to acquire a search request of a target object, where the search request carries identification information of the target object;
[0155] A transceiver unit 902, configured to send the search request to a node of a blockchain network, so that the node determines a first data recommendation algorithm from the blockchain according to the identification information of the target object, and determines target data according to a first search keyword, the first data recommendation algorithm, and the feature information of the data stored in the blockchain, where the first search keyword is a keyword stored in the blockchain corresponding to the identification information of the target object, or the first search keyword is a keyword carried in the search request;
[0156] The transceiver unit 902 is further configured to receive the identification information of the target data sent by the node, where the identification information of the target data is queried by the node from the blockchain according to the target data.
[0157] In a possible implementation, an acquisition unit 901 is further configured to acquire a search configuration request of the target object, where the search configuration request carries the identification information of the target object and a keyword;
[0158] The transceiver unit 902 is further configured to:
[0159] Send the search configuration request to the node, so that the node determines description information of K data recommendation algorithms from the blockchain according to the keyword carried in the search configuration request, K is an integer greater than or equal to 1, the description information includes an algorithm identifier and source information, and the K data recommendation algorithms include a recommendation algorithm submitted by a data management server and a recommendation algorithm submitted by a third-party server;
[0160] Receive the description information of the K data recommendation algorithms returned by the node, and display the description information of the K data recommendation algorithms, so that the target object selects a first data recommendation algorithm according to the description information of the K data recommendation algorithms;
[0161] Send the description information of the first data recommendation algorithm to the node, so that the node stores the correspondence between the identification information of the target object, the keyword carried in the search configuration request, and the description information of the first data recommendation algorithm in the blockchain.
[0162] It can be understood that the functions of the functional units of the blockchain-based data recommendation device provided in the embodiments of the present application can be specifically implemented according to the methods in the foregoing method embodiments, and the specific implementation process can refer to the relevant descriptions in the foregoing method embodiments, which will not be elaborated herein.
[0163] In a feasible embodiment, the blockchain-based data recommendation device provided by the embodiments of the present application can be implemented in software. The blockchain-based data recommendation device can be stored in a memory, which can be software in the form of programs and plugins, and includes a series of units, including an acquisition unit and a transceiver unit; wherein, the acquisition unit and the transceiver unit are used to implement the blockchain-based data recommendation method provided by the embodiments of the present application.
[0164] In other feasible embodiments, the blockchain-based data recommendation device provided by the embodiments of the present application can also be implemented in a combination of software and hardware. As an example, the blockchain-based data recommendation device provided by the embodiments of the present application can be a processor in the form of a hardware decoding processor, which is programmed to execute the blockchain-based data recommendation method provided by the embodiments of the present application. For example, the processor in the form of a hardware decoding processor can adopt one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs) or other electronic components.
[0165] Based on the descriptions of the above method embodiments and device embodiments, the embodiments of the present application also provide a computer device; the computer device can be the task execution node mentioned above, or a node of the blockchain network mentioned above. Please refer to Figure 10 , the computer device may at least include a processor 1001, an input interface 1002, an output interface 1003, and a computer-readable storage medium 1004; wherein, the processor 1001, the input interface 1002, the output interface 1003, and the computer-readable storage medium 1004 can be connected through a bus or other connection means.
[0166] The computer-readable storage medium 1004 can be stored in the memory of the computer device. The computer-readable storage medium 1004 is used to store a computer program, and the computer program includes computer instructions. The processor 1001 is used to execute the program instructions stored in the computer-readable storage medium 1004. The processor 1001 (or CPU (Central Processing Unit)) is the computing core and control core of the computer device, and is suitable for implementing one or more computer instructions, and is specifically suitable for loading and executing one or more computer instructions to implement the corresponding method flow or corresponding function.
[0167] The embodiments of the present application further provide a computer-readable storage medium (Memory). A computer-readable storage medium is a memory device in a computer device, used to store programs and data. It can be understood that the computer-readable storage medium here can include both the built-in storage medium in the computer device, and of course, can also include the extended storage medium supported by the computer device. The computer-readable storage medium provides a storage space, and the operating system of the computer device is stored in this storage space. And, one or more computer instructions suitable for being loaded and executed by a processor are also stored in this storage space. These computer instructions can be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here can be a high-speed RAM memory, or a non-volatile memory (Non-Volatile Memory), such as at least one disk memory; optionally, it can also be at least one computer-readable storage medium located far from the aforementioned processor.
[0168] In some embodiments, when the computer device is a node of a blockchain network, one or more computer instructions stored in the computer-readable storage medium 1004 can be loaded and executed by the processor 1001 to implement the above-mentioned Figure 3 and Figure 7 corresponding steps of the data recommendation method based on blockchain as shown. In a specific implementation, the computer instructions in the computer-readable storage medium 1004 are loaded and executed by the processor 1001 as follows:
[0169] Receive a search request sent by a terminal device, where the search request carries identification information of a target object;
[0170] Determine a first data recommendation algorithm from the blockchain according to the identification information of the target object;
[0171] Determine target data according to a first search keyword, the first data recommendation algorithm, and the feature information of the data stored in the blockchain; where the first search keyword is a keyword stored in the blockchain corresponding to the identification information of the target object, or the first search keyword is a keyword carried in the search request;
[0172] Query the identification information of the target data from the blockchain, and send the identification information of the target data to the terminal device.
[0173] In a possible implementation manner, the computer instructions in the computer-readable storage medium 1004 are further used by the processor 1001 to load and execute the following steps:
[0174] If the search request carries keywords, then use the keywords carried in the search request as the first search keyword;
[0175] If the search request does not carry keywords, then use the keyword corresponding to the identification information of the target object stored in the blockchain as the first search keyword.
[0176] In a possible implementation manner, before receiving the search request sent by the receiving terminal device, the computer instructions in the computer-readable storage medium 1004 are further used by the processor 1001 to load and execute the following steps:
[0177] Receive the search configuration request sent by the terminal device, where the search configuration request carries the identification information of the target object and keywords; respond to the search configuration request and send the description information of K data recommendation algorithms to the terminal device, so that the terminal device obtains the first data recommendation algorithm selected by the target object according to the description information of the K data recommendation algorithms, where K is an integer greater than or equal to 1, and the K data recommendation algorithms include the recommendation algorithms submitted by the data management server and the recommendation algorithms submitted by the third-party server; receive the description information of the first data recommendation algorithm sent by the terminal device;
[0178] Store the correspondence between the identification information of the target object, the keywords carried in the search configuration request, and the description information of the first data recommendation algorithm in the blockchain.
[0179] In a possible implementation manner, when the computer instructions in the computer-readable storage medium 1004 are loaded and executed by the processor 1001 to send the description information of K data recommendation algorithms to the terminal device in response to the search configuration request, it is specifically used to execute the following steps:
[0180] In response to the search configuration request, determine K data recommendation algorithms that match the keywords carried in the search configuration request from the multiple data recommendation algorithms stored in the blockchain, where K is an integer greater than or equal to 1;
[0181] Send the description information of the K data recommendation algorithms to the terminal device, where the description information includes the algorithm identifier and the source information.
[0182] In a possible implementation manner, after sending the identification information of the target data to the terminal device, the computer instructions in the computer-readable storage medium 1004 are further used by the processor 1001 to load and execute the following steps:
[0183] In response to a search adjustment request from the terminal device, send description information of K data recommendation algorithms to the terminal device, so that the terminal device obtains a second data recommendation algorithm selected by the target object according to the description information of the K data recommendation algorithms. The search adjustment request carries identification information of the target object. K is an integer greater than or equal to 1. The description information includes an algorithm identifier and source information. The K data recommendation algorithms include a recommendation algorithm submitted by a data management server and a recommendation algorithm submitted by a third-party server;
[0184] Receive the description information of the second data recommendation algorithm sent by the terminal device;
[0185] Store the correspondence relationship among the identification information of the target object, the second search keyword, and the description information of the second data recommendation algorithm in the blockchain, so as to update the correspondence relationship among the identification information of the target object, the first search keyword, and the description information of the first data recommendation algorithm stored in the blockchain. The second search keyword is the keyword corresponding to the identification information of the target object stored in the blockchain, or the second search keyword is the keyword carried in the search adjustment request.
[0186] In a possible implementation, the computer instructions in the computer-readable storage medium 1004 are further used by the processor 1001 to load and execute the following steps:
[0187] Receive a data on-chain transaction sent by a data publishing device. The data on-chain transaction includes identification information and feature information of the data to be put on the chain. The feature information of the data to be put on the chain is set by the uploading object through the data publishing device, or the feature information of the data to be put on the chain is obtained by the data publishing device after processing the data to be put on the chain;
[0188] Verify the data on-chain transaction, and store the data on-chain transaction in the blockchain when the verification is passed.
[0189] In a possible implementation, the computer instructions in the computer-readable storage medium 1004 are further used by the processor 1001 to load and execute the following steps:
[0190] Receive an algorithm on-chain transaction sent by a data management server source or a third-party server. The algorithm on-chain transaction includes description information of the algorithm to be put on the chain. The description information includes an algorithm identifier and source information. The source information includes a data management party identifier or a third-party identifier;
[0191] Verify the algorithm on-chain transaction, and store the algorithm on-chain transaction in the blockchain when the verification is passed.
[0192] In some embodiments, when the computer device is a terminal device, one or more computer instructions stored in the computer-readable storage medium 1004 can be loaded and executed by the processor 1001 to implement the relevant Figure 6 and Figure 7 corresponding steps of the data recommendation method based on blockchain as shown. In a specific implementation, the computer instructions in the computer-readable storage medium 1004 are loaded and executed by the processor 1001 as follows:
[0193] Obtain a search request of a target object, where the search request carries identification information of the target object;
[0194] Send the search request to a node of the blockchain network, so that the node determines a first data recommendation algorithm from the blockchain according to the identification information of the target object, and determines target data according to a first search keyword, the first data recommendation algorithm, and feature information of the data stored in the blockchain, where the first search keyword is a keyword stored in the blockchain corresponding to the identification information of the target object, or the first search keyword is a keyword carried in the search request;
[0195] Receive the identification information of the target data sent by the node, where the identification information of the target data is queried by the node from the blockchain according to the target data.
[0196] In a possible implementation manner, the computer instructions in the computer-readable storage medium 1004 are further used by the processor 1001 to load and execute the following steps:
[0197] Obtain a search configuration request of the target object, where the search configuration request carries the identification information and keywords of the target object;
[0198] Send the search configuration request to the node, so that the node determines description information of K data recommendation algorithms from the blockchain according to the keywords carried in the search configuration request, K is an integer greater than or equal to 1, the description information includes an algorithm identifier and source information, and the K data recommendation algorithms include recommendation algorithms submitted by a data management server and recommendation algorithms submitted by a third-party server;
[0199] Receive the description information of the K data recommendation algorithms returned by the node, and display the description information of the K data recommendation algorithms, so that the target object selects a first data recommendation algorithm according to the description information of the K data recommendation algorithms;
[0200] Send the description information of the first data recommendation algorithm to the node, so that the node stores the correspondence relationship among the identification information of the target object, the keywords carried in the search configuration request, and the description information of the first data recommendation algorithm in the blockchain.
[0201] According to an aspect of the present application, there is provided a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the data recommendation method based on the blockchain provided in the above various optional manners.
[0202] It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should know that the present application is not limited by the described action sequence, because according to the present application, certain steps may be adopted in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to the present application.
[0203] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program with a predetermined function, which works together with other related parts to achieve a predetermined goal, and can be fully or partially implemented by using software, hardware (such as a processing circuit or a memory), or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be a part of the overall module or unit that includes the function of the module or unit.
[0204] In several embodiments provided by the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the above module division is only a logical function division. In actual implementation, there may be other division methods. For example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0205] As described above, the above is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present application, and all should be covered by the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A data recommendation method based on blockchain, characterized in that The method includes: Receiving a search request sent by a terminal device, where the search request carries identification information of a target object; Determining a first data recommendation algorithm from the blockchain according to the identification information of the target object; Determining target data according to a first search keyword, the first data recommendation algorithm, and characteristic information of data stored in the blockchain; wherein, the first search keyword is a keyword corresponding to the identification information of the target object stored in the blockchain, or the first search keyword is a keyword carried in the search request; Querying the identification information of the target data from the blockchain and sending the identification information of the target data to the terminal device.
2. The method according to claim 1, characterized in that The method further includes: If the search request carries a keyword, using the keyword carried in the search request as the first search keyword; If the search request does not carry a keyword, using the keyword corresponding to the identification information of the target object stored in the blockchain as the first search keyword.
3. The method according to claim 1, characterized in that, Before receiving the search request sent by the terminal device, the method further includes: Receiving a search configuration request sent by the terminal device, where the search configuration request carries the identification information of the target object and a keyword; Responding to the search configuration request by sending description information of K data recommendation algorithms to the terminal device, so that the terminal device obtains a first data recommendation algorithm selected by the target object according to the description information of the K data recommendation algorithms, where K is an integer greater than or equal to 1, and the K data recommendation algorithms include recommendation algorithms submitted by a data management server and recommendation algorithms submitted by a third-party server; Receiving the description information of the first data recommendation algorithm sent by the terminal device; Storing the correspondence between the identification information of the target object, the keyword carried in the search configuration request, and the description information of the first data recommendation algorithm into the blockchain.
4. The method according to claim 3, wherein The responding to the search configuration request by sending description information of K data recommendation algorithms to the terminal device includes: Responding to the search configuration request to determine K data recommendation algorithms that match the keyword carried in the search configuration request from multiple data recommendation algorithms stored in the blockchain, where K is an integer greater than or equal to 1; Sending the description information of the K data recommendation algorithms to the terminal device, where the description information includes an algorithm identifier and source information.
5. The method according to claim 1, characterized in that, After sending the identification information of the target data to the terminal device, the method further includes: Responding to a search adjustment request of the terminal device by sending description information of K data recommendation algorithms to the terminal device, so that the terminal device obtains a second data recommendation algorithm selected by the target object according to the description information of the K data recommendation algorithms, where the search adjustment request carries the identification information of the target object, K is an integer greater than or equal to 1, the description information includes an algorithm identifier and source information, and the K data recommendation algorithms include recommendation algorithms submitted by a data management server and recommendation algorithms submitted by a third-party server; Receive the description information of the second data recommendation algorithm sent by the terminal device; Store the correspondence relationship among the identification information of the target object, the second search keyword, and the description information of the second data recommendation algorithm in the blockchain, so as to update the correspondence relationship among the identification information of the target object, the first search keyword, and the description information of the first data recommendation algorithm stored in the blockchain. The second search keyword is the keyword corresponding to the identification information of the target object stored in the blockchain, or the second search keyword is the keyword carried in the search adjustment request.
6. The method according to any one of claims 1-5, characterized in that, The method further includes: Receive a data on-chain transaction sent by a data publishing device. The data on-chain transaction includes the identification information and feature information of the data to be put on the chain. The feature information of the data to be put on the chain is set by the uploading object through the data publishing device, or the feature information of the data to be put on the chain is obtained by the data publishing device after processing the data to be put on the chain; Verify the data on-chain transaction, and store the data on-chain transaction in the blockchain when the verification is passed.
7. The method according to any one of claims 1-5, characterized in that, The method further includes: Receive an algorithm on-chain transaction sent by a data management server source or a third-party server. The algorithm on-chain transaction includes the description information of the algorithm to be put on the chain. The description information includes an algorithm identifier and source information. The source information includes a data management party identifier or a third-party identifier; Verify the algorithm on-chain transaction, and store the algorithm on-chain transaction in the blockchain when the verification is passed.
8. A data recommendation method based on blockchain, characterized in that, The method includes: Obtain a search request of a target object, where the search request carries the identification information of the target object; Send the search request to a node of the blockchain network, so that the node determines a first data recommendation algorithm from the blockchain according to the identification information of the target object, and determines target data according to the first search keyword, the first data recommendation algorithm, and the feature information of the data stored in the blockchain. The first search keyword is the keyword corresponding to the identification information of the target object stored in the blockchain, or the first search keyword is the keyword carried in the search request; Receive the identification information of the target data sent by the node, where the identification information of the target data is queried by the node from the blockchain according to the target data.
9. The method according to claim 8, wherein The method further includes: Obtain a search configuration request of the target object, where the search configuration request carries the identification information and keyword of the target object; Send the search configuration request to the node, so that the node determines the description information of K data recommendation algorithms from the blockchain according to the keyword carried in the search configuration request. K is an integer greater than or equal to 1. The description information includes an algorithm identifier and source information. The K data recommendation algorithms include the recommendation algorithms submitted by the data management server and the recommendation algorithms submitted by the third-party server; Receive the description information of the K data recommendation algorithms returned by the node, and display the description information of the K data recommendation algorithms, so that the target object can select a first data recommendation algorithm according to the description information of the K data recommendation algorithms; Send the description information of the first data recommendation algorithm to the node, so that the node stores the corresponding relationship among the identification information of the target object, the keyword carried in the search configuration request, and the description information of the first data recommendation algorithm into the blockchain.
10. A data recommendation device based on blockchain, characterized in that, The device includes: A transceiver unit, configured to receive a search request sent by a terminal device, where the search request carries identification information of a target object; A determination unit, configured to determine a first data recommendation algorithm from the blockchain according to the identification information of the target object; The determination unit is further configured to determine target data according to a first search keyword, the first data recommendation algorithm, and the feature information of the data stored in the blockchain; where the first search keyword is a keyword stored in the blockchain corresponding to the identification information of the target object, or the first search keyword is a keyword carried in the search request; A processing unit, configured to query the identification information of the target data from the blockchain, and send the identification information of the target data to the terminal device.
11. A data recommendation device based on blockchain, characterized in that, The device includes: An acquisition unit, configured to acquire a search request of a target object, where the search request carries identification information of the target object; A transceiver unit, configured to send the search request to a node of the blockchain network, so that the node determines a first data recommendation algorithm from the blockchain according to the identification information of the target object, and determines target data according to a first search keyword, the first data recommendation algorithm, and the feature information of the data stored in the blockchain, where the first search keyword is a keyword stored in the blockchain corresponding to the identification information of the target object, or the first search keyword is a keyword carried in the search request; The transceiver unit is further configured to receive the identification information of the target data sent by the node, where the identification information of the target data is queried by the node from the blockchain according to the target data.
12. A computer device, characterized in that, The computer device includes: A processor, adapted to implement one or more computer programs; and, A computer-readable storage medium storing one or more computer programs, where the one or more computer programs are adapted to be loaded and executed by the processor to perform the blockchain-based data recommendation method according to any one of claims 1-7, or 8-9.
13. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores one or more computer programs, where the one or more computer programs are adapted to be loaded and executed by a processor to perform the blockchain-based data recommendation method according to any one of claims 1-7, or 8-9.
14. A computer program product, characterized in that, The computer program product includes a computer program which is stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device executes the blockchain-based data recommendation method according to any one of claims 1-7 or claims 8-9.