CN117971795A - Multi-level associated file retrieving and storing method - Google Patents

Multi-level associated file retrieving and storing method Download PDF

Info

Publication number
CN117971795A
CN117971795A CN202410163287.3A CN202410163287A CN117971795A CN 117971795 A CN117971795 A CN 117971795A CN 202410163287 A CN202410163287 A CN 202410163287A CN 117971795 A CN117971795 A CN 117971795A
Authority
CN
China
Prior art keywords
file
layer
local
block chain
editing result
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.)
Pending
Application number
CN202410163287.3A
Other languages
Chinese (zh)
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.)
Shaanxi Juwei Book Culture Communication Co ltd
Original Assignee
Shaanxi Juwei Book Culture Communication 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 Shaanxi Juwei Book Culture Communication Co ltd filed Critical Shaanxi Juwei Book Culture Communication Co ltd
Priority to CN202410163287.3A priority Critical patent/CN117971795A/en
Publication of CN117971795A publication Critical patent/CN117971795A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a multi-level associated file retrieving and storing method, which comprises the following steps: establishing data connection between a cloud storage layer and a local file layer through a network technology and a blockchain technology; operating a local file layer through a local application layer to edit text; setting a semantic retrieval system on the cloud storage layer; the text editing result is automatically backed up to a cloud storage layer through a local application layer after being stored; the text file of the cloud storage layer is modified through the local application layer; the text file is downloaded and opened through the local application layer. According to the invention, the WebSocket technology is utilized to realize seamless integration of the cloud storage layer and the local file layer, so that data transmission is more efficient and stable; free editing can be performed on a local file layer, and file loss or version confusion is not worried about; the multi-node consensus of data transmission is realized through a block chain technology, and the data security and non-falsification are ensured.

Description

Multi-level associated file retrieving and storing method
Technical Field
The invention relates to the technical field of data processing, in particular to a multi-level associated file retrieving and storing method.
Background
For book research and development type enterprises, file storage in different time periods is an important problem to be solved in the research and development process of book contents. In a conventional book editing and correcting process, three-examination and three-correction links are generally needed, and modification and adjustment of a plurality of links are involved. Therefore, the problem of storing files in each link is particularly critical. Once the file usage in one of the links is in error, a series of errors may occur in the subsequent editing and correcting links. In addition, if the storage of the redacted files of each link is disordered, the manuscript of the subsequent problem can not trace the source.
In the prior art, a computer or a mobile hard disk is generally used for storing and managing files, and a management mode has a large risk. Equipment failure may result in file loss or corruption, which may be troublesome and costly to work. The storage mode is easy to make errors, and has the problems that a history file cannot be traced back to the source, the history file is difficult to find, the record is difficult to modify and the like.
Disclosure of Invention
The embodiment of the invention provides a multi-level associated file retrieving and storing method, which is used for solving the problems that a history file cannot trace back and trace, find the history file and modify records difficultly in the prior art.
In one aspect, an embodiment of the present invention provides a method for retrieving and storing a multi-level association file, including:
establishing a plurality of blockchain nodes on network connection between a cloud storage layer and a local file layer through a blockchain technology;
Setting a semantic retrieval system on the cloud storage layer;
Operating a local file layer through a local application layer to carry out text editing and text labeling on the file;
The historical process of the text editing of the file is backed up to the cloud storage layer through the network connection;
The editing result of the text editing of the file is automatically backed up to the cloud storage layer through the local file layer after being stored through the local application layer;
Broadcasting the history process and the editing result to all the block link points through a plurality of block chain nodes to perform block link point consensus;
the editing result stored by the cloud storage layer is modified by controlling the local file layer through the local application layer;
and the editing result and the history process control the local file layer to search and download through the local application layer.
In one possible implementation, the network connection is performed by WebSocket, and the semantic retrieval system is a Bert-based semantic retrieval; the local file layer is file editing software running locally, and the local application layer is operation software for operating the local file layer.
In one possible implementation manner, the local application layer includes an operation interface unit, an information transmission unit, a local storage unit and an operation unit.
In one possible implementation manner, the operation interface unit is used for displaying operation content of the operation unit, the information transmission unit is used for transmitting file information, the local storage unit is used for backing up the file information, and the operation unit is used for controlling the local file layer to modify and finalize.
In a possible implementation, the information transfer unit is further configured to number the file name of the file information.
In a possible implementation manner, the history process and the editing result are backed up and stored in the cloud storage layer, the local application layer searches the history process and the editing result through semantic search, and the local file layer downloads the history process and the editing result through WebSocket.
In one possible implementation, broadcasting the history process and the editing result to all the block link points through a plurality of the block chain nodes for block link point consensus further includes:
Broadcasting the history process and the editing result to all the block link points by the plurality of block link points for consensus;
After consensus is carried out through a consensus mechanism, the operation records of the history process and the editing result are recorded in a new block chain node;
the new block chain node verifies the accuracy of the history process and the editing result;
The new block chain link point stores the history process and the editing result and forwards the history process and the editing result to the next block chain node;
and each block chain node receives the data of other block chain nodes, performs workload demonstration operation, and generates a new block chain node by the node which completes the operation first.
In one possible implementation, a timestamp is included in the new block chain node, the timestamp describing the new block chain node generation time.
In one possible implementation, the new block chain node includes an edit user ID and an edit time of the history process and the edit result.
The multi-level associated file retrieving and storing method has the following advantages:
(1) By using the WebSocket technology, seamless integration of the cloud storage layer and the local file layer is realized, so that data transmission between the cloud storage layer and the local file layer is more efficient and stable.
(2) Each link of book editing and correcting is subjected to blockchain consensus and recording through a blockchain technology, so that the history operation can not be changed and can be traced.
(3) And quickly searching the history file and modifying the record by combining semantic search with the cloud storage layer.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a multi-level associated file retrieval and storage method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of each level of association in a multi-level association file retrieving and storing method according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but 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.
FIG. 1 is a schematic flow chart of a multi-level associated file retrieval and storage method according to an embodiment of the present invention; the embodiment of the invention provides a multi-level associated file retrieving and storing method, which comprises the following steps:
establishing a plurality of blockchain nodes on network connection between a cloud storage layer and a local file layer through a blockchain technology;
Setting a semantic retrieval system on the cloud storage layer;
Operating a local file layer through a local application layer to carry out text editing and text labeling on the file;
The historical process of the text editing of the file is backed up to the cloud storage layer through the network connection;
The editing result of the text editing of the file is automatically backed up to the cloud storage layer through the local file layer after being stored through the local application layer;
Broadcasting the history process and the editing result to all the block link points through a plurality of block chain nodes to perform block link point consensus;
the editing result stored by the cloud storage layer is modified by controlling the local file layer through the local application layer;
The editing result and the history process control the local file layer to search and download through the local application layer; the network connection is performed through WebSocket, and the semantic retrieval system is based on the semantic retrieval of Bert; the local file layer is file editing software running locally, and the local application layer is operation software for operating the local file layer; the local application layer comprises an operation interface unit, an information transmission unit, a local storage unit and an operation unit; the operation interface unit is used for displaying the operation content of the operation unit, the information transmission unit is used for transmitting file information, the local storage unit is used for backing up the file information, and the operation unit is used for controlling the local file layer to carry out modification and finalization; the information transmission unit is also used for numbering the file name of the file information; the history process and the editing result are backed up and stored in the cloud storage layer, the local application layer searches the history process and the editing result through semantic search, and the local file layer downloads the history process and the editing result through a WebSocket.
For example, as shown in fig. 1 and 2, the cloud storage layer is connected to a local file layer through WebSocket, and the local file layer may be a wps document processing system. And a plurality of block chain nodes are arranged between the local file layer and the cloud storage layer, the block chain nodes broadcast data information of the file to all the block chain nodes, and the operation event of the file is recorded in a new block by a consensus mechanism so as to ensure that the operation history of the file can be traced.
The historical process and the editing result are broadcast to all the block chain link points through a plurality of block chain nodes to carry out block chain link point consensus through a POW (workload proof) technology in a block chain technology, the block chain node generating a new block is selected through workload operation, and then the obtained historical process and the editing result are stored and broadcast through the new block chain link point, so that the historical process and the editing result are consensus among all the block chain nodes through a consensus protocol. And storing the obtained historical process and the editing result by the new block link point and simultaneously storing a time stamp.
The text labels are used for quickly searching files through a retrieval system, the local application layer is used for reading the files edited and modified by the local file layer, and the local application layer automatically identifies and opens various text documents through the local file layer. The local application layer edits and modifies the history operation of the file through the local file layer, namely the history process is transmitted to the cloud storage layer in real time through the WebSocket and broadcast consensus is carried out through the block chain link points during transmission, after the file editing is finished, the file finalization is transmitted to the cloud storage layer for archiving through the WebSocket, consensus is carried out through the finalization and the history operation through the block chain link points, and the fact that the finalization and the history operation cannot be modified and can be traced is guaranteed.
And storing the file finalization and the historical operation of modifying the text file in the cloud storage layer, searching by a semantic search system based on Bert, and identifying similar words by semantic association to perform quick search operation. The semantic search can be performed without keywords during the search, so that the semantic search is conveniently performed on files and history processes stored in the cloud storage layer in front of the storage time, the search error caused by fuzzy keyword memory of operators is reduced, and the semantic search can be also used for searching files forgetting text labels according to the approximate content of the files.
The local application layer comprises an operation interface unit, an information transmission unit, a local storage unit and an operation unit, and the operation interface unit controls the operation unit to operate the local file layer to edit, modify and store the file. The information transmission unit performs naming numbering according to the content of the file when transmitting the file. The naming numbers are sequentially set according to the modification times and the finalization times, and then are transmitted to the cloud storage layer through the information transmission unit and are backed up in the local storage unit.
The local application layer and the local file layer are correspondingly arranged in a plurality of mode, one cloud storage layer is arranged and arranged at the cloud. And the local application layers and the local file layers edit and modify the files at the same time, store the editing and modifying process to the cloud storage layer, and then name the files according to serial numbers. And editing and modifying the files by the local application layers and the local file layers to finally obtain a unique result file which is used as an editing result to be stored in the cloud storage layer and named.
In one possible embodiment, broadcasting the history process and the editing result to all the block link points through a plurality of the block chain nodes for block link point consensus further comprises: broadcasting the history process and the editing result to all the block link points by the plurality of block link points for consensus; after consensus is carried out through a consensus mechanism, the operation records of the history process and the editing result are recorded in a new block chain node; the new block chain node verifies the accuracy of the history process and the editing result; the new block chain link point stores the history process and the editing result and forwards the history process and the editing result to the next block chain node; each block chain node receives data of other block chain nodes and then performs workload demonstration operation, and the node which completes the operation first generates a new block chain node; the new block chain node comprises a time stamp, and the time stamp records the generation time of the new block chain node; and the new block chain node comprises the historical process, the editing user ID of the editing result and the editing time.
Illustratively, the plurality of block link points broadcast the history process and the editing result to all the block link points for consensus so as to prevent the uploaded history process and editing result from being artificially modified and damaged, so that the history process and editing result can be traced back, and the history process and editing result can be ensured to be non-modifiable. The time stamp is used for guaranteeing the accuracy of the new block chain node and tracing the generation of the history process and the editing result, and the editing user ID and the editing time are used for tracing the modifier and the modification time of the history process and the editing result.
Broadcasting the history process and the editing result to all the block chain link points by the plurality of block chain link points for consensus, namely firstly enabling the block chain nodes to obtain the authority of generating new block chain nodes through workload operation, then storing the history process and the editing result in the generated new block chain nodes, and broadcasting the history process and the editing result to all the block chain nodes for consensus through broadcasting, so as to prevent the uploaded history process and editing result from being artificially modified and damaged. The consensus is to verify the accuracy of the history process and the editing result first, and then forward the history process and the editing result to the next blockchain node.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (9)

1. A multi-level associative file retrieval and storage method, comprising:
establishing a plurality of blockchain nodes on network connection between a cloud storage layer and a local file layer through a blockchain technology;
Setting a semantic retrieval system on the cloud storage layer;
Operating a local file layer through a local application layer to carry out text editing and text labeling on the file;
The historical process of the text editing of the file is backed up to the cloud storage layer through the network connection;
The editing result of the text editing of the file is automatically backed up to the cloud storage layer through the local file layer after being stored through the local application layer;
Broadcasting the history process and the editing result to all the block link points through a plurality of block chain nodes to perform block link point consensus;
the editing result stored by the cloud storage layer is modified by controlling the local file layer through the local application layer;
and the editing result and the history process control the local file layer to search and download through the local application layer.
2. The multi-level associative file retrieval and storage method according to claim 1, wherein the network connection is performed by WebSocket, and the semantic retrieval system is a Bert-based semantic retrieval; the local file layer is file editing software running locally, and the local application layer is operation software for operating the local file layer.
3. The method for retrieving and storing multi-level associative files according to claim 2, wherein the local application layer includes an operation interface unit, an information transfer unit, a local storage unit, and an operation unit.
4. A multi-hierarchy associated file retrieval and storage method according to claim 3, wherein the operation interface unit is used for displaying the operation content of the operation unit, the information transmission unit is used for transmitting file information, the local storage unit is used for backing up the file information, and the operation unit is used for controlling the local file layer to modify and finalize.
5. The multi-hierarchy related file retrieval and storage method of claim 4, wherein the information delivery unit is further configured to perform file name numbering on the file information.
6. The method for retrieving and storing multi-level associated files according to claim 1, wherein the history process and the editing result are backed up and stored in the cloud storage layer, the local application layer retrieves the history process and the editing result through semantic retrieval, and the local file layer downloads the history process and the editing result through WebSocket.
7. The method of claim 1, wherein broadcasting the history and the editing result to all the blockchain links by a plurality of blockchain nodes for blockchain link point consensus further comprises:
Broadcasting the history process and the editing result to all the block link points by the plurality of block link points for consensus;
After consensus is carried out through a consensus mechanism, the operation records of the history process and the editing result are recorded in a new block chain node;
the new block chain node verifies the accuracy of the history process and the editing result;
The new block chain link point stores the history process and the editing result and forwards the history process and the editing result to the next block chain node;
and each block chain node receives the data of other block chain nodes, performs workload demonstration operation, and generates a new block chain node by the node which completes the operation first.
8. The method of claim 7, wherein the new block chain node includes a time stamp, and wherein the time stamp records a time of generation of the new block chain node.
9. The method of claim 7, wherein the new block chain node includes an edit user ID and edit time of the history process and the edit result.
CN202410163287.3A 2024-02-05 2024-02-05 Multi-level associated file retrieving and storing method Pending CN117971795A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410163287.3A CN117971795A (en) 2024-02-05 2024-02-05 Multi-level associated file retrieving and storing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410163287.3A CN117971795A (en) 2024-02-05 2024-02-05 Multi-level associated file retrieving and storing method

Publications (1)

Publication Number Publication Date
CN117971795A true CN117971795A (en) 2024-05-03

Family

ID=90857818

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410163287.3A Pending CN117971795A (en) 2024-02-05 2024-02-05 Multi-level associated file retrieving and storing method

Country Status (1)

Country Link
CN (1) CN117971795A (en)

Similar Documents

Publication Publication Date Title
US10755234B2 (en) System and method for offline synchronization of exception items of shared services for client applications
US5600834A (en) Method and apparatus for reconciling different versions of a file
CA2595922C (en) Managing the status of documents in a distributed storage system
CN108932282B (en) Database migration method and device and storage medium
US5909689A (en) Automatic update of file versions for files shared by several computers which record in respective file directories temporal information for indicating when the files have been created
CN101093497B (en) Document management server, document management method, and system for managing document use
US8364642B1 (en) Managing disconnected investigations
US20030037114A1 (en) System, method and apparatus for updating electronic mail recipient lists
JP5344460B2 (en) EDITING DEVICE, EDITING PROGRAM, AND EDITING METHOD
CN1692356B (en) Systems and methods for restriping files in a distributed file system
US10936548B2 (en) File synchronization pausing for individual files
US8589353B2 (en) Method for backing up terminal data and system thereof
JP2015216630A (en) Method for integrating, synchronizing and streaming generated content for distributed editing of media configuration
JP2006244493A (en) File system expressed in data base
EP1422901A1 (en) Client driven synchronization of file and folder content in web publishing
CN107016047A (en) Document query, document storing method and device
CN112860777B (en) Data processing method, device and equipment
CN110633250B (en) Resource management system and method
US6976030B2 (en) System and method for synchronizing distributed stored documents
US9471588B1 (en) Managing file changes made during a review process
Rong et al. DevDocOps: towards automated documentation for DevOps
CN105512039A (en) Software test request form generating method and device
US20210255998A1 (en) Method for object management using trace identifier, apparatus for the same, computer program for the same, and recording medium storing computer program thereof
EP3518120B1 (en) Indexing media asset aggregates in a multi-database environment
CN117971795A (en) Multi-level associated file retrieving and storing method

Legal Events

Date Code Title Description
PB01 Publication