Page display method and device

By loading only layer instances of the target page, the problem of excessive system resource consumption was solved, and the smoothness of user operation was improved.

CN121636841APending Publication Date: 2026-03-10BEIJING WODONG TIANJUN INFORMATION TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-02
Publication Date
2026-03-10

AI Technical Summary

Technical Problem

When browsing documents, existing technologies require loading and generating layer instances of all layers, resulting in excessive system resource consumption and affecting the smoothness of user operation.

Method used

Only load the layers in the target page being viewed, and generate layer instances in the target page. By obtaining the basic relational data model and document structured metadata, parse and create layer instances of layer nodes, and display the target page of the target document.

Benefits of technology

It reduces the consumption of system resources and improves the smoothness of user operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121636841A_ABST
    Figure CN121636841A_ABST
Patent Text Reader

Abstract

The invention discloses a page display method and device, and relates to the technical field of computers. A specific embodiment of the method comprises the steps of receiving a document browsing instruction, and determining a target document and a target page corresponding to the document browsing instruction; obtaining a basic relational data model and document structured metadata corresponding to the target document; obtaining at least one page node corresponding to the target page and at least one layer node corresponding to each page node from the basic relational data model; aiming at each layer node, analyzing layer data of the layer node from the document structured metadata; creating a layer instance of the layer node according to the layer data of the layer node; and displaying a target page in the target document according to the layer instance of each layer node. According to the embodiment, only the layer in the browsed target page needs to be loaded, and the layer instance of the layer in the target page is generated, so that occupied system resources can be reduced, and the smoothness of user operation is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the computer technology field, and in particular, to a page display method and device. BACKGROUND

[0002] A document usually contains multiple pages. Different pages are used to manage different document contents. The page content of each page can be displayed through multiple layers. As the document is continuously edited and updated, the number of layers in the document continues to grow. When browsing the document, all layers in the document need to be loaded, and layer instances of all layers need to be generated, which causes high system resource occupation and affects the fluency of user operation. SUMMARY

[0003] Therefore, embodiments of the present application provide a page display method and device, which only need to load the layers in the target page to be browsed and generate layer instances of the layers in the target page, so as to reduce the occupied system resources and improve the fluency of user operation.

[0004] In a first aspect, embodiments of the present application provide a page display method, comprising:

[0005] receiving a document browsing instruction, determining a target document and a target page corresponding to the document browsing instruction;

[0006] obtaining a basic relational data model and document structured metadata corresponding to the target document;

[0007] from the basic relational data model, obtaining at least one page node corresponding to the target page and at least one layer node corresponding to each page node;

[0008] for each layer node, parsing layer data of the layer node from the document structured metadata; creating a layer instance of the layer node according to the layer data of the layer node;

[0009] displaying the target page in the target document according to the layer instance of each layer node.

[0010] Optionally, parsing the layer data of the layer node from the document structured metadata comprises:

[0011] in response to metadata of the layer node not being stored in the document structured metadata, obtaining server-side data of the layer node from a server; parsing the server-side data to generate metadata of the layer node; and storing the metadata of the layer node in the document structured metadata;

[0012] obtaining the metadata of the layer node from the document structured metadata;

[0013] parsing the metadata of the layer node to generate the layer data of the layer node.

[0014] Optionally, after displaying the target page in the target document according to the layer instance of each layer node, the method further comprises:

[0015] In response to the current system satisfying the page recycling condition, the method further comprises:

[0016] According to the silence duration of each loaded page, the method further comprises:

[0017] The method further comprises:

[0018] The method further comprises:

[0019] The method further comprises:

[0020] Optionally, after receiving the document browsing instruction, the method further comprises:

[0021] The method further comprises:

[0022] The method further comprises:

[0023] In response to the target layer node not being loaded and the editing scenario of the target document being collaboration, the method further comprises:

[0024] In response to the calling module passing the relationship verification of the dependency relationship data, the method further comprises:

[0025] Optionally, after determining the target layer node corresponding to the instance acquisition request, the method further comprises:

[0026] In response to the target layer node not being loaded and the editing scenario of the target document being single machine, the method further comprises:

[0027] In response to the target layer node being loaded, the method further comprises:

[0028] Optionally, the editing scenario of the target document is collaboration.

[0029] After receiving the document browsing instruction, the method further comprises:

[0030] Receive the document change information for the target document sent by the server; wherein the document change information is generated according to the editing submission information of the other collaboration party to the target document;

[0031] According to the document change information, update the basic relational data model and / or the document structured metadata.

[0032] In a second aspect, an embodiment of the present application provides a page display device, comprising:

[0033] A page determination module, configured to receive a document browsing instruction, and determine a target document and a target page corresponding to the document browsing instruction;

[0034] A data acquisition module, configured to acquire a basic relational data model and document structured metadata corresponding to the target document;

[0035] A node acquisition module, configured to acquire at least one page node corresponding to the target page and at least one layer node corresponding to each page node from the basic relational data model;

[0036] An instance creation module, configured to parse layer data of each layer node from the document structured metadata, and create a layer instance of each layer node according to the layer data of the layer node;

[0037] A page display module, configured to display the target page in the target document according to the layer instance of each layer node.

[0038] In a third aspect, an embodiment of the present application provides an electronic device, comprising:

[0039] One or more processors;

[0040] A storage device, configured to store one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the method of any of the above embodiments.

[0041] In a fourth aspect, an embodiment of the present application provides a computer readable medium, which stores a computer program, when the program is executed by a processor, the method of any of the above embodiments is implemented.

[0042] In a fifth aspect, an embodiment of the present application provides a computer program product, comprising a computer program, when the computer program is executed by a processor, the method of any of the above embodiments is implemented.

[0043] An embodiment of the above application has the following advantages or beneficial effects: after receiving the document browsing instruction, the basic relational data model corresponding to the target document and the document structured metadata are acquired. From the basic relational data model, the layer nodes corresponding to the target page are acquired. Then, from the document structured metadata, the layer data of the layer nodes are parsed, and the layer instances of the layer nodes are created. Finally, according to the layer instances of the layer nodes, the target page in the target document is displayed. Only the layers in the target page to be browsed are loaded, and the layer instances of the layers in the target page are generated. Compared with the way of generating all layer instances, the system resources occupied can be reduced, and the smoothness of user operation can be improved.

[0044] Further effects of the above non-conventional optional mode will be described below in conjunction with the specific embodiments. BRIEF DESCRIPTION OF DRAWINGS

[0045] The accompanying drawings are used to better understand the present application, and do not constitute an improper limitation on the present application. Among them:

[0046] Figure 1 is a schematic diagram of a flow of a page display method provided by an embodiment of the present application;

[0047] Figure 2 is a schematic diagram of a flow of a page display method provided by another embodiment of the present application;

[0048] Figure 3 is a schematic diagram of a flow of an instance acquisition request processing method provided by an embodiment of the present application;

[0049] Figure 4 is a schematic diagram of a flow of a multi-collaborator document editing method provided by an embodiment of the present application;

[0050] Figure 5 is a structural schematic diagram of a page display device provided by an embodiment of the present application;

[0051] Figure 6 is a structural schematic diagram of a computer system of a terminal device or a server suitable for implementing the embodiments of the present application. DETAILED DESCRIPTION

[0052] The exemplary embodiments of the present application are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present application to help understanding, and should be considered as merely exemplary. Therefore, those skilled in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Also, for the sake of clarity and conciseness, the description below omits the description of well-known functions and structures.

[0053] It should be noted that the acquisition, storage, use, processing and the like of data in the technical solutions of the embodiments of the present application comply with relevant provisions of national laws and regulations.

[0054] Figure 1 is a schematic diagram of a flow of a page display method provided by an embodiment of the present application. As shown in the figure, the method comprises: Figure 1

[0055] Step 101: receiving a document browsing instruction, and determining a target document and a target page corresponding to the document browsing instruction.

[0056] The scheme of the embodiments of the present application is applied to a terminal. The document browsing instruction is used to open a target page of a target document. By using the document browsing instruction, a user can perform operations such as viewing and editing on the target page. If the target page is not specified by the document browsing instruction, a default page of the target document is determined as the target page.

[0057] Step 102: acquiring a basic relationship data model and document structured metadata corresponding to the target document.

[0058] The target document corresponds to a root node. The target document comprises a plurality of pages. Each page comprises one or more page nodes. One page node comprises one or more layer nodes. One layer node comprises one or more sub-layer nodes. The layer nodes and the sub-layer nodes are used to display page content such as text, pictures, tables and animations.

[0059] The basic relationship data model is used to provide hierarchical data of the target document. The hierarchical data can comprise: a root node and a corresponding page list thereof, a page and a corresponding page node list thereof, a page node and a page to which the page node belongs, a page node and a corresponding layer node list thereof, a layer node and a page node to which the layer node belongs, a layer node and a corresponding sub-layer node list thereof, and a sub-layer node and a layer node to which the sub-layer node belongs.

[0060] The document structured metadata is used to save metadata of the layer nodes. The metadata of the layer nodes comprises: a mapping relationship between a layer and a layer attribute, and the like. By analyzing the metadata of the layer nodes, layer data of the layer nodes can be generated. The layer data comprises: attribute values of various layer attributes.

[0061] Before acquiring the basic relationship data model and the document structured metadata corresponding to the target document, the following step is further included: acquiring binary data and document basic relationship data of the target document from a server. The binary data is original data of the target document. The basic relationship data comprises: a mapping list of a layer and a page node to which the layer belongs, hierarchical information of a document node, hierarchical information of a page node, and the like. By analyzing the binary data, the document structured metadata can be generated. Based on the document basic relationship data, the basic relationship data model is created.​

[0062] Step 103: Obtain at least one page node corresponding to the target page and at least one layer node corresponding to each page node from the basic relationship data model.

[0063] Step 104: Parse layer data of each layer node from the document structured metadata, and create a layer instance of the layer node according to the layer data of the layer node.

[0064] The layer instance is an object constructed by the runtime system for the layer. The layer instance is used to save data and states of the layer runtime, etc. The system realizes various functions such as layer display through the instance object.

[0065] Step 105: Display the target page in the target document according to the layer instance of each layer node.

[0066] After creating all the layer instances of the target page, the system calls the rendering engine to traverse all the layer instances of the target page through the rendering engine, and completes the content rendering and display of the target page.

[0067] In the scheme of the embodiment of the application, after receiving the document browsing instruction, the basic relationship data model and the document structured metadata corresponding to the target document are obtained. Each layer node corresponding to the target page is obtained from the basic relationship data model. The layer data of the layer node is parsed from the document structured metadata, and the layer instance of the layer node is created. Finally, the target page in the target document is displayed according to the layer instance of each layer node. Only the layers in the target page to be browsed are loaded, and the layer instances of the layers in the target page are generated. Compared with the method of generating the layer instances of all the layers, the system resources occupied can be reduced, and the smoothness of user operation can be improved.

[0068] Figure 2 is a schematic diagram of a flow of a page display method provided by another embodiment of the application. As shown in Figure 2 , the method comprises:

[0069] Step 201: Receive a document browsing instruction, and determine a target document and a target page corresponding to the document browsing instruction.

[0070] Step 202: Obtain a basic relationship data model and document structured metadata corresponding to the target document.

[0071] Step 203: Obtain at least one page node corresponding to the target page and at least one layer node corresponding to each page node from the basic relationship data model.

[0072] Step 204: Determine whether the metadata of each layer node is stored in the document structured metadata.

[0073] For each layer node, depending on whether the layer node's metadata is stored in the document's structured metadata, proceed to either step 205 or step 207. Specifically, if the layer node's metadata is not stored in the document's structured metadata, proceed to step 205. If the layer node's metadata is stored in the document's structured metadata, proceed to step 207.

[0074] Step 205: Obtain server-side data of layer nodes from the server; parse the server-side data to generate metadata of layer nodes.

[0075] Step 206: Store the metadata of the layer nodes in the document structured metadata.

[0076] Step 207: Obtain the metadata of the layer nodes from the document's structured metadata; parse the metadata of the layer nodes to generate the layer data of the layer nodes.

[0077] Step 208: Display the target page in the target document based on the layer instances of each layer node.

[0078] In the solution of this embodiment of the invention, it is not necessary to store the metadata of all layer nodes in the document structured metadata. Only the metadata of layer nodes with high loading frequency or those predicted to be needed for subsequent user operations can be pre-stored in the document structured metadata. If the metadata of a layer node that needs to be loaded is not stored in the document structured metadata, a metadata proxy is used to obtain the server-side data of that layer node from the server, enabling on-demand loading of layer nodes and further reducing the memory resources required for browsing or editing the document.

[0079] In one embodiment of the present invention, after displaying the target page in the target document based on the layer instances of each layer node, the method further includes: in response to the current system meeting the page recycling condition, obtaining multiple loaded pages and determining the dormancy duration of each loaded page; determining the recycled page from the multiple loaded pages based on the dormancy duration of each loaded page; determining at least one recycled page node corresponding to the recycled page and the recycled layer node corresponding to each recycled page node; deleting the layer instance of the recycled layer node from the node instance manager; and deleting the metadata of the recycled layer node from the document structured metadata.

[0080] Page recycling conditions can be set according to business needs, such as the system's current time reaching a preset time point or the system's resource utilization exceeding a preset utilization rate. The dormancy period is the time interval between the most recent load time of a loaded page and the current time. If the dormancy period of a loaded page exceeds a threshold, the loaded page is identified as a recycled page. The layer instance and metadata of the recycled layer node in the recycled page are deleted to avoid continuous runtime memory growth.

[0081] Figure 3 This is a schematic diagram illustrating the flow of a method for processing an instance retrieval request according to an embodiment of the present invention. Figure 3 As shown, the method includes:

[0082] Step 301: Receive instance retrieval request; determine the target layer node corresponding to the instance retrieval request.

[0083] Step 302: Determine whether the target layer node has been loaded.

[0084] If the target layer node is not loaded, proceed to step 303. If the target layer node has been loaded, proceed to step 307.

[0085] Step 303: Determine the editing scenario of the target document.

[0086] If the target document is edited collaboratively, multiple collaborators will edit it, triggering step 304. The server will send the document change information from other collaborators to the terminal. Based on this information, the terminal updates its local underlying relational data model and document structured metadata. The local calling modules on the terminal may be built upon the existing underlying relational data model. Therefore, relational validation of the calling modules is necessary to reduce issues such as displaying outdated page content and to prevent users from editing expired page content.

[0087] If the target document is edited in a single-user environment, then only one user is editing the target document, and step 306 is executed.

[0088] Step 304: Determine the dependency data of the target layer nodes from the basic relational data model; obtain the calling module corresponding to the instance acquisition request.

[0089] Dependency data includes: the parent page nodes of the target layer node, the parent pages of the parent page nodes, and the parent documents of the parent pages. The calling module obtains the node instance of the target layer node by sending an instance retrieval request.

[0090] Step 305: Use dependency data to verify the relationships between calling modules.

[0091] The calling module is the module that calls the node instance of the target layer node. The calling module's calling information is obtained. This information includes: the calling page node, the calling page, and the calling document. Dependency data is used to perform relationship checks on the calling module, including: determining whether the calling page node matches its parent page node, whether the calling page matches its parent page, and whether the calling document matches its parent document.

[0092] If the calling module passes the dependency data relationship validation, proceed to step 306. If the calling module fails the dependency data relationship validation, generate a prompt message to guide the user in troubleshooting.

[0093] Step 306: Parse the layer data of the target layer node from the document structured metadata; create a layer instance of the target layer node based on the layer data of the target layer node.

[0094] Step 307: Obtain the layer instance of the target layer node from the node instance manager.

[0095] If the target layer node has already been loaded, the interval between the most recent loading time of the target layer node and the current time is very short. There is no need to perform relationship verification on the calling module. The layer instance of the target layer node can be obtained directly from the node instance manager to improve system processing efficiency.

[0096] Step 308: Display the layer or page based on the layer instance of the target layer node.

[0097] In the solution of this embodiment of the invention, after receiving an instance retrieval request, if the editing scenario of the target document is collaborative, the relationship verification of the calling module of the instance retrieval request needs to be performed to reduce situations such as the terminal displaying an expired page and improve the reliability of multi-party collaboration. If the editing scenario of the target document is single-machine, there is no need to perform relationship verification on the calling module; the layer data of the target layer node is directly parsed, and the layer or page is displayed.

[0098] In one embodiment of the present invention, the editing scenario of the target document is collaborative; after receiving the document browsing instruction, the method further includes: receiving document change information for the target document sent by the server; wherein the document change information is generated based on the editing submission information of other collaborators to the target document; and updating the basic relationship data model and / or document structured metadata based on the document change information.

[0099] Figure 4 This is a schematic diagram illustrating the flow of a multi-party document editing method according to an embodiment of the present invention. Figure 4 As shown, the method includes:

[0100] Step 401: Other collaborating terminals send edit submission information for the target document to the service.

[0101] Step 402: The server generates document change information for the target document based on the edit submission information.

[0102] The server can preset a period and execute steps 402 to 404, that is, send the document change information generated within the period to each collaborator at a preset frequency.

[0103] Step 403: The server determines the collaborators corresponding to the target document.

[0104] Step 404: The server sends the document change information to the collaborating party's terminal.

[0105] Step 405: The collaborating terminal updates its local basic relational data model and / or document structured metadata based on the document change information.

[0106] Before the collaborating party terminal updates its local basic relationship data model and / or document structured metadata based on document change information, the process also includes: displaying relevant information about the document change; and, in response to receiving a confirmation instruction for the relevant information, executing the steps of updating the local basic relationship data model and / or document structured metadata based on the document change information. This relevant information includes: changed page, changed layer, changed content, submission time, and submitting collaborator.

[0107] Based on document change information, update the local basic relationship data model and document structured metadata to ensure that the page content displayed on the collaborating party's terminal is consistent with the edit page content submitted by other collaborating party terminals.

[0108] Step 406: The collaborating terminal performs page display and editing processes based on the local basic relationship data model and document structured metadata.

[0109] For example, collaborator 1 and collaborator 2 jointly edit a target document. Collaborator 1 generates a new page node 1 in the target document and configures the layer nodes under page node 1. Collaborator 1's terminal uploads the configuration information of page node 1 as document change information to the server. The server generates document change information based on the configuration information of page node 1 and sends it to collaborator 2's terminal. Collaborator 2's terminal automatically updates its local basic relational data model based on the document change information to add the configuration information of page node 1 to its local basic relational data model.

[0110] The solution of this invention can be applied to both collaborating party terminals and other collaborating party terminals. By using the solution of this invention, when multiple collaborating parties are jointly editing a document, each collaborating party can promptly obtain the edited content from other collaborating parties, improving document editing efficiency and reducing unnecessary operations.

[0111] Figure 5 This is a schematic diagram of the structure of a page display device provided in one embodiment of the present invention. Figure 5 As shown, the device includes:

[0112] Page determination module 501 is used to receive document browsing instructions and determine the target document and target page corresponding to the document browsing instructions;

[0113] Data acquisition module 502 is used to acquire the basic relational data model and document structured metadata corresponding to the target document;

[0114] The node acquisition module 503 is used to acquire at least one page node corresponding to the target page and at least one layer node corresponding to each page node from the basic relational data model.

[0115] The instance creation module 504 is used to parse the layer data of each layer node from the document's structured metadata; and to create a layer instance of the layer node based on the layer data.

[0116] Page display module 505 is used to display the target page in the target document based on the layer instances of each layer node.

[0117] Optionally, the instance creation module 504 is specifically used for:

[0118] In response to the absence of layer node metadata in the document's structured metadata, the server-side data of the layer nodes is retrieved from the server; the server-side data is parsed to generate the layer node metadata; and the layer node metadata is stored in the document's structured metadata.

[0119] Extract the metadata of layer nodes from the document's structured metadata;

[0120] Parse the metadata of the layer nodes to generate the layer data for the layer nodes.

[0121] Optionally, it also includes:

[0122] The recycling module is used to retrieve multiple loaded pages and determine the inactivity duration of each loaded page in response to the current system meeting the page recycling conditions.

[0123] Based on the inactivity time of each loaded page, the page to be recycled is determined from multiple loaded pages;

[0124] Identify at least one recycle page node corresponding to the recycle page and the recycle layer node corresponding to each recycle page node;

[0125] Remove the layer instance that recycled the layer node from the node instance manager;

[0126] Remove the metadata of recycled layer nodes from the document's structured metadata.

[0127] Optionally, it also includes:

[0128] The request processing module is used to receive instance retrieval requests;

[0129] Determine the target layer node corresponding to the instance retrieval request;

[0130] In response to the fact that the target layer node has not been loaded and the editing scenario of the target document is collaborative, the dependency data of the target layer node is determined from the basic relational data model; the instance is retrieved to obtain the calling module corresponding to the request;

[0131] In response to the calling module's relationship validation through dependency data, the layer data of the target layer node is parsed from the document's structured metadata; and a layer instance of the target layer node is created based on the layer data of the target layer node.

[0132] Optionally, the request processing module is also used for:

[0133] In response to the fact that the target layer node is not loaded and the editing scenario of the target document is a single machine, the layer data of the target layer node is parsed from the document's structured metadata; and a layer instance of the target layer node is created based on the layer data of the target layer node.

[0134] In response to the target layer node being loaded, retrieve the layer instance of the target layer node from the node instance manager.

[0135] Optionally, the editing scenario for the target document is collaborative; the device also includes:

[0136] The data update module is used to receive document change information for the target document sent by the server; the document change information is generated based on the editing and submission information of other collaborators on the target document.

[0137] Update the underlying relational data model and / or document structured metadata based on document change information.

[0138] This invention provides an electronic device, comprising:

[0139] One or more processors;

[0140] A storage device for storing one or more programs that, when executed by one or more processors, cause the one or more processors to implement the methods of any of the above embodiments.

[0141] This invention provides a computer program product, including a computer program that, when executed by a processor, implements the method of any of the above embodiments.

[0142] The following is for reference. Figure 6 It shows a schematic diagram of the structure of a computer system 600 suitable for implementing a terminal device of the present invention. Figure 6 The terminal device shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention.

[0143] like Figure 6 As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes based on programs stored in read-only memory (ROM) 602 or programs loaded from storage section 608 into random access memory (RAM) 603. The RAM 603 also stores various programs and data required for the operation of the system 600. The CPU 601, ROM 602, and RAM 603 are interconnected via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0144] The following components are connected to I / O interface 605: an input section 606 including a keyboard, mouse, etc.; an output section 607 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to I / O interface 605 as needed. A removable medium 611, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on drive 610 as needed so that computer programs read from it can be installed into storage section 608 as needed.

[0145] In particular, according to the embodiments disclosed in this invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this invention include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 609, and / or installed from removable medium 611. When the computer program is executed by central processing unit (CPU) 601, it performs the functions defined above in the system of this invention.

[0146] It should be noted that the computer-readable medium shown in this invention can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this invention, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.

[0147] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0148] The modules described in the embodiments of the present invention can be implemented in software or hardware. These modules can also be housed in a processor, and for example, can be described as: a page determination module, a data acquisition module, a node acquisition module, an instance creation module, and a page display module. The names of these modules do not necessarily limit the module itself; for example, the page determination module can also be described as "a module that receives document browsing instructions and determines the target document and target page corresponding to the document browsing instructions."

[0149] In another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiments; or it may exist independently and not assembled into the device. The computer-readable medium carries one or more programs, which, when executed by the device, cause the device to include:

[0150] Receive a document browsing instruction and determine the target document and target page corresponding to the document browsing instruction;

[0151] Obtain the basic relational data model and document structure metadata corresponding to the target document;

[0152] From the basic relational data model, obtain at least one page node corresponding to the target page and at least one layer node corresponding to each page node;

[0153] For each layer node, the layer data of the layer node is parsed from the document's structured metadata; and a layer instance of the layer node is created based on the layer data of the layer node.

[0154] Based on the layer instances of each layer node, display the target page in the target document.

[0155] According to the technical solution of this invention, after receiving a document browsing instruction, the basic relational data model and document structured metadata corresponding to the target document are obtained. From the basic relational data model, the layer nodes corresponding to the target page are obtained. Then, from the document structured metadata, the layer data of the layer nodes is parsed, and layer instances of the layer nodes are created. Finally, based on the layer instances of each layer node, the target page in the target document is displayed. Only the layers in the browsed target page need to be loaded, and layer instances of the layers in the target page are generated. Compared to generating layer instances of all layers, this reduces the system resources consumed and improves the smoothness of user operation.

[0156] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can occur depending on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A page display method, characterized in that, The method comprises: receiving a document browsing instruction, determining a target document and a target page corresponding to the document browsing instruction; obtaining a basic relational data model and document structured metadata corresponding to the target document; from the basic relational data model, obtaining at least one page node corresponding to the target page and at least one layer node corresponding to each of the page nodes; for each of the layer nodes, parsing layer data of the layer node from the document structured metadata; and creating a layer instance of the layer node according to the layer data of the layer node; displaying the target page in the target document according to the layer instance of each of the layer nodes.

2. The method of claim 1, wherein, The parsing of the layer data of the layer node from the document structured metadata comprises: in response to the metadata of the layer node not being stored in the document structured metadata, obtaining server-side data of the layer node from a server; parsing the server-side data to generate metadata of the layer node; and storing the metadata of the layer node in the document structured metadata; obtaining the metadata of the layer node from the document structured metadata; parsing the metadata of the layer node to generate the layer data of the layer node.

3. The method of claim 1, wherein, After the displaying of the target page in the target document according to the layer instance of each of the layer nodes, the method further comprises: in response to the current system satisfying page recycling conditions, obtaining a plurality of loaded pages and determining a silence duration of each of the loaded pages; determining a recycling page from the plurality of loaded pages according to the silence duration of each of the loaded pages; determining at least one recycling page node corresponding to the recycling page and a recycling layer node corresponding to each of the recycling page nodes; deleting the layer instance of the recycling layer node from a node instance manager; deleting the metadata of the recycling layer node from the document structured metadata.

4. The method of claim 1, wherein, After the receiving of the document browsing instruction, the method further comprises: receiving an instance obtaining request; determining a target layer node corresponding to the instance obtaining request; in response to the target layer node not being loaded and an editing scenario of the target document being collaboration, determining dependency relationship data of the target layer node from the basic relational data model; and obtaining a calling module corresponding to the instance obtaining request; in response to the calling module passing a relationship check of the dependency relationship data, parsing layer data of the target layer node from the document structured metadata; and creating a layer instance of the target layer node according to the layer data of the target layer node.

5. The method of claim 4, wherein, After the determining of the target layer node corresponding to the instance obtaining request, the method further comprises: in response to the target layer node not being loaded and the editing scenario of the target document being single-machine, parsing layer data of the target layer node from the document structured metadata; and creating a layer instance of the target layer node according to the layer data of the target layer node; in response to the target layer node being loaded, obtaining the layer instance of the target layer node from a node instance manager.

6. The method of claim 1, wherein, The editing scenario of the target document is collaboration; The receiving document browsing instruction further includes: Receiving document change information sent by the server for the target document; wherein the document change information is generated according to the editing submission information of other collaboration parties to the target document; According to the document change information, updating the basic relationship data model and / or the document structured metadata.

7. A page presentation device, characterized by Comprise: A page determination module for receiving a document browsing instruction, determining a target document and a target page corresponding to the document browsing instruction; A data acquisition module for acquiring a basic relationship data model and document structured metadata corresponding to the target document; A node acquisition module for acquiring at least one page node corresponding to the target page and at least one layer node corresponding to each page node from the basic relationship data model; An instance creation module for parsing layer data of each layer node from the document structured metadata for each layer node; creating a layer instance of the layer node according to the layer data of the layer node; A page display module for displaying the target page in the target document according to the layer instance of each layer node.

8. An electronic device, comprising: Comprise: One or more processors; Storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method of any one of claims 1-6.

9. A computer readable medium having stored thereon a computer program, characterized in that The program is executed by the processor to implement the method of any one of claims 1-6.

10. A computer program product comprising a computer program which, when executed by a processor, implements the method of any one of claims 1-6.

Citation Information

Patent Citations

  • Structural data processing method and device, storage medium and electronic device

    CN109445784A

  • Page cache scheduling method, device, equipment and medium for layout documents

    CN119739935A

  • Document processing method and device and storage medium

    CN120234482A