An online XBRL editor supporting undo and redo for multi-person collaboration

By designing a multi-person collaborative online XBRL editor that supports undo and redo, we solve the problem of traditional editors being unable to achieve multi-person collaboration and undo and redo functions, and realize real-time data sharing and fine-grained undo and redo for multi-person collaborative editing. , which improves the clarity of semantic expression and editor performance of basic information on classification standards.

CN117252159BActive Publication Date: 2024-09-20GBICC GLOBAL BUSINESS INTELLIGENCE CONSULTING CORP +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310972012.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-03
Publication Date
2024-09-20
Estimated Expiration
2043-08-03

AI Technical Summary

Technical Problem

Traditional XBRL editors cannot achieve multi-person collaborative editing, and have limitations in the undo and redo functions. They cannot provide fine-grained undo and redo functions, which affects the user's ability to control and manage editing history. Moreover, it cannot handle classification standards based on Only basic text editing functions are provided during information processing, resulting in redundant, irregular or inconsistent text in the edited text.

Method used

A multi-person collaborative online XBRL editor that supports undo and redo is designed, including a new taxonomy module, a front-end editing interface opening module, a taxonomy loading module, a display module, a front-end user editing module, a back-end saving module and an undo context module. , transmits the results of undo context execution action operations through WebSocket, provides more fine-grained undo and redo functions, and uses semantic correction technology to improve the clarity and accuracy of text expression.

Benefits of technology

It realizes real-time data sharing and collaborative editing for multi-person collaborative editing, provides more fine-grained undo and redo functions, improves users' ability to control editing history, and improves the semantic expression of basic information of classification standards through semantic correction technology. Clarity and precision optimize the functionality and performance of the XBRL editor.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117252159B
    Figure CN117252159B
Patent Text Reader

Abstract

The present application discloses an online XBRL editor supporting undo and redo for multi-person collaboration, which provides basic information of classification standards; selects any XBRL file and opens the front-end editing interface; loads all files of the classification standards; displays each element and each link library information of the classification standards; performs editing operations; constructs corresponding action classes and saves parameters according to the editing operations of the front-end user editing module; performs action operations in the undo context and updates the undo and redo list; transmits the results of the undo context execution action operations of the undo context to other online collaborative users in the form of WebSocket. In this way, the semantic expression clarity and accuracy of the basic information of the classification standards can be improved, and the functions and performance of the XBRL editor can be optimized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of intelligent data editing, and more specifically, to an online XBRL editor that supports undo and redo multi-person collaboration. Background Art

[0002] XBRL (Extensible Business Reporting Language) is an international standard for exchanging financial and business information between different systems. It is widely used in the financial and accounting fields to report, analyze and compare the financial data of enterprises.

[0003] However, traditional XBRL editors usually only support single-user online editing and cannot realize multi-user collaborative editing. This makes it difficult to realize real-time data sharing and collaborative editing in multi-user collaborative scenarios, increasing the cost of communication and coordination. In addition, traditional online XBRL editors have some limitations in terms of undo and redo functions. Usually, only the most recent operation can be undone and redoed, and more fine-grained undo and redo functions cannot be provided, which limits users' control and management capabilities over editing history.

[0004] Moreover, when processing basic information of classification standards, traditional online XBRL editors can only provide basic text editing functions and cannot optimize and improve the text. This leads to the possibility of redundancy, non-standardization or inconsistency in the edited text, which affects the quality and readability of the data.

[0005] Therefore, an optimized online XBRL editor that supports undo and redo for multi-person collaboration is desired. Summary of the invention

[0006] In order to solve the above technical problems, this application is proposed. The embodiment of this application provides an online XBRL editor that supports undo and redo for multi-person collaboration, which provides basic information of classification standards; selects any XBRL file and opens the front-end editing interface; loads all files of the classification standards; displays each element of the classification standards and each link library information; performs editing operations; constructs corresponding action classes and saves parameters according to the editing operations of the front-end user editing module; performs undo context action operations and updates the undo and redo list; transmits the results of the undo context action operations of the undo context to other online collaborative users in the form of WebSocket. In this way, the semantic expression clarity and accuracy of the basic information of the classification standards can be improved, and the functions and performance of the XBRL editor can be optimized.

[0007] In a first aspect, an online XBRL editor supporting undo and redo for multi-person collaboration is provided, comprising:

[0008] A new module for taxonomy is created to provide basic information of taxonomy;

[0009] The front-end editing interface opening module is used to select any XBRL file and open the front-end editing interface;

[0010] A classification standard loading module, used for loading all files of the classification standard;

[0011] A display module, used to display each element of the classification standard and each link library information;

[0012] Front-end user editing module, used for editing operations;

[0013] A back-end saving module is used to construct a corresponding action class and save parameters according to the editing operation of the front-end user editing module;

[0014] Undo context module, used to undo context execution action operations and update the undo and redo list;

[0015] The transmission module is used to transmit the result of the revocation context execution action operation of the revocation context to other online collaborative users in the form of WebSocket. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0017] Figure 1 The block diagram is a multi-person collaborative online XBRL editor supporting undo and redo according to an embodiment of the present application.

[0018] Figure 2 The block diagram is a new module for creating a taxonomy in an online XBRL editor for multi-person collaboration supporting undo and redo according to an embodiment of the present application.

[0019] Figure 3 The flowchart of the online XBRL editing method for multi-person collaboration supporting undo and redo according to an embodiment of the present application.

[0020] Figure 4 It is a schematic diagram of the architecture of a multi-person collaborative online XBRL editing method supporting undo and redo according to an embodiment of the present application.

[0021] Figure 5 The present invention is a flowchart of the editing process of the method for online editing of taxonomy by an online XBRL editor according to an embodiment of the present application.

[0022] Figure 6 This is a flowchart of a specific method for undoing / redoing according to an embodiment of the present application.

[0023] Figure 7 This is a diagram of an application scenario of an online XBRL editor for multi-person collaboration that supports undo and redo according to an embodiment of the present application. DETAILED DESCRIPTION

[0024] The following will describe the technical solutions in the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0025] Unless otherwise specified, all technical and scientific terms used in the embodiments of the present application have the same meaning as those commonly understood by those skilled in the art of the present application. The terms used in this application are only for the purpose of describing specific embodiments and are not intended to limit the scope of this application.

[0026] In the embodiments of the present application, it should be noted that, unless otherwise specified and limited, the term "connection" should be understood in a broad sense. For example, it can be an electrical connection or a connection between two components. It can be a direct connection or an indirect connection through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms can be understood according to the specific circumstances.

[0027] It should be noted that the terms "first\second\third" involved in the embodiments of the present application are only used to distinguish similar objects, and do not represent a specific order for the objects. It is understandable that the specific order or sequence of "first\second\third" can be interchanged where permitted. It should be understood that the objects distinguished by "first\second\third" can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein.

[0028] After introducing the basic principles of the present application, various non-limiting embodiments of the present application will be described in detail with reference to the accompanying drawings.

[0029] Traditional XBRL editors usually only support single-user online editing and cannot realize multi-user collaborative editing. This makes it difficult to realize real-time data sharing and collaborative editing in multi-user collaborative scenarios, increasing the cost of communication and coordination. In addition, traditional online XBRL editors have some limitations in terms of undo and redo functions. Usually, only the most recent operation can be undone and redoed, and more fine-grained undo and redo functions cannot be provided, which limits the user's control and management capabilities over the editing history.

[0030] Moreover, when processing basic information of classification standards, traditional online XBRL editors can only provide basic text editing functions and cannot optimize and improve the text. This leads to the possibility of redundancy, non-standardization or inconsistency in the edited text, which affects the quality and readability of the data. Therefore, an optimized online XBRL editor that supports undo and redo and multi-person collaboration is desired.

[0031] In one embodiment of the present application, Figure 1 FIG. 1 is a block diagram of an online XBRL editor for multi-person collaboration supporting undo and redo according to an embodiment of the present application. Figure 1 As shown, according to an embodiment of the present application, an online XBRL editor 100 supporting undo and redo for multi-person collaboration includes: a classification standard creation module 110, which is used to provide basic information of the classification standard; a front-end editing interface opening module 120, which is used to select any XBRL file and open the front-end editing interface; a classification standard loading module 130, which is used to load all files of the classification standard; a display module 140, which is used to display each element of the classification standard and each link library information; a front-end user editing module 150, which is used for editing operations; a back-end saving module 160, which is used to construct a corresponding action class and save parameters according to the editing operations of the front-end user editing module; an undo context module 170, which is used to undo context execution action operations and update the undo and redo list; a transmission module 180, which is used to transmit the result of the undo context execution action operation of the undo context to other online collaborative users in the form of WebSocket.

[0032] It should be understood that a collaborative online XBRL editor is a tool that allows multiple users to edit and share XBRL documents simultaneously. This editor can improve team collaboration efficiency, reduce misoperations and conflicts, and provide undo and redo functions so that users can easily roll back or re-execute operations. Semantic correction technology can improve the clarity and accuracy of text by analyzing the semantic structure and context of the text. In the XBRL editor, semantic correction can be applied to the basic information of the taxonomy to achieve semantic understanding and optimization of the basic information of the taxonomy, thereby improving the function and performance of the XBRL editor.

[0033] Among them, XBRL (eXtensible Business Reporting Language) is an XML-based data standard used to exchange, share and analyze data between different information systems and business departments. XBRL is widely used in corporate reporting, financial data analysis and regulatory compliance due to its readability and scalability. The content related to XBRL is mainly divided into: XBRL classification standard, XBRL instance document.

[0034] XBRL taxonomy, including:

[0035] (1) Element definition: Define the element information of financial reporting items and non-financial disclosure information.

[0036] a) Element name: Together with the namespace, it specifies a unique name for the business account;

[0037] b) Data types: currency, date, character, Boolean, etc.

[0038] c) Cycle type: point time, period time type, involving the cycle attributes of the subject;

[0039] d) Debit and credit attributes: Applicable to financial accounts, indicating debit and credit accounts, affecting the positive and negative signs of the disclosed content

[0040] e) Whether it can be empty, etc.;

[0041] (2) Relationships between elements: reporting relationships, definition relationships, and calculation relationships, which respectively represent the correlations between elements;

[0042] (3) The relationship between elements and resources: tag link library, reference link library, etc., provide readability and reference for elements;

[0043] (4) Business rule definition: cross-reference relationship between element data: formula link library, which provides the ability to read instance document content through XPath syntax and perform data validity verification.

[0044] (5) Modeling specifications: Use tuples to define elements or use Dimension specifications to agree on the disclosure of XBRL instance document data.

[0045] XBRL instance document, including:

[0046] (1) Context information: xbrli:context, which defines the report body, data period, and dimension information;

[0047] (2) Unit measurement information: xbrli:unit, defines the measurement information of numerical items, such as currency, shares, length, etc., and clarifies the specific measurement of the numerical value, such as 1m meter and 1cm centimeter. The same 1 has different meanings, such as 1 USD, 1CNY, etc.

[0048] (3) Instance data: fact uses the taxonomy elements to disclose data information in the XML document. Fact will further clarify the meaning of the subject by referencing the context through @contextRef and the unit measurement information through @unitRef.

[0049] In this application, XBRL editor mainly refers to XBRL taxonomy editor, which is used to compile and produce XBRL taxonomy; the compilation of XBRL instance documents mainly includes: listed company announcement compilation software, announcement compilation tools, etc., which are provided to users in a user-friendly manner and do not require users to have any knowledge of XBRL technology.

[0050] XBRL taxonomy editors are mainly divided into two forms: client-side and online editing.

[0051] Client tools generally have richer support functions, support Undo / Redo operations, and are based on a single taxonomy entry file. It is not possible to track and synchronize revisions of unloaded (discovered) XBRL files;

[0052] There are not many online editing products on the market, and each has its own advantages and disadvantages in terms of multi-person collaboration or functions. As the application of XBRL continues to expand, an online XBRL editor that supports undo and redo is needed to help users edit and manage more conveniently.

[0053] In this application, an online XBRL editor supporting undo and redo for multi-person collaboration is provided, and the editor supports XBRL 2.1, Dimension 1.0, and Formula 1.0 technical specifications. In a multi-person collaborative environment, the editor can support multiple people to edit the same set of XBRL classification standards at the same time. Different collaborators can edit the classification standards of the same entry or the classification standards of different entries. The XBRL editor automatically maintains the consistency of the content of each XBRL file.

[0054] The editor front end is developed using HTML / CSS (Bootstrap) and Javascript, and the back end is developed using Java, using the SpringCloud framework. The XBRL editor back end includes a command history component to support undo / redo operations. In the case of multi-person collaboration, the push mechanism for operation record results uses WebSocket technology to push operation record results to multiple collaborators to achieve operation synchronization and undo / redo operations during multi-person collaboration. This ensures the correctness and efficiency of multi-person collaboration.

[0055] Figure 2 FIG. 1 is a block diagram of a taxonomy creation module in an online XBRL editor supporting undo and redo for multi-person collaboration according to an embodiment of the present application. Figure 2As shown, the classification standard creation module 110 includes: a classification standard basic information acquisition module 111, which is used to obtain the classification standard basic information; a classification standard basic information semantic understanding module 112, which is used to semantically encode the classification standard basic information to obtain a classification standard basic information semantic understanding feature vector;

[0056] The classification standard basic information optimization module 113 is used to determine and optimize the classification standard basic information based on the classification standard basic information semantic understanding feature vector.

[0057] Specifically, the taxonomy basic information acquisition module 111 is used to obtain the taxonomy basic information. It should be understood that in the technical solution of the present application, it is expected to use the semantic understanding technology based on deep learning to perform semantic analysis and understanding on the taxonomy basic information, and then perform semantic correction based on AIGC to achieve semantic optimization expression of the taxonomy basic information, so as to improve the clarity and accuracy of the semantic expression of the taxonomy basic information and optimize the function and performance of the XBRL editor.

[0058] Specifically, in the technical solution of the present application, first, basic information of the classification standard is obtained. The classification standard is composed of multiple schema files (XSD files) and multiple link library files (XML files).

[0059] A set of classification standards can have many entry files (XSD), for example: different entry files can be defined for different years and different report types: annual report, interim report, quarterly report, temporary announcement.

[0060] Different entry files can reference a unified element pool (XSD file that defines the elements).

[0061] Specifically, the classification standard basic information semantic understanding module 112 is used to perform semantic encoding on the classification standard basic information to obtain a classification standard basic information semantic understanding feature vector. It includes: a character association semantic encoding unit, which is used to perform character association semantic understanding on the classification standard basic information to obtain a first classification standard basic information semantic understanding feature vector; a word association semantic encoding unit, which is used to perform word association semantic understanding on the classification standard basic information to obtain a second classification standard basic information semantic understanding feature vector; and a multi-scale semantic feature fusion unit, which is used to fuse the first classification standard basic information semantic understanding feature vector and the second classification standard basic information semantic understanding feature vector to obtain the classification standard basic information semantic understanding feature vector.

[0062] Considering that the classification standard basic information contains a large amount of semantic information and is composed of individual characters, the classification standard basic information is divided into character units to obtain a sequence of classification basic characters. In this way, the classification standard basic information can be decomposed into a sequence of individual characters to facilitate more fine-grained text processing, such as character-level semantic analysis or processing of format requirements of specific characters, thereby performing semantic understanding of the classification standard basic information.

[0063] Then, considering that the sequence of the classification basic characters in the classification standard basic information is data information divided by characters, there is a contextual semantic association relationship between the characters. Therefore, in order to capture the semantic understanding feature information of the classification standard basic information, in the technical solution of the present application, it is necessary to pass the sequence of the classification basic characters through a BiLSTM model including a Word2Vec model to obtain a first classification standard basic information semantic understanding feature vector. It should be understood that the Word2Vec model is a technology for mapping words or characters to vector representations, which can map similar words or characters to similar vector spaces, thereby facilitating semantic understanding. After passing the sequence of the classification basic characters through the Word2Vec model to map similar characters to similar vector spaces to obtain a sequence of input character vectors, a bidirectional long short-term memory network (BiLSTM) model is used to perform contextual semantic association encoding, so as to extract the contextual semantic association feature information based on character granularity in the classification standard basic information.

[0064] That is, specifically, the character association semantic encoding unit includes: a character division subunit, used to divide the classification standard basic information by character to obtain a sequence of classification basic characters; and a character context semantic understanding unit, used to pass the sequence of classification basic characters through a BiLSTM model including a Word2Vec model to obtain the first classification standard basic information semantic understanding feature vector.

[0065] The character context semantic understanding unit includes: a character conversion subunit, which is used to convert the sequence of classification basic characters into a sequence of classification basic character embedding vectors using the Word2Vec model; and a character encoding subunit, which is used to perform global context semantic encoding on the sequence of classification basic character embedding vectors through the BiLSTM model to obtain the first classification standard basic information semantic understanding feature vector.

[0066] In particular, it is also considered that a sequence divided only in character units often cannot capture the semantic information at the word level, which may lead to inaccurate understanding of the classification standard basic information or lack of contextual coherence. Therefore, in the technical solution of the present application, the classification standard basic information is further divided in word units to obtain a sequence of classification basic words, which is conducive to better capturing the semantic information and contextual relationship of the words in the classification standard basic information, thereby improving the accuracy and coherence of understanding.

[0067] Furthermore, the sequence of the classification basic words is also passed through the BiLSTM model including the Word2Vec model to obtain the semantic understanding feature vector of the second classification standard basic information. In this way, after the sequence of the classification basic words is passed through the Word2Vec model to map similar words to similar vector spaces to obtain a sequence of input word vectors, a bidirectional long short-term memory network (BiLSTM) model is used to perform semantic association encoding of the sequence context of the input word vectors, so as to extract the contextual semantic association feature information based on word granularity in the classification standard basic information.

[0068] That is, more specifically, the word-associated semantic encoding unit includes: a word division subunit, used to divide the classification standard basic information into words to obtain a sequence of classification basic words; and a word context semantic understanding unit, used to pass the sequence of classification basic words through the BiLSTM model including the Word2Vec model to obtain the second classification standard basic information semantic understanding feature vector.

[0069] The word context semantic understanding unit includes: a word conversion subunit, which is used to use the Word2Vec model to convert the sequence of classification basic words into a sequence of classification basic word embedding vectors; and a word encoding subunit, which is used to perform global context semantic encoding on the sequence of classification basic word embedding vectors through the BiLSTM model to obtain the second classification standard basic information semantic understanding feature vector.

[0070] Then, the first classification standard basic information semantic understanding feature vector and the second classification standard basic information semantic understanding feature vector are fused to fuse the contextual semantic association feature information based on character granularity and the contextual semantic association feature information based on word granularity of the classification standard basic information, thereby obtaining the classification standard basic information semantic understanding feature vector. In this way, the semantic understanding of the classification standard basic information can be fully performed, and then the semantic optimization expression of the classification standard basic information can be performed based on the multi-scale semantic understanding feature information of the classification standard basic information.

[0071] Specifically, the classification standard basic information optimization module 113 is used to determine the optimized classification standard basic information based on the classification standard basic information semantic understanding feature vector. It includes: a feature optimization factor calculation unit, which is used to perform forward propagation information preservation fusion on the first classification standard basic information semantic understanding feature vector and the second classification standard basic information semantic understanding feature vector to obtain a compensation feature vector; a feature weighted optimization unit, which is used to calculate the position point multiplication of the compensation feature vector and the classification standard basic information semantic understanding feature vector to obtain the optimized classification standard basic information semantic understanding feature vector; and an information optimization unit, which is used to pass the optimized classification standard basic information semantic understanding feature vector through an AIGC-based text expression optimizer to obtain the optimized classification standard basic information.

[0072] It should be understood that AIGC is a technology based on artificial intelligence to generate content, which can improve the clarity and accuracy of text expression by optimizing and improving the text. Therefore, after obtaining the multi-scale semantic understanding feature information of the classification standard basic information, the AIGC technology can be used to optimize the semantic understanding feature vector of the classification standard basic information. That is to say, specifically, the semantic understanding feature vector of the classification standard basic information is passed through the AIGC-based text expression optimizer to obtain the optimized classification standard basic information to improve its expression ability and accuracy.

[0073] In particular, in the technical solution of the present application, here, since the first classification standard basic information semantic understanding feature vector and the second classification standard basic information semantic understanding feature vector respectively express the semantic features of the source data of the classification standard basic information at different scales, the difference in the semantic feature encoding scales will introduce significant misalignment of feature distribution in the first classification standard basic information semantic understanding feature vector and the second classification standard basic information semantic understanding feature vector after short-range-long-range context association encoding through the BiLSTM model, so that when the first classification standard basic information semantic understanding feature vector and the second classification standard basic information semantic understanding feature vector are fused, the misaligned feature distribution between them will cause information loss in the forward propagation of the model, affecting the expression effect of the obtained classification standard basic information semantic understanding feature vector.

[0074] Based on this, the applicant of this application has a semantic understanding feature vector of the first classification standard basic information and the second classification standard basic information semantic understanding feature vector Perform forward propagation information preservation to obtain the compensated feature vector , Specifically, the first classification standard basic information semantic understanding feature vector and the second classification standard basic information semantic understanding feature vector are forward propagated and fused with information preservation to obtain the compensation feature vector according to the following fusion optimization formula; wherein the fusion optimization formula is:

[0075]

[0076]

[0077] in, is the semantic understanding feature vector of the basic information of the first classification standard, is the semantic understanding feature vector of the second classification standard basic information, and Respectively represent the left shift of the eigenvector Bit and right shift Bit, is the rounding function, is the mean of all feature values ​​of the first classification standard basic information semantic understanding feature vector and the second classification standard basic information semantic understanding feature vector, represents the one-norm of the eigenvector, is the distance between the first classification standard basic information semantic understanding feature vector and the second classification standard basic information semantic understanding feature vector, and is the logarithmic function with base 2, and represent positional subtraction and addition, respectively, and is the weighted hyperparameter, is the compensated eigenvector.

[0078] Here, for the first classification standard basic information semantic understanding feature vector and the second classification standard basic information semantic understanding feature vector The floating point distribution error and information loss on the vector scale generated during the forward propagation process in the network model are balanced and standardized by introducing the bit-by-bit shift operation of the vector from the perspective of uniform information, and the distribution diversity is introduced by reshaping the distribution of feature parameters before fusion, thereby retaining information in a way of expanding information entropy. In this way, by compensating the feature vector By performing dot multiplication weighting on the semantic understanding feature vector of the basic information of the taxonomy, the information loss of the semantic understanding feature vector of the basic information of the taxonomy can be reduced, thereby improving the generation quality of the semantic understanding feature vector of the basic information of the taxonomy when it passes through the text expression optimizer based on AIGC. In this way, the semantic expression of the basic information of the taxonomy can be optimized to improve the clarity and accuracy of the semantic expression of the basic information of the taxonomy, and optimize the function and performance of the XBRL editor.

[0079] The online XBRL editor for multi-person collaboration supporting undo and redo provided by the present application may include the following beneficial effects: 1. The present application supports multiple users to edit the classification standards of different entries in the same set of classification standards at the same time, and automatically maintains the consistency of the internal data of different classification standards. For example: renaming an element will automatically update the pointer in the link library of the classification standards of different entries. After comparison and reconstruction, the pointer of the element in the link library is wrong. 2. The present application supports different entry classification standards and sets different editable attributes for the same file. To meet the needs of editing files of different entries. Solve the uncertainty of the files affected by the default editing. 3. Support redo and undo processing of online editing, which brings great convenience to editing. When multi-person collaborative editing conflicts, the user is prompted with an error message to ensure the integrity of the editing operation. Multiple internal revisions of an editing operation are all successful or failed. 4. The command history is stored in the background server, which ensures the security and stability of the operation record; 5. Through the editing message notification of WebSocket, different collaborators can see the latest content, avoid refreshing the entire page, and obtain the latest content. The push mechanism ensures the synchronization of operations and the correctness of undo / redo operations during multi-person collaboration. 6. This application is a general editor for the XBRL taxonomy and is not limited to specific application scenarios.

[0080] In summary, the online XBRL editor 100 supporting undo and redo for multi-person collaboration according to the embodiment of the present application is described, which improves the semantic expression clarity and accuracy of the basic information of the classification standard and optimizes the function and performance of the XBRL editor.

[0081] In one embodiment of the present application, Figure 3 The flowchart of the online XBRL editing method for multi-person collaboration supporting undo and redo according to an embodiment of the present application. Figure 4 FIG. 1 is a schematic diagram of an online XBRL editing method architecture supporting undo and redo for multi-person collaboration according to an embodiment of the present application. Figure 3 and Figure 4As shown, the online XBRL editing method for multi-person collaboration supporting undo and redo includes: 210, providing basic information of the classification standard; 220, selecting any XBRL file and opening the front-end editing interface; 230, loading all files of the classification standard; 240, displaying each element of the classification standard and each link library information; 250, editing operation; 260, constructing a corresponding action class and saving parameters according to the editing operation of the front-end user editing module; 270, undoing the context execution action operation and updating the undo and redo list; 280, transmitting the result of the undo context execution action operation of the undo context to other online collaborative users in the form of WebSocket.

[0082] In this application, a classification editing method supporting multiple people to edit XBRL online is provided, such as Figure 5 and Figure 6 As shown in the figure, the specific implementation process is as follows: create enterprise classification standard model file; create element library of enterprise classification standard; define enterprise classification standard extended link role library; compile definition link library, reporting link library and calculation link library according to the requirements of compilation and reporting rules; verify the compiled enterprise classification standard and make corrections to the places where the enterprise classification standard is found to be non-standard; export the verified enterprise classification standard to form the enterprise extended classification standard. Compared with the existing technology, the classification editing method supporting multiple people to edit XBRL online improves the work efficiency of multiple XBRL technicians to collaborate in developing enterprise XBRL classification standards. It changes from the original division of labor and merging of multiple people using XBRL stand-alone tools to multiple people being able to operate online at the same time, reduces the workload of repeated addition of elements, roles and extended link libraries, improves the accuracy of compiling classification standards, is highly practical and easy to promote.

[0083] This application is aimed at the business scenario of enterprises piloting the general classification standards of the Ministry of Finance, expanding the enterprise classification standards, and compiling the XBRL instance documents of annual financial reports. It is a proprietary tool implementation within a specific scope. It is mainly reflected in:

[0084] (1) Based on the general classification standards of the Ministry of Finance;

[0085] (2) Create and expand the enterprise classification standard element library;

[0086] (3) Define a link library for enterprise classification standards;

[0087] (4) Conduct standard verification and standard revision according to the Ministry of Finance's reporting rules;

[0088] (5) Supports multiple people online editing.

[0089] In one embodiment of the present application, the method for online XBRL editor to edit taxonomy online includes the following steps:

[0090] 1. Provide basic information of taxonomy, upload or create new taxonomy. Online XBRL Editor analyzes the content, default editable attributes, and other attributes of each XBRL file and records them in the database. Users can set the default editing attributes of XBRL files through the interface. Official taxonomy files can be set to read-only, and extended taxonomy files can be set to editable.

[0091] 2. Select any XBRL file to open the front-end editing interface of the online XBRL editor.

[0092] 3. Java backend first loads all the taxonomy files uploaded or created in 1 according to the XBRL file opened by the user to form a complete taxonomy set (called: Version TaxonomySet). The complete taxonomy set (Version TaxonomySet) loads the XBRL file selected by the user as the entry file, and loads the XBRL schema file and link library according to the discovery process defined in the XBRL technical specification. Files with the same name reuse the same memory object of VersionTaxonomySet to generate a new view taxonomy set (View TaxonomySet) memory object. The element definition and various link library information of the taxonomy are returned in JSON format. Version TaxonomySet carries the main content of the taxonomy editing, similar to a database table; View TaxonomySet uses a specific entry as a perspective to display a part of the current taxonomy set. Edit the content through the View TaxonomySet view, and synchronize the update to other View TaxonomySets through the Version TaxonomySet.

[0093] 4. The front end of the online XBRL editor uses list display elements and tree controls to display various link library information, including: reporting link library, definition link library, calculation link library, label link library, display link library and formula link library information.

[0094] 5. Users can set the editable attributes of different XBRL files in the current editing session. Clarify the scope of influence of the current online editing operation. By default, the XBRL file to be added is selected according to the distance relationship with the current entry file.

[0095] 6. When the user performs editing operations, the front-end passes the corresponding editing commands and their related parameters to the back-end editing interface in the form of JSON.

[0096] 7. The backend constructs a corresponding Action class based on each editing operation, and supports the execution of corresponding redo and undo operations. The Action class internally stores the various editing parameters and the mirror data of the current editing object, and supports undo operations to restore the original state of the editing object. The Action object supports JSON serialization and deserialization processing, and the serialized content is persisted on the server to respond to the user's undo or redo operations.

[0097] 8. The backend passes the Action object to the undo context (UndoContext class) for execution. UndoContext completes the concurrency control of each Action operation and performs the editing operation. UndoContext uses the Undo manager internally to maintain the current session Undo / Redo queue. The Undo / Redo queue records the Action object or the object ID, supports persisting the Action to a file, or reloading it from a file, to reduce memory consumption.

[0098] 9. The backend undo context (UndoContext) completes the logging of editing operations for easy auditing.

[0099] 10. The backend transmits the results of each edit to other online collaborative users via WebSocket.

[0100] 11. After receiving the pushed editing result message, the front-end of other collaborative users completes the partial update and notification of the editing content.

[0101] 12. The online XBRL editor supports the definition of elements, reference to external classification standards, support for XBRL 2.1, dimensions, definition of various link libraries within formula specifications, etc.

[0102] 13. The online XBRL editor supports various auxiliary functions such as classification standard backup, publishing, Excel import and export, export of classification standards, online verification, built-in conventional technical repair functions, etc.

[0103] Those skilled in the art will appreciate that the specific operations of each step in the above-mentioned online XBRL editing method for supporting undo and redo and multi-person collaboration have been described in detail above. Figure 1 to Figure 2 The description of the online XBRL editor for multi-person collaboration supporting undo and redo has been described in detail, and therefore, its repeated description will be omitted.

[0104] Figure 7 FIG. 1 is an application scenario diagram of an online XBRL editor supporting undo and redo collaboration among multiple people according to an embodiment of the present application. Figure 7 As shown, in this application scenario, first, the classification standard basic information (for example, Figure 7 Then, the obtained taxonomy basic information is input to a server that deploys an online XBRL editing algorithm that supports undo and redo multi-person collaboration (for example, Figure 7 In S) as shown in , the server is capable of processing the taxonomy basic information based on an online XBRL editing algorithm that supports undo and redo multi-person collaboration to determine and optimize the taxonomy basic information.

[0105] The basic principles of the present application are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present application are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present application. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, not for limitation, and the above details do not limit the present application to being implemented by adopting the above specific details.

[0106] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present application. Therefore, the present application is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

[0107] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0108] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present application to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.

Claims

1. An online XBRL editor supporting undo and redo for multi-person collaboration, characterized in that: include: A new module for creating taxonomy standards is used to provide basic information of taxonomy standards; The front-end editing interface opening module is used to select any XBRL file and open the front-end editing interface; Classification standard loading module, used to load all files of classification standards; A display module, used to display each element of the classification standard and each link library information; Front-end user editing module, used for editing operations; A back-end saving module is used to construct a corresponding action class and save parameters according to the editing operation of the front-end user editing module; Undo context module, used to undo context execution action operations and update the undo and redo list; A transmission module, used for transmitting the result of the revocation context execution action operation of the revocation context to other online collaborative users in the form of WebSocket; The classification standard new creation module includes: A classification standard basic information acquisition module, used to obtain the classification standard basic information; A classification standard basic information semantic understanding module, used for semantically encoding the classification standard basic information to obtain a classification standard basic information semantic understanding feature vector; A classification standard basic information optimization module, used for determining and optimizing the classification standard basic information based on the semantic understanding feature vector of the classification standard basic information; The classification standard basic information semantic understanding module includes: A character association semantic encoding unit, used for performing character association semantic understanding on the classification standard basic information to obtain a first classification standard basic information semantic understanding feature vector; A word association semantic encoding unit, used for performing word association semantic understanding on the classification standard basic information to obtain a second classification standard basic information semantic understanding feature vector; and a multi-scale semantic feature fusion unit, configured to fuse the first classification standard basic information semantic understanding feature vector and the second classification standard basic information semantic understanding feature vector to obtain a classification standard basic information semantic understanding feature vector; The classification standard basic information optimization module includes: A feature optimization factor calculation unit, used for performing forward propagation information preservation fusion on the first classification standard basic information semantic understanding feature vector and the second classification standard basic information semantic understanding feature vector to obtain a compensation feature vector; A feature weighted optimization unit, used for calculating the position point multiplication of the compensation feature vector and the classification standard basic information semantic understanding feature vector to obtain an optimized classification standard basic information semantic understanding feature vector; and an information optimization unit, configured to pass the semantic understanding feature vector of the optimized classification standard basic information through an AIGC-based text expression optimizer to obtain optimized classification standard basic information; The feature optimization factor calculation unit is used to: perform forward propagation information preservation fusion on the first classification standard basic information semantic understanding feature vector and the second classification standard basic information semantic understanding feature vector according to the following fusion optimization formula to obtain the compensation feature vector; Wherein, the fusion optimization formula is: in, is the semantic understanding feature vector of the basic information of the first classification standard, is the semantic understanding feature vector of the second classification standard basic information, and Respectively represent the left shift of the eigenvector Bit and right shift Bit, is the rounding function, is the mean of all feature values ​​of the first classification standard basic information semantic understanding feature vector and the second classification standard basic information semantic understanding feature vector, represents the one-norm of the eigenvector, is the distance between the first classification standard basic information semantic understanding feature vector and the second classification standard basic information semantic understanding feature vector, and is the logarithmic function value with base 2, and represent positional subtraction and addition, respectively, and is the weighted hyperparameter, is the compensated eigenvector.

2. The online XBRL editor supporting undo and redo for multi-person collaboration according to claim 1, characterized in that: The character association semantic encoding unit includes: A character division subunit, used for dividing the classification standard basic information in units of characters to obtain a sequence of classification basic characters; And a character context semantic understanding unit, which is used to pass the sequence of the classification basic characters through a BiLSTM model including a Word2Vec model to obtain the first classification standard basic information semantic understanding feature vector.

3. The online XBRL editor supporting undo and redo for multi-person collaboration according to claim 2, characterized in that: The character context semantic understanding unit comprises: A character conversion subunit, for converting the sequence of classification basic characters into a sequence of classification basic character embedding vectors using the Word2Vec model; And a character encoding subunit, which is used to perform global context semantic encoding on the sequence of the classification basic character embedding vectors through the BiLSTM model to obtain the first classification standard basic information semantic understanding feature vector.

4. The online XBRL editor supporting undo and redo for multi-person collaboration according to claim 3, characterized in that: The word association semantic encoding unit includes: A word division subunit, used for dividing the classification standard basic information into words to obtain a sequence of classification basic words; And a word context semantic understanding unit, which is used to pass the sequence of the classification basic words through the BiLSTM model including the Word2Vec model to obtain the second classification standard basic information semantic understanding feature vector.

5. The online XBRL editor supporting undo and redo for multi-person collaboration according to claim 4, characterized in that: The word context semantic understanding unit includes: A word conversion subunit, used to convert the sequence of classification base words into a sequence of classification base word embedding vectors using the Word2Vec model; And a word encoding subunit, which is used to perform global context semantic encoding on the sequence of the classification basic word embedding vectors through the BiLSTM model to obtain the second classification standard basic information semantic understanding feature vector.