A user document storage and processing method and system based on blockchain
By combining the document comprehensive importance judgment model and the modification habit judgment model, the problems of low storage efficiency and inaccurate judgment of editing completion in the existing technology are solved, and more efficient storage management and personalized editing support are achieved.
Patent Information
- Application Number
- CN202411755618.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-03
- Publication Date
- 2025-02-25
- Estimated Expiration
- 2044-12-03
AI Technical Summary
The existing user document storage methods lack the editing situation based on modification habits and the storage address based on document importance, resulting in a reduction in storage efficiency and inaccurate judgment of editing completion.
By collecting original document data and document modification data, using the comprehensive importance of the document to determine the model and storage address matching model, the target storage address of the document is judged, and the modification habits of the modifying personnel determine whether the document has been edited and completed, and finally the edited document is carried out. Storage address prompt.
It improves the accuracy of judging storage efficiency and editing completion, provides personalized editing support, and optimizes storage management and work efficiency.
Smart Images

Figure CN119226235B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of electronic digital data processing, and specifically relates to a user document storage and processing method and system based on blockchain. Background Art
[0002] User document storage refers to users storing personal or organizational data, files and information on a certain medium or service to facilitate data preservation, access and sharing. These storage methods can be local storage (such as hard disk, USB flash drive), network storage (such as cloud storage service) or distributed storage system. Traditional user document storage methods may face security risks of data leakage. Cloud storage that relies on a single service provider may have the risk of service interruption and data loss. Data in centralized storage may be tampered by unauthorized third parties. Therefore, it is extremely necessary to apply blockchain technology to user document storage.
[0003] Existing user document storage methods lack the technology to combine the editing situation based on modification habit judgment and the storage address based on document importance, so it is impossible to provide users with personalized storage address recommendations, resulting in reduced storage efficiency;
[0004] In order to solve the above problems, the present invention provides a user document storage and processing method and system based on blockchain. Summary of the invention
[0005] In view of the deficiencies in the prior art, the present invention provides a user document storage and processing method and system based on blockchain, which collects original document data; collects document modification data, and generates a document comprehensive importance judgment result according to a document comprehensive importance judgment model; judges the target storage address of the document according to a document storage matching model; judges whether the document has been edited according to the modification habits of the current editor; and prompts the storage address of the edited document; the present invention first judges the target storage address based on the document importance, which helps to improve storage efficiency, and then judges the editing situation according to the modification habits of the editor, improves the judgment accuracy of the editing completion, and helps to provide more personalized editing support. Finally, based on the editing situation and the target storage address, the user is prompted to store the document, which helps to improve work efficiency and optimize storage management.
[0006] To achieve the above purpose, the technical solution of the present invention is as follows:
[0007] A user document storage and processing method based on blockchain includes the following specific steps:
[0008] Collect original document data;
[0009] Collect document modification data and generate document comprehensive importance judgment results based on the document comprehensive importance judgment model;
[0010] Determine the target storage address of the document according to the document storage matching model;
[0011] Determine whether the document has been edited based on the current editor's editing habits;
[0012] Prompt the storage address of the edited document.
[0013] Specifically, the collecting of original document data includes the following specific steps:
[0014] S11, collecting original document data, wherein the original document data includes the original document name, original document content, the person who last modified the original document, the original document access rights, and the original document storage address;
[0015] S12. Storing the original document data in an original data storage module.
[0016] Specifically, the collecting of document modification data and generating a document comprehensive importance judgment result according to a document comprehensive importance judgment model includes the following specific steps:
[0017] S21, collecting document modification data, the document modification data includes the current modifier, modification type and modification content, the current modifier includes employees, department group leaders and department supervisors, and the modification type includes addition, deletion and correction;
[0018] S22, storing the document modification data in the modification data storage module;
[0019] S23. The document comprehensive importance judgment model includes a word importance calculation formula, which is:
[0020] ;
[0021] in, represents the number of occurrences of word T in document d, Expressive words belongs to document d, represents the total number of words in document d, Indicates the total number of collected documents. represents the total number of documents containing word T, It represents a function with power (real number) as independent variable, exponent as dependent variable, and base as constant;
[0022] S24, calculating the importance of words in the document, sorting the calculation results in descending order, obtaining the top ten key words in the sequence, and storing them in a collection data storage module in a collection manner;
[0023] S25. Import the document modification data into the document comprehensive importance calculation formula to calculate the document comprehensive importance, wherein the document comprehensive importance calculation formula is:
[0024] ;
[0025] in, Indicates the modification personnel ratio coefficient, Indicates the weight corresponding to the current editor. Indicates the modification type ratio, Indicates the weight corresponding to the modification type. Indicates the number of modified words. Indicates the modification content ratio, represents the set of ten key words contained in document d, Indicates that word w belongs to the set , represents the number of occurrences of word w in document d, .
[0026] Specifically, the step of determining the target storage address of a document according to the document storage matching model includes the following specific steps:
[0027] S31, collecting the document size and storing it in the document data storage module;
[0028] S32, importing the comprehensive importance of the document and the size of the document into a document storage address matching formula to match the target storage address of the document, the document storage address matching formula is:
[0029] ;
[0030] in, Indicates the coefficient of comprehensive importance of the document, Indicates the minimum comprehensive importance of the document. Indicates the maximum comprehensive importance of the document. Indicates the document size ratio, Indicates the size of the document. Indicates the minimum value of the document size. Indicates the maximum size of a document. Indicates storage address The candidate set A that belongs to the storage address, Indicates filtering the storage address with the largest value as the target storage address of the document. .
[0031] Specifically, judging whether the document has been edited according to the modification habits of the current editor includes the following specific steps:
[0032] S41, collecting the editing data of the current editor, wherein the editing data includes editing frequency, editing amplitude and time interval;
[0033] S42, storing the editing data of the current editor in the editing data storage module;
[0034] S43, importing the editing data of the current editor into the editing completion calculation formula to calculate the editing completion of the current editor, the editing completion calculation formula is:
[0035] ;
[0036] in, represents the editing frequency ratio, represents the editing frequency in the i-th time period, Indicates the total number of time periods for collecting and editing data. Indicates the standard editing frequency within a unit time period. represents the editing margin ratio, represents the editing amplitude in the i-th time period, Indicates the standard editing range within a unit time period. represents the time interval proportion coefficient, represents the jth time interval of the collection, Indicates the total number of time intervals collected. represents the standard time interval between two edits, e represents the base of the natural logarithm, ;
[0037] S44. Collect the historical editing data of the current editor, wherein the historical editing data includes the historical editing frequency, the historical editing amplitude and the historical time interval, calculate the historical editing completion of the current editor based on the historical editing data, take the average of the historical editing completion as the editing completion threshold, compare the calculated editing completion with the editing completion threshold, if the calculated editing completion is less than the editing completion threshold, determine that the document has not been edited, if the calculated editing completion is greater than or equal to the editing completion threshold, determine that the document has been edited.
[0038] Specifically, the prompting of the storage address of the edited document includes the following specific steps:
[0039] The document that is determined to have been edited and the target storage address of the document are obtained, and the storage address is prompted to the current editor.
[0040] A user document storage and processing system based on blockchain, used to implement a user document storage and processing method based on blockchain, including a data acquisition module, a data storage module, a document comprehensive importance calculation module, a storage address matching module, an editing completion calculation module, an editing completion judgment module, a storage prompt module and a control module;
[0041] Specifically, the control module is used to control the operation of the data acquisition module, the data storage module, the document comprehensive importance calculation module, the storage address matching module, the editing completion calculation module, the editing completion judgment module and the storage prompt module;
[0042] Specifically, the data collection module is used to collect original document data, document modification data, document size, editing data of the current modifier and historical editing data of the current editor;
[0043] The data storage module is used to store the collected original document data, document modification data, document size, editing data of the current modifier and historical editing data of the current editor;
[0044] The document comprehensive importance calculation module is used to import the document modification data into the document comprehensive importance calculation formula to calculate the document comprehensive importance;
[0045] The storage address matching module is used to import the comprehensive importance of the document and the size of the document into the document storage address matching formula to match the target storage address of the document;
[0046] The editing completion calculation module is used to import the editing data of the current editor into the editing completion calculation formula to calculate the editing completion of the current editor;
[0047] The editing completion judgment module is used to judge whether the document editing is completed according to the current editing habits of the editor;
[0048] The storage prompt module is used to prompt the storage address of the edited document.
[0049] Compared with the prior art, the beneficial effects of the present invention are: collecting original document data; collecting document modification data, and generating a document comprehensive importance judgment result according to a document comprehensive importance judgment model; judging the target storage address of the document according to a document storage matching model; judging whether the document has been edited according to the modification habits of the current editor; prompting the storage address of the edited document; the present invention first judges the target storage address based on the document importance, which helps to improve storage efficiency, and then judges the editing situation according to the modification habits of the editor, thereby improving the accuracy of judging the editing completion, and helps to provide more personalized editing support, and finally prompts the user to store the document based on the editing situation and the target storage address, which helps to improve work efficiency and optimize storage management. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0051] Figure 1 This is a flowchart of a user document storage and processing method based on blockchain in the present invention;
[0052] Figure 2 This is a schematic diagram of an implementation scenario of a user document storage and processing method based on blockchain of the present invention;
[0053] Figure 3 This is a schematic diagram of the overall framework of a blockchain-based user document storage and processing system of the present invention. DETAILED DESCRIPTION
[0054] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention belong to the scope of protection of the present invention.
[0055] In order to facilitate understanding of the technical process of the embodiment of the present invention, some terms involved in the embodiment are explained:
[0056] Blockchain: Blockchain is a distributed database technology that consists of a series of "blocks" arranged in chronological order. Each block contains a certain number of transaction records. The main features of blockchain include:
[0057] Decentralization: Data is distributed across multiple nodes, with no single central control point;
[0058] Immutability: Once data is recorded, it is almost impossible to change or delete it;
[0059] Transparency: All transactions are public and anyone can verify transaction records.
[0060] Metadata: Metadata is data about data. It provides information about other data, such as the source, creation time, content, size, format, etc. In the blockchain, metadata may include transaction timestamps, addresses of participants, transaction amounts, and other information.
[0061] Hash value: A hash value is a unique string of numbers and letters. It is a fixed-length output that is converted into data (such as text or files) through a hash function. The hash function has the following characteristics:
[0062] Determinism: The same input always produces the same output;
[0063] Irreversibility: It is almost impossible to reverse the hash value to derive the original data;
[0064] Collision resistance: It is difficult to find two different inputs that produce the same hash value.
[0065] Smart Contract: A smart contract is a computer program that automatically executes, controls or records legally relevant events and actions. It automatically executes the terms of the contract when the terms of the contract are met. Smart contracts usually run on the blockchain, and their execution is transparent, traceable and tamper-proof.
[0066] Encryption technology: Encryption technology is a technology used to protect information from unauthorized access. It involves using encryption algorithms to convert data into ciphertext. Only those with the correct key can convert the ciphertext back to the original data (plaintext). Encryption technology is the basis of blockchain security.
[0067] Distributed storage: Distributed storage is a data storage technology that stores data in multiple physical locations or nodes instead of concentrating it in a single location. This storage method improves the availability and fault tolerance of data because the system as a whole can continue to work even if some nodes fail. Blockchain technology is often used in conjunction with distributed storage to ensure the persistence and security of data.
[0068] Example 1
[0069] See also Figure 1 , an embodiment of the present invention provides: a user document storage and processing method based on blockchain, which includes the following specific steps:
[0070] Collect original document data;
[0071] In this embodiment, collecting original document data includes the following specific steps:
[0072] S11, collecting original document data, the original document data includes the original document name, original document content, the original document last modified by the original document, the original document access rights and the original document storage address;
[0073] S12. Storing the original document data in an original data storage module.
[0074] It should be specifically explained here that the specific steps for collecting original document data are: digitize the original document and calculate a hash value for the document data (hash algorithms such as SHA-256 can be used), which will serve as the fingerprint of the document; create a metadata record containing the document name, document hash value, last modified person, access rights and document storage address information; use encryption technology to protect sensitive information as needed (such as last modified person, access rights, etc., AES encryption algorithm can be used); submit the metadata record as a transaction to the blockchain network; manage metadata through the design of smart contracts, and define access and modification rules; deploy smart contracts on the blockchain to ensure that it can automatically perform related operations; users need to pass identity authentication to confirm that they have the right to access specific document information; users initiate query requests to the smart contract through the blockchain network to request the original information of the document;
[0075] Smart contracts provide the original document name, original document content, original document last modified person, original document access rights and original document storage address of the document based on the transaction hash value; smart contracts provide the hash value of the document content, and users verify the integrity of the document by comparing the hash value. The document content is usually stored in a distributed storage system (such as IPFS);
[0076] Users verify whether the information returned by the smart contract is consistent with the records on the blockchain; if a user has access to the document content, the original document content is retrieved from the distributed storage system according to the storage address provided by the smart contract; each time the document information is accessed, the smart contract records the visitor's information and timestamp for auditing.
[0077] Blockchain uses encryption technology to protect data, isolate unauthorized access or tampering, ensure the authenticity and credibility of data, and effectively prevent sensitive information from being leaked or illegally modified; each transaction on the blockchain carries a timestamp and information about the parties involved, providing a clear audit trail for each access and modification of the document, helping to track the change history of the document.
[0078] Collect document modification data and generate document comprehensive importance judgment results based on the document comprehensive importance judgment model;
[0079] In this embodiment, collecting document modification data and generating a document comprehensive importance judgment result according to a document comprehensive importance judgment model includes the following specific steps:
[0080] S21. Collect document modification data, which includes the current modifier, modification type and modification content. The current modifier includes employees, department group leaders and department supervisors. Modification types include addition, deletion and correction.
[0081] It should be specifically explained here that the specific steps for collecting document modification data are as follows: design and deploy a smart contract, including functions to record the modifier, modification type, and hash value of the modified content; when a document is modified, trigger the event recording function in the smart contract; pass in the identity of the modifier, modification type (such as edit, delete, add, etc.), hash value of the modified content, and timestamp; the smart contract records the modification as a new transaction record on the blockchain; users can obtain the modification history of the document by calling the query interface of the smart contract; users need to provide a document identifier (such as a document hash value or a transaction ID on the blockchain), and based on the modification record returned by the smart contract, users can obtain detailed information on each modification event; users can verify the modified content by comparing the hash value of the modified content with the actual content stored in the distributed storage system;
[0082] Smart contracts can automate the processing of document modification records, reduce manual intervention, improve processing speed and efficiency, and use blockchain technology to record and manage document modification data, providing a powerful and reliable tracking mechanism for the document life cycle.
[0083] S22, storing the document modification data in the modification data storage module;
[0084] S23. The document comprehensive importance judgment model includes a word importance calculation formula, which is:
[0085] ;
[0086] in, represents the number of occurrences of word T in document d, Expressive words Belongs to document d, i.e. word In document d, represents the total number of words in document d, Indicates the total number of collected documents. represents the total number of documents containing word T, It represents a function with power (real number) as the independent variable, exponent as the dependent variable, and base as a constant. The general form of the logarithmic function is y=log a x, where a is the base and x is a real number;
[0087] It should be specifically explained here that the calculation of word importance takes into account both the frequency of the word in the document and the importance of the word in the entire document collection. The greater the word importance, the more important the word is in the document.
[0088] S24, calculating the importance of words in the document, sorting the calculation results in descending order, obtaining the top ten key words in the sequence, and storing them in a collection data storage module in a collection manner;
[0089] S25. Import the document modification data into the document comprehensive importance calculation formula to calculate the document comprehensive importance, wherein the document comprehensive importance calculation formula is:
[0090] ;
[0091] in, Indicates the modification personnel ratio coefficient, Indicates the weight corresponding to the current editor. Indicates the modification type ratio, Indicates the weight corresponding to the modification type. Indicates the number of modified words. Indicates the modification content ratio, represents the set of ten key words contained in document d, Indicates that word w belongs to the set , represents the number of occurrences of word w in document d, .
[0092] Determine the target storage address of the document according to the document storage matching model;
[0093] In this embodiment, determining the target storage address of a document according to the document storage matching model includes the following specific steps:
[0094] S31, collecting the document size and storing it in the document data storage module;
[0095] S32. Import the comprehensive importance of the document and the size of the document into the document storage address matching formula to match the target storage address of the document. The document storage address matching formula is:
[0096] ;
[0097] in, Indicates the coefficient of comprehensive importance of the document, Indicates the minimum comprehensive importance of the document. Indicates the maximum comprehensive importance of the document. Indicates the document size ratio, Indicates the size of the document. Indicates the minimum value of the document size. Indicates the maximum size of a document. Indicates storage address The candidate set A that belongs to the storage address, Indicates filtering the storage address with the largest value as the target storage address of the document. .
[0098] It should be specifically noted here that the minimum value of the comprehensive importance of the document , the maximum value of comprehensive importance of documents , minimum document size and the maximum document size The collection steps are as follows: select 100 documents related to the current document and collect document data, obtain the document size and calculate the comprehensive importance of the document, and select the minimum value of the comprehensive importance of the document , select the maximum value of the comprehensive importance of the document as , select the minimum document size , select the maximum document size ;
[0099] It should be specifically noted that the candidate set A of the document storage address can be defined according to the storage architecture and policy of the organization. This embodiment lists some common storage address options:
[0100] Local Disk Storage: includes the internal hard disk of a server or personal computer;
[0101] Network Attached Storage (NAS): A dedicated file storage server that provides file-level data storage and access;
[0102] Storage Area Network (SAN): A high-speed, dedicated network that connects storage devices and servers and provides block-level data storage;
[0103] Cloud Storage: such as Amazon S3, Google Cloud Storage, Azure Blob Storage, etc.
[0104] Solid-state drive storage (SSD): provides faster data access speeds and is usually used for high-performance requirements;
[0105] Hard disk drive storage (HDD): provides large capacity storage at a relatively low cost, but is slower than SSD;
[0106] Tape Storage: used for long-term data archiving, low cost, but slow access speed;
[0107] Distributed File System (DFS): such as Hadoop Distributed File System (HDFS), used for processing large-scale data sets;
[0108] Object Storage: used to store large amounts of unstructured data, such as pictures, videos, etc.
[0109] Redundant Array of Independent Disks (RAID): provides data redundancy and performance improvements by combining multiple disks;
[0110] Based on different business requirements and document characteristics, possible combinations of candidate set A are listed:
[0111] A = {Local Disk Storage, NAS, Cloud Storage}
[0112] A = {SSD, HDD, Tape Storage}
[0113] A = {SAN, Cloud Storage, Object Storage}
[0114] A = {Local Disk Storage, NAS, RAID}
[0115] Determine whether the document has been edited based on the current editor's editing habits;
[0116] In this embodiment, judging whether the document has been edited according to the modification habits of the current editor includes the following specific steps:
[0117] S41, collecting the editing data of the current editor, the editing data including the editing frequency, editing amplitude and time interval;
[0118] It should be specifically explained here that the steps of collecting the editing data of the current editor are as follows: the editing frequency is the number of times the document is edited per unit time; the log recording function of the document management system or editing software is turned on, log data is collected regularly, logs are analyzed, and the number of edits is calculated;
[0119] The editing range is the number of characters or content added, deleted or changed in each edit; use version control tools or document comparison functions to detect document changes, compare version differences, and record the amount of changes;
[0120] The time interval is the length of time between two consecutive edits; extract the edit timestamps from the log, sort the timestamps, and calculate the time difference between adjacent edits;
[0121] S42, storing the editing data of the current editor in the editing data storage module;
[0122] S43, importing the editing data of the current editor into the editing completion degree calculation formula to calculate the editing completion degree of the current editor, the editing completion degree calculation formula is:
[0123] ;
[0124] in, represents the editing frequency ratio, represents the editing frequency in the i-th time period, Indicates the total number of time periods for collecting and editing data. Indicates the standard editing frequency within a unit time period. represents the editing margin ratio, represents the editing amplitude in the i-th time period, Indicates the standard editing range within a unit time period. represents the time interval proportion coefficient, represents the jth time interval of the collection, Indicates the total number of time intervals collected. represents the standard time interval between two edits, e represents the base of the natural logarithm, ;
[0125] It should be specifically noted here that the closer the editing completion degree is to 1, the more likely the document has been edited;
[0126] The standard editing frequency per unit time period The acquisition steps are as follows: define a standard time period, such as every hour or every day, enable the log recording function of the document editing software, extract the timestamp of the editing operation from the log, group the editing operations according to the defined time period, count the number of edits in each time period, and calculate the average number of edits in each time period as the standard editing frequency;
[0127] Standard editing range per unit time period The steps of obtaining the standard editing range are as follows: define a standard time period, such as every hour or every day, determine how to quantify the editing range, such as by character changes, paragraph changes, etc., use version control tools or document comparison functions to record the document differences before and after each editing, quantify the differences of each editing, summarize the editing range of each time period, and calculate the average editing range in each time period as the standard editing range;
[0128] Standard time interval between edits The acquisition steps are: extract the timestamp of each editing operation from the editing log, sort the timestamps, calculate the time difference between consecutive editing operations, summarize all time intervals, and calculate the average of all time intervals as the standard time interval.
[0129] It should be specifically noted that in this embodiment, the personnel ratio coefficient is modified. , Modify the type ratio , Modify content ratio , The corresponding weight of the current editor , Modify the weight corresponding to the type , Document comprehensive importance ratio , Document size ratio , Editing frequency ratio , editing margin ratio and the time interval ratio The value-taking steps are as follows: select 500 documents, collect original document data and document modification data, import the document modification data into the document comprehensive importance calculation formula to calculate the document comprehensive importance; import the document comprehensive importance and document size into the document storage address matching formula to match the target storage address of the document; import the editing data of the current modifier into the editing completion calculation formula to calculate the editing completion of the current modifier, and judge the editing completion status of the document according to the modification habits of the current modifier; track the subsequent editing status of these 500 documents, record the actual editing completion status, import the actual editing completion status of the document and the judged editing completion status into the fitting software to output a group of modifier proportion coefficients with the highest similarity , Modify the type ratio , Modify content ratio , The corresponding weight of the current editor , Modify the weight corresponding to the type , Document comprehensive importance ratio , Document size ratio , Editing frequency ratio , editing margin ratio and the time interval ratio The value of .
[0130] S44. Collect the historical editing data of the current editor, the historical editing data includes the historical editing frequency, historical editing amplitude and historical time interval, calculate the historical editing completion of the current editor based on the historical editing data, take the average of the historical editing completion as the editing completion threshold, compare the calculated editing completion with the editing completion threshold, if the calculated editing completion is less than the editing completion threshold, judge that the document is not edited, if the calculated editing completion is greater than or equal to the editing completion threshold, judge that the document is edited.
[0131] Prompt the storage address of the edited document.
[0132] In this embodiment, prompting the storage address of the edited document includes the following specific steps:
[0133] The document that is determined to have been edited and the target storage address of the document are obtained, and the storage address is prompted to the current editor.
[0134] It should be specifically explained here that the specific steps for prompting the current editor of the storage address are: a prompt window pops up in the user interface to prompt the user to save the document. The prompt window includes: selection of the storage location (if it is an automatic system, the default storage location is displayed), prompts for file naming rules, a save button for confirming the storage operation, and a cancel button for canceling the storage operation; after reading the prompt information, the user can choose to confirm the storage location and file name, and then click the save button. If the user needs to change the storage location or file name, an interface is provided for the user to enter or select; once the user confirms, the system will execute the storage operation and save the document to the specified location. During the storage process, a progress bar or other indicator can be displayed to notify the user of the storage progress. After the storage is completed, a prompt message is displayed to inform the user that the document has been successfully saved to the specified location. The prompt information includes the storage path, file name and confirmation button; the storage details are recorded in the background, including the storage path, file name, timestamp and editor information for version control and audit tracking of the document.
[0135] See also Figure 2An implementation scenario of a user document storage and processing method based on blockchain includes multiple computer devices. The computer devices are multiple node devices in the blockchain system. Each node device can execute one or more steps in a user document storage and processing method based on blockchain in this embodiment. The multiple node devices can be client devices used by any user, and the user can edit documents on the client device; the multiple node devices can also include at least one storage node device and at least one data processing node device. The storage node device can be used to provide data storage services, and the data processing node device can be used to provide document data query services.
[0136] Example 2
[0137] See also Figure 3 , a user document storage processing system based on blockchain, used to implement a user document storage processing method based on blockchain, including a data acquisition module, a data storage module, a document comprehensive importance calculation module, a storage address matching module, an editing completion calculation module, an editing completion judgment module, a storage prompt module and a control module;
[0138] In this embodiment, the control module is used to control the operation of the data acquisition module, the data storage module, the document comprehensive importance calculation module, the storage address matching module, the editing completion calculation module, the editing completion judgment module and the storage prompt module;
[0139] In this embodiment, the data collection module is used to collect original document data, document modification data, document size, editing data of the current editor, and historical editing data of the current editor;
[0140] The data storage module is used to store the collected original document data, document modification data, document size, editing data of the current editor and historical editing data of the current editor;
[0141] The document comprehensive importance calculation module is used to import document modification data into the document comprehensive importance calculation formula to calculate the document comprehensive importance;
[0142] The storage address matching module is used to import the comprehensive importance of the document and the size of the document into the document storage address matching formula to match the target storage address of the document;
[0143] The editing completion calculation module is used to import the editing data of the current editor into the editing completion calculation formula to calculate the editing completion of the current editor;
[0144] The editing completion judgment module is used to judge whether the document has been edited according to the current editor's modification habits;
[0145] The storage prompt module is used to prompt the storage address of the edited document.
[0146] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the present invention can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.
[0147] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0148] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of units is only one way. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces. The indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0149] In the description of this specification, the descriptions with reference to the terms "one embodiment", "example", "specific example", etc. mean that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic expressions of the above terms do not necessarily refer to the same embodiment or example, and the specific features, structures, materials or characteristics described may be combined in an appropriate manner in any one or more embodiments or examples.
[0150] The preferred embodiments of the present invention disclosed above are only used to help explain the present invention. The preferred embodiments do not describe all the details in detail, nor do they limit the invention to only specific implementation methods. Obviously, many modifications and changes can be made according to the contents of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that technicians in the relevant technical field can well understand and use the present invention. The present invention is only limited by the claims and their full scope and equivalents.
Claims
1. A user document storage and processing method based on blockchain, characterized in that: The specific steps include: Collect original document data; Collect document modification data and generate document comprehensive importance judgment results based on the document comprehensive importance judgment model; Determine the target storage address of the document according to the document storage matching model; Determine whether the document has been edited based on the current editor's editing habits; Prompt the storage address of the edited document; The collecting of document modification data and generating a document comprehensive importance judgment result according to a document comprehensive importance judgment model comprises the following specific steps: S21, collecting document modification data, the document modification data includes the current modifier, modification type and modification content, the current modifier includes employees, department group leaders and department supervisors, and the modification type includes addition, deletion and correction; S22, storing the document modification data in the modification data storage module; S23. The document comprehensive importance judgment model includes a word importance calculation formula, which is: ; in, represents the number of occurrences of word T in document d, Expressive words belongs to document d, represents the total number of words in document d, Indicates the total number of collected documents. represents the total number of documents containing word T, It represents a function with power (real number) as independent variable, exponent as dependent variable, and base as constant; S24, calculating the importance of words in the document, sorting the calculation results in descending order, obtaining the top ten key words in the sequence, and storing them in a collection data storage module in a collection manner; S25. Import the document modification data into the document comprehensive importance calculation formula to calculate the document comprehensive importance, wherein the document comprehensive importance calculation formula is: ; in, Indicates the modification personnel ratio coefficient, Indicates the weight corresponding to the current editor. Indicates the modification type ratio, Indicates the weight corresponding to the modification type. Indicates the number of modified words. Indicates the modification content ratio, represents the set of ten key words contained in document d, Indicates that word w belongs to the set , represents the number of occurrences of word w in document d, ; Determining the target storage address of a document according to the document storage matching model comprises the following specific steps: S31, collecting the document size and storing it in the document data storage module; S32, importing the comprehensive importance of the document and the size of the document into a document storage address matching formula to match the target storage address of the document, the document storage address matching formula is: ; in, Indicates the coefficient of comprehensive importance of the document, Indicates the minimum comprehensive importance of the document. Indicates the maximum comprehensive importance of the document. Indicates the document size ratio, Indicates the size of the document. Indicates the minimum value of the document size. Indicates the maximum size of a document. Indicates storage address The candidate set A that belongs to the storage address, Indicates filtering the storage address with the largest value as the target storage address of the document. ; The step of judging whether the document has been edited according to the modification habits of the current editor includes the following specific steps: S41, collecting the editing data of the current editor, wherein the editing data includes editing frequency, editing amplitude and time interval; S42, storing the editing data of the current editor in the editing data storage module; S43, importing the editing data of the current editor into the editing completion calculation formula to calculate the editing completion of the current editor, the editing completion calculation formula is: ; in, represents the editing frequency ratio, represents the editing frequency in the i-th time period, Indicates the total number of time periods for collecting and editing data. Indicates the standard editing frequency within a unit time period. represents the editing margin ratio, represents the editing amplitude in the i-th time period, Indicates the standard editing range within a unit time period. represents the time interval proportion coefficient, represents the jth time interval of the collection, Indicates the total number of time intervals collected. represents the standard time interval between two edits, e represents the base of the natural logarithm, ; S44. Collect the historical editing data of the current editor, wherein the historical editing data includes the historical editing frequency, the historical editing amplitude and the historical time interval, calculate the historical editing completion of the current editor based on the historical editing data, take the average of the historical editing completion as the editing completion threshold, compare the calculated editing completion with the editing completion threshold, if the calculated editing completion is less than the editing completion threshold, determine that the document has not been edited, if the calculated editing completion is greater than or equal to the editing completion threshold, determine that the document has been edited.
2. A user document storage and processing method based on blockchain as claimed in claim 1, characterized in that: The prompting of the storage address of the edited document includes the following specific steps: The document that is determined to have been edited and the target storage address of the document are obtained, and the storage address is prompted to the current editor.
3. A user document storage and processing method based on blockchain as claimed in claim 2, characterized in that: The acquisition of original document data includes the following specific steps: S11, collecting original document data, wherein the original document data includes the original document name, original document content, the person who last modified the original document, the original document access rights, and the original document storage address; S12. Storing the original document data in an original data storage module.
4. A user document storage and processing system based on blockchain, used to implement the user document storage and processing method based on blockchain as claimed in any one of claims 1 to 3, characterized in that: It includes data acquisition module, data storage module, document comprehensive importance calculation module, storage address matching module, editing completion calculation module, editing completion judgment module, storage prompt module and control module; The data collection module is used to collect original document data, document modification data, document size, editing data of the current editor and historical editing data of the current editor; The data storage module is used to store the collected original document data, document modification data, document size, editing data of the current modifier and historical editing data of the current editor; The document comprehensive importance calculation module is used to import the document modification data into the document comprehensive importance calculation formula to calculate the document comprehensive importance; The storage address matching module is used to import the comprehensive importance of the document and the size of the document into the document storage address matching formula to match the target storage address of the document.
5. A user document storage and processing system based on blockchain as claimed in claim 4, characterized in that: The editing completion calculation module is used to import the editing data of the current editor into the editing completion calculation formula to calculate the editing completion of the current editor; The editing completion judgment module is used to judge whether the document editing is completed according to the current editing habits of the editor; The storage prompt module is used to prompt the storage address of the edited document; The control module is used to control the operation of the data acquisition module, the data storage module, the document comprehensive importance calculation module, the storage address matching module, the editing completion calculation module, the editing completion judgment module and the storage prompt module.
Citation Information
Patent Citations
Implementation of electronic document collaborative editor
CN103092820A
Information acquisition method and device and computer readable storage medium
CN109842593A