Method, device, electronic device, and storage medium for updating cited documents

The method and apparatus address the challenge of inconsistent document updates by using document relationship diagrams to synchronize and maintain consistency through related document identifier extraction and message notifications.

JP7532633B2Active Publication Date: 2024-08-13DOUYIN VISION CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2023501413
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-07-09
Filing Date
2021-07-07
Publication Date
2024-08-13
Estimated Expiration
2041-07-07

AI Technical Summary

Technical Problem

Existing document management systems fail to ensure synchronous updates and consistency in document citations due to complex citation relationships, leading to inconsistencies during document updates.

Method used

A method and apparatus for updating cited documents by obtaining a document relationship diagram, extracting related document identifiers, and pushing document modification content to related documents, ensuring synchronous updates and consistency through message notifications.

Benefits of technology

Ensures synchronous updating of cited documents and maintains consistency in document updates by leveraging document relationship diagrams and message notifications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007532633000003
    Figure 0007532633000003
  • Figure 0007532633000004
    Figure 0007532633000004
  • Figure 0007532633000005
    Figure 0007532633000005
Patent Text Reader

Abstract

A cited document updating method, device, electronic device, and storage medium are provided. The method includes steps of: acquiring a document relationship diagram from a database (101); acquiring a document modification command, where the document modification command includes a document identifier and a document modification content; extracting related document identifiers from the document relationship diagram according to the document identifiers (102); and pushing the document modification content to related documents corresponding to the related document identifiers (104). By acquiring the document relationship diagram and the document modification command from the database, extracting related document identifiers from the document relationship diagram according to the document identifiers included in the document modification command, and pushing the document modification content included in the document modification command to the related documents corresponding to the related document identifiers, when document content is edited and updated, synchronous updates of cited documents related to the edited document can be achieved, ensuring consistency of the document update content in the database.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] TECHNICAL FIELD The embodiments of the present disclosure relate to the field of data processing technology, and in particular to a method, device, electronic device, and storage medium for updating a cited document. [Background technology]

[0002] Currently, there may be a plurality of documents shared within a company, and in order to save storage space in a database, the documents may be stored by citing each other.

[0003] Although documents can reference each other and be stored, due to the complexity of the reference ability in the database, it is easy to overlook the synchronous update or modification of related documents during document update, which tends to affect the consistency of the document update content in the database. Summary of the Invention [Problem to be solved by the invention]

[0004] The embodiments of the present disclosure provide a method, an apparatus, an electronic device, and a storage medium for updating a cited document to achieve synchronous updating of documents having a citation relationship. [Means for solving the problem]

[0005] In a first aspect, an embodiment of the present disclosure provides a method for updating a cited document, the method comprising: obtaining a document relationship diagram for the database, the document relationship diagram including nodes and connection lines, each node representing a document identifier and each connection line representing a document citation relationship; obtaining a document modification instruction, the document modification instruction including a document identifier and a document modification content; Extracting related document identifiers from the document relationship diagram according to the document identifiers; and pushing the document modifications to the related document corresponding to the related document identifier.

[0006] In a second aspect, an embodiment of the present disclosure provides an apparatus for updating a cited document, the apparatus comprising: a document relationship diagram acquisition module for acquiring a document relationship diagram of a database, the document relationship diagram including nodes and connection lines, each node representing a document identifier, and each connection line representing a document citation relationship; a document modification instruction acquisition module for acquiring a document modification instruction, the document modification instruction including a document identifier and a document modification content; a related document identifier extraction module for extracting related document identifiers from the document relationship diagram according to the document identifiers; and a document modification push module for pushing the document modification to the related document corresponding to the related document identifier.

[0007] In a third aspect, an embodiment of the present disclosure provides an electronic device, the electronic device including one or more processors and a storage device for storing one or more programs, the one or more programs being executed by the one or more processors to cause the one or more processors to implement a method according to any embodiment of the present disclosure.

[0008] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, the program being executed by a processor to realize a method according to any of the embodiments of the present disclosure.

[0009] In a fifth aspect, an embodiment of the present disclosure provides a computer program product including a computer program, the computer program being configured to, when executed by a processing device, perform steps of the method according to the first aspect of the present disclosure.

[0010] In a sixth aspect, an embodiment of the present disclosure provides a computer program, which, when executed by a processing device, performs steps of the method according to the first aspect of the present disclosure. Effect of the Invention

[0011] In an embodiment of the present disclosure, a document relationship diagram and a document modification instruction are obtained from a database, a related document identifier is extracted from the document relationship diagram according to the document identifier included in the document modification instruction, and the document modification content included in the document modification instruction is pushed to the related document corresponding to the related document identifier. Thus, when the document content is edited and updated, synchronous updating of the cited documents related to the edited document can be realized, thereby ensuring the consistency of the document update content in the database. [Brief description of the drawings]

[0012] The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent with reference to the following specific embodiments in conjunction with the accompanying drawings, in which the same or similar reference numbers refer to the same or similar elements throughout the drawings. It should be understood that the drawings are schematic and that objects and elements are not necessarily drawn to scale. [Figure 1(a)] 1 is a flowchart of a method for updating a cited document provided by the first embodiment of the present disclosure; [Figure 1(b)] FIG. 2 is a schematic diagram of a document relationship diagram of a database provided by Example 1 of the present disclosure. [Figure 1(c)] FIG. 13 is a schematic diagram of a document relationship diagram of another database provided by the first embodiment of the present disclosure. [Figure 2(a)] 11 is a flowchart of a method for updating a cited document provided by Example 2 of the present disclosure. [Figure 2(b)] FIG. 11 is a schematic diagram of a document relationship diagram of the updated database provided by the second embodiment of the present disclosure. [Diagram 3] FIG. 11 is a structural schematic diagram of a cited document updating device provided by Example 3 of the present disclosure; [Figure 4] FIG. 11 is a structural schematic diagram of an electronic device provided according to Example 4 of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0013] Hereinafter, the embodiments of the present disclosure will be described in more detail with reference to the drawings. Although the drawings show some embodiments of the present disclosure, it should be understood that the present disclosure can be realized in various forms and should not be interpreted as being limited to the embodiments described herein, but on the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure serve merely as examples and are not intended to limit the scope of protection of the present disclosure.

[0014] The steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. Also, method embodiments may include additional steps and / or omit performing steps that are shown. The scope of the present disclosure is not limited in this respect.

[0015] As used herein, the term "comprising" and variations thereof are intended to mean an open inclusion, i.e., "including, but not limited to." The term "based on" means "based at least in part on." The term "in one embodiment" means "at least one embodiment," the term "in another embodiment" means "at least one other embodiment," and the term "in some embodiments" means "at least some embodiments." Other terms are defined as explained below.

[0016] In addition, concepts such as "first" and "second" in this disclosure are used to distinguish different devices, modules or units, and are not intended to limit the order of functions performed by these devices, modules or units or the mutual dependencies between them.

[0017] It should be noted that the modifiers "one" and "multiple" in this disclosure are illustrative rather than limiting, and as would be understood by one of ordinary skill in the art, unless otherwise specified, they should be understood as "one or more."

[0018] The names of messages or information exchanged between multiple devices in the embodiments of the present disclosure are used for illustrative purposes only and are not intended to limit the scope of these messages or information.

[0019] Example 1

[0020] FIG. 1(a) is a flowchart of a cited document update method provided by an embodiment of the present disclosure. This embodiment can be applied to a scene in which synchronous updates are performed on documents having a citation relationship. The method is provided by an embodiment of the present disclosure. update It can be executed by an apparatus, which can be realized using software and / or hardware, and generally can be integrated into a computing device. 。

[0021] As shown in FIG. 1(a), the method in the embodiment of the present disclosure may include the following steps.

[0022] In step 101, a document relationship diagram of the database is obtained.

[0023] A document relationship diagram includes nodes and connecting lines, where each node represents a document identifier and each connecting line represents a document citation relationship.

[0024] FIG. 1(b) is a schematic diagram of a document relationship diagram of the database provided by Example 1 of the present application. As shown in FIG. 1(b), the document relationship diagram is a directed acyclic diagram and includes three nodes, namely, document A, document B, and document C. Document A, document B, and document C are sequentially connected, such that document A directly cites document B, and document B directly cites document C, resulting in document A indirectly citing document C.

[0025] In addition, the database in this embodiment further includes a plurality of subdocument relationship diagrams, and the nodes of each subdocument relationship diagram are not connected to each other. FIG. 1(c) is a schematic diagram of a document relationship diagram of another database. As shown in FIG. 1(c), two subdocument relationship diagrams, Document Relationship Diagram 1 and Document Relationship Diagram 2, are included. Document Relationship Diagram 1 includes three nodes, Document A, Document B, and Document C, and there is a direct or indirect citation relationship between these three nodes. Meanwhile, Document Relationship Diagram 2 includes two nodes, Document D and Document E, and there is a direct citation relationship between the two nodes. There is no connection between the nodes of Document Relationship Diagram 1 and Document Relationship Diagram 2 by a connection line, so there is no citation relationship between the nodes of Document Relationship Diagram 1 and Document Relationship Diagram 2.

[0026] In step 102, a document modification instruction is obtained, and the document modification instruction includes a document identifier and a document modification content.

[0027] Optionally, the document modifications include changing a variable value or changing an expression.

[0028] Specifically, in this embodiment, when a user performs an editing operation on a document in a database, the user can input a document amendment command into the electronic device in which the database is located, for example, via a touch screen or button of the electronic device, and the terminal device can obtain the document amendment command in response to the user's trigger operation.

[0029] The document modification command includes a document identifier and a document modification content, and the document modification content includes a change in a variable value or a change in an expression, for example, the document modification command includes a content to modify a variable value x=9 of document C to x=20. Of course, in this embodiment, the document modification command is described merely as an example, and the specific form thereof is not limited.

[0030] In step 103, extract related document identifiers from the document relationship diagram according to the document identifiers.

[0031] Optionally, the step of extracting related document identifiers from the document relationship diagram according to the document identifier may include the steps of extracting a citing repertoire from the document relationship diagram according to the document identifier, and obtaining related document identifiers that have a citing relationship with the document identifier from the citing repertoire.

[0032] Optionally, the step of extracting a citing repertoire from the document relationship diagram according to the document identifier includes the steps of obtaining, from the document relationship diagram, document identifiers of a first category that directly cite the document identifier and document identifiers of a second category that indirectly cite the document identifier, and constructing a citing repertoire based on the document identifiers of the first category and the document identifiers of the second category.

[0033] Specifically, in this embodiment, when a document modification command including, for example, modifying a variable value x=9 of document C to x=20 is obtained, a citing repertoire is extracted from a document relationship diagram, for example, FIG. 1(b), according to the document identifier "document C". The method of extracting the citing repertoire is to obtain, from the document relationship diagram, the document identifier of a first category that directly cites document C and the document identifier of a second category that indirectly cites document C, and construct a citing repertoire based on the document identifier of the first category and the document identifier of the second category. Table 1 shows an example of a citing repertoire for document C.

[0034] [Table 1]

[0035] Therefore, when it is decided that document C should be edited and updated, the related document identifiers that are in a citation relationship with document C can be obtained from the citing repertoire previously constructed, and in the case shown in Table 1, the related document identifiers include document A and document B.

[0036] The related document identifiers in a citation relationship with document C refer to all document identifiers that directly or indirectly cite document C as the document being cited.

[0037] In step 104, the document modifications are pushed to the related document corresponding to the related document identifier.

[0038] Optionally, the step of pushing the document modification content to the related document corresponding to the related document identifier includes a step of pushing the document modification content to the related document corresponding to the related document identifier in the form of a message notification, thereby making the related document aware of the document modification content, and performing a document citation operation based on the document modification content.

[0039] Specifically, after extracting related document identifiers from the document relationship diagram according to the document identifiers, in order to ensure consistency of citation relationships while maintaining the relationship between documents in both directions, it is necessary to push the document modification content for the cited side to the citing side, i.e., the related document corresponding to the related document identifier. For example, when the cited side is document C, the related document identifiers that directly or indirectly cite document C are document A and document B. Next, an example will be described in which document A is pushed. When document C contains a variable x, x=9 when a document modification command is not received, and x=9 of document C is cited in document A, and calculation is performed according to x=9, for example, when document A contains an equation y=x+1, document A cites document C, so y=9+1=10 of document A. However, when document C receives a document modification command of "modify the variable value x=9 of document C to x=20", the variable value of document C will be updated to x=20, so in order to ensure the consistency of the citation relationship, it is necessary to push the document modification content of document C to document A by the method of message notification, for example, if the message notification is "the variable value x=9 of document C has already been modified to x=20", when the document citation operation is performed after document A receives the message notification, document A's y=x+1=20+1=21 will be obtained. The method of pushing the document modification content to document B is roughly the same as the method of pushing to document A, so it will not be described repeatedly in this embodiment.

[0040] In an embodiment of the present disclosure, a document relationship diagram and a document modification instruction are obtained from a database, a related document identifier is extracted from the document relationship diagram according to the document identifier included in the document modification instruction, and the document modification content included in the document modification instruction is pushed to the related document corresponding to the related document identifier. Thus, when the document content is edited and updated, synchronous updating of cited documents related to the edited document can be realized, and the consistency of the document update content in the database can be ensured.

[0041] Example 2

[0042] FIG. 2(a) is a flowchart of a method for updating cited documents provided by Example 2 of the present disclosure, which can be combined with optional solutions in the above examples. In an example of the present disclosure, after obtaining the document relationship diagram of the database, the method further includes receiving a plurality of citation relationship correction instructions and updating the document relationship diagram according to the plurality of citation relationship correction instructions.

[0043] As shown in FIG. 2(a), the method according to the embodiment of the present disclosure specifically includes the following steps:

[0044] In step 201, a document relationship diagram of the database is obtained.

[0045] A document relationship diagram includes nodes and connecting lines, where each node represents a document identifier and each connecting line represents a document citation relationship.

[0046] In the schematic diagram of the document relationship diagram of the database shown in Figure 1(b), the document relationship diagram is a directed acyclic diagram and contains three nodes, namely, document A, document B, and document C. Since document A, document B, and document C are sequentially connected, document A directly cites document B, and document B directly cites document C, and thus document A indirectly cites document C.

[0047] In step 202, a number of citation relationship modification instructions are received.

[0048] Specifically, in the case of the document relationship diagram of the database shown in Figure 1(b), different users can modify each citation relationship, but any new or modified relationship is atomic. Atomicity means that multiple database operations that make up a transaction are indivisible atomic units, and the entire transaction is committed only if all operations are successful. If any database operation in the transaction fails, the operations already performed are undone and the database is returned to its initial state.

[0049] In the case of the document relationship diagram of the database shown in Fig. 1(b), multiple citation relationship modification instructions can be received, such as "cancel the citation relationship between document B and document C" and "add a citation relationship in which document B cites document F." Naturally, this embodiment is merely described as an example, and the specific number of citation relationship modification instructions and the specific contents of the citation relationship modification instructions are not limited.

[0050] In step 203, the relationship modifying commands are ranked in order of reception time to obtain a command list.

[0051] The relationship modification commands are ranked in order of reception time to obtain the command list. For example, if the first relationship modification command "Cancel the citation relationship between document B and document C" is received at 08:33:24 and the second relationship modification command "Add a citation relationship in which document B cites document F" is received at 13:26:45, the first relationship modification command was received earlier than the second relationship modification command, so the ranked command list obtained will be as shown in Table 2 below.

[0052] [Table 2]

[0053] In step 204, the document relationship diagram is updated according to the command list.

[0054] Optionally, the step of updating the document relationship diagram according to the instruction list may include the steps of: when it is determined that the modification instruction includes a content to cancel a citation relationship between specified document identifiers, determining the specified document identifiers from the document relationship diagram and deleting the connection line between the specified document identifiers; and when it is determined that the modification instruction includes a content to add a new citation relationship, obtaining a new document identifier and a historical document identifier from the modification instruction and incrementing the new document identifier in the document relationship diagram and incrementing the connection line between the new document identifier and the historical document identifier, where the historical document identifier is a node included in the document relationship diagram before the modification instruction is received.

[0055] Specifically, in this embodiment, after obtaining the command list, the document relationship diagram is updated in the order of the commands included in the command list. For example, first, command number 1 in the command list, “Cancel the citation relationship between document B and document C,” is executed, i.e., the connection line between document B and document C is deleted in the document relationship diagram of the database shown in FIG. 1(b), and then command number 2 in the command list, “Add a citation relationship in which document B cites document F,” is executed, a new document identifier, i.e., “document F” and the historical document identifier “document B,” are obtained from the modification command, document F is added to the document relationship diagram, and the connection line between document F and document B is increased, resulting in a schematic document relationship diagram of the updated database, as shown in FIG. 2(b).

[0056] In step 205, a document modification instruction is obtained. The document modification instruction includes a document identifier and a document modification content.

[0057] Optionally, the document modifications include changing a variable value or changing an expression.

[0058] In step 206, extract related document identifiers from the document relationship diagram according to the document identifiers.

[0059] Optionally, the step of extracting related document identifiers from the document relationship diagram according to the document identifier may include the steps of extracting a citing repertoire from the document relationship diagram according to the document identifier, and obtaining related document identifiers that have a citing relationship with the document identifier from the citing repertoire.

[0060] Optionally, the step of extracting a citing repertoire from the document relationship diagram according to the document identifier includes the steps of obtaining document identifiers of a first category that directly cite the document identifier and document identifiers of a second category that indirectly cite the document identifier from the document relationship diagram; and constructing a citing repertoire based on the document identifiers of the first category and the document identifiers of the second category.

[0061] In step 207, the document modifications are pushed to the related document corresponding to the related document identifier.

[0062] Optionally, the step of pushing the document modification content to the related document corresponding to the related document identifier may include a step of pushing the document modification content to the related document corresponding to the related document identifier in the form of a message notification, thereby making the related document aware of the document modification content, and performing a document citation operation based on the document modification content.

[0063] In the embodiment of the present disclosure, the document relationship diagram and the document modification command are obtained from the database, the related document identifier is extracted from the document relationship diagram according to the document identifier included in the document modification command, and the document modification content included in the document modification command is pushed to the related document corresponding to the related document identifier, so that when the document content is edited and updated, the citation document related to the edited document can be synchronously updated, and the consistency of the document update content in the database can be ensured. In addition, the document relationship diagram is updated in the order of the receipt time of the citation relationship modification command, thereby ensuring the accuracy of the document relationship diagram update.

[0064] Example 3

[0065] 3 is a structural schematic diagram of a cited document update device provided by the third embodiment of the present disclosure. The device can be realized by using software and / or hardware, and generally can be integrated into an electronic device for performing the method. As shown in FIG. 3, the device includes: a document relationship diagram acquisition module 301 for acquiring a document relationship diagram of a database, the document relationship diagram including nodes and connection lines, each node representing a document identifier, and each connection line representing a document citation relationship; a document modification instruction acquisition module 302 for acquiring a document modification instruction, the document modification instruction including a document identifier and a document modification content; a related document identifier extraction module 303 for extracting related document identifiers from the document relationship diagram according to the document identifiers; and a document modification push module 304 for pushing the document modifications to the related document corresponding to the related document identifier.

[0066] In an embodiment of the present disclosure, a document relationship diagram and a document modification instruction are obtained from a database, a related document identifier is extracted from the document relationship diagram according to the document identifier included in the document modification instruction, and the document modification content included in the document modification instruction is pushed to the related document corresponding to the related document identifier. Thus, when the document content is edited and updated, synchronous updating of cited documents related to the edited document can be realized, and the consistency of the document update content in the database can be ensured.

[0067] Optionally, based on the above solution, the related document identifier extraction module comprises: a citing repertoire extraction module for extracting a citing repertoire from the document relationship diagram according to the document identifier; and a related document identifier acquisition module for acquiring a related document identifier having a citation relationship with the document identifier from the citing repertoire.

[0068] Optionally, based on the above solution, the citing repertoire extraction module specifically comprises: obtaining, from the document relationship diagram, document identifiers of a first category that directly cite the document identifier and document identifiers of a second category that indirectly cite the document identifier; and It is used to build a citing repertoire based on document identifiers of the first category and document identifiers of the second category.

[0069] Optionally, based on the above solution, the document modification push module specifically comprises: The document modification content is pushed to the related document corresponding to the related document identifier in the form of a message notification, so that the related document is made aware of the document modification content, and document citation calculation is performed based on the document modification content.

[0070] Optionally, based on the above solution, the device further comprises: a citation modification command receiving module for receiving a plurality of citation modification commands; an instruction list acquisition module for ranking the relationship modification instructions in order of receipt time to acquire an instruction list; and a document relationship diagram updating module for updating the document relationship diagram according to the instruction list.

[0071] Optionally, based on the above solution, the document relationship diagram updating module specifically comprises: When it is determined that the modification instruction includes a content to cancel the citation relationship between the specified document identifiers, determining the specified document identifiers from the document relationship diagram, and deleting the connection line between the specified document identifiers; If it is determined that the modification instruction includes content to add a new citation relationship, the method obtains a new document identifier and a historical document identifier from the modification instruction, increments the new document identifier in the document relationship diagram, and increments a connection line between the new document identifier and the historical document identifier, where the historical document identifier is used to be a node that was included in the document relationship diagram before the modification instruction was received.

[0072] Optionally, based on the above solution, the document modification includes changing a variable value or changing an expression.

[0073] The cited document updating device provided by the embodiments of the present disclosure belongs to the same inventive concept as the cited document updating method provided by each of the above embodiments, and technical details not detailed in the embodiments of the present disclosure may refer to each of the above embodiments, and the embodiments of the present disclosure achieve the same beneficial effects as each of the above embodiments.

[0074] Example 4

[0075] Referring to FIG. 4 below, FIG. 4 shows a structural schematic diagram of an electronic device 400 suitable for implementing the embodiments of the present disclosure. The electronic device in the embodiments of the present disclosure may be a device corresponding to a back-end service platform of an application, or may be a mobile terminal device on which an application client terminal is installed. Specifically, the electronic device may include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Tablet Computers), PMPs (Personal Multimedia Players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital televisions (TVs) and desktop computers. The electronic device shown in FIG. 4 is merely an example, and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.

[0076] 4, the electronic device 400 may include a processing unit (such as a central processing unit or a graphic processor) 401, which may perform various appropriate operations and processes according to a program stored in a read-only memory (ROM) 402 or loaded from a storage device 408 into a random access memory (RAM) 403. The RAM 403 also stores various programs and data necessary for the operation of the electronic device 400. The processing unit 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.

[0077] Typically, input devices 406 including a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc., output devices 407 including a liquid crystal display (LCD), speaker, vibrator, etc., storage devices 408 including magnetic tape, hard disk, etc., and communication devices 409 can be connected to the I / O interface 405. The communication devices 409 can enable the electronic device 400 to communicate and exchange data with other devices wirelessly or via wires. Although FIG. 4 shows the electronic device 400 with various devices, it should be understood that not all of the devices shown need be implemented or arranged. Alternatively, more or fewer devices can be implemented or arranged.

[0078] In particular, according to an embodiment of the present disclosure, the above processes described with reference to the flowcharts can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product including a computer program carried on a computer-readable medium, the computer program including program code for performing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via the communication device 409, or installed from the storage device 408, or installed from the ROM 402. When the computer program is executed by the processing device 401, the above functions defined in the method according to the embodiment of the present disclosure are performed.

[0079] It should be noted that the computer readable medium described in this disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. The computer readable storage medium may be, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of computer readable storage media include electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (ROM), and the like. Erasable The computer-readable storage medium may include, but is not limited to, a programmable read only memory (Programmable ROM, EPROM or flash memory), optical fiber, a portable compact disc read only memory (Compact Disc ROM, CD-ROM), an optical storage device, a magnetic memory component, or any suitable combination of the above. In this disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program for use by or in combination with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, having computer-readable program code embedded therein. Such a propagated data signal may take many forms, including, but not limited to, an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer-readable signal medium may further be any computer-readable medium other than a computer-readable storage medium, which may transmit, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained in the computer readable medium may be transmitted using any suitable medium, including but not limited to electrical wire, fiber optic cable, RF (Radio Frequency), etc., or any suitable combination of the above.

[0080] In some embodiments, the client terminals and servers may communicate using any conventional or future developed network protocol, such as HyperText Transfer Protocol (HTTP), and may be interconnected with any form or medium of digital data communication (e.g., a communications network). Examples of communications networks include a local area network (LAN), a wide area network (WAN), an internetwork (e.g., the Internet), an end-to-end network (e.g., an ad hoc end-to-end network), and any conventional or future developed network.

[0081] The computer-readable medium may be included in the electronic device, or may exist independently without being assembled in the electronic device.

[0082] The above-mentioned computer-readable medium is equipped with one or more programs, and when the one or more programs are executed by the electronic device, the following steps are executed within the electronic device: obtaining a document relationship diagram of a database, where the document relationship diagram includes nodes and connecting lines, each node representing a document identifier and each connecting line representing a document citation relationship; obtaining a document modification instruction, where the document modification instruction includes a document identifier and a document modification content; extracting a related document identifier from the document relationship diagram according to the document identifier; and pushing the document modification content to a related document corresponding to the related document identifier.

[0083] Computer program code for carrying out the operations of the present disclosure can be written in one or more programming languages, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages, or a combination thereof. The program code can run entirely on the user's computer, partly on the user's computer, as a standalone software package, partly on the user's computer, partly on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer via any kind of network, such as a local area network (LAN) or wide area network (WAN), or can be connected to an external computer (e.g., connecting via the Internet using an Internet Service Provider).

[0084] The flowcharts and block diagrams in the drawings illustrate the architecture, functions, and operations that can be realized by the systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowcharts or block diagrams may represent a module, a program segment, or a portion of code that includes one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions shown in the blocks may be executed in a different order than that shown in the figures. For example, two blocks shown as connected may actually be executed in parallel, or the blocks may be executed in the reverse order depending on the functionality involved. It should be noted that each block of the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified functions or operations, or may be implemented using a combination of dedicated hardware and computer instructions.

[0085] The units described in the embodiments of the present disclosure can be implemented in software or hardware, and the names of these units may not be intended to limit the units themselves in a particular situation.

[0086] The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that may be used may include, but are not limited to, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), Systems on Chips (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.

[0087] In the context of this disclosure, a machine-readable medium may be a tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may be, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of machine-readable storage media may include electrical connections based on one or more wires, portable computer disks, hard disks, random access memories (RAMs), read-only memories (ROMs), erasable programmable read-only memories (EPROMs or flash memories), optical fibers, portable compact disk read-only memories (CD-ROMs), optical storage devices, magnetic memory components, or any suitable combination of the above.

[0088] According to one or more embodiments of the present disclosure, in [Example 1], a method for updating a cited document is provided, the method comprising: obtaining a document relationship diagram for the database, the document relationship diagram including nodes and connection lines, each node representing a document identifier and each connection line representing a document citation relationship; obtaining a document modification instruction, the document modification instruction including a document identifier and a document modification content; extracting related document identifiers from the document relationship diagram according to the document identifiers; and pushing the document modifications to the related document corresponding to the related document identifier.

[0089] According to one or more embodiments of the present disclosure, in [Example 2], a method according to Example 1 is provided, in which the step of extracting related document identifiers from the document relationship diagram according to the document identifiers includes: extracting a citing repertoire from the document relationship diagram according to the document identifier; and obtaining the related document identifier that has a citation relationship with the document identifier from the citing repertoire.

[0090] According to one or more embodiments of the present disclosure, in [Example 3], a method according to Example 2 is provided, in which the step of extracting a citing repertoire from the document relationship diagram according to the document identifier includes: obtaining, from the document relationship diagram, document identifiers of a first category that directly cite the document identifier and document identifiers of a second category that indirectly cite the document identifier; constructing the citing repertoire according to document identifiers of the first category and document identifiers of the second category.

[0091] According to one or more embodiments of the present disclosure, in [Example 4], the method according to Example 1 is provided, wherein the step of pushing the document modification to the related document corresponding to the related document identifier includes: The method includes a step of pushing the document modification content to the related document corresponding to the related document identifier in the form of a message notification, thereby making the related document aware of the document modification content, and performing a document citation operation based on the document modification content.

[0092] According to one or more embodiments of the present disclosure, in [Example 5], a method according to Example 1 is provided, in which after the step of obtaining a document relationship diagram of a database, the method includes: receiving a plurality of citation modification instructions; In order of receipt time quotation ranking the relationship modification instructions to obtain an instruction list; and updating the document relationship diagram according to the list of instructions.

[0093] According to one or more embodiments of the present disclosure, in [Example 6], a method according to Example 5 is provided, in which the step of updating the document relationship diagram according to the instruction list includes: The above Citation Relationships when it is determined that the modification instruction includes a content to cancel a citation relationship between specified document identifiers, determining the specified document identifiers from the document relationship diagram and deleting a connection line between the specified document identifiers; The above Citation Relationships If it is determined that the amendment order includes the addition of a new citation, Citation Relationships obtaining a new document identifier and a historical document identifier from the modification instruction, adding the new document identifier to the document relationship diagram, and increasing a connection line between the new document identifier and the historical document identifier, wherein the historical document identifier is Citation RelationshipsNodes included in the document relationship diagram before the modification command is received Shown in The method includes the steps of:

[0094] According to one or more embodiments of the present disclosure, [Example 7] provides a method according to any one of Examples 1 to 6, in which the document modification includes a change in a variable value or a change in an expression.

[0095] According to one or more embodiments of the present disclosure, in [Example 8], a cited document updating device is provided, the device comprising: a document relationship diagram acquisition module for acquiring a document relationship diagram of a database, the document relationship diagram including nodes and connection lines, each node representing a document identifier, and each connection line representing a document citation relationship; a document modification instruction acquisition module for acquiring a document modification instruction, the document modification instruction including a document identifier and a document modification content; a related document identifier extraction module for extracting related document identifiers from the document relationship diagram according to the document identifiers; and a document amendment push module for pushing the document amendment to the related document corresponding to the related document identifier.

[0096] According to one or more embodiments of the present disclosure, [Example 9] provides an electronic device including a memory, a processing device, and a computer program stored in the memory and executable by the processing device, and when the processing device executes the program, the method described in any one of Examples 1 to 7 is realized.

[0097] According to one or more embodiments of the present disclosure, [Example 10] provides a storage medium including computer-executable instructions, which, when executed by a computer processor, are used to perform a method according to any one of Examples 1 to 7.

[0098] According to one or more embodiments of the present disclosure, [Example 11] provides a computer program product including a computer program, which, when executed by a processing device, performs steps of a method according to any embodiment of the present disclosure.

[0099] According to one or more embodiments of the present disclosure, [Example 12] provides a computer program, which, when executed by a processing device, achieves steps of the method according to any of the embodiments of the present disclosure.

[0100] The above description is merely a description of some preferred embodiments of the present disclosure and a description of the applied technical principles.Those skilled in the art should understand that the scope of the invention according to the embodiments of the present disclosure is not limited to the solution formed by a specific combination of the above technical features, but should also cover other solutions formed by any combination of the above technical features or their equivalent features without departing from the above inventive concept, for example, by replacing the above features with technical features having similar functions (but not limited to) disclosed in the embodiments of the present disclosure.

[0101] Additionally, although operations are described in a particular order, this should not be understood as requiring that these operations be performed in the particular order or sequence shown. Multitasking or parallel processing may be advantageous in certain circumstances. Similarly, although the above description includes some specific implementation details, these should not be construed as limiting the scope of the disclosure. Certain features that are described in the context of separate embodiments may also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment may also be implemented in multiple embodiments, either alone or in any suitable subcombination.

[0102] Although the present subject matter has been described using language specific to structural features and / or methodological logical operations, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or operations described above. Rather, the specific features and operations described above are merely example forms for implementing the claims.

[0103] This application claims priority to a Chinese patent application bearing application number 202010655848.3 and entitled "Method, apparatus, electronic device and storage medium for updating cited documents" filed with the China Patent Office on July 9, 2020, the entire contents of which are incorporated herein by reference.

Claims

1. A cited document updating method executed by a cited document updating device, comprising: obtaining a document relationship diagram; obtaining a document modification instruction, the document modification instruction including a document identifier and a document modification content; extracting related document identifiers from the document relationship diagram according to the document identifiers; sending the document amendments to the related document corresponding to the related document identifier; The step of extracting related document identifiers from the document relationship diagram according to the document identifiers includes: obtaining the related document identifier having a citation relationship with the document identifier from the document relationship diagram according to the document identifier; The step of obtaining the related document identifier having a citation relationship with the document identifier from the document relationship diagram according to the document identifier includes: obtaining, from the document relationship diagram, document identifiers of a first category that directly cite the document identifier and document identifiers of a second category that indirectly cite the document identifier; 13. A method for updating a cited document, comprising:

2. The step of transmitting the document modification to the related document corresponding to the related document identifier includes: The method according to claim 1, further comprising a step of transmitting the document revision content to the related document corresponding to the related document identifier in the form of a message notification, thereby making the related document aware of the document revision content, and performing a document citation operation based on the document revision content.

3. After obtaining the document relationship diagram, the method further comprises: receiving a plurality of citation modification instructions; a step of obtaining a command list by ranking the citation relationship modification commands in order of reception time; 3. The method of claim 1, further comprising: updating the document relationship diagram according to the list of instructions.

4. updating the document relationship diagram according to the list of instructions, when it is determined that the citation relationship correction instruction includes a content to cancel the citation relationship between specified document identifiers, determining the specified document identifiers from the document relationship diagram and deleting the association relationship between the specified document identifiers; 4. The method of claim 3, further comprising the steps of: upon determining that the citation relationship correction instruction includes content to add a new citation relationship, obtaining a new document identifier and a historical document identifier from the citation relationship correction instruction and adding the new document identifier to the document relationship diagram to increase an association relationship between the new document identifier and the historical document identifier, wherein the historical document identifier is represented by a node that was included in the document relationship diagram before the citation relationship correction instruction was received.

5. The method according to any one of claims 1 to 4, wherein the document modification comprises a change in a variable value or a change in an expression.

6. 6. The method of claim 5, wherein the changing of the variable value comprises modifying the variable value of the citing document.

7. An apparatus for updating a cited document, comprising: a document relationship diagram acquisition module for acquiring a document relationship diagram; a document modification instruction acquisition module for acquiring a document modification instruction, the document modification instruction including a document identifier and a document modification content; a related document identifier extraction module for extracting related document identifiers from the document relationship diagram according to the document identifiers; a document amendment sending module for sending the document amendment to a related document corresponding to the related document identifier; The related document identifier extraction module further comprises: used to obtain the related document identifier having a citation relationship with the document identifier from the document relationship diagram according to the document identifier; The related document identifier extraction module: a citing repertoire extraction module for obtaining, from the document relationship diagram, a document identifier of a first category that directly cites the document identifier and a document identifier of a second category that indirectly cites the document identifier; A cited document updating device comprising:

8. The document modification content transmission module includes: The update device described in claim 7, characterized in that the document revision content is sent to the related document corresponding to the related document identifier in the form of a message notification, thereby making the related document aware of the document revision content, and is used to perform document citation operations based on the document revision content.

9. The update device comprises: a citation modification command receiving module for receiving a plurality of citation modification commands; an instruction list acquisition module for acquiring an instruction list by ranking the citation relationship modification instructions in order of reception time; 9. The updating apparatus according to claim 7, further comprising: a document relationship diagram updating module for updating the document relationship diagram according to an instruction list.

10. The document relationship diagram update module further includes: when it is determined that the citation relationship correction instruction includes a content to cancel the citation relationship between specified document identifiers, determining the specified document identifiers from the document relationship diagram and deleting the association relationship between the specified document identifiers; and 10. The update device of claim 9, wherein when it is determined that the citation relationship correction instruction includes content to add a new citation relationship, the update device obtains a new document identifier and a historical document identifier from the citation relationship correction instruction, and adds the new document identifier to the document relationship diagram to increase an association relationship between the new document identifier and the historical document identifier, wherein the historical document identifier is used to be represented by a node that was included in the document relationship diagram before the citation relationship correction instruction was received.

11. 11. The update device according to claim 7, wherein the document modification content includes a change in a variable value or a change in an expression.

12. The updating apparatus according to claim 11 , wherein the change of the variable value includes a modification of a variable value of the cited document.

13. An electronic device, one or more processors; a storage device for storing one or more programs; An electronic device, characterized in that, when the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 6.

14. A computer-readable storage medium having a computer program stored thereon, the computer program being adapted to implement the method according to any one of claims 1 to 6 when executed by a processor.

15. A computer program, which, when executed by a processing device, causes the steps of the method according to any one of claims 1 to 6 to be implemented.

Citation Information

Patent Citations

  • Document management device, document management method, and program

    JP2009223717A

  • Document management device, document management method and program

    JP2017174319A

  • Information processing device, program, and information processing method

    JP2017224173A

  • Editing a fragmented document

    US20120151312A1