CN118051489B - 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 PDF

Info

Publication number
CN118051489B
CN118051489B CN202410445020.3A CN202410445020A CN118051489B CN 118051489 B CN118051489 B CN 118051489B CN 202410445020 A CN202410445020 A CN 202410445020A CN 118051489 B CN118051489 B CN 118051489B
Authority
CN
China
Prior art keywords
knowledge
carrier data
chain
target
data
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.)
Active
Application number
CN202410445020.3A
Other languages
Chinese (zh)
Other versions
CN118051489A (en
Inventor
吴英华
林成创
柯清建
檀童和
陈跃鹏
王祺
赵英杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Planning and Designing Institute of Telecommunications Co Ltd
Original Assignee
Guangdong Planning and Designing Institute of Telecommunications Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Planning and Designing Institute of Telecommunications Co Ltd filed Critical Guangdong Planning and Designing Institute of Telecommunications Co Ltd
Priority to CN202410445020.3A priority Critical patent/CN118051489B/en
Publication of CN118051489A publication Critical patent/CN118051489A/en
Application granted granted Critical
Publication of CN118051489B publication Critical patent/CN118051489B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a knowledge sharing method and device based on a blockchain intelligent contract and a storage medium, and relates to the technical field of blockchains, wherein the method comprises the following steps: acquiring knowledge carrier data uploaded by a first source account, and writing the knowledge carrier data into a blockchain according to a preset knowledge uplink intelligent contract to obtain the knowledge carrier data on the chain; acquiring request information sent by a request account, and outputting knowledge carrier data on a target chain to the request account if the request account information is consistent with source account information; and if the request account information is inconsistent with the source account information, outputting the knowledge carrier data on the target chain to the request account if the request information is judged to meet the data output condition in the knowledge sharing intelligent contract. Therefore, the knowledge sharing platform can be built based on the block chain, so that various knowledge carriers can be efficiently transmitted between the knowledge owners and the knowledge requesters, and further, the efficient circulation of the knowledge is realized.

Description

Knowledge sharing method and device based on blockchain intelligent contract and storage medium
Technical Field
The invention relates to the technical field of blockchain, in particular to a knowledge sharing method and device based on a blockchain intelligent contract and a storage medium.
Background
In large organizations with internal competition, external collaboration, there is both an internal competition relationship and an external collaboration relationship between different sub-organizations (e.g., different sub-organizations within a large enterprise). In large enterprises, each sub-organization generates a variety of knowledge during the work, which is recorded by different carriers. However, the power for sharing knowledge among different sub-organizations of the same enterprise is very small, and the efficiency is low by pushing the knowledge sharing by means of administration. Thus, from the perspective of an enterprise organization, knowledge of the enterprise is dispersed among various different sub-organizations, and it is difficult to achieve convergence of knowledge and efficient sharing of knowledge among different organizations. Therefore, a new knowledge sharing method is provided, so that various knowledge carriers can be timely transmitted between knowledge owners and knowledge requesters, and further efficient circulation of knowledge is realized, which is one of the problems to be solved in the process of knowledge sharing.
Disclosure of Invention
The invention provides a knowledge sharing method and device based on a blockchain intelligent contract, and a storage medium.
In order to solve the technical problem, the first aspect of the present invention discloses a knowledge sharing method based on a blockchain intelligent contract, the method comprising:
Acquiring knowledge carrier data uploaded by a first source account, writing the knowledge carrier data into a blockchain according to a preset knowledge uplink intelligent contract to obtain on-chain knowledge carrier data, and generating marking information corresponding to the on-chain knowledge carrier data, wherein the marking information at least comprises source account information of the knowledge carrier data;
Acquiring request information sent by a request account, wherein the request information is used for requesting to output knowledge carrier data on a target chain in the blockchain, and the request information at least comprises request account information for sending the request information;
if the request account information is consistent with the source account information, outputting knowledge carrier data on the target chain to the request account;
If the request account information is inconsistent with the source account information, judging whether the request information meets the data output conditions in the preset knowledge sharing intelligent contract, and if the request information meets the data output conditions in the knowledge sharing intelligent contract, outputting the knowledge carrier data on the target chain to the request account.
The second aspect of the invention discloses a knowledge sharing device based on a blockchain intelligent contract, which comprises:
The writing module is used for acquiring the knowledge carrier data uploaded by the first source account, writing the knowledge carrier data into the blockchain according to a preset knowledge uplink intelligent contract to obtain on-chain knowledge carrier data, and generating marking information corresponding to the on-chain knowledge carrier data, wherein the marking information at least comprises source account information of the knowledge carrier data;
The system comprises an acquisition module, a request account and a storage module, wherein the acquisition module is used for acquiring request information sent by a request account, the request information is used for requesting to output knowledge carrier data on a target chain in the blockchain, and the request information at least comprises request account information for sending the request information;
the output module is used for outputting the knowledge carrier data on the target chain to the request account when the request account information is consistent with the source account information;
The output module is further configured to determine whether the request information meets a data output condition in a preset knowledge sharing intelligent contract when the request account information is inconsistent with the source account information, and if it is determined that the request information meets the data output condition in the knowledge sharing intelligent contract, output the knowledge carrier data on the target chain 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 further comprises a pricing module, wherein the pricing module is used for determining the quantity range of the demand transaction resources corresponding to the on-chain knowledge carrier data according to a preset knowledge pricing intelligent contract, and the quantity range at least comprises a minimum quantity threshold;
and the specific mode of judging whether the request information meets the data output condition in the preset knowledge sharing intelligent contract by the output module comprises the following steps:
Judging whether the number of the target transaction resources is larger than or equal to the minimum number threshold;
if the number of the target transaction resources is greater than or equal to the minimum number threshold, determining that the request information meets the data output condition in the preset knowledge sharing intelligent contract;
And, the apparatus further comprises:
The feedback module is used for sending 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 updating the range of the number of the required transaction resources corresponding to the knowledge carrier data on the target chain according to the knowledge pricing intelligent contract according to the number of the target transaction resources in the historical request information corresponding to the knowledge carrier data on the target chain.
As an alternative embodiment, in the second aspect of the present invention, the writing module is further configured to:
Obtaining derivative knowledge carrier data uploaded by a second source account, writing the derivative knowledge carrier data into a blockchain according to the knowledge uplink intelligent contract to obtain derivative knowledge carrier data on the chain, wherein the derivative knowledge carrier data is obtained by modifying knowledge content of at least one original knowledge carrier data on the chain;
And, the feedback module is further configured to:
After the output module outputs the knowledge carrier data on the target chain to the request account, judging whether the data type of the knowledge carrier data on the target chain is a derivative type or not; when the data type of the knowledge carrier data on the target chain is judged to be the derivative type, according to the target transaction resources, a first part of transaction resources in the target transaction resources are sent to a source account corresponding to the knowledge carrier data on the target chain, and a second part of transaction resources in the target transaction resources are sent to a 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; wherein the sum of the amounts of the first portion of transaction resources and the second portion of transaction resources does not exceed the amount of the target transaction resources.
As an optional implementation manner, in the second aspect of the present invention, the writing module writes the derivative knowledge carrier data into a blockchain according to the knowledge uplink smart contract, and a specific manner of obtaining the knowledge carrier data on the derivative chain includes:
Acquiring knowledge content repetition information between the derivative knowledge carrier data and knowledge carrier data on each original chain corresponding to the derivative knowledge carrier data, wherein the knowledge content repetition information is used for representing repeated knowledge content between the derivative knowledge carrier data and the knowledge carrier data on the original chain, and the repeated knowledge content is the knowledge content of which the similarity between the derivative knowledge carrier data and the knowledge carrier data on the original chain 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 repetition information;
Judging whether the recomposition parameter is larger than or equal to a preset recomposition parameter threshold value, and if the recomposition parameter is larger than or equal to the recomposition parameter threshold value, writing the derivative knowledge carrier data into a blockchain to obtain the knowledge carrier data on the derivative chain;
the pricing module is further configured to determine, for each piece of target raw on-chain knowledge carrier data corresponding to the target on-chain knowledge carrier data, a correlation parameter between the target on-chain knowledge carrier data and the target raw on-chain knowledge carrier data according to knowledge content repetition information between the target on-chain knowledge carrier data and the target raw on-chain knowledge carrier data before the feedback module sends the second portion of the transaction resources to a source account corresponding to the target raw on-chain knowledge carrier data; and determining the quantity of the second part of transaction resources corresponding to the knowledge carrier data on the target original chain according to the correlation parameter.
As an optional implementation manner, in the second aspect of the present invention, a specific manner of acquiring knowledge content repetition information between the derivative knowledge carrier data and each piece of original on-chain knowledge carrier data corresponding to the derivative knowledge carrier data by the writing module includes:
Determining semantic features of the derivative knowledge carrier data according to the derivative knowledge carrier data, wherein the semantic features are used for representing knowledge content expressed by the derivative knowledge carrier data;
For each piece of original on-chain knowledge carrier data corresponding to the derivative knowledge carrier data, acquiring a plurality of associated semantic features between the derivative knowledge carrier data and the original on-chain knowledge carrier data, wherein the associated semantic features are used for representing repeated knowledge content between the derivative knowledge carrier data and the original on-chain knowledge carrier data; according to each associated semantic feature and the semantic feature, determining a weight value corresponding to each associated semantic feature; and determining knowledge content repetition information between the derivative knowledge carrier data and the knowledge carrier data on the original chain according to each associated semantic feature and the weight value corresponding to the associated semantic feature.
As an alternative embodiment, in the second aspect of the present invention, the knowledge carrier data comprises knowledge carrier content data and first tag data;
and the writing module writes the knowledge carrier data into the blockchain according to a preset knowledge uplink intelligent contract, and the specific mode for obtaining the knowledge carrier data on the chain comprises the following steps:
Generating a keyword according to the knowledge carrier content data, determining second tag data of the knowledge carrier data according to the keyword, wherein the first tag data and the second tag data are used for indicating a target data block to which the knowledge carrier data need to be written;
writing the knowledge carrier data into the corresponding target data block according to the first tag data and the second tag data to obtain the on-chain knowledge carrier data;
The block chain comprises a plurality of target data blocks, and each target data block is used for storing knowledge carrier data of a corresponding category.
As an optional implementation manner, in the second aspect of the present invention, the feedback module is further configured to obtain feedback information uploaded by the request account after the output module outputs the knowledge carrier data on the target chain to the request account, where the feedback information includes evaluation information and/or correction information; when the feedback information comprises the evaluation information, judging whether the evaluation information meets a preset evaluation condition according to a preset knowledge evaluation intelligent contract, if the evaluation information meets the preset evaluation condition, sending a preset first rewarding transaction resource to the request account, and generating an evaluation result of the knowledge carrier data on the target chain according to the evaluation information; when the feedback information comprises the correction information, the correction information is sent to a 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 a preset second rewarding transaction resource is sent to the request account;
The specific mode that the feedback module judges whether the evaluation information meets the preset evaluation condition according to the preset knowledge evaluation intelligent contract comprises the following steps:
Extracting emotion keywords in the evaluation information according to the knowledge evaluation intelligent contract, wherein the emotion keywords are used for representing information with subjective emotion expression in the evaluation information, determining subjective degree parameters of the evaluation information according to the evaluation information and the emotion keywords in the evaluation information, and determining that the evaluation information meets preset evaluation conditions if the subjective degree parameters are smaller than a preset subjective degree parameter threshold.
As an optional implementation manner, in the second aspect of the present invention, the writing module is further configured to determine, for each of the first source accounts, domain 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, where the domain label data is used to represent a knowledge domain corresponding to the first source account;
The device also comprises a matching module, wherein the matching module is used for acquiring the advertising information and the third rewarding transaction resource sent by the solicited account, and the advertising information is used for describing the knowledge content required to be acquired by the solicited account;
According to the bulletin information, index tag data corresponding to the bulletin information is determined, wherein the index tag data is used for matching with the first tag data, the second tag data and the field tag data;
Judging whether knowledge carrier data on a matching chain exists in the blockchain, wherein the matching degree between the first tag data and the second tag data of the knowledge carrier data on the matching chain and the index tag data is larger than or equal to a preset matching degree threshold value;
if the knowledge carrier data on the matching chain exists in the blockchain, the knowledge carrier data on the matching chain is sent to the solicited account, and if the confirmation information sent by the solicited account is obtained, all or part of transaction resources in the third rewarded transaction resource are sent to a source account corresponding to the knowledge carrier data on the matching chain;
If the fact that the knowledge carrier data on the matching chain does not exist in the blockchain is judged, the notice information is sent to all target first source accounts, wherein the matching degree between the domain label data corresponding to the target first source accounts and the index label data is larger than or equal to the matching degree threshold value;
and acquiring the matched knowledge carrier data uploaded by the target first source account, transmitting all the matched knowledge carrier data to the solicited account, and if the solicited account acquires the confirmation information transmitted by aiming at the target matched knowledge carrier data in all the matched knowledge carrier data, transmitting all or part of the third reward transaction resources to the source account corresponding to the target matched knowledge carrier data.
The third aspect of the invention discloses another knowledge sharing device based on a blockchain intelligent contract, which comprises:
A memory storing executable program code;
A processor coupled to the memory;
the processor invokes the executable program code stored in the memory to perform the blockchain smart contract-based knowledge sharing method disclosed in the first aspect of the present invention.
A fourth aspect of the invention discloses a computer-readable medium storing computer instructions that, when invoked, are operable to perform the blockchain smart contract-based knowledge sharing method disclosed in the first aspect of the invention.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
In the embodiment of the invention, knowledge carrier data uploaded by a first source account is acquired, the knowledge carrier data is written into a blockchain according to a preset knowledge uplink intelligent contract to obtain the on-chain knowledge carrier data, mark information corresponding to the on-chain knowledge carrier data is generated, request information sent by a request account is acquired, and the request information at least comprises request account information for sending the request information; if the request account information is consistent with the source account information, outputting knowledge carrier data on a target chain to the request account; if the request account information is inconsistent with the source account information, judging whether the request information meets the data output conditions in the preset knowledge sharing intelligent contract, and if the request information meets the data output conditions in the knowledge sharing intelligent contract, outputting the knowledge carrier data on the target chain to the request account. Therefore, by implementing the method and the system, a more efficient knowledge sharing platform can be built based on the blockchain intelligent contract, so that various knowledge carriers can be efficiently transmitted between the knowledge owners and the knowledge requesters, and further, the efficient circulation of the knowledge is realized.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow diagram of a knowledge sharing method based on blockchain smartcontracts in accordance with an embodiment of the present invention;
FIG. 2 is a flow chart of another knowledge sharing method based on blockchain smartcontracts in accordance with an embodiment of the invention;
FIG. 3 is a schematic diagram of a knowledge sharing device based on a blockchain smart contract according to an embodiment of the invention;
FIG. 4 is a schematic diagram of another knowledge sharing device based on blockchain intelligence contracts according to an embodiment of the invention;
FIG. 5 is a schematic diagram of a knowledge sharing apparatus based on blockchain intelligence contracts according to an embodiment of the invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terms first, second and the like in the description and in the claims and in the above-described figures are used for distinguishing between different objects and not necessarily for describing a sequential or chronological order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, apparatus, article, or article that comprises a list of steps or elements is not limited to only those listed but may optionally include other steps or elements not listed or inherent to such process, method, article, or article.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the invention. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
The invention discloses a knowledge sharing method and device based on a blockchain intelligent contract, and a storage medium. The following will describe in detail.
Example 1
Referring to fig. 1, fig. 1 is a flow chart of a knowledge sharing method based on a blockchain intelligent contract according to an embodiment of the invention. The knowledge sharing method based on the blockchain intelligent contract described in fig. 1 may be applied to a knowledge sharing device based on the blockchain intelligent contract, and the knowledge sharing device based on the blockchain intelligent contract may 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 fig. 1, the blockchain-based smart contract knowledge sharing method may include the following operations:
101. And acquiring knowledge carrier data uploaded by the first source account, writing the knowledge carrier data into the blockchain according to a preset knowledge uplink intelligent contract to obtain the knowledge carrier data on the chain, and generating marking information corresponding to the knowledge carrier data on the chain.
In the embodiment of the present invention, the tag information includes at least information of a source account of the knowledge carrier data.
In the embodiment of the invention, optionally, the knowledge carrier data may be any form of data containing knowledge content such as text, video, voice and pictures, the first source account may be any account or an account with preset authority, the knowledge carrier data is written into the blockchain according to the knowledge uplink intelligent contract to obtain the on-chain knowledge carrier data, and then the source account information of each knowledge carrier data is recorded by the marking information, so that the source account of each on-chain knowledge carrier data can be traced. Therefore, the embodiment of the invention firstly builds a knowledge sharing platform based on the intelligent contracts of the block chain, and simultaneously, the knowledge carrier data is automatically written into the block chain through the intelligent contracts of the knowledge uplink after the knowledge carrier data are acquired each time based on the technology of the block chain, so that the management of the knowledge sharing platform is more efficient.
102. And acquiring the request information sent by the request account.
In the embodiment of the invention, the request information is specifically used for requesting to output the knowledge carrier data on the target chain in the blockchain, and the request information at least comprises the request account information for sending the request information.
In the embodiment of the present invention, optionally, the request account may be any account, or may be an account with a preset authority, where the request account and the first source account may be the same account or may be different accounts. When a requesting account wants to obtain knowledge carrier data on a target chain that it needs from a blockchain, request information may be sent to request output of the knowledge carrier data on the target chain.
103. And if the request account information is consistent with the source account information, outputting the knowledge carrier data on the target chain to the request account.
In the embodiment of the invention, specifically, the source account information is recorded in the tag information corresponding to the knowledge carrier data on the target chain, the request account information is recorded in the request information, and when the request account information is consistent with the source account information, the request account and the first source account are the same account, and the knowledge carrier data on the target chain is directly output to the request account.
104. If the request account information is inconsistent with the source account information, judging whether the request information meets the data output conditions in the preset knowledge sharing intelligent contract, and if the request information meets the data output conditions in the knowledge sharing intelligent contract, outputting the knowledge carrier data on the target chain to the request account.
In the embodiment of the invention, specifically, when the request account information is inconsistent with the source account information, it is indicated that the request account and the first source account are not the same account, whether the request information meets the data output condition in the preset knowledge sharing intelligent contract is further required to be judged, and when the request information meets the data output condition in the knowledge sharing intelligent contract, the knowledge carrier data on the target chain is output to the request account. The invention uses the intelligent contract technology of the block chain, and improves the judging efficiency of the data output condition.
Therefore, by implementing the knowledge sharing method based on the blockchain intelligent contract in the embodiment of the invention, a knowledge sharing platform can be built based on the blockchain, so that various knowledge carriers can be efficiently transmitted between knowledge owners and knowledge requesters, and further, the efficient circulation of knowledge is realized.
In an alternative embodiment, the request information further includes a target transaction resource; the knowledge sharing method based on the blockchain intelligent contract can further comprise the following operations:
and determining the quantity range of the demand transaction resources corresponding to the knowledge carrier data on the chain according to the preset knowledge pricing intelligent contract, wherein the quantity range at least comprises a minimum quantity threshold.
And judging whether the request information meets the data output condition in the preset knowledge sharing intelligent contract, specifically including:
Judging whether the number of the target transaction resources is larger than or equal to a minimum number threshold value;
if the number of the target transaction resources is greater than or equal to the minimum number threshold, determining that the request information meets the data output condition in the preset knowledge sharing intelligent contract;
and after outputting the knowledge carrier data on the target chain to the request account, the above knowledge sharing method based on the blockchain intelligent contract may further include the following operations:
transmitting part or all of the transaction resources in the target transaction resources to a source account corresponding to the knowledge carrier data on the target chain;
and updating the quantity range of the required transaction resources corresponding to the knowledge carrier data on the target chain according to the quantity of the target transaction resources in the historical request information corresponding to the knowledge carrier data on the target chain and the knowledge pricing intelligent contract.
In this alternative embodiment, the target transaction resource may alternatively be a transaction medium such as a credit. Optionally, the demand transaction resource is a quantity range of transaction resources meeting transaction demands determined for the target knowledge carrier data through a preset knowledge pricing intelligent contract, the quantity range at least comprises a minimum quantity threshold, may comprise a maximum quantity threshold or may not be set with an upper limit, and when the request account considers that the target transaction resource is important or exceeds a value, the transaction resource higher than the minimum quantity threshold can be actively sent, so that the purpose of rewarding or rewarding the target knowledge carrier data source account is achieved.
In this optional embodiment, specifically, part or all of the transaction resources in the target transaction resources are sent to the source account corresponding to the knowledge carrier data on the target chain, when the source account is required to be encouraged to upload the knowledge carrier data, all of the transaction resources in the target transaction resources can be sent to the source account, and when the platform is required to collect the service payment, part of the transaction resources can be deducted from the target transaction resources, and part of the transaction resources in the target transaction resources can be sent to the source account.
In this alternative embodiment, specifically, the range of the amount of the demand transaction resources corresponding to the knowledge carrier data on the target chain is updated according to the knowledge pricing intelligent contract, and since the range of the amount of the demand transaction resources is automatically priced by the knowledge pricing intelligent contract, in order to improve the rationality of pricing, the acceptance of the request account on the amount of the transaction resources needs to be considered, for example, the target transaction resources paid by most customers for a certain target knowledge carrier data are far greater than the minimum amount threshold, which indicates that the pricing of the target knowledge carrier data is low, and the range of the demand transaction resources corresponding to the target knowledge carrier data should be updated. Optionally, the number range of the required transaction resources corresponding to the target knowledge carrier data can be updated by solving the number average value of the target transaction resources in the history request information for a plurality of times, or the number distribution condition of the number of the target transaction resources in the history request information for a plurality of times can be fitted through normal distribution, so that the optimal number range of the required transaction resources corresponding to the target knowledge carrier data can be determined.
Therefore, by implementing the knowledge sharing method based on the blockchain intelligent contract in the optional embodiment, the enthusiasm of uploading knowledge carrier data by a source account is improved by trading knowledge carrier data by means of transaction resources, the acceptance of the request account on the transaction resource quantity range can be measured by requesting the quantity of target transaction resources uploaded by account customization, and in addition, the quantity of target transaction resources uploaded by request account customization can be utilized to feed back and adjust the demand transaction resource quantity range corresponding to the target knowledge carrier data, so that a reasonable transaction resource quantity range is provided for the target knowledge carrier data, and finally, the efficient circulation of knowledge is realized.
In another optional embodiment, the above knowledge sharing method based on a blockchain smart contract may further include the following operations:
obtaining derivative knowledge carrier data uploaded by a second source account, and writing the derivative knowledge carrier data into a blockchain according to a knowledge uplink intelligent contract to obtain the knowledge carrier data on the derivative chain;
and after outputting the knowledge carrier data on the target chain to the request account, the above knowledge sharing method based on the blockchain smart contract may further include the following operations:
judging whether the data type of the knowledge carrier data on the target chain is a derivative type or not;
If the data type of the knowledge carrier data on the target chain is judged to be the derivative type, according to the target transaction resources, a first part of transaction resources in the target transaction resources are sent to a source account corresponding to the knowledge carrier data on the target chain, and a second part of transaction resources in the target transaction resources are sent to a 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;
in this alternative embodiment, in particular, the sum of the number of the first portion of transaction resources and the second portion of transaction resources does not exceed the number of the target transaction resources. Derived knowledge carrier data is obtained by modifying the knowledge content of knowledge carrier data on at least one of the original chains, e.g. the derived knowledge carrier data is a PPT introducing blockchain technology, the PPT being made with reference to knowledge carrier data on an existing original chain of the blockchains: document 1 for introducing blockchain development history, video 2 for explaining the principle of blockchain operation, PPT3 for analyzing blockchain dominance, and the like.
Therefore, by implementing the knowledge sharing method based on the blockchain intelligent contract in the optional embodiment, for the knowledge carrier on the derivative chain which is reprogrammed from the knowledge carrier data on the original chain, the recomposition information of the knowledge carrier on the derivative chain can be recorded, and the target transaction resources are reasonably distributed, and the source account corresponding to the knowledge carrier data on the original chain can also acquire a part of corresponding transaction resources, so that the distribution process of the target transaction resources in the embodiment of the invention is more reasonable, thereby exciting the source account to upload the better quality knowledge carrier data, and realizing the efficient circulation of knowledge.
In yet another alternative embodiment, the writing the derivative knowledge carrier data into the blockchain according to the knowledge uplink intelligence contract to obtain the derivative on-chain knowledge carrier data may include the following operations:
acquiring knowledge content repetition information between the derivative knowledge carrier data and knowledge carrier data on each original chain corresponding to the derivative knowledge carrier data;
Determining adaptation parameters of the derivative knowledge carrier data according to the derivative knowledge carrier data and the repeated information of all knowledge contents;
judging whether the recomposition parameter is larger than or equal to a preset recomposition parameter threshold value, if so, writing the derivative knowledge carrier data into the blockchain to obtain the knowledge carrier data on the derivative chain;
And before sending the second portion of the target transaction resources to the source account corresponding to the knowledge carrier data on the target raw chain, the method may further include the following operations:
for each piece of target original chain knowledge carrier data corresponding to the target chain knowledge carrier data, determining a correlation parameter between the target chain knowledge carrier data and the target original chain knowledge carrier data according to knowledge content repetition information between the target chain knowledge carrier data and the target original chain knowledge carrier data; and determining the quantity of the second part of transaction resources corresponding to the knowledge carrier data on the target original chain according to the correlation parameter.
In this optional embodiment, the knowledge content repetition information is specifically configured to indicate a repetition of knowledge content between the derivative knowledge carrier data and the knowledge carrier data on the original chain, where the repetition of knowledge content is a knowledge content with a similarity between the derivative knowledge carrier data and the knowledge carrier data on the original chain being greater than or equal to a preset similarity threshold.
In this alternative embodiment, the adaptation parameters are 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 the repetition information of all knowledge content, optionally, the duty cycle of the original knowledge content is determined according to the duty cycle of the repetition information of all knowledge content, and finally the adaptation parameters are confirmed. If the adaptation parameter is smaller than the preset adaptation parameter threshold, the corresponding derivative knowledge carrier data is insufficient in originality degree and is not suitable for being written into the blockchain. Determining the adaptation parameters and the relevance parameters by knowledge content repetition information may be done by:
the knowledge carrier data a on the target chain is of the derived type, then it has corresponding knowledge carrier data on the original chain: knowledge carrier data 1 on the target original chain, knowledge carrier data 2 on the target original chain and knowledge carrier data 3 on the target original chain; the knowledge content repetition information between the knowledge carrier data A on the target chain and the knowledge carrier data on each original chain is respectively as follows: knowledge content repetition information 1, knowledge content repetition information 2, knowledge content repetition information 3; through analysis, the content proportion of the knowledge content repetition information 1, the knowledge content repetition information 2 and the knowledge content repetition information 3 in the knowledge carrier data A on the target chain is respectively 0.15, 0.2 and 0.25, the recomposition parameter can be determined to be 0.4, if the preset recomposition parameter threshold value is 0.3, the recomposition parameter is larger than the preset recomposition parameter threshold value, the originality degree of the corresponding derivative knowledge carrier data is enough, and the corresponding derivative knowledge carrier data can be written into the blockchain. Further, according to the knowledge content repetition information 1, the knowledge content repetition information 2 and the knowledge content repetition information 3, it may be determined that 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 respectively: 0.15, 0.2, 0.25.
Therefore, by implementing the knowledge sharing method based on the blockchain intelligent contract in the optional embodiment, the derivative on-chain knowledge carrier data meeting original requirements can be screened, and the number of second part transaction resources required to be allocated to the source account corresponding to the original on-chain knowledge carrier data can be determined based on the relevance between the derivative on-chain knowledge carrier data and the original on-chain knowledge carrier data, so that the allocation mode of the transaction resources in the embodiment of the invention is more reasonable and fair, the enthusiasm of a source user for uploading the knowledge carrier data is improved, and the efficient circulation of knowledge is realized.
In yet another optional embodiment, the acquiring knowledge content duplication information between the derivative knowledge carrier data and each piece of the original chain knowledge carrier data corresponding to the derivative knowledge carrier data may include the following operations:
Determining semantic features of the derivative knowledge carrier data according to the derivative knowledge carrier data;
for each piece of original on-chain knowledge carrier data corresponding to the derivative knowledge carrier data, acquiring a plurality of associated semantic features between the derivative knowledge carrier data and the original on-chain knowledge carrier data; according to each associated semantic feature and semantic feature, determining a weight value corresponding to each associated semantic feature; and determining knowledge content repetition information between the derivative knowledge carrier data and the knowledge carrier data on the original chain according to each associated semantic feature and the weight value corresponding to the associated semantic feature.
In this alternative embodiment, in particular, semantic features are used to represent knowledge content expressed by the derived knowledge carrier data, and associated semantic features are used to represent duplicate knowledge content between the derived knowledge carrier data and the knowledge carrier data on the original chain.
In this alternative embodiment, the repeated knowledge content between the derivative knowledge carrier data and the knowledge carrier data on the original chain needs to consider the importance degree thereof to determine the final knowledge content repeated information, for example, for knowledge content such as some background knowledge introduction and the like involved in the derivative knowledge carrier data, the contribution to the originality degree is not high, so that the proportion of the influence on the originality degree needs to be reduced, therefore, in this alternative embodiment, the weight value corresponding to each associated semantic feature is determined according to each associated semantic feature and semantic feature, and optionally, in the determining process, the knowledge expression level of the associated semantic feature in the semantic feature is determined first by the weight value: such as one or more of background introduction, core perspective expression, interpreted footnotes, summary expression, etc., and ultimately determining the weight value based on the expression level.
Therefore, by implementing the knowledge sharing method based on the blockchain intelligent contract in the alternative embodiment, the final knowledge content repeated information can be determined according to the importance degree of the repeated knowledge content between the derivative knowledge carrier data and the knowledge carrier data on the original chain, so that the determination process of the knowledge content repeated information is more reasonable, the distribution mode of transaction resources in the embodiment of the invention is more reasonable and fair, the enthusiasm of source users for uploading the knowledge carrier data is improved, and the efficient circulation of knowledge is realized.
In yet another alternative embodiment, after outputting the knowledge carrier data on the target chain to the requesting account, the method may further comprise the operations of:
acquiring feedback information uploaded by a request account, wherein the feedback information comprises evaluation information and/or correction information;
When the feedback information comprises evaluation information, judging whether the evaluation information meets preset evaluation conditions according to a preset knowledge evaluation intelligent contract, if the evaluation information meets the preset evaluation conditions, sending preset first rewarding transaction resources to a request account, and generating an evaluation result of knowledge carrier data on a target chain according to the evaluation information;
When the feedback information comprises correction information, the correction information is sent to a 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 a preset second rewarding transaction resource is sent to the request account;
wherein, judge whether the evaluation information satisfies the preset evaluation condition according to the intelligent contract of preset knowledge evaluation, include:
according to the knowledge evaluation intelligent contract, extracting emotion keywords in the evaluation information, wherein the emotion keywords are used for representing information with subjective emotion expression in the evaluation information, determining subjective degree parameters of the evaluation information according to the evaluation information and the emotion keywords in the evaluation information, and determining that the evaluation information meets preset evaluation conditions if the subjective degree parameters are smaller than a preset subjective degree parameter threshold.
It can be seen that the knowledge sharing method based on the blockchain intelligent contract in the alternative embodiment can provide a feedback channel for the request account, so that the request account evaluates or corrects and perfects the acquired target knowledge carrier data. Further, to ensure the objectivity of the evaluation information of the requesting user, in this alternative embodiment, the emotion keywords in the evaluation information are extracted and processed to determine whether the evaluation information is objective, rather than an unfair evaluation or even a malicious evaluation due to subjective emotion. Therefore, the alternative embodiment can provide a feedback channel for the request account, further perfect the maintenance of the knowledge carrier data on the chain and realize the efficient circulation of knowledge.
Example two
Referring to fig. 2, fig. 2 is a flow chart of another knowledge sharing method based on a blockchain smart contract according to an embodiment of the invention. The knowledge sharing method based on the blockchain intelligent contract described in fig. 2 may be applied to a knowledge sharing device based on the blockchain intelligent contract, and the knowledge sharing device based on the blockchain intelligent contract may 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 fig. 2, the blockchain-based smart contract knowledge sharing method may include the following operations:
201. And acquiring knowledge carrier data uploaded by the first source account.
In an embodiment of the present invention, the knowledge carrier data specifically includes knowledge carrier content data and first tag data, where the first tag data is used to indicate a target data block to which the knowledge carrier data needs to be written.
In the embodiment of the invention, optionally, the knowledge carrier content data may be text, video, voice, picture and other data containing specific knowledge content, the first tag data may be used to represent a knowledge domain or a knowledge category to which the knowledge carrier content belongs, optionally, the first tag data may be obtained according to a description statement provided or filled in when the source account uploads the knowledge carrier data, or may be directly determined by the source user by selecting the knowledge domain or the knowledge category to which the knowledge carrier data belongs.
202. Generating keywords according to the knowledge carrier content data, and determining second tag data of the knowledge carrier data according to the keywords.
In the embodiment of the present invention, specifically, the second tag data is used to indicate the target data block to which the knowledge carrier data needs to be written. The second tag data are obtained by analyzing the content of the knowledge carrier, specifically, keywords are generated according to the content data of the knowledge carrier, and the second tag data of the knowledge carrier are determined according to the keywords. Alternatively, a plurality of keywords that can summarize the knowledge carrier content are extracted by analyzing the knowledge carrier content data, for example, text keywords are extracted by a preset content analysis model for text-like knowledge carrier data by analyzing the content expressed by the text. Optionally, the second tag data of the knowledge carrier data may be determined according to the keywords, a first correlation degree between each second tag data and each standard keyword may be preset, a second correlation degree between the keywords and the standard keywords may be analyzed, and the second tag data of the knowledge carrier data may be determined according to the keywords in combination with the first correlation degree and the second correlation degree.
In the embodiment of the invention, since the first tag data comes from the first source account, and the first source account is difficult to comprehensively and accurately describe the uploaded knowledge carrier data, for example, the source account considers that the uploaded knowledge carrier data belongs to the knowledge fields of blockchain, knowledge sharing, transaction platform and the like, but actually the uploaded knowledge carrier data also belongs to the knowledge fields of data mutual transmission, data classification, data content similarity analysis and the like, if the knowledge fields of the knowledge carrier data are measured only by the first tag data, the problem of insufficient accuracy and comprehensiveness is caused, and the knowledge carrier data may not be written into a correct data block, therefore, the embodiment of the invention also determines the second tag data, wherein the second tag data is determined by the knowledge carrier content data, and the uploaded knowledge carrier data can be comprehensively and accurately described. Therefore, the embodiment of the invention can comprehensively and accurately describe the uploaded knowledge carrier data by processing the knowledge carrier data to obtain the second label.
203. Writing knowledge carrier data into corresponding target data blocks according to the first tag data and the second tag data to obtain on-chain knowledge carrier data; and generating the marking information corresponding to the knowledge carrier data on the chain.
In the embodiment of the invention, the marking information at least comprises source account information of the knowledge carrier data; the blockchain comprises a plurality of target data blocks, and each target data block is used for storing knowledge carrier data of a corresponding category.
Therefore, in the embodiment of the invention, different data blocks store knowledge carriers of different categories, so that the knowledge carrier data are stored in a classified manner, and the knowledge carrier data on a chain can be conveniently searched and managed. Further, the second tag data is determined through the content data of the knowledge carrier, and the uploaded knowledge carrier data can be comprehensively and accurately described, so that the embodiment of the invention can realize more accurate and comprehensive classification of the knowledge carrier data by combining the first tag data and the second tag data, and efficiency in a knowledge sharing process is improved.
204. And acquiring the request information sent by the request account.
305 Outputting the knowledge carrier data on the target chain to the request account if the request account information is consistent with the source account information.
206. If the request account information is inconsistent with the source account information, judging whether the request information meets the data output conditions in the preset knowledge sharing intelligent contract, and if the request information meets the data output conditions in the knowledge sharing intelligent contract, outputting the knowledge carrier data on the target chain to the request account.
In the embodiment of the present invention, for other descriptions of steps 204-206, please refer to the detailed descriptions of steps 102-104 in the first embodiment, and the detailed descriptions of the embodiment of the present invention are omitted.
Therefore, by implementing the knowledge sharing method based on the blockchain intelligent contract in the embodiment of the invention, a more efficient knowledge sharing platform can be built based on the blockchain intelligent contract, more accurate and comprehensive classification of knowledge carrier data can be realized, various knowledge carriers can be efficiently transmitted between knowledge owners and knowledge requesters, and further, efficient circulation of knowledge is realized.
In an alternative embodiment, after step 203, the method may further comprise the operations of:
For each first source account, determining domain 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 domain label data is used for representing the knowledge domain corresponding to the first source account;
In this alternative embodiment, further optionally, the method may further comprise the operations of:
Acquiring advertisement information and a third rewarding transaction resource sent by a solicited account, wherein the advertisement information is used for describing knowledge content required to be acquired by the solicited account;
According to the notice information, index tag data corresponding to the notice information is determined, and the index tag data is used for matching with the first tag data, the second tag data and the field tag data;
Judging whether knowledge carrier data on a matching chain exists in the block chain, wherein the matching degree between first tag data and second tag data of the knowledge carrier data on the matching chain and index tag data is larger than or equal to a preset matching degree threshold value;
If the knowledge carrier data on the matching chain exists in the blockchain, the knowledge carrier data on the matching chain is sent to the solicited account, and if the confirmation information sent by the solicited account is obtained, all or part of transaction resources in the third rewarded transaction resources are sent to the source account corresponding to the knowledge carrier data on the matching chain;
If the fact that the knowledge carrier data on the matching chain does not exist in the blockchain is judged, sending notice information to all target first source accounts, wherein the matching degree between the field label data corresponding to the target first source accounts and the index label data is larger than or equal to a preset matching degree threshold value;
And acquiring the matched knowledge carrier data uploaded by the target first source account, transmitting all the matched knowledge carrier data to the solicited account, and if the solicited account acquires the confirmation information transmitted by aiming at the target matched knowledge carrier data in all the matched knowledge carrier data, transmitting all or part of transaction resources in the third rewarding transaction resources to the source account corresponding to the target matched knowledge carrier data.
It can be seen that, when the knowledge consumers cannot directly determine the knowledge carrier data on the target chain to be obtained according to their own knowledge requirements, or the knowledge carrier data on the target chain meeting the knowledge requirements does not exist in the blockchain, the knowledge sharing method based on the blockchain intelligent contract in the alternative embodiment can obtain the required knowledge carrier data by asking for the account to send the announcement information. In an alternative embodiment, the method and the system can help to ask for the knowledge carrier data on the corresponding target chain in the blockchain according to the announcement information, so that knowledge sharing efficiency is improved.
Example III
Referring to fig. 3, fig. 3 is a schematic structural diagram of a knowledge sharing device based on a blockchain smart contract according to an embodiment of the invention. As shown in fig. 3, the blockchain smart contract-based knowledge sharing apparatus may include:
The writing module 301 is configured to obtain knowledge carrier data uploaded by the first source account, write the knowledge carrier data into the blockchain according to a preset knowledge uplink intelligent contract, obtain on-chain knowledge carrier data, and generate tag information corresponding to the on-chain knowledge carrier data, where the tag information at least includes source account information of the knowledge carrier data;
The obtaining module 302 is configured to obtain request information sent by a request account, where the request information is used to request to output knowledge carrier data on a target chain in a blockchain, and the request information at least includes request account information that sends the request information;
An output module 303, configured to output knowledge carrier data on the target chain to the request account when the request account information is consistent with the source account information;
The output module 303 is further configured to determine whether the request information meets a data output condition in a preset knowledge sharing intelligent contract when the request account information is inconsistent with the source account information, and if it is determined that the request information meets the data output condition in the knowledge sharing intelligent contract, output the knowledge carrier data on the target chain to the request account.
It can be seen that implementing the apparatus described in fig. 3 enables a knowledge sharing platform to be built based on a blockchain, so that various knowledge carriers can be efficiently propagated between owners of knowledge and consumers of knowledge, thereby realizing efficient circulation of knowledge.
In an alternative embodiment, as shown in fig. 4, the request information further includes a target transaction resource;
The device further comprises a pricing module 304, wherein the pricing module 304 is configured to determine, according to a preset knowledge pricing intelligent contract, a quantity range of demand transaction resources corresponding to the on-chain knowledge carrier data, the quantity range at least including a minimum quantity threshold;
And, the specific ways of the output module 303 for judging whether the request information meets the data output condition in the preset knowledge sharing intelligent contract include:
Judging whether the number of the target transaction resources is larger than or equal to a minimum number threshold value;
if the number of the target transaction resources is greater than or equal to the minimum number threshold, determining that the request information meets the data output condition in the preset knowledge sharing intelligent contract;
And, the apparatus further comprises:
A feedback module 305, configured to send part or all of the transaction resources in 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 request account; and updating the range of the number of the required transaction resources corresponding to the knowledge carrier data on the target chain according to the knowledge pricing intelligent contract according to the number of the target transaction resources in the plurality of historical request messages corresponding to the knowledge carrier data on the target chain.
Therefore, implementing the device described in fig. 4 improves the enthusiasm of uploading the knowledge carrier data by the transaction resources, and can also measure the acceptance of the request account to the transaction resource number range by the number of the target transaction resources uploaded by the request account in a self-defining manner.
In another alternative embodiment, as shown in fig. 4, the writing module 301 is further configured to:
Obtaining derivative knowledge carrier data uploaded by a second source account, writing the derivative knowledge carrier data into a blockchain according to a knowledge uplink intelligent contract to obtain knowledge carrier data on a derivative chain, wherein the derivative knowledge carrier data is obtained by modifying knowledge content of the knowledge carrier data on at least one original chain;
And, the feedback module 305 is further configured to:
After the output module 303 outputs the knowledge carrier data on the target chain to the request account, judging whether the data type of the knowledge carrier data on the target chain is a derivative type; when the data type of the knowledge carrier data on the target chain is judged to be the derivative type, according to the target transaction resources, a first part of transaction resources in the target transaction resources are sent to a source account corresponding to the knowledge carrier data on the target chain, and a second part of transaction resources in the target transaction resources are sent to a 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; wherein the sum of the amounts of the first portion of transaction resources and the second portion of transaction resources does not exceed the amount of the target transaction resources.
Therefore, the device described in fig. 4 is implemented, and for the knowledge carrier on the derivative chain adapted from the knowledge carrier data on the original chain, the adapted information can be recorded, and the target transaction resources are reasonably allocated, and the source account corresponding to the knowledge carrier data on the original chain can also obtain a corresponding part of transaction resources, so that the allocation process of the target transaction resources in the embodiment of the invention is more reasonable, thereby stimulating the source account to upload the better quality knowledge carrier data, and realizing the efficient circulation of knowledge.
In yet another alternative embodiment, as shown in fig. 4, the writing module 301 writes derivative knowledge carrier data into the blockchain according to a knowledge up-link smart contract, and the specific manner of obtaining the derivative on-chain knowledge carrier data includes:
Acquiring knowledge content repetition information between the derivative knowledge carrier data and knowledge carrier data on each original chain corresponding to the derivative knowledge carrier data, wherein the knowledge content repetition information is used for representing repeated knowledge content between the derivative knowledge carrier data and the knowledge carrier data on the original chain, and the repeated knowledge content is the knowledge content of which the similarity between the derivative knowledge carrier data and the knowledge carrier data on the original chain is greater than or equal to a preset similarity threshold value;
Determining adaptation parameters of the derivative knowledge carrier data according to the derivative knowledge carrier data and the repeated information of all knowledge contents;
Judging whether the recomposition parameter is larger than or equal to a preset recomposition parameter threshold value, if so, writing the derivative knowledge carrier data into the blockchain to obtain the knowledge carrier data on the derivative chain;
And, the pricing module 304 is further configured to determine, for each piece of target raw on-chain knowledge carrier data corresponding to the piece of target on-chain knowledge carrier data, a correlation parameter between the piece of target on-chain knowledge carrier data and the piece of target raw on-chain knowledge carrier data according to knowledge content repetition information between the piece of target on-chain knowledge carrier data and the piece of target raw on-chain knowledge carrier data before the feedback module 305 sends the second portion of the transaction resources to the source account corresponding to the piece of target on-chain knowledge carrier data; and determining the quantity of the second part of transaction resources corresponding to the knowledge carrier data on the target original chain according to the correlation parameter.
Therefore, the device described in fig. 4 can be implemented to screen out the knowledge carrier data on the derivative chain meeting the original requirement, and determine the number of the second part of transaction resources required to be allocated to the source account corresponding to the knowledge carrier data on the original chain based on the correlation between the knowledge carrier data on the derivative chain and the knowledge carrier data on the original chain, so that the allocation mode of the transaction resources in the embodiment of the invention is more reasonable and fair, the enthusiasm of the source user for uploading the knowledge carrier data is improved, and the efficient circulation of knowledge is realized.
In yet another alternative embodiment, as shown in fig. 4, the specific manner of obtaining knowledge content duplication information between the derivative knowledge carrier data and each of the knowledge carrier data on the original chain corresponding to the derivative knowledge carrier data by the writing module 301 includes:
Determining semantic features of the derivative knowledge carrier data according to the derivative knowledge carrier data, wherein the semantic features are used for representing knowledge content expressed by the derivative knowledge carrier data;
For each piece of original on-chain knowledge carrier data corresponding to the derivative knowledge carrier data, acquiring a plurality of associated semantic features between the derivative knowledge carrier data and the original on-chain knowledge carrier data, wherein the associated semantic features are used for representing repeated knowledge content between the derivative knowledge carrier data and the original on-chain knowledge carrier data; according to each associated semantic feature and semantic feature, determining a weight value corresponding to each associated semantic feature; and determining knowledge content repetition information between the derivative knowledge carrier data and the knowledge carrier data on the original chain according to each associated semantic feature and the weight value corresponding to the associated semantic feature.
Therefore, the device described in fig. 4 can determine the final knowledge content repeated information according to the importance degree of the repeated knowledge content between the derivative knowledge carrier data and the knowledge carrier data on the original chain, so that the determination process of the knowledge content repeated information is more reasonable, the distribution mode of transaction resources in the embodiment of the invention is more reasonable and fair, the enthusiasm of uploading the knowledge carrier data by the source user is improved, and the efficient circulation of knowledge is realized.
In yet another alternative embodiment, as shown in FIG. 4, the knowledge carrier data includes knowledge carrier content data and first tag data;
And, the writing module 301 writes the knowledge carrier data into the blockchain according to a preset knowledge uplink intelligent contract, and the specific ways of obtaining the on-chain knowledge carrier data include:
generating a keyword according to the knowledge carrier content data, determining second tag data of the knowledge carrier data according to the keyword, wherein the first tag data and the second tag data are used for indicating a target data block to which the knowledge carrier data need to be written;
writing knowledge carrier data into corresponding target data blocks according to the first tag data and the second tag data to obtain on-chain knowledge carrier data;
the block chain comprises a plurality of target data blocks, and each target data block is used for storing knowledge carrier data of a corresponding category.
Therefore, by implementing the device described in fig. 4, a more efficient knowledge sharing platform can be built based on the blockchain intelligent contract, so that more accurate and comprehensive classification of knowledge carrier data can be realized, various knowledge carriers can be efficiently transmitted between knowledge owners and knowledge requesters, and further efficient circulation of knowledge is realized.
In yet another alternative embodiment, as shown in fig. 4, the feedback module 305 is further configured to obtain feedback information uploaded by the request account after the output module 303 outputs the knowledge carrier data on the target chain to the request account, where the feedback information includes evaluation information and/or correction information; and when the feedback information comprises evaluation information, judging whether the evaluation information meets preset evaluation conditions according to a preset knowledge evaluation intelligent contract, if the evaluation information meets the preset evaluation conditions, sending preset first rewarding transaction resources to the request account, and generating an evaluation result of knowledge carrier data on a target chain according to the evaluation information; when the feedback information comprises correction information, the correction information is sent to a 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 a preset second rewarding transaction resource is sent to the request account;
the specific manner of the feedback module 305 to judge whether the evaluation information meets the preset evaluation condition according to the preset knowledge evaluation intelligent contract includes:
according to the knowledge evaluation intelligent contract, extracting emotion keywords in the evaluation information, wherein the emotion keywords are used for representing information with subjective emotion expression in the evaluation information, determining subjective degree parameters of the evaluation information according to the evaluation information and the emotion keywords in the evaluation information, and determining that the evaluation information meets preset evaluation conditions if the subjective degree parameters are smaller than a preset subjective degree parameter threshold.
It can be seen that implementing the apparatus described in fig. 4 can provide a feedback channel for the requesting account, so that the requesting account evaluates or modifies and perfects the acquired target knowledge carrier data. Further, to ensure the objectivity of the evaluation information of the requesting user, in this alternative embodiment, the emotion keywords in the evaluation information are extracted and processed to determine whether the evaluation information is objective, rather than an unfair evaluation or even a malicious evaluation due to subjective emotion. Therefore, the alternative embodiment can provide a feedback channel for the request account, further perfect the maintenance of the knowledge carrier data on the chain and realize the efficient circulation of knowledge.
In yet another alternative embodiment, as shown in fig. 4, the writing module 301 is further configured 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 represent a knowledge domain corresponding to the first source account;
the device further comprises a matching module 306, wherein the matching module 306 is used for acquiring advertisement information and third rewarding transaction resources sent by the solicited account, and the advertisement information is used for describing knowledge content required to be acquired by the solicited account;
According to the notice information, index tag data corresponding to the notice information is determined, and the index tag data is used for matching with the first tag data, the second tag data and the field tag data;
Judging whether knowledge carrier data on a matching chain exists in the block chain, wherein the matching degree between first tag data and second tag data of the knowledge carrier data on the matching chain and index tag data is larger than or equal to a preset matching degree threshold value;
If the knowledge carrier data on the matching chain exists in the blockchain, the knowledge carrier data on the matching chain is sent to the solicited account, and if the confirmation information sent by the solicited account is obtained, all or part of transaction resources in the third rewarded transaction resources are sent to the source account corresponding to the knowledge carrier data on the matching chain;
If the fact that the knowledge carrier data on the matching chain does not exist in the blockchain is judged, sending notice information to all target first source accounts, wherein the matching degree between the field label data corresponding to the target first source accounts and the index label data is larger than or equal to a preset matching degree threshold value;
And acquiring the matched knowledge carrier data uploaded by the target first source account, transmitting all the matched knowledge carrier data to the solicited account, and if the solicited account acquires the confirmation information transmitted by aiming at the target matched knowledge carrier data in all the matched knowledge carrier data, transmitting all or part of transaction resources in the third rewarding transaction resources to the source account corresponding to the target matched knowledge carrier data.
It can be seen that, when implementing the apparatus described in fig. 4, the knowledge-required person cannot directly determine the knowledge carrier data on the target chain to be acquired according to his own knowledge requirement, or the knowledge carrier data on the target chain meeting the knowledge requirement does not exist in the blockchain, the required knowledge carrier data can be acquired by asking for the account to send the announcement information. In an alternative embodiment, the method and the system can help to ask for the knowledge carrier data on the corresponding target chain in the blockchain according to the announcement information, so that knowledge sharing efficiency is improved.
Example IV
Referring to fig. 5, fig. 5 is a schematic structural diagram of a knowledge sharing device based on a blockchain smart contract according to an embodiment of the invention. As shown in fig. 5, the blockchain smart contract-based knowledge sharing apparatus may include:
a memory 401 storing executable program codes;
A processor 402 coupled with the memory 401;
the processor 402 invokes executable program code stored in the memory 401 to perform the steps in the blockchain smart contract-based knowledge sharing method described in the first or second embodiments of the present invention.
Example five
The embodiment of the invention discloses a computer storage medium which stores computer instructions for executing the steps in the knowledge sharing method based on the blockchain intelligent contract described in the first embodiment or the second embodiment of the invention when the computer instructions are called.
Example six
An embodiment of the present invention discloses a computer program product comprising a non-transitory computer readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform the steps in the blockchain intelligent contract-based knowledge sharing method described in embodiment one or embodiment two.
The apparatus embodiments described above are merely illustrative, wherein the modules illustrated as separate components may or may not be physically separate, and the components shown as modules may or may not be physical, i.e., may be located in one place, or may be distributed over a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above detailed description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course by means of hardware. Based on such understanding, the foregoing technical solutions may be embodied essentially or in part in the form of a software product that may be stored in a computer-readable storage medium including Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), programmable Read-Only Memory (Programmable Read-Only Memory, PROM), erasable programmable Read-Only Memory (Erasable Programmable Read Only Memory, EPROM), one-time programmable Read-Only Memory (OTPROM), electrically erasable programmable Read-Only Memory (EEPROM), compact disc Read-Only Memory (Compact Disc Read-Only Memory, CD-ROM) or other optical disc Memory, magnetic disc Memory, tape Memory, or any other medium that can be used for computer-readable carrying or storing data.
Finally, it should be noted that: the embodiment of the invention discloses a knowledge sharing method and device based on a blockchain intelligent contract, and a storage medium, which are disclosed by the embodiment of the invention, are only used for illustrating the technical scheme of the invention, but not limiting the technical scheme; although the invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that; the technical scheme recorded in the various embodiments can be modified or part of technical features in the technical scheme can be replaced equivalently; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions.

Claims (7)

1. A method for knowledge sharing based on blockchain intelligence contracts, the method comprising:
Acquiring knowledge carrier data uploaded by a first source account, writing the knowledge carrier data into a blockchain according to a preset knowledge uplink intelligent contract to obtain on-chain knowledge carrier data, and generating marking information corresponding to the on-chain knowledge carrier data, wherein the marking information at least comprises source account information of the knowledge carrier data;
Acquiring request information sent by a request account, wherein the request information is used for requesting to output knowledge carrier data on a target chain in the blockchain, and the request information at least comprises request account information and target transaction resources for sending the request information;
Determining a quantity range of the demand transaction resources corresponding to the knowledge carrier data on the chain according to a preset knowledge pricing intelligent contract, wherein the quantity range at least comprises a minimum quantity threshold;
if the request account information is consistent with the source account information, outputting knowledge carrier data on the target chain to the request account;
If the request account information is inconsistent with the source account information, judging whether the number of the target transaction resources is larger than or equal to the minimum number threshold, and if the number of the target transaction resources is larger than or equal to the minimum number threshold, outputting knowledge carrier data on the target chain to the request account; transmitting part or all of the transaction resources in the target transaction resources to a source account corresponding to the knowledge carrier data on the target chain; according to the number of target transaction resources in the historical request information for a plurality of times corresponding to the knowledge carrier data on the target chain, according to the knowledge pricing intelligent contract, updating the range of the number of required transaction resources corresponding to the knowledge carrier data on the target chain;
The method further comprises the steps of:
obtaining derivative knowledge carrier data uploaded by a second source account, the derivative knowledge carrier data being obtained by modifying knowledge content of knowledge carrier data on at least one original chain;
Acquiring knowledge content repetition information between the derivative knowledge carrier data and knowledge carrier data on each original chain corresponding to the derivative knowledge carrier data, wherein the knowledge content repetition information is used for representing repeated knowledge content between the derivative knowledge carrier data and the knowledge carrier data on the original chain, and the repeated knowledge content is the knowledge content of which the similarity between the derivative knowledge carrier data and the knowledge carrier data on the original chain 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 repetition information;
Judging whether the recomposition parameter is larger than or equal to a preset recomposition parameter threshold value, and if the recomposition parameter is larger than or equal to the recomposition parameter threshold value, writing the derivative knowledge carrier data into a blockchain to obtain the knowledge carrier data on the derivative chain;
And after said outputting the knowledge carrier data on the target chain to the requesting account, the method further comprises:
judging whether the data type of the knowledge carrier data on the target chain is a derivative type or not;
If the data type of the knowledge carrier data on the target chain is judged to be the derivative type, according to the target transaction resources, a first part of transaction resources in the target transaction resources are sent to a source account corresponding to the knowledge carrier data on the target chain, and a second part of transaction resources in the target transaction resources are sent to a 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;
Wherein the sum of the amounts of the first portion of transactional resources and the second portion of transactional resources does not exceed the amount of the target transactional resources;
And before the sending the second portion of the target transaction resources to the source account corresponding to the knowledge carrier data on the target original chain, the method further comprises:
For each piece of target original chain knowledge carrier data corresponding to the target chain knowledge carrier data, determining a correlation parameter between the target chain knowledge carrier data and the target original chain knowledge carrier data according to knowledge content repetition information between the target chain knowledge carrier data and the target original chain knowledge carrier data; and determining the quantity of the second part of transaction resources corresponding to the knowledge carrier data on the target original chain according to the correlation parameter.
2. The blockchain smart contract-based knowledge sharing method of claim 1, wherein the obtaining knowledge content duplication information between the derivative knowledge carrier data and knowledge carrier data on each original chain corresponding to the derivative knowledge carrier data includes:
Determining semantic features of the derivative knowledge carrier data according to the derivative knowledge carrier data, wherein the semantic features are used for representing knowledge content expressed by the derivative knowledge carrier data;
For each piece of original on-chain knowledge carrier data corresponding to the derivative knowledge carrier data, acquiring a plurality of associated semantic features between the derivative knowledge carrier data and the original on-chain knowledge carrier data, wherein the associated semantic features are used for representing repeated knowledge content between the derivative knowledge carrier data and the original on-chain knowledge carrier data; according to each associated semantic feature and the semantic feature, determining a weight value corresponding to each associated semantic feature; and determining knowledge content repetition information between the derivative knowledge carrier data and the knowledge carrier data on the original chain according to each associated semantic feature and the weight value corresponding to the associated semantic feature.
3. The blockchain-based smart contract knowledge sharing method of claim 1, wherein the knowledge carrier data includes knowledge carrier content data and first tag data;
and writing the knowledge carrier data into a blockchain according to a preset knowledge uplink intelligent contract to obtain the on-chain knowledge carrier data, wherein the method comprises the following steps of:
Generating a keyword according to the knowledge carrier content data, determining second tag data of the knowledge carrier data according to the keyword, wherein the first tag data and the second tag data are used for indicating a target data block to which the knowledge carrier data need to be written;
writing the knowledge carrier data into the corresponding target data block according to the first tag data and the second tag data to obtain the on-chain knowledge carrier data;
The block chain comprises a plurality of target data blocks, and each target data block is used for storing knowledge carrier data of a corresponding category.
4. The blockchain-based intelligence contract knowledge sharing method of claim 3, wherein after the obtaining the on-chain knowledge carrier data, the method further comprises:
For each first source account, determining domain 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 domain label data is used for representing a knowledge domain corresponding to the first source account;
And, the method further comprises:
Acquiring advertisement information and a third rewarding transaction resource sent by a solicited account, wherein the advertisement information is used for describing knowledge content required to be acquired by the solicited account;
According to the bulletin information, index tag data corresponding to the bulletin information is determined, wherein the index tag data is used for matching with the first tag data, the second tag data and the field tag data;
Judging whether knowledge carrier data on a matching chain exists in the blockchain, wherein the matching degree between the first tag data and the second tag data of the knowledge carrier data on the matching chain and the index tag data is larger than or equal to a preset matching degree threshold value;
if the knowledge carrier data on the matching chain exists in the blockchain, the knowledge carrier data on the matching chain is sent to the solicited account, and if the confirmation information sent by the solicited account is obtained, all or part of transaction resources in the third rewarded transaction resource are sent to a source account corresponding to the knowledge carrier data on the matching chain;
If the fact that the knowledge carrier data on the matching chain does not exist in the blockchain is judged, the notice information is sent to all target first source accounts, wherein the matching degree between the domain label data corresponding to the target first source accounts and the index label data is larger than or equal to the matching degree threshold value;
and acquiring the matched knowledge carrier data uploaded by the target first source account, transmitting all the matched knowledge carrier data to the solicited account, and if the solicited account acquires the confirmation information transmitted by aiming at the target matched knowledge carrier data in all the matched knowledge carrier data, transmitting all or part of the third reward transaction resources to the source account corresponding to the target matched knowledge carrier data.
5. A blockchain smart contract-based knowledge sharing apparatus, the apparatus comprising:
The writing module is used for acquiring the knowledge carrier data uploaded by the first source account, writing the knowledge carrier data into the blockchain according to a preset knowledge uplink intelligent contract to obtain on-chain knowledge carrier data, and generating marking information corresponding to the on-chain knowledge carrier data, wherein the marking information at least comprises source account information of the knowledge carrier data;
The system comprises an acquisition module, a request account management module and a target transaction resource management module, wherein the acquisition module is used for acquiring request information sent by a request account, the request information is used for requesting to output knowledge carrier data on a target chain in the blockchain, and the request information at least comprises request account information and target transaction resources for sending the request information;
The pricing module is used for determining the quantity range of the demand transaction resources corresponding to the on-chain knowledge carrier data according to the preset knowledge pricing intelligent contract, and the quantity range at least comprises a minimum quantity threshold;
the output module is used for outputting the knowledge carrier data on the target chain to the request account when the request account information is consistent with the source account information;
the output module is further configured to determine whether the number of the target transaction resources is greater than or equal to the minimum number threshold when the request account information is inconsistent with the source account information, and if it is determined that the number of the target transaction resources is greater than or equal to the minimum number threshold, output the knowledge carrier data on the target chain to the request account;
the feedback module is used for sending 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; according to the number of target transaction resources in the historical request information for a plurality of times corresponding to the knowledge carrier data on the target chain, according to the knowledge pricing intelligent contract, updating the range of the number of required transaction resources corresponding to the knowledge carrier data on the target chain;
The writing module is further configured to:
obtaining derivative knowledge carrier data uploaded by a second source account, the derivative knowledge carrier data being obtained by modifying knowledge content of knowledge carrier data on at least one original chain;
Acquiring knowledge content repetition information between the derivative knowledge carrier data and knowledge carrier data on each original chain corresponding to the derivative knowledge carrier data, wherein the knowledge content repetition information is used for representing repeated knowledge content between the derivative knowledge carrier data and the knowledge carrier data on the original chain, and the repeated knowledge content is the knowledge content of which the similarity between the derivative knowledge carrier data and the knowledge carrier data on the original chain 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 repetition information;
Judging whether the recomposition parameter is larger than or equal to a preset recomposition parameter threshold value, and if the recomposition parameter is larger than or equal to the recomposition parameter threshold value, writing the derivative knowledge carrier data into a blockchain to obtain the knowledge carrier data on the derivative chain;
The pricing module is further configured to determine, for each piece of target raw on-chain knowledge carrier data corresponding to the target on-chain knowledge carrier data, a correlation parameter between the target on-chain knowledge carrier data and the target raw on-chain knowledge carrier data according to knowledge content repetition information between the target on-chain knowledge carrier data and the target raw on-chain knowledge carrier data before the feedback module sends the second portion of the transaction resources to a source account corresponding to the target raw on-chain knowledge carrier data; determining the quantity of second part transaction resources corresponding to the knowledge carrier data on the target original chain according to the correlation parameter;
And, the feedback module is further configured to:
After the output module outputs the knowledge carrier data on the target chain to the request account, judging whether the data type of the knowledge carrier data on the target chain is a derivative type or not; when the data type of the knowledge carrier data on the target chain is judged to be the derivative type, according to the target transaction resources, a first part of transaction resources in the target transaction resources are sent to a source account corresponding to the knowledge carrier data on the target chain, and a second part of transaction resources in the target transaction resources are sent to a 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; wherein the sum of the amounts of the first portion of transaction resources and the second portion of transaction resources does not exceed the amount of the target transaction resources.
6. A blockchain smart contract-based knowledge sharing apparatus, the apparatus comprising: a memory storing executable program code; a processor coupled to the memory; the processor invokes the executable program code stored in the memory to perform the blockchain smart contract-based knowledge sharing method of any of claims 1-4.
7. A computer storage medium storing computer instructions which, when invoked, are operable to perform the blockchain smart contract-based knowledge sharing method of any of claims 1-4.
CN202410445020.3A 2024-04-15 2024-04-15 Knowledge sharing method and device based on blockchain intelligent contract and storage medium Active CN118051489B (en)

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 intelligent 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 intelligent contract and storage medium

Publications (2)

Publication Number Publication Date
CN118051489A CN118051489A (en) 2024-05-17
CN118051489B true 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 intelligent contract and storage medium

Country Status (1)

Country Link
CN (1) CN118051489B (en)

Citations (2)

* Cited by examiner, † Cited by third party
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 kind of digital asset Information Exchange System and method based on block chain

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11301452B2 (en) * 2018-10-09 2022-04-12 Ebay, Inc. Storing and verification of derivative work data on blockchain with original work data
CN115391751A (en) * 2022-10-31 2022-11-25 知安视娱(北京)科技有限公司 Infringement determination method

Patent Citations (2)

* Cited by examiner, † Cited by third party
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 kind of digital asset Information Exchange System and method based on block chain

Also Published As

Publication number Publication date
CN118051489A (en) 2024-05-17

Similar Documents

Publication Publication Date Title
US11853935B2 (en) Automated recommendations for task automation
WO2022252363A1 (en) Data processing method, computer device and readable storage medium
CN110910257A (en) Information prediction method, information prediction device, electronic equipment and computer readable medium
CN109035028B (en) Intelligent consultation strategy generation method and device, electronic equipment and storage medium
CN110766438B (en) Method for analyzing user behavior of power grid user through artificial intelligence
CN113706211B (en) Advertisement click rate prediction method and system based on neural network
CN114416313A (en) Task scheduling method and device based on resource prediction model
CN117591653A (en) Automatic tax question answering method and device, terminal equipment and storage medium
CN109492863A (en) The automatic generation method and device of financial document
CN110516049A (en) Service creation method, service creation device, computer equipment and computer readable storage medium
CN118051489B (en) Knowledge sharing method and device based on blockchain intelligent contract and storage medium
CN115936764A (en) Product promotion method and device
CN115293867A (en) Financial reimbursement user portrait optimization method, device, equipment and storage medium
CN111027302B (en) Electricity selling contract generation method and system based on settlement model
CN111401985B (en) Information display method and device, storage medium and electronic device
CN113298555A (en) Promotion strategy generation method and device and electronic equipment
Grandage et al. Who has turned the project management lights on? A comparative analysis of transportation and information technology in US state governments
CN111143688A (en) Evaluation method and system based on mobile news client
CN111339372A (en) Metadata management method and device
CN113744066B (en) Information pushing method and device
CN113807650B (en) House source owner interview management method and system, electronic equipment and storage medium
CN116151455A (en) Member conversion rate prediction method and device, electronic equipment and storage medium
CN113468367A (en) Method and device for generating service information
CN117726355A (en) Marketing strategy matching method and device based on front-end visualization
CN117994024A (en) Loan request processing method and device, storage medium and electronic equipment

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