CN118051489A - Knowledge sharing method and device based on blockchain intelligent contract and storage medium - Google Patents
Knowledge sharing method and device based on blockchain intelligent contract and storage medium Download PDFInfo
- Publication number
- CN118051489A CN118051489A CN202410445020.3A CN202410445020A CN118051489A CN 118051489 A CN118051489 A CN 118051489A CN 202410445020 A CN202410445020 A CN 202410445020A CN 118051489 A CN118051489 A CN 118051489A
- Authority
- CN
- China
- Prior art keywords
- knowledge
- carrier data
- data
- chain
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 78
- 238000003860 storage Methods 0.000 title claims abstract description 14
- 230000006978 adaptation Effects 0.000 claims description 31
- 238000012790 confirmation Methods 0.000 claims description 11
- 239000000969 carrier Substances 0.000 abstract description 13
- 238000011156 evaluation Methods 0.000 description 68
- 238000012937 correction Methods 0.000 description 15
- 230000002996 emotional effect Effects 0.000 description 14
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 10
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 10
- 230000008569 process Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 238000004458 analytical method Methods 0.000 description 3
- 238000004590 computer program Methods 0.000 description 3
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 2
- 238000009826 distribution Methods 0.000 description 2
- 230000008451 emotion Effects 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 1
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 1
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 1
- 238000004220 aggregation Methods 0.000 description 1
- 230000002776 aggregation Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000008450 motivation Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/176—Support for shared access to files; File sharing support
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N5/00—Computing arrangements using knowledge-based models
- G06N5/02—Knowledge representation; Symbolic representation
- G06N5/022—Knowledge engineering; Knowledge acquisition
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/02—Marketing; Price estimation or determination; Fundraising
- G06Q30/0201—Market modelling; Market analysis; Collecting market data
- G06Q30/0206—Price or cost determination based on market factors
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Business, Economics & Management (AREA)
- Finance (AREA)
- Physics & Mathematics (AREA)
- Accounting & Taxation (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Strategic Management (AREA)
- Development Economics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- General Business, Economics & Management (AREA)
- Economics (AREA)
- Computing Systems (AREA)
- Entrepreneurship & Innovation (AREA)
- Marketing (AREA)
- Computational Linguistics (AREA)
- Technology Law (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Evolutionary Computation (AREA)
- Game Theory and Decision Science (AREA)
- Artificial Intelligence (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Description
技术领域Technical Field
本发明涉及区块链技术领域,尤其涉及一种基于区块链智能合约的知识共享方法及装置、存储介质。The present invention relates to the field of blockchain technology, and in particular to a knowledge sharing method and device based on blockchain smart contracts, and a storage medium.
背景技术Background technique
在具有内部竞争、外部合作的大型组织中,不同的子组织(例如大型企业内部的不同子组织)之间既存在内部竞争关系也存在外部合作关系。在大型企业中,每个子组织在开展工作的过程中都会产生各种各样的知识,这些知识通过不同的载体记录。但是同一企业的不同子组织之间进行知识共享的动力很小,依靠行政手段推动知识共享,效率较低。因此,从企业组织角度看,企业的知识是分散在各个不同的子组织中,难以实现知识的汇聚和不同组织之间知识的高效共享。因此,提出一种新的知识共享方法,使各种知识载体能在知识的拥有者和知识的需求者之间及时传播,进而实现知识的高效流通,是知识共享过程中亟待解决的问题之一。In large organizations with internal competition and external cooperation, there are both internal competition and external cooperation between different sub-organizations (such as different sub-organizations within a large enterprise). In large enterprises, each sub-organization will generate a variety of knowledge in the process of carrying out work, and this knowledge is recorded through different carriers. However, there is little motivation for knowledge sharing between different sub-organizations of the same enterprise, and relying on administrative means to promote knowledge sharing is inefficient. Therefore, from the perspective of enterprise organization, the knowledge of the enterprise is scattered in various sub-organizations, making it difficult to achieve knowledge aggregation and efficient knowledge sharing between different organizations. Therefore, proposing a new knowledge sharing method that enables various knowledge carriers to be transmitted in a timely manner between knowledge owners and knowledge demanders, thereby achieving efficient knowledge circulation, is one of the problems that need to be solved in the process of knowledge sharing.
发明内容Summary of the invention
本发明提供了一种基于区块链智能合约的知识共享方法及装置、存储介质,基于区块链搭建知识共享平台,使各种知识载体能在知识的拥有者和知识的需求者之间高效传播,进而实现知识的高效流通。The present invention provides a knowledge sharing method and device based on blockchain smart contracts, and a storage medium, and builds a knowledge sharing platform based on blockchain, so that various knowledge carriers can be efficiently transmitted between knowledge owners and knowledge demanders, thereby realizing efficient circulation of knowledge.
为了解决上述技术问题,本发明第一方面公开了一种基于区块链智能合约的知识共享方法,所述方法包括:In order to solve the above technical problems, the first aspect of the present invention discloses a knowledge sharing method based on blockchain smart contracts, the method comprising:
获取第一来源账户上传的知识载体数据,根据预设的知识上链智能合约将所述知识载体数据写入区块链中,得到链上知识载体数据,并生成所述链上知识载体数据对应的标记信息,所述标记信息至少包括所述知识载体数据的来源账户信息;Acquire the knowledge carrier data uploaded by the first source account, write the knowledge carrier data into the blockchain according to the preset knowledge on-chain smart contract, obtain the knowledge carrier data on the chain, and generate tag information corresponding to the knowledge carrier data on the chain, wherein the tag information at least includes the source account information of the knowledge carrier data;
获取请求账户发送的请求信息,所述请求信息用于请求输出所述区块链中的目标链上知识载体数据,所述请求信息至少包括发送所述请求信息的请求账户信息;Obtaining request information sent by a requesting account, wherein the request information is used to request the output of target chain knowledge carrier data in the blockchain, and the request information at least includes requesting account information that sends the request information;
若所述请求账户信息与所述来源账户信息一致,则向所述请求账户输出所述目标链上知识载体数据;If the requesting account information is consistent with the source account information, outputting the target chain knowledge carrier data to the requesting account;
若所述请求账户信息与所述来源账户信息不一致,则判断所述请求信息是否满足预设的知识共享智能合约中的数据输出条件,若判断出所述请求信息满足所述知识共享智能合约中的数据输出条件,则向所述请求账户输出所述目标链上知识载体数据。If the request account information is inconsistent with the source account information, it is determined whether the request information meets the data output conditions in the preset knowledge sharing smart contract. If it is determined that the request information meets the data output conditions in the knowledge sharing smart contract, the knowledge carrier data on the target chain is output to the request account.
本发明第二方面公开了一种基于区块链智能合约的知识共享装置,所述装置包括:The second aspect of the present invention discloses a knowledge sharing device based on blockchain smart contracts, the device comprising:
写入模块,用于获取第一来源账户上传的知识载体数据,根据预设的知识上链智能合约将所述知识载体数据写入区块链中,得到链上知识载体数据,并生成所述链上知识载体数据对应的标记信息,所述标记信息至少包括所述知识载体数据的来源账户信息;A writing module, used to obtain the knowledge carrier data uploaded by the first source account, write the knowledge carrier data into the blockchain according to the preset knowledge on-chain smart contract, obtain the on-chain knowledge carrier data, and generate tag information corresponding to the on-chain knowledge carrier data, wherein the tag information at least includes the source account information of the knowledge carrier data;
获取模块,用于获取请求账户发送的请求信息,所述请求信息用于请求输出所述区块链中的目标链上知识载体数据,所述请求信息至少包括发送所述请求信息的请求账户信息;An acquisition module, used to acquire request information sent by a requesting account, wherein the request information is used to request the output of the target chain knowledge carrier data in the blockchain, and the request information at least includes the requesting account information that sends the request information;
输出模块,用于当所述请求账户信息与所述来源账户信息一致时,则向所述请求账户输出所述目标链上知识载体数据;An output module, configured to output the target chain knowledge carrier data to the requesting account when the requesting account information is consistent with the source account information;
所述输出模块还用于,当所述请求账户信息与所述来源账户信息不一致时,则判断所述请求信息是否满足预设的知识共享智能合约中的数据输出条件,若判断出所述请求信息满足所述知识共享智能合约中的数据输出条件,则向所述请求账户输出所述目标链上知识载体数据。The output module is also used to determine whether the request information meets the data output conditions in the preset knowledge sharing smart contract when the request account information is inconsistent with the source account information. If it is determined that the request information meets the data output conditions in the knowledge sharing smart contract, the knowledge carrier data on the target chain is output to the request account.
作为一种可选的实施方式,在本发明第二方面中,所述请求信息还包括目标交易资源;As an optional implementation manner, in the second aspect of the present invention, the request information further includes a target transaction resource;
所述装置还包括定价模块,所述定价模块用于根据预设的知识定价智能合约,确定所述链上知识载体数据对应的需求交易资源的数量范围,所述数量范围至少包括最小数量阈值;The device also includes a pricing module, which is used to determine the quantity range of the demand transaction resources corresponding to the on-chain knowledge carrier data according to a preset knowledge pricing smart contract, and the quantity range at least includes a minimum quantity threshold;
以及,所述输出模块判断所述请求信息是否满足预设的知识共享智能合约中的数据输出条件的具体方式包括:And, the specific manner in which the output module determines whether the request information satisfies the data output conditions in the preset knowledge sharing smart contract includes:
判断所述目标交易资源的数量是否大于等于所述最小数量阈值;Determining whether the quantity of the target transaction resources is greater than or equal to the minimum quantity threshold;
若所述目标交易资源的数量大于等于所述最小数量阈值,则确定所述请求信息满足预设的知识共享智能合约中的数据输出条件;If the quantity of the target transaction resources is greater than or equal to the minimum quantity threshold, determining that the request information satisfies the data output condition in the preset knowledge sharing smart contract;
以及,所述装置还包括:And, the device also includes:
反馈模块,用于在所述输出模块向所述请求账户输出所述目标链上知识载体数据之后,向所述目标链上知识载体数据对应的来源账户发送所述目标交易资源中的部分或全部交易资源;以及,根据所述目标链上知识载体数据对应的若干次历史请求信息中的目标交易资源的数量,根据所述知识定价智能合约,更新所述目标链上知识载体数据对应的需求交易资源的数量范围。A feedback module is used to send part or all of the target transaction resources to the source account corresponding to the knowledge carrier data on the target chain after the output module outputs the knowledge carrier data on the target chain to the request account; and, according to the quantity of target transaction resources in several historical request information corresponding to the knowledge carrier data on the target chain, update the quantity range of demand transaction resources corresponding to the knowledge carrier data on the target chain according to the knowledge pricing smart contract.
作为一种可选的实施方式,在本发明第二方面中,所述写入模块还用于:As an optional implementation, in the second aspect of the present invention, the writing module is further used for:
获取第二来源账户上传的衍生知识载体数据,根据所述知识上链智能合约将所述衍生知识载体数据写入区块链中,得到衍生链上知识载体数据,所述衍生知识载体数据通过修改至少一个原始链上知识载体数据的知识内容而获得;Obtaining the derived knowledge carrier data uploaded by the second source account, and writing the derived knowledge carrier data into the blockchain according to the knowledge on-chain smart contract to obtain the derived on-chain knowledge carrier data, wherein the derived knowledge carrier data is obtained by modifying the knowledge content of at least one original on-chain knowledge carrier data;
以及,所述反馈模块还用于:And, the feedback module is also used for:
在所述输出模块向所述请求账户输出所述目标链上知识载体数据之后,判断所述目标链上知识载体数据的数据类型是否为衍生类型;以及,当判断出所述目标链上知识载体数据的数据类型为衍生类型时,则根据所述目标交易资源,向所述目标链上知识载体数据对应的来源账户发送所述目标交易资源中的第一部分交易资源,向目标原始链上知识载体数据对应的来源账户发送所述目标交易资源中的第二部分交易资源,其中,所述目标原始链上知识载体数据为与该目标链上知识载体数据对应的原始链上知识载体数据;其中,所述第一部分交易资源和所述第二部分交易资源的数量之和不超过所述目标交易资源的数量。After the output module outputs the target chain knowledge carrier data to the requesting account, it is determined whether the data type of the target chain knowledge carrier data is a derivative type; and when it is determined that the data type of the target chain knowledge carrier data is a derivative type, according to the target transaction resources, the first part of the transaction resources in the target transaction resources is sent to the source account corresponding to the target chain knowledge carrier data, and the second part of the transaction resources in the target transaction resources is sent to the source account corresponding to the target original chain knowledge carrier data, wherein the target original chain knowledge carrier data is the original chain knowledge carrier data corresponding to the target chain knowledge carrier data; wherein the sum of the quantity of the first part of the transaction resources and the second part of the transaction resources does not exceed the quantity of the target transaction resources.
作为一种可选的实施方式,在本发明第二方面中,所述写入模块根据所述知识上链智能合约将所述衍生知识载体数据写入区块链中,得到衍生链上知识载体数据的具体方式包括:As an optional implementation, in the second aspect of the present invention, the writing module writes the derived knowledge carrier data into the blockchain according to the knowledge on-chain smart contract, and the specific method of obtaining the derived on-chain knowledge carrier data includes:
获取所述衍生知识载体数据与该衍生知识载体数据对应的每个原始链上知识载体数据之间的知识内容重复信息,所述知识内容重复信息用于表示所述衍生知识载体数据与所述原始链上知识载体数据之间的重复知识内容,其中,所述重复知识内容为所述衍生知识载体数据与所述原始链上知识载体数据之间相似度大于等于预设的相似度阈值的知识内容;Obtaining knowledge content duplication information between the derived knowledge carrier data and each original on-chain knowledge carrier data corresponding to the derived knowledge carrier data, wherein the knowledge content duplication information is used to represent the repeated knowledge content between the derived knowledge carrier data and the original on-chain knowledge carrier data, wherein the repeated knowledge content is the knowledge content whose similarity between the derived knowledge carrier data and the original on-chain knowledge carrier data is greater than or equal to a preset similarity threshold;
根据所述衍生知识载体数据和所有所述知识内容重复信息确定所述衍生知识载体数据的改编参数;Determining adaptation parameters of the derived knowledge carrier data according to the derived knowledge carrier data and all the knowledge content duplication information;
判断所述改编参数是否大于等于预设的改编参数阈值,若所述改编参数大于等于所述改编参数阈值,则将所述衍生知识载体数据写入区块链中,得到衍生链上知识载体数据;Determine whether the adaptation parameter is greater than or equal to a preset adaptation parameter threshold; if the adaptation parameter is greater than or equal to the adaptation parameter threshold, write the derived knowledge carrier data into the blockchain to obtain the derived knowledge carrier data on the chain;
以及,所述定价模块还用于在所述反馈模块向目标原始链上知识载体数据对应的来源账户发送所述目标交易资源中的第二部分交易资源之前,对于目标链上知识载体数据对应的每一个目标原始链上知识载体数据,根据所述目标链上知识载体数据和该目标原始链上知识载体数据之间的知识内容重复信息,确定所述目标链上知识载体数据和该目标原始链上知识载体数据之间的相关度参数;根据所述相关度参数,确定该目标原始链上知识载体数据对应的第二部分交易资源的数量。In addition, the pricing module is also used to determine the correlation parameter between the target on-chain knowledge carrier data and the target original on-chain knowledge carrier data for each target original on-chain knowledge carrier data corresponding to the target on-chain knowledge carrier data, based on the knowledge content repetition information between the target on-chain knowledge carrier data and the target original on-chain knowledge carrier data, before the feedback module sends the second part of the transaction resources in the target transaction resources to the source account corresponding to the target original on-chain knowledge carrier data; and determine the quantity of the second part of the transaction resources corresponding to the target original on-chain knowledge carrier data based on the correlation parameter.
作为一种可选的实施方式,在本发明第二方面中,所述写入模块获取所述衍生知识载体数据与该衍生知识载体数据对应的每个原始链上知识载体数据之间的知识内容重复信息的具体方式包括:As an optional implementation, in the second aspect of the present invention, the specific manner in which the writing module obtains the knowledge content duplication information between the derived knowledge carrier data and each original on-chain knowledge carrier data corresponding to the derived knowledge carrier data includes:
根据所述衍生知识载体数据确定所述衍生知识载体数据的语义特征,所述语义特征用于表示该衍生知识载体数据所表达的知识内容;Determining semantic features of the derived knowledge carrier data according to the derived knowledge carrier data, wherein the semantic features are used to represent the knowledge content expressed by the derived knowledge carrier data;
对于所述衍生知识载体数据对应的每一个原始链上知识载体数据,获取所述衍生知识载体数据与该原始链上知识载体数据之间的若干关联语义特征,所述关联语义特征用于表示所述衍生知识载体数据与该原始链上知识载体数据之间的重复知识内容;根据每个所述关联语义特征和所述语义特征,确定每个所述关联语义特征对应的权重值;根据每个所述关联语义特征和该关联语义特征对应的权重值,确定所述衍生知识载体数据与该原始链上知识载体数据之间的知识内容重复信息。For each original on-chain knowledge carrier data corresponding to the derived knowledge carrier data, obtain a number of associated semantic features between the derived knowledge carrier data and the original on-chain knowledge carrier data, and the associated semantic features are used to represent the repeated knowledge content between the derived knowledge carrier data and the original on-chain knowledge carrier data; determine the weight value corresponding to each associated semantic feature according to each associated semantic feature and the semantic feature; determine the knowledge content repetition information between the derived knowledge carrier data and the original on-chain knowledge carrier data according to each associated semantic feature and the weight value corresponding to the associated semantic feature.
作为一种可选的实施方式,在本发明第二方面中,所述知识载体数据包括知识载体内容数据和第一标签数据;As an optional implementation, in the second aspect of the present invention, the knowledge carrier data includes knowledge carrier content data and first label data;
以及,所述写入模块根据预设的知识上链智能合约将所述知识载体数据写入区块链中,得到链上知识载体数据的具体方式包括:Furthermore, the writing module writes the knowledge carrier data into the blockchain according to the preset knowledge on-chain smart contract, and the specific method of obtaining the knowledge carrier data on the chain includes:
根据所述知识载体内容数据,生成关键词,根据所述关键词确定所述知识载体数据的第二标签数据,所述第一标签数据和所述第二标签数据用于指示所述知识载体数据所需写入的目标数据块;Generate a keyword according to the knowledge carrier content data, and determine second tag data of the knowledge carrier data according to the keyword, wherein the first tag data and the second tag data are used to indicate a target data block to be written by the knowledge carrier data;
根据所述第一标签数据和所述第二标签数据,将所述知识载体数据写入对应的所述目标数据块中,得到所述链上知识载体数据;According to the first label data and the second label data, the knowledge carrier data is written into the corresponding target data block to obtain the on-chain knowledge carrier data;
其中,所述区块链中包括若干所述目标数据块,每一所述目标数据块用于存储对应类别的知识载体数据。The blockchain includes a plurality of target data blocks, and each target data block is used to store knowledge carrier data of a corresponding category.
作为一种可选的实施方式,在本发明第二方面中,所述反馈模块还用于在所述输出模块向所述请求账户输出所述目标链上知识载体数据之后,获取所述请求账户上传的反馈信息,所述反馈信息包括评价信息和/或修正信息;以及,当所述反馈信息包括所述评价信息时,根据预设的知识评价智能合约判断所述评价信息是否满足预设的评价条件,若所述评价信息满足所述预设的评价条件,则向所述请求账户发送预设的第一奖励交易资源,根据所述评价信息生成所述目标链上知识载体数据的评价结果;以及,当所述反馈信息包括所述修正信息时,将所述修正信息发送给所述目标链上知识载体数据对应的来源账户,若获取到所述来源账户的确认修正信息,则根据所述修正信息修正所述目标链上知识载体数据,并向所述请求账户发送预设的第二奖励交易资源;As an optional implementation, in the second aspect of the present invention, the feedback module is also used to obtain feedback information uploaded by the requesting account after the output module outputs the knowledge carrier data on the target chain to the requesting account, and the feedback information includes evaluation information and/or correction information; and, when the feedback information includes the evaluation information, judging whether the evaluation information meets the preset evaluation conditions according to the preset knowledge evaluation smart contract, if the evaluation information meets the preset evaluation conditions, sending the preset first reward transaction resource to the requesting account, and generating the evaluation result of the knowledge carrier data on the target chain according to the evaluation information; and, when the feedback information includes the correction information, sending the correction information to the source account corresponding to the knowledge carrier data on the target chain, if the confirmation correction information of the source account is obtained, correcting the knowledge carrier data on the target chain according to the correction information, and sending the preset second reward transaction resource to the requesting account;
其中,所述反馈模块根据预设的知识评价智能合约判断所述评价信息是否满足预设的评价条件的具体方式包括:The specific manner in which the feedback module determines whether the evaluation information meets the preset evaluation conditions according to the preset knowledge evaluation smart contract includes:
根据所述知识评价智能合约,提取所述评价信息中的情绪关键词,所述情绪关键词用于表示所述评价信息中带有主观情绪表达的信息,根据所述评价信息和该评价信息中的情绪关键词,确定所述评价信息的主观程度参数,若所述主观程度参数小于预设的主观程度参数阈值,则确定所述评价信息满足预设的评价条件。According to the knowledge evaluation smart contract, emotional keywords in the evaluation information are extracted, and the emotional keywords are used to represent information with subjective emotional expression in the evaluation information. According to the evaluation information and the emotional keywords in the evaluation information, the subjective degree parameter of the evaluation information is determined. If the subjective degree parameter is less than a preset subjective degree parameter threshold, it is determined that the evaluation information meets the preset evaluation conditions.
作为一种可选的实施方式,在本发明第二方面中,所述写入模块还用于在所述得到链上知识载体数据之后,对于每一个所述第一来源账户,根据该第一来源账户上传的所有所述知识载体数据的所述第一标签数据和所述第二标签数据,确定该第一来源账户对应的领域标签数据,所述领域标签数据用于表示该第一来源账户对应的知识领域;As an optional implementation, in the second aspect of the present invention, the writing module is further used to, after obtaining the on-chain knowledge carrier data, for each of the first source accounts, determine the field label data corresponding to the first source account according to the first label data and the second label data of all the knowledge carrier data uploaded by the first source account, wherein the field label data is used to indicate the knowledge field corresponding to the first source account;
以及,所述装置还包括匹配模块,所述匹配模块用于获取索求账户发送的公告信息和第三奖励交易资源,所述公告信息用于描述所述索求账户需要获取的知识内容;Furthermore, the device further comprises a matching module, the matching module being used to obtain announcement information and a third reward transaction resource sent by a requesting account, the announcement information being used to describe the knowledge content that the requesting account needs to obtain;
根据所述公告信息,确定所述公告信息对应的索引标签数据,所述索引标签数据用于与所述第一标签数据、所述第二标签数据以及所述领域标签数据进行匹配;Determine, according to the announcement information, index tag data corresponding to the announcement information, wherein the index tag data is used to match the first tag data, the second tag data, and the field tag data;
判断所述区块链中是否存在匹配链上知识载体数据,其中,所述匹配链上知识载体数据的所述第一标签数据和所述第二标签数据与所述索引标签数据之间的匹配度大于等于预设的匹配度阈值;Determine whether there is matching on-chain knowledge carrier data in the blockchain, wherein the matching degree between the first label data and the second label data of the matching on-chain knowledge carrier data and the index label data is greater than or equal to a preset matching degree threshold;
若判断出所述区块链中存在所述匹配链上知识载体数据,则发送所述匹配链上知识载体数据至所述索求账户,若获取到所述索求账户发送的确认信息,则向所述匹配链上知识载体数据对应的来源账户发送所述第三奖励交易资源中的全部或部分交易资源;If it is determined that the matching on-chain knowledge carrier data exists in the blockchain, the matching on-chain knowledge carrier data is sent to the requesting account, and if the confirmation information sent by the requesting account is obtained, all or part of the third reward transaction resources are sent to the source account corresponding to the matching on-chain knowledge carrier data;
若判断出所述区块链中不存在所述匹配链上知识载体数据,则向所有目标第一来源账户发送所述公告信息,其中,所述目标第一来源账户对应的所述领域标签数据与所述索引标签数据之间的匹配度大于等于所述匹配度阈值;If it is determined that the matching on-chain knowledge carrier data does not exist in the blockchain, the announcement information is sent to all target first source accounts, wherein the matching degree between the domain label data corresponding to the target first source account and the index label data is greater than or equal to the matching degree threshold;
获取所述目标第一来源账户上传的匹配知识载体数据,发送所有所述匹配知识载体数据至所述索求账户,若获取到所述索求账户针对所有所述匹配知识载体数据中的目标匹配知识载体数据发送的确认信息,则向所述目标匹配知识载体数据对应的来源账户发送所述第三奖励交易资源中的全部或部分交易资源。Obtain the matching knowledge carrier data uploaded by the target first source account, send all the matching knowledge carrier data to the requesting account, and if confirmation information sent by the requesting account for the target matching knowledge carrier data among all the matching knowledge carrier data is obtained, send all or part of the transaction resources in the third reward transaction resource to the source account corresponding to the target matching knowledge carrier data.
本发明第三方面公开了另一种基于区块链智能合约的知识共享装置,所述装置包括:The third aspect of the present invention discloses another knowledge sharing device based on blockchain smart contracts, the device comprising:
存储有可执行程序代码的存储器;A memory storing executable program code;
与所述存储器耦合的处理器;a processor coupled to the memory;
所述处理器调用所述存储器中存储的所述可执行程序代码,执行本发明第一方面公开的基于区块链智能合约的知识共享方法。The processor calls the executable program code stored in the memory to execute the knowledge sharing method based on blockchain smart contracts disclosed in the first aspect of the present invention.
本发明第四方面公开了一种计算机可存储介质,所述计算机存储介质存储有计算机指令,所述计算机指令被调用时,用于执行本发明第一方面公开的基于区块链智能合约的知识共享方法。The fourth aspect of the present invention discloses a computer-storable medium, which stores computer instructions. When the computer instructions are called, they are used to execute the knowledge sharing method based on blockchain smart contracts disclosed in the first aspect of the present invention.
与现有技术相比,本发明实施例具有以下有益效果:Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
本发明实施例中,获取第一来源账户上传的知识载体数据,根据预设的知识上链智能合约将知识载体数据写入区块链中,得到链上知识载体数据,并生成链上知识载体数据对应的标记信息,获取请求账户发送的请求信息,请求信息至少包括发送所述请求信息的请求账户信息;若请求账户信息与来源账户信息一致,则向请求账户输出目标链上知识载体数据;若请求账户信息与来源账户信息不一致,则判断请求信息是否满足预设的知识共享智能合约中的数据输出条件,若判断出请求信息满足知识共享智能合约中的数据输出条件,则向请求账户输出目标链上知识载体数据。可见,实施本发明能够基于区块链智能合约搭建一个更加高效的知识共享平台,使各种知识载体能在知识的拥有者和知识的需求者之间高效传播,进而实现知识的高效流通。In an embodiment of the present invention, the knowledge carrier data uploaded by the first source account is obtained, and the knowledge carrier data is written into the blockchain according to the preset knowledge on-chain smart contract to obtain the on-chain knowledge carrier data, and the tag information corresponding to the on-chain knowledge carrier data is generated, and the request information sent by the requesting account is obtained, and the request information at least includes the requesting account information for sending the request information; if the requesting account information is consistent with the source account information, the target on-chain knowledge carrier data is output to the requesting account; if the requesting account information is inconsistent with the source account information, it is determined whether the request information meets the data output conditions in the preset knowledge sharing smart contract, and if it is determined that the request information meets the data output conditions in the knowledge sharing smart contract, the target on-chain knowledge carrier data is output to the requesting account. It can be seen that the implementation of the present invention can build a more efficient knowledge sharing platform based on blockchain smart contracts, so that various knowledge carriers can be efficiently transmitted between knowledge owners and knowledge demanders, thereby realizing efficient circulation of knowledge.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
图1是本发明实施例公开的一种基于区块链智能合约的知识共享方法的流程示意图;FIG1 is a flow chart of a knowledge sharing method based on a blockchain smart contract disclosed in an embodiment of the present invention;
图2是本发明实施例公开的另一种基于区块链智能合约的知识共享方法的流程示意图;FIG2 is a flow chart of another knowledge sharing method based on blockchain smart contracts disclosed in an embodiment of the present invention;
图3是本发明实施例公开的一种基于区块链智能合约的知识共享装置的结构示意图;FIG3 is a schematic diagram of the structure of a knowledge sharing device based on a blockchain smart contract disclosed in an embodiment of the present invention;
图4是本发明实施例公开的另一种基于区块链智能合约的知识共享装置的结构示意图;FIG4 is a schematic diagram of the structure of another knowledge sharing device based on blockchain smart contracts disclosed in an embodiment of the present invention;
图5是本发明实施例公开的又一种基于区块链智能合约的知识共享装置的结构示意图。FIG5 is a schematic diagram of the structure of another knowledge sharing device based on blockchain smart contracts disclosed in an embodiment of the present invention.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、装置、产品或端没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或端固有的其他步骤或单元。The terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish different objects rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, device, product or end including a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units inherent to these processes, methods, products or ends.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive of other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
本发明公开了一种基于区块链智能合约的知识共享方法及装置、存储介质,能够基于区块链智能合约搭建知识共享平台,提供各种知识载体在知识的拥有者和知识的需求者之间的传播途径。以下分别进行详细说明。The present invention discloses a knowledge sharing method and device based on blockchain smart contracts, and a storage medium, which can build a knowledge sharing platform based on blockchain smart contracts and provide a communication channel for various knowledge carriers between knowledge owners and knowledge demanders. The following are detailed descriptions.
实施例一Embodiment 1
请参阅图1,图1是本发明实施例公开的一种基于区块链智能合约的知识共享方法的流程示意图。其中,图1所描述的基于区块链智能合约的知识共享方法可以应用于基于区块链智能合约的知识共享装置中,基于区块链智能合约的知识共享装置可以集成在云端服务器、本地服务器或区块链中,本发明实施例不做限定。如图1所示,该基于区块链智能合约的知识共享方法可以包括以下操作:Please refer to Figure 1, which is a flow chart of a knowledge sharing method based on blockchain smart contracts disclosed in an embodiment of the present invention. The knowledge sharing method based on blockchain smart contracts described in Figure 1 can be applied to a knowledge sharing device based on blockchain smart contracts, and the knowledge sharing device based on blockchain smart contracts can be integrated in a cloud server, a local server or a blockchain, which is not limited in the embodiment of the present invention. As shown in Figure 1, the knowledge sharing method based on blockchain smart contracts can include the following operations:
101、获取第一来源账户上传的知识载体数据,根据预设的知识上链智能合约将知识载体数据写入区块链中,得到链上知识载体数据,并生成链上知识载体数据对应的标记信息。101. Obtain the knowledge carrier data uploaded by the first source account, write the knowledge carrier data into the blockchain according to the preset knowledge on-chain smart contract, obtain the on-chain knowledge carrier data, and generate marking information corresponding to the on-chain knowledge carrier data.
本发明实施例中,具体的,标记信息至少包括知识载体数据的来源账户信息。In the embodiment of the present invention, specifically, the marking information at least includes source account information of the knowledge carrier data.
本发明实施例中,可选的,知识载体数据可以是文本、视频、语音以及图片等任意形式的含有知识内容的数据,第一来源账户可以是任意账户,也可以是具有预设的权限的账户,知识载体数据根据知识上链智能合约写入区块链中,得到链上知识载体数据,然后由标记信息记录每个知识载体数据的来源账户信息,使得每个链上知识载体数据的来源账户均可以被追溯到。可见,本发明实施例首先基于区块链智能合约搭建了一个知识共享平台,同时,基于区块链的技术,每次获取到知识载体数据后自动通过知识上链智能合约将其写入区块链,使得该知识共享平台的管理更加高效。In the embodiment of the present invention, optionally, the knowledge carrier data can be data containing knowledge content in any form such as text, video, voice and picture. The first source account can be any account or an account with preset permissions. The knowledge carrier data is written into the blockchain according to the knowledge chain smart contract to obtain the knowledge carrier data on the chain. Then, the source account information of each knowledge carrier data is recorded by the marking information, so that the source account of each knowledge carrier data on the chain can be traced. It can be seen that the embodiment of the present invention first builds a knowledge sharing platform based on the blockchain smart contract. At the same time, based on the blockchain technology, each time the knowledge carrier data is obtained, it is automatically written into the blockchain through the knowledge chain smart contract, making the management of the knowledge sharing platform more efficient.
102、获取请求账户发送的请求信息。102. Obtain request information sent by the requesting account.
本发明实施例中,具体的,请求信息用于请求输出区块链中的目标链上知识载体数据,该请求信息至少包括发送请求信息的请求账户信息。In the embodiment of the present invention, specifically, the request information is used to request the output of the target chain knowledge carrier data in the blockchain, and the request information at least includes the request account information for sending the request information.
本发明实施例中,可选的,请求账户可以是任意账户,也可以是具有预设的权限的账户,其中请求账户和第一来源账户可以是同一个账户也可以是不同的账户。当请求账户想从区块链中获取到其需要的目标链上知识载体数据时,可以发送请求信息,以请求输出该目标链上知识载体数据。In the embodiment of the present invention, the requesting account may be any account or an account with preset permissions, wherein the requesting account and the first source account may be the same account or different accounts. When the requesting account wants to obtain the target chain knowledge carrier data it needs from the blockchain, it may send a request message to request the output of the target chain knowledge carrier data.
103、若请求账户信息与来源账户信息一致,则向请求账户输出目标链上知识载体数据。103. If the requesting account information is consistent with the source account information, the knowledge carrier data on the target chain is output to the requesting account.
本发明实施例中,具体的,目标链上知识载体数据对应的标记信息中记录了来源账户信息,请求信息中记录了请求账户信息,当请求账户信息与来源账户信息一致时,说明请求账户和第一来源账户是同一个账户,此时直接将目标链上知识载体数据向请求账户输出。In an embodiment of the present invention, specifically, the source account information is recorded in the tag information corresponding to the knowledge carrier data on the target chain, and the request account information is recorded in the request information. When the request account information is consistent with the source account information, it means that the request account and the first source account are the same account. At this time, the knowledge carrier data on the target chain is directly output to the request account.
104、若请求账户信息与来源账户信息不一致,则判断请求信息是否满足预设的知识共享智能合约中的数据输出条件,若判断出请求信息满足知识共享智能合约中的数据输出条件,则向请求账户输出目标链上知识载体数据。104. If the requesting account information is inconsistent with the source account information, it is determined whether the requesting information satisfies the data output conditions in the preset knowledge sharing smart contract. If it is determined that the requesting information satisfies the data output conditions in the knowledge sharing smart contract, the knowledge carrier data on the target chain is output to the requesting account.
本发明实施例中,具体的,当请求账户信息与来源账户信息不一致时,说明请求账户和第一来源账户不是同一个账户,则需要进一步判断请求信息是否满足预设的知识共享智能合约中的数据输出条件,当请求信息满足知识共享智能合约中的数据输出条件时向请求账户输出目标链上知识载体数据。本发明使用区块链的智能合约技术,提高了数据输出条件的判断效率。In the embodiment of the present invention, specifically, when the requesting account information is inconsistent with the source account information, it means that the requesting account and the first source account are not the same account, and it is necessary to further determine whether the requesting information meets the data output conditions in the preset knowledge sharing smart contract. When the requesting information meets the data output conditions in the knowledge sharing smart contract, the knowledge carrier data on the target chain is output to the requesting account. The present invention uses the smart contract technology of blockchain to improve the efficiency of judging data output conditions.
可见,实施本发明实施例中的基于区块链智能合约的知识共享方法,能够基于区块链搭建知识共享平台,使各种知识载体能在知识的拥有者和知识的需求者之间高效传播,进而实现知识的高效流通。It can be seen that the implementation of the knowledge sharing method based on blockchain smart contracts in the embodiment of the present invention can build a knowledge sharing platform based on blockchain, so that various knowledge carriers can be efficiently transmitted between knowledge owners and knowledge demanders, thereby realizing efficient circulation of knowledge.
在一个可选的实施例中,上述的请求信息还包括目标交易资源;上述的基于区块链智能合约的知识共享方法,还可以包括如下操作:In an optional embodiment, the request information further includes target transaction resources; the knowledge sharing method based on blockchain smart contract may further include the following operations:
根据预设的知识定价智能合约,确定链上知识载体数据对应的需求交易资源的数量范围,该数量范围至少包括最小数量阈值。According to the preset knowledge pricing smart contract, the quantity range of the demand transaction resources corresponding to the on-chain knowledge carrier data is determined, and the quantity range at least includes the minimum quantity threshold.
以及,上述的判断请求信息是否满足预设的知识共享智能合约中的数据输出条件,具体包括:Furthermore, the above-mentioned judgment request information whether it meets the data output conditions in the preset knowledge sharing smart contract specifically includes:
判断目标交易资源的数量是否大于等于最小数量阈值;Determine whether the quantity of target transaction resources is greater than or equal to a minimum quantity threshold;
若目标交易资源的数量大于等于最小数量阈值,则确定请求信息满足预设的知识共享智能合约中的数据输出条件;If the quantity of the target transaction resources is greater than or equal to the minimum quantity threshold, it is determined that the request information meets the data output conditions in the preset knowledge sharing smart contract;
以及,在向请求账户输出目标链上知识载体数据之后,上述的基于区块链智能合约的知识共享方法,还可以包括如下操作:Furthermore, after outputting the target chain knowledge carrier data to the requesting account, the above-mentioned knowledge sharing method based on blockchain smart contract may further include the following operations:
向目标链上知识载体数据对应的来源账户发送目标交易资源中的部分或全部交易资源;Send part or all of the target transaction resources to the source account corresponding to the knowledge carrier data on the target chain;
根据目标链上知识载体数据对应的若干次历史请求信息中的目标交易资源的数量,根据知识定价智能合约,更新目标链上知识载体数据对应的需求交易资源的数量范围。According to the quantity of target transaction resources in several historical request information corresponding to the knowledge carrier data on the target chain, according to the knowledge pricing smart contract, the quantity range of demand transaction resources corresponding to the knowledge carrier data on the target chain is updated.
在该可选的实施例中,可选的,目标交易资源可以是虚拟货币,也可以是积分等交易媒介。可选的,需求交易资源是通过预设的知识定价智能合约为目标知识载体数据确定的满足交易需求的交易资源的数量范围,该数量范围至少包括最小数量阈值,可以包括最大数量阈值,也可以不设上限,当请求账户认为该目标交易资源较为重要或物超所值时,可以主动发送高于最小数量阈值的交易资源,从而起到一种打赏或奖励目标知识载体数据来源账户的目的。In this optional embodiment, the target transaction resource may be a virtual currency or a transaction medium such as points. Optionally, the demand transaction resource is a quantity range of transaction resources that meet the transaction requirements determined for the target knowledge carrier data by a preset knowledge pricing smart contract. The quantity range includes at least a minimum quantity threshold, may include a maximum quantity threshold, or may not have an upper limit. When the requesting account believes that the target transaction resource is more important or worth more than the money, it may actively send transaction resources that exceed the minimum quantity threshold, thereby achieving a purpose of rewarding or rewarding the source account of the target knowledge carrier data.
在该可选的实施例中,具体的,向目标链上知识载体数据对应的来源账户发送目标交易资源中的部分或全部交易资源,当需要鼓励来源账户积极上传知识载体数据时,可以将目标交易资源中的全部交易资源发送给来源账户,当平台需要收取服务报酬时,也可以从目标交易资源中扣取一部分交易资源,将目标交易资源中的部分交易资源发送给来源账户。In this optional embodiment, specifically, part or all of the target transaction resources are sent to the source account corresponding to the knowledge carrier data on the target chain. When it is necessary to encourage the source account to actively upload the knowledge carrier data, all of the target transaction resources can be sent to the source account. When the platform needs to collect service fees, part of the transaction resources can also be deducted from the target transaction resources and part of the target transaction resources can be sent to the source account.
在该可选的实施例中,具体的,根据知识定价智能合约,更新目标链上知识载体数据对应的需求交易资源的数量范围,由于需求交易资源的数量范围是通过知识定价智能合约自动定价的,为了提高定价的合理性,还需要考虑请求账户对该交易资源数量的认可度,例如,大部分客户为某一目标知识载体数据所支付的目标交易资源均远大于最小数量阈值,则说明该目标知识载体数据的定价较低,应当更新该目标知识载体数据对应的需求交易资源的数量范围。可选的,可以通过求取若干次历史请求信息中的目标交易资源的数量平均值的方式更新该目标知识载体数据对应的需求交易资源的数量范围,也可以通过正态分布拟合若干次历史请求信息中的目标交易资源的数量的分布情况,进而确定最优的目标知识载体数据对应的需求交易资源的数量范围。In this optional embodiment, specifically, according to the knowledge pricing smart contract, the quantity range of the demand transaction resources corresponding to the knowledge carrier data on the target chain is updated. Since the quantity range of the demand transaction resources is automatically priced by the knowledge pricing smart contract, in order to improve the rationality of pricing, it is also necessary to consider the requesting account's recognition of the quantity of the transaction resources. For example, if the target transaction resources paid by most customers for a certain target knowledge carrier data are far greater than the minimum quantity threshold, it means that the pricing of the target knowledge carrier data is low, and the quantity range of the demand transaction resources corresponding to the target knowledge carrier data should be updated. Optionally, the quantity range of the demand transaction resources corresponding to the target knowledge carrier data can be updated by taking the average quantity of the target transaction resources in several historical request information, or by fitting the distribution of the quantity of the target transaction resources in several historical request information by normal distribution, and then determining the optimal quantity range of the demand transaction resources corresponding to the target knowledge carrier data.
可见,实施该可选的实施例中的基于区块链智能合约的知识共享方法,通过凭借交易资源来交易知识载体数据的方式,提高了来源账户上传知识载体数据的积极性,也能够通过请求账户自定义上传的目标交易资源的数量,来衡量请求账户对交易资源数量范围的认可度,此外,还能够利用请求账户自定义上传的目标交易资源的数量,来反馈调整目标知识载体数据对应的需求交易资源的数量范围,从而为目标知识载体数据提供合理的交易资源数量范围,最终实现知识的高效流通。It can be seen that the implementation of the knowledge sharing method based on blockchain smart contracts in this optional embodiment improves the enthusiasm of the source account to upload knowledge carrier data by relying on transaction resources to trade knowledge carrier data, and can also measure the requesting account's recognition of the transaction resource quantity range by the number of target transaction resources customized by the requesting account. In addition, the number of target transaction resources customized by the requesting account can also be used to feedback and adjust the quantity range of demand transaction resources corresponding to the target knowledge carrier data, thereby providing a reasonable transaction resource quantity range for the target knowledge carrier data, and ultimately achieving efficient circulation of knowledge.
在另一个可选的实施例中,上述的基于区块链智能合约的知识共享方法,还可以包括如下操作:In another optional embodiment, the above-mentioned knowledge sharing method based on blockchain smart contract may also include the following operations:
获取第二来源账户上传的衍生知识载体数据,根据知识上链智能合约将衍生知识载体数据写入区块链中,得到衍生链上知识载体数据;Obtain the derived knowledge carrier data uploaded by the second source account, write the derived knowledge carrier data into the blockchain according to the knowledge on-chain smart contract, and obtain the derived on-chain knowledge carrier data;
以及,在向请求账户输出目标链上知识载体数据之后,上述的基于区块链智能合约的知识共享方法,该方法还可以包括如下操作:And, after outputting the target chain knowledge carrier data to the requesting account, the above-mentioned knowledge sharing method based on blockchain smart contract may further include the following operations:
判断目标链上知识载体数据的数据类型是否为衍生类型;Determine whether the data type of the knowledge carrier data on the target chain is a derived type;
若判断出目标链上知识载体数据的数据类型为衍生类型,则根据目标交易资源,向目标链上知识载体数据对应的来源账户发送目标交易资源中的第一部分交易资源,向目标原始链上知识载体数据对应的来源账户发送目标交易资源中的第二部分交易资源,其中,目标原始链上知识载体数据为与该目标链上知识载体数据对应的原始链上知识载体数据;If it is determined that the data type of the knowledge carrier data on the target chain is a derivative type, then according to the target transaction resources, the first part of the transaction resources in the target transaction resources is sent to the source account corresponding to the knowledge carrier data on the target chain, and the second part of the transaction resources in the target transaction resources is sent to the source account corresponding to the knowledge carrier data on the target original chain, wherein the knowledge carrier data on the target original chain is the knowledge carrier data on the original chain corresponding to the knowledge carrier data on the target chain;
在该可选的实施例中,具体的,第一部分交易资源和第二部分交易资源的数量之和不超过目标交易资源的数量。衍生知识载体数据通过修改至少一个原始链上知识载体数据的知识内容而获得,例如,衍生知识载体数据是一篇介绍区块链技术的PPT,该PPT的制作参考了若干区块链中已有的原始链上知识载体数据:用于介绍区块链发展历史的文档1、用于讲解区块链运行原理的视频2和用于分析区块链优势的PPT3等。In this optional embodiment, specifically, the sum of the number of the first part of transaction resources and the second part of transaction resources does not exceed the number of target transaction resources. The derived knowledge carrier data is obtained by modifying the knowledge content of at least one original on-chain knowledge carrier data. For example, the derived knowledge carrier data is a PPT introducing blockchain technology. The production of this PPT refers to the original on-chain knowledge carrier data already existing in several blockchains: Document 1 for introducing the history of blockchain development, Video 2 for explaining the operating principle of blockchain, and PPT 3 for analyzing the advantages of blockchain, etc.
可见,实施该可选的实施例中的基于区块链智能合约的知识共享方法,对于改编自原始链上知识载体数据的衍生链上知识载体,能够记录其改编信息,并将目标交易资源进行合理分配,原始链上知识载体数据对应的来源账户也能获取对应的一部分交易资源,使得本发明实施例中的目标交易资源的分配过程更加合理,从而激励来源账户上传更优质的知识载体数据,实现知识的高效流通。It can be seen that the knowledge sharing method based on blockchain smart contracts in the optional embodiment can record the adaptation information of the derived on-chain knowledge carrier adapted from the original on-chain knowledge carrier data, and reasonably allocate the target transaction resources. The source account corresponding to the original on-chain knowledge carrier data can also obtain a corresponding part of the transaction resources, making the allocation process of the target transaction resources in the embodiment of the present invention more reasonable, thereby encouraging the source account to upload higher-quality knowledge carrier data and realize efficient circulation of knowledge.
在又一个可选的实施例中,上述的根据知识上链智能合约将衍生知识载体数据写入区块链中,得到衍生链上知识载体数据,可以包括如下操作:In another optional embodiment, the above-mentioned writing of the derived knowledge carrier data into the blockchain according to the knowledge on-chain smart contract to obtain the derived on-chain knowledge carrier data may include the following operations:
获取衍生知识载体数据与该衍生知识载体数据对应的每个原始链上知识载体数据之间的知识内容重复信息;Obtaining knowledge content duplication information between the derived knowledge carrier data and each original on-chain knowledge carrier data corresponding to the derived knowledge carrier data;
根据衍生知识载体数据和所有知识内容重复信息确定衍生知识载体数据的改编参数;Determine the adaptation parameters of the derived knowledge carrier data according to the derived knowledge carrier data and all knowledge content duplication information;
判断改编参数是否大于等于预设的改编参数阈值,若改编参数大于等于改编参数阈值,则将衍生知识载体数据写入区块链中,得到衍生链上知识载体数据;Determine whether the adaptation parameter is greater than or equal to a preset adaptation parameter threshold. If the adaptation parameter is greater than or equal to the adaptation parameter threshold, write the derived knowledge carrier data into the blockchain to obtain the derived knowledge carrier data on the chain;
以及,在向目标原始链上知识载体数据对应的来源账户发送目标交易资源中的第二部分交易资源之前,方法还可以包括如下操作:Furthermore, before sending the second part of the transaction resources in the target transaction resources to the source account corresponding to the knowledge carrier data on the target original chain, the method may further include the following operations:
对于目标链上知识载体数据对应的每一个目标原始链上知识载体数据,根据目标链上知识载体数据和该目标原始链上知识载体数据之间的知识内容重复信息,确定目标链上知识载体数据和该目标原始链上知识载体数据之间的相关度参数;根据相关度参数,确定该目标原始链上知识载体数据对应的第二部分交易资源的数量。For each target original chain knowledge carrier data corresponding to the target chain knowledge carrier data, determine the correlation parameter between the target chain knowledge carrier data and the target original chain knowledge carrier data based on the knowledge content duplication information between the target chain knowledge carrier data and the target original chain knowledge carrier data; determine the number of the second part of transaction resources corresponding to the target original chain knowledge carrier data based on the correlation parameter.
在该可选的实施例中,具体的,知识内容重复信息用于表示衍生知识载体数据与原始链上知识载体数据之间的重复知识内容,其中,重复知识内容为衍生知识载体数据与原始链上知识载体数据之间相似度大于等于预设的相似度阈值的知识内容。In this optional embodiment, specifically, the knowledge content duplication information is used to represent the repeated knowledge content between the derived knowledge carrier data and the original on-chain knowledge carrier data, wherein the repeated knowledge content is the knowledge content whose similarity between the derived knowledge carrier data and the original on-chain knowledge carrier data is greater than or equal to a preset similarity threshold.
在该可选的实施例中,具体的,改编参数用于衡量衍生知识载体数据的知识内容的原创程度,其通过衍生知识载体数据和所有知识内容重复信息确定出来,可选的,根据所有知识内容重复信息的占比来确定原创知识内容的占比,最终确认改编参数。若改编参数小于预设的改编参数阈值,则说明对应的衍生知识载体数据的原创程度不够,不适合写入区块链中。通过知识内容重复信息来确定改编参数和相关度参数,可以通过如下操作完成:In this optional embodiment, specifically, the adaptation parameter is used to measure the originality of the knowledge content of the derived knowledge carrier data, which is determined by the derived knowledge carrier data and all knowledge content duplication information. Optionally, the proportion of original knowledge content is determined based on the proportion of all knowledge content duplication information, and the adaptation parameter is finally confirmed. If the adaptation parameter is less than the preset adaptation parameter threshold, it means that the originality of the corresponding derived knowledge carrier data is not enough and is not suitable for writing into the blockchain. Determining the adaptation parameter and relevance parameter through knowledge content duplication information can be completed by the following operations:
目标链上知识载体数据A为衍生类型,则其具有对应的原始链上知识载体数据:目标原始链上知识载体数据1、目标原始链上知识载体数据2、目标原始链上知识载体数据3;其中,目标链上知识载体数据A和每个原始链上知识载体数据之间的知识内容重复信息分别为:知识内容重复信息1、知识内容重复信息2、知识内容重复信息3;通过分析,知识内容重复信息1、知识内容重复信息2、知识内容重复信息3在目标链上知识载体数据A中的内容占比分别为0.15、0.2、0.25,则可以确定改编参数为0.4,若预设的改编参数阈值为0.3,则改编参数大于预设的改编参数阈值,则说明对应的衍生知识载体数据的原创程度足够,可以写入区块链中。进一步的,根据知识内容重复信息1、知识内容重复信息2、知识内容重复信息3,可以确定出目标链上知识载体数据A和目标原始链上知识载体数据1、目标原始链上知识载体数据2、目标原始链上知识载体数据3之间的相关度参数分别为:0.15、0.2、0.25。If the knowledge carrier data A on the target chain is of a derivative type, it has corresponding knowledge carrier data on the original chain: target original chain knowledge carrier data 1, target original chain knowledge carrier data 2, target original chain knowledge carrier data 3; wherein, the knowledge content duplication information between the target chain knowledge carrier data A and each original chain knowledge carrier data is: knowledge content duplication information 1, knowledge content duplication information 2, knowledge content duplication information 3; through analysis, the content proportions of knowledge content duplication information 1, knowledge content duplication information 2, and knowledge content duplication information 3 in the target chain knowledge carrier data A are 0.15, 0.2, and 0.25, respectively, then it can be determined that the adaptation parameter is 0.4. If the preset adaptation parameter threshold is 0.3, then the adaptation parameter is greater than the preset adaptation parameter threshold, which means that the corresponding derivative knowledge carrier data is sufficiently original and can be written into the blockchain. Furthermore, based on knowledge content duplication information 1, knowledge content duplication information 2, and knowledge content duplication information 3, it can be determined that the correlation parameters between the knowledge carrier data A on the target chain and the knowledge carrier data 1 on the target original chain, the knowledge carrier data 2 on the target original chain, and the knowledge carrier data 3 on the target original chain are: 0.15, 0.2, and 0.25, respectively.
可见,实施该可选的实施例中的基于区块链智能合约的知识共享方法,能够筛选出符合原创要求的衍生链上知识载体数据,且能够基于衍生链上知识载体数据和原始链上知识载体数据之间的关联性确定需要给原始链上知识载体数据对应的来源账户分配的第二部分交易资源的数量,使得本发明实施例中的交易资源的分配方式更加合理公平,提高来源用户上传知识载体数据的积极性,实现知识的高效流通。It can be seen that the implementation of the knowledge sharing method based on blockchain smart contracts in this optional embodiment can screen out the derivative on-chain knowledge carrier data that meets the original requirements, and can determine the amount of the second part of transaction resources that need to be allocated to the source account corresponding to the original on-chain knowledge carrier data based on the correlation between the derivative on-chain knowledge carrier data and the original on-chain knowledge carrier data, thereby making the allocation method of transaction resources in the embodiment of the present invention more reasonable and fair, increasing the enthusiasm of source users to upload knowledge carrier data, and realizing efficient circulation of knowledge.
在又一个可选的实施例中,上述的获取衍生知识载体数据与该衍生知识载体数据对应的每个原始链上知识载体数据之间的知识内容重复信息可以包括如下操作:In yet another optional embodiment, the above-mentioned obtaining of knowledge content duplication information between the derived knowledge carrier data and each original on-chain knowledge carrier data corresponding to the derived knowledge carrier data may include the following operations:
根据衍生知识载体数据确定衍生知识载体数据的语义特征;Determine semantic features of the derived knowledge carrier data according to the derived knowledge carrier data;
对于衍生知识载体数据对应的每一个原始链上知识载体数据,获取衍生知识载体数据与该原始链上知识载体数据之间的若干关联语义特征;根据每个关联语义特征和语义特征,确定每个关联语义特征对应的权重值;根据每个关联语义特征和该关联语义特征对应的权重值,确定衍生知识载体数据与该原始链上知识载体数据之间的知识内容重复信息。For each original on-chain knowledge carrier data corresponding to the derived knowledge carrier data, obtain several associated semantic features between the derived knowledge carrier data and the original on-chain knowledge carrier data; determine the weight value corresponding to each associated semantic feature based on each associated semantic feature and the semantic feature; determine the knowledge content duplication information between the derived knowledge carrier data and the original on-chain knowledge carrier data based on each associated semantic feature and the weight value corresponding to the associated semantic feature.
在该可选的实施例中,具体的,语义特征用于表示该衍生知识载体数据所表达的知识内容,关联语义特征用于表示衍生知识载体数据与该原始链上知识载体数据之间的重复知识内容。In this optional embodiment, specifically, the semantic feature is used to represent the knowledge content expressed by the derived knowledge carrier data, and the associated semantic feature is used to represent the repeated knowledge content between the derived knowledge carrier data and the original knowledge carrier data on the chain.
在该可选的实施例中,衍生知识载体数据与原始链上知识载体数据之间的重复知识内容需要考虑其重要程度来确定最终的知识内容重复信息,例如对于衍生知识载体数据中涉及的一些背景知识介绍等知识内容,由于其对原创程度的贡献不高,因此需要减小其对原创程度影响的比重,因此,在该可选的实施例中,根据每个关联语义特征和语义特征,确定每个关联语义特征对应的权重值,可选的,该权重值在确定的过程中,先确定关联语义特征在语义特征中的知识表达级别:例如背景知识介绍、核心观点表达、解释脚注、总结性表达等中的一种或多种组合,最终根据该表达级别确定权重值。In this optional embodiment, the repeated knowledge content between the derived knowledge carrier data and the original knowledge carrier data on the chain needs to consider its importance to determine the final knowledge content duplication information. For example, for some background knowledge introduction and other knowledge content involved in the derived knowledge carrier data, since its contribution to the degree of originality is not high, it is necessary to reduce the proportion of its influence on the degree of originality. Therefore, in this optional embodiment, the weight value corresponding to each associated semantic feature and semantic feature is determined. Optionally, in the process of determining the weight value, the knowledge expression level of the associated semantic feature in the semantic feature is first determined: for example, one or more combinations of background knowledge introduction, core idea expression, explanatory footnotes, summary expression, etc., and finally the weight value is determined according to the expression level.
可见,实施该可选的实施例中的基于区块链智能合约的知识共享方法,能够根据衍生知识载体数据与原始链上知识载体数据之间的重复知识内容的重要程度来确定最终的知识内容重复信息,使得知识内容重复信息的确定过程更具合理性,使得本发明实施例中的交易资源的分配方式更加合理公平,提高来源用户上传知识载体数据的积极性,实现知识的高效流通。It can be seen that the implementation of the knowledge sharing method based on blockchain smart contracts in this optional embodiment can determine the final knowledge content duplication information according to the importance of the repeated knowledge content between the derived knowledge carrier data and the original knowledge carrier data on the chain, making the determination process of the knowledge content duplication information more reasonable, making the allocation method of transaction resources in the embodiment of the present invention more reasonable and fair, thereby increasing the enthusiasm of source users to upload knowledge carrier data and realizing efficient circulation of knowledge.
在又一个可选的实施例中,在向请求账户输出目标链上知识载体数据之后,该方法还可以包括如下操作:In yet another optional embodiment, after outputting the target chain knowledge carrier data to the requesting account, the method may further include the following operations:
获取请求账户上传的反馈信息,反馈信息包括评价信息和/或修正信息;Obtain feedback information uploaded by the requesting account, including evaluation information and/or correction information;
当反馈信息包括评价信息时,根据预设的知识评价智能合约判断评价信息是否满足预设的评价条件,若评价信息满足预设的评价条件,则向请求账户发送预设的第一奖励交易资源,根据评价信息生成目标链上知识载体数据的评价结果;When the feedback information includes evaluation information, the preset knowledge evaluation smart contract is used to determine whether the evaluation information meets the preset evaluation conditions. If the evaluation information meets the preset evaluation conditions, the preset first reward transaction resource is sent to the requesting account, and the evaluation result of the knowledge carrier data on the target chain is generated according to the evaluation information;
当反馈信息包括修正信息时,将修正信息发送给目标链上知识载体数据对应的来源账户,若获取到来源账户的确认修正信息,则根据修正信息修正目标链上知识载体数据,并向请求账户发送预设的第二奖励交易资源;When the feedback information includes correction information, the correction information is sent to the source account corresponding to the knowledge carrier data on the target chain. If the confirmation correction information of the source account is obtained, the knowledge carrier data on the target chain is corrected according to the correction information, and the preset second reward transaction resource is sent to the requesting account;
其中,根据预设的知识评价智能合约判断评价信息是否满足预设的评价条件,包括:Among them, judging whether the evaluation information meets the preset evaluation conditions according to the preset knowledge evaluation smart contract includes:
根据知识评价智能合约,提取评价信息中的情绪关键词,情绪关键词用于表示评价信息中带有主观情绪表达的信息,根据评价信息和该评价信息中的情绪关键词,确定评价信息的主观程度参数,若主观程度参数小于预设的主观程度参数阈值,则确定评价信息满足预设的评价条件。According to the knowledge evaluation smart contract, emotional keywords are extracted from the evaluation information. Emotional keywords are used to represent information with subjective emotional expression in the evaluation information. According to the evaluation information and the emotional keywords in the evaluation information, the subjective degree parameter of the evaluation information is determined. If the subjective degree parameter is less than the preset subjective degree parameter threshold, it is determined that the evaluation information meets the preset evaluation conditions.
可见,实施该可选的实施例中的基于区块链智能合约的知识共享方法,能够为请求账户提供反馈渠道,从而使请求账户对获取到的目标知识载体数据进行评价或进行修正完善。此外,为了确保请求用户的评价信息的客观性,该可选的实施例中,通过对评价信息中的情绪关键词进行提取和处理,以判断该评价信息是否是客观的,而非由于主观情绪进行的不公正评价甚至恶意评价。因此,该可选的实施例能够为请求账户提供反馈渠道,进一步完善链上知识载体数据的维护,实现知识的高效流通。It can be seen that the implementation of the knowledge sharing method based on blockchain smart contracts in this optional embodiment can provide a feedback channel for the requesting account, so that the requesting account can evaluate or correct the acquired target knowledge carrier data. In addition, in order to ensure the objectivity of the evaluation information of the requesting user, in this optional embodiment, the emotional keywords in the evaluation information are extracted and processed to determine whether the evaluation information is objective, rather than an unfair or even malicious evaluation due to subjective emotions. Therefore, this optional embodiment can provide a feedback channel for the requesting account, further improve the maintenance of the knowledge carrier data on the chain, and realize the efficient circulation of knowledge.
实施例二Embodiment 2
请参阅图2,图2是本发明实施例公开的另一种基于区块链智能合约的知识共享方法的流程示意图。其中,图2所描述的基于区块链智能合约的知识共享方法可以应用于基于区块链智能合约的知识共享装置中,基于区块链智能合约的知识共享装置可以集成在云端服务器、本地服务器或区块链中,本发明实施例不做限定。如图2所示,该基于区块链智能合约的知识共享方法可以包括以下操作:Please refer to Figure 2, which is a flow chart of another knowledge sharing method based on blockchain smart contracts disclosed in an embodiment of the present invention. The knowledge sharing method based on blockchain smart contracts described in Figure 2 can be applied to a knowledge sharing device based on blockchain smart contracts, and the knowledge sharing device based on blockchain smart contracts can be integrated in a cloud server, a local server or a blockchain, which is not limited in the embodiment of the present invention. As shown in Figure 2, the knowledge sharing method based on blockchain smart contracts can include the following operations:
201、获取第一来源账户上传的知识载体数据。201. Obtain the knowledge carrier data uploaded by the first source account.
本发明实施例中,具体的,知识载体数据包括知识载体内容数据和第一标签数据,第一标签数据用于指示知识载体数据所需写入的目标数据块。In the embodiment of the present invention, specifically, the knowledge carrier data includes knowledge carrier content data and first label data, and the first label data is used to indicate a target data block to which the knowledge carrier data needs to be written.
本发明实施例中,可选的,知识载体内容数据可以是文本、视频、语音以及图片等任意形式的含有具体知识内容的数据,第一标签数据可以用于表示该知识载体内容所属的知识领域或知识类别,可选的,第一标签数据可以根据来源账户在上传知识载体数据时提供或者填写的描述语句获取,也可以直接由来源用户通过选择该知识载体数据所属的知识领域或知识类别来确定。In an embodiment of the present invention, optionally, the knowledge carrier content data may be data containing specific knowledge content in any form such as text, video, voice, and picture, and the first label data may be used to indicate the knowledge field or knowledge category to which the knowledge carrier content belongs. Optionally, the first label data may be obtained based on a description statement provided or filled in by a source account when uploading the knowledge carrier data, or may be directly determined by a source user by selecting the knowledge field or knowledge category to which the knowledge carrier data belongs.
202、根据知识载体内容数据,生成关键词,根据关键词确定知识载体数据的第二标签数据。202. Generate keywords based on the knowledge carrier content data, and determine second label data of the knowledge carrier data based on the keywords.
本发明实施例中,具体的,第二标签数据用于指示知识载体数据所需写入的目标数据块。其中,第二标签数据通过对知识载体内容进行分析而获得,具体的,根据知识载体内容数据,生成关键词,根据关键词确定知识载体数据的第二标签数据。可选的,通过对知识载体内容数据的分析,提取出能概括知识载体内容的多个关键词,例如,对于文本类知识载体数据,通过分析文本所表达的内容,通过预设的内容分析模型提取文本关键词。可选的,根据关键词确定知识载体数据的第二标签数据,可以先预设每个第二标签数据和各个标准关键词之间的第一相关度,再分析关键词与标准关键词之间的第二相关度,根据关键词结合第一相关度和第二相关度确定知识载体数据的第二标签数据。In an embodiment of the present invention, specifically, the second label data is used to indicate a target data block to be written into the knowledge carrier data. The second label data is obtained by analyzing the content of the knowledge carrier. Specifically, keywords are generated based on the content data of the knowledge carrier, and the second label data of the knowledge carrier data is determined based on the keywords. Optionally, multiple keywords that can summarize the content of the knowledge carrier are extracted by analyzing the content data of the knowledge carrier. For example, for text-type knowledge carrier data, the content expressed by the text is analyzed and the text keywords are extracted through a preset content analysis model. Optionally, the second label data of the knowledge carrier data is determined based on the keywords. The first correlation between each second label data and each standard keyword can be preset, and then the second correlation between the keyword and the standard keyword can be analyzed. The second label data of the knowledge carrier data is determined based on the keywords in combination with the first correlation and the second correlation.
本发明实施例中,由于第一标签数据来自于第一来源账户,而第一来源账户很难对其上传的知识载体数据进行全面而准确的描述,例如来源账户认为其上传的知识载体数据属于区块链、知识共享、交易平台等知识领域,但实际上其上传的知识载体数据还属于数据互传、数据分类、数据内容相似度分析等知识领域,如果只通过第一标签数据来衡量知识载体数据的知识领域,则造成了准确性和全面性不足的问题,可能导致该知识载体数据没有被写入到正确的数据块中,因此,本发明实施例还确定了第二标签数据,其中,第二标签数据是通过知识载体内容数据而确定的,可以对上传的知识载体数据进行全面而准确的描述。可见,本发明实施例通过对知识载体数据的处理获得第二标签,能够对上传的知识载体数据进行全面而准确的描述。In the embodiment of the present invention, since the first label data comes from the first source account, it is difficult for the first source account to fully and accurately describe the knowledge carrier data uploaded by it. For example, the source account believes that the knowledge carrier data uploaded by it belongs to knowledge fields such as blockchain, knowledge sharing, and trading platform, but in fact, the knowledge carrier data uploaded by it also belongs to knowledge fields such as data transmission, data classification, and data content similarity analysis. If the knowledge field of the knowledge carrier data is measured only by the first label data, it will cause the problem of insufficient accuracy and comprehensiveness, which may cause the knowledge carrier data to not be written into the correct data block. Therefore, the embodiment of the present invention also determines the second label data, wherein the second label data is determined by the knowledge carrier content data, and can fully and accurately describe the uploaded knowledge carrier data. It can be seen that the embodiment of the present invention obtains the second label by processing the knowledge carrier data, and can fully and accurately describe the uploaded knowledge carrier data.
203、根据第一标签数据和第二标签数据,将知识载体数据写入对应的目标数据块中,得到链上知识载体数据;并生成链上知识载体数据对应的标记信息。203. According to the first label data and the second label data, the knowledge carrier data is written into the corresponding target data block to obtain the on-chain knowledge carrier data; and marking information corresponding to the on-chain knowledge carrier data is generated.
本发明实施例中,具体的,标记信息至少包括知识载体数据的来源账户信息;区块链中包括若干目标数据块,每一目标数据块用于存储对应类别的知识载体数据。In the embodiment of the present invention, specifically, the marking information at least includes the source account information of the knowledge carrier data; the blockchain includes a plurality of target data blocks, each target data block is used to store the knowledge carrier data of a corresponding category.
可见,本发明实施例中,不同的数据块存储不同类别的知识载体,从而将知识载体数据分类存储,便于查找和管理链上知识载体数据。进一步的,第二标签数据是通过知识载体内容数据而确定的,可以对上传的知识载体数据进行全面而准确的描述,因此,本发明实施例通过结合第一标签数据和第二标签数据,能够实现对知识载体数据进行更加准确而全面的分类,从而提高了知识共享过程中的效率。It can be seen that in the embodiment of the present invention, different data blocks store different categories of knowledge carriers, so that the knowledge carrier data is classified and stored, which is convenient for searching and managing the knowledge carrier data on the chain. Furthermore, the second label data is determined by the knowledge carrier content data, which can comprehensively and accurately describe the uploaded knowledge carrier data. Therefore, the embodiment of the present invention can realize a more accurate and comprehensive classification of the knowledge carrier data by combining the first label data and the second label data, thereby improving the efficiency of the knowledge sharing process.
204、获取请求账户发送的请求信息。204. Obtain request information sent by the requesting account.
305若请求账户信息与来源账户信息一致,则向请求账户输出目标链上知识载体数据。305 If the requesting account information is consistent with the source account information, the knowledge carrier data on the target chain is output to the requesting account.
206、若请求账户信息与来源账户信息不一致,则判断请求信息是否满足预设的知识共享智能合约中的数据输出条件,若判断出请求信息满足知识共享智能合约中的数据输出条件,则向请求账户输出目标链上知识载体数据。206. If the requesting account information is inconsistent with the source account information, determine whether the requesting information satisfies the data output conditions in the preset knowledge sharing smart contract. If it is determined that the requesting information satisfies the data output conditions in the knowledge sharing smart contract, output the knowledge carrier data on the target chain to the requesting account.
本发明实施例中,针对步骤204-206的其它描述,请参照实施例一中针对步骤102-104的详细描述,本发明实施例不再赘述。In the embodiment of the present invention, for other descriptions of steps 204-206, please refer to the detailed description of steps 102-104 in the first embodiment, and the embodiment of the present invention will not be repeated here.
可见,实施本发明实施例中的基于区块链智能合约的知识共享方法,能够基于区块链智能合约搭建一个更加高效的知识共享平台,能够实现对知识载体数据进行更加准确而全面的分类,使各种知识载体能在知识的拥有者和知识的需求者之间高效传播,进而实现知识的高效流通。It can be seen that the implementation of the knowledge sharing method based on blockchain smart contracts in the embodiment of the present invention can build a more efficient knowledge sharing platform based on blockchain smart contracts, and can achieve more accurate and comprehensive classification of knowledge carrier data, so that various knowledge carriers can be efficiently disseminated between knowledge owners and knowledge demanders, thereby realizing efficient circulation of knowledge.
在一个可选的实施例中,在步骤203之后,该方法还可以包括如下操作:In an optional embodiment, after step 203, the method may further include the following operations:
对于每一个第一来源账户,根据该第一来源账户上传的所有知识载体数据的第一标签数据和第二标签数据,确定该第一来源账户对应的领域标签数据,领域标签数据用于表示该第一来源账户对应的知识领域;For each first source account, determining the domain label data corresponding to the first source account according to the first label data and the second label data of all knowledge carrier data uploaded by the first source account, where the domain label data is used to indicate the knowledge domain corresponding to the first source account;
在该可选的实施例中,进一步可选的,该方法还可以包括如下操作:In this optional embodiment, further optionally, the method may also include the following operations:
获取索求账户发送的公告信息和第三奖励交易资源,公告信息用于描述索求账户需要获取的知识内容;Obtain the announcement information and third-party reward transaction resources sent by the requesting account. The announcement information is used to describe the knowledge content that the requesting account needs to obtain;
根据公告信息,确定公告信息对应的索引标签数据,索引标签数据用于与第一标签数据、第二标签数据及领域标签数据进行匹配;According to the announcement information, determine the index label data corresponding to the announcement information, where the index label data is used to match the first label data, the second label data, and the domain label data;
判断区块链中是否存在匹配链上知识载体数据,其中,匹配链上知识载体数据的第一标签数据和第二标签数据与索引标签数据之间的匹配度大于等于预设的匹配度阈值;Determine whether there is matching on-chain knowledge carrier data in the blockchain, wherein the matching degree between the first label data and the second label data of the matching on-chain knowledge carrier data and the index label data is greater than or equal to a preset matching degree threshold;
若判断出区块链中存在匹配链上知识载体数据,则发送匹配链上知识载体数据至索求账户,若获取到索求账户发送的确认信息,则向匹配链上知识载体数据对应的来源账户发送第三奖励交易资源中的全部或部分交易资源;If it is determined that there is a matching on-chain knowledge carrier data in the blockchain, the matching on-chain knowledge carrier data is sent to the requesting account. If the confirmation information sent by the requesting account is obtained, all or part of the third reward transaction resources are sent to the source account corresponding to the matching on-chain knowledge carrier data;
若判断出区块链中不存在匹配链上知识载体数据,则向所有目标第一来源账户发送公告信息,其中,目标第一来源账户对应的领域标签数据与索引标签数据之间的匹配度大于等于预设的匹配度阈值;If it is determined that there is no matching on-chain knowledge carrier data in the blockchain, an announcement message is sent to all target first source accounts, where the matching degree between the domain label data and the index label data corresponding to the target first source account is greater than or equal to a preset matching degree threshold;
获取目标第一来源账户上传的匹配知识载体数据,发送所有匹配知识载体数据至索求账户,若获取到索求账户针对所有匹配知识载体数据中的目标匹配知识载体数据发送的确认信息,则向目标匹配知识载体数据对应的来源账户发送第三奖励交易资源中的全部或部分交易资源。Obtain the matching knowledge carrier data uploaded by the target first source account, send all the matching knowledge carrier data to the requesting account, and if the confirmation information sent by the requesting account for the target matching knowledge carrier data among all the matching knowledge carrier data is obtained, then send all or part of the transaction resources in the third reward transaction resource to the source account corresponding to the target matching knowledge carrier data.
可见,实施该可选的实施例中的基于区块链智能合约的知识共享方法,当知识的需求者根据自己的知识需求无法直接确定要获取的目标链上知识载体数据,或者区块链中不存在符合知识需求的目标链上知识载体数据时,可以通过索求账户发送公告信息的方式来获取需要的知识载体数据。在可选的实施例中,可以根据公告信息帮助索求账户在区块链中准确的查找到对应的目标链上知识载体数据,提高了知识共享的效率,另外,本发明实施例中根据来源用户经常上传的知识载体数据为来源账户确定领域标签数据,可以衡量每个来源账户所擅长的知识领域,当区块链中不存在符合知识需求的目标链上知识载体数据时,能够根据公告信息确认出有能力提供该目标链上知识载体数据的来源账户,从而能够准确的在知识的需求者和知识的拥有者之间建立联系,使各种知识载体能在知识的拥有者和知识的需求者之间高效传播,进而实现知识的高效流通。It can be seen that, by implementing the knowledge sharing method based on blockchain smart contracts in the optional embodiment, when the knowledge demander cannot directly determine the target chain knowledge carrier data to be obtained according to his own knowledge demand, or when the target chain knowledge carrier data that meets the knowledge demand does not exist in the blockchain, the required knowledge carrier data can be obtained by sending announcement information through the request account. In the optional embodiment, the request account can be helped to accurately find the corresponding target chain knowledge carrier data in the blockchain according to the announcement information, thereby improving the efficiency of knowledge sharing. In addition, in the embodiment of the present invention, the field label data is determined for the source account according to the knowledge carrier data frequently uploaded by the source user, and the knowledge field that each source account is good at can be measured. When there is no target chain knowledge carrier data that meets the knowledge demand in the blockchain, the source account that is capable of providing the target chain knowledge carrier data can be confirmed according to the announcement information, so that the connection between the knowledge demander and the knowledge owner can be accurately established, so that various knowledge carriers can be efficiently transmitted between the knowledge owner and the knowledge demander, thereby realizing the efficient circulation of knowledge.
实施例三Embodiment 3
请参阅图3,图3是本发明实施例公开的一种基于区块链智能合约的知识共享装置的结构示意图。如图3所示,该基于区块链智能合约的知识共享装置可以包括:Please refer to Figure 3, which is a schematic diagram of the structure of a knowledge sharing device based on blockchain smart contracts disclosed in an embodiment of the present invention. As shown in Figure 3, the knowledge sharing device based on blockchain smart contracts may include:
写入模块301,用于获取第一来源账户上传的知识载体数据,根据预设的知识上链智能合约将知识载体数据写入区块链中,得到链上知识载体数据,并生成链上知识载体数据对应的标记信息,标记信息至少包括知识载体数据的来源账户信息;The writing module 301 is used to obtain the knowledge carrier data uploaded by the first source account, write the knowledge carrier data into the blockchain according to the preset knowledge on-chain smart contract, obtain the knowledge carrier data on the chain, and generate tag information corresponding to the knowledge carrier data on the chain, where the tag information at least includes the source account information of the knowledge carrier data;
获取模块302,用于获取请求账户发送的请求信息,请求信息用于请求输出区块链中的目标链上知识载体数据,请求信息至少包括发送请求信息的请求账户信息;An acquisition module 302 is used to acquire request information sent by a requesting account, where the request information is used to request the output of target chain knowledge carrier data in the blockchain, and the request information at least includes requesting account information that sends the request information;
输出模块303,用于当请求账户信息与来源账户信息一致时,则向请求账户输出目标链上知识载体数据;Output module 303, used to output the target chain knowledge carrier data to the requesting account when the requesting account information is consistent with the source account information;
输出模块303还用于,当请求账户信息与来源账户信息不一致时,则判断请求信息是否满足预设的知识共享智能合约中的数据输出条件,若判断出请求信息满足知识共享智能合约中的数据输出条件,则向请求账户输出目标链上知识载体数据。The output module 303 is also used to determine whether the request information meets the data output conditions in the preset knowledge sharing smart contract when the request account information is inconsistent with the source account information. If it is determined that the request information meets the data output conditions in the knowledge sharing smart contract, the knowledge carrier data on the target chain is output to the request account.
可见,实施图3所描述的装置能够基于区块链搭建知识共享平台,使各种知识载体能在知识的拥有者和知识的需求者之间高效传播,进而实现知识的高效流通。It can be seen that the implementation of the device described in FIG3 can build a knowledge sharing platform based on the blockchain, so that various knowledge carriers can be efficiently transmitted between knowledge owners and knowledge demanders, thereby realizing efficient circulation of knowledge.
在一个可选的实施例中,如图4所示,上述的请求信息还包括目标交易资源;In an optional embodiment, as shown in FIG4 , the request information further includes a target transaction resource;
该装置还包括定价模块304,定价模块304用于根据预设的知识定价智能合约,确定链上知识载体数据对应的需求交易资源的数量范围,数量范围至少包括最小数量阈值;The device also includes a pricing module 304, which is used to determine the quantity range of the demand transaction resources corresponding to the knowledge carrier data on the chain according to the preset knowledge pricing smart contract, and the quantity range at least includes a minimum quantity threshold;
以及,输出模块303判断请求信息是否满足预设的知识共享智能合约中的数据输出条件的具体方式包括:And, the specific manner in which the output module 303 determines whether the request information satisfies the data output conditions in the preset knowledge sharing smart contract includes:
判断目标交易资源的数量是否大于等于最小数量阈值;Determine whether the quantity of target transaction resources is greater than or equal to a minimum quantity threshold;
若目标交易资源的数量大于等于最小数量阈值,则确定请求信息满足预设的知识共享智能合约中的数据输出条件;If the quantity of the target transaction resources is greater than or equal to the minimum quantity threshold, it is determined that the request information meets the data output conditions in the preset knowledge sharing smart contract;
以及,该装置还包括:And, the device also includes:
反馈模块305,用于在输出模块303向请求账户输出目标链上知识载体数据之后,向目标链上知识载体数据对应的来源账户发送目标交易资源中的部分或全部交易资源;以及,根据目标链上知识载体数据对应的若干次历史请求信息中的目标交易资源的数量,根据知识定价智能合约,更新目标链上知识载体数据对应的需求交易资源的数量范围。Feedback module 305 is used to send part or all of the target transaction resources to the source account corresponding to the knowledge carrier data on the target chain after the output module 303 outputs the knowledge carrier data on the target chain to the requesting account; and, according to the quantity of target transaction resources in several historical request information corresponding to the knowledge carrier data on the target chain, update the quantity range of demand transaction resources corresponding to the knowledge carrier data on the target chain according to the knowledge pricing smart contract.
可见,实施图4所描述的装置,通过凭借交易资源来交易知识载体数据的方式,提高了来源账户上传知识载体数据的积极性,也能够通过请求账户自定义上传的目标交易资源的数量,来衡量请求账户对交易资源数量范围的认可度,此外,还能够利用请求账户自定义上传的目标交易资源的数量,来反馈调整目标知识载体数据对应的需求交易资源的数量范围,从而为目标知识载体数据提供合理的交易资源数量范围,最终实现知识的高效流通。It can be seen that the device described in Figure 4 improves the enthusiasm of source accounts to upload knowledge carrier data by relying on trading resources to trade knowledge carrier data. It can also measure the requesting account's recognition of the range of trading resource quantities by the number of target trading resources customized by the requesting account. In addition, it can also use the number of target trading resources customized by the requesting account to feedback and adjust the range of demand trading resources corresponding to the target knowledge carrier data, thereby providing a reasonable range of trading resource quantities for the target knowledge carrier data, and ultimately achieving efficient circulation of knowledge.
在另一个可选的实施例中,如图4所示,该写入模块301还用于:In another optional embodiment, as shown in FIG4 , the writing module 301 is further used for:
获取第二来源账户上传的衍生知识载体数据,根据知识上链智能合约将衍生知识载体数据写入区块链中,得到衍生链上知识载体数据,衍生知识载体数据通过修改至少一个原始链上知识载体数据的知识内容而获得;Obtain the derived knowledge carrier data uploaded by the second source account, write the derived knowledge carrier data into the blockchain according to the knowledge on-chain smart contract, and obtain the derived on-chain knowledge carrier data, where the derived knowledge carrier data is obtained by modifying the knowledge content of at least one original on-chain knowledge carrier data;
以及,该反馈模块305还用于:And, the feedback module 305 is also used for:
在输出模块303向请求账户输出目标链上知识载体数据之后,判断目标链上知识载体数据的数据类型是否为衍生类型;以及,当判断出目标链上知识载体数据的数据类型为衍生类型时,则根据目标交易资源,向目标链上知识载体数据对应的来源账户发送目标交易资源中的第一部分交易资源,向目标原始链上知识载体数据对应的来源账户发送目标交易资源中的第二部分交易资源,其中,目标原始链上知识载体数据为与该目标链上知识载体数据对应的原始链上知识载体数据;其中,第一部分交易资源和第二部分交易资源的数量之和不超过目标交易资源的数量。After the output module 303 outputs the target chain knowledge carrier data to the requesting account, it is determined whether the data type of the target chain knowledge carrier data is a derivative type; and when it is determined that the data type of the target chain knowledge carrier data is a derivative type, according to the target transaction resources, the first part of the transaction resources in the target transaction resources is sent to the source account corresponding to the target chain knowledge carrier data, and the second part of the transaction resources in the target transaction resources is sent to the source account corresponding to the target original chain knowledge carrier data, wherein the target original chain knowledge carrier data is the original chain knowledge carrier data corresponding to the target chain knowledge carrier data; wherein the sum of the quantity of the first part of the transaction resources and the second part of the transaction resources does not exceed the quantity of the target transaction resources.
可见,实施图4所描述的装置,对于改编自原始链上知识载体数据的衍生链上知识载体,能够记录其改编信息,并将目标交易资源进行合理分配,原始链上知识载体数据对应的来源账户也能获取对应的一部分交易资源,使得本发明实施例中的目标交易资源的分配过程更加合理,从而激励来源账户上传更优质的知识载体数据,实现知识的高效流通。It can be seen that the device described in Figure 4 can record the adaptation information of the derived on-chain knowledge carrier adapted from the original on-chain knowledge carrier data, and reasonably allocate the target transaction resources. The source account corresponding to the original on-chain knowledge carrier data can also obtain a corresponding part of the transaction resources, making the allocation process of the target transaction resources in the embodiment of the present invention more reasonable, thereby encouraging the source account to upload higher-quality knowledge carrier data and realize efficient circulation of knowledge.
在又一个可选的实施例中,如图4所示,写入模块301根据知识上链智能合约将衍生知识载体数据写入区块链中,得到衍生链上知识载体数据的具体方式包括:In another optional embodiment, as shown in FIG4 , the writing module 301 writes the derived knowledge carrier data into the blockchain according to the knowledge on-chain smart contract, and the specific method of obtaining the derived on-chain knowledge carrier data includes:
获取衍生知识载体数据与该衍生知识载体数据对应的每个原始链上知识载体数据之间的知识内容重复信息,知识内容重复信息用于表示衍生知识载体数据与原始链上知识载体数据之间的重复知识内容,其中,重复知识内容为衍生知识载体数据与原始链上知识载体数据之间相似度大于等于预设的相似度阈值的知识内容;Obtaining knowledge content duplication information between the derived knowledge carrier data and each original on-chain knowledge carrier data corresponding to the derived knowledge carrier data, wherein the knowledge content duplication information is used to indicate the repeated knowledge content between the derived knowledge carrier data and the original on-chain knowledge carrier data, wherein the repeated knowledge content is the knowledge content whose similarity between the derived knowledge carrier data and the original on-chain knowledge carrier data is greater than or equal to a preset similarity threshold;
根据衍生知识载体数据和所有知识内容重复信息确定衍生知识载体数据的改编参数;Determine the adaptation parameters of the derived knowledge carrier data according to the derived knowledge carrier data and all knowledge content duplication information;
判断改编参数是否大于等于预设的改编参数阈值,若改编参数大于改编参数阈值,则将衍生知识载体数据写入区块链中,得到衍生链上知识载体数据;Determine whether the adaptation parameter is greater than or equal to a preset adaptation parameter threshold. If the adaptation parameter is greater than the adaptation parameter threshold, write the derived knowledge carrier data into the blockchain to obtain the derived knowledge carrier data on the chain;
以及,定价模块304还用于在反馈模块305向目标原始链上知识载体数据对应的来源账户发送目标交易资源中的第二部分交易资源之前,对于目标链上知识载体数据对应的每一个目标原始链上知识载体数据,根据目标链上知识载体数据和该目标原始链上知识载体数据之间的知识内容重复信息,确定目标链上知识载体数据和该目标原始链上知识载体数据之间的相关度参数;根据相关度参数,确定该目标原始链上知识载体数据对应的第二部分交易资源的数量。In addition, the pricing module 304 is also used to determine the correlation parameter between the target chain knowledge carrier data and the target original chain knowledge carrier data for each target original chain knowledge carrier data corresponding to the target chain knowledge carrier data, based on the knowledge content repetition information between the target chain knowledge carrier data and the target original chain knowledge carrier data, before the feedback module 305 sends the second part of the transaction resources in the target transaction resources to the source account corresponding to the target original chain knowledge carrier data. According to the correlation parameter, determine the quantity of the second part of the transaction resources corresponding to the target original chain knowledge carrier data.
可见,实施图4所描述的装置能够筛选出符合原创要求的衍生链上知识载体数据,且能够基于衍生链上知识载体数据和原始链上知识载体数据之间的关联性确定需要给原始链上知识载体数据对应的来源账户分配的第二部分交易资源的数量,使得本发明实施例中的交易资源的分配方式更加合理公平,提高来源用户上传知识载体数据的积极性,实现知识的高效流通。It can be seen that the device described in FIG4 can screen out the derivative on-chain knowledge carrier data that meets the original requirements, and can determine the amount of the second part of transaction resources that need to be allocated to the source account corresponding to the original on-chain knowledge carrier data based on the correlation between the derivative on-chain knowledge carrier data and the original on-chain knowledge carrier data, so that the allocation method of transaction resources in the embodiment of the present invention is more reasonable and fair, and the enthusiasm of source users to upload knowledge carrier data is improved, so as to realize the efficient circulation of knowledge.
在又一个可选的实施例中,如图4所示,写入模块301获取衍生知识载体数据与该衍生知识载体数据对应的每个原始链上知识载体数据之间的知识内容重复信息的具体方式包括:In yet another optional embodiment, as shown in FIG4 , the specific manner in which the writing module 301 obtains the knowledge content duplication information between the derived knowledge carrier data and each original on-chain knowledge carrier data corresponding to the derived knowledge carrier data includes:
根据衍生知识载体数据确定衍生知识载体数据的语义特征,语义特征用于表示该衍生知识载体数据所表达的知识内容;Determining semantic features of the derived knowledge carrier data according to the derived knowledge carrier data, where the semantic features are used to represent the knowledge content expressed by the derived knowledge carrier data;
对于衍生知识载体数据对应的每一个原始链上知识载体数据,获取衍生知识载体数据与该原始链上知识载体数据之间的若干关联语义特征,关联语义特征用于表示衍生知识载体数据与该原始链上知识载体数据之间的重复知识内容;根据每个关联语义特征和语义特征,确定每个关联语义特征对应的权重值;根据每个关联语义特征和该关联语义特征对应的权重值,确定衍生知识载体数据与该原始链上知识载体数据之间的知识内容重复信息。For each original on-chain knowledge carrier data corresponding to the derived knowledge carrier data, a number of associated semantic features between the derived knowledge carrier data and the original on-chain knowledge carrier data are obtained, and the associated semantic features are used to represent the repeated knowledge content between the derived knowledge carrier data and the original on-chain knowledge carrier data; according to each associated semantic feature and the semantic feature, the weight value corresponding to each associated semantic feature is determined; according to each associated semantic feature and the weight value corresponding to the associated semantic feature, the knowledge content repetition information between the derived knowledge carrier data and the original on-chain knowledge carrier data is determined.
可见,实施图4所描述的装置,能够根据衍生知识载体数据与原始链上知识载体数据之间的重复知识内容的重要程度来确定最终的知识内容重复信息,使得知识内容重复信息的确定过程更具合理性,使得本发明实施例中的交易资源的分配方式更加合理公平,提高来源用户上传知识载体数据的积极性,实现知识的高效流通。It can be seen that the device described in Figure 4 can determine the final knowledge content duplication information based on the importance of the duplicate knowledge content between the derived knowledge carrier data and the original knowledge carrier data on the chain, making the determination process of the knowledge content duplication information more reasonable, making the allocation method of transaction resources in the embodiment of the present invention more reasonable and fair, thereby increasing the enthusiasm of source users to upload knowledge carrier data and realizing efficient circulation of knowledge.
在又一个可选的实施例中,如图4所示,知识载体数据包括知识载体内容数据和第一标签数据;In yet another optional embodiment, as shown in FIG4 , the knowledge carrier data includes knowledge carrier content data and first tag data;
以及,写入模块301根据预设的知识上链智能合约将知识载体数据写入区块链中,得到链上知识载体数据的具体方式包括:Furthermore, the writing module 301 writes the knowledge carrier data into the blockchain according to the preset knowledge on-chain smart contract. The specific method of obtaining the knowledge carrier data on the chain includes:
根据知识载体内容数据,生成关键词,根据关键词确定知识载体数据的第二标签数据,第一标签数据和第二标签数据用于指示知识载体数据所需写入的目标数据块;Generate keywords according to the knowledge carrier content data, determine second tag data of the knowledge carrier data according to the keywords, and the first tag data and the second tag data are used to indicate the target data block to be written into the knowledge carrier data;
根据第一标签数据和第二标签数据,将知识载体数据写入对应的目标数据块中,得到链上知识载体数据;According to the first tag data and the second tag data, the knowledge carrier data is written into the corresponding target data block to obtain the knowledge carrier data on the chain;
其中,区块链中包括若干目标数据块,每一目标数据块用于存储对应类别的知识载体数据。Among them, the blockchain includes several target data blocks, each of which is used to store knowledge carrier data of the corresponding category.
可见,实施图4所描述的装置,能够基于区块链智能合约搭建一个更加高效的知识共享平台,能够实现对知识载体数据进行更加准确而全面的分类,使各种知识载体能在知识的拥有者和知识的需求者之间高效传播,进而实现知识的高效流通。It can be seen that the implementation of the device described in Figure 4 can build a more efficient knowledge sharing platform based on blockchain smart contracts, which can achieve more accurate and comprehensive classification of knowledge carrier data, so that various knowledge carriers can be efficiently transmitted between knowledge owners and knowledge demanders, thereby realizing efficient circulation of knowledge.
在又一个可选的实施例中,如图4所示,反馈模块305还用于在输出模块303向请求账户输出目标链上知识载体数据之后,获取请求账户上传的反馈信息,反馈信息包括评价信息和/或修正信息;以及,当反馈信息包括评价信息时,根据预设的知识评价智能合约判断评价信息是否满足预设的评价条件,若评价信息满足预设的评价条件,则向请求账户发送预设的第一奖励交易资源,根据评价信息生成目标链上知识载体数据的评价结果;以及,当反馈信息包括修正信息时,将修正信息发送给目标链上知识载体数据对应的来源账户,若获取到来源账户的确认修正信息,则根据修正信息修正目标链上知识载体数据,并向请求账户发送预设的第二奖励交易资源;In another optional embodiment, as shown in FIG4 , the feedback module 305 is further used to obtain feedback information uploaded by the requesting account after the output module 303 outputs the knowledge carrier data on the target chain to the requesting account, the feedback information including evaluation information and/or correction information; and, when the feedback information includes evaluation information, judging whether the evaluation information meets the preset evaluation conditions according to the preset knowledge evaluation smart contract, if the evaluation information meets the preset evaluation conditions, sending the preset first reward transaction resource to the requesting account, and generating the evaluation result of the knowledge carrier data on the target chain according to the evaluation information; and, when the feedback information includes correction information, sending the correction information to the source account corresponding to the knowledge carrier data on the target chain, if the confirmation correction information of the source account is obtained, correcting the knowledge carrier data on the target chain according to the correction information, and sending the preset second reward transaction resource to the requesting account;
其中,反馈模块305根据预设的知识评价智能合约判断评价信息是否满足预设的评价条件的具体方式包括:The specific manner in which the feedback module 305 determines whether the evaluation information meets the preset evaluation conditions according to the preset knowledge evaluation smart contract includes:
根据知识评价智能合约,提取评价信息中的情绪关键词,情绪关键词用于表示评价信息中带有主观情绪表达的信息,根据评价信息和该评价信息中的情绪关键词,确定评价信息的主观程度参数,若主观程度参数小于预设的主观程度参数阈值,则确定评价信息满足预设的评价条件。According to the knowledge evaluation smart contract, emotional keywords are extracted from the evaluation information. Emotional keywords are used to represent information with subjective emotional expression in the evaluation information. According to the evaluation information and the emotional keywords in the evaluation information, the subjective degree parameter of the evaluation information is determined. If the subjective degree parameter is less than the preset subjective degree parameter threshold, it is determined that the evaluation information meets the preset evaluation conditions.
可见,实施图4所描述的装置能够为请求账户提供反馈渠道,从而使请求账户对获取到的目标知识载体数据进行评价或进行修正完善。此外,为了确保请求用户的评价信息的客观性,该可选的实施例中,通过对评价信息中的情绪关键词进行提取和处理,以判断该评价信息是否是客观的,而非由于主观情绪进行的不公正评价甚至恶意评价。因此,该可选的实施例能够为请求账户提供反馈渠道,进一步完善链上知识载体数据的维护,实现知识的高效流通。It can be seen that the device described in FIG4 can provide a feedback channel for the requesting account, so that the requesting account can evaluate or correct the acquired target knowledge carrier data. In addition, in order to ensure the objectivity of the evaluation information of the requesting user, in this optional embodiment, the emotional keywords in the evaluation information are extracted and processed to determine whether the evaluation information is objective, rather than an unfair or even malicious evaluation due to subjective emotions. Therefore, this optional embodiment can provide a feedback channel for the requesting account, further improve the maintenance of the knowledge carrier data on the chain, and realize the efficient circulation of knowledge.
在又一个可选的实施例中,如图4所示,写入模块301还用于在得到链上知识载体数据之后,对于每一个第一来源账户,根据该第一来源账户上传的所有知识载体数据的第一标签数据和第二标签数据,确定该第一来源账户对应的领域标签数据,领域标签数据用于表示该第一来源账户对应的知识领域;In another optional embodiment, as shown in FIG4 , the writing module 301 is further used to determine, for each first source account, domain label data corresponding to the first source account according to the first label data and the second label data of all knowledge carrier data uploaded by the first source account after obtaining the on-chain knowledge carrier data, where the domain label data is used to indicate the knowledge domain corresponding to the first source account;
以及,装置还包括匹配模块306,匹配模块306用于获取索求账户发送的公告信息和第三奖励交易资源,公告信息用于描述索求账户需要获取的知识内容;And, the apparatus further includes a matching module 306, the matching module 306 is used to obtain the announcement information sent by the requesting account and the third reward transaction resource, the announcement information is used to describe the knowledge content that the requesting account needs to obtain;
根据公告信息,确定公告信息对应的索引标签数据,索引标签数据用于与第一标签数据、第二标签数据及领域标签数据进行匹配;According to the announcement information, determine the index label data corresponding to the announcement information, where the index label data is used to match the first label data, the second label data, and the domain label data;
判断区块链中是否存在匹配链上知识载体数据,其中,匹配链上知识载体数据的第一标签数据和第二标签数据与索引标签数据之间的匹配度大于等于预设的匹配度阈值;Determine whether there is matching on-chain knowledge carrier data in the blockchain, wherein the matching degree between the first label data and the second label data of the matching on-chain knowledge carrier data and the index label data is greater than or equal to a preset matching degree threshold;
若判断出区块链中存在匹配链上知识载体数据,则发送匹配链上知识载体数据至索求账户,若获取到索求账户发送的确认信息,则向匹配链上知识载体数据对应的来源账户发送第三奖励交易资源中的全部或部分交易资源;If it is determined that there is a matching on-chain knowledge carrier data in the blockchain, the matching on-chain knowledge carrier data is sent to the requesting account. If the confirmation information sent by the requesting account is obtained, all or part of the third reward transaction resources are sent to the source account corresponding to the matching on-chain knowledge carrier data;
若判断出区块链中不存在匹配链上知识载体数据,则向所有目标第一来源账户发送公告信息,其中,目标第一来源账户对应的领域标签数据与索引标签数据之间的匹配度大于等于预设的匹配度阈值;If it is determined that there is no matching on-chain knowledge carrier data in the blockchain, an announcement message is sent to all target first source accounts, where the matching degree between the domain label data and the index label data corresponding to the target first source account is greater than or equal to a preset matching degree threshold;
获取目标第一来源账户上传的匹配知识载体数据,发送所有匹配知识载体数据至索求账户,若获取到索求账户针对所有匹配知识载体数据中的目标匹配知识载体数据发送的确认信息,则向目标匹配知识载体数据对应的来源账户发送第三奖励交易资源中的全部或部分交易资源。Obtain the matching knowledge carrier data uploaded by the target first source account, send all the matching knowledge carrier data to the requesting account, and if the confirmation information sent by the requesting account for the target matching knowledge carrier data among all the matching knowledge carrier data is obtained, then send all or part of the transaction resources in the third reward transaction resource to the source account corresponding to the target matching knowledge carrier data.
可见,实施图4所描述的装置,当知识的需求者根据自己的知识需求无法直接确定要获取的目标链上知识载体数据,或者区块链中不存在符合知识需求的目标链上知识载体数据时,可以通过索求账户发送公告信息的方式来获取需要的知识载体数据。在可选的实施例中,可以根据公告信息帮助索求账户在区块链中准确的查找到对应的目标链上知识载体数据,提高了知识共享的效率,另外,本发明实施例中根据来源用户经常上传的知识载体数据为来源账户确定领域标签数据,可以衡量每个来源账户所擅长的知识领域,当区块链中不存在符合知识需求的目标链上知识载体数据时,能够根据公告信息确认出有能力提供该目标链上知识载体数据的来源账户,从而能够准确的在知识的需求者和知识的拥有者之间建立联系,使各种知识载体能在知识的拥有者和知识的需求者之间高效传播,进而实现知识的高效流通。It can be seen that, when the device described in FIG. 4 is implemented, when the knowledge demander cannot directly determine the target chain knowledge carrier data to be obtained according to his own knowledge demand, or when the target chain knowledge carrier data that meets the knowledge demand does not exist in the blockchain, the required knowledge carrier data can be obtained by sending announcement information from the requesting account. In an optional embodiment, the requesting account can be helped to accurately find the corresponding target chain knowledge carrier data in the blockchain according to the announcement information, thereby improving the efficiency of knowledge sharing. In addition, in the embodiment of the present invention, the field label data is determined for the source account according to the knowledge carrier data frequently uploaded by the source user, and the knowledge field that each source account is good at can be measured. When the target chain knowledge carrier data that meets the knowledge demand does not exist in the blockchain, the source account that is capable of providing the target chain knowledge carrier data can be confirmed according to the announcement information, so that the connection between the knowledge demander and the knowledge owner can be accurately established, so that various knowledge carriers can be efficiently transmitted between the knowledge owner and the knowledge demander, thereby realizing the efficient circulation of knowledge.
实施例四Embodiment 4
请参阅图5,图5是本发明实施例公开的又一种基于区块链智能合约的知识共享装置的结构示意图。如图5所示,该基于区块链智能合约的知识共享装置可以包括:Please refer to Figure 5, which is a schematic diagram of the structure of another knowledge sharing device based on blockchain smart contracts disclosed in an embodiment of the present invention. As shown in Figure 5, the knowledge sharing device based on blockchain smart contracts may include:
存储有可执行程序代码的存储器401;A memory 401 storing executable program codes;
与存储器401耦合的处理器402;a processor 402 coupled to the memory 401;
处理器402调用存储器401中存储的可执行程序代码,执行本发明实施例一或本发明实施例二所描述的基于区块链智能合约的知识共享方法中的步骤。The processor 402 calls the executable program code stored in the memory 401 to execute the steps in the knowledge sharing method based on the blockchain smart contract described in the first embodiment of the present invention or the second embodiment of the present invention.
实施例五Embodiment 5
本发明实施例公开了一种计算机可存储介质,该计算机存储介质存储有计算机指令,该计算机指令被调用时,用于执行本发明实施例一或本发明实施例二所描述的基于区块链智能合约的知识共享方法中的步骤。An embodiment of the present invention discloses a computer storable medium, which stores computer instructions. When the computer instructions are called, they are used to execute the steps of the knowledge sharing method based on blockchain smart contracts described in Embodiment 1 or Embodiment 2 of the present invention.
实施例六Embodiment 6
本发明实施例公开了一种计算机程序产品,该计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,且该计算机程序可操作来使计算机执行实施例一或实施例二中所描述的基于区块链智能合约的知识共享方法中的步骤。An embodiment of the present invention discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable a computer to execute the steps of the knowledge sharing method based on blockchain smart contracts described in Example 1 or Example 2.
以上所描述的装置实施例仅是示意性的,其中所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are only illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative work.
通过以上的实施例的具体描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,存储介质包括只读存储器(Read-Only Memory,ROM)、随机存储器(Random Access Memory,RAM)、可编程只读存储器(Programmable Read-only Memory,PROM)、可擦除可编程只读存储器(ErasableProgrammable Read Only Memory,EPROM)、一次可编程只读存储器(One-timeProgrammable Read-Only Memory,OTPROM)、电子抹除式可复写只读存储器(Electrically-Erasable Programmable Read-Only Memory,EEPROM)、只读光盘(CompactDisc Read-Only Memory,CD-ROM)或其他光盘存储器、磁盘存储器、磁带存储器、或者能够用于携带或存储数据的计算机可读的任何其他介质。Through the specific description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on such an understanding, the above technical solution can be essentially or partly contributed to the prior art in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable programmable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
最后应说明的是:本发明实施例公开的一种基于区块链智能合约的知识共享方法及装置、存储介质所揭露的仅为本发明较佳实施例而已,仅用于说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解;其依然可以对前述各项实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或替换,并不使相应的技术方案的本质脱离本发明各项实施例技术方案的精神和范围。Finally, it should be noted that the knowledge sharing method, device, and storage medium based on blockchain smart contracts disclosed in the embodiments of the present invention are only preferred embodiments of the present invention, and are only used to illustrate the technical solution of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, it should be understood by those skilled in the art that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features therein may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410445020.3A CN118051489B (en) | 2024-04-15 | 2024-04-15 | Knowledge sharing method and device based on blockchain smart contract, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410445020.3A CN118051489B (en) | 2024-04-15 | 2024-04-15 | Knowledge sharing method and device based on blockchain smart contract, and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN118051489A true CN118051489A (en) | 2024-05-17 |
CN118051489B CN118051489B (en) | 2024-07-05 |
Family
ID=91054025
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410445020.3A Active CN118051489B (en) | 2024-04-15 | 2024-04-15 | Knowledge sharing method and device based on blockchain smart contract, and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118051489B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109299943A (en) * | 2018-10-16 | 2019-02-01 | 深圳市乘法信息技术有限公司 | A kind of method and device of the intellectual property transaction based on block chain |
CN110335147A (en) * | 2019-05-29 | 2019-10-15 | 西安电子科技大学 | A blockchain-based digital asset information exchange system and method |
CN113141782A (en) * | 2018-10-09 | 2021-07-20 | 电子湾有限公司 | Storing and validating derivative work data on blockchains with original work data |
CN115391751A (en) * | 2022-10-31 | 2022-11-25 | 知安视娱(北京)科技有限公司 | Infringement determination method |
-
2024
- 2024-04-15 CN CN202410445020.3A patent/CN118051489B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113141782A (en) * | 2018-10-09 | 2021-07-20 | 电子湾有限公司 | Storing and validating derivative work data on blockchains with original work data |
CN109299943A (en) * | 2018-10-16 | 2019-02-01 | 深圳市乘法信息技术有限公司 | A kind of method and device of the intellectual property transaction based on block chain |
CN110335147A (en) * | 2019-05-29 | 2019-10-15 | 西安电子科技大学 | A blockchain-based digital asset information exchange system and method |
CN115391751A (en) * | 2022-10-31 | 2022-11-25 | 知安视娱(北京)科技有限公司 | Infringement determination method |
Non-Patent Citations (1)
Title |
---|
张晋瑞;杨敏;孟庆树;肖健;王浩宇;: "基于区块链的经验知识生产系统", 武汉大学学报(理学版), vol. 66, no. 02, 24 April 2020 (2020-04-24) * |
Also Published As
Publication number | Publication date |
---|---|
CN118051489B (en) | 2024-07-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2022252363A1 (en) | Data processing method, computer device and readable storage medium | |
CN104866969A (en) | Personal credit data processing method and device | |
CN112184302A (en) | Product recommendation method and device, rule engine and storage medium | |
CN113706211B (en) | Advertisement click rate prediction method and system based on neural network | |
CN103546517A (en) | Network information push system and method | |
CN112215448A (en) | Method and device for distributing customer service | |
CN114065051A (en) | Private domain platform video recommendation method and device, electronic equipment and medium | |
Stahl et al. | Name your own price on data marketplaces | |
CN110348922B (en) | Method and apparatus for generating information | |
CN118051489B (en) | Knowledge sharing method and device based on blockchain smart contract, and storage medium | |
CN114897178A (en) | A data contribution incentive method and device supporting machine learning model training | |
CN111563817A (en) | Recording medium, communication device, and communication method | |
CN113051413A (en) | Multimedia information processing method and device, electronic equipment and storage medium | |
CN109150757A (en) | A kind of advertising resource processing method, device and electronic equipment | |
JP2002015043A (en) | Method for providing fresh fish distribution support information and device for providing fresh fish distribution support information | |
WO2010146608A1 (en) | System and method for managing advertising campaigns | |
CN117611061A (en) | Intelligent purchasing system based on big data | |
CN115936764A (en) | Product promotion method and device | |
CN112785324B (en) | Information processing method, information processing apparatus, electronic device, and medium | |
CN109033343B (en) | Method and apparatus for generating information | |
WO2015002879A1 (en) | Generating a simulted invoice | |
CN117332003B (en) | Data interaction method in SaaS mode, data engine system and application | |
CN118972496B (en) | An intelligent IP phone outbound call cloud system and method | |
US20220382775A1 (en) | Employee compensation manager | |
US20250045773A1 (en) | Systems and methods for monitoring individual carbon emissions |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |