Document type knowledge storage method and device, equipment and medium
By receiving and processing document data in the first database, generating a text content table, and storing it in the second database, using the rapid search function of the second database, the problem of low document-based knowledge storage and search efficiency is solved, and efficient document-based knowledge retrieval is achieved.
Patent Information
- Application Number
- CN202411991528.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-04-22
AI Technical Summary
The storage and search efficiency of document-based knowledge in the prior art is low, which makes it take a long time to find document-based knowledge, cumbersome manual comparison, and low utilization rate.
The document data stored by the user is received through the preset first database, the text content table is determined based on the document data, and the text content data is stored in the preset second database, and the second database is used to quickly search based on the title and content.
The search speed and efficiency of document-based knowledge are improved, and the problem of low storage and search efficiency of document-based knowledge in the prior art is solved, so as to realize efficient storage and retrieval of document-based knowledge.
Smart Images

Figure CN119862247A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of document storage technology, and in particular to a document-type knowledge storage method, device, equipment and medium. Background Art
[0002] Document-based knowledge is knowledge content stored and presented in the form of documents. Document-based knowledge contains information in various forms such as text, maps, and charts, and document-based knowledge usually has a certain structure and organization to be systematically displayed and expressed. Due to the complexity of the structure and information of document-based knowledge, and the fact that document-based knowledge is stored in the form of documents, when searching for document knowledge, only the document title can be searched first, and then the document content is compared to confirm whether the search results are correct. This results in a long time to search for document-based knowledge. Furthermore, when processing massive document knowledge, manual comparison is very cumbersome and almost impossible to complete, resulting in inconvenience in searching for document knowledge and low utilization rate. Summary of the invention
[0003] The present invention provides a document-based knowledge storage method, device, equipment and medium to solve the technical problem of low efficiency in document-based knowledge storage and search in the prior art.
[0004] According to one aspect of the present invention, a document-based knowledge storage method is provided, comprising:
[0005] Receiving document data stored by a user through a preset first database, and determining a text content table according to the document data;
[0006] Reading the text content table according to a preset time period to determine the text content data corresponding to the document data;
[0007] The text content data is stored in a preset second database.
[0008] According to another aspect of the present invention, there is provided a document-type knowledge storage device, comprising:
[0009] A first storage module, used to receive document data stored by a user through a preset first database, and determine a text content table according to the document data;
[0010] A reading module, used to read the text content table according to a preset time period to determine the text content data corresponding to the document data;
[0011] The second storage module is used to store the text content data in a preset second database.
[0012] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0013] at least one processor; and
[0014] a memory communicatively connected to the at least one processor; wherein,
[0015] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the document-type knowledge storage method described in any embodiment of the present invention.
[0016] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to implement the document-type knowledge storage method described in any embodiment of the present invention when executed by a processor.
[0017] The technical solution of the embodiment of the present invention receives document data stored by the user through a preset first database, determines a text content table according to the document data, parses document-type knowledge through the document content table, and can effectively store the text content in the document data; reads the text content table according to a preset time period to determine the text content data corresponding to the document data; and stores the text content data in a preset second database. The document-type knowledge is stored in the second database, and in the second database, it only needs to be retrieved based on the title and content, without comparing the document content one by one, which solves the technical problem of low efficiency in storage and search of document-type knowledge in the prior art, can effectively store document-type knowledge, and provide retrieval of document-type knowledge, thereby improving the retrieval speed and efficiency of document-type knowledge.
[0018] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0020] Figure 1 A flowchart of a document-based knowledge storage method is provided for an embodiment of the present invention;
[0021] Figure 2 A flowchart of another document-based knowledge storage method provided by an embodiment of the present invention;
[0022] Figure 3 A schematic diagram of a process flow of document-based knowledge storage provided by the present invention;
[0023] Figure 4 A schematic diagram of the structure of a document-type knowledge storage device provided by an embodiment of the present invention;
[0024] Figure 5 A schematic structural diagram of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0025] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0027] Figure 1 The present invention provides a flowchart of a document-type knowledge storage method. This embodiment is applicable to the case where document-type knowledge is converted from a traditional relational database storage method to a knowledge content storage method. The method can be executed by a document-type knowledge storage device. The document-type knowledge storage device can be implemented in the form of hardware and / or software. The document-type knowledge storage device can be configured in an electronic device. Figure 1 As shown, the method includes:
[0028] S110: Receive document data stored by a user through a preset first database, and determine a text content table according to the document data.
[0029] The preset first database may be a database pre-set to store document data. It should be noted that the first database may be a pre-created relational database, and illustratively, the first database may be a relational database such as Oracle, Mysql, and SQL Server.
[0030] Among them, document data can be document-type knowledge; document-type knowledge is knowledge content stored and presented in the form of documents. Document-type knowledge contains information in various forms such as text, maps and charts, and document-type knowledge usually has a certain structure and organization. Document-type knowledge is displayed and expressed in a systematic manner.
[0031] The text content table may be a temporary table for storing text content in the document data in the first database. It should be noted that the document data is document-type knowledge, and there are certain words in the document data. In the first database, a temporary table for storing text content in the document data is pre-created, and the words in the document data are stored in the temporary table to obtain a text content table for storing text content.
[0032] Optionally, the document data of the first database is obtained by user input or import. The user can write the document data through a word processing tool, or the user can obtain the document data by scanning physical text. In the visual interface provided by the first database, the user can input text data or select the data import function to input the document data into the first database.
[0033] Specifically, after obtaining document data, the user inputs or imports the document data into the first database, receives the document data stored by the user through the first database, and determines the text content table according to the document data.
[0034] S120: Read the text content table according to a preset time period to determine the text content data corresponding to the document data.
[0035] The text content data may be text content in the document data.
[0036] The preset time period may be an actual period preset for storing document data. It should be noted that, at every preset time period, the text content table in the first database is read to obtain text content data in the text content table in the first database.
[0037] Specifically, when the text content table is read according to a preset time period, the text content table is read one by one according to the preset time period, so as to obtain the text content data corresponding to the document data in the text content table.
[0038] S130: Storing the text content data in a preset second database.
[0039] Among them, the preset second database can be a pre-set distributed database. Exemplarily, the second database can be an Elasticsearch database. The Elasticsearch database can run on multiple servers to achieve horizontal expansion. Data can be distributed on multiple nodes to improve storage capacity and query performance; the Elasticsearch database supports fast retrieval of various text data.
[0040] Specifically, the text content data obtained in the text content table is stored in a preset second database.
[0041] Optionally, by setting a scheduled task to read the text content table according to a preset time period, the text content data in the text content table can be read and the text content data can be updated to the second database. The scheduled task execution time interval is one minute. If it is detected in the second database that the text content data has not been synchronized, the scheduled task will re-execute the synchronization and read the text content table again; if the second database confirms that the text content data is stored, the text content data in the text content table is deleted.
[0042] The technical solution of the embodiment of the present invention receives document data stored by the user through a preset first database, determines a text content table according to the document data, parses document-type knowledge through the document content table, and can effectively store the text content in the document data; reads the text content table according to a preset time period to determine the text content data corresponding to the document data; and stores the text content data in a preset second database. The document-type knowledge is stored in the second database, and in the second database, it only needs to be retrieved based on the title and content, without comparing the document content one by one, which solves the technical problem of low efficiency in storage and search of document-type knowledge in the prior art, can effectively store document-type knowledge, and provide retrieval of document-type knowledge, thereby improving the retrieval speed and efficiency of document-type knowledge.
[0043] Figure 2 Flow chart of another document-type knowledge storage method provided by an embodiment of the present invention. The relationship between this embodiment and the above embodiment is the specific process of storing text data into the text content table in the first database. Figure 2 As shown, the method includes:
[0044] S210: Receive document data stored by a user through a preset first database.
[0045] S220: Perform text analysis on the document data using a preset text analysis tool library to determine the text content data corresponding to the document data.
[0046] The preset text parsing tool library may be a tool library pre-set to parse document data.
[0047] Specifically, the text data is parsed using a preset text parsing tool library to determine the text content data corresponding to the document data.
[0048] Optionally, in another optional embodiment of the present invention, the performing text parsing on the document data by using a preset text parsing tool library to determine the text content data corresponding to the document data includes:
[0049] The text extension of the document data is identified by the preset text parsing tool library to determine the text extension corresponding to the document data; the text content data is determined by performing text parsing on the document data according to the text extension by the preset text parsing tool library.
[0050] Optionally, a plurality of different text parsing tools are pre-set in the preset text parsing tool library, and different text parsing tools perform text parsing on document data with different file extensions. The preset text parsing tool library can identify the file extension of the document data, and then activate the text parsing tool corresponding to the file extension. Exemplarily, the file extensions may be txt, doc, docx, pdf, hdml, and tex.
[0051] Optionally, the text parsing tool library may be integrated in the first database, or the first database may call the text parsing tool library.
[0052] Specifically, the document data stored by the user is received in the first database, the file extension of the document data is identified through a preset text parsing tool library, the text parsing tool corresponding to the file extension is activated, and the text data of the corresponding file extension is parsed through the text parsing tool to obtain text content data corresponding to the text data.
[0053] S230, obtaining a temporary table of document knowledge text content of the preset first database; storing the text content data into the temporary table of document knowledge text content, and updating the temporary table of document knowledge text content to the text content table.
[0054] The document knowledge text content temporary table may be a temporary table created in advance for storing text content in document data.
[0055] Specifically, the first database receives the document data stored by the user, parses the document data to obtain text content data, obtains the preset first database document knowledge text content temporary table, stores the text content data into the document knowledge text content temporary table, and updates the document knowledge text content temporary table to a text content table.
[0056] S240: Read the text content table according to a preset time period to determine the text content data corresponding to the document data.
[0057] S250: Store the text content data in a preset second database.
[0058] Optionally, in another optional embodiment of the present invention, storing the text content data in a preset second database includes:
[0059] The text content data is inserted into the preset second database, and the text content data is stored in the knowledge record.
[0060] The knowledge record may be data stored in the second database. It should be noted that when storing data in the second database, the data structure of the data to be stored is determined, an index is created for the data to be stored, and after the index is created, the data to be stored is inserted into the created index to obtain the knowledge record. For document-type knowledge records, the data structure of the knowledge record may be fields such as title, content, author, creation time, and category.
[0061] Specifically, the text content data is inserted into the preset second database through the API (Application Programming Interface) of the second database, and the text content data is stored in the knowledge record.
[0062] Optionally, in another optional embodiment of the present invention, after storing the text content data in the knowledge record, it also includes: receiving a text search term input into the second database; wherein the text search term includes a text title and / or text content; and outputting a target search text corresponding to the text search term through the second database.
[0063] The text search term may be a search term for searching text to be sent to the second database. The text search term includes a text title and / or text content. The text title may be title information of the text data; the text content may be any text in the text data. For example, the text title may be "Software Development Manual" and the text content may be "Software Development Process".
[0064] The target search text may be document data in which the knowledge record of the second database matches the text search term.
[0065] Specifically, the user enters a text search term in the second database. After the second database receives the text search term, the knowledge record in the second database is matched with the text search term to obtain a target search text matching the text search term, and the target search text corresponding to the text search term is output through the second database.
[0066] The technical solution of the embodiment of the present invention receives document data stored by the user through a preset first database, determines a text content table according to the document data, parses document-type knowledge through the document content table, and can effectively store the text content in the document data; reads the text content table according to a preset time period to determine the text content data corresponding to the document data; and stores the text content data in a preset second database. The document-type knowledge is stored in the second database, and in the second database, it only needs to be retrieved based on the title and content, without comparing the document content one by one, which solves the technical problem of low efficiency in storage and search of document-type knowledge in the prior art, can effectively store document-type knowledge, and provide retrieval of document-type knowledge, thereby improving the retrieval speed and efficiency of document-type knowledge.
[0067] Optional, Figure 3 A flowchart of a document-based knowledge storage process provided by the present invention; Figure 3 As shown, the user sends document data to the first database, the first database receives the document data and stores it in the first database, and returns a message "Storage successful" to the user; the first database stores the document content data in the second database, and the second database returns a message "Storage successful" to the first database after the document content data is successfully stored; the user sends the target search term to the second database, and the second database returns the target search text to the user.
[0068] Figure 4 A schematic diagram of the structure of a document-type knowledge storage device provided by an embodiment of the present invention. Figure 4 As shown, the device includes: a first storage module 410, a reading module 420 and a second storage module 430; wherein,
[0069] The first storage module 410 is used to receive document data stored by the user through a preset first database, and determine a text content table according to the document data;
[0070] A reading module 420, configured to read the text content table according to a preset time period to determine the text content data corresponding to the document data;
[0071] The second storage module 430 is used to store the text content data in a preset second database.
[0072] The technical solution of the embodiment of the present invention receives document data stored by the user through a preset first database, determines a text content table according to the document data, parses document-type knowledge through the document content table, and can effectively store the text content in the document data; reads the text content table according to a preset time period to determine the text content data corresponding to the document data; and stores the text content data in a preset second database. The document-type knowledge is stored in the second database, and in the second database, it only needs to be retrieved based on the title and content, without comparing the document content one by one, which solves the technical problem of low efficiency in storage and search of document-type knowledge in the prior art, can effectively store document-type knowledge, and provide retrieval of document-type knowledge, thereby improving the retrieval speed and efficiency of document-type knowledge.
[0073] Optionally, the first storage module is specifically used for:
[0074] Performing text analysis on the document data through a preset text analysis tool library to determine the text content data corresponding to the document data;
[0075] The text content table is determined according to the text content data.
[0076] Optionally, the first storage module is further used for:
[0077] Identifying the text extension of the document data by using the preset text parsing tool library to determine the text extension corresponding to the document data;
[0078] The document data is subjected to text parsing according to the text extension by using the preset text parsing tool library to determine the text content data.
[0079] Optionally, the first storage module is further used for:
[0080] Obtaining a temporary table of document knowledge text content of the preset first database;
[0081] The text content data is stored in the document knowledge text content temporary table, and the document knowledge text content temporary table is updated to the text content table.
[0082] Optionally, the second storage module is specifically used for:
[0083] The text content data is inserted into the preset second database, and the text content data is stored in the knowledge record.
[0084] The second database is a distributed database.
[0085] Optionally, the state further includes a search module and an output module; wherein,
[0086] The search module is used to receive a text search term input by a user; wherein the text search term includes a text title and / or text content;
[0087] The output module is used to output the target search text corresponding to the text search term through the second database.
[0088] The document-type knowledge storage device provided in the embodiment of the present invention can execute the document-type knowledge storage method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0089] Figure 5 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their modes are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0090] like Figure 5 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0091] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer grid such as the Internet and / or various telecommunication grids.
[0092] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a document-based knowledge storage method.
[0093] In some embodiments, the document-type knowledge storage method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the document-type knowledge storage method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the document-type knowledge storage method in any other appropriate manner (e.g., by means of firmware).
[0094] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0095] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the modes / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0096] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0097] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0098] The systems and techniques described herein can be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a grid browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication grid). Examples of communication grids include: a local area network (LAN), a wide area network (WAN), a blockchain grid, and the Internet.
[0099] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication grid. The client and server relationship is generated by computer programs running on the respective computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0100] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0101] This embodiment provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the steps of the document-based knowledge storage method provided in any embodiment of the present invention are implemented. The method includes:
[0102] Receiving document data stored by a user through a preset first database, and determining a text content table according to the document data;
[0103] Reading the text content table according to a preset time period to determine the text content data corresponding to the document data;
[0104] The text content data is stored in a preset second database.
[0105] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0106] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0107] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0108] Computer program code for performing the operation of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of grid, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0109] It should be understood by those skilled in the art that the above modules or steps of the present invention can be implemented by a general-purpose computing device, they can be concentrated on a single computing device, or distributed on a grid composed of multiple computing devices, optionally, they can be implemented by a program code executable by a computer device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0110] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0111] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A document-based knowledge storage method, characterized in that: include: Receiving document data stored by a user through a preset first database, and determining a text content table according to the document data; Reading the text content table according to a preset time period to determine the text content data corresponding to the document data; The text content data is stored in a preset second database.
2. The method according to claim 1, characterized in that Determining the text content table according to the document data includes: Performing text analysis on the document data through a preset text analysis tool library to determine the text content data corresponding to the document data; The text content table is determined according to the text content data.
3. The method according to claim 2, characterized in that The performing text parsing on the document data by using a preset text parsing tool library to determine the text content data corresponding to the document data includes: Identifying the text extension of the document data by using the preset text parsing tool library to determine the text extension corresponding to the document data; The document data is subjected to text parsing according to the text extension by using the preset text parsing tool library to determine the text content data.
4. The method according to claim 3, characterized in that Determining the text content table according to the text content data includes: Obtaining a temporary table of document knowledge text content of the preset first database; The text content data is stored in the document knowledge text content temporary table, and the document knowledge text content temporary table is updated to the text content table.
5. The method according to claim 1, characterized in that The storing of the text content data into a preset second database comprises: The text content data is inserted into the preset second database, and the text content data is stored in the knowledge record.
6. The method according to claim 5, characterized in that The second database is a distributed database.
7. The method according to claim 6, characterized in that After storing the text content data in the knowledge record, the method further includes: Receiving a text search term input by a user; wherein the text search term includes a text title and / or text content; The target search text corresponding to the text search term is outputted through the second database.
8. A document-type knowledge storage device, characterized in that: include: A first storage module, used to receive document data stored by a user through a preset first database, and determine a text content table according to the document data; A reading module, used to read the text content table according to a preset time period to determine the text content data corresponding to the document data; The second storage module is used to store the text content data in a preset second database.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the document-type knowledge storage method described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the document-type knowledge storage method described in any one of claims 1 to 7 when executed.