WO2021073076A1 - Method, apparatus and device for visualizing spreadsheet, and storage medium - Google Patents

Method, apparatus and device for visualizing spreadsheet, and storage medium Download PDF

Info

Publication number
WO2021073076A1
WO2021073076A1 PCT/CN2020/089617 CN2020089617W WO2021073076A1 WO 2021073076 A1 WO2021073076 A1 WO 2021073076A1 CN 2020089617 W CN2020089617 W CN 2020089617W WO 2021073076 A1 WO2021073076 A1 WO 2021073076A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
nodes
visual representation
dependency relationship
spreadsheet
Prior art date
Application number
PCT/CN2020/089617
Other languages
French (fr)
Chinese (zh)
Inventor
丛明舒
瞿中明
曾凯
曲嘉宝
Original Assignee
深圳逻辑汇科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳逻辑汇科技有限公司 filed Critical 深圳逻辑汇科技有限公司
Publication of WO2021073076A1 publication Critical patent/WO2021073076A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/177Editing, e.g. inserting or deleting of tables; using ruled lines
    • G06F40/18Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/183Tabulation, i.e. one-dimensional positioning

Definitions

  • the present disclosure relates to methods, devices, equipment, and storage media for visualizing electronic forms.
  • a spreadsheet model is a spreadsheet that can include numerical values, text, formulas, etc., to calculate the value of one or some variables.
  • financial analysts usually need to build a spreadsheet model for finance to calculate the intrinsic value of financial assets.
  • the spreadsheet model used for finance usually includes dozens of pages, thousands of rows, and tens of thousands of cells. There are complex mutual calculation relationships between cells, and most of the cells may be calculated based on other cells.
  • the cells in the spreadsheet can store text, time, numbers, or formulas. If a formula is stored in a cell, the spreadsheet usually displays the calculation result of the formula by default.
  • the formula is hidden or displayed in another area, which makes the user need to perform further operations to track the cell referenced by the formula .
  • the complexity of the spreadsheet model and the non-explicit calculation relationships between cells make the spreadsheet model very error-prone, difficult to debug, and difficult to understand or change by others except the spreadsheet model builder. Therefore, there is a need for an improved method, device, device, and storage medium for visualizing electronic forms.
  • An embodiment of the present disclosure relates to a computer-implemented method for visualizing an electronic form, the method comprising: obtaining a hierarchical structure of the electronic form, wherein the hierarchical structure includes one or more levels, and the one or more levels have multiple nodes, Each level has at least one node and has a corresponding level type, and each node corresponds to one or more cells in the spreadsheet, where the hierarchy structure also includes the affiliation relationship between the multiple nodes; extracting the multiple Metadata of each node in the node; establish the dependency relationship between the multiple nodes based at least on the calculation relationship between the multiple nodes in the hierarchical structure; and based on the spreadsheet-based hierarchy, metadata, and the multiple nodes The dependencies between the nodes are used to generate a visual representation of the hierarchy of the spreadsheet.
  • the device includes: at least one processor; and at least one storage device.
  • the at least one storage device stores instructions, which when executed by at least one processor causes At least one processor executes the above method.
  • Yet another embodiment of the present disclosure relates to a non-transitory computer-readable storage medium that stores instructions that when executed by a processor causes the foregoing method to be performed.
  • Yet another embodiment of the present disclosure relates to an apparatus for visualizing electronic forms, which includes components for performing the steps of the above-mentioned method.
  • FIG. 1 is a block diagram of an exemplary apparatus for visualizing electronic forms according to some embodiments of the present disclosure.
  • FIG. 2 is a flowchart illustrating an exemplary method for visualizing an electronic form according to some embodiments of the present disclosure.
  • Figure 3 is a schematic diagram illustrating an exemplary electronic form according to some embodiments of the present disclosure.
  • 4A and 4B are schematic diagrams illustrating an exemplary spreadsheet hierarchy and dependency relationships between nodes according to some embodiments of the present disclosure.
  • FIG. 5 is a flowchart illustrating an exemplary method for establishing a dependency relationship between nodes according to some embodiments of the present disclosure.
  • FIG. 6 is a schematic diagram showing nodes in an exemplary spreadsheet hierarchy structure according to some embodiments of the present disclosure.
  • FIG. 7A-7C show a visual representation of the hierarchy of an exemplary electronic form according to some embodiments of the present disclosure.
  • FIGS. 8A-8C show a visual representation of the hierarchy of an exemplary electronic form according to some embodiments of the present disclosure.
  • Figure 9 shows a visual representation of the hierarchy of an exemplary spreadsheet according to some embodiments of the present disclosure.
  • FIG. 10 shows a visual representation of the hierarchy of an exemplary electronic form according to some embodiments of the present disclosure.
  • 11A-11B show a visual representation of the hierarchy of an exemplary electronic form according to some embodiments of the present disclosure.
  • 12A-12C show a visual representation of the hierarchy of an exemplary electronic form according to some embodiments of the present disclosure.
  • FIG. 13 is a schematic diagram showing additional information in a visual representation of an exemplary electronic form's hierarchy according to some embodiments of the present disclosure.
  • FIG. 14 is a flowchart illustrating an exemplary method for modifying an electronic form through a visual representation according to some embodiments of the present disclosure.
  • FIG. 15 shows a general hardware environment in which the present disclosure can be applied according to some embodiments of the present disclosure.
  • the existing general-purpose spreadsheet editing software such as Microsoft Excel
  • the existing general-purpose spreadsheet editing software includes some visualization tools, but these visualization tools generally only visualize values, such as generating charts such as bar charts and pie charts.
  • Some independent visualization software such as Data Visualizer in Microsoft Visio, Analytica in Lumina Decision Systems
  • the DPL developed by Syncopation Software includes the influence diagram function, which can be used to visualize the calculation relationship in the spreadsheet. However, if a spreadsheet contains more than 100 formulas, the influence diagram will contain too much information, and the influence diagram will become very complicated. It is difficult for users to find the information they need. Therefore, the influence diagram is difficult to help users understand and debug. Complex spreadsheet model.
  • the embodiment of the present application can divide the electronic table into nodes of different levels according to the text information and format information in the electronic table and the position of the cell, and can identify the semantic information of the cell storing the numerical value and formula information, thereby generating the electronic
  • a visual representation of a table with a hierarchical structure and semantic information is also referred to as a hierarchical visual representation in this article.
  • FIG. 1 is a block diagram of an exemplary apparatus 100 for visualizing electronic forms according to some embodiments of the present disclosure.
  • the apparatus 100 may include a hierarchical structure obtaining component 110, a metadata extraction component 120, a dependency relationship establishment component 130, and a visual representation generating component 140.
  • FIG. 1 illustrates the above four units, this is only a schematic structure of an apparatus for visualizing electronic forms.
  • the apparatus 100 for visualizing electronic forms may also include other possible units, or may include the above four units. Combination unit of any unit.
  • the hierarchical structure obtaining part 110 may be configured to obtain the hierarchical structure of the electronic form.
  • the hierarchical structure of the spreadsheet may include one or more hierarchies with multiple nodes, where each hierarchy has at least one node and has a corresponding hierarchical type (e.g., workbook, page , Section, table, block, row, column, interval, cell, etc.), each node corresponds to one or more cells in the spreadsheet, where the hierarchical structure also includes the affiliation between the multiple nodes (for example A table node can have several child nodes whose level type is row, that is to say, these child nodes whose level type is row belong to the node whose level type is table).
  • node A is a child node of node B, or node A belongs to ⁇ Node B.
  • obtaining the hierarchical structure of the spreadsheet may include one or more of the following: identifying the location, content, and format information of cells in the spreadsheet (for example, font, font size, whether to bold, background color, etc.) ), and at least based on one or more of cell location, content, and format information to identify the hierarchical structure of the electronic form; and receive the hierarchical structure specified by the user.
  • the level type of one or more levels of the spreadsheet includes one or more of the following: workbook, page, section, table, block, row, column, interval, and cell.
  • obtaining the hierarchical structure of the spreadsheet may include one or more of the following: detecting the title in each page of the workbook, based on one or more of the location, content, and format information of the title To determine the level of the title, and divide each page into corresponding levels of sections or tables based on the level of the title; determine the row based on one or more of the row and column position, content, and format information of each table And column levels; divide rows and columns into blocks based on one or more of the correlation between the rows in each table, the correlation between the columns, the level of the rows, and the level of the columns; and based on each The correlation between the cells in each row and column divides the cells into intervals.
  • the metadata extraction component 120 may be configured to extract metadata of each of the plurality of nodes in the hierarchical structure of the spreadsheet.
  • the metadata of each node may include semantic information describing the specific meaning of the node.
  • the semantic information may include one or more of a name, a title, a tag, and an annotation.
  • the semantic information of a workbook can be the name of the workbook and/or the text content that describes the entire workbook
  • the semantic information of a page can be the name of the page and/or the text content that describes the entire page
  • a section The semantic information of can be the title of this section
  • the semantic information of a table can be the name of the table
  • the semantic information of a row or column can be the label of this row or column
  • the semantic information of a block can be applicable to this block.
  • the semantic information of a cell is the row label of this cell and the column label of this cell.
  • the semantic information of workbooks, pages, sections, tables, blocks, rows, columns, intervals, and cells can all include comments.
  • Comments are descriptive text for nodes at these levels. According to one embodiment, when the node is displayed in the hierarchical visual representation of the electronic form, the semantic information of the node is also displayed in the visual representation, thereby helping the user to understand the structure and content of the electronic form.
  • the metadata of each node may include an operator used in the calculation formula of the node, for example, a plus sign “+” or a multiplication sign “ ⁇ ”, or a combination of multiple operators.
  • the semantic information of each of the multiple nodes in the hierarchical structure of the spreadsheet may be extracted or generated from the text content of one or more cells corresponding to the node, or may be generated by User-defined.
  • the metadata of each node may further include one or more of the following additional information: the generation time of one or more cells corresponding to the node, the number of child nodes of the node, and the node The value in the corresponding one or more cells, the unit of the value, the time point or time period corresponding to the value, the format of one or more cells corresponding to the node, one or more corresponding to the node The location of each cell in the spreadsheet and the path from the root node in the hierarchy to the node.
  • the dependency relationship establishment component 130 may be configured to establish the dependency relationship between the multiple nodes based at least on the calculated relationship between the multiple nodes in the hierarchical structure. It should be noted that each node in the hierarchy may have a dependency relationship with other nodes. For any two cells A and B in the spreadsheet, define that cell A depends on cell B if and only if cell A is at least calculated by cell B (or by cell B together with other cells) get. For nodes (eg, row nodes) C and D in the hierarchical structure, define that node C depends on node D if and only if at least one cell contained in node C directly or indirectly depends on at least one cell contained in node D.
  • establishing the dependency relationship between multiple nodes in the hierarchical structure may also be based on the membership relationship between the multiple nodes.
  • the dependency relationship between multiple nodes in the hierarchical structure may be established without knowing the affiliation relationship between the multiple nodes. For example, it is possible to directly obtain the relationship between all nodes (for example, based on user input). In the case of calculating the relationship, the dependency relationship between the nodes can be directly obtained only through the calculation relationship between the nodes, without further deduction based on the membership relationship between the nodes. The method of establishing the dependency relationship between nodes will be further described below.
  • the level type of the level of the node, the child nodes of the node, and the metadata of the node may be stored for each node.
  • the nodes that the node depends on may also be stored for each node. The stored information can be subsequently used to generate or update the visual representation of the electronic form.
  • the visual representation generating component 140 may be configured to generate a visual representation of the hierarchy of the electronic form based on the hierarchical structure of the electronic form, metadata, and the dependency relationship between the plurality of nodes.
  • the visual representation of the hierarchy of the spreadsheet can have a variety of forms and can be updated or modified in response to user operations.
  • the visual representation of the hierarchy of the electronic form can be expanded level by level, so as to help the user to intuitively understand the structure and logical relationship of the electronic form.
  • the visual representation generating component 140 may be configured to receive an input to expand a third node in the visual representation of the hierarchy of the spreadsheet (for example, double-click the third node or click an icon indicating that the third node is expanded, etc.) .
  • the visual representation in response to determining that the level type of the third node is not a cell (for example, the third node is a row node or a table node), the visual representation is updated to display the descendants of the third node, among the multiple nodes Other nodes that have a dependency relationship with the descendant nodes of the third node and the dependency relationship between the descendant nodes of the third node and other nodes.
  • updating the visual representation to display the descendant nodes of the third node includes displaying some of the descendant nodes of the third node (e.g., a predetermined number of nodes, a node whose level type is a specific level, or a node that is identified as being of high importance Nodes, etc.).
  • the descendant nodes of the third node include a first plurality of descendant nodes, and wherein the descendant nodes of the third node are displayed such that the relative positions of the first plurality of descendant nodes in the visual representation are different from the first plurality of descendant nodes.
  • the relative position of one or more cells corresponding to each descendant node of the descendant nodes in the spreadsheet is displayed in a consistent manner to display the first multiple descendant nodes, which helps users to easily and intuitively obtain in the visual representation Information about the relative position of the one or more cells in the spreadsheet.
  • the visual representation in response to determining that the level type of the level of the third node is a cell, is updated to display other nodes that have a dependency relationship with the third node and the dependency relationship between the third node and other nodes.
  • displaying other nodes that have a dependency relationship with the third node includes displaying a part of all nodes that have a dependency relationship with the third node (for example, a predetermined number of nodes, a node whose level type is a specific level, or a node that has been identified For nodes with high importance, etc.).
  • updating the visual representation to display other nodes that have a dependency relationship with the third node includes: when the hierarchical type of the other node is a cell, so that the relative positions of the other nodes in the visual representation correspond to other nodes respectively The relative positions of the cells in the spreadsheet are displayed in a consistent manner to display other nodes.
  • the visual representation of the hierarchy of the generated spreadsheet may include displaying the dependencies between all nodes in the hierarchical structure whose hierarchy type is page and all nodes whose hierarchy type is page, so that there is Help users intuitively understand the logical relationship between the various pages of the spreadsheet.
  • the visual representation generating component 140 may be configured to, in response to receiving a request to visualize a node corresponding to a page in the spreadsheet, display the information about the node, the nodes on which the node depends, and other pages in the spreadsheet.
  • the visual representation generating component 140 may be configured to, in response to receiving a request to visualize a node corresponding to a row in the spreadsheet, display each node corresponding to the cell included in the row and the corresponding node. Each node in has a dependency relationship, a fifth group of nodes corresponding to cells in other rows in the spreadsheet, and a dependency relationship between the fifth group of nodes and each node in the respective nodes. It should be understood that the visual representation generating component 140 may also be configured to visualize the node corresponding to a column (or block, etc.) in the spreadsheet in a similar manner.
  • generating a visual representation of the hierarchy of the electronic form may include displaying the hierarchical structure of the electronic form in the form of a hierarchical list, and the hierarchical list can be expanded or collapsed level by level.
  • different display formats e.g., background color, filling pattern, etc.
  • different node display formats e.g., Node shape, node background color, etc.
  • the visual representation generating component 140 may be configured to, in response to receiving an input of selecting a node in the visual representation (for example, clicking the node or double-clicking the node, etc.), highlight the selected node and the selected node. Nodes that have dependencies.
  • the visual representation generating component 140 may be configured to respond to receiving an input of additional information for viewing a node in the visual representation (for example, the cursor stays at the node for a predetermined time or double-clicks the node, etc.), Display additional information about the node.
  • displaying the additional information of the node includes displaying thumbnails of one or more cells corresponding to the node.
  • displaying the additional information of the node includes displaying links to one or more other nodes that indicate that there is an affiliation or dependency relationship with the node.
  • the visual representation generating component 140 may be configured to update or create a new visual representation to display the one or more other nodes in response to receiving an input of clicking a link of one or more other nodes.
  • the visual representation of the hierarchy of the spreadsheet can be collapsed level by level.
  • the visual representation generating component 140 may be configured to receive input of the third node in the visual representation of the hierarchy of the collapsed spreadsheet (for example, selecting an icon instructing to collapse the third node, double-clicking the third node, etc. ).
  • the visual representation generating component 140 may be configured to, in response to determining that the level type of the third node is not a cell, update the visual representation to hide the child nodes of the third node and much of the spreadsheet hierarchy.
  • the first group of other nodes (which can be one or more nodes) that have a dependency relationship with the child nodes of the third node among the nodes, and the dependency relationship between the child nodes of the third node and the first group of other nodes, and display the
  • the third node has a dependency relationship between the second group of other nodes and the dependency relationship between the third node and the second group of other nodes. That is, the child nodes of the third node and their dependencies are no longer displayed, but the third node and their dependencies are displayed.
  • the visual representation generating component 140 may be configured to, in response to determining that the level type of the third node is a cell, update the visual representation to hide other nodes that are dependent on the third node and the third node and Dependencies between other nodes.
  • FIG. 2 is a flowchart illustrating an exemplary method 200 for visualizing an electronic form according to some embodiments of the present disclosure. Although FIG. 2 illustrates the four steps of the method 200, this is only a schematic flow of the method for visualizing an electronic form. The method 200 for visualizing an electronic form may also include other possible steps, or may include the above four steps. A combination of any steps in the step.
  • step S210 may be executed by the hierarchical structure obtaining component 110 in FIG. 1.
  • a hierarchical structure of the electronic form is obtained, wherein the hierarchical structure includes one or more hierarchies, the one or more hierarchies have a plurality of nodes, wherein each hierarchy has at least one node and has a corresponding hierarchical type, each The node corresponds to one or more cells in the spreadsheet, and the hierarchical structure also includes the affiliation relationship between the multiple nodes.
  • step S220 which may be executed by the metadata extraction component 120 of FIG. 1.
  • step S220 the metadata of each node in the plurality of nodes in the hierarchical structure is extracted.
  • step S230 may be executed by the dependency relationship establishment component 130 in FIG. 1.
  • step S230 the dependency relationship between the multiple nodes in the hierarchical structure is established at least based on the calculation relationship between the multiple nodes.
  • step S240 a visual representation of the hierarchy of the electronic form is generated based on the hierarchical structure of the electronic form, the metadata and the dependency relationship between the plurality of nodes.
  • FIG. 3 is a schematic diagram illustrating an exemplary electronic form 300 according to some embodiments of the present disclosure.
  • the electronic form shown in FIG. 3 is based on Microsoft Excel, it should be understood that the embodiments of the present disclosure are not limited to this, but can be applied to electronic forms made based on any suitable software.
  • the electronic form 300 is a workbook (book), that is, an electronic form file (such as an xls file, an xlsx file).
  • Figure 3 shows a page (Sheet1) 371 of the workbook.
  • the workbook may also have one or more other pages (for example, page 372, etc.), and each page may have one or more cells. Grid, such as cell 313.
  • this display mode makes it difficult for users to debug and understand the spreadsheet model.
  • the exemplary method for visualizing an electronic form can obtain the hierarchical structure of the electronic form.
  • obtaining the hierarchical structure of the spreadsheet may include identifying one or more of the location, content, and format information of the cells in the spreadsheet, and based on at least one of the location, content, and format information of the cells. Item or multiple items to identify the hierarchical structure of the spreadsheet.
  • obtaining the hierarchical structure of the electronic form may include receiving the hierarchical structure specified by the user.
  • the hierarchical structure of the electronic form can be partly recognized by the above method and partly specified by the user; or can be provided to the user after the automatic recognition is obtained, and then complete and complete according to user input.
  • machine learning algorithms for example, support vector machines, decision trees, neural networks, etc.
  • the level type of one or more levels of the spreadsheet may include one or more of the following: workbook, page, section, table, block, row, column, interval, and cell.
  • workbook page, section, table, block, row, column, interval, and cell.
  • a page may be composed of sections or tables, and each section may also include a section or table.
  • page 371 may include two sections ("China” and "United States"), and section "United States" includes two tables 330 and 340.
  • the table can be composed of rows, columns, or blocks. For example, in FIG.
  • table 330 includes row 311, block 321 "electronic product”, etc.
  • table 340 includes row 316 "sales", column 312, block 314 "2017”.
  • a block can be a group of closely related rows or columns, and the row or column labels of the cells in the block are closely related.
  • the column labels of the cells in block 314 are "first quarter", “second quarter”, “third quarter”, “fourth quarter", and "full year”, respectively. Under the column label of "2017", it can be identified as closely related because they are continuous.
  • Blocks can also include blocks.
  • Rows and columns can include cells or intervals. An interval can be a group of closely connected cells. For example, the interval 315 in FIG.
  • a row (a column) defined in a traditional spreadsheet refers to all those in the same horizontal position (vertical position).
  • Cells for example, column G includes all cells at the vertical position; while the rows and columns in the hierarchical structure are defined within the scope of the table, that is, if there are multiple horizontal (vertical) ) Arranged tables, then the same horizontal (vertical) position can have multiple rows (columns) belonging to different tables. For example, it can be considered that cells G9 to G13 are columns belonging to table 330, and cells G18-G20 are columns belonging to table 340.
  • obtaining the hierarchical structure of the electronic form includes one or more of the following: detecting the title in each page of the workbook, based on one or more of the location, content, and format information of the title Determine the level of the heading, and divide each page into corresponding levels of sections or tables based on the level of the heading; determine the rows and tables based on one or more of the row and column position, content, and format information of each table Column level; based on one or more of the correlation between the rows in each table, the correlation between the columns, the level of the rows, the level of the columns, the rows and columns are divided into blocks; and based on each The correlation between the cells in the rows and columns divides the cells into intervals.
  • the title 310 can be based on the title 310 on the top line of page 371 and there is a blank line between the title 320 "United States” and/or can be based on the format of the title 310 and 320 (for example, font size, font color, background color, indentation, whether Bold ⁇ Underline) to determine that the title 310 is the text information describing the content of the entire page 371, and that the title 310 "Financial Report" is the first-level title, and the titles 320 "United States” and 350 "China” are the second-level titles.
  • the format of the title 310 and 320 for example, font size, font color, background color, indentation, whether Bold ⁇ Underline
  • row 311 For example, for row 311 "Total” in table 330, because it is more prominent (in bold, and less indented) than row "Phone", row 311 can be determined “Total” has a higher level than the row "Mobile”.
  • column 312 (F18-F20) in table 340 the column label "full year” can be used to determine that the column is the summary data for the whole year, and column B18-B20, column C18-C20, column D18-D20, and column E18- E20 represents the data from the first quarter to the fourth quarter respectively. Therefore, it can be determined that the columns F18-F20 have a higher rank than the columns B18-B20, C18-C20, D18-D20, and E18-E20.
  • the columns F18-F20 may also be assigned the same level as the columns B18-B20, C18-C20, D18-D20, and E18-E20.
  • the rows and columns in the table can be divided into blocks. For example, the rows “laptop”, “tablet”, and “phone” can be divided into blocks based on the same row level (or correlation between row labels) It belongs to a block 321 of the table 330.
  • cells can also be divided into intervals.
  • cells L20-O20 can be divided into an interval of table 340 based on the correlation between the column labels of cells L20-O20 and the similarity of their calculation formulas. 315.
  • the exemplary method for visualizing an electronic table can extract metadata of each node among a plurality of nodes in a hierarchical structure.
  • the metadata of each node may include semantic information describing the specific meaning of the node.
  • the semantic information may include one or more of a name, a title, a tag, and an annotation.
  • the semantic information of a workbook can be the name of the workbook and/or the text content describing the entire workbook and/or comments on the entire workbook
  • the semantic information of a page can be the name and/or description of the page
  • the semantic information of a section can be the title of this section and/or the annotations for the entire section
  • the semantic information of a table can be the name of the table and/or the
  • the semantic information of a row or column can be the label of this row or column and/or the annotation of this row/column
  • the semantic information of a block can be the text label applicable to all rows or columns of this block
  • the semantic information of a cell is the row label of this cell and the column label of this cell and/or the comment for this cell.
  • the semantic information of page 371 can be identified as the title 310, that is, "financial report.”
  • the semantic information of the table 330 can be identified as the combination of the title 320 "United States” and the title 322 "Sales Details” "United States Sales Details”
  • the semantic information of the column 312 can be identified as the column label "2017 Annual”
  • cell The semantic information of 313 can be identified as "2018 first quarter year-on-year growth rate”
  • the semantic information of interval 315 can be identified as "2019 first quarter, second quarter, third quarter, fourth quarter gross profit", or it can be Identified as "2019 gross profit”.
  • the metadata of each node may include operators used in the calculation formula of the node, for example, a single operator or a combination of multiple operators.
  • the calculation formula for cell 313 is G12/B12-1.
  • the cell nodes G12 and B12 can be extracted from the calculation formula to determine that the cell has a calculation relationship with cells G12 and B12.
  • Cell 313 is calculated from cells G12 and B12.
  • extracting the metadata of the cell node 313 may include extracting the operator "*/*-1" in the calculation formula G12/B12-1, where "*" represents a placeholder.
  • the calculation formulas in the electronic table not only include calculation formulas between cells, but the electronic table may also include calculation formulas between higher-level nodes (for example, rows, columns, etc.).
  • the three lines of "computer” and "mobile phone” have a computational relationship.
  • the semantic information of each of the multiple nodes in the hierarchical structure of the spreadsheet may be extracted or generated from the text content of one or more cells corresponding to the node, or may be generated by User-defined. For example, the user can manually input the semantic information of a certain node, or modify the semantic information automatically extracted or generated.
  • the metadata of each node (for example, table node, row node, etc.) in the hierarchical structure may further include one or more of the following additional information: Generation time, the number of child nodes of the node (for example, how many row nodes belong to a table node), the value in one or more cells corresponding to the node, and the unit of the value (for example, from Table 330 The extracted unit "million yuan"), the time point or time period corresponding to the value (for example, the time period corresponding to cell node 313 is the first quarter of 2018), one or more units corresponding to the node
  • the format of the cell for example, font, font size, font color, background color, etc.
  • the position of one or more cells corresponding to the node in the spreadsheet for example, cell node 313 is located on page 1 of the spreadsheet
  • Row 13, column G the path from the root node in the hierarchy to the node.
  • the root node in the hierarchical structure can be generated time, the number of child nodes of the
  • FIG. 4A and 4B are schematic diagrams illustrating an exemplary spreadsheet hierarchical structure 400 and dependency relationships between nodes according to some embodiments of the present disclosure. It should be understood that FIG. 4A is exemplary, and the hierarchical structure shown in FIG. 4A and FIG. 4B is only for ease of understanding, and is not intended to limit the storage format of the hierarchical structure.
  • the hierarchical structure in FIG. 4A may be obtained by, for example, the hierarchical structure obtaining part 110 of FIG. 1.
  • FIG. 4A different node shapes are used to show nodes of different hierarchical types in the hierarchical structure, solid arrows are used to show the affiliation relationship between nodes, and dotted arrows are used to show the dependency relationship between nodes. Assuming that node A belongs to node B, the solid arrow points from B to A, and it is said that node B is the parent node of node A, and node A is the child node of node B. Define the node without a parent node as the root node, and define the node without child nodes as the leaf node.
  • All nodes except the root node and leaf nodes have one and only one parent node, and all nodes on the branch from the root node to a node are called the ancestors of the node, and a subgraph with a node as the root Any node of is called the descendant node of that node.
  • the node 401 shown in an oval shape is the root node, and its level type is workbook, and the node 401 corresponds to the entire workbook of the spreadsheet.
  • the level type of the node 403 shown by a rounded rectangle is a table, and it has two child nodes 404 and 405 whose level type is a row, and these two child nodes are shown by an octagon.
  • the level type of the node 402 is also row, but it does not belong to the node 403, but directly belongs to the root node 401. That is, the workbook includes three rows in total, among which rows corresponding to nodes 404 and 405 belong to the table corresponding to node 403. Nodes with a hierarchy type of cell are shown by diamonds, where cell nodes 406 and 407 belong to row node 402, cell node 408 belongs to row node 404, and cell nodes 409 and 410 belong to row node 405. It should be understood that FIG. 4A is an example of the hierarchical structure of the electronic form. The actual hierarchical structure may include more or fewer or different types of levels than that of FIG. 4A, and each level may include any suitable number of nodes.
  • a method for establishing a dependency relationship between nodes according to an exemplary embodiment of the present disclosure will be further described in conjunction with FIG. 4A, FIG. 4B, and FIG. 5.
  • FIG. 5 is a flowchart illustrating an exemplary method 500 for establishing a dependency relationship between nodes according to some embodiments of the present disclosure.
  • FIG. 5 illustrates the three steps of the method 500, this is only a schematic flow of a method for establishing a dependency relationship between nodes.
  • the method 500 may also include other possible steps, or may include the above three steps. A combination of steps in any step.
  • the method 500 may be executed by, for example, the dependency relationship establishment component 130 of FIG. 1.
  • the method 500 starts at step S510.
  • step S510 for each node in the hierarchical structure, it is determined that the node is calculated by one or more other nodes.
  • FIG. 4A it can be determined that the cell corresponding to node 408 is calculated from the row corresponding to node 402, and the cell corresponding to node 407 is calculated from the cell corresponding to node 410.
  • the method 500 proceeds to step S520.
  • step S520 for each first cell of the one or more first cells corresponding to the node, it is determined that the first cell corresponds to the other one or more The first group of second cells in one or more second cells of the node is calculated.
  • the calculation relationship of the node 405 is initially determined, the calculation relationship of the nodes 409 and 410 whose hierarchical type belonging to the node 405 is a cell needs to be determined respectively.
  • the cell corresponding to node 408 is calculated from the row corresponding to node 402 does not necessarily mean that the cell corresponding to node 408 is calculated from each cell in the row corresponding to node 402 get. For example, if the calculation formula of row A including three cells is equal to the value of row B including three cells, it can be determined that the first cell in row A is calculated by the first cell in row B Instead of calculating from each cell in row B.
  • step S520 the calculation relationship between nodes that may have a higher hierarchical type than the cell can be decomposed into the calculation relationship of nodes whose hierarchical type is the cell among the descendants of the node.
  • the calculation relationship between the cell corresponding to node 407 and the cell corresponding to node 410 determined in step S510 since the level type of nodes 407 and 410 is already a cell, this step S520 actually Can be omitted.
  • step S530 the following dependency relationship is established: the first node corresponding to the first cell and all ancestor nodes of the first node depend on the respective corresponding to the first group of second cells The first group of second nodes and all the ancestor nodes of the first group of second nodes. Referring to FIG. 4B, for example, for the node 408, it has been determined at step S520 that the cell corresponding to the node 408 is calculated from the cell corresponding to the node 406 and the cell corresponding to the node 407.
  • node 408 and all ancestor nodes of node 408 that are not ancestor nodes of node 406 depend on nodes that are not ancestor nodes of node 408 among all ancestor nodes of node 406 and node 406, node 408 and node 408 Nodes that are not the ancestors of node 407 among all ancestor nodes of, depend on nodes that are not the ancestors of node 408 among all ancestor nodes of node 407 and node 407.
  • FIG. 4B shows the dependency relationship constructed for the hierarchical structure shown in FIG. 4A.
  • dependency relationship between the node 408 and its ancestors and the node 407 and its ancestors is omitted in FIG. 4B. That is, the following dependencies can be established: dependency 431, indicating that node 408 depends on node 406; dependency 432, indicating that node 404 depends on node 406; dependency 433, indicating that node 403 depends on node 406; dependency 434, indicating node 408 depends on the node 402; a dependency 435 indicates that the node 404 depends on the node 402; a dependency 436 indicates that the node 403 depends on the node 402.
  • the cell corresponding to the node 407 is calculated from the cell corresponding to the node 410.
  • the following dependency relationship can be established: Node 407 and all ancestor nodes of node 407 that are not the ancestor nodes of node 410 depend on nodes 410 and all ancestor nodes of node 410 that are not ancestor nodes of node 407.
  • dependency 442 indicating that node 407 depends on node 410
  • dependency 443, indicating that node 407 depends on node 405
  • dependency 445 indicating that node 407 depends on node 403
  • dependency 441, indicating node 402 depends on node 410
  • dependency 444 indicates that node 402 depends on node 405
  • dependency 446 indicates that node 402 depends on node 403.
  • FIG. 6 is a schematic diagram illustrating a node 600 in an exemplary spreadsheet hierarchy structure according to some embodiments of the present disclosure.
  • the node 600 may be any node in the hierarchical structure in FIGS. 4A-4B.
  • the data structure storing node information in the hierarchical structure as shown in FIGS. 4A-4B according to an exemplary embodiment of the present disclosure may be referred to as a hierarchy graph.
  • the tree-like hierarchical structure shown in FIG. 4A and FIG. 4B is only for the convenience of understanding, and is not intended to limit the storage manner of the hierarchical structure. Any suitable data structure can be used to store the hierarchical graph, for example, a linked list, a directed graph, and so on.
  • the hierarchy type 602 of the hierarchy of the node, the child nodes 604 of the node, and the metadata 606 of the node may be stored for each node.
  • the hierarchy type of node 404 can be stored as row
  • the child node of node 404 is node 408 (for example, a list of numbers of child nodes or a list of pointers to child nodes can be stored)
  • the metadata of the node 404 for example, the row label of the row corresponding to the node 404, the position of the cell corresponding to the node 404 in the electronic table, etc.
  • the metadata of the node has been described above with reference to FIG. 3, and will not be repeated here.
  • the node 608 on which the node depends may be optionally stored for each node (for example, the number of the dependent node may be stored or a pointer to the dependent node may be stored, etc.).
  • the nodes on which the node 404 depends can be stored, including the node 402 and the node 406. It should be noted that it is not necessary to store the nodes that each node depends on, and the nodes that each node depends on can be determined in real time before generating the visual representation of the hierarchy of the spreadsheet, without storing.
  • the following describes a method for generating a visualization of the hierarchy of an electronic form according to an embodiment of the present disclosure.
  • FIG. 7A-7C show a visual representation of the hierarchy of an exemplary electronic form according to some embodiments of the present disclosure.
  • the spreadsheets corresponding to these visual representations are not shown.
  • the visual representation 700A of FIG. 7A the dependency relationship between all nodes whose hierarchical type is page and all nodes whose hierarchical type is page in the hierarchical structure is displayed.
  • the visual representation 700A of FIG. 7A may be displayed in response to receiving a request for all nodes whose visualized hierarchy type is a page.
  • the request may be a selection (for example, single-click, double-click, swipe, long-press (for example, click, double-click, swipe, long press, In terms of display devices), etc.).
  • FIG. 7A the dependency relationship between all nodes whose hierarchical type is page and all nodes whose hierarchical type is page in the hierarchical structure is displayed.
  • the visual representation 700A of FIG. 7A may be displayed in response to receiving a request for all nodes whose visualized hierarchy
  • the visual representation 700A includes nodes 701-707 and arrows indicating the dependency relationship between them, and the semantic information of the nodes 701-707 (for example, the name of the page) is also displayed on the corresponding node.
  • different filling patterns are used to represent nodes belonging to different pages in the spreadsheet, and nodes 701-707 are all represented by hexagons, indicating that these nodes have the same level type (ie, page ).
  • the visual representation 700A is only exemplary, and other different display formats (for example, fill color, node shape, node size, etc.) may be used to represent nodes belonging to different pages in the spreadsheet, and the same other display formats may be used.
  • Node format for example, fill color, fill pattern, node size, etc.
  • the selected node 701 and the nodes 702-705 that have a dependency relationship with the node 701 may be highlighted.
  • the input of selecting the node 701 in the visual representation 700A may be the input of clicking the node 701, the input of double-clicking the node 701, or the selection of an icon (for example, text, graph, button, etc.) indicating that the node 701 is emphasized.
  • the font color and fill color of the selected node 701 are inverted, and the nodes 706 and 707 that have no dependency relationship with the selected node 701 are faded.
  • the visual representation 700B can help the user to more clearly observe the pages of the spreadsheet that he is interested in, and avoid interference from information that the user is not interested in. This is especially advantageous when the scale of the spreadsheet is large.
  • the visual representation of FIG. 7A shows that the nodes in 700A can be expanded level by level to their descendant nodes (ie, nodes with lower level types).
  • FIG. 7C shows the visual representation 700C after the node 701 is expanded.
  • the visual representation 700C may be displayed in response to receiving an input to expand the node 701 in the visual representation 700A or 700B.
  • the input of expanding node 701 may be input of single-clicking node 701, input of double-clicking node 701, or selection of an icon indicating expansion of node 701 (for example, text, graphics, options in a pop-up menu after node 701 is selected, etc.).
  • FIG. 7A shows that the nodes in 700A can be expanded level by level to their descendant nodes (ie, nodes with lower level types).
  • FIG. 7C shows the visual representation 700C after the node 701 is expanded.
  • the visual representation 700C may be displayed in response to receiving an input to expand the node 701 in the visual representation 700A or 700
  • the node 701 is expanded into its child nodes 711 and 712, and the nodes 711 and 712 are shown with rectangles to indicate that their hierarchical types are different from the nodes 701-707.
  • the hierarchical type of nodes 711 and 712 may be a table.
  • the semantic information "2014 profit forecast” and "2015 profit forecast” of the node 711 and the node 712 are also displayed in the visual representation 700C, which are, for example, the titles of the tables corresponding to the nodes 711 and 712, respectively.
  • the dependency relationship between the node 701 and other nodes is also replaced with the dependency relationship between the nodes 711 and 712 and other nodes.
  • the dependency relationship between the node 711 and the node 712 can also be displayed.
  • the arrow between the nodes 711 and 712 in FIG. 7C can indicate that the node 712 depends on the node 711.
  • FIG. 7C shows that the node 701 whose level type is page is expanded to its two child nodes-table nodes 711 and 712, the present invention is not limited to this, and may also respond to receiving the expanded visual representation
  • the input of node 701 in 700A or 700B displays other hierarchical descendant nodes of node 701, such as descendant nodes whose hierarchical type is row and the dependency relationship between these descendant nodes and other nodes whose hierarchical type is page.
  • the visual representation 700A may also be displayed in response to receiving an input of the node 711 or 712 in the visual representation 700C of the hierarchy of the collapsed spreadsheet.
  • the input of retracting node 711 may be the input of single-clicking node 711, the input of double-clicking node 711, or the icon indicating to retract node 711 (for example, text, graphics, options in the menu that pops up after node 711 is selected) The selection and so on.
  • the visual representation 700C can be updated to hide the dependencies between nodes 711 and 712, the dependencies between nodes 711 and 712 and other nodes 702-707, and the dependencies between nodes 711 and 712, and display the status of nodes 711 and 712
  • FIG. 8A-8C show a visual representation of the hierarchy of an exemplary electronic form according to some embodiments of the present disclosure. For the sake of clarity, the spreadsheets corresponding to these visual representations are not shown.
  • the visual representation 800A of FIG. 8A the node 801 whose hierarchy type is page is displayed in the hierarchical structure, and the node 801 depends on some descendant nodes (or all descendant nodes) of other page nodes in the hierarchical structure.
  • the visual representation 800A of FIG. 8A may be displayed in response to receiving a request to visualize the node 801 corresponding to a page in the spreadsheet.
  • the request may be a selection (for example, single-click, double-click, swipe, long-press (for example, click, double-click, swipe, long press, In terms of a display device), etc.) or it may be an input (for example, a single click, a double click, etc.) of the node 701 in the visual representation 700A shown in FIG. 7A.
  • the semantic information of the nodes 801, 811-814, and 821-826 is also displayed on the corresponding node.
  • the nodes 811-814 and 821-826 may be nodes of any level lower than the level of the page, for example, their level type may be section, table, row, column, and so on.
  • the nodes 801, 811-814, and 821-826 are displayed in the same format, but it should be understood that different display formats (e.g., fill color, fill pattern, node shape, etc.) can be used in the visual representation 800A. , Node size, etc.) to represent nodes belonging to different pages in the spreadsheet, and different node display formats (for example, fill color, fill pattern, node shape, node size, etc.) to represent different hierarchical types of nodes.
  • a first threshold for example, 10, 20, etc.
  • it may be hidden or Collapse part of the nodes in the first group of nodes so that the nodes displayed in the first group of nodes do not exceed the first threshold; and in response to determining that the nodes that depend on node 801 correspond to some descendant nodes of other page nodes in the spreadsheet If the number of nodes in the second group exceeds the second threshold (for example, 10, 20, etc.), some nodes in the second group of nodes can be hidden or collapsed, so that the displayed nodes in the second group of nodes do not exceed the second threshold.
  • the second threshold for example, 10, 20, etc.
  • the nodes to be hidden or collapsed can be selected based on any suitable criteria. For example, nodes that are hidden or collapsed may be nodes with fewer dependencies, nodes with a lower position in the spreadsheet, nodes with a smaller number of corresponding cells, and so on. As a result, especially when the scale of the spreadsheet is large and the dependencies are relatively complex, the visual representation can be simplified, and information that may not be important can be hidden.
  • a triangle 851 is displayed in the node 801 to indicate that the node 801 can be further expanded to its descendant nodes (ie, nodes with lower hierarchical types).
  • the triangle 851 is exemplary, and any other suitable text, graphics, icons, buttons, etc. can also be used to indicate to the user that the node 801 can be further expanded.
  • FIG. 8B shows the visual representation 800B after the node 801 is expanded.
  • the visual representation 800B may be displayed in response to receiving an input to expand the node 801 in the visual representation 800A.
  • the input of the expanded node 801 can be the input of clicking the node 801, the input of double-clicking the node 801, or the icon indicating the expansion of the node 801 (for example, text, a graphic such as the triangle 851 in FIG. 8A, and the pop-up after selecting the node 801 Selection of options in the menu, etc.).
  • the node 801 is expanded into its child nodes 831 and 832.
  • the hierarchical type of the nodes 831 and 832 may be a table (or section).
  • the visual representation 800B may include an arrow pointing from the node 831 to the node 832 to indicate that the node 832 depends on the node 831. It should be understood that although FIG.
  • node 801 whose level type is page is expanded to its two child nodes-table nodes 831 and 832
  • the present invention is not limited to this, and may also respond to receiving expanded visual representation
  • the input of node 801 in 800A displays the descendant nodes of other levels of node 801, such as descendant nodes whose level type is row and the dependency relationship between these descendant nodes and other nodes.
  • the shape of the triangle 851 can be rotated relative to FIG. 8A to indicate that the node 801 has been expanded.
  • the nodes are displayed in such a way that the relative positions of the nodes 831 and 832 in the visual representation 800B are consistent with the relative positions of one or more cells (tables) corresponding to the nodes 831 and 832 in the spreadsheet. 831 and 832.
  • the table corresponding to the node 831 in the spreadsheet is above the table corresponding to the node 832, so the node 831 can be displayed above the node 832 in the visual representation 800B.
  • the node 831 may also be displayed on the left or upper left of the node 832, and so on.
  • the visual representation 800A may also be displayed in response to receiving an input of the node 801 in the visual representation 800B of the hierarchy of the collapsed spreadsheet.
  • the input to collapse the node 801 may be the input of clicking the node 801, the input of double-clicking the node 801, or the icon indicating the collapse of the node 801 (for example, text, a graphic such as a triangle 851, or a pop-up after the node 801 is selected). Selection of options in the menu, etc.).
  • the visual representation 800B is updated to hide nodes 831 and 832 and the dependency relationship between these two nodes, and other nodes that have a dependency relationship with nodes 831 and 832.
  • nodes 811-814 and 821-826 they may be different.
  • some nodes can be hidden or collapsed.
  • the hidden or collapsed nodes may be different from the case of displaying the nodes 831 and 832, so that other nodes shown in the visual representation 800A that are dependent on the node 801 may be different from those in the case of displaying nodes 831 and 832.
  • the other nodes shown in the visual representation 800B that have a dependency relationship with the nodes 831 and 832 are different.
  • a triangle is also displayed in the node 831 to indicate that the node 831 can be further expanded to its descendant nodes (ie, nodes with lower hierarchical types).
  • FIG. 8C shows the visual representation 800C after the node 831 is expanded.
  • the visual representation 800C may be displayed in response to receiving an input to expand the node 831 in the visual representation 800B.
  • the input to expand the node 831 can be the input of clicking the node 831, the input of double-clicking the node 831, or an icon indicating the expansion of the node 831 (for example, text, a graphic such as a triangle in the node 831, a menu that pops up after the node 831 is selected). The selection of options in), etc.).
  • the node 831 is expanded into its child nodes.
  • the level type of these child nodes may be rows (or columns).
  • the semantic information "guarantee fee income”, “interest and fee net income”, “operating income subtotal”, “operating expenditure subtotal”, “operating profit” and “profit” of these sub-nodes can also be displayed in the visual representation 800C. "Total”, which are, for example, the row labels of the rows corresponding to these child nodes.
  • the dependency relationship between the node 831 and other nodes is also replaced with the dependency relationship between these child nodes and other nodes.
  • the internal dependencies of these sub-nodes can be displayed.
  • the visual representation 800C can include arrows from “operating income subtotal” and “operating expenditure subtotal” to “operating profit” to indicate that operating profit depends on “operating "Income subtotal” and “operating expenditure subtotal”.
  • the visual representation 800C can also include an arrow from "guarantee fee income” to "2015 profit forecast” 832, to indicate that the 2015 profit forecast depends on the guarantee fee income in the 2014 profit forecast. It should be understood that although FIG.
  • the present invention is not limited to this, and may also respond to receiving the expanded visual representation 800B
  • the input of the node 831 in the node 831 displays the descendant nodes of other levels of the node 831, such as the descendant nodes of the cell or block as the level type, and the dependency relationship between these descendant nodes and other nodes.
  • the relative position of the displayed descendant nodes of node 831 in the visual representation 800C corresponds to one or more cells (rows) corresponding to each of the descendant nodes of node 831 respectively.
  • the relative positions in the table are displayed in a consistent manner to display these descendant nodes.
  • the visual representation 800B may also be displayed in response to receiving an input of the node 831 in the visual representation 800C of the hierarchy of the collapsed spreadsheet. This process is similar to the process of retracting the node 801 described above with reference to FIG. 8B, and will not be repeated here. It should be understood that the dependency relationship between the child nodes of the node 831 can also be displayed in the visual representation 800C, and in response to receiving an input to collapse the node 831 in the visual representation 800C, the dependency relationship between these child nodes can also be hidden .
  • Figure 9 shows a visual representation of the hierarchy of an exemplary spreadsheet according to some embodiments of the present disclosure.
  • the nodes 901 and 902 whose hierarchical types are pages in the hierarchical structure are displayed, and some descendant nodes (or all of the children and grandchildren) of other page nodes in the hierarchical structure that have a dependency relationship with the node 901 are displayed.
  • the arrow shows the dependency relationship between node 901 and the third group of nodes 921-926 and the dependency relationship between node 902 and the fourth group of nodes 911-913. It can also show the dependency relationship between nodes 901 and 902 or node 901. Dependencies within or between the respective child nodes of and 902. According to one embodiment, the visual representation 900 of FIG.
  • the request may be a selection (e.g., single-click, double-click, swipe, long-press (for display devices with touch-sensitive surfaces) of icons (e.g., text, buttons, or graphics, etc.) indicating the visualization nodes 901 and 902 Language), etc.) or may be the input of the nodes 701 and 703 in the visual representation 700A shown in FIG. 7A (for example, simultaneous selection of these two nodes, etc.).
  • the request may be a selection (e.g., single-click, double-click, swipe, long-press (for display devices with touch-sensitive surfaces) of icons (e.g., text, buttons, or graphics, etc.) indicating the visualization nodes 901 and 902 Language), etc.) or may be the input of the nodes 701 and 703 in the visual representation 700A shown in FIG. 7A (for example, simultaneous selection of these two nodes, etc.).
  • the semantic information of the nodes 901-902, 911-913, and 921-926 are also displayed on the corresponding nodes.
  • the nodes 911-913 and 921-926 may be nodes of any level lower than the level of the page, for example, their level type may be section, table, row, column, and so on.
  • nodes 901-902, 911-913, and 921-926 are displayed in the same format, but it should be understood that different display formats (e.g., fill color, fill pattern, Node shape, node size, etc.) to represent nodes belonging to different pages in the spreadsheet, and different node display formats (for example, fill color, fill pattern, node shape, node size, etc.) to represent different levels of nodes Types of. It should be noted that although FIG. 9 shows one node 921 on which the node 901 depends, other nodes on which the node 901 depends, or other nodes that depend on the node 901 may also be displayed. In addition, although only the node 901 that depends on the node 902 is shown in FIG.
  • the visual representation 900 can also display the (part or all) descendant nodes of the node 901, the (part or all) descendants of the node 902, and the dependency relationship between the descendants of the node 901 and the descendants of the node 902.
  • the visual representation 900 may include an arrow from the descendant node "total" of node 902 to the descendant node "operating income subtotal” of node 901 to indicate that the node "operating income subtotal" depends on the node "total”.
  • the visual representation 900 may also be directly displayed in response to receiving requests from the visualization node 901 and the node 902, that is, the child nodes 931 and 932 of the node 901 and the child nodes of the node 931 and the child node 941 of the node 902 are displayed. , 942 and the child node of node 941.
  • a certain threshold for example, 10, 20, etc.
  • it can be hidden Or collapse part of the nodes in the third group of nodes, so that the nodes displayed in the third group of nodes do not exceed the threshold; and in response to determining that the node 902 has a dependency relationship with other page nodes in the spreadsheet, some descendant nodes If the number of the corresponding fourth group of nodes exceeds a certain threshold (for example, 10, 20, etc.), some nodes in the fourth group of nodes can be hidden or collapsed, so that the nodes displayed in the fourth group of nodes do not exceed the threshold.
  • a certain threshold for example, 10, 20, etc.
  • each node in the visual representation 900 of FIG. 9 can also be expanded or collapsed in a hierarchical manner, which will not be repeated here. It should be understood that the visual representation of three or more pages in the electronic form can be displayed in a similar manner to the visual representation 900 shown in FIG. 9, which will not be repeated here.
  • FIG. 10 shows a visual representation 1000 of the hierarchy of an exemplary spreadsheet according to some embodiments of the present disclosure.
  • the node 1001 whose level type is row (or column) in the hierarchical structure is displayed, the nodes 1031-1032 corresponding to the cells included in the row, and the nodes 1031-1032.
  • Each node of has dependencies and corresponds to the fifth group of nodes 1011-1018 and 1021-1022 in the cells in the other rows of the spreadsheet.
  • the arrows also show the nodes 1031-1032 and the fifth group of nodes 1011- The dependency between 1018 and 1021-1022.
  • the 10 may be displayed in response to receiving a request to visualize the node 1001 corresponding to a row in the spreadsheet.
  • the request may be a selection (for example, single-click, double-click, swipe, long-press (for display devices with touch-sensitive surfaces) of icons (for example, text, buttons, or graphics, etc.) indicating the visualization node 1001 Etc.)
  • icons for example, text, buttons, or graphics, etc.
  • FIG. 8C or FIG. 9 for example, a single click on the node, a double click, etc.
  • the semantic information of the nodes 1001, 1031-1032, 1011-1018, and 1021-1022 are also displayed on the corresponding nodes.
  • the nodes 1011-1018 and 1021-1022 can be nodes of any level, for example, their level types can be tables, rows, columns, cells, and so on.
  • nodes 1011-1018 and 1021-1022 are all cells, and the nodes 1001, 1031-1032, 1011-1018, and 1021-1022 are displayed in the same format, but it should be understood that
  • the visual representation 1000 of nodes 1011-1018 and 1021-1022 can also be any other hierarchical type, and can use different display formats (for example, fill color, fill pattern, node shape, node size, etc.) to indicate that they belong to the spreadsheet Nodes on different pages, and use different node display formats (for example, fill color, fill pattern, node shape, node size, etc.) to represent different levels of nodes, and you can also use different arrangement positions for different nodes Typesetting.
  • each node in the visual representation 1000 of FIG. 10 can also be expanded or collapsed in a hierarchical manner, which will not be repeated here.
  • FIG. 11A-11B show a visual representation of the hierarchy of an exemplary electronic form according to some embodiments of the present disclosure.
  • the node 1101 whose level type is a cell in the hierarchical structure and other nodes 1102-1105 that are dependent on the node 1101 are displayed.
  • the visual representation 1100A of FIG. 11A only shows the nodes that the node 1101 depends on, it should be understood that nodes that depend on the node 1101 may also be displayed.
  • the visual representation 1100A of FIG. 11A may be displayed in response to receiving a request to visualize the node 1101 corresponding to a cell in the spreadsheet.
  • the request may be a selection (for example, single-click, double-click, swipe, long press (for display devices with touch-sensitive surfaces) of icons (for example, text, buttons, or graphics, etc.) indicating the visualization node 1101. Etc.) Or it may be an input for visualizing a node whose semantic information in the visual representation is "predicted net profit in December 2014" (for example, a single click on the node, a double click, etc.).
  • the semantic information of the nodes 1101-1105 for example, the combination of the row label and the column label of the cell
  • the nodes 1102-1105 may be nodes whose level type is a cell.
  • a certain threshold for example, 10, 20, etc.
  • some of these other nodes may be hidden or collapsed, so that all nodes in other nodes can be hidden or collapsed. The displayed nodes do not exceed this threshold.
  • a triangle is displayed in the node 1105 to indicate that the node 1105 (actually the dependency of the node 1105) can be further expanded.
  • the triangle is exemplary, and any other suitable text, graphics, icons, buttons, etc. can also be used to indicate to the user that the node 1105 can be further expanded.
  • FIG. 11B shows the visual representation 1100B after the node 1105 is expanded.
  • the visual representation 1100B may be displayed in response to receiving an input to expand the node 1105 in the visual representation 1100A.
  • the input to expand the node 1105 can be the input of clicking the node 1105, the input of double-clicking the node 1105, or the icon indicating the expansion of the node 1105 (for example, text, graphics such as the triangle in FIG. 11A, and the menu that pops up after the node 1105 is selected. The selection of options in), etc.).
  • FIG. 11B shows the visual representation 1100B after the node 1105 is expanded.
  • the visual representation 1100B may be displayed in response to receiving an input to expand the node 1105 in the visual representation 1100A.
  • the input to expand the node 1105 can be the input of clicking the node 1105, the input of double-clicking the node 1105, or the icon indicating the expansion of the node 1105 (for example, text, graphics such
  • the node 1105 is expanded to display the nodes 1111 and 1112 that have a dependency relationship with it, and the dependency relationship between the node 1105 and the nodes 1111 and 1112 is also shown with arrows.
  • the hierarchical type of nodes 1111 and 1112 may be cells.
  • the semantic information of the nodes 1111 and 1112 can also be displayed in the visual representation 1100B, which is, for example, a combination of the row labels and column labels of the cells corresponding to the nodes 1111 and 1112, respectively.
  • displaying other nodes that have a dependency relationship with the node 1105 includes displaying a part of all nodes that have a dependency relationship with the node 1105 (for example, a predetermined number of nodes or nodes that are identified as highly important, etc.).
  • the nodes 1111 and 1112 are displayed in such a way that the relative positions of the nodes 1111 and 1112 in the visual representation 1100B are consistent with the relative positions of the cells corresponding to the nodes 1111 and 1112 in the spreadsheet. For example, in the spreadsheet, the cell corresponding to the node 1111 is above the cell corresponding to the node 1112, so the node 1111 can be displayed above the node 1112 in the visual representation 1100B.
  • the node 1111 may also be displayed on the left or upper left of the node 1112.
  • the nodes 1102-1105 may be similarly displayed in such a way that the relative positions of the nodes 1102-1105 in the visual representation 1100B are consistent with the relative positions of the cells corresponding to the nodes 1102-1105 in the spreadsheet.
  • the visual representation 1100A may also be displayed in response to receiving an input of the node 1105 in the visual representation 1100B of the hierarchy of the collapsed spreadsheet.
  • the input of retracting the node 1105 may be the input of clicking the node 1105, the input of double-clicking the node 1105, or an icon indicating to retract the node 1105 (for example, text, a graphic such as a triangle in FIG. 11B, and selecting the node 1105). Select the options in the pop-up menu, etc.).
  • the visual representation 1100B is updated to hide the nodes 1111 and 1112 and the dependency relationship between the node 1105 and the nodes 1111 and 1112.
  • FIG. 12A-12C show a visual representation of the hierarchy of an exemplary electronic form according to some embodiments of the present disclosure.
  • the hierarchical structure of the electronic form is displayed in the form of a hierarchical list, and the hierarchical list can be expanded or collapsed level by level.
  • the visual representation 1200A of FIG. 12A may include nodes 1210-1270 whose hierarchical type is page, which are arranged in order from top to bottom, and their semantic information is also displayed in the visual representation 1200A.
  • Symbol 1282 shows that the hierarchical type of node 1210 is page, and symbol 1281 may indicate that node 1210 can be expanded.
  • Figure 12B shows a visual representation 1200B of the node 1210 after it has been expanded.
  • the visual representation 1200B may be displayed in response to the input of clicking the symbol 1281.
  • the input for expanding the node 1210 can also be the input of clicking the node 1210, the input of double-clicking the node 1210, or the selection of options in the pop-up menu after the node 1210 is selected (for example, clicking, right-clicking, or long-pressing).
  • the visual representation 1200B can display the child nodes 1211 and 1212 of the node 1210 whose hierarchical type is the table.
  • the child nodes of the display node 1210 include some of the child nodes of the display node 1210 (for example, a predetermined number of nodes or the nodes whose corresponding cells are at the top of the spreadsheet).
  • the nodes 1211 and 1212 are displayed in such a way that the relative positions of the nodes 1211 and 1212 in the visual representation 1200B are consistent with the relative positions of the cells corresponding to the nodes 1211 and 1212 in the spreadsheet.
  • the table corresponding to the node 1211 is above the table corresponding to the node 1212, so the node 1211 can be displayed above the node 1212 in the visual representation 1200B.
  • the visual representation 1200A may also be displayed in response to receiving the input of the retract node 1210.
  • the input to collapse the node 1210 may be the input of clicking the node 1210, the input of double-clicking the node 1210, or the icon indicating the collapse of the node 1210 (for example, text, graphics such as the symbol 1281 in front of the node 1210, the selected node After 1210, the options in the pop-up menu, etc.) are selected.
  • the visual representation 1200B is updated to hide the nodes 1211-1212.
  • the nodes 1211 and 1212 in FIG. 12B can be further expanded.
  • FIG. 12C shows a visual representation 1200C after the node 1211 is expanded.
  • the visual representation 1200C may be displayed in response to the input of clicking the symbol in front of the node 1211.
  • the input to expand the node 1211 can also be the input of clicking the node 1211, the input of double-clicking the node 1211, or the selection of options in the pop-up menu after the node 1211 is selected (for example, clicking, right-clicking, or long-pressing).
  • the visual representation 1200C can display the child nodes 1213-1218 whose hierarchical type of node 1211 is row.
  • the child nodes of the display node 1211 include some of the child nodes of the display node 1211 (for example, a predetermined number of nodes or the nodes whose corresponding cells are at the top of the spreadsheet).
  • the nodes 1213-1218 are displayed in such a way that the relative positions of the nodes 1213-1218 in the visual representation 1200C are consistent with the relative positions of the cells corresponding to the nodes 1213-1218 in the spreadsheet. For example, in the spreadsheet, the row corresponding to the node 1213 is above the row corresponding to the node 1214, so the node 1213 can be displayed above the node 1214 in the visual representation 1200C.
  • the visual representation 1200B may also be displayed in response to receiving the input of the retract node 1211.
  • the input to collapse the node 1211 may be the input of clicking the node 1211, the input of double-clicking the node 1211, or the input of the icon indicating the collapse of the node 1211 (for example, text, graphics such as the symbol in front of the node 1211, and the selection of the node 1211. Select the options in the pop-up menu, etc.).
  • the visual representation 1200C is updated to hide the nodes 1213-1218.
  • FIG. 13 is a schematic diagram illustrating additional information 1300 in a visual representation of an exemplary electronic form's hierarchy according to some embodiments of the present disclosure.
  • the additional information of the node in response to receiving an input of viewing additional information of a node in the visual representation (for example, any one of the visual representations shown in FIGS. 7A to 12C), the additional information of the node may be displayed.
  • the input for viewing the additional information of a node in the visual representation may be hovering the cursor on the node, selecting the node, and so on.
  • FIG. 13 shows the additional information of a node A whose level type is a table, where the semantic information of the node A is "2014 profit forecast".
  • displaying the additional information of the node A includes displaying a thumbnail 1301 of one or more cells (for example, a table in this case) corresponding to the node A.
  • the thumbnail 1301 the numerical values of the cells in the table corresponding to the node A and the row coordinates and column coordinates of these cells in the spreadsheet are shown.
  • the semantic information of the node A can also be displayed, for example, the name of the table 1302 "2014 Profit Forecast" as shown in FIG. 13.
  • the additional information may also include the directory 1303 of the node A (all nodes on the path from the root node in the hierarchical structure to the node) "Financial Statement/Main Table/2014 Profit Forecast".
  • “Financial Statement” can be the name of a workbook
  • “Master Table” can be the title of the page where the table is located.
  • the additional information may also include external nodes (nodes corresponding to one or more cells on other pages) 1304 on which the node A depends, and external nodes that depend on the node ("2015 profit forecast", "guarantee fee income” ), row 1305 in the table corresponding to node A, and column 1306 in the table corresponding to node A. It should be noted that the nodes shown in 1303-1306 all have an affiliation or dependency relationship with the node A, and these nodes are shown in the form of links.
  • the visual representation in response to receiving an input of clicking on a link, is updated or newly created to visualize one or more nodes corresponding to the link. For example, in response to receiving a click on the link "operating profit", a row with semantic information "operating profit” may be visualized, for example, a visual representation 1000 as shown in FIG. 10 may be displayed. According to an embodiment, the additional information 1300 may also be updated to display additional information of the node having the semantic information "operating profit".
  • the additional information of a node is not limited to this, but may include one or more of the following: the calculation relationship between the node and other nodes (which can be displayed in the form of a formula), and the one corresponding to the node The generation time of or multiple cells, the number of child nodes of the node, the value in one or more cells corresponding to the node, the unit of the value, the time point or time period corresponding to the value, and the The format of one or more cells corresponding to a node, the position of one or more cells corresponding to the node in the spreadsheet, and the path from the root node in the hierarchy to the node, etc.
  • FIG. 14 is a flowchart 1400 illustrating an exemplary method for modifying an electronic form through a visual representation according to some embodiments of the present disclosure.
  • FIG. 14 illustrates the two steps of the method 1400, this is only a schematic flow of the method for modifying the electronic form by modifying the visual representation.
  • the method 1400 for modifying the electronic form through the visual representation may also include other possibilities. , Or may include a combination of any of the above two steps.
  • the method 1400 starts at step S1410, and at step S1410, a modification to the visual representation is received. Any one of the visual representations shown in FIGS. 7A to 12C can be modified. According to one embodiment, a user interaction component can be provided in a graphical user interface, so that the user can make arbitrary modifications to the visual representation.
  • the user performs one or more of the following operations: modify the metadata of any node in the visual representation (for example, semantic information, operators, additional information, etc.), add descendant or ancestor nodes for the node, add the node for the node The node that the node depends on or the node that depends on the node, or change the membership of the node (for example, move the node A that originally belongs to the node B to the node C, so that the node A becomes a child node of the node C) and so on.
  • modify the metadata of any node in the visual representation for example, semantic information, operators, additional information, etc.
  • add descendant or ancestor nodes for the node add the node for the node
  • add the node for the node add the node for the node
  • the node that the node depends on or the node that depends on the node, or change the membership of the node for example, move the node A that originally belongs to the node B to the node C, so that
  • a dialog box may be further provided in response to the user's operation of adding or modifying a node to request the user to input further information about the node, for example, the value of one or more cells corresponding to the node, The calculation formula of one or more cells corresponding to the node, the display format of one or more cells corresponding to the node, etc.
  • the electronic form is modified so that the modified electronic form corresponds to the modified visual representation.
  • the electronic form corresponding to the visual representation may be determined first.
  • the visual representations generated for an electronic form may be stored in association with the electronic form, for example, they may be stored at a related location, or they may have the same identifier, etc.
  • the spreadsheet may be modified accordingly based on the modification of one or more of the hierarchical structure, metadata, and dependency relationship between nodes in the visual representation. For example, in response to changing the semantic information of the node 814 of the visual representation 800A in FIG.
  • the row label of the row corresponding to node 814 in the spreadsheet can be changed to "total of investment income” ".
  • the row (or column) corresponding to the node 1001 in the spreadsheet can be compared with the node 1031 and Add a new cell to the right (or below) of the cell corresponding to 1032.
  • the electronic form is visualized in layers, and multiple dimensions of information such as related semantic information and dependencies are displayed, so that users can more easily understand or change the organizational structure and structure of the electronic form.
  • Logic The user can also expand or collapse the different nodes in the visual representation according to the hierarchy, which can effectively filter out the information that the user does not care about, making it easier for the user to find the information they need.
  • FIG. 15 shows a general hardware environment in which the present disclosure can be applied according to some embodiments of the present disclosure.
  • the computing device 1500 can be any machine configured to perform processing and/or calculations, and can be, but is not limited to, a workstation, a server, a desktop computer, a laptop computer, a tablet computer, a personal digital assistant, a smart phone, a portable camera, or any of these combination.
  • the foregoing apparatus 100 may be implemented in whole or at least in part by a computing device 1500 or a similar device or system.
  • the computing device 1500 may include elements capable of being connected to or communicating with the bus 1502 via one or more interfaces.
  • the computing device 1500 may include a bus 1502, one or more processors 1504, one or more input devices 1506, and one or more output devices 1508.
  • the one or more processors 1504 may be any type of processor, and may include, but are not limited to, one or more general-purpose processors and/or one or more special-purpose processors (such as special-purpose processing chips).
  • the input device 1506 may be any type of device capable of inputting information to a computing device, and may include, but is not limited to, a mouse, a keyboard, a touch screen, a microphone, and/or a remote control.
  • the output device 1508 may be any type of device capable of presenting information, and may include, but is not limited to, a display, a speaker, a video/audio output terminal, and/or a printer.
  • the computing device 1500 may also include a non-transitory storage device 1510 or be connected to a non-transitory storage device 1510.
  • the non-transient storage device 1510 may be any storage device that is non-transient and can implement a data storage library, and may include but is not limited to Disk drives, optical storage devices, solid-state storage devices, floppy disks, flexible disks, hard disks, magnetic tapes or any other magnetic media, compact disks or any other optical media, ROM (read only memory), RAM (random access memory), high-speed Cache memory and/or any other memory chip or cassette, and/or any other medium from which the computer can read data, instructions, and/or code.
  • the non-transitory storage device 1510 may be detachable from the interface.
  • the non-transitory storage device 1510 may have data/instructions/code for implementing the above-mentioned methods and steps.
  • the computing device 1500 may also include a communication device 1512.
  • Communication device 1512 may be capable of external devices and / or with any type of device or system network communication, and may include but is not limited to a modem, a network card, an infrared communication device, a wireless communication equipment and / or such as Bluetooth (TM) device, an 802.11 Chip sets for devices, WiFi devices, WiMax devices, cellular communication facilities, etc.
  • TM Bluetooth
  • 802.11 Chip sets for devices WiFi devices, WiMax devices, cellular communication facilities, etc.
  • the bus 1502 may include, but is not limited to, an industry standard architecture (ISA) bus, a microchannel architecture (MCA) bus, an enhanced ISA (EISA) bus, a video electronics standard association (VESA) local bus, and peripheral component interconnect (PCI) bus.
  • ISA industry standard architecture
  • MCA microchannel architecture
  • EISA enhanced ISA
  • VESA video electronics standard association
  • PCI peripheral component interconnect
  • the computing device 1500 may further include a working memory 1514.
  • the working memory 1514 may be any type of working memory that can store instructions and/or data useful for the work of the processor 1504, and may include, but is not limited to, random access memory and/or Read only memory device.
  • the software elements may be located in the working memory 1514, including but not limited to the operating system 1516, one or more application programs 1518, drivers, and/or other data and codes. Instructions for executing the above methods and steps may be included in one or more application programs 1518, and the components of the above apparatus 100 may be implemented by the processor 1504 reading and executing instructions of one or more application programs 1518. More specifically, the hierarchical structure obtaining unit 110 may be implemented by the processor 1504 when the application program 1518 having instructions for executing step S210 is executed, for example. The metadata extraction unit 120 may be implemented by, for example, the processor 1504 when the application program 1518 having instructions for executing step S220 is executed.
  • the dependency establishing component 130 may be implemented by the processor 1504 when the application program 1518 having instructions for executing step S230 is executed, for example.
  • the visual representation generating component 140 may be implemented by the processor 1504 when the application program 1518 with instructions for executing step S240 is executed, for example.
  • the executable code or source code of the instructions of the software element can be stored in a non-transitory computer-readable storage medium (such as the aforementioned storage device(s) 1510), and can be compiled and/or installed where possible Read into the work memory 1514.
  • the executable code or source code of the instructions of the software element can also be downloaded from a remote location.
  • the present disclosure also relates to the following embodiments.
  • Embodiment 1 A computer-implemented method for visualizing electronic forms, the method comprising:
  • the hierarchical structure includes one or more levels, the one or more levels have a plurality of nodes, wherein each level has at least one node and has a corresponding level type, and each node corresponds to One or more cells in the electronic table, wherein the hierarchical structure further includes the affiliation relationship between the multiple nodes;
  • a visual representation of the hierarchy of the electronic form is generated based on the hierarchical structure of the electronic form, the metadata and the dependency relationship between the plurality of nodes.
  • Embodiment 2 The method according to embodiment 1, wherein establishing the dependency relationship between the multiple nodes is also based on the affiliation relationship between the multiple nodes.
  • Embodiment 3 The method according to embodiment 1, wherein the metadata of each node includes semantic information describing the specific meaning of the node, and when the node is displayed in the hierarchical visual representation of the spreadsheet, The semantic information is also displayed in the visual representation.
  • Embodiment 4 The method according to embodiment 1, wherein the metadata of each node includes an operator used in the calculation formula of the node.
  • Embodiment 5 The method according to embodiment 1, wherein obtaining the hierarchical structure of the electronic form includes one or more of the following:
  • Identify one or more of the location, content, and format information of the cell in the electronic form, and identify the electronic based on at least one or more of the location, content, and format information of the cell The hierarchical structure of the table;
  • Embodiment 6 The method according to embodiment 1, wherein the level type of the one or more levels of the electronic form includes one or more of the following: workbook, page, section, table, block, Rows, columns, intervals, and cells, and the hierarchical structure in which the spreadsheet is obtained includes one or more of the following:
  • Detect the title in each page of the workbook determine the level of the title based on one or more of the location, content, and format information of the title, and divide each page into sections or sections of the corresponding level based on the level of the title. table;
  • the cells are divided into intervals based on the correlation between the cells in each row and column.
  • Embodiment 7 The method according to embodiment 3, wherein the semantic information includes one or more of a name, a title, a tag, and an annotation.
  • Embodiment 8 The method according to embodiment 3, wherein the semantic information of each node in the plurality of nodes is extracted or generated from the text content of one or more cells corresponding to the node, or Defined by the user.
  • Embodiment 9 The method according to embodiment 1, wherein establishing a dependency relationship between the multiple nodes includes:
  • the node For each node in the hierarchical structure, it is determined that the node is calculated by one or more other nodes, and for each first cell of the one or more first cells corresponding to the node:
  • the following dependency relationship is established: the first node corresponding to the first cell and all or part of the ancestor nodes of the first node depend on the first group of second nodes corresponding to the first group of second cells and all All or part of the ancestor nodes of the second node in the first group.
  • Embodiment 10 The method according to embodiment 1, further comprising: storing, for each node, the level type of the level where the node is located, the child nodes of the node, and the metadata of the node.
  • Embodiment 11 The method according to embodiment 10, further comprising: storing, for each node, the node that the node depends on.
  • Embodiment 12 The method according to embodiment 3, wherein the metadata of each node further includes one or more of the following additional information: the calculation formula of the node, the information of one or more cells corresponding to the node The generation time, the number of child nodes of the node, the value in one or more cells corresponding to the node, the unit of the value, the time point or time period corresponding to the value, and the one corresponding to the node The format of or more cells, the position of one or more cells corresponding to the node in the spreadsheet, and the path from the root node in the hierarchical structure to the node, and the method further includes:
  • Embodiment 13 The method according to embodiment 1, further comprising:
  • the visual representation is updated to display descendant nodes of the third node, and those of the plurality of nodes that have a dependency relationship with descendant nodes of the third node Other nodes and the dependency relationship between the descendant nodes of the third node and the other nodes;
  • the visual representation is updated to display other nodes that have a dependency relationship with the third node and the dependency relationship between the third node and the other nodes.
  • Embodiment 14 The method according to embodiment 13, wherein:
  • Displaying other nodes among the plurality of nodes that have a dependency relationship with descendant nodes of the third node includes displaying some of all nodes among the plurality of nodes that have a dependency relationship with descendant nodes of the third node, and
  • Displaying other nodes that have a dependent relationship with the third node includes displaying some of all nodes that have a dependent relationship with the third node.
  • Embodiment 15 The method according to embodiment 13, wherein the descendant nodes of the third node include a first plurality of descendant nodes, and wherein displaying the descendant nodes of the third node includes such that the first plurality The relative position of the descendant node in the visual representation is displayed in a manner consistent with the relative position of one or more cells in the spreadsheet corresponding to each descendant node of the first plurality of descendant nodes. The first plurality of descendant nodes.
  • Embodiment 16 The method according to embodiment 13, wherein updating the visual representation to display other nodes that have a dependency relationship with the third node includes: when the level type of the other node is a cell, so that the other node The other nodes are displayed in a manner consistent with the relative positions in the visual representation and the relative positions of the cells corresponding to the other nodes in the electronic table.
  • Embodiment 17 The method according to embodiment 1, wherein generating the visual representation of the hierarchy of the electronic form includes displaying all nodes in the hierarchical structure whose hierarchy type is page and the hierarchy type of the hierarchy is page The dependencies between all nodes.
  • Embodiment 18 The method according to embodiment 1, further comprising:
  • Embodiment 19 The method according to embodiment 18, further comprising:
  • Embodiment 20 The method according to embodiment 1, further comprising:
  • Embodiment 21 The method according to embodiment 20, further comprising displaying the descendant nodes of the first node, the descendant nodes of the second node, and the dependency relationship between the descendant nodes of the first node and the descendant nodes of the second node.
  • Embodiment 22 The method according to embodiment 1, further comprising:
  • each node corresponding to the cell included in the row In response to receiving a request to visualize a node corresponding to a row in the electronic table, display each node corresponding to the cell included in the row and the nodes that have a dependency relationship with each of the nodes and are related to each other.
  • the fifth group of nodes corresponding to cells in other rows of the electronic table and the dependency relationship between the fifth group of nodes and each of the nodes are described.
  • Embodiment 23 The method according to embodiment 1, wherein generating a visual representation of the hierarchy of the electronic form includes displaying the hierarchical structure of the electronic form in the form of a hierarchical directory.
  • Embodiment 24 The method according to embodiment 1, wherein generating a visual representation of the hierarchy of the electronic form includes: using different display formats in the visual representation to represent information belonging to different pages in the electronic form Nodes, and use different node display formats to represent different hierarchical types of nodes.
  • Embodiment 25 The method according to embodiment 1, further comprising:
  • the selected node and the node that has a dependency relationship with the selected node are highlighted.
  • Embodiment 26 The method according to embodiment 12, wherein displaying the additional information of the node includes displaying thumbnails of one or more cells corresponding to the node.
  • Embodiment 27 The method according to embodiment 12, wherein displaying the additional information of the node includes displaying the link of one or more other nodes that indicate that there is an affiliation relationship or a dependency relationship with the node, and the method further includes:
  • Embodiment 28 The method according to embodiment 13, further comprising:
  • the visual representation is updated to hide the child nodes of the third node, and those of the plurality of nodes that have a dependency relationship with the child nodes of the third node The dependencies between the first group of other nodes and the child nodes of the third node and the first group of other nodes, and display the second group of other nodes that have a dependency relationship with the third node and the third The dependency between the node and the other nodes in the second group; and
  • the visual representation is updated to hide other nodes that have a dependency relationship with the third node and the dependency relationship between the third node and the other nodes.
  • Embodiment 29 The method according to embodiment 1, further comprising:
  • the electronic form is modified so that the modified electronic form corresponds to the modified visual representation.
  • Embodiment 30 A device for visualizing an electronic form, comprising: components for executing the steps of the method according to any one of the embodiments 1-29.
  • Embodiment 31 A device for visualizing electronic forms, including:
  • At least one processor At least one processor
  • At least one storage device stores instructions, and when the instructions are executed by the at least one processor, the at least one processor is caused to execute the steps described in any one of embodiments 1-29 method.
  • Embodiment 32 A non-transitory computer-readable storage medium storing instructions that when executed by a processor causes the method described in any one of the embodiments 1-29 to be executed.
  • Computer software can be stored in a computer readable storage medium, such as a floppy disk, hard disk, optical disk, or flash memory.
  • the computer software includes a series of instructions that cause a computer (for example, a personal computer, a service station, or a network terminal) to execute the method according to various embodiments of the present disclosure or a part thereof.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

A method, apparatus and device for visualizing a spreadsheet, and a storage medium. The method comprises: obtaining a hierarchical structure of a spreadsheet, the hierarchical structure comprising one or more hierarchies having a plurality of nodes (S210); extracting metadata of each of the plurality of nodes (S220); establishing the dependency among the plurality of nodes at least on the basis of the computing relation among the plurality of nodes in the hierarchical structure (S230); and generating a hierarchical visual representation of the spreadsheet on the basis of the hierarchical structure of the spreadsheet, the metadata, and the dependency among the plurality of nodes (S240).

Description

用于可视化电子表格的方法、装置、设备及存储介质Method, device, equipment and storage medium for visualizing electronic form
相关申请的交叉引用Cross-references to related applications
本申请要求于2019年10月15日递交的中国专利申请第201910977985.6号的优先权,在此全文引用上述中国专利申请公开的内容以作为本申请的一部分。This application claims the priority of the Chinese patent application No. 201910977985.6 filed on October 15, 2019, and the content disclosed in the above Chinese patent application is quoted here in full as a part of this application.
技术领域Technical field
本公开涉及用于可视化电子表格的方法、装置、设备及存储介质。The present disclosure relates to methods, devices, equipment, and storage media for visualizing electronic forms.
背景技术Background technique
在很多行业领域,经常需要构建复杂的电子表格模型。电子表格模型是可以包括数值、文本和公式等的电子表格,用以计算某个或某些变量的值。比如,在金融分析过程中,金融分析师通常需要构建用于财务的电子表格模型,用来计算金融资产的内在价值。用于财务的电子表格模型通常包括数十页、数千行、数万单元格,单元格之间又存在复杂的相互计算关系,其中绝大部分单元格可能是根据其他单元格计算得到的。电子表格中的单元格可以存储文本、时间、数字、或者公式等。如果单元格中存储的是公式,则电子表格通常默认显示的是公式的计算结果,公式被隐藏或者在一个另外的区域显示,这使得用户需要进行进一步的操作才能追踪得到该公式引用的单元格。电子表格模型的复杂性以及单元格之间的非显式计算关系使得电子表格模型非常容易出错,难以被调试,并且难以被除了电子表格模型构建者以外的其他人理解或更改。因此,需要一种改进的用于可视化电子表格的方法、装置、设备及存储介质。In many industries, it is often necessary to build complex spreadsheet models. A spreadsheet model is a spreadsheet that can include numerical values, text, formulas, etc., to calculate the value of one or some variables. For example, in the process of financial analysis, financial analysts usually need to build a spreadsheet model for finance to calculate the intrinsic value of financial assets. The spreadsheet model used for finance usually includes dozens of pages, thousands of rows, and tens of thousands of cells. There are complex mutual calculation relationships between cells, and most of the cells may be calculated based on other cells. The cells in the spreadsheet can store text, time, numbers, or formulas. If a formula is stored in a cell, the spreadsheet usually displays the calculation result of the formula by default. The formula is hidden or displayed in another area, which makes the user need to perform further operations to track the cell referenced by the formula . The complexity of the spreadsheet model and the non-explicit calculation relationships between cells make the spreadsheet model very error-prone, difficult to debug, and difficult to understand or change by others except the spreadsheet model builder. Therefore, there is a need for an improved method, device, device, and storage medium for visualizing electronic forms.
发明内容Summary of the invention
本公开的一个实施例涉及用于可视化电子表格的计算机实现的方法,该方法包括:获得电子表格的层级结构,其中层级结构包括一个或多个层级,该一个或多个层级具有多个节点,其中每个层级具有至少一个节点并且具有相应的层级类型,每个节点对应于电子表格中的一个或多个单元格,其中层级结构还包括该多个节点之间的隶属关系;提取该多个节点中的每个节点的元数据;至少基于层级结构中的该 多个节点之间的计算关系来建立该多个节点之间的依赖关系;以及基于电子表格的层级结构、元数据和该多个节点之间的依赖关系来生成电子表格的层级的可视化表示。An embodiment of the present disclosure relates to a computer-implemented method for visualizing an electronic form, the method comprising: obtaining a hierarchical structure of the electronic form, wherein the hierarchical structure includes one or more levels, and the one or more levels have multiple nodes, Each level has at least one node and has a corresponding level type, and each node corresponds to one or more cells in the spreadsheet, where the hierarchy structure also includes the affiliation relationship between the multiple nodes; extracting the multiple Metadata of each node in the node; establish the dependency relationship between the multiple nodes based at least on the calculation relationship between the multiple nodes in the hierarchical structure; and based on the spreadsheet-based hierarchy, metadata, and the multiple nodes The dependencies between the nodes are used to generate a visual representation of the hierarchy of the spreadsheet.
本公开的另一个实施例涉及用于可视化电子表格的设备,该设备包括:至少一个处理器;以及至少一个存储设备,该至少一个存储设备存储有指令,当指令由至少一个处理器执行时使得至少一个处理器执行上述方法。Another embodiment of the present disclosure relates to a device for visualizing electronic forms. The device includes: at least one processor; and at least one storage device. The at least one storage device stores instructions, which when executed by at least one processor causes At least one processor executes the above method.
本公开的又一个实施例涉及一种非瞬态计算机可读存储介质,该非瞬态计算机可读存储介质存储有指令,当指令由处理器执行时使得执行上述方法。Yet another embodiment of the present disclosure relates to a non-transitory computer-readable storage medium that stores instructions that when executed by a processor causes the foregoing method to be performed.
本公开的再一个实施例涉及一种用于可视化电子表格的装置,该装置包括用于执行上述方法的步骤的部件。Yet another embodiment of the present disclosure relates to an apparatus for visualizing electronic forms, which includes components for performing the steps of the above-mentioned method.
从参考附图的以下描述中,本公开的其他特征和优点将变得清楚。Other features and advantages of the present disclosure will become clear from the following description with reference to the accompanying drawings.
附图说明Description of the drawings
并入说明书中并构成说明书的一部分的附图示出了本公开的实施例,并且与说明书一起用于解释本公开的原理而没有限制。在各图中,类似的标号用于表示类似的项目。The drawings incorporated in the specification and constituting a part of the specification illustrate the embodiments of the present disclosure, and together with the specification are used to explain the principle of the present disclosure without limitation. In each figure, similar reference numerals are used to indicate similar items.
图1是根据本公开的一些实施例的示例性的用于可视化电子表格的装置的框图。FIG. 1 is a block diagram of an exemplary apparatus for visualizing electronic forms according to some embodiments of the present disclosure.
图2是示出根据本公开的一些实施例的示例性的用于可视化电子表格的方法的流程图。FIG. 2 is a flowchart illustrating an exemplary method for visualizing an electronic form according to some embodiments of the present disclosure.
图3是示出根据本公开的一些实施例的示例性电子表格的示意图。Figure 3 is a schematic diagram illustrating an exemplary electronic form according to some embodiments of the present disclosure.
图4A和图4B是示出根据本公开的一些实施例的示例性的电子表格层级结构及节点之间的依赖关系的示意图。4A and 4B are schematic diagrams illustrating an exemplary spreadsheet hierarchy and dependency relationships between nodes according to some embodiments of the present disclosure.
图5是示出根据本公开的一些实施例的示例性的用于建立节点之间的依赖关系的方法的流程图。FIG. 5 is a flowchart illustrating an exemplary method for establishing a dependency relationship between nodes according to some embodiments of the present disclosure.
图6是示出根据本公开的一些实施例的示例性的电子表格层级结构中的节点的示意图。FIG. 6 is a schematic diagram showing nodes in an exemplary spreadsheet hierarchy structure according to some embodiments of the present disclosure.
图7A-图7C示出了根据本公开的一些实施例的示例性的电子表格的层级的可视化表示。7A-7C show a visual representation of the hierarchy of an exemplary electronic form according to some embodiments of the present disclosure.
图8A-图8C示出了根据本公开的一些实施例的示例性的电子表格的层级的可视化表示。8A-8C show a visual representation of the hierarchy of an exemplary electronic form according to some embodiments of the present disclosure.
图9示出了根据本公开的一些实施例的示例性的电子表格的层级的可视化表示。Figure 9 shows a visual representation of the hierarchy of an exemplary spreadsheet according to some embodiments of the present disclosure.
图10示出了根据本公开的一些实施例的示例性的电子表格的层级的可视化表示。FIG. 10 shows a visual representation of the hierarchy of an exemplary electronic form according to some embodiments of the present disclosure.
图11A-图11B示出了根据本公开的一些实施例的示例性的电子表格的层级的可视化表示。11A-11B show a visual representation of the hierarchy of an exemplary electronic form according to some embodiments of the present disclosure.
图12A-图12C示出了根据本公开的一些实施例的示例性的电子表格的层级的可视化表示。12A-12C show a visual representation of the hierarchy of an exemplary electronic form according to some embodiments of the present disclosure.
图13是示出根据本公开的一些实施例的示例性的电子表格的层级的可视化表示中的附加信息的示意图。FIG. 13 is a schematic diagram showing additional information in a visual representation of an exemplary electronic form's hierarchy according to some embodiments of the present disclosure.
图14是示出根据本公开的一些实施例的示例性的用于通过可视化表示来修改电子表格的方法的流程图。FIG. 14 is a flowchart illustrating an exemplary method for modifying an electronic form through a visual representation according to some embodiments of the present disclosure.
图15示出了根据本公开的一些实施例的其中可应用本公开的一般硬件环境。FIG. 15 shows a general hardware environment in which the present disclosure can be applied according to some embodiments of the present disclosure.
具体实施方式Detailed ways
在以下详细描述中,阐述了许多具体细节以提供对所描述的示例性实施例的透彻理解。但是,对于本领域技术人员清楚的是,所描述的实施例可以在没有这些具体细节中的一些或全部的情况下进行实践。在所描述的示例性实施例中,为了避免不必要地模糊本公开的概念,没有详细描述众所周知的结构或处理步骤。In the following detailed description, many specific details are set forth to provide a thorough understanding of the described exemplary embodiments. However, it is clear to those skilled in the art that the described embodiments can be practiced without some or all of these specific details. In the described exemplary embodiments, in order to avoid unnecessarily obscuring the concept of the present disclosure, well-known structures or processing steps are not described in detail.
下文所示的每个框图内的方框可以通过硬件、软件、固件或其任意组合来实现以实现本公开的原理。本领域技术人员应该理解的是,每个框图中描述的方框可以被组合或分成子框来实现本公开的原理。The blocks in each block diagram shown below can be implemented by hardware, software, firmware or any combination thereof to implement the principles of the present disclosure. Those skilled in the art should understand that the blocks described in each block diagram can be combined or divided into sub-blocks to implement the principles of the present disclosure.
本公开中呈现的方法的步骤旨在是说明性的。在一些实施例中,该方法可以用未描述的一个或多个附加步骤来完成和/或在没有所讨论的一个或多个步骤的情况下完成。此外,方法的步骤被示出和描述的顺序并不旨在是限制性的。The steps of the method presented in this disclosure are intended to be illustrative. In some embodiments, the method can be completed with one or more additional steps not described and/or without the one or more steps discussed. Furthermore, the order in which the steps of the method are shown and described is not intended to be limiting.
如上所述,传统电子表格模型的复杂性以及单元格之间的非显式计算关系使得电子表格模型非常容易出错,难以被调试,并且难以被理解或更改。具体而言,现有的通用电子表格编辑软件(比如Microsoft Excel)包括一些可视化工具,但这些可视化工具一般都是仅针对数值进行可视化的,比如生成柱状图、饼图等图表。一些独立的可视化软件(比如Microsoft Visio中的Data Visualizer、Lumina Decision Systems中的Analytica)可以通过具有特定字段的电子表格文件生成流程图,并将流程图中的节点与电子表格中的数据关联,但是却无法很好地可视化电 子表格中的单元格之间的计算关系。Syncopation Software开发的DPL中包括影响图功能,可以用来可视化电子表格中的计算关系。但是,如果一个电子表格包含的公式超过100个,该影响图会包含过多信息,导致影响图会变得非常复杂,用户很难从中找到所需要的信息,因此影响图难以帮助用户理解和调试复杂的电子表格模型。As mentioned above, the complexity of the traditional spreadsheet model and the non-explicit calculation relationship between cells make the spreadsheet model very prone to errors, difficult to debug, and difficult to understand or change. Specifically, the existing general-purpose spreadsheet editing software (such as Microsoft Excel) includes some visualization tools, but these visualization tools generally only visualize values, such as generating charts such as bar charts and pie charts. Some independent visualization software (such as Data Visualizer in Microsoft Visio, Analytica in Lumina Decision Systems) can generate flowcharts from spreadsheet files with specific fields, and associate the nodes in the flowchart with the data in the spreadsheet, but However, the calculation relationship between the cells in the spreadsheet cannot be well visualized. The DPL developed by Syncopation Software includes the influence diagram function, which can be used to visualize the calculation relationship in the spreadsheet. However, if a spreadsheet contains more than 100 formulas, the influence diagram will contain too much information, and the influence diagram will become very complicated. It is difficult for users to find the information they need. Therefore, the influence diagram is difficult to help users understand and debug. Complex spreadsheet model.
另外,电子表格模型中除了数值和公式信息外,一般还存储有大量的文本信息和格式信息。而现有电子表格可视化方法大多仅对数值信息或计算关系信息进行可视化,而不会展示电子表格中的语义信息和层次结构的信息。这对于用户对电子表格的理解和调试是不利的。In addition, in addition to the numerical value and formula information in the spreadsheet model, a large amount of text information and format information are generally stored. However, most of the existing electronic spreadsheet visualization methods only visualize numerical information or computational relationship information, and do not display the semantic information and hierarchical structure information in the electronic spreadsheet. This is detrimental to users' understanding and debugging of electronic forms.
本申请的实施例可以根据电子表格中的文本信息和格式信息以及单元格的位置将电子表格划分成不同层级的节点,并且可以识别存储有数值和公式信息的单元格的语义信息,从而生成电子表格的具有层级结构和语义信息的可视化表示,这样的可视化表示在本文中也被称为层级的可视化表示(hierarchical visual representation)。The embodiment of the present application can divide the electronic table into nodes of different levels according to the text information and format information in the electronic table and the position of the cell, and can identify the semantic information of the cell storing the numerical value and formula information, thereby generating the electronic A visual representation of a table with a hierarchical structure and semantic information. Such a visual representation is also referred to as a hierarchical visual representation in this article.
下面结合图1-图2描述根据本公开的一些实施例的用于可视化电子表格的装置和方法。The following describes an apparatus and method for visualizing an electronic form according to some embodiments of the present disclosure with reference to FIGS. 1 to 2.
图1是根据本公开的一些实施例的示例性的用于可视化电子表格的装置100的框图。如图1所示,装置100可以包括层级结构获得部件110、元数据提取部件120、依赖关系建立部件130和可视化表示生成部件140。虽然图1例示了上述4个单元,但这仅仅是用于可视化电子表格的装置的示意性结构,用于可视化电子表格的装置100还可以包括其他可能的单元,或者可以包括上述四个单元中任意单元的组合单元。FIG. 1 is a block diagram of an exemplary apparatus 100 for visualizing electronic forms according to some embodiments of the present disclosure. As shown in FIG. 1, the apparatus 100 may include a hierarchical structure obtaining component 110, a metadata extraction component 120, a dependency relationship establishment component 130, and a visual representation generating component 140. Although FIG. 1 illustrates the above four units, this is only a schematic structure of an apparatus for visualizing electronic forms. The apparatus 100 for visualizing electronic forms may also include other possible units, or may include the above four units. Combination unit of any unit.
层级结构获得部件110可以被配置成获得电子表格的层级结构。根据一个实施例,电子表格的层级结构可以包括一个或多个层级,该一个或多个层级具有多个节点,其中每个层级具有至少一个节点并且具有相应的层级类型(例如,工作簿、页、节、表、块、行、列、区间、单元格等),每个节点对应于电子表格中的一个或多个单元格,其中层级结构还包括该多个节点之间的隶属关系(例如,一个表节点可以具有若干层级类型为行的子节点,也就是说这些层级类型为行的子节点隶属于该层级类型为表的节点)。根据一个实施例,当且仅当与节点A对应的一个或多个单元格包含在与节点B对应的一个或多个单元格内时,节点A是节点B的子节点,或者说节点A隶属于节点B。The hierarchical structure obtaining part 110 may be configured to obtain the hierarchical structure of the electronic form. According to one embodiment, the hierarchical structure of the spreadsheet may include one or more hierarchies with multiple nodes, where each hierarchy has at least one node and has a corresponding hierarchical type (e.g., workbook, page , Section, table, block, row, column, interval, cell, etc.), each node corresponds to one or more cells in the spreadsheet, where the hierarchical structure also includes the affiliation between the multiple nodes (for example A table node can have several child nodes whose level type is row, that is to say, these child nodes whose level type is row belong to the node whose level type is table). According to one embodiment, if and only if one or more cells corresponding to node A are contained in one or more cells corresponding to node B, node A is a child node of node B, or node A belongs to于Node B.
根据一个实施例,获得电子表格的层级结构可以包括以下中的一项或多项:识别电子表格中的单元格的位置、内容和格式信息(例如,字体、字号、是否加粗、背景颜色等)中的一项或多项,并且至少基于单元格的位置、内容和格式信息中的一项或多项来识别电子表格的层级结构;以及接收由用户指定的层级结构。According to one embodiment, obtaining the hierarchical structure of the spreadsheet may include one or more of the following: identifying the location, content, and format information of cells in the spreadsheet (for example, font, font size, whether to bold, background color, etc.) ), and at least based on one or more of cell location, content, and format information to identify the hierarchical structure of the electronic form; and receive the hierarchical structure specified by the user.
根据一个实施例,电子表格的一个或多个层级的层级类型包括以下中的一项或多项:工作簿、页、节、表、块、行、列、区间和单元格。在一个实施例中,获得电子表格的层级结构可以包括以下中的一项或多项:在工作簿的每个页中检测标题,基于标题的位置、内容和格式信息中的一项或多项来确定标题的级别,并且基于标题的级别来将每个页划分为相应级别的节或表;基于每个表的行和列的位置、内容和格式信息中的一项或多项来确定行和列的级别;基于每个表中的行之间的相关性、列之间的相关性、行的级别、列的级别中的一项或多项将行和列划分为块;以及基于每个行和列中的单元格之间的相关性将单元格划分为区间。According to one embodiment, the level type of one or more levels of the spreadsheet includes one or more of the following: workbook, page, section, table, block, row, column, interval, and cell. In one embodiment, obtaining the hierarchical structure of the spreadsheet may include one or more of the following: detecting the title in each page of the workbook, based on one or more of the location, content, and format information of the title To determine the level of the title, and divide each page into corresponding levels of sections or tables based on the level of the title; determine the row based on one or more of the row and column position, content, and format information of each table And column levels; divide rows and columns into blocks based on one or more of the correlation between the rows in each table, the correlation between the columns, the level of the rows, and the level of the columns; and based on each The correlation between the cells in each row and column divides the cells into intervals.
元数据提取部件120可以被配置成提取电子表格的层级结构中的该多个节点中的每个节点的元数据。根据一个实施例,每个节点的元数据可以包括描述该节点的具体含义的语义信息。根据一个实施例,语义信息可以包括名称、标题、标签和批注中的一个或多个。例如,一个工作簿的语义信息可以是这个工作簿的名称和/或描述整个工作簿的文字内容,一个页的语义信息可以是这个页的名称和/或描述该整个页的文字内容,一个节的语义信息可以是这个节的标题,一个表的语义信息可以是这个表的名称,一个行或列的语义信息可以是这个行或列的标签,一个块的语义信息可以是适用于这个块的所有行或列的文字标签,一个单元格的语义信息是这个单元格的行标签和这个单元格的列标签。工作簿、页、节、表、块、行、列、区间和单元格的语义信息都可以包括批注,批注是对这些层级的节点的说明性文字。根据一个实施例,当该节点被显示在电子表格的层级的可视化表示中时,该节点的语义信息也被显示在可视化表示中,从而有助于用户理解电子表格的结构和内容。The metadata extraction component 120 may be configured to extract metadata of each of the plurality of nodes in the hierarchical structure of the spreadsheet. According to an embodiment, the metadata of each node may include semantic information describing the specific meaning of the node. According to an embodiment, the semantic information may include one or more of a name, a title, a tag, and an annotation. For example, the semantic information of a workbook can be the name of the workbook and/or the text content that describes the entire workbook, and the semantic information of a page can be the name of the page and/or the text content that describes the entire page, a section The semantic information of can be the title of this section, the semantic information of a table can be the name of the table, the semantic information of a row or column can be the label of this row or column, and the semantic information of a block can be applicable to this block. The text labels of all rows or columns. The semantic information of a cell is the row label of this cell and the column label of this cell. The semantic information of workbooks, pages, sections, tables, blocks, rows, columns, intervals, and cells can all include comments. Comments are descriptive text for nodes at these levels. According to one embodiment, when the node is displayed in the hierarchical visual representation of the electronic form, the semantic information of the node is also displayed in the visual representation, thereby helping the user to understand the structure and content of the electronic form.
根据一个实施例,每个节点的元数据可以包括用于该节点的计算公式中的运算符,例如,加号“+”或乘号“×”、或者多个运算符的组合等。根据一个实施例,电子表格的层级结构中的多个节点中的每个节点的语义信息可以是从与该节点对应的一个或多个单元格的文本内容中提取或生成的,或者可以是由用户定义的。According to an embodiment, the metadata of each node may include an operator used in the calculation formula of the node, for example, a plus sign “+” or a multiplication sign “×”, or a combination of multiple operators. According to one embodiment, the semantic information of each of the multiple nodes in the hierarchical structure of the spreadsheet may be extracted or generated from the text content of one or more cells corresponding to the node, or may be generated by User-defined.
根据一个实施例,每个节点的元数据还可以包括以下附加信息中的一个或多个:与该节点对应的一个或多个单元格的生成时间、该节点的子节点的数量、与该节点 对应的一个或多个单元格中的数值、该数值的单位、该数值所对应的时间点或时间段、与该节点对应的一个或多个单元格的格式、与该节点对应的一个或多个单元格在电子表格中的位置以及从层级结构中的根节点到该节点的路径。According to an embodiment, the metadata of each node may further include one or more of the following additional information: the generation time of one or more cells corresponding to the node, the number of child nodes of the node, and the node The value in the corresponding one or more cells, the unit of the value, the time point or time period corresponding to the value, the format of one or more cells corresponding to the node, one or more corresponding to the node The location of each cell in the spreadsheet and the path from the root node in the hierarchy to the node.
依赖关系建立部件130可以被配置成至少基于层级结构中的多个节点之间的计算关系来建立多个节点之间的依赖关系。应注意,层级结构中的每个节点都可能与其他节点存在依赖关系。对于电子表格中的任意两个单元格A和单元格B,定义单元格A依赖于单元格B当且仅当单元格A至少由单元格B(或由单元格B与其他单元格一起)计算得到。对于层级结构中的节点(例如,行节点)C和D,定义节点C依赖于节点D当且仅当节点C包含的至少一个单元格直接或间接地依赖于节点D包含的至少一个单元格。在一个实施例中,建立层级结构中的多个节点之间的依赖关系还可以基于该多个节点之间的隶属关系。在一些实施例中,建立层级结构中的多个节点之间的依赖关系可以无需知道该多个节点之间的隶属关系,例如,对于可以(例如,基于用户输入)直接获得所有节点之间的计算关系的情况,仅通过节点之间的计算关系就能直接得到节点之间的依赖关系,而无需根据节点之间的隶属关系进行进一步推导。下文将进一步描述建立节点之间的依赖关系的方法。The dependency relationship establishment component 130 may be configured to establish the dependency relationship between the multiple nodes based at least on the calculated relationship between the multiple nodes in the hierarchical structure. It should be noted that each node in the hierarchy may have a dependency relationship with other nodes. For any two cells A and B in the spreadsheet, define that cell A depends on cell B if and only if cell A is at least calculated by cell B (or by cell B together with other cells) get. For nodes (eg, row nodes) C and D in the hierarchical structure, define that node C depends on node D if and only if at least one cell contained in node C directly or indirectly depends on at least one cell contained in node D. In an embodiment, establishing the dependency relationship between multiple nodes in the hierarchical structure may also be based on the membership relationship between the multiple nodes. In some embodiments, the dependency relationship between multiple nodes in the hierarchical structure may be established without knowing the affiliation relationship between the multiple nodes. For example, it is possible to directly obtain the relationship between all nodes (for example, based on user input). In the case of calculating the relationship, the dependency relationship between the nodes can be directly obtained only through the calculation relationship between the nodes, without further deduction based on the membership relationship between the nodes. The method of establishing the dependency relationship between nodes will be further described below.
在一个实施例中,可以针对每个节点存储该节点所在层级的层级类型、该节点的子节点以及该节点的元数据。在一个实施例中,还可以针对每个节点存储该节点所依赖的节点。所存储的这些信息可以后续用于生成或更新电子表格的可视化表示。In an embodiment, the level type of the level of the node, the child nodes of the node, and the metadata of the node may be stored for each node. In an embodiment, the nodes that the node depends on may also be stored for each node. The stored information can be subsequently used to generate or update the visual representation of the electronic form.
可视化表示生成部件140可以被配置成基于电子表格的层级结构、元数据和该多个节点之间的依赖关系来生成电子表格的层级的可视化表示。如下文将进一步描述的,电子表格的层级的可视化表示可以具有多种形式并且可以响应于用户操作而被更新或修改。The visual representation generating component 140 may be configured to generate a visual representation of the hierarchy of the electronic form based on the hierarchical structure of the electronic form, metadata, and the dependency relationship between the plurality of nodes. As will be described further below, the visual representation of the hierarchy of the spreadsheet can have a variety of forms and can be updated or modified in response to user operations.
在一个实施例中,电子表格的层级的可视化表示可以被逐级展开,以便有助于用户直观地理解电子表格的结构和逻辑关系。在一个实施例中,可视化表示生成部件140可以被配置成接收展开电子表格的层级的可视化表示中的第三节点的输入(例如,双击第三节点或点击指示展开第三节点的图标等等)。在一个实施例中,响应于确定第三节点所在层级的层级类型不是单元格(例如,第三节点是行节点或表节点),更新可视化表示以显示第三节点的子孙节点、多个节点中与第三节点的子孙节点有依赖关系的其他节点以及第三节点的子孙节点和其他节点之间的依赖关系。根据一个实施例,更新可视化表示以显示第三节点的子孙节点包括显示第三节 点的子孙节点中的部分节点(例如,预定数量的节点、层级类型为特定层级的节点或者被识别为重要性高的节点等)。根据一个实施例,第三节点的子孙节点包括第一多个子孙节点,并且其中显示第三节点的子孙节点包括以使得第一多个子孙节点在可视化表示中的相对位置与分别和第一多个子孙节点中的每个子孙节点对应的一个或多个单元格在电子表格中的相对位置一致的方式来显示第一多个子孙节点,从而有助于用户在可视化表示中方便、直观地获得关于该一个或多个单元格在电子表格中的相对位置的信息。在一个实施例中,响应于确定第三节点所在层级的层级类型是单元格,更新可视化表示以显示与第三节点有依赖关系的其他节点以及第三节点与其他节点之间的依赖关系。根据一个实施例,显示与第三节点有依赖关系的其他节点包括显示与第三节点有依赖关系的所有节点中的部分节点(例如,预定数量的节点、层级类型为特定层级的节点或者被识别为重要性高的节点等)。根据一个实施例,更新可视化表示以显示与第三节点有依赖关系的其他节点包括:当其他节点的层级类型是单元格时,以使得其他节点在可视化表示中的相对位置与分别对应于其他节点的单元格在电子表格中的相对位置一致的方式来显示其他节点。In one embodiment, the visual representation of the hierarchy of the electronic form can be expanded level by level, so as to help the user to intuitively understand the structure and logical relationship of the electronic form. In one embodiment, the visual representation generating component 140 may be configured to receive an input to expand a third node in the visual representation of the hierarchy of the spreadsheet (for example, double-click the third node or click an icon indicating that the third node is expanded, etc.) . In one embodiment, in response to determining that the level type of the third node is not a cell (for example, the third node is a row node or a table node), the visual representation is updated to display the descendants of the third node, among the multiple nodes Other nodes that have a dependency relationship with the descendant nodes of the third node and the dependency relationship between the descendant nodes of the third node and other nodes. According to one embodiment, updating the visual representation to display the descendant nodes of the third node includes displaying some of the descendant nodes of the third node (e.g., a predetermined number of nodes, a node whose level type is a specific level, or a node that is identified as being of high importance Nodes, etc.). According to one embodiment, the descendant nodes of the third node include a first plurality of descendant nodes, and wherein the descendant nodes of the third node are displayed such that the relative positions of the first plurality of descendant nodes in the visual representation are different from the first plurality of descendant nodes. The relative position of one or more cells corresponding to each descendant node of the descendant nodes in the spreadsheet is displayed in a consistent manner to display the first multiple descendant nodes, which helps users to easily and intuitively obtain in the visual representation Information about the relative position of the one or more cells in the spreadsheet. In one embodiment, in response to determining that the level type of the level of the third node is a cell, the visual representation is updated to display other nodes that have a dependency relationship with the third node and the dependency relationship between the third node and other nodes. According to one embodiment, displaying other nodes that have a dependency relationship with the third node includes displaying a part of all nodes that have a dependency relationship with the third node (for example, a predetermined number of nodes, a node whose level type is a specific level, or a node that has been identified For nodes with high importance, etc.). According to one embodiment, updating the visual representation to display other nodes that have a dependency relationship with the third node includes: when the hierarchical type of the other node is a cell, so that the relative positions of the other nodes in the visual representation correspond to other nodes respectively The relative positions of the cells in the spreadsheet are displayed in a consistent manner to display other nodes.
在一个实施例中,生成电子表格的层级的可视化表示可以包括显示层级结构中的所在层级的层级类型为页的所有节点及所在层级的层级类型为页的所有节点之间的依赖关系,从而有助于用户直观地理解电子表格的各个页之间的逻辑关系。In one embodiment, the visual representation of the hierarchy of the generated spreadsheet may include displaying the dependencies between all nodes in the hierarchical structure whose hierarchy type is page and all nodes whose hierarchy type is page, so that there is Help users intuitively understand the logical relationship between the various pages of the spreadsheet.
在一个实施例中,可视化表示生成部件140可以被配置成响应于接收到可视化与电子表格中的一个页对应的节点的请求,显示该节点、该节点所依赖的与电子表格中的其他页的部分子孙节点对应的第一组节点、依赖于该节点的与电子表格中的其他页的部分子孙节点对应的第二组节点以及该节点与第一组节点和第二组节点之间的依赖关系。在一个实施例中,响应于确定该节点所依赖的与电子表格中的其他页的部分子孙节点对应的第一组节点的数量超过第一阈值,隐藏或折叠第一组节点中的部分节点;以及响应于确定依赖于该节点的与电子表格中的其他页的部分子孙节点对应的第二组节点的数量超过第二阈值,隐藏或折叠第二组节点中的部分节点。通过进行隐藏或折叠,可以避免显示过多信息,防止电子表格的可视化表示过于复杂而使得用户难以获得有用信息。In one embodiment, the visual representation generating component 140 may be configured to, in response to receiving a request to visualize a node corresponding to a page in the spreadsheet, display the information about the node, the nodes on which the node depends, and other pages in the spreadsheet. The first group of nodes corresponding to some descendant nodes, the second group of nodes corresponding to some descendant nodes of other pages in the spreadsheet that depend on this node, and the dependency relationship between this node and the first group of nodes and the second group of nodes . In one embodiment, in response to determining that the number of the first group of nodes corresponding to some descendant nodes of other pages in the spreadsheet on which the node depends exceeds the first threshold, hide or collapse some of the nodes in the first group of nodes; And in response to determining that the number of the second group of nodes corresponding to some descendant nodes of other pages in the spreadsheet that depends on the node exceeds the second threshold, hide or collapse some of the nodes in the second group of nodes. By hiding or folding, you can avoid displaying too much information, and prevent the visual representation of the electronic form from being too complicated and making it difficult for users to obtain useful information.
在一个实施例中,可视化表示生成部件140可以被配置成响应于接收到可视化与电子表格中的一个行对应的节点的请求,显示与该行包括的单元格对应的各个节点以及与该各个节点中的每个节点有依赖关系的、与电子表格中的其他行中的单元 格对应的第五组节点及第五组节点与该各个节点中的每个节点之间的依赖关系。应理解,可视化表示生成部件140还可以被配置成以类似的方式来可视化与电子表格中的一个列(或块等)对应的节点。In one embodiment, the visual representation generating component 140 may be configured to, in response to receiving a request to visualize a node corresponding to a row in the spreadsheet, display each node corresponding to the cell included in the row and the corresponding node. Each node in has a dependency relationship, a fifth group of nodes corresponding to cells in other rows in the spreadsheet, and a dependency relationship between the fifth group of nodes and each node in the respective nodes. It should be understood that the visual representation generating component 140 may also be configured to visualize the node corresponding to a column (or block, etc.) in the spreadsheet in a similar manner.
在一个实施例中,生成电子表格的层级的可视化表示可以包括以层级目录的形式显示电子表格的层级结构,该层级目录可以被逐级展开或收起。在一个实施例中,在可视化表示中可以用不同的显示格式(例如,背景颜色、填充图案等)来表示属于电子表格中的不同的页的节点,还可以用不同的节点显示格式(例如,节点形状、节点背景颜色等)来表示节点的不同的层级类型。在一个实施例中,可视化表示生成部件140可以被配置成响应于接收到选中可视化表示中的节点的输入(例如,单击该节点或者双击该节点等),强调显示选中的节点以及与选中的节点有依赖关系的节点。In one embodiment, generating a visual representation of the hierarchy of the electronic form may include displaying the hierarchical structure of the electronic form in the form of a hierarchical list, and the hierarchical list can be expanded or collapsed level by level. In one embodiment, different display formats (e.g., background color, filling pattern, etc.) can be used in the visual representation to represent nodes belonging to different pages in the spreadsheet, and different node display formats (e.g., Node shape, node background color, etc.) to indicate different levels of nodes. In one embodiment, the visual representation generating component 140 may be configured to, in response to receiving an input of selecting a node in the visual representation (for example, clicking the node or double-clicking the node, etc.), highlight the selected node and the selected node. Nodes that have dependencies.
在一个实施例中,可视化表示生成部件140可以被配置成响应于接收到查看可视化表示中的一个节点的附加信息的输入(例如,光标停留在该节点处达预定时间或者双击该节点等),显示该节点的附加信息。根据一个实施例,显示该节点的附加信息包括显示与该节点对应的一个或多个单元格的缩略图。根据一个实施例,显示该节点的附加信息包括显示表示与该节点存在隶属关系或依赖关系的一个或多个其他节点的链接。在一个实施例中,可视化表示生成部件140可以被配置成响应于接收到点击一个或多个其他节点的链接的输入来更新或新建可视化表示以显示该一个或多个其他节点。In one embodiment, the visual representation generating component 140 may be configured to respond to receiving an input of additional information for viewing a node in the visual representation (for example, the cursor stays at the node for a predetermined time or double-clicks the node, etc.), Display additional information about the node. According to one embodiment, displaying the additional information of the node includes displaying thumbnails of one or more cells corresponding to the node. According to an embodiment, displaying the additional information of the node includes displaying links to one or more other nodes that indicate that there is an affiliation or dependency relationship with the node. In one embodiment, the visual representation generating component 140 may be configured to update or create a new visual representation to display the one or more other nodes in response to receiving an input of clicking a link of one or more other nodes.
在一个实施例中,电子表格的层级的可视化表示可以被逐级收起。在一个实施例中,可视化表示生成部件140可以被配置成接收收起电子表格的层级的可视化表示中的第三节点的输入(例如,选择指示收起第三节点的图标、双击第三节点等)。在一个实施例中,可视化表示生成部件140可以被配置成响应于确定第三节点所在层级的层级类型不是单元格,更新可视化表示以隐藏第三节点的子节点、电子表格的层级结构中的多个节点中与第三节点的子节点有依赖关系的第一组其他节点(可以为一个或多个节点)以及第三节点的子节点和第一组其他节点之间的依赖关系,并显示与第三节点有依赖关系的第二组其他节点及第三节点与第二组其他节点之间的依赖关系。即,不再显示第三节点的子节点及其依赖关系,而是显示第三节点及其依赖关系。在一个实施例中,可视化表示生成部件140可以被配置成响应于确定第三节点所在层级的层级类型是单元格,更新可视化表示以隐藏与第三节点有依赖 关系的其他节点以及第三节点与其他节点之间的依赖关系。In one embodiment, the visual representation of the hierarchy of the spreadsheet can be collapsed level by level. In one embodiment, the visual representation generating component 140 may be configured to receive input of the third node in the visual representation of the hierarchy of the collapsed spreadsheet (for example, selecting an icon instructing to collapse the third node, double-clicking the third node, etc. ). In one embodiment, the visual representation generating component 140 may be configured to, in response to determining that the level type of the third node is not a cell, update the visual representation to hide the child nodes of the third node and much of the spreadsheet hierarchy. The first group of other nodes (which can be one or more nodes) that have a dependency relationship with the child nodes of the third node among the nodes, and the dependency relationship between the child nodes of the third node and the first group of other nodes, and display the The third node has a dependency relationship between the second group of other nodes and the dependency relationship between the third node and the second group of other nodes. That is, the child nodes of the third node and their dependencies are no longer displayed, but the third node and their dependencies are displayed. In one embodiment, the visual representation generating component 140 may be configured to, in response to determining that the level type of the third node is a cell, update the visual representation to hide other nodes that are dependent on the third node and the third node and Dependencies between other nodes.
图2是示出根据本公开的一些实施例的示例性的用于可视化电子表格的方法200的流程图。虽然图2例示了方法200的4个步骤,但这仅仅是用于可视化电子表格的方法的示意性流程,用于可视化电子表格的方法200还可以包括其他可能的步骤,或者可以包括上述四个步骤中任意步骤的组合步骤。FIG. 2 is a flowchart illustrating an exemplary method 200 for visualizing an electronic form according to some embodiments of the present disclosure. Although FIG. 2 illustrates the four steps of the method 200, this is only a schematic flow of the method for visualizing an electronic form. The method 200 for visualizing an electronic form may also include other possible steps, or may include the above four steps. A combination of any steps in the step.
方法200从步骤S210开始,步骤S210可以由图1的层级结构获得部件110执行。在步骤S210处,获得电子表格的层级结构,其中层级结构包括一个或多个层级,该一个或多个层级具有多个节点,其中每个层级具有至少一个节点并且具有相应的层级类型,每个节点对应于电子表格中的一个或多个单元格,其中层级结构还包括该多个节点之间的隶属关系。The method 200 starts from step S210, and step S210 may be executed by the hierarchical structure obtaining component 110 in FIG. 1. At step S210, a hierarchical structure of the electronic form is obtained, wherein the hierarchical structure includes one or more hierarchies, the one or more hierarchies have a plurality of nodes, wherein each hierarchy has at least one node and has a corresponding hierarchical type, each The node corresponds to one or more cells in the spreadsheet, and the hierarchical structure also includes the affiliation relationship between the multiple nodes.
方法200前进到步骤S220,步骤S220可以由图1的元数据提取部件120执行。在步骤S220处,提取层级结构中的多个节点中的每个节点的元数据。The method 200 proceeds to step S220, which may be executed by the metadata extraction component 120 of FIG. 1. At step S220, the metadata of each node in the plurality of nodes in the hierarchical structure is extracted.
方法200前进到步骤S230,步骤S230可以由图1的依赖关系建立部件130执行。在步骤S230处,至少基于层级结构中的多个节点之间的计算关系来建立该多个节点之间的依赖关系。The method 200 proceeds to step S230, and step S230 may be executed by the dependency relationship establishment component 130 in FIG. 1. At step S230, the dependency relationship between the multiple nodes in the hierarchical structure is established at least based on the calculation relationship between the multiple nodes.
方法200前进到步骤S240,步骤S240可以由图1的可视化表示生成部件140执行。在步骤S240处,基于所述电子表格的层级结构、所述元数据和所述多个节点之间的依赖关系来生成所述电子表格的层级的可视化表示。The method 200 proceeds to step S240, which may be executed by the visual representation generating component 140 of FIG. 1. At step S240, a visual representation of the hierarchy of the electronic form is generated based on the hierarchical structure of the electronic form, the metadata and the dependency relationship between the plurality of nodes.
下面将结合图3-图15描述根据本公开的示例性实施例。Hereinafter, exemplary embodiments according to the present disclosure will be described with reference to FIGS. 3 to 15.
图3是示出根据本公开的一些实施例的示例性电子表格300的示意图。虽然图3中示出的电子表格基于Microsoft Excel,但是应当理解本公开的实施例不限于此,而是可以适用于基于任何合适的软件制作的电子表格。FIG. 3 is a schematic diagram illustrating an exemplary electronic form 300 according to some embodiments of the present disclosure. Although the electronic form shown in FIG. 3 is based on Microsoft Excel, it should be understood that the embodiments of the present disclosure are not limited to this, but can be applied to electronic forms made based on any suitable software.
如图3所示,电子表格300为一个工作簿(book),即一个电子表格文件(比如xls文件、xlsx文件)。图3中示出的为该工作簿的一个页(Sheet1)371,该工作簿还可以具有其他的一个或多个页(例如,页372等),其中每个页可以具有一个或多个单元格,例如单元格313。每个单元格可以存储数字、文本或公式等。例如,单元格313处默认显示的是公式的结果“9.9%”,而单元格313的公式“=G12/B12-1”被显示在电子表格文件的其他区域,以指示单元格313的值=G12单元格的值/B12单元格的值-1。如上所述,这种显示方式使得用户难以调试和理解电子表格模型。As shown in FIG. 3, the electronic form 300 is a workbook (book), that is, an electronic form file (such as an xls file, an xlsx file). Figure 3 shows a page (Sheet1) 371 of the workbook. The workbook may also have one or more other pages (for example, page 372, etc.), and each page may have one or more cells. Grid, such as cell 313. Each cell can store numbers, text or formulas, etc. For example, the result of the formula "9.9%" is displayed in cell 313 by default, and the formula "=G12/B12-1" in cell 313 is displayed in other areas of the spreadsheet file to indicate the value of cell 313= G12 cell value/B12 cell value -1. As mentioned above, this display mode makes it difficult for users to debug and understand the spreadsheet model.
如上所述,根据本公开的实施例的用于可视化电子表格的示例性方法可以获得 电子表格的层级结构。根据一个实施例,获得电子表格的层级结构可以包括识别电子表格中的单元格的位置、内容和格式信息中的一项或多项,并且至少基于单元格的位置、内容和格式信息中的一项或多项来识别电子表格的层级结构。根据另一个实施例,获得电子表格的层级结构可以包括接收由用户指定的层级结构。根据又一个实施例,电子表格的层级结构可以部分是通过上述方法自动识别得到的,部分是由用户指定的;或者可以是在自动识别得到后被提供给用户,然后根据用户输入来进行完善和补充。还可以使用机器学习算法来获得电子表格的层级结构。例如,可以利用一定数量的(例如,几万个)电子表格以及通过人工或半人工方式获得的相应的层级结构来训练机器学习算法(例如,支持向量机、决策树、神经网络等),然后可以利用经训练的机器学习算法来获得给定电子表格的层级结构。As described above, the exemplary method for visualizing an electronic form according to an embodiment of the present disclosure can obtain the hierarchical structure of the electronic form. According to one embodiment, obtaining the hierarchical structure of the spreadsheet may include identifying one or more of the location, content, and format information of the cells in the spreadsheet, and based on at least one of the location, content, and format information of the cells. Item or multiple items to identify the hierarchical structure of the spreadsheet. According to another embodiment, obtaining the hierarchical structure of the electronic form may include receiving the hierarchical structure specified by the user. According to yet another embodiment, the hierarchical structure of the electronic form can be partly recognized by the above method and partly specified by the user; or can be provided to the user after the automatic recognition is obtained, and then complete and complete according to user input. supplement. You can also use machine learning algorithms to get the hierarchical structure of the spreadsheet. For example, a certain number (for example, tens of thousands) of spreadsheets and the corresponding hierarchical structure obtained through manual or semi-manual methods can be used to train machine learning algorithms (for example, support vector machines, decision trees, neural networks, etc.), and then A trained machine learning algorithm can be used to obtain the hierarchical structure of a given spreadsheet.
根据一个实施例,电子表格的一个或多个层级的层级类型可以包括以下中的一项或多项:工作簿、页、节、表、块、行、列、区间和单元格。应理解,上述层级类型仅仅是示例,还可以为层级结构定义任何其他合适的层级类型。根据本公开的实施例,页可以由节或表构成,每个节还可以包括节或者表。例如,在图3中,页371可以包括两个节(“中国”和“美国”),节“美国”包括两个表330和340。表可以由行、列、或块构成。例如,在图3中,表330包括行311、块321“电子产品”等,表340包括行316“销售额”、列312、块314“2017”。块可以是一组联系紧密的行或列,块中的单元格的行或列标签是紧密相关的。例如,在图3中,块314中的单元格的列标签分别为“第一季度”、“第二季度”、“第三季度”、“第四季度”、和“全年”,并且都处于“2017”的列标签下,从而可以被识别为是紧密相关的,因为它们是连续的。块还可以包括块。行和列可以包括单元格,也可以包括区间(interval)。区间可以是一组联系紧密的单元格。例如,图3中的区间315包括四个单元格,这四个单元格属于同一行,列标签紧密相关,并且公式是类似的,因此可以被识别为一个区间。根据本公开的实施例的层级结构中行和列的定义与传统电子表格中行和列的定义有所区别:传统电子表格中定义的一行(一列)是指处于同一水平位置(竖直位置)的所有单元格(例如,列G包括在该竖直位置处的所有单元格);而层级结构中的行和列是在表的范围内定义的,即,如果一页中有多个水平(竖直)排列的表,那么同一水平(竖直)位置可以具有分别属于不同表的多个行(列)。例如,可以认为单元格G9至G13为属于表330的列,而单元格G18-G20为属于表340的列。According to one embodiment, the level type of one or more levels of the spreadsheet may include one or more of the following: workbook, page, section, table, block, row, column, interval, and cell. It should be understood that the above-mentioned hierarchical types are only examples, and any other suitable hierarchical types may also be defined for the hierarchical structure. According to an embodiment of the present disclosure, a page may be composed of sections or tables, and each section may also include a section or table. For example, in FIG. 3, page 371 may include two sections ("China" and "United States"), and section "United States" includes two tables 330 and 340. The table can be composed of rows, columns, or blocks. For example, in FIG. 3, table 330 includes row 311, block 321 "electronic product", etc., table 340 includes row 316 "sales", column 312, block 314 "2017". A block can be a group of closely related rows or columns, and the row or column labels of the cells in the block are closely related. For example, in Figure 3, the column labels of the cells in block 314 are "first quarter", "second quarter", "third quarter", "fourth quarter", and "full year", respectively. Under the column label of "2017", it can be identified as closely related because they are continuous. Blocks can also include blocks. Rows and columns can include cells or intervals. An interval can be a group of closely connected cells. For example, the interval 315 in FIG. 3 includes four cells, the four cells belong to the same row, the column labels are closely related, and the formulas are similar, so they can be identified as an interval. The definitions of rows and columns in the hierarchical structure according to the embodiments of the present disclosure are different from those in traditional spreadsheets: a row (a column) defined in a traditional spreadsheet refers to all those in the same horizontal position (vertical position). Cells (for example, column G includes all cells at the vertical position); while the rows and columns in the hierarchical structure are defined within the scope of the table, that is, if there are multiple horizontal (vertical) ) Arranged tables, then the same horizontal (vertical) position can have multiple rows (columns) belonging to different tables. For example, it can be considered that cells G9 to G13 are columns belonging to table 330, and cells G18-G20 are columns belonging to table 340.
在一个实施例中,获得电子表格的层级结构包括以下中的一项或多项:在工作簿的每个页中检测标题,基于标题的位置、内容和格式信息中的一项或多项来确定标题的级别,并且基于标题的级别来将每个页划分为相应级别的节或表;基于每个表的行和列的位置、内容和格式信息中的一项或多项来确定行和列的级别;基于每个表中的行之间的相关性、列之间的相关性、行的级别、列的级别中的一项或多项将行和列划分为块;以及基于每个行和列中的单元格之间的相关性将单元格划分为区间。例如,对于图3的页371,可以首先基于行1、3-5、15、22-24、34仅包括文字内容而检测出标题310“财务报告”、标题320“美国”和350“中国”以及标题322“销售明细”和标题323“利润表”、标题332“销售明细”和标题333“利润表”。然后可以基于标题310位于页371的最上面一行并且与标题320“美国”之间有空白行和/或可以基于标题310和320的格式(例如,字号、字体颜色、背景颜色、缩进、是否黑体\下划线)来确定标题310为描述整个页371的内容的文字信息,以及确定标题310“财务报告”是一级标题、标题320“美国”和350“中国”是二级标题。对于标题“销售明细”322、332和标题“利润表”323、333,可以基于它们下方有包含文本和数字的连续单元格和/或可以基于它们的格式(例如,字号、字体颜色、背景颜色、缩进、是否黑体\下划线)来确定标题322“销售明细”和标题323“利润表”分别为表330和表340的名称。类似地,还可以确定标题332“销售明细”和标题333“利润表”分别为节“中国”中的两个表的名称。然后可以确定行或列的级别,例如,对于表330中的行311“总计”,由于其比行“手机”的视觉显示更为突出(黑体,以及更少的缩进),可以确定行311“总计”具有比行“手机”更高的级别。对于表340中的列312(F18-F20),可以通过列标签“全年”确定该列为全年度的汇总数据,而列B18-B20、列C18-C20、列D18-D20、列E18-E20分别表示第一季度至第四季度的数据。因此,可以确定列F18-F20具有比列B18-B20、列C18-C20、列D18-D20、列E18-E20更高的级别。根据另一个实施例,也可以向列F18-F20指派与列B18-B20、列C18-C20、列D18-D20、列E18-E20相同的级别。表中的行和列可以被划分为块,例如,可以基于行“笔记本电脑”、“平板电脑”、“手机”具有相同的行级别(或者行标签之间的相关性)来将它们划分为属于表330的一个块321。此外,单元格还可以被划分为区间,例如,可以基于单元格L20-O20的列标签之间的相关性以及它们的计算公式的相似性来将单元格L20-O20划分为表340的一个区间315。In one embodiment, obtaining the hierarchical structure of the electronic form includes one or more of the following: detecting the title in each page of the workbook, based on one or more of the location, content, and format information of the title Determine the level of the heading, and divide each page into corresponding levels of sections or tables based on the level of the heading; determine the rows and tables based on one or more of the row and column position, content, and format information of each table Column level; based on one or more of the correlation between the rows in each table, the correlation between the columns, the level of the rows, the level of the columns, the rows and columns are divided into blocks; and based on each The correlation between the cells in the rows and columns divides the cells into intervals. For example, for page 371 in Figure 3, the heading 310 "Financial Report", the heading 320 "United States", and 350 "China" can be detected based on the lines 1, 3-5, 15, 22-24, and 34 that only include text content. And the heading 322 "Sales Details" and the heading 323 "Profit Statement", the heading 332 "Sales Details" and the heading 333 "Profit Statement". Then it can be based on the title 310 on the top line of page 371 and there is a blank line between the title 320 "United States" and/or can be based on the format of the title 310 and 320 (for example, font size, font color, background color, indentation, whether Bold\Underline) to determine that the title 310 is the text information describing the content of the entire page 371, and that the title 310 "Financial Report" is the first-level title, and the titles 320 "United States" and 350 "China" are the second-level titles. For the headings "Sales Details" 322, 332 and the headings "Profit Statement" 323, 333, it can be based on the continuous cells containing text and numbers below them and/or can be based on their format (for example, font size, font color, background color) , Indentation, bold\underline) to determine that the title 322 "Sales Details" and the title 323 "Profit Statement" are the names of Table 330 and Table 340, respectively. Similarly, it can be determined that the title 332 "Sales Details" and the title 333 "Profit Statement" are the names of the two tables in the section "China", respectively. Then you can determine the level of the row or column. For example, for row 311 "Total" in table 330, because it is more prominent (in bold, and less indented) than row "Phone", row 311 can be determined "Total" has a higher level than the row "Mobile". For column 312 (F18-F20) in table 340, the column label "full year" can be used to determine that the column is the summary data for the whole year, and column B18-B20, column C18-C20, column D18-D20, and column E18- E20 represents the data from the first quarter to the fourth quarter respectively. Therefore, it can be determined that the columns F18-F20 have a higher rank than the columns B18-B20, C18-C20, D18-D20, and E18-E20. According to another embodiment, the columns F18-F20 may also be assigned the same level as the columns B18-B20, C18-C20, D18-D20, and E18-E20. The rows and columns in the table can be divided into blocks. For example, the rows "laptop", "tablet", and "phone" can be divided into blocks based on the same row level (or correlation between row labels) It belongs to a block 321 of the table 330. In addition, cells can also be divided into intervals. For example, cells L20-O20 can be divided into an interval of table 340 based on the correlation between the column labels of cells L20-O20 and the similarity of their calculation formulas. 315.
如上所述,根据本公开的实施例的用于可视化电子表格的示例性方法可以提取层级结构中的多个节点中的每个节点的元数据。根据一个实施例,每个节点的元数据可以包括描述该节点的具体含义的语义信息。根据一个实施例,语义信息可以包括名称、标题、标签和批注中的一个或多个。例如,一个工作簿的语义信息可以是这个工作簿的名称和/或描述整个工作簿的文字内容和/或对于整个工作簿的批注,一个页的语义信息可以是这个页的名称和/或描述该整个页的文字内容和/或对于整个页的批注,一个节的语义信息可以是这个节的标题和/或对于整个节的批注,一个表的语义信息可以是这个表的名称和/或对于整个表的批注,一个行或列的语义信息可以是这个行或列的标签和/或对于这个行/列的批注,一个块的语义信息可以是适用于这个块的所有行或列的文字标签和/或对于这个块的批注,一个单元格的语义信息是这个单元格的行标签和这个单元格的列标签和/或对于这个单元格的批注。例如,对于图3所示的电子表格,页371的语义信息可以被识别为标题310,即“财务报告”。例如,表330的语义信息可以被识别为标题320“美国”和标题322“销售明细”的组合“美国销售明细”,列312的语义信息可以被识别为列标签“2017全年”,单元格313的语义信息可以被识别为“2018第一季度同比增长率”,区间315的语义信息可以被识别为“2019第一季度、第二季度、第三季度、第四季度毛利润”,或者可以被识别为“2019毛利润”。As described above, the exemplary method for visualizing an electronic table according to an embodiment of the present disclosure can extract metadata of each node among a plurality of nodes in a hierarchical structure. According to an embodiment, the metadata of each node may include semantic information describing the specific meaning of the node. According to an embodiment, the semantic information may include one or more of a name, a title, a tag, and an annotation. For example, the semantic information of a workbook can be the name of the workbook and/or the text content describing the entire workbook and/or comments on the entire workbook, the semantic information of a page can be the name and/or description of the page The text content of the entire page and/or the annotations for the entire page, the semantic information of a section can be the title of this section and/or the annotations for the entire section, the semantic information of a table can be the name of the table and/or the The annotation of the entire table, the semantic information of a row or column can be the label of this row or column and/or the annotation of this row/column, the semantic information of a block can be the text label applicable to all rows or columns of this block And/or for the comment of this block, the semantic information of a cell is the row label of this cell and the column label of this cell and/or the comment for this cell. For example, for the electronic form shown in FIG. 3, the semantic information of page 371 can be identified as the title 310, that is, "financial report." For example, the semantic information of the table 330 can be identified as the combination of the title 320 "United States" and the title 322 "Sales Details" "United States Sales Details", the semantic information of the column 312 can be identified as the column label "2017 Annual", cell The semantic information of 313 can be identified as "2018 first quarter year-on-year growth rate", and the semantic information of interval 315 can be identified as "2019 first quarter, second quarter, third quarter, fourth quarter gross profit", or it can be Identified as "2019 gross profit".
根据一个实施例,每个节点的元数据可以包括用于该节点的计算公式中的运算符,例如,单个运算符或者多个运算符的组合等。例如,单元格313的计算公式为G12/B12-1,首先可以从该计算公式中提取出单元格节点G12和B12,从而确定该单元格与单元格G12和B12有计算关系,具体而言,单元格313是由单元格G12和B12计算得到的。进一步地,提取单元格节点313的元数据可以包括提取计算公式G12/B12-1中的运算符“*/*-1”,其中“*”表示占位符。应理解,电子表格中的计算公式不仅包括单元格之间的计算公式,电子表格还可以包括更高级别的节点(例如,行、列等)之间的计算公式。例如,行311“总计”中的单元格B12~P12中可以包含数组公式“{=B9:P9+B10:P10+B11:P11}”,则代表行“总计”与“笔记本电脑”、“平板电脑”、“手机”这三行存在计算关系。根据一个实施例,电子表格的层级结构中的多个节点中的每个节点的语义信息可以是从与该节点对应的一个或多个单元格的文本内容中提取或生成的,或者可以是由用户定义的。例如,用户可以手动输入某个节点的语义信息,或者对自动提取或生成的语义信息进行修改。According to an embodiment, the metadata of each node may include operators used in the calculation formula of the node, for example, a single operator or a combination of multiple operators. For example, the calculation formula for cell 313 is G12/B12-1. First, the cell nodes G12 and B12 can be extracted from the calculation formula to determine that the cell has a calculation relationship with cells G12 and B12. Specifically, Cell 313 is calculated from cells G12 and B12. Further, extracting the metadata of the cell node 313 may include extracting the operator "*/*-1" in the calculation formula G12/B12-1, where "*" represents a placeholder. It should be understood that the calculation formulas in the electronic table not only include calculation formulas between cells, but the electronic table may also include calculation formulas between higher-level nodes (for example, rows, columns, etc.). For example, cells B12~P12 in row 311 "Total" can contain the array formula "{=B9:P9+B10:P10+B11:P11}", which represents the row "Total" and "Laptop" and "Tablet The three lines of "computer" and "mobile phone" have a computational relationship. According to one embodiment, the semantic information of each of the multiple nodes in the hierarchical structure of the spreadsheet may be extracted or generated from the text content of one or more cells corresponding to the node, or may be generated by User-defined. For example, the user can manually input the semantic information of a certain node, or modify the semantic information automatically extracted or generated.
根据一个实施例,层级结构中的每个节点(例如,表节点、行节点等)的元数据还可以包括以下附加信息中的一个或多个:与该节点对应的一个或多个单元格的生成时间、该节点的子节点的数量(例如,有多少个行节点隶属于一个表节点)、与该节点对应的一个或多个单元格中的数值、该数值的单位(例如,从表330中提取的单位“百万元”)、该数值所对应的时间点或时间段(例如,单元格节点313对应的时间段是2018年第一季度)、与该节点对应的一个或多个单元格的格式(例如,字体、字号、字体颜色、背景颜色等)、与该节点对应的一个或多个单元格在电子表格中的位置(例如,单元格节点313位于电子表格的第1页的第13行第G列)以及从层级结构中的根节点到该节点的路径。例如,对于图3所示的电子表格,层级结构中的根节点可以是工作簿300,从根节点到单元格节点的路径可以是“工作簿300→页371→表330→行317→单元格313”。According to an embodiment, the metadata of each node (for example, table node, row node, etc.) in the hierarchical structure may further include one or more of the following additional information: Generation time, the number of child nodes of the node (for example, how many row nodes belong to a table node), the value in one or more cells corresponding to the node, and the unit of the value (for example, from Table 330 The extracted unit "million yuan"), the time point or time period corresponding to the value (for example, the time period corresponding to cell node 313 is the first quarter of 2018), one or more units corresponding to the node The format of the cell (for example, font, font size, font color, background color, etc.), the position of one or more cells corresponding to the node in the spreadsheet (for example, cell node 313 is located on page 1 of the spreadsheet) Row 13, column G) and the path from the root node in the hierarchy to the node. For example, for the spreadsheet shown in Figure 3, the root node in the hierarchical structure can be the workbook 300, and the path from the root node to the cell node can be "workbook 300→page 371→table 330→row 317→cell 313".
下面结合图4A和图4B进一步描述根据本公开的示例性实施例的电子表格层级结构以及如何建立节点之间的依赖关系。The following further describes the hierarchical structure of the spreadsheet according to the exemplary embodiment of the present disclosure and how to establish the dependency relationship between nodes in conjunction with FIG. 4A and FIG. 4B.
图4A和图4B是示出根据本公开的一些实施例的示例性的电子表格层级结构400及节点之间的依赖关系的示意图。应理解,图4A是示例性的,如图4A和图4B所示的层级结构仅仅是为了便于理解,而并不意图限制层级结构的存储格式。图4A中的层级结构例如可以是由图1的层级结构获得部件110获得的。4A and 4B are schematic diagrams illustrating an exemplary spreadsheet hierarchical structure 400 and dependency relationships between nodes according to some embodiments of the present disclosure. It should be understood that FIG. 4A is exemplary, and the hierarchical structure shown in FIG. 4A and FIG. 4B is only for ease of understanding, and is not intended to limit the storage format of the hierarchical structure. The hierarchical structure in FIG. 4A may be obtained by, for example, the hierarchical structure obtaining part 110 of FIG. 1.
在图4A中用不同的节点形状示出了层级结构中的不同层级类型的节点,用实线箭头示出了节点之间的隶属关系,并且用虚线箭头示出了节点之间的依赖关系。假设节点A隶属于节点B,则实线箭头从B指向A,并且称节点B是节点A的父节点,节点A是节点B的子节点。定义没有父节点的节点为根节点,定义没有子节点的节点为叶子节点。除了根节点和叶子节点之外的所有节点有且仅有一个父节点,从根节点到一个节点所经分支上的所有节点被称为该节点的祖先节点,以一个节点为根的子图中的任一节点都称为该节点的子孙节点。用椭圆形示出的节点401是根节点,其层级类型为工作簿,节点401对应于电子表格的整个工作簿。用圆角矩形示出的节点403的层级类型为表,它具有层级类型为行的两个子节点404和405,这两个子节点用八边形示出。节点402的层级类型同样是行,但它不隶属于节点403,而是直接隶属于根节点401。也就是说,工作簿总共包括三个行,其中与节点404和405对应的行属于与节点403对应的表。层级类型为单元格的节点用菱形示出,其中单元格节点406和407隶属于行节点402,单元格节点408隶属于行节点404,而单元格 节点409和410隶属于行节点405。应理解,图4A是电子表格的层级结构的示例,实际的层级结构可以包括比图4A更多或更少或者不同的层级类型,并且每个层级可以包括任意合适数量的节点。In FIG. 4A, different node shapes are used to show nodes of different hierarchical types in the hierarchical structure, solid arrows are used to show the affiliation relationship between nodes, and dotted arrows are used to show the dependency relationship between nodes. Assuming that node A belongs to node B, the solid arrow points from B to A, and it is said that node B is the parent node of node A, and node A is the child node of node B. Define the node without a parent node as the root node, and define the node without child nodes as the leaf node. All nodes except the root node and leaf nodes have one and only one parent node, and all nodes on the branch from the root node to a node are called the ancestors of the node, and a subgraph with a node as the root Any node of is called the descendant node of that node. The node 401 shown in an oval shape is the root node, and its level type is workbook, and the node 401 corresponds to the entire workbook of the spreadsheet. The level type of the node 403 shown by a rounded rectangle is a table, and it has two child nodes 404 and 405 whose level type is a row, and these two child nodes are shown by an octagon. The level type of the node 402 is also row, but it does not belong to the node 403, but directly belongs to the root node 401. That is, the workbook includes three rows in total, among which rows corresponding to nodes 404 and 405 belong to the table corresponding to node 403. Nodes with a hierarchy type of cell are shown by diamonds, where cell nodes 406 and 407 belong to row node 402, cell node 408 belongs to row node 404, and cell nodes 409 and 410 belong to row node 405. It should be understood that FIG. 4A is an example of the hierarchical structure of the electronic form. The actual hierarchical structure may include more or fewer or different types of levels than that of FIG. 4A, and each level may include any suitable number of nodes.
假设与节点408对应的单元格中的计算公式指示与节点408对应的单元格由与节点402对应的行计算得到(例如,与节点408对应的单元格的值=SUM(与节点402对应的行)),则可以确定节点408依赖于节点402,这由节点402和节点408之间的虚线箭头434表示。假设与节点407对应的单元格中的计算公式指示与节点407对应的单元格由与节点410对应的单元格计算得到(例如,与节点407对应的单元格的值=与节点410对应的单元格的值×2),则可以确定节点407依赖于节点410,这由节点410和节点407之间的虚线箭头442表示。下文将进一步结合图4A、图4B和图5描述根据本公开示例性实施例的用于建立节点之间的依赖关系的方法。Assume that the calculation formula in the cell corresponding to node 408 indicates that the cell corresponding to node 408 is calculated from the row corresponding to node 402 (for example, the value of the cell corresponding to node 408 = SUM (row corresponding to node 402) )), it can be determined that the node 408 depends on the node 402, which is represented by the dashed arrow 434 between the node 402 and the node 408. Assume that the calculation formula in the cell corresponding to node 407 indicates that the cell corresponding to node 407 is calculated from the cell corresponding to node 410 (for example, the value of the cell corresponding to node 407 = the cell corresponding to node 410 The value of x 2), it can be determined that the node 407 depends on the node 410, which is represented by the dotted arrow 442 between the node 410 and the node 407. Hereinafter, a method for establishing a dependency relationship between nodes according to an exemplary embodiment of the present disclosure will be further described in conjunction with FIG. 4A, FIG. 4B, and FIG. 5.
图5是示出根据本公开的一些实施例的示例性的用于建立节点之间的依赖关系的方法500的流程图。虽然图5例示了方法500的3个步骤,但这仅仅是用于建立节点之间的依赖关系的方法的示意性流程,该方法500还可以包括其他可能的步骤,或者可以包括上述三个步骤中任意步骤的组合步骤。方法500例如可以由图1的依赖关系建立部件130执行。FIG. 5 is a flowchart illustrating an exemplary method 500 for establishing a dependency relationship between nodes according to some embodiments of the present disclosure. Although FIG. 5 illustrates the three steps of the method 500, this is only a schematic flow of a method for establishing a dependency relationship between nodes. The method 500 may also include other possible steps, or may include the above three steps. A combination of steps in any step. The method 500 may be executed by, for example, the dependency relationship establishment component 130 of FIG. 1.
方法500从步骤S510开始,在步骤S510处,对于层级结构中的每个节点,确定该节点由另外的一个或多个节点计算得到。根据一个实施例,可以通过读取与该节点对应的(一个或多个)单元格的内容包括公式来确定该节点由另外的一个或多个节点计算得到。例如,对于图3中的单元格313,基于它的内容为公式G12/B12-1,可以确定与单元格313对应的节点由与单元格G12对应的节点和与单元格B12对应的节点计算得到。又例如,参考图4A,可以确定与节点408对应的单元格由与节点402对应的行计算得到,并且与节点407对应的单元格由与节点410对应的单元格计算得到。The method 500 starts at step S510. At step S510, for each node in the hierarchical structure, it is determined that the node is calculated by one or more other nodes. According to an embodiment, it is possible to determine that the node is calculated by another one or more nodes by reading the content of the cell(s) corresponding to the node including a formula. For example, for cell 313 in Figure 3, based on its content as the formula G12/B12-1, it can be determined that the node corresponding to cell 313 is calculated from the node corresponding to cell G12 and the node corresponding to cell B12 . For another example, referring to FIG. 4A, it can be determined that the cell corresponding to node 408 is calculated from the row corresponding to node 402, and the cell corresponding to node 407 is calculated from the cell corresponding to node 410.
方法500前进到步骤S520,在步骤S520处,对于对应于该节点的一个或多个第一单元格中的每个第一单元格,确定该第一单元格由对应于另外的一个或多个节点的一个或多个第二单元格中的第一组第二单元格计算得到。返回参考图4A,对于与节点408对应的单元格,例如根据与节点408对应的单元格的值=SUM(与节点402对应的行),可以确定该单元格由与节点406对应的单元格和与节点407对应的单元格计算得到。应理解,由于节点408的层级类型本身为单元格,所以此处仅需要确定 与节点408对应的一个单元格的计算关系。而如果最初确定的是节点405的计算关系,则需要分别确定隶属于节点405的层级类型为单元格的节点409和410的计算关系。另外,取决于具体的计算关系,与节点408对应的单元格由与节点402对应的行计算得到不一定意味着与节点408对应的单元格由与节点402对应的行中的每个单元格计算得到。例如,假设包括三个单元格的行A的计算公式为等于包括三个单元格的行B的值,则可以确定行A中的第一个单元格由行B中的第一个单元格计算得到,而不是由行B中的每个单元格计算得到。通过步骤S520,可以将可能具有比单元格更高的层级类型的节点之间的计算关系分解为该节点的子孙节点中层级类型为单元格的节点的计算关系。而对于在步骤S510中确定的与节点407对应的单元格和与节点410对应的单元格之间的计算关系,由于节点407和410所在层级的层级类型已经是单元格,所以该步骤S520实际上可以被省略。The method 500 proceeds to step S520. At step S520, for each first cell of the one or more first cells corresponding to the node, it is determined that the first cell corresponds to the other one or more The first group of second cells in one or more second cells of the node is calculated. Referring back to FIG. 4A, for the cell corresponding to node 408, for example, according to the value of the cell corresponding to node 408=SUM (the row corresponding to node 402), it can be determined that the cell is composed of the cell corresponding to node 406 and The cell corresponding to node 407 is calculated. It should be understood that since the hierarchical type of the node 408 itself is a cell, only the calculation relationship of one cell corresponding to the node 408 needs to be determined here. However, if the calculation relationship of the node 405 is initially determined, the calculation relationship of the nodes 409 and 410 whose hierarchical type belonging to the node 405 is a cell needs to be determined respectively. In addition, depending on the specific calculation relationship, the cell corresponding to node 408 is calculated from the row corresponding to node 402 does not necessarily mean that the cell corresponding to node 408 is calculated from each cell in the row corresponding to node 402 get. For example, if the calculation formula of row A including three cells is equal to the value of row B including three cells, it can be determined that the first cell in row A is calculated by the first cell in row B Instead of calculating from each cell in row B. Through step S520, the calculation relationship between nodes that may have a higher hierarchical type than the cell can be decomposed into the calculation relationship of nodes whose hierarchical type is the cell among the descendants of the node. As for the calculation relationship between the cell corresponding to node 407 and the cell corresponding to node 410 determined in step S510, since the level type of nodes 407 and 410 is already a cell, this step S520 actually Can be omitted.
方法500前进到步骤S530,在步骤S530处,建立如下依赖关系:与该第一单元格对应的第一节点及该第一节点的所有祖先节点依赖于与第一组第二单元格各自对应的第一组第二节点及第一组第二节点的所有祖先节点。参考图4B,例如,对于节点408,在步骤S520处已经确定与节点408对应的单元格由与节点406对应的单元格和与节点407对应的单元格计算得到。从而可以建立如下依赖关系:节点408以及节点408的所有祖先节点中不是节点406祖先节点的节点依赖于节点406和节点406的所有祖先节点中不是节点408的祖先节点的节点,节点408以及节点408的所有祖先节点中不是节点407祖先节点的节点依赖于节点407和节点407的所有祖先节点中不是节点408的祖先节点的节点。图4B示出了对于图4A所示的层级结构所构建的依赖关系。注意,为了图示清楚,在图4B中省略了节点408及其祖先节点与节点407及其祖先节点之间的依赖关系。即,可以建立如下依赖关系:依赖关系431,指示节点408依赖于节点406;依赖关系432,指示节点404依赖于节点406;依赖关系433,指示节点403依赖于节点406;依赖关系434,指示节点408依赖于节点402;依赖关系435,指示节点404依赖于节点402;依赖关系436,指示节点403依赖于节点402。又例如,对于节点407,在步骤S520处已经确定与节点407对应的单元格由与节点410对应的单元格计算得到。从而可以建立如下依赖关系:节点407以及节点407的所有祖先节点中不是节点410祖先节点的节点依赖于节点410和节点410的所有祖先节点中不是节点407祖先节点的节点。即,可以建立如下依赖关系:依赖关系442,指示节点407依赖于节点410;依赖关系443,指示节点407依 赖于节点405;依赖关系445,指示节点407依赖于节点403;依赖关系441,指示节点402依赖于节点410;依赖关系444,指示节点402依赖于节点405;依赖关系446,指示节点402依赖于节点403。The method 500 proceeds to step S530. At step S530, the following dependency relationship is established: the first node corresponding to the first cell and all ancestor nodes of the first node depend on the respective corresponding to the first group of second cells The first group of second nodes and all the ancestor nodes of the first group of second nodes. Referring to FIG. 4B, for example, for the node 408, it has been determined at step S520 that the cell corresponding to the node 408 is calculated from the cell corresponding to the node 406 and the cell corresponding to the node 407. Thus, the following dependency relationship can be established: node 408 and all ancestor nodes of node 408 that are not ancestor nodes of node 406 depend on nodes that are not ancestor nodes of node 408 among all ancestor nodes of node 406 and node 406, node 408 and node 408 Nodes that are not the ancestors of node 407 among all ancestor nodes of, depend on nodes that are not the ancestors of node 408 among all ancestor nodes of node 407 and node 407. FIG. 4B shows the dependency relationship constructed for the hierarchical structure shown in FIG. 4A. Note that, for clarity of illustration, the dependency relationship between the node 408 and its ancestors and the node 407 and its ancestors is omitted in FIG. 4B. That is, the following dependencies can be established: dependency 431, indicating that node 408 depends on node 406; dependency 432, indicating that node 404 depends on node 406; dependency 433, indicating that node 403 depends on node 406; dependency 434, indicating node 408 depends on the node 402; a dependency 435 indicates that the node 404 depends on the node 402; a dependency 436 indicates that the node 403 depends on the node 402. For another example, for the node 407, it has been determined at step S520 that the cell corresponding to the node 407 is calculated from the cell corresponding to the node 410. Thus, the following dependency relationship can be established: Node 407 and all ancestor nodes of node 407 that are not the ancestor nodes of node 410 depend on nodes 410 and all ancestor nodes of node 410 that are not ancestor nodes of node 407. That is, the following dependencies can be established: dependency 442, indicating that node 407 depends on node 410; dependency 443, indicating that node 407 depends on node 405; dependency 445, indicating that node 407 depends on node 403; dependency 441, indicating node 402 depends on node 410; dependency 444 indicates that node 402 depends on node 405; and dependency 446 indicates that node 402 depends on node 403.
图6是示出根据本公开的一些实施例的示例性的电子表格层级结构中的节点600的示意图。应理解,节点600可以是图4A-图4B中的层级结构中的任意一个节点。根据本公开示例性实施例的存储如图4A-4B所示的层级结构中的节点信息的数据结构可以被称为层级图(hierarchy graph)。应理解,图4A和图4B所示的树状的层级结构仅仅为了方便理解,并不意图限制层级结构的存储方式。可以利用任意合适的数据结构来存储层级图,例如,链表、有向图等。FIG. 6 is a schematic diagram illustrating a node 600 in an exemplary spreadsheet hierarchy structure according to some embodiments of the present disclosure. It should be understood that the node 600 may be any node in the hierarchical structure in FIGS. 4A-4B. The data structure storing node information in the hierarchical structure as shown in FIGS. 4A-4B according to an exemplary embodiment of the present disclosure may be referred to as a hierarchy graph. It should be understood that the tree-like hierarchical structure shown in FIG. 4A and FIG. 4B is only for the convenience of understanding, and is not intended to limit the storage manner of the hierarchical structure. Any suitable data structure can be used to store the hierarchical graph, for example, a linked list, a directed graph, and so on.
根据一个实施例,可以针对每个节点存储该节点所在层级的层级类型602、该节点的子节点604和该节点的元数据606。参考图4B,例如对于节点404,可以存储节点404所在层级的层级类型为行,节点404的子节点为节点408(例如,可以存储子节点的编号列表或者存储指向子节点的指针列表等),并且可以存储节点404的元数据(例如,与节点404对应的行的行标签、与节点404对应的单元格在电子表格中的位置等等)。上文已经参考图3描述了节点的元数据,在此不再赘述。According to an embodiment, the hierarchy type 602 of the hierarchy of the node, the child nodes 604 of the node, and the metadata 606 of the node may be stored for each node. Referring to FIG. 4B, for example, for node 404, the hierarchy type of node 404 can be stored as row, and the child node of node 404 is node 408 (for example, a list of numbers of child nodes or a list of pointers to child nodes can be stored), And the metadata of the node 404 (for example, the row label of the row corresponding to the node 404, the position of the cell corresponding to the node 404 in the electronic table, etc.) can be stored. The metadata of the node has been described above with reference to FIG. 3, and will not be repeated here.
根据一个实施例,还可以可选地针对每个节点存储该节点所依赖的节点608(例如,可以存储所依赖的节点的编号或者存储指向所依赖的节点的指针等)。参考图4B,例如对于节点404,可以存储节点404所依赖的节点包括节点402和节点406。应注意,存储每个节点所依赖的节点不是必须的,可以在生成电子表格的层级的可视化表示之前实时地确定每个节点所依赖的节点,而不进行存储。According to an embodiment, the node 608 on which the node depends may be optionally stored for each node (for example, the number of the dependent node may be stored or a pointer to the dependent node may be stored, etc.). Referring to FIG. 4B, for the node 404, for example, the nodes on which the node 404 depends can be stored, including the node 402 and the node 406. It should be noted that it is not necessary to store the nodes that each node depends on, and the nodes that each node depends on can be determined in real time before generating the visual representation of the hierarchy of the spreadsheet, without storing.
下面描述根据本公开的实施例的生成电子表格的层级的可视化的方法。The following describes a method for generating a visualization of the hierarchy of an electronic form according to an embodiment of the present disclosure.
图7A-图7C示出了根据本公开的一些实施例的示例性的电子表格的层级的可视化表示。为了清楚起见,未示出与这些可视化表示对应的电子表格。在图7A的可视化表示700A中,显示了层级结构中的所在层级的层级类型为页的所有节点及所在层级的层级类型为页的所有节点之间的依赖关系。根据一个实施例,图7A的可视化表示700A可以是响应于接收到可视化层级类型为页的所有节点的请求而显示的。例如,该请求可以是对指示可视化层级类型为页的所有节点的图标(例如,文字、按钮或图形等)的选择(例如,单击、双击、轻扫、长按(对于具有触敏表面的显示设备而言)等)。如图7A所示,可视化表示700A包括节点701-707以及表示它们之间的依赖关系的箭头,并且节点701-707的语义信息(例如,页的名称)也被显示在 相应的节点上。在可视化表示700A中,用不同的填充图案来表示属于电子表格中的不同页的节点,并且节点701-707都用六边形来表示,从而指示这些节点都具有相同的层级类型(即,页)。应理解,可视化表示700A仅仅是示例性的,还可以用其他不同的显示格式(例如,填充颜色、节点形状、节点大小等)来表示属于电子表格中的不同页的节点,以及用相同的其他节点格式(例如,填充颜色、填充图案、节点大小等)来表示这些节点属于同一层级。由此,这种电子表格的层级的可视化表示可以清楚、直观地向用户呈现出电子表格中包括哪些页、这些页的含义以及这些页之间的依赖关系。7A-7C show a visual representation of the hierarchy of an exemplary electronic form according to some embodiments of the present disclosure. For the sake of clarity, the spreadsheets corresponding to these visual representations are not shown. In the visual representation 700A of FIG. 7A, the dependency relationship between all nodes whose hierarchical type is page and all nodes whose hierarchical type is page in the hierarchical structure is displayed. According to one embodiment, the visual representation 700A of FIG. 7A may be displayed in response to receiving a request for all nodes whose visualized hierarchy type is a page. For example, the request may be a selection (for example, single-click, double-click, swipe, long-press (for example, click, double-click, swipe, long press, In terms of display devices), etc.). As shown in FIG. 7A, the visual representation 700A includes nodes 701-707 and arrows indicating the dependency relationship between them, and the semantic information of the nodes 701-707 (for example, the name of the page) is also displayed on the corresponding node. In the visual representation 700A, different filling patterns are used to represent nodes belonging to different pages in the spreadsheet, and nodes 701-707 are all represented by hexagons, indicating that these nodes have the same level type (ie, page ). It should be understood that the visual representation 700A is only exemplary, and other different display formats (for example, fill color, node shape, node size, etc.) may be used to represent nodes belonging to different pages in the spreadsheet, and the same other display formats may be used. Node format (for example, fill color, fill pattern, node size, etc.) to indicate that these nodes belong to the same level. Thus, the visual representation of the hierarchy of the electronic form can clearly and intuitively present to the user which pages are included in the electronic form, the meaning of these pages, and the dependencies between these pages.
根据一个实施例,如图7B所示,响应于接收到选中可视化表示700A中的节点701的输入,可以强调显示所选中的节点701以及与节点701有依赖关系的节点702-705。选中可视化表示700A中的节点701的输入可以是单击节点701的输入、双击节点701的输入或者对指示强调显示节点701的图标(例如,文字、图形、按钮等)的选中。如图7B所示,对所选中的节点701的字体颜色和填充颜色进行反色处理,并且与所选中的节点701没有依赖关系的节点706和707被淡化。应理解,这仅仅是强调显示所选中的节点701以及与节点701有依赖关系的节点702-705的方式的一种示例,还可以采用任何其他合适的方式来进行强调显示,例如,放大要强调显示的节点、向要强调显示的节点添加预定义的背景颜色等等。由此,可视化表示700B可以有助于用户更清楚地观察自己感兴趣的电子表格的页,而避免受到用户不感兴趣的信息的干扰。这在电子表格的规模较大时尤其是有利的。According to one embodiment, as shown in FIG. 7B, in response to receiving an input of selecting the node 701 in the visual representation 700A, the selected node 701 and the nodes 702-705 that have a dependency relationship with the node 701 may be highlighted. The input of selecting the node 701 in the visual representation 700A may be the input of clicking the node 701, the input of double-clicking the node 701, or the selection of an icon (for example, text, graph, button, etc.) indicating that the node 701 is emphasized. As shown in FIG. 7B, the font color and fill color of the selected node 701 are inverted, and the nodes 706 and 707 that have no dependency relationship with the selected node 701 are faded. It should be understood that this is only an example of the way of highlighting the selected node 701 and the nodes 702-705 that have a dependency relationship with the node 701, and any other suitable way can also be used for highlighting, for example, zooming in to emphasize Display nodes, add a predefined background color to the nodes to be highlighted, and so on. In this way, the visual representation 700B can help the user to more clearly observe the pages of the spreadsheet that he is interested in, and avoid interference from information that the user is not interested in. This is especially advantageous when the scale of the spreadsheet is large.
根据一个实施例,图7A的可视化表示700A中的节点可以被逐级展开至其子孙节点(即,层级类型更低的节点)。图7C示出了展开节点701后的可视化表示700C。可视化表示700C可以是响应于接收到展开可视化表示700A或700B中的节点701的输入而显示的。展开节点701的输入可以是单击节点701的输入、双击节点701的输入或者对指示展开节点701的图标(例如,文字、图形、选中节点701后弹出的菜单中的选项等)的选中等。如图7C所示,节点701被展开为它的子节点711和712,节点711和712用矩形示出,以表示它们的层级类型不同于节点701-707。例如,节点711和712的层级类型可以是表。还在可视化表示700C中显示了节点711和节点712的语义信息“2014年盈利预测”和“2015年盈利预测”,它们例如是分别与节点711和712对应的表的标题。此外,节点701与其他节点之间的依赖关系也被替换为节点711和712与其他节点之间的依赖关系。还可以显示节点711与节 点712之间的依赖关系,例如图7C中节点711和712之间的箭头可以表示节点712依赖于节点711。应理解,虽然在图7C中示出了将层级类型为页的节点701展开至它的两个子节点——表节点711和712,但是本发明不限于此,还可以响应于接收到展开可视化表示700A或700B中的节点701的输入而显示节点701的其他层级的子孙节点,例如层级类型为行的子孙节点以及这些子孙节点与其他层级类型为页的节点之间的依赖关系等。According to one embodiment, the visual representation of FIG. 7A shows that the nodes in 700A can be expanded level by level to their descendant nodes (ie, nodes with lower level types). FIG. 7C shows the visual representation 700C after the node 701 is expanded. The visual representation 700C may be displayed in response to receiving an input to expand the node 701 in the visual representation 700A or 700B. The input of expanding node 701 may be input of single-clicking node 701, input of double-clicking node 701, or selection of an icon indicating expansion of node 701 (for example, text, graphics, options in a pop-up menu after node 701 is selected, etc.). As shown in FIG. 7C, the node 701 is expanded into its child nodes 711 and 712, and the nodes 711 and 712 are shown with rectangles to indicate that their hierarchical types are different from the nodes 701-707. For example, the hierarchical type of nodes 711 and 712 may be a table. The semantic information "2014 profit forecast" and "2015 profit forecast" of the node 711 and the node 712 are also displayed in the visual representation 700C, which are, for example, the titles of the tables corresponding to the nodes 711 and 712, respectively. In addition, the dependency relationship between the node 701 and other nodes is also replaced with the dependency relationship between the nodes 711 and 712 and other nodes. The dependency relationship between the node 711 and the node 712 can also be displayed. For example, the arrow between the nodes 711 and 712 in FIG. 7C can indicate that the node 712 depends on the node 711. It should be understood that although FIG. 7C shows that the node 701 whose level type is page is expanded to its two child nodes- table nodes 711 and 712, the present invention is not limited to this, and may also respond to receiving the expanded visual representation The input of node 701 in 700A or 700B displays other hierarchical descendant nodes of node 701, such as descendant nodes whose hierarchical type is row and the dependency relationship between these descendant nodes and other nodes whose hierarchical type is page.
根据一个实施例,还可以响应于接收到收起电子表格的层级的可视化表示700C中的节点711或712的输入而显示可视化表示700A。例如,收起节点711的输入可以是单击节点711的输入、双击节点711的输入或者对指示收起节点711的图标(例如,文字、图形、选中节点711后弹出的菜单中的选项等)的选中等。具体而言,可视化表示700C可以被更新以隐藏节点711和712、节点711和712与其他节点702-707之间的依赖关系以及节点711和712之间的依赖关系,并显示节点711和712的父节点701以及节点701与其他节点702-707之间的依赖关系。由此,在按层级展开可视化表示700A中的节点之后,还可以按层级收起展开后的子孙节点,从而方便用户根据自己的需要查看任何层级的信息。According to one embodiment, the visual representation 700A may also be displayed in response to receiving an input of the node 711 or 712 in the visual representation 700C of the hierarchy of the collapsed spreadsheet. For example, the input of retracting node 711 may be the input of single-clicking node 711, the input of double-clicking node 711, or the icon indicating to retract node 711 (for example, text, graphics, options in the menu that pops up after node 711 is selected) The selection and so on. Specifically, the visual representation 700C can be updated to hide the dependencies between nodes 711 and 712, the dependencies between nodes 711 and 712 and other nodes 702-707, and the dependencies between nodes 711 and 712, and display the status of nodes 711 and 712 The parent node 701 and the dependency relationship between the node 701 and other nodes 702-707. Therefore, after the nodes in the visual representation 700A are expanded by level, the expanded descendant nodes can also be collapsed by level, so that users can view information at any level according to their needs.
图8A-图8C示出了根据本公开的一些实施例的示例性的电子表格的层级的可视化表示。为了清楚起见,未示出与这些可视化表示对应的电子表格。在图8A的可视化表示800A中,显示了层级结构中的所在层级的层级类型为页的节点801、节点801所依赖的与层级结构中的其他页节点的部分子孙节点(或全部子孙节点)对应的第一组节点811-814以及依赖于节点801的与层级结构中的其他页节点的部分子孙节点(或全部子孙节点)对应的第二组节点821-826,还用箭头显示了节点801与第一组节点811-814和第二组节点821-826之间的依赖关系。根据一个实施例,图8A的可视化表示800A可以是响应于接收到可视化与电子表格中的一个页对应的节点801的请求而显示的。例如,该请求可以是对指示可视化层级类型为页的节点801的图标(例如,文字、按钮或图形等)的选择(例如,单击、双击、轻扫、长按(对于具有触敏表面的显示设备而言)等)或者可以是可视化图7A所示的可视化表示700A中的节点701的输入(例如,单击、双击等)。如图8A所示,在可视化表示800A中,节点801、811-814和821-826的语义信息(例如,页的名称、行或列的标签等)也被显示在相应的节点上。例如,节点811-814和821-826可以是比页的层级低的任何层级的节点,例如它们的层级类型可以是节、表、行、列等。在图8A中 为了清楚起见,用相同的格式显示了节点801、811-814和821-826,但是应当理解在可视化表示800A中可以用不同的显示格式(例如,填充颜色、填充图案、节点形状、节点大小等)来表示属于电子表格中的不同的页的节点,以及用不同的节点显示格式(例如,填充颜色、填充图案、节点形状、节点大小等)来表示节点的不同的层级类型。8A-8C show a visual representation of the hierarchy of an exemplary electronic form according to some embodiments of the present disclosure. For the sake of clarity, the spreadsheets corresponding to these visual representations are not shown. In the visual representation 800A of FIG. 8A, the node 801 whose hierarchy type is page is displayed in the hierarchical structure, and the node 801 depends on some descendant nodes (or all descendant nodes) of other page nodes in the hierarchical structure. The first group of nodes 811-814 and the second group of nodes 821-826 that correspond to some descendent nodes (or all descendant nodes) of other page nodes in the hierarchical structure that depend on node 801, and arrows show that node 801 and The dependencies between the first group of nodes 811-814 and the second group of nodes 821-826. According to one embodiment, the visual representation 800A of FIG. 8A may be displayed in response to receiving a request to visualize the node 801 corresponding to a page in the spreadsheet. For example, the request may be a selection (for example, single-click, double-click, swipe, long-press (for example, click, double-click, swipe, long press, In terms of a display device), etc.) or it may be an input (for example, a single click, a double click, etc.) of the node 701 in the visual representation 700A shown in FIG. 7A. As shown in FIG. 8A, in the visual representation 800A, the semantic information of the nodes 801, 811-814, and 821-826 (for example, the name of the page, the label of the row or the column, etc.) is also displayed on the corresponding node. For example, the nodes 811-814 and 821-826 may be nodes of any level lower than the level of the page, for example, their level type may be section, table, row, column, and so on. In Figure 8A for clarity, the nodes 801, 811-814, and 821-826 are displayed in the same format, but it should be understood that different display formats (e.g., fill color, fill pattern, node shape, etc.) can be used in the visual representation 800A. , Node size, etc.) to represent nodes belonging to different pages in the spreadsheet, and different node display formats (for example, fill color, fill pattern, node shape, node size, etc.) to represent different hierarchical types of nodes.
在一个实施例中,响应于确定节点801所依赖的与电子表格中的其他页节点的部分子孙节点对应的第一组节点的数量超过第一阈值(例如,10、20等),可以隐藏或折叠第一组节点中的部分节点,从而使第一组节点中所显示的节点不超过第一阈值;以及响应于确定依赖于节点801的与电子表格中的其他页节点的部分子孙节点对应的第二组节点的数量超过第二阈值(例如,10、20等),可以隐藏或折叠第二组节点中的部分节点,从而使第二组节点中所显示的节点不超过第二阈值。可以基于任何合适的准则来选择要隐藏或折叠的节点。例如,被隐藏或折叠的节点可以是依赖关系较少的节点、在电子表格中位置靠后的节点、所对应的单元格的数目较少的节点等等。由此,尤其是在电子表格规模较大、依赖关系较为复杂的情况下,能够简化可视化表示,隐藏可能不太重要的信息。In one embodiment, in response to determining that the number of nodes in the first group corresponding to some descendant nodes of other page nodes in the spreadsheet on which the node 801 depends exceeds a first threshold (for example, 10, 20, etc.), it may be hidden or Collapse part of the nodes in the first group of nodes so that the nodes displayed in the first group of nodes do not exceed the first threshold; and in response to determining that the nodes that depend on node 801 correspond to some descendant nodes of other page nodes in the spreadsheet If the number of nodes in the second group exceeds the second threshold (for example, 10, 20, etc.), some nodes in the second group of nodes can be hidden or collapsed, so that the displayed nodes in the second group of nodes do not exceed the second threshold. The nodes to be hidden or collapsed can be selected based on any suitable criteria. For example, nodes that are hidden or collapsed may be nodes with fewer dependencies, nodes with a lower position in the spreadsheet, nodes with a smaller number of corresponding cells, and so on. As a result, especially when the scale of the spreadsheet is large and the dependencies are relatively complex, the visual representation can be simplified, and information that may not be important can be hidden.
在节点801中显示了三角形851,以指示该节点801可以被进一步展开至其子孙节点(即,层级类型更低的节点)。三角形851是示例性的,还可以使用其他任何合适的文字、图形、图标、按钮等来向用户指示可以进一步展开节点801。A triangle 851 is displayed in the node 801 to indicate that the node 801 can be further expanded to its descendant nodes (ie, nodes with lower hierarchical types). The triangle 851 is exemplary, and any other suitable text, graphics, icons, buttons, etc. can also be used to indicate to the user that the node 801 can be further expanded.
图8B示出了展开节点801后的可视化表示800B。可视化表示800B可以是响应于接收到展开可视化表示800A中的节点801的输入而显示的。展开节点801的输入可以是单击节点801的输入、双击节点801的输入或者对指示展开节点801的图标(例如,文字、诸如图8A中的三角形851之类的图形、选中节点801后弹出的菜单中的选项等)的选中等。如图8B所示,节点801被展开为它的子节点831和832。例如,节点831和832的层级类型可以是表(或节)。还可以在可视化表示800B中显示节点831和节点832的语义信息“2014年盈利预测”和“2015年盈利预测”,它们例如是分别与节点831和832对应的表的标题。此外,节点801与其他节点之间的依赖关系也被替换为节点831和832与其他节点之间的依赖关系。还可以显示节点831和832之间的依赖关系,例如,可视化表示800B中可以包括从节点831指向节点832的箭头以表示节点832依赖于节点831。应理解,虽然在图8B中示出了将层级类型为页的节点801展开至它的两个子节点——表节点831和832,但是本发 明不限于此,还可以响应于接收到展开可视化表示800A中的节点801的输入而显示节点801的其他层级的子孙节点,例如层级类型为行的子孙节点以及这些子孙节点与其他节点之间的依赖关系等。应注意,在可视化表示800B中,三角形851的形状可以相对于图8A被旋转,以指示节点801已经被展开。根据一个实施例,以使得节点831和832在可视化表示800B中的相对位置与分别和节点831、832对应的一个或多个单元格(表)在电子表格中的相对位置一致的方式来显示节点831和832。例如,在电子表格中与节点831对应的表在与节点832对应的表的上方,因此可以在可视化表示800B中将节点831显示在节点832的上方。应理解,还可以将节点831显示在节点832的左方或左上方等。FIG. 8B shows the visual representation 800B after the node 801 is expanded. The visual representation 800B may be displayed in response to receiving an input to expand the node 801 in the visual representation 800A. The input of the expanded node 801 can be the input of clicking the node 801, the input of double-clicking the node 801, or the icon indicating the expansion of the node 801 (for example, text, a graphic such as the triangle 851 in FIG. 8A, and the pop-up after selecting the node 801 Selection of options in the menu, etc.). As shown in FIG. 8B, the node 801 is expanded into its child nodes 831 and 832. For example, the hierarchical type of the nodes 831 and 832 may be a table (or section). It is also possible to display the semantic information "2014 profit forecast" and "2015 profit forecast" of the node 831 and the node 832 in the visual representation 800B, which are, for example, the titles of the tables corresponding to the nodes 831 and 832, respectively. In addition, the dependency relationship between the node 801 and other nodes is also replaced with the dependency relationship between the nodes 831 and 832 and other nodes. The dependency relationship between the nodes 831 and 832 may also be displayed. For example, the visual representation 800B may include an arrow pointing from the node 831 to the node 832 to indicate that the node 832 depends on the node 831. It should be understood that although FIG. 8B shows that the node 801 whose level type is page is expanded to its two child nodes- table nodes 831 and 832, the present invention is not limited to this, and may also respond to receiving expanded visual representation The input of node 801 in 800A displays the descendant nodes of other levels of node 801, such as descendant nodes whose level type is row and the dependency relationship between these descendant nodes and other nodes. It should be noted that in the visual representation 800B, the shape of the triangle 851 can be rotated relative to FIG. 8A to indicate that the node 801 has been expanded. According to one embodiment, the nodes are displayed in such a way that the relative positions of the nodes 831 and 832 in the visual representation 800B are consistent with the relative positions of one or more cells (tables) corresponding to the nodes 831 and 832 in the spreadsheet. 831 and 832. For example, the table corresponding to the node 831 in the spreadsheet is above the table corresponding to the node 832, so the node 831 can be displayed above the node 832 in the visual representation 800B. It should be understood that the node 831 may also be displayed on the left or upper left of the node 832, and so on.
根据一个实施例,还可以响应于接收到收起电子表格的层级的可视化表示800B中的节点801的输入而显示可视化表示800A。例如,收起节点801的输入可以是单击节点801的输入、双击节点801的输入或者对指示收起节点801的图标(例如,文字、诸如三角形851之类的图形、选中节点801后弹出的菜单中的选项等)的选中等。具体而言,响应于确定节点801所在层级的层级类型不是单元格,可视化表示800B被更新以隐藏节点831和832及这两个节点之间的依赖关系、与节点831和832有依赖关系的其他节点811-814、821-826以及节点831和832与其他节点811-814、821-826之间的依赖关系,并显示节点831和832的父节点801、与节点801有依赖关系的其他节点811-814、821-826以及节点801与其他节点811-814、821-826之间的依赖关系。应理解,虽然此处示出的与节点801有依赖关系的其他节点以及与节点831、832有依赖关系的其他节点都是节点811-814、821-826,但是它们可以是不同的。例如,如果与节点801有依赖关系的其他节点以及与节点831、832有依赖关系的其他节点的数目超过了上文所述的第一阈值或第二阈值,可以隐藏或折叠部分节点,而在仅显示节点801的情况下,被隐藏或折叠的节点可能与在显示节点831和832的情况下有所不同,从而使得在可视化表示800A中示出的与节点801有依赖关系的其他节点可能与在可视化表示800B中示出的与节点831、832有依赖关系的其他节点不同。According to one embodiment, the visual representation 800A may also be displayed in response to receiving an input of the node 801 in the visual representation 800B of the hierarchy of the collapsed spreadsheet. For example, the input to collapse the node 801 may be the input of clicking the node 801, the input of double-clicking the node 801, or the icon indicating the collapse of the node 801 (for example, text, a graphic such as a triangle 851, or a pop-up after the node 801 is selected). Selection of options in the menu, etc.). Specifically, in response to determining that the level type of node 801 is not a cell, the visual representation 800B is updated to hide nodes 831 and 832 and the dependency relationship between these two nodes, and other nodes that have a dependency relationship with nodes 831 and 832. Nodes 811-814, 821-826 and the dependencies between nodes 831 and 832 and other nodes 811-814, 821-826, and display the parent node 801 of nodes 831 and 832, and other nodes 811 that have a dependency relationship with node 801 -814, 821-826 and the dependency relationship between node 801 and other nodes 811-814, 821-826. It should be understood that although other nodes that have a dependency relationship with node 801 and other nodes that have a dependency relationship with nodes 831 and 832 shown here are nodes 811-814 and 821-826, they may be different. For example, if the number of other nodes that are dependent on node 801 and other nodes that are dependent on nodes 831 and 832 exceeds the first threshold or second threshold described above, some nodes can be hidden or collapsed. In the case of displaying only the node 801, the hidden or collapsed nodes may be different from the case of displaying the nodes 831 and 832, so that other nodes shown in the visual representation 800A that are dependent on the node 801 may be different from those in the case of displaying nodes 831 and 832. The other nodes shown in the visual representation 800B that have a dependency relationship with the nodes 831 and 832 are different.
如图8B所示,在节点831中同样显示了三角形,以指示该节点831可以被进一步展开至其子孙节点(即,层级类型更低的节点)。As shown in FIG. 8B, a triangle is also displayed in the node 831 to indicate that the node 831 can be further expanded to its descendant nodes (ie, nodes with lower hierarchical types).
图8C示出了展开节点831后的可视化表示800C。可视化表示800C可以是响应于接收到展开可视化表示800B中的节点831的输入而显示的。展开节点831的输入 可以是单击节点831的输入、双击节点831的输入或者对指示展开节点831的图标(例如,文字、诸如节点831中的三角形之类的图形、选中节点831后弹出的菜单中的选项等)的选中等。如图8C所示,节点831被展开为它的子节点。例如,这些子节点的层级类型可以是行(或列)。还可以在可视化表示800C中显示这些子节点的语义信息“担保费收入”、“利息及手续费净收入”、“营业收入小计”、“营业支出小计”、“营业利润”和“利润总额”,它们例如是分别与这些子节点对应的行的行标签。此外,节点831与其他节点之间的依赖关系也被替换为这些子节点与其他节点之间的依赖关系。同时,可以显示这些子节点内部的依赖关系,例如,可视化表示800C中可以包括从“营业收入小计”、“营业支出小计”指向“营业利润”的箭头,以表示营业利润依赖于“营业收入小计”、“营业支出小计”。此外,可视化表示800C中还可以包括从“担保费收入”指向“2015年盈利预测”832的箭头,以表示2015年盈利预测依赖于2014年盈利预测中的担保费收入。应理解,虽然在图8C中示出了将层级类型为表的节点831展开至它的六个层级类型为行的子节点,但是本发明不限于此,还可以响应于接收到展开可视化表示800B中的节点831的输入而显示节点831的其他层级的子孙节点,例如层级类型为单元格或块的子孙节点以及这些子孙节点与其他节点之间的依赖关系等。根据一个实施例,以使得节点831的所显示的子孙节点在可视化表示800C中的相对位置与分别和节点831的子孙节点中的每个子孙节点对应的一个或多个单元格(行)在电子表格中的相对位置一致的方式来显示这些子孙节点。FIG. 8C shows the visual representation 800C after the node 831 is expanded. The visual representation 800C may be displayed in response to receiving an input to expand the node 831 in the visual representation 800B. The input to expand the node 831 can be the input of clicking the node 831, the input of double-clicking the node 831, or an icon indicating the expansion of the node 831 (for example, text, a graphic such as a triangle in the node 831, a menu that pops up after the node 831 is selected). The selection of options in), etc.). As shown in FIG. 8C, the node 831 is expanded into its child nodes. For example, the level type of these child nodes may be rows (or columns). The semantic information "guarantee fee income", "interest and fee net income", "operating income subtotal", "operating expenditure subtotal", "operating profit" and "profit" of these sub-nodes can also be displayed in the visual representation 800C. "Total", which are, for example, the row labels of the rows corresponding to these child nodes. In addition, the dependency relationship between the node 831 and other nodes is also replaced with the dependency relationship between these child nodes and other nodes. At the same time, the internal dependencies of these sub-nodes can be displayed. For example, the visual representation 800C can include arrows from "operating income subtotal" and "operating expenditure subtotal" to "operating profit" to indicate that operating profit depends on "operating "Income subtotal" and "operating expenditure subtotal". In addition, the visual representation 800C can also include an arrow from "guarantee fee income" to "2015 profit forecast" 832, to indicate that the 2015 profit forecast depends on the guarantee fee income in the 2014 profit forecast. It should be understood that although FIG. 8C shows that the node 831 whose level type is a table is expanded to its six child nodes whose level type is a row, the present invention is not limited to this, and may also respond to receiving the expanded visual representation 800B The input of the node 831 in the node 831 displays the descendant nodes of other levels of the node 831, such as the descendant nodes of the cell or block as the level type, and the dependency relationship between these descendant nodes and other nodes. According to one embodiment, so that the relative position of the displayed descendant nodes of node 831 in the visual representation 800C corresponds to one or more cells (rows) corresponding to each of the descendant nodes of node 831 respectively. The relative positions in the table are displayed in a consistent manner to display these descendant nodes.
根据一个实施例,还可以响应于接收到收起电子表格的层级的可视化表示800C中的节点831的输入而显示可视化表示800B。这个过程与上文参考图8B描述的收起节点801的过程类似,在此不再赘述。应理解,在可视化表示800C中还可以显示节点831的子节点之间的依赖关系,并且响应于接收到收起可视化表示800C中的节点831的输入,还可以隐藏这些子节点之间的依赖关系。According to one embodiment, the visual representation 800B may also be displayed in response to receiving an input of the node 831 in the visual representation 800C of the hierarchy of the collapsed spreadsheet. This process is similar to the process of retracting the node 801 described above with reference to FIG. 8B, and will not be repeated here. It should be understood that the dependency relationship between the child nodes of the node 831 can also be displayed in the visual representation 800C, and in response to receiving an input to collapse the node 831 in the visual representation 800C, the dependency relationship between these child nodes can also be hidden .
图9示出了根据本公开的一些实施例的示例性的电子表格的层级的可视化表示。在图9的可视化表示900中,显示了层级结构中的所在层级的层级类型为页的节点901和902、与节点901有依赖关系的与层级结构中的其他页节点的部分子孙节点(或全部子孙节点)对应的第三组节点921-926以及与节点902有依赖关系的与层级结构中的其他页节点的部分子孙节点(或全部子孙节点)对应的第四组节点911-913,还用箭头显示了节点901与第三组节点921-926之间的依赖关系以及节点902 与第四组节点911-913之间的依赖关系,还可以显示节点901和902之间的依赖关系或者节点901和902各自的子节点内部或者之间的依赖关系。根据一个实施例,图9的可视化表示900可以是响应于接收到可视化与电子表格中的第一页对应的节点901和与第二页对应的节点902的请求而显示的。例如,该请求可以是对指示可视化节点901和902的图标(例如,文字、按钮或图形等)的选择(例如,单击、双击、轻扫、长按(对于具有触敏表面的显示设备而言)等)或者可以是可视化图7A所示的可视化表示700A中的节点701和703的输入(例如,对这两个节点的同时选中等)。如图9所示,在可视化表示900中,节点901-902、911-913和921-926的语义信息也被显示在相应的节点上。例如,节点911-913和921-926可以是比页的层级低的任何层级的节点,例如它们的层级类型可以是节、表、行、列等。在图9中为了清楚起见,用相同的格式显示了节点901-902、911-913和921-926,但是应当理解在可视化表示900中可以用不同的显示格式(例如,填充颜色、填充图案、节点形状、节点大小等)来表示属于电子表格中的不同的页的节点,以及用不同的节点显示格式(例如,填充颜色、填充图案、节点形状、节点大小等)来表示节点的不同的层级类型。应注意,虽然图9中示出了节点901所依赖的一个节点921,但是还可以显示节点901所依赖的其他节点、或依赖于节点901的其他节点。另外,虽然为了清楚起见,图9中仅示出了依赖于节点902的节点901,但是还可以显示依赖于节点902的或节点902所依赖的其他层级类型为页的节点和/或其子孙节点。可视化表示900还可以显示节点901的(部分或全部)子孙节点、节点902的(部分或全部)子孙节点以及节点901的子孙节点与节点902的子孙节点之间的依赖关系。例如,可视化表示900可以包括从节点902的子孙节点“合计”到节点901的子孙节点“营业收入小计”的箭头,以表示节点“营业收入小计”依赖于节点“合计”。应理解,虽然图9中显示了节点901的子节点931、932和节点931的子节点以及节点902的子节点941、942和节点941的子节点,但是这并不是必须的。根据一个实施例,可以响应于接收到可视化节点901和节点902的请求而仅显示节点901和902及其与其他节点的依赖关系,而不显示节点901和902的子孙节点。然后响应于接收到展开节点901和902的请求再显示节点931-932、941-942,接下来响应于接收到展开节点931的请求显示节点931的子孙节点和节点941的子孙节点。根据一个实施例,还可以响应于接收到可视化节点901和节点902的请求而直接显示可视化表示900,即,显示节点901的子节点931、932和节点931的子节点以及节点902 的子节点941、942和节点941的子节点。Figure 9 shows a visual representation of the hierarchy of an exemplary spreadsheet according to some embodiments of the present disclosure. In the visual representation 900 of FIG. 9, the nodes 901 and 902 whose hierarchical types are pages in the hierarchical structure are displayed, and some descendant nodes (or all of the children and grandchildren) of other page nodes in the hierarchical structure that have a dependency relationship with the node 901 are displayed. The third group of nodes 921-926 corresponding to the descendant nodes) and the fourth group of nodes 911-913 corresponding to some descendant nodes (or all descendant nodes) of other page nodes in the hierarchy that have a dependency relationship with node 902, and also use The arrow shows the dependency relationship between node 901 and the third group of nodes 921-926 and the dependency relationship between node 902 and the fourth group of nodes 911-913. It can also show the dependency relationship between nodes 901 and 902 or node 901. Dependencies within or between the respective child nodes of and 902. According to one embodiment, the visual representation 900 of FIG. 9 may be displayed in response to receiving a request to visualize the node 901 corresponding to the first page and the node 902 corresponding to the second page in the spreadsheet. For example, the request may be a selection (e.g., single-click, double-click, swipe, long-press (for display devices with touch-sensitive surfaces) of icons (e.g., text, buttons, or graphics, etc.) indicating the visualization nodes 901 and 902 Language), etc.) or may be the input of the nodes 701 and 703 in the visual representation 700A shown in FIG. 7A (for example, simultaneous selection of these two nodes, etc.). As shown in Figure 9, in the visual representation 900, the semantic information of the nodes 901-902, 911-913, and 921-926 are also displayed on the corresponding nodes. For example, the nodes 911-913 and 921-926 may be nodes of any level lower than the level of the page, for example, their level type may be section, table, row, column, and so on. In Figure 9 for clarity, the nodes 901-902, 911-913, and 921-926 are displayed in the same format, but it should be understood that different display formats (e.g., fill color, fill pattern, Node shape, node size, etc.) to represent nodes belonging to different pages in the spreadsheet, and different node display formats (for example, fill color, fill pattern, node shape, node size, etc.) to represent different levels of nodes Types of. It should be noted that although FIG. 9 shows one node 921 on which the node 901 depends, other nodes on which the node 901 depends, or other nodes that depend on the node 901 may also be displayed. In addition, although only the node 901 that depends on the node 902 is shown in FIG. 9 for the sake of clarity, it is also possible to display nodes that depend on the node 902 or other hierarchical types that the node 902 depends on are pages and/or their descendants. . The visual representation 900 can also display the (part or all) descendant nodes of the node 901, the (part or all) descendants of the node 902, and the dependency relationship between the descendants of the node 901 and the descendants of the node 902. For example, the visual representation 900 may include an arrow from the descendant node "total" of node 902 to the descendant node "operating income subtotal" of node 901 to indicate that the node "operating income subtotal" depends on the node "total". It should be understood that although the child nodes 931 and 932 of the node 901 and the child nodes of the node 931 and the child nodes 941 and 942 of the node 902 and the child nodes of the node 941 are shown in FIG. 9, this is not necessary. According to one embodiment, in response to receiving a request from the visualization node 901 and node 902, only the nodes 901 and 902 and their dependencies with other nodes may be displayed, and the descendant nodes of the nodes 901 and 902 may not be displayed. Then, in response to receiving the request to expand the nodes 901 and 902, the nodes 931-932 and 941-942 are displayed, and then in response to the request of the expanded node 931, the descendant nodes of the node 931 and the descendant nodes of the node 941 are displayed. According to an embodiment, the visual representation 900 may also be directly displayed in response to receiving requests from the visualization node 901 and the node 902, that is, the child nodes 931 and 932 of the node 901 and the child nodes of the node 931 and the child node 941 of the node 902 are displayed. , 942 and the child node of node 941.
在一个实施例中,响应于确定与节点901有依赖关系的与电子表格中的其他页节点的部分子孙节点对应的第三组节点的数量超过一定阈值(例如,10、20等),可以隐藏或折叠第三组节点中的部分节点,从而使第三组节点中所显示的节点不超过该阈值;以及响应于确定与节点902有依赖关系的与电子表格中的其他页节点的部分子孙节点对应的第四组节点的数量超过一定阈值(例如,10、20等),可以隐藏或折叠第四组节点中的部分节点,从而使第四组节点中所显示的节点不超过该阈值。如上所述,可以基于任何合适的准则来选择要隐藏或折叠的节点。与参考图8A-图8C所描述的方式类似地,图9的可视化表示900中的各个节点也可以按层级展开或收起,在此不再赘述。应理解,可以按照与图9所示的可视化表示900类似的方式来显示电子表格中的三个或更多个页的可视化表示,本文在此不再赘述。In one embodiment, in response to determining that the number of the third group of nodes corresponding to some descendant nodes of other page nodes in the spreadsheet that has a dependency relationship with node 901 exceeds a certain threshold (for example, 10, 20, etc.), it can be hidden Or collapse part of the nodes in the third group of nodes, so that the nodes displayed in the third group of nodes do not exceed the threshold; and in response to determining that the node 902 has a dependency relationship with other page nodes in the spreadsheet, some descendant nodes If the number of the corresponding fourth group of nodes exceeds a certain threshold (for example, 10, 20, etc.), some nodes in the fourth group of nodes can be hidden or collapsed, so that the nodes displayed in the fourth group of nodes do not exceed the threshold. As mentioned above, the nodes to be hidden or collapsed can be selected based on any suitable criteria. Similar to the manner described with reference to FIGS. 8A to 8C, each node in the visual representation 900 of FIG. 9 can also be expanded or collapsed in a hierarchical manner, which will not be repeated here. It should be understood that the visual representation of three or more pages in the electronic form can be displayed in a similar manner to the visual representation 900 shown in FIG. 9, which will not be repeated here.
图10示出了根据本公开的一些实施例的示例性的电子表格的层级的可视化表示1000。在图10的可视化表示1000中,显示了层级结构中的所在层级的层级类型为行(或列)的节点1001、与该行包括的单元格对应的节点1031-1032以及与节点1031-1032中的每个节点有依赖关系的、与电子表格中的其他行中的单元格对应的第五组节点1011-1018和1021-1022,还用箭头显示了节点1031-1032与第五组节点1011-1018和1021-1022之间的依赖关系。根据一个实施例,图10的可视化表示1000可以是响应于接收到可视化与电子表格中的一个行对应的节点1001的请求而显示的。例如,该请求可以是对指示可视化节点1001的图标(例如,文字、按钮或图形等)的选择(例如,单击、双击、轻扫、长按(对于具有触敏表面的显示设备而言)等)或者可以是可视化图8C或图9所示的可视化表示中的语义信息为“营业利润”的节点的输入(例如,对该节点的单击、双击等)。如图10所示,在可视化表示1000中,节点1001、1031-1032、1011-1018和1021-1022的语义信息也被显示在相应的节点上。节点1011-1018和1021-1022可以是任何层级的节点,例如它们的层级类型可以是表、行、列、单元格等。在图10中为了清楚起见,节点1011-1018和1021-1022的层级类型都是单元格,并且用相同的格式显示了节点1001、1031-1032、1011-1018和1021-1022,但是应当理解在可视化表示1000中节点1011-1018和1021-1022也可以是其他任何层级类型,并且可以用不同的显示格式(例如,填充颜色、填充图案、节点形状、节点大小等)来表示属于电子表格中的不同的页的节点,以及用不同的节点显示格式(例如,填充颜色、填充图案、节点 形状、节点大小等)来表示节点的不同的层级类型,还可以用不同的排列位置来对不同的节点进行排版。FIG. 10 shows a visual representation 1000 of the hierarchy of an exemplary spreadsheet according to some embodiments of the present disclosure. In the visual representation 1000 of Fig. 10, the node 1001 whose level type is row (or column) in the hierarchical structure is displayed, the nodes 1031-1032 corresponding to the cells included in the row, and the nodes 1031-1032. Each node of has dependencies and corresponds to the fifth group of nodes 1011-1018 and 1021-1022 in the cells in the other rows of the spreadsheet. The arrows also show the nodes 1031-1032 and the fifth group of nodes 1011- The dependency between 1018 and 1021-1022. According to one embodiment, the visual representation 1000 of FIG. 10 may be displayed in response to receiving a request to visualize the node 1001 corresponding to a row in the spreadsheet. For example, the request may be a selection (for example, single-click, double-click, swipe, long-press (for display devices with touch-sensitive surfaces) of icons (for example, text, buttons, or graphics, etc.) indicating the visualization node 1001 Etc.) Or it may be an input to visualize a node whose semantic information is "operating profit" in the visual representation shown in FIG. 8C or FIG. 9 (for example, a single click on the node, a double click, etc.). As shown in Figure 10, in the visual representation 1000, the semantic information of the nodes 1001, 1031-1032, 1011-1018, and 1021-1022 are also displayed on the corresponding nodes. The nodes 1011-1018 and 1021-1022 can be nodes of any level, for example, their level types can be tables, rows, columns, cells, and so on. For clarity in Figure 10, the hierarchy types of nodes 1011-1018 and 1021-1022 are all cells, and the nodes 1001, 1031-1032, 1011-1018, and 1021-1022 are displayed in the same format, but it should be understood that The visual representation 1000 of nodes 1011-1018 and 1021-1022 can also be any other hierarchical type, and can use different display formats (for example, fill color, fill pattern, node shape, node size, etc.) to indicate that they belong to the spreadsheet Nodes on different pages, and use different node display formats (for example, fill color, fill pattern, node shape, node size, etc.) to represent different levels of nodes, and you can also use different arrangement positions for different nodes Typesetting.
在一个实施例中,响应于确定与节点1031和1032有依赖关系的与电子表格中的其他行中的单元格对应的第五组节点的数量超过一定阈值(例如,10、20等),可以隐藏或折叠第五组节点中的部分节点,从而使第五组节点中所显示的节点不超过该阈值。如上所述,可以基于任何合适的准则来选择要隐藏或折叠的节点。与参考图8A-图8C所描述的方式类似地,图10的可视化表示1000中的各个节点也可以按层级展开或收起,在此不再赘述。In one embodiment, in response to determining that the number of the fifth group of nodes corresponding to cells in other rows in the spreadsheet that have a dependency relationship with nodes 1031 and 1032 exceeds a certain threshold (for example, 10, 20, etc.), it is possible to Hide or collapse part of the nodes in the fifth group of nodes, so that the displayed nodes in the fifth group of nodes do not exceed the threshold. As mentioned above, the nodes to be hidden or collapsed can be selected based on any suitable criteria. Similar to the manner described with reference to FIGS. 8A to 8C, each node in the visual representation 1000 of FIG. 10 can also be expanded or collapsed in a hierarchical manner, which will not be repeated here.
图11A-图11B示出了根据本公开的一些实施例的示例性的电子表格的层级的可视化表示。在图11A的可视化表示1100A中,显示了层级结构中的所在层级的层级类型为单元格的节点1101以及与节点1101有依赖关系的其他节点1102-1105。虽然为了清楚起见,图11A的可视化表示1100A仅显示了节点1101所依赖的节点,但是应理解,还可以显示依赖于节点1101的节点。根据一个实施例,图11A的可视化表示1100A可以是响应于接收到可视化与电子表格中的一个单元格对应的节点1101的请求而显示的。例如,该请求可以是对指示可视化节点1101的图标(例如,文字、按钮或图形等)的选择(例如,单击、双击、轻扫、长按(对于具有触敏表面的显示设备而言)等)或者可以是对可视化表示中的语义信息为“2014年12月预测净利润”的节点进行可视化的输入(例如,对该节点的单击、双击等)。如图11A所示,在可视化表示1100A中,节点1101-1105的语义信息(例如,单元格的行标签和列标签的组合)也被显示在相应的节点上。节点1102-1105可以是层级类型为单元格的节点。11A-11B show a visual representation of the hierarchy of an exemplary electronic form according to some embodiments of the present disclosure. In the visual representation 1100A of FIG. 11A, the node 1101 whose level type is a cell in the hierarchical structure and other nodes 1102-1105 that are dependent on the node 1101 are displayed. Although for the sake of clarity, the visual representation 1100A of FIG. 11A only shows the nodes that the node 1101 depends on, it should be understood that nodes that depend on the node 1101 may also be displayed. According to one embodiment, the visual representation 1100A of FIG. 11A may be displayed in response to receiving a request to visualize the node 1101 corresponding to a cell in the spreadsheet. For example, the request may be a selection (for example, single-click, double-click, swipe, long press (for display devices with touch-sensitive surfaces) of icons (for example, text, buttons, or graphics, etc.) indicating the visualization node 1101. Etc.) Or it may be an input for visualizing a node whose semantic information in the visual representation is "predicted net profit in December 2014" (for example, a single click on the node, a double click, etc.). As shown in FIG. 11A, in the visual representation 1100A, the semantic information of the nodes 1101-1105 (for example, the combination of the row label and the column label of the cell) is also displayed on the corresponding node. The nodes 1102-1105 may be nodes whose level type is a cell.
在一个实施例中,响应于确定与节点1101有依赖关系的其他节点的数量超过一定阈值(例如,10、20等),可以隐藏或折叠这些其他节点中的部分节点,从而使其他节点中所显示的节点不超过该阈值。In one embodiment, in response to determining that the number of other nodes that have a dependency relationship with node 1101 exceeds a certain threshold (for example, 10, 20, etc.), some of these other nodes may be hidden or collapsed, so that all nodes in other nodes can be hidden or collapsed. The displayed nodes do not exceed this threshold.
在节点1105中显示了三角形,以指示该节点1105(实际上是节点1105的依赖关系)可以被进一步展开。该三角形是示例性的,还可以使用其他任何合适的文字、图形、图标、按钮等来向用户指示可以进一步展开节点1105。A triangle is displayed in the node 1105 to indicate that the node 1105 (actually the dependency of the node 1105) can be further expanded. The triangle is exemplary, and any other suitable text, graphics, icons, buttons, etc. can also be used to indicate to the user that the node 1105 can be further expanded.
图11B示出了展开节点1105后的可视化表示1100B。可视化表示1100B可以是响应于接收到展开可视化表示1100A中的节点1105的输入而显示的。展开节点1105的输入可以是单击节点1105的输入、双击节点1105的输入或者对指示展开节点 1105的图标(例如,文字、诸如图11A中的三角形之类的图形、选中节点1105后弹出的菜单中的选项等)的选中等。如图11B所示,节点1105被展开以显示与它有依赖关系的节点1111和1112,并且还用箭头示出节点1105与节点1111和1112之间的依赖关系。例如,节点1111和1112的层级类型可以是单元格。还可以在可视化表示1100B中显示节点1111和1112的语义信息,它们例如是分别与节点1111和1112对应的单元格的行标签和列标签的组合。根据一个实施例,显示与节点1105有依赖关系的其他节点包括显示与节点1105有依赖关系的所有节点中的部分节点(例如,预定数量的节点或者被识别为重要性高的节点等)。根据一个实施例,以使得节点1111和1112在可视化表示1100B中的相对位置与分别和节点1111、1112对应的单元格在电子表格中的相对位置一致的方式来显示节点1111和1112。例如,在电子表格中与节点1111对应的单元格在与节点1112对应的单元格的上方,因此可以在可视化表示1100B中将节点1111显示在节点1112的上方。应理解,还可以将节点1111显示在节点1112的左方或左上方等。根据一个实施例,可以类似地以使得节点1102-1105在可视化表示1100B中的相对位置与分别和节点1102-1105对应的单元格在电子表格中的相对位置一致的方式来显示节点1102-1105。FIG. 11B shows the visual representation 1100B after the node 1105 is expanded. The visual representation 1100B may be displayed in response to receiving an input to expand the node 1105 in the visual representation 1100A. The input to expand the node 1105 can be the input of clicking the node 1105, the input of double-clicking the node 1105, or the icon indicating the expansion of the node 1105 (for example, text, graphics such as the triangle in FIG. 11A, and the menu that pops up after the node 1105 is selected. The selection of options in), etc.). As shown in FIG. 11B, the node 1105 is expanded to display the nodes 1111 and 1112 that have a dependency relationship with it, and the dependency relationship between the node 1105 and the nodes 1111 and 1112 is also shown with arrows. For example, the hierarchical type of nodes 1111 and 1112 may be cells. The semantic information of the nodes 1111 and 1112 can also be displayed in the visual representation 1100B, which is, for example, a combination of the row labels and column labels of the cells corresponding to the nodes 1111 and 1112, respectively. According to one embodiment, displaying other nodes that have a dependency relationship with the node 1105 includes displaying a part of all nodes that have a dependency relationship with the node 1105 (for example, a predetermined number of nodes or nodes that are identified as highly important, etc.). According to one embodiment, the nodes 1111 and 1112 are displayed in such a way that the relative positions of the nodes 1111 and 1112 in the visual representation 1100B are consistent with the relative positions of the cells corresponding to the nodes 1111 and 1112 in the spreadsheet. For example, in the spreadsheet, the cell corresponding to the node 1111 is above the cell corresponding to the node 1112, so the node 1111 can be displayed above the node 1112 in the visual representation 1100B. It should be understood that the node 1111 may also be displayed on the left or upper left of the node 1112. According to an embodiment, the nodes 1102-1105 may be similarly displayed in such a way that the relative positions of the nodes 1102-1105 in the visual representation 1100B are consistent with the relative positions of the cells corresponding to the nodes 1102-1105 in the spreadsheet.
根据一个实施例,还可以响应于接收到收起电子表格的层级的可视化表示1100B中的节点1105的输入而显示可视化表示1100A。例如,收起节点1105的输入可以是单击节点1105的输入、双击节点1105的输入或者对指示收起节点1105的图标(例如,文字、诸如图11B中的三角形之类的图形、选中节点1105后弹出的菜单中的选项等)的选中等。具体而言,响应于确定节点1105所在层级的层级类型是单元格,可视化表示1100B被更新以隐藏节点1111和1112以及节点1105与节点1111和1112之间的依赖关系。According to one embodiment, the visual representation 1100A may also be displayed in response to receiving an input of the node 1105 in the visual representation 1100B of the hierarchy of the collapsed spreadsheet. For example, the input of retracting the node 1105 may be the input of clicking the node 1105, the input of double-clicking the node 1105, or an icon indicating to retract the node 1105 (for example, text, a graphic such as a triangle in FIG. 11B, and selecting the node 1105). Select the options in the pop-up menu, etc.). Specifically, in response to determining that the level type of the node 1105 is a cell, the visual representation 1100B is updated to hide the nodes 1111 and 1112 and the dependency relationship between the node 1105 and the nodes 1111 and 1112.
图12A-图12C示出了根据本公开的一些实施例的示例性的电子表格的层级的可视化表示。在图12A中,以层级目录的形式显示电子表格的层级结构,该层级目录可以被逐级展开或收起。图12A的可视化表示1200A可以包括层级类型为页的节点1210-1270,这些节点从上到下依次排列,并且它们的语义信息也被显示在可视化表示1200A中。符号1282示出了节点1210的层级类型为页,符号1281可以指示节点1210可以被展开。12A-12C show a visual representation of the hierarchy of an exemplary electronic form according to some embodiments of the present disclosure. In FIG. 12A, the hierarchical structure of the electronic form is displayed in the form of a hierarchical list, and the hierarchical list can be expanded or collapsed level by level. The visual representation 1200A of FIG. 12A may include nodes 1210-1270 whose hierarchical type is page, which are arranged in order from top to bottom, and their semantic information is also displayed in the visual representation 1200A. Symbol 1282 shows that the hierarchical type of node 1210 is page, and symbol 1281 may indicate that node 1210 can be expanded.
图12B示出了节点1210被展开后的可视化表示1200B。根据一个实施例,可以响应于点击符号1281的输入,而显示可视化表示1200B。展开节点1210的输入还可 以是单击节点1210的输入、双击节点1210的输入或者对选中(例如,单击、右键单击或长按)节点1210后弹出的菜单中的选项的选中等。可视化表示1200B可以显示节点1210的层级类型为表的子节点1211和1212。根据一个实施例,显示节点1210的子节点包括显示节点1210的子节点中的部分节点(例如,预定数量的节点或者所对应的单元格在电子表格中的位置靠前的节点等)。根据一个实施例,以使得节点1211和1212在可视化表示1200B中的相对位置与分别和节点1211、1212对应的单元格在电子表格中的相对位置一致的方式来显示节点1211和1212。例如,在电子表格中与节点1211对应的表在与节点1212对应的表的上方,因此可以在可视化表示1200B中将节点1211显示在节点1212的上方。Figure 12B shows a visual representation 1200B of the node 1210 after it has been expanded. According to one embodiment, the visual representation 1200B may be displayed in response to the input of clicking the symbol 1281. The input for expanding the node 1210 can also be the input of clicking the node 1210, the input of double-clicking the node 1210, or the selection of options in the pop-up menu after the node 1210 is selected (for example, clicking, right-clicking, or long-pressing). The visual representation 1200B can display the child nodes 1211 and 1212 of the node 1210 whose hierarchical type is the table. According to one embodiment, the child nodes of the display node 1210 include some of the child nodes of the display node 1210 (for example, a predetermined number of nodes or the nodes whose corresponding cells are at the top of the spreadsheet). According to an embodiment, the nodes 1211 and 1212 are displayed in such a way that the relative positions of the nodes 1211 and 1212 in the visual representation 1200B are consistent with the relative positions of the cells corresponding to the nodes 1211 and 1212 in the spreadsheet. For example, in the spreadsheet, the table corresponding to the node 1211 is above the table corresponding to the node 1212, so the node 1211 can be displayed above the node 1212 in the visual representation 1200B.
根据一个实施例,还可以响应于接收到收起节点1210的输入而显示可视化表示1200A。例如,收起节点1210的输入可以是单击节点1210的输入、双击节点1210的输入或者对指示收起节点1210的图标(例如,文字、诸如节点1210前面的符号1281之类的图形、选中节点1210后弹出的菜单中的选项等)的选中等。具体而言,响应于确定节点1210所在层级的层级类型不是单元格,可视化表示1200B被更新以隐藏节点1211-1212。此外,图12B中的节点1211和1212还可以被进一步展开。According to one embodiment, the visual representation 1200A may also be displayed in response to receiving the input of the retract node 1210. For example, the input to collapse the node 1210 may be the input of clicking the node 1210, the input of double-clicking the node 1210, or the icon indicating the collapse of the node 1210 (for example, text, graphics such as the symbol 1281 in front of the node 1210, the selected node After 1210, the options in the pop-up menu, etc.) are selected. Specifically, in response to determining that the level type of the level of the node 1210 is not a cell, the visual representation 1200B is updated to hide the nodes 1211-1212. In addition, the nodes 1211 and 1212 in FIG. 12B can be further expanded.
图12C示出了节点1211被展开后的可视化表示1200C。根据一个实施例,可以响应于点击节点1211前的符号的输入,而显示可视化表示1200C。展开节点1211的输入还可以是单击节点1211的输入、双击节点1211的输入或者对选中(例如,单击、右键单击或长按)节点1211后弹出的菜单中的选项的选中等。可视化表示1200C可以显示节点1211的层级类型为行的子节点1213-1218。根据一个实施例,显示节点1211的子节点包括显示节点1211的子节点中的部分节点(例如,预定数量的节点或者所对应的单元格在电子表格中的位置靠前的节点等)。根据一个实施例,以使得节点1213-1218在可视化表示1200C中的相对位置与分别和节点1213-1218对应的单元格在电子表格中的相对位置一致的方式来显示节点1213-1218。例如,在电子表格中与节点1213对应的行在与节点1214对应的行的上方,因此可以在可视化表示1200C中将节点1213显示在节点1214的上方。FIG. 12C shows a visual representation 1200C after the node 1211 is expanded. According to one embodiment, the visual representation 1200C may be displayed in response to the input of clicking the symbol in front of the node 1211. The input to expand the node 1211 can also be the input of clicking the node 1211, the input of double-clicking the node 1211, or the selection of options in the pop-up menu after the node 1211 is selected (for example, clicking, right-clicking, or long-pressing). The visual representation 1200C can display the child nodes 1213-1218 whose hierarchical type of node 1211 is row. According to one embodiment, the child nodes of the display node 1211 include some of the child nodes of the display node 1211 (for example, a predetermined number of nodes or the nodes whose corresponding cells are at the top of the spreadsheet). According to one embodiment, the nodes 1213-1218 are displayed in such a way that the relative positions of the nodes 1213-1218 in the visual representation 1200C are consistent with the relative positions of the cells corresponding to the nodes 1213-1218 in the spreadsheet. For example, in the spreadsheet, the row corresponding to the node 1213 is above the row corresponding to the node 1214, so the node 1213 can be displayed above the node 1214 in the visual representation 1200C.
根据一个实施例,还可以响应于接收到收起节点1211的输入而显示可视化表示1200B。例如,收起节点1211的输入可以是单击节点1211的输入、双击节点1211的输入或者对指示收起节点1211的图标(例如,文字、诸如节点1211前面的符号之类的图形、选中节点1211后弹出的菜单中的选项等)的选中等。具体而言,响应 于确定节点1211所在层级的层级类型不是单元格,可视化表示1200C被更新以隐藏节点1213-1218。According to one embodiment, the visual representation 1200B may also be displayed in response to receiving the input of the retract node 1211. For example, the input to collapse the node 1211 may be the input of clicking the node 1211, the input of double-clicking the node 1211, or the input of the icon indicating the collapse of the node 1211 (for example, text, graphics such as the symbol in front of the node 1211, and the selection of the node 1211. Select the options in the pop-up menu, etc.). Specifically, in response to determining that the level type of the level where the node 1211 is located is not a cell, the visual representation 1200C is updated to hide the nodes 1213-1218.
图13是示出根据本公开的一些实施例的示例性的电子表格的层级的可视化表示中的附加信息1300的示意图。根据一个实施例,响应于接收到查看可视化表示(例如,图7A至图12C示出的任一个可视化表示)中的一个节点的附加信息的输入,可以显示该节点的附加信息。例如,查看可视化表示中的一个节点的附加信息的输入可以是光标在该节点上的悬停、对该节点的选中等等。图13中示出了层级类型为表的一个节点A的附加信息,其中该节点A的语义信息是“2014年盈利预测”。FIG. 13 is a schematic diagram illustrating additional information 1300 in a visual representation of an exemplary electronic form's hierarchy according to some embodiments of the present disclosure. According to one embodiment, in response to receiving an input of viewing additional information of a node in the visual representation (for example, any one of the visual representations shown in FIGS. 7A to 12C), the additional information of the node may be displayed. For example, the input for viewing the additional information of a node in the visual representation may be hovering the cursor on the node, selecting the node, and so on. FIG. 13 shows the additional information of a node A whose level type is a table, where the semantic information of the node A is "2014 profit forecast".
根据一个实施例,显示该节点A的附加信息包括显示与该节点A对应的一个或多个单元格(例如,这里是表)的缩略图1301。在缩略图1301中,示出了与该节点A对应的表中的单元格的数值以及这些单元格在电子表格中的行坐标和列坐标。还可以显示该节点A的语义信息,例如,如图13所示的表的名称1302“2014年盈利预测”。附加信息还可以包括该节点A的目录1303(从层级结构中的根节点到该节点的路径上的所有节点)“财务报表/主表/2014年盈利预测”。例如,“财务报表”可以是工作簿的名称,而“主表”可以是该表所在的页的标题。附加信息还可以包括该节点A所依赖的外部节点(与其他页的一个或多个单元格对应的节点)1304、以及依赖该节点的外部节点(“2015年盈利预测”、“担保费收入”)、该节点A所对应的表包括的行1305以及该节点A所对应的表包括的列1306。应注意,在1303-1306中示出的节点都与该节点A具有隶属关系或依赖关系,并且这些节点以链接的形式示出。根据一个实施例,响应于接收到点击一个链接的输入,更新或新建可视化表示以对与该链接对应的一个或多个节点进行可视化。例如,响应于接收到点击链接“营业利润”,可以对具有语义信息“营业利润”的行进行可视化,例如可以显示如图10所示的可视化表示1000。根据一个实施例,还可以更新附加信息1300,以显示具有语义信息“营业利润”的节点的附加信息。如上所述,一个节点的附加信息不限于此,而是可以包括以下各项中的一个或多个:该节点与其他节点的计算关系(可以以公式的形式显示)、与该节点对应的一个或多个单元格的生成时间、该节点的子节点的数量、与该节点对应的一个或多个单元格中的数值、该数值的单位、该数值所对应的时间点或时间段、与该节点对应的一个或多个单元格的格式、与该节点对应的一个或多个单元格在电子表格中的位置以及从层级结构中的根节点到该节点的路径等。According to one embodiment, displaying the additional information of the node A includes displaying a thumbnail 1301 of one or more cells (for example, a table in this case) corresponding to the node A. In the thumbnail 1301, the numerical values of the cells in the table corresponding to the node A and the row coordinates and column coordinates of these cells in the spreadsheet are shown. The semantic information of the node A can also be displayed, for example, the name of the table 1302 "2014 Profit Forecast" as shown in FIG. 13. The additional information may also include the directory 1303 of the node A (all nodes on the path from the root node in the hierarchical structure to the node) "Financial Statement/Main Table/2014 Profit Forecast". For example, "Financial Statement" can be the name of a workbook, and "Master Table" can be the title of the page where the table is located. The additional information may also include external nodes (nodes corresponding to one or more cells on other pages) 1304 on which the node A depends, and external nodes that depend on the node ("2015 profit forecast", "guarantee fee income" ), row 1305 in the table corresponding to node A, and column 1306 in the table corresponding to node A. It should be noted that the nodes shown in 1303-1306 all have an affiliation or dependency relationship with the node A, and these nodes are shown in the form of links. According to one embodiment, in response to receiving an input of clicking on a link, the visual representation is updated or newly created to visualize one or more nodes corresponding to the link. For example, in response to receiving a click on the link "operating profit", a row with semantic information "operating profit" may be visualized, for example, a visual representation 1000 as shown in FIG. 10 may be displayed. According to an embodiment, the additional information 1300 may also be updated to display additional information of the node having the semantic information "operating profit". As mentioned above, the additional information of a node is not limited to this, but may include one or more of the following: the calculation relationship between the node and other nodes (which can be displayed in the form of a formula), and the one corresponding to the node The generation time of or multiple cells, the number of child nodes of the node, the value in one or more cells corresponding to the node, the unit of the value, the time point or time period corresponding to the value, and the The format of one or more cells corresponding to a node, the position of one or more cells corresponding to the node in the spreadsheet, and the path from the root node in the hierarchy to the node, etc.
此外,本公开的实施例还涉及通过修改可视化表示来修改电子表格。图14是示出根据本公开的一些实施例的示例性的用于通过可视化表示来修改电子表格的方法的流程图1400。虽然图14例示了方法1400的2个步骤,但这仅仅是用于通过修改可视化表示来修改电子表格的方法的示意性流程,用于通过可视化表示来修改电子表格的方法1400还可以包括其他可能的步骤,或者可以包括上述两个步骤中任意步骤的组合步骤。In addition, the embodiments of the present disclosure also relate to modifying the electronic form by modifying the visual representation. FIG. 14 is a flowchart 1400 illustrating an exemplary method for modifying an electronic form through a visual representation according to some embodiments of the present disclosure. Although FIG. 14 illustrates the two steps of the method 1400, this is only a schematic flow of the method for modifying the electronic form by modifying the visual representation. The method 1400 for modifying the electronic form through the visual representation may also include other possibilities. , Or may include a combination of any of the above two steps.
方法1400从步骤S1410开始,在步骤S1410处,接收对可视化表示的修改。可以对如图7A至图12C所示的任一个可视化表示进行修改。根据一个实施例,可以在图形用户界面中提供用户交互组件,使得用户可以对可视化表示进行任意修改。例如,用户执行以下操作中的一个或多个:修改可视化表示中的任意节点的元数据(例如,语义信息、运算符、附加信息等)、为节点添加子孙节点或祖先节点、为节点添加该节点所依赖的节点或依赖于该节点的节点、或者改变节点的隶属关系(例如,将本来隶属于节点B的节点A移动到节点C下方,以使得节点A成为节点C的子节点)等。根据一个实施例,还可以响应于用户添加节点或修改节点的操作而进一步提供对话框,以请求用户输入关于该节点的进一步信息,例如,与该节点对应的一个或多个单元格的数值、与该节点对应的一个或多个单元格的计算公式、与该节点对应的一个或多个单元格的显示格式等。The method 1400 starts at step S1410, and at step S1410, a modification to the visual representation is received. Any one of the visual representations shown in FIGS. 7A to 12C can be modified. According to one embodiment, a user interaction component can be provided in a graphical user interface, so that the user can make arbitrary modifications to the visual representation. For example, the user performs one or more of the following operations: modify the metadata of any node in the visual representation (for example, semantic information, operators, additional information, etc.), add descendant or ancestor nodes for the node, add the node for the node The node that the node depends on or the node that depends on the node, or change the membership of the node (for example, move the node A that originally belongs to the node B to the node C, so that the node A becomes a child node of the node C) and so on. According to an embodiment, a dialog box may be further provided in response to the user's operation of adding or modifying a node to request the user to input further information about the node, for example, the value of one or more cells corresponding to the node, The calculation formula of one or more cells corresponding to the node, the display format of one or more cells corresponding to the node, etc.
方法1400前进到步骤S1420,在步骤S1420处,修改电子表格,以使得修改后的电子表格与修改后的可视化表示对应。根据一个实施例,可以首先确定与该可视化表示对应的电子表格。例如,为电子表格生成的可视化表示可以与该电子表格相关联地存储,例如它们可以存储在相关位置处,或者它们可以具有相同的标识符等。根据一个实施例,可以基于对可视化表示中的层级结构、元数据和节点间的依赖关系中的一个或多个的修改来相应地修改电子表格。例如,响应于将图8A中的可视化表示800A的节点814的语义信息从“合计”修改为“投资收益合计”,可以将电子表格中与节点814对应的行的行标签修改为“投资收益合计”。又例如,响应于为图10中的可视化表示1000的节点1001添加新的子节点“2014年12月实际数”,可以在电子表格中与节点1001对应的行(或列)中与节点1031和1032对应的单元格右边(或下边)添加新的单元格。The method 1400 proceeds to step S1420. At step S1420, the electronic form is modified so that the modified electronic form corresponds to the modified visual representation. According to an embodiment, the electronic form corresponding to the visual representation may be determined first. For example, the visual representations generated for an electronic form may be stored in association with the electronic form, for example, they may be stored at a related location, or they may have the same identifier, etc. According to an embodiment, the spreadsheet may be modified accordingly based on the modification of one or more of the hierarchical structure, metadata, and dependency relationship between nodes in the visual representation. For example, in response to changing the semantic information of the node 814 of the visual representation 800A in FIG. 8A from "total" to "total of investment income", the row label of the row corresponding to node 814 in the spreadsheet can be changed to "total of investment income" ". For another example, in response to adding a new child node "Actual number in December 2014" for the node 1001 of the visual representation 1000 in FIG. 10, the row (or column) corresponding to the node 1001 in the spreadsheet can be compared with the node 1031 and Add a new cell to the right (or below) of the cell corresponding to 1032.
如上所述,根据本公开的实施例对电子表格进行按层级的可视化,并且显示相关的语义信息和依赖关系等多个维度的信息,以使得用户可以更容易理解或更改电 子表格的组织结构和逻辑关系。用户还可以按层级展开或收起可视化表示中的不同节点,从而可以有效地过滤掉用户不关注的信息,方便用户更容易找到所需要的信息。另外,通过可视化表示修改电子表格更加直观方便。As described above, according to the embodiment of the present disclosure, the electronic form is visualized in layers, and multiple dimensions of information such as related semantic information and dependencies are displayed, so that users can more easily understand or change the organizational structure and structure of the electronic form. Logic. The user can also expand or collapse the different nodes in the visual representation according to the hierarchy, which can effectively filter out the information that the user does not care about, making it easier for the user to find the information they need. In addition, it is more intuitive and convenient to modify the spreadsheet through the visual representation.
硬件实现Hardware implementation
图15示出了根据本公开的一些实施例的其中可应用本公开的一般硬件环境。FIG. 15 shows a general hardware environment in which the present disclosure can be applied according to some embodiments of the present disclosure.
参考图15,现在将描述作为可应用于本公开的各方面的硬件设备的示例的计算设备1500。计算设备1500可以是被配置成执行处理和/或计算的任何机器,可以是但不限于工作站、服务器、台式计算机、膝上型计算机、平板计算机、个人数字助理、智能电话、便携式相机或其任意组合。上述装置100可以整体或至少部分地由计算设备1500或类似的设备或系统来实现。With reference to FIG. 15, a computing device 1500 as an example of a hardware device applicable to various aspects of the present disclosure will now be described. The computing device 1500 can be any machine configured to perform processing and/or calculations, and can be, but is not limited to, a workstation, a server, a desktop computer, a laptop computer, a tablet computer, a personal digital assistant, a smart phone, a portable camera, or any of these combination. The foregoing apparatus 100 may be implemented in whole or at least in part by a computing device 1500 or a similar device or system.
计算设备1500可以包括能够经由一个或多个接口与总线1502连接或者与总线1502通信的元件。例如,计算设备1500可以包括总线1502、一个或多个处理器1504、一个或多个输入设备1506以及一个或多个输出设备1508。一个或多个处理器1504可以是任何类型的处理器,并且可以包括但不限于一个或多个通用处理器和/或一个或多个专用处理器(诸如专用处理芯片)。输入设备1506可以是能够向计算设备输入信息的任何类型的设备,并且可以包括但不限于鼠标、键盘、触摸屏、麦克风和/或遥控器。输出设备1508可以是能够呈现信息的任何类型的设备,并且可以包括但不限于显示器、扬声器、视频/音频输出终端和/或打印机。计算设备1500还可以包括非瞬态存储设备1510或与非瞬态存储设备1510连接,非瞬态存储设备1510可以是非瞬态的并且可以实现数据存储库的任何存储设备,并且可以包括但不限于盘驱动器、光学存储设备、固态存储装置、软盘、柔性盘、硬盘、磁带或任何其它磁性介质、紧凑型盘或任何其它光学介质、ROM(只读存储器)、RAM(随机存取存储器)、高速缓存存储器和/或任何其它存储器芯片或盒带、和/或计算机可以从其读取数据、指令和/或代码的任何其它介质。非瞬态存储设备1510可以是可从接口拆卸的。非暂态存储设备1510可以具有用于实现上述方法和步骤的数据/指令/代码。计算设备1500还可以包括通信设备1512。通信设备1512可以是能够与外部装置和/或与网络通信的任何类型的设备或系统,并且可以包括但不限于调制解调器、网络卡、红外通信设备、无线通信装备和/或诸如蓝牙 TM设备、802.11设备、WiFi设备、WiMax设备、蜂窝通信设施等的芯片组。 The computing device 1500 may include elements capable of being connected to or communicating with the bus 1502 via one or more interfaces. For example, the computing device 1500 may include a bus 1502, one or more processors 1504, one or more input devices 1506, and one or more output devices 1508. The one or more processors 1504 may be any type of processor, and may include, but are not limited to, one or more general-purpose processors and/or one or more special-purpose processors (such as special-purpose processing chips). The input device 1506 may be any type of device capable of inputting information to a computing device, and may include, but is not limited to, a mouse, a keyboard, a touch screen, a microphone, and/or a remote control. The output device 1508 may be any type of device capable of presenting information, and may include, but is not limited to, a display, a speaker, a video/audio output terminal, and/or a printer. The computing device 1500 may also include a non-transitory storage device 1510 or be connected to a non-transitory storage device 1510. The non-transient storage device 1510 may be any storage device that is non-transient and can implement a data storage library, and may include but is not limited to Disk drives, optical storage devices, solid-state storage devices, floppy disks, flexible disks, hard disks, magnetic tapes or any other magnetic media, compact disks or any other optical media, ROM (read only memory), RAM (random access memory), high-speed Cache memory and/or any other memory chip or cassette, and/or any other medium from which the computer can read data, instructions, and/or code. The non-transitory storage device 1510 may be detachable from the interface. The non-transitory storage device 1510 may have data/instructions/code for implementing the above-mentioned methods and steps. The computing device 1500 may also include a communication device 1512. Communication device 1512 may be capable of external devices and / or with any type of device or system network communication, and may include but is not limited to a modem, a network card, an infrared communication device, a wireless communication equipment and / or such as Bluetooth (TM) device, an 802.11 Chip sets for devices, WiFi devices, WiMax devices, cellular communication facilities, etc.
总线1502可以包括但不限于工业标准体系架构(ISA)总线、微通道体系架构(MCA)总线、增强型ISA(EISA)总线、视频电子标准协会(VESA)本地总线和外围组件互连(PCI)总线。The bus 1502 may include, but is not limited to, an industry standard architecture (ISA) bus, a microchannel architecture (MCA) bus, an enhanced ISA (EISA) bus, a video electronics standard association (VESA) local bus, and peripheral component interconnect (PCI) bus.
计算设备1500还可以包括工作存储器1514,工作存储器1514可以是可以存储对处理器1504的工作有用的指令和/或数据的任何类型的工作存储器,并且可以包括但不限于随机存取存储器和/或只读存储器设备。The computing device 1500 may further include a working memory 1514. The working memory 1514 may be any type of working memory that can store instructions and/or data useful for the work of the processor 1504, and may include, but is not limited to, random access memory and/or Read only memory device.
软件要素可以位于工作存储器1514中,包括但不限于操作系统1516、一个或多个应用程序1518、驱动程序和/或其它数据和代码。用于执行上述方法和步骤的指令可以被包括在一个或多个应用程序1518中,并且上述装置100的部件可以通过处理器1504读取并执行一个或多个应用程序1518的指令来实现。更具体地,层级结构获得部件110可以例如由处理器1504在执行具有执行步骤S210的指令的应用程序1518时实现。元数据提取部件120可以例如由处理器1504在执行具有执行步骤S220的指令的应用程序1518时实现。依赖关系建立部件130可以例如由处理器1504在执行具有执行步骤S230的指令的应用程序1518时实现。可视化表示生成部件140可以例如由处理器1504在执行具有执行步骤S240的指令的应用程序1518时实现。软件要素的指令的可执行代码或源代码可以存储在非瞬态计算机可读存储介质(诸如上述(一个或多个)存储设备1510)中,并且可以在可能编译和/或安装的情况下被读入到工作存储器1514中。软件要素的指令的可执行代码或源代码也可以从远程位置下载。The software elements may be located in the working memory 1514, including but not limited to the operating system 1516, one or more application programs 1518, drivers, and/or other data and codes. Instructions for executing the above methods and steps may be included in one or more application programs 1518, and the components of the above apparatus 100 may be implemented by the processor 1504 reading and executing instructions of one or more application programs 1518. More specifically, the hierarchical structure obtaining unit 110 may be implemented by the processor 1504 when the application program 1518 having instructions for executing step S210 is executed, for example. The metadata extraction unit 120 may be implemented by, for example, the processor 1504 when the application program 1518 having instructions for executing step S220 is executed. The dependency establishing component 130 may be implemented by the processor 1504 when the application program 1518 having instructions for executing step S230 is executed, for example. The visual representation generating component 140 may be implemented by the processor 1504 when the application program 1518 with instructions for executing step S240 is executed, for example. The executable code or source code of the instructions of the software element can be stored in a non-transitory computer-readable storage medium (such as the aforementioned storage device(s) 1510), and can be compiled and/or installed where possible Read into the work memory 1514. The executable code or source code of the instructions of the software element can also be downloaded from a remote location.
本公开还涉及以下实施例。The present disclosure also relates to the following embodiments.
实施例1、一种用于可视化电子表格的计算机实现的方法,所述方法包括:Embodiment 1. A computer-implemented method for visualizing electronic forms, the method comprising:
获得电子表格的层级结构,其中所述层级结构包括一个或多个层级,所述一个或多个层级具有多个节点,其中每个层级具有至少一个节点并且具有相应的层级类型,每个节点对应于所述电子表格中的一个或多个单元格,其中所述层级结构还包括所述多个节点之间的隶属关系;Obtain the hierarchical structure of the spreadsheet, wherein the hierarchical structure includes one or more levels, the one or more levels have a plurality of nodes, wherein each level has at least one node and has a corresponding level type, and each node corresponds to One or more cells in the electronic table, wherein the hierarchical structure further includes the affiliation relationship between the multiple nodes;
提取所述多个节点中的每个节点的元数据;Extracting metadata of each node in the plurality of nodes;
至少基于所述层级结构中的所述多个节点之间的计算关系来建立所述多个节点之间的依赖关系;以及Establishing the dependency relationship among the plurality of nodes based at least on the computational relationship among the plurality of nodes in the hierarchical structure; and
基于所述电子表格的层级结构、所述元数据和所述多个节点之间的依赖关系来生成所述电子表格的层级的可视化表示。A visual representation of the hierarchy of the electronic form is generated based on the hierarchical structure of the electronic form, the metadata and the dependency relationship between the plurality of nodes.
实施例2、根据实施例1所述的方法,其中建立所述多个节点之间的依赖关系还基于所述多个节点之间的隶属关系。 Embodiment 2. The method according to embodiment 1, wherein establishing the dependency relationship between the multiple nodes is also based on the affiliation relationship between the multiple nodes.
实施例3、根据实施例1所述的方法,其中每个节点的元数据包括描述该节点的具体含义的语义信息,并且当该节点被显示在所述电子表格的层级的可视化表示中时,所述语义信息也被显示在所述可视化表示中。Embodiment 3. The method according to embodiment 1, wherein the metadata of each node includes semantic information describing the specific meaning of the node, and when the node is displayed in the hierarchical visual representation of the spreadsheet, The semantic information is also displayed in the visual representation.
实施例4、根据实施例1所述的方法,其中每个节点的元数据包括用于该节点的计算公式中的运算符。Embodiment 4. The method according to embodiment 1, wherein the metadata of each node includes an operator used in the calculation formula of the node.
实施例5、根据实施例1所述的方法,其中,获得电子表格的层级结构包括以下中的一项或多项:Embodiment 5. The method according to embodiment 1, wherein obtaining the hierarchical structure of the electronic form includes one or more of the following:
识别所述电子表格中的单元格的位置、内容和格式信息中的一项或多项,并且至少基于所述单元格的位置、内容和格式信息中的一项或多项来识别所述电子表格的层级结构;Identify one or more of the location, content, and format information of the cell in the electronic form, and identify the electronic based on at least one or more of the location, content, and format information of the cell The hierarchical structure of the table;
接收由用户指定的层级结构。Receive the hierarchical structure specified by the user.
实施例6、根据实施例1所述的方法,其中所述电子表格的所述一个或多个层级的层级类型包括以下中的一项或多项:工作簿、页、节、表、块、行、列、区间和单元格,并且其中获得电子表格的层级结构包括以下中的一项或多项: Embodiment 6. The method according to embodiment 1, wherein the level type of the one or more levels of the electronic form includes one or more of the following: workbook, page, section, table, block, Rows, columns, intervals, and cells, and the hierarchical structure in which the spreadsheet is obtained includes one or more of the following:
在工作簿的每个页中检测标题,基于标题的位置、内容和格式信息中的一项或多项来确定标题的级别,并且基于标题的级别来将每个页划分为相应级别的节或表;Detect the title in each page of the workbook, determine the level of the title based on one or more of the location, content, and format information of the title, and divide each page into sections or sections of the corresponding level based on the level of the title. table;
基于每个表的行和列的位置、内容和格式信息中的一项或多项来确定行和列的级别;Determine the level of rows and columns based on one or more of the position, content and format information of the rows and columns of each table;
基于每个表中的行之间的相关性、列之间的相关性、行的级别、列的级别中的一项或多项将所述行和列划分为块;以及Divide the rows and columns into blocks based on one or more of the correlation between the rows, the correlation between the columns, the level of the rows, and the level of the columns in each table; and
基于每个行和列中的单元格之间的相关性将单元格划分为区间。The cells are divided into intervals based on the correlation between the cells in each row and column.
实施例7、根据实施例3所述的方法,其中,所述语义信息包括名称、标题、标签和批注中的一个或多个。 Embodiment 7. The method according to embodiment 3, wherein the semantic information includes one or more of a name, a title, a tag, and an annotation.
实施例8、根据实施例3所述的方法,其中,所述多个节点中的每个节点的语义信息是从与该节点对应的一个或多个单元格的文本内容中提取或生成的或者由用户定义的。Embodiment 8. The method according to embodiment 3, wherein the semantic information of each node in the plurality of nodes is extracted or generated from the text content of one or more cells corresponding to the node, or Defined by the user.
实施例9、根据实施例1所述的方法,其中,建立所述多个节点之间的依赖关系包括:Embodiment 9. The method according to embodiment 1, wherein establishing a dependency relationship between the multiple nodes includes:
对于所述层级结构中的每个节点,确定该节点由另外的一个或多个节点计算得到,对于对应于该节点的所述一个或多个第一单元格中的每个第一单元格:For each node in the hierarchical structure, it is determined that the node is calculated by one or more other nodes, and for each first cell of the one or more first cells corresponding to the node:
确定该第一单元格由对应于所述另外的一个或多个节点的一个或多个第二单元格中的第一组第二单元格计算得到;以及Determining that the first cell is calculated from the first group of second cells in the one or more second cells corresponding to the other one or more nodes; and
建立如下依赖关系:与该第一单元格对应的第一节点及该第一节点的全部或部分祖先节点依赖于与所述第一组第二单元格各自对应的第一组第二节点及所述第一组第二节点的全部或部分祖先节点。The following dependency relationship is established: the first node corresponding to the first cell and all or part of the ancestor nodes of the first node depend on the first group of second nodes corresponding to the first group of second cells and all All or part of the ancestor nodes of the second node in the first group.
实施例10、根据实施例1所述的方法,还包括:针对每个节点存储该节点所在层级的层级类型、该节点的子节点以及该节点的元数据。Embodiment 10. The method according to embodiment 1, further comprising: storing, for each node, the level type of the level where the node is located, the child nodes of the node, and the metadata of the node.
实施例11、根据实施例10所述的方法,还包括:针对每个节点存储该节点所依赖的节点。Embodiment 11. The method according to embodiment 10, further comprising: storing, for each node, the node that the node depends on.
实施例12、根据实施例3所述的方法,其中每个节点的元数据还包括以下附加信息中的一个或多个:该节点的计算公式、与该节点对应的一个或多个单元格的生成时间、该节点的子节点的数量、与该节点对应的一个或多个单元格中的数值、所述数值的单位、所述数值所对应的时间点或时间段、与该节点对应的一个或多个单元格的格式、与该节点对应的一个或多个单元格在电子表格中的位置以及从所述层级结构中的根节点到该节点的路径,并且所述方法还包括:Embodiment 12. The method according to embodiment 3, wherein the metadata of each node further includes one or more of the following additional information: the calculation formula of the node, the information of one or more cells corresponding to the node The generation time, the number of child nodes of the node, the value in one or more cells corresponding to the node, the unit of the value, the time point or time period corresponding to the value, and the one corresponding to the node The format of or more cells, the position of one or more cells corresponding to the node in the spreadsheet, and the path from the root node in the hierarchical structure to the node, and the method further includes:
接收查看所述可视化表示中的一个节点的附加信息的输入;以及Receiving input for viewing additional information of a node in the visual representation; and
响应于接收到所述输入,显示该节点的附加信息。In response to receiving the input, additional information of the node is displayed.
实施例13、根据实施例1所述的方法,还包括:Embodiment 13. The method according to embodiment 1, further comprising:
接收展开所述电子表格的层级的可视化表示中的第三节点的输入;Receiving the input of the third node in the visual representation of the hierarchy of the electronic form expanded;
响应于确定第三节点所在层级的层级类型不是单元格,更新所述可视化表示以显示所述第三节点的子孙节点、所述多个节点中与所述第三节点的子孙节点有依赖关系的其他节点以及所述第三节点的子孙节点和所述其他节点之间的依赖关系;以及In response to determining that the level type of the third node is not a cell, the visual representation is updated to display descendant nodes of the third node, and those of the plurality of nodes that have a dependency relationship with descendant nodes of the third node Other nodes and the dependency relationship between the descendant nodes of the third node and the other nodes; and
响应于确定第三节点所在层级的层级类型是单元格,更新所述可视化表示以显示与第三节点有依赖关系的其他节点以及第三节点与所述其他节点之间的依赖关系。In response to determining that the level type of the third node is a cell, the visual representation is updated to display other nodes that have a dependency relationship with the third node and the dependency relationship between the third node and the other nodes.
实施例14、根据实施例13所述的方法,其中:Embodiment 14. The method according to embodiment 13, wherein:
显示所述多个节点中与所述第三节点的子孙节点有依赖关系的其他节点包括显示所述多个节点中与所述第三节点的子孙节点有依赖关系的所有节点中的部分节点, 并且Displaying other nodes among the plurality of nodes that have a dependency relationship with descendant nodes of the third node includes displaying some of all nodes among the plurality of nodes that have a dependency relationship with descendant nodes of the third node, and
显示与第三节点有依赖关系的其他节点包括显示与第三节点有依赖关系的所有节点中的部分节点。Displaying other nodes that have a dependent relationship with the third node includes displaying some of all nodes that have a dependent relationship with the third node.
实施例15、根据实施例13所述的方法,其中所述第三节点的子孙节点包括第一多个子孙节点,并且其中显示所述第三节点的子孙节点包括以使得所述第一多个子孙节点在所述可视化表示中的相对位置与分别和所述第一多个子孙节点中的每个子孙节点对应的一个或多个单元格在所述电子表格中的相对位置一致的方式来显示所述第一多个子孙节点。 Embodiment 15. The method according to embodiment 13, wherein the descendant nodes of the third node include a first plurality of descendant nodes, and wherein displaying the descendant nodes of the third node includes such that the first plurality The relative position of the descendant node in the visual representation is displayed in a manner consistent with the relative position of one or more cells in the spreadsheet corresponding to each descendant node of the first plurality of descendant nodes. The first plurality of descendant nodes.
实施例16、根据实施例13所述的方法,其中更新所述可视化表示以显示与第三节点有依赖关系的其他节点包括:当其他节点的层级类型是单元格时,以使得所述其他节点在所述可视化表示中的相对位置与分别对应于所述其他节点的单元格在所述电子表格中的相对位置一致的方式来显示所述其他节点。 Embodiment 16. The method according to embodiment 13, wherein updating the visual representation to display other nodes that have a dependency relationship with the third node includes: when the level type of the other node is a cell, so that the other node The other nodes are displayed in a manner consistent with the relative positions in the visual representation and the relative positions of the cells corresponding to the other nodes in the electronic table.
实施例17、根据实施例1所述的方法,其中生成所述电子表格的层级的可视化表示包括显示所述层级结构中的所在层级的层级类型为页的所有节点及所在层级的层级类型为页的所有节点之间的依赖关系。 Embodiment 17. The method according to embodiment 1, wherein generating the visual representation of the hierarchy of the electronic form includes displaying all nodes in the hierarchical structure whose hierarchy type is page and the hierarchy type of the hierarchy is page The dependencies between all nodes.
实施例18、根据实施例1所述的方法,还包括:Embodiment 18. The method according to embodiment 1, further comprising:
响应于接收到可视化与所述电子表格中的一个页对应的节点的请求,显示该节点、该节点所依赖的与所述电子表格中的其他页的部分子孙节点对应的第一组节点、依赖于该节点的与所述电子表格中的其他页的部分子孙节点对应的第二组节点以及该节点与所述第一组节点和所述第二组节点之间的依赖关系。In response to receiving a request to visualize a node corresponding to a page in the electronic form, display the node, the first group of nodes that the node depends on and the first group of nodes corresponding to some descendant nodes of other pages in the electronic form, and The second group of nodes corresponding to some descendant nodes of other pages in the electronic table of the node and the dependency relationship between the node and the first group of nodes and the second group of nodes.
实施例19、根据实施例18所述的方法,还包括:Embodiment 19. The method according to embodiment 18, further comprising:
响应于确定该节点所依赖的与所述电子表格中的其他页的部分子孙节点对应的第一组节点的数量超过第一阈值,隐藏或折叠第一组节点中的部分节点;以及In response to determining that the number of the first group of nodes corresponding to some descendant nodes of other pages in the spreadsheet on which the node depends exceeds the first threshold, hide or collapse part of the first group of nodes; and
响应于确定依赖于该节点的与所述电子表格中的其他页的部分子孙节点对应的第二组节点的数量超过第二阈值,隐藏或折叠第二组节点中的部分节点。In response to determining that the number of the second set of nodes corresponding to some descendant nodes of other pages in the spreadsheet that depends on the node exceeds the second threshold, hide or collapse some of the nodes in the second set.
实施例20、根据实施例1所述的方法,还包括: Embodiment 20. The method according to embodiment 1, further comprising:
响应于接收到可视化与所述电子表格中的第一页和第二页分别对应的第一节点和第二节点的请求,显示第一节点、与第一节点有依赖关系的与所述电子表格中的除了第一页和第二页之外的其他页的部分子孙节点对应的第三组节点及第三组节点与第一节点之间的依赖关系,以及显示第二节点、与第二节点有依赖关系的与所述 电子表格中的除了第一页和第二页之外的其他页的部分子孙节点对应的第四组节点及第四组节点与第二节点之间的依赖关系。In response to receiving a request to visualize the first node and the second node respectively corresponding to the first page and the second page in the electronic form, display the first node and the electronic form that has a dependency relationship with the first node The third group of nodes corresponding to some descendant nodes of pages other than the first page and the second page in and the dependency relationship between the third group of nodes and the first node, and the display of the second node and the second node There is a dependency relationship between the fourth group of nodes corresponding to some descendant nodes of pages other than the first page and the second page in the electronic table, and the dependency relationship between the fourth group of nodes and the second node.
实施例21、根据实施例20所述的方法,还包括显示第一节点的子孙节点、第二节点的子孙节点以及第一节点的子孙节点与第二节点的子孙节点之间的依赖关系。 Embodiment 21. The method according to embodiment 20, further comprising displaying the descendant nodes of the first node, the descendant nodes of the second node, and the dependency relationship between the descendant nodes of the first node and the descendant nodes of the second node.
实施例22、根据实施例1所述的方法,还包括: Embodiment 22. The method according to embodiment 1, further comprising:
响应于接收到可视化与所述电子表格中的一个行对应的节点的请求,显示与该行包括的单元格对应的各个节点以及与所述各个节点中的每个节点有依赖关系的、与所述电子表格中的其他行中的单元格对应的第五组节点及第五组节点与所述各个节点中的每个节点之间的依赖关系。In response to receiving a request to visualize a node corresponding to a row in the electronic table, display each node corresponding to the cell included in the row and the nodes that have a dependency relationship with each of the nodes and are related to each other. The fifth group of nodes corresponding to cells in other rows of the electronic table and the dependency relationship between the fifth group of nodes and each of the nodes are described.
实施例23、根据实施例1所述的方法,其中生成所述电子表格的层级的可视化表示包括以层级目录的形式显示所述电子表格的层级结构。Embodiment 23. The method according to embodiment 1, wherein generating a visual representation of the hierarchy of the electronic form includes displaying the hierarchical structure of the electronic form in the form of a hierarchical directory.
实施例24、根据实施例1所述的方法,其中生成所述电子表格的层级的可视化表示包括:在所述可视化表示中用不同的显示格式来表示属于所述电子表格中的不同的页的节点,以及用不同的节点显示格式来表示节点的不同的层级类型。Embodiment 24. The method according to embodiment 1, wherein generating a visual representation of the hierarchy of the electronic form includes: using different display formats in the visual representation to represent information belonging to different pages in the electronic form Nodes, and use different node display formats to represent different hierarchical types of nodes.
实施例25、根据实施例1所述的方法,还包括: Embodiment 25. The method according to embodiment 1, further comprising:
响应于接收到选中所述可视化表示中的节点的输入,强调显示选中的节点以及与选中的节点有依赖关系的节点。In response to receiving an input of selecting a node in the visual representation, the selected node and the node that has a dependency relationship with the selected node are highlighted.
实施例26、根据实施例12所述的方法,其中显示该节点的附加信息包括显示与该节点对应的一个或多个单元格的缩略图。 Embodiment 26. The method according to embodiment 12, wherein displaying the additional information of the node includes displaying thumbnails of one or more cells corresponding to the node.
实施例27、根据实施例12所述的方法,其中显示该节点的附加信息包括显示表示与该节点存在隶属关系或依赖关系的一个或多个其他节点的链接,并且所述方法还包括:Embodiment 27. The method according to embodiment 12, wherein displaying the additional information of the node includes displaying the link of one or more other nodes that indicate that there is an affiliation relationship or a dependency relationship with the node, and the method further includes:
接收点击所述链接的输入;以及Receive the input of clicking on the link; and
更新或新建可视化表示以显示所述一个或多个其他节点。Update or create a new visual representation to display the one or more other nodes.
实施例28、根据实施例13所述的方法,还包括: Embodiment 28. The method according to embodiment 13, further comprising:
接收收起所述电子表格的层级的可视化表示中的第三节点的输入;Receiving input from the third node in the visual representation of the hierarchy of the electronic form;
响应于确定第三节点所在层级的层级类型不是单元格,更新所述可视化表示以隐藏所述第三节点的子节点、所述多个节点中与所述第三节点的子节点有依赖关系的第一组其他节点以及所述第三节点的子节点和所述第一组其他节点之间的依赖关系,并显示与所述第三节点有依赖关系的第二组其他节点及所述第三节点与第二组 其他节点之间的依赖关系;以及In response to determining that the level type of the third node is not a cell, the visual representation is updated to hide the child nodes of the third node, and those of the plurality of nodes that have a dependency relationship with the child nodes of the third node The dependencies between the first group of other nodes and the child nodes of the third node and the first group of other nodes, and display the second group of other nodes that have a dependency relationship with the third node and the third The dependency between the node and the other nodes in the second group; and
响应于确定第三节点所在层级的层级类型是单元格,更新所述可视化表示以隐藏与第三节点有依赖关系的其他节点以及第三节点与所述其他节点之间的依赖关系。In response to determining that the level type of the third node is a cell, the visual representation is updated to hide other nodes that have a dependency relationship with the third node and the dependency relationship between the third node and the other nodes.
实施例29、根据实施例1所述的方法,还包括: Embodiment 29. The method according to embodiment 1, further comprising:
接收对所述可视化表示的修改;以及Receiving modifications to the visual representation; and
修改所述电子表格,以使得修改后的电子表格与修改后的可视化表示对应。The electronic form is modified so that the modified electronic form corresponds to the modified visual representation.
实施例30、一种用于可视化电子表格的装置,包括:用于执行如实施例1-29中的任一项所述的方法的步骤的部件。Embodiment 30. A device for visualizing an electronic form, comprising: components for executing the steps of the method according to any one of the embodiments 1-29.
实施例31、一种用于可视化电子表格的设备,包括:Embodiment 31. A device for visualizing electronic forms, including:
至少一个处理器;以及At least one processor; and
至少一个存储设备,所述至少一个存储设备存储有指令,当所述指令由所述至少一个处理器执行时使得所述至少一个处理器执行如实施例1-29中的任一项所述的方法。At least one storage device, the at least one storage device stores instructions, and when the instructions are executed by the at least one processor, the at least one processor is caused to execute the steps described in any one of embodiments 1-29 method.
实施例32、一种非瞬态计算机可读存储介质,存储有指令,当所述指令由处理器执行时使得执行如实施例1-29中的任一项所述的方法。Embodiment 32. A non-transitory computer-readable storage medium storing instructions that when executed by a processor causes the method described in any one of the embodiments 1-29 to be executed.
从上述实施例中,本领域技术人员可以清楚地知晓,可以通过软件及必要的硬件来实现本公开,或者可以通过硬件、固件等来实现本公开。基于这种理解,可以部分地以软件形式来实现本公开的实施例。计算机软件可以存储在计算机的可读存储介质中,比如软盘、硬盘、光盘或闪存中。计算机软件包括使得计算机(例如个人计算机、服务站或网络终端)运行根据本公开的各个实施例的方法或其一部分的一系列指令。From the foregoing embodiments, those skilled in the art can clearly know that the present disclosure can be implemented by software and necessary hardware, or the present disclosure can be implemented by hardware, firmware, and the like. Based on this understanding, the embodiments of the present disclosure may be partially implemented in the form of software. Computer software can be stored in a computer readable storage medium, such as a floppy disk, hard disk, optical disk, or flash memory. The computer software includes a series of instructions that cause a computer (for example, a personal computer, a service station, or a network terminal) to execute the method according to various embodiments of the present disclosure or a part thereof.
已经这样描述了本公开,清楚的是,本公开可以以许多种方式变化。这些变化不被视为背离了本公开的精神和范围,而是对于本领域技术人员而言显而易见的所有这种修改意欲被包括在以下权利要求的范围中。Having described the present disclosure as such, it is clear that the present disclosure can be varied in many ways. These changes are not deemed to depart from the spirit and scope of the present disclosure, but all such modifications obvious to those skilled in the art are intended to be included in the scope of the following claims.

Claims (32)

  1. 一种用于可视化电子表格的计算机实现的方法,所述方法包括:A computer-implemented method for visualizing electronic forms, the method comprising:
    获得电子表格的层级结构,其中所述层级结构包括一个或多个层级,所述一个或多个层级具有多个节点,其中每个层级具有至少一个节点并且具有相应的层级类型,每个节点对应于所述电子表格中的一个或多个单元格,其中所述层级结构还包括所述多个节点之间的隶属关系;Obtain the hierarchical structure of the spreadsheet, wherein the hierarchical structure includes one or more levels, the one or more levels have a plurality of nodes, wherein each level has at least one node and has a corresponding level type, and each node corresponds to One or more cells in the electronic table, wherein the hierarchical structure further includes the affiliation relationship between the multiple nodes;
    提取所述多个节点中的每个节点的元数据;Extracting metadata of each node in the plurality of nodes;
    至少基于所述层级结构中的所述多个节点之间的计算关系来建立所述多个节点之间的依赖关系;以及Establishing the dependency relationship among the plurality of nodes based at least on the computational relationship among the plurality of nodes in the hierarchical structure; and
    基于所述电子表格的层级结构、所述元数据和所述多个节点之间的依赖关系来生成所述电子表格的层级的可视化表示。A visual representation of the hierarchy of the electronic form is generated based on the hierarchical structure of the electronic form, the metadata and the dependency relationship between the plurality of nodes.
  2. 根据权利要求1所述的方法,其中建立所述多个节点之间的依赖关系还基于所述多个节点之间的隶属关系。The method according to claim 1, wherein establishing the dependency relationship between the plurality of nodes is further based on the affiliation relationship between the plurality of nodes.
  3. 根据权利要求1所述的方法,其中每个节点的元数据包括描述该节点的具体含义的语义信息,并且当该节点被显示在所述电子表格的层级的可视化表示中时,所述语义信息也被显示在所述可视化表示中。The method according to claim 1, wherein the metadata of each node includes semantic information describing the specific meaning of the node, and when the node is displayed in a hierarchical visual representation of the spreadsheet, the semantic information It is also displayed in the visual representation.
  4. 根据权利要求1所述的方法,其中每个节点的元数据包括用于该节点的计算公式中的运算符。The method according to claim 1, wherein the metadata of each node includes an operator used in the calculation formula of the node.
  5. 根据权利要求1所述的方法,其中,获得电子表格的层级结构包括以下中的一项或多项:The method according to claim 1, wherein obtaining the hierarchical structure of the electronic form comprises one or more of the following:
    识别所述电子表格中的单元格的位置、内容和格式信息中的一项或多项,并且至少基于所述单元格的位置、内容和格式信息中的一项或多项来识别所述电子表格的层级结构;Identify one or more of the location, content, and format information of the cell in the electronic form, and identify the electronic based on at least one or more of the location, content, and format information of the cell The hierarchical structure of the table;
    接收由用户指定的层级结构。Receive the hierarchical structure specified by the user.
  6. 根据权利要求1所述的方法,其中所述电子表格的所述一个或多个层级的层级类型包括以下中的一项或多项:工作簿、页、节、表、块、行、列、区间和单元格,并且其中获得电子表格的层级结构包括以下中的一项或多项:The method according to claim 1, wherein the level type of the one or more levels of the spreadsheet includes one or more of the following: workbook, page, section, table, block, row, column, Intervals and cells, and the hierarchical structure in which the spreadsheet is obtained includes one or more of the following:
    在工作簿的每个页中检测标题,基于标题的位置、内容和格式信息中的一项或多项来确定标题的级别,并且基于标题的级别来将每个页划分为相应级别的节或表;Detect the title in each page of the workbook, determine the level of the title based on one or more of the location, content, and format information of the title, and divide each page into sections or sections of the corresponding level based on the level of the title. table;
    基于每个表的行和列的位置、内容和格式信息中的一项或多项来确定行和列的级别;Determine the level of rows and columns based on one or more of the position, content and format information of the rows and columns of each table;
    基于每个表中的行之间的相关性、列之间的相关性、行的级别、列的级别中的一项或多项将所述行和列划分为块;以及Divide the rows and columns into blocks based on one or more of the correlation between the rows, the correlation between the columns, the level of the rows, and the level of the columns in each table; and
    基于每个行和列中的单元格之间的相关性将单元格划分为区间。The cells are divided into intervals based on the correlation between the cells in each row and column.
  7. 根据权利要求3所述的方法,其中,所述语义信息包括名称、标题、标签和批注中的一个或多个。The method according to claim 3, wherein the semantic information includes one or more of a name, a title, a tag, and an annotation.
  8. 根据权利要求3所述的方法,其中,所述多个节点中的每个节点的语义信息是从与该节点对应的一个或多个单元格的文本内容中提取或生成的或者由用户定义的。The method according to claim 3, wherein the semantic information of each node in the plurality of nodes is extracted or generated from the text content of one or more cells corresponding to the node or defined by the user .
  9. 根据权利要求1所述的方法,其中,建立所述多个节点之间的依赖关系包括:The method according to claim 1, wherein establishing a dependency relationship between the plurality of nodes comprises:
    对于所述层级结构中的每个节点,确定该节点由另外的一个或多个节点计算得到,对于对应于该节点的所述一个或多个第一单元格中的每个第一单元格:For each node in the hierarchical structure, it is determined that the node is calculated by one or more other nodes, and for each first cell of the one or more first cells corresponding to the node:
    确定该第一单元格由对应于所述另外的一个或多个节点的一个或多个第二单元格中的第一组第二单元格计算得到;以及Determining that the first cell is calculated from the first group of second cells in the one or more second cells corresponding to the other one or more nodes; and
    建立如下依赖关系:与该第一单元格对应的第一节点及该第一节点的全部或部分祖先节点依赖于与所述第一组第二单元格各自对应的第一组第二节点及所述第一组第二节点的全部或部分祖先节点。The following dependency relationship is established: the first node corresponding to the first cell and all or part of the ancestor nodes of the first node depend on the first group of second nodes corresponding to the first group of second cells and all All or part of the ancestor nodes of the second node in the first group.
  10. 根据权利要求1所述的方法,还包括:针对每个节点存储该节点所在层级的层级类型、该节点的子节点以及该节点的元数据。The method according to claim 1, further comprising: storing, for each node, the level type of the level where the node is located, the child nodes of the node, and the metadata of the node.
  11. 根据权利要求10所述的方法,还包括:针对每个节点存储该节点所依赖的节点。The method according to claim 10, further comprising: storing, for each node, the node that the node depends on.
  12. 根据权利要求3所述的方法,其中每个节点的元数据还包括以下附加信息中的一个或多个:该节点的计算公式、与该节点对应的一个或多个单元格的生成时间、该节点的子节点的数量、与该节点对应的一个或多个单元格中的数值、所述数值的单位、所述数值所对应的时间点或时间段、与该节点对应的一个或多个单元格的格式、与该节点对应的一个或多个单元格在电子表格中的位置以及从所述层级结构中的根节点到该节点的路径,并且所述方法还包括:The method according to claim 3, wherein the metadata of each node further includes one or more of the following additional information: the calculation formula of the node, the generation time of one or more cells corresponding to the node, the The number of child nodes of the node, the value in one or more cells corresponding to the node, the unit of the value, the time point or time period corresponding to the value, and one or more units corresponding to the node The format of the grid, the position of one or more cells corresponding to the node in the spreadsheet, and the path from the root node in the hierarchy to the node, and the method further includes:
    接收查看所述可视化表示中的一个节点的附加信息的输入;以及Receiving input for viewing additional information of a node in the visual representation; and
    响应于接收到所述输入,显示该节点的附加信息。In response to receiving the input, additional information of the node is displayed.
  13. 根据权利要求1所述的方法,还包括:The method according to claim 1, further comprising:
    接收展开所述电子表格的层级的可视化表示中的第三节点的输入;Receiving the input of the third node in the visual representation of the hierarchy of the electronic form expanded;
    响应于确定第三节点所在层级的层级类型不是单元格,更新所述可视化表示以显示所述第三节点的子孙节点、所述多个节点中与所述第三节点的子孙节点有依赖关系的其他节点以及所述第三节点的子孙节点和所述其他节点之间的依赖关系;以及In response to determining that the level type of the third node is not a cell, the visual representation is updated to display descendant nodes of the third node, and those of the plurality of nodes that have a dependency relationship with descendant nodes of the third node Other nodes and the dependencies between the descendant nodes of the third node and the other nodes; and
    响应于确定第三节点所在层级的层级类型是单元格,更新所述可视化表示以显示与第三节点有依赖关系的其他节点以及第三节点与所述其他节点之间的依赖关系。In response to determining that the level type of the third node is a cell, the visual representation is updated to display other nodes that have a dependency relationship with the third node and the dependency relationship between the third node and the other nodes.
  14. 根据权利要求13所述的方法,其中:The method according to claim 13, wherein:
    显示所述多个节点中与所述第三节点的子孙节点有依赖关系的其他节点包括显示所述多个节点中与所述第三节点的子孙节点有依赖关系的所有节点中的部分节点,并且Displaying other nodes among the plurality of nodes that have a dependency relationship with descendant nodes of the third node includes displaying some of all nodes among the plurality of nodes that have a dependency relationship with descendant nodes of the third node, and
    显示与第三节点有依赖关系的其他节点包括显示与第三节点有依赖关系的所有节点中的部分节点。Displaying other nodes that have a dependent relationship with the third node includes displaying some of all nodes that have a dependent relationship with the third node.
  15. 根据权利要求13所述的方法,其中所述第三节点的子孙节点包括第一多个子孙节点,并且其中显示所述第三节点的子孙节点包括以使得所述第一多个子孙节 点在所述可视化表示中的相对位置与分别和所述第一多个子孙节点中的每个子孙节点对应的一个或多个单元格在所述电子表格中的相对位置一致的方式来显示所述第一多个子孙节点。The method according to claim 13, wherein the descendant nodes of the third node include a first plurality of descendant nodes, and wherein displaying the descendant nodes of the third node includes such that the first plurality of descendant nodes are in the The relative position in the visual representation is consistent with the relative position in the electronic table of one or more cells corresponding to each descendant node of the first plurality of descendant nodes to display the first Multiple descendant nodes.
  16. 根据权利要求13所述的方法,其中更新所述可视化表示以显示与第三节点有依赖关系的其他节点包括:当其他节点的层级类型是单元格时,以使得所述其他节点在所述可视化表示中的相对位置与分别对应于所述其他节点的单元格在所述电子表格中的相对位置一致的方式来显示所述其他节点。The method according to claim 13, wherein updating the visual representation to display other nodes that have a dependency relationship with the third node comprises: when the hierarchical type of the other node is a cell, so that the other node is in the visualization The other nodes are displayed in a manner that the relative positions in the representation are consistent with the relative positions of the cells respectively corresponding to the other nodes in the electronic table.
  17. 根据权利要求1所述的方法,其中生成所述电子表格的层级的可视化表示包括显示所述层级结构中的所在层级的层级类型为页的所有节点及所在层级的层级类型为页的所有节点之间的依赖关系。The method according to claim 1, wherein generating a visual representation of the hierarchy of the spreadsheet comprises displaying all nodes in the hierarchy whose hierarchy type is page and among all nodes whose hierarchy type is page. Dependence between.
  18. 根据权利要求1所述的方法,还包括:The method according to claim 1, further comprising:
    响应于接收到可视化与所述电子表格中的一个页对应的节点的请求,显示该节点、该节点所依赖的与所述电子表格中的其他页的部分子孙节点对应的第一组节点、依赖于该节点的与所述电子表格中的其他页的部分子孙节点对应的第二组节点以及该节点与所述第一组节点和所述第二组节点之间的依赖关系。In response to receiving a request to visualize a node corresponding to a page in the electronic form, display the node, the first group of nodes that the node depends on and the first group of nodes corresponding to some descendant nodes of other pages in the electronic form, and The second group of nodes corresponding to some descendant nodes of other pages in the electronic table of the node and the dependency relationship between the node and the first group of nodes and the second group of nodes.
  19. 根据权利要求18所述的方法,还包括:The method of claim 18, further comprising:
    响应于确定该节点所依赖的与所述电子表格中的其他页的部分子孙节点对应的第一组节点的数量超过第一阈值,隐藏或折叠第一组节点中的部分节点;以及In response to determining that the number of the first group of nodes corresponding to some descendant nodes of other pages in the spreadsheet on which the node depends exceeds the first threshold, hide or collapse part of the first group of nodes; and
    响应于确定依赖于该节点的与所述电子表格中的其他页的部分子孙节点对应的第二组节点的数量超过第二阈值,隐藏或折叠第二组节点中的部分节点。In response to determining that the number of the second set of nodes corresponding to some descendant nodes of other pages in the spreadsheet that depends on the node exceeds the second threshold, hide or collapse some of the nodes in the second set.
  20. 根据权利要求1所述的方法,还包括:The method according to claim 1, further comprising:
    响应于接收到可视化与所述电子表格中的第一页和第二页分别对应的第一节点和第二节点的请求,显示第一节点、与第一节点有依赖关系的与所述电子表格中的除了第一页和第二页之外的其他页的部分子孙节点对应的第三组节点及第三组节点与第一节点之间的依赖关系,以及显示第二节点、与第二节点有依赖关系的与所述 电子表格中的除了第一页和第二页之外的其他页的部分子孙节点对应的第四组节点及第四组节点与第二节点之间的依赖关系。In response to receiving a request to visualize the first node and the second node respectively corresponding to the first page and the second page in the electronic form, display the first node and the electronic form that has a dependency relationship with the first node The third group of nodes corresponding to some descendant nodes of pages other than the first page and the second page in and the dependency relationship between the third group of nodes and the first node, and the display of the second node and the second node There is a dependency relationship between the fourth group of nodes corresponding to some descendant nodes of pages other than the first page and the second page in the electronic table, and the dependency relationship between the fourth group of nodes and the second node.
  21. 根据权利要求20所述的方法,还包括显示第一节点的子孙节点、第二节点的子孙节点以及第一节点的子孙节点与第二节点的子孙节点之间的依赖关系。The method according to claim 20, further comprising displaying the descendant nodes of the first node, the descendant nodes of the second node, and the dependency relationship between the descendant nodes of the first node and the descendant nodes of the second node.
  22. 根据权利要求1所述的方法,还包括:The method according to claim 1, further comprising:
    响应于接收到可视化与所述电子表格中的一个行对应的节点的请求,显示与该行包括的单元格对应的各个节点以及与所述各个节点中的每个节点有依赖关系的、与所述电子表格中的其他行中的单元格对应的第五组节点及第五组节点与所述各个节点中的每个节点之间的依赖关系。In response to receiving a request to visualize a node corresponding to a row in the electronic table, display each node corresponding to the cell included in the row and the nodes that have a dependency relationship with each of the nodes and are related to each other. The fifth group of nodes corresponding to cells in other rows of the electronic table and the dependency relationship between the fifth group of nodes and each of the nodes.
  23. 根据权利要求1所述的方法,其中生成所述电子表格的层级的可视化表示包括以层级目录的形式显示所述电子表格的层级结构。The method of claim 1, wherein generating a visual representation of the hierarchy of the electronic form includes displaying the hierarchy of the electronic form in the form of a hierarchical catalog.
  24. 根据权利要求1所述的方法,其中生成所述电子表格的层级的可视化表示包括:在所述可视化表示中用不同的显示格式来表示属于所述电子表格中的不同的页的节点,以及用不同的节点显示格式来表示节点的不同的层级类型。The method according to claim 1, wherein generating a visual representation of the hierarchy of the electronic form comprises: using different display formats in the visual representation to represent nodes belonging to different pages in the electronic form, and using Different node display formats represent different levels of nodes.
  25. 根据权利要求1所述的方法,还包括:The method according to claim 1, further comprising:
    响应于接收到选中所述可视化表示中的节点的输入,强调显示选中的节点以及与选中的节点有依赖关系的节点。In response to receiving an input of selecting a node in the visual representation, the selected node and the node that has a dependency relationship with the selected node are highlighted.
  26. 根据权利要求12所述的方法,其中显示该节点的附加信息包括显示与该节点对应的一个或多个单元格的缩略图。The method according to claim 12, wherein displaying the additional information of the node comprises displaying thumbnails of one or more cells corresponding to the node.
  27. 根据权利要求12所述的方法,其中显示该节点的附加信息包括显示表示与该节点存在隶属关系或依赖关系的一个或多个其他节点的链接,并且所述方法还包括:The method according to claim 12, wherein displaying the additional information of the node comprises displaying links of one or more other nodes that indicate that there is an affiliation or dependency relationship with the node, and the method further comprises:
    接收点击所述链接的输入;以及Receive the input of clicking on the link; and
    更新或新建可视化表示以显示所述一个或多个其他节点。Update or create a new visual representation to display the one or more other nodes.
  28. 根据权利要求13所述的方法,还包括:The method according to claim 13, further comprising:
    接收收起所述电子表格的层级的可视化表示中的第三节点的输入;Receiving input from the third node in the visual representation of the hierarchy of the electronic form;
    响应于确定第三节点所在层级的层级类型不是单元格,更新所述可视化表示以隐藏所述第三节点的子节点、所述多个节点中与所述第三节点的子节点有依赖关系的第一组其他节点以及所述第三节点的子节点和所述第一组其他节点之间的依赖关系,并显示与所述第三节点有依赖关系的第二组其他节点及所述第三节点与第二组其他节点之间的依赖关系;以及In response to determining that the level type of the third node is not a cell, the visual representation is updated to hide the child nodes of the third node, and those of the plurality of nodes that have a dependency relationship with the child nodes of the third node The dependencies between the first group of other nodes and the child nodes of the third node and the first group of other nodes, and display the second group of other nodes that have a dependency relationship with the third node and the third The dependency between the node and the other nodes in the second group; and
    响应于确定第三节点所在层级的层级类型是单元格,更新所述可视化表示以隐藏与第三节点有依赖关系的其他节点以及第三节点与所述其他节点之间的依赖关系。In response to determining that the level type of the third node is a cell, the visual representation is updated to hide other nodes that have a dependency relationship with the third node and the dependency relationship between the third node and the other nodes.
  29. 根据权利要求1所述的方法,还包括:The method according to claim 1, further comprising:
    接收对所述可视化表示的修改;以及Receiving modifications to the visual representation; and
    修改所述电子表格,以使得修改后的电子表格与修改后的可视化表示对应。The electronic form is modified so that the modified electronic form corresponds to the modified visual representation.
  30. 一种用于可视化电子表格的装置,包括:用于执行如权利要求1-29中的任一项所述的方法的步骤的部件。An apparatus for visualizing electronic forms, comprising: components for performing the steps of the method according to any one of claims 1-29.
  31. 一种用于可视化电子表格的设备,包括:A device for visualizing electronic forms, including:
    至少一个处理器;以及At least one processor; and
    至少一个存储设备,所述至少一个存储设备存储有指令,当所述指令由所述至少一个处理器执行时使得所述至少一个处理器执行如权利要求1-29中的任一项所述的方法。At least one storage device, the at least one storage device stores instructions, and when the instructions are executed by the at least one processor, the at least one processor is caused to execute the method according to any one of claims 1-29 method.
  32. 一种非瞬态计算机可读存储介质,存储有指令,当所述指令由处理器执行时使得执行如权利要求1-29中的任一项所述的方法。A non-transitory computer-readable storage medium storing instructions, which when executed by a processor, causes the method according to any one of claims 1-29 to be executed.
PCT/CN2020/089617 2019-10-15 2020-05-11 Method, apparatus and device for visualizing spreadsheet, and storage medium WO2021073076A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910977985.6 2019-10-15
CN201910977985.6A CN110728124B (en) 2019-10-15 2019-10-15 Method, apparatus, device and storage medium for visualizing electronic forms

Publications (1)

Publication Number Publication Date
WO2021073076A1 true WO2021073076A1 (en) 2021-04-22

Family

ID=69221294

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/089617 WO2021073076A1 (en) 2019-10-15 2020-05-11 Method, apparatus and device for visualizing spreadsheet, and storage medium

Country Status (2)

Country Link
CN (1) CN110728124B (en)
WO (1) WO2021073076A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110728124B (en) * 2019-10-15 2021-01-08 深圳逻辑汇科技有限公司 Method, apparatus, device and storage medium for visualizing electronic forms
CN111966683A (en) * 2020-08-14 2020-11-20 北京致远互联软件股份有限公司 Visual form map establishing method and device, electronic equipment and storage medium
CN112200822A (en) * 2020-10-28 2021-01-08 广东南方数码科技股份有限公司 Table reconstruction method and device, computer equipment and storage medium
CN113420537B (en) * 2021-06-22 2023-01-31 平安科技(深圳)有限公司 Method, device, equipment and storage medium for processing electronic form data

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1811754A (en) * 2005-01-24 2006-08-02 微软公司 Diagrammatic access and arrangement of data
US20170255608A1 (en) * 2016-03-01 2017-09-07 Business Objects Software, Ltd. Dynamic disaggregation and aggregation of spreadsheet data
CN107533570A (en) * 2015-10-23 2018-01-02 甲骨文国际公司 System and method for inferring cube bulk-mode automatically from list data to be used in multidimensional data lab environment
US20180349463A1 (en) * 2017-05-31 2018-12-06 HarperDB, Inc. Systems, methods, and apparatus for hierarchical database
US10191897B1 (en) * 2016-04-19 2019-01-29 Workday, Inc. Data flow view for a spreadsheet
CN110728124A (en) * 2019-10-15 2020-01-24 深圳逻辑汇科技有限公司 Method, apparatus, device and storage medium for visualizing electronic forms

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6976212B2 (en) * 2001-09-10 2005-12-13 Xerox Corporation Method and apparatus for the construction and use of table-like visualizations of hierarchic material
US7698287B2 (en) * 2004-09-30 2010-04-13 Microsoft Corporation Design of spreadsheet functions for working with tables of data
US8601383B2 (en) * 2005-09-09 2013-12-03 Microsoft Corporation User interface for creating a spreadsheet data summary table
CN101425007B (en) * 2007-10-29 2012-09-05 珠海金山软件有限公司 Method capable of structuredly displaying electronic table function cue
CN102591968B (en) * 2011-12-31 2016-03-16 深圳联友科技有限公司 A kind of implementation method of expanding form and expansion engine
US9772988B2 (en) * 2015-02-27 2017-09-26 Microsoft Technology Licensing, Llc Finding unique formula sets in spreadsheets
CN106339365A (en) * 2016-08-26 2017-01-18 深圳市永兴元科技有限公司 Report form management method
CN107544806B (en) * 2017-09-04 2018-11-09 江苏中威科技软件系统有限公司 Visualize list method for drafting
KR101893475B1 (en) * 2018-03-14 2018-10-04 마인드서프 주식회사 method of providing network status monitor based on artificial intelligence for multi-layer representation

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1811754A (en) * 2005-01-24 2006-08-02 微软公司 Diagrammatic access and arrangement of data
CN107533570A (en) * 2015-10-23 2018-01-02 甲骨文国际公司 System and method for inferring cube bulk-mode automatically from list data to be used in multidimensional data lab environment
US20170255608A1 (en) * 2016-03-01 2017-09-07 Business Objects Software, Ltd. Dynamic disaggregation and aggregation of spreadsheet data
US10191897B1 (en) * 2016-04-19 2019-01-29 Workday, Inc. Data flow view for a spreadsheet
US20180349463A1 (en) * 2017-05-31 2018-12-06 HarperDB, Inc. Systems, methods, and apparatus for hierarchical database
CN110728124A (en) * 2019-10-15 2020-01-24 深圳逻辑汇科技有限公司 Method, apparatus, device and storage medium for visualizing electronic forms

Also Published As

Publication number Publication date
CN110728124A (en) 2020-01-24
CN110728124B (en) 2021-01-08

Similar Documents

Publication Publication Date Title
WO2021073076A1 (en) Method, apparatus and device for visualizing spreadsheet, and storage medium
JP6185127B2 (en) Electronic document search method and electronic document search graphical display method
US10261661B2 (en) Reference position in viewer for higher hierarchical level
US10354002B2 (en) Interaction relationship building and explorer for dashboard
Heer et al. Graphical histories for visualization: Supporting analysis, communication, and evaluation
JP5416983B2 (en) Folder management apparatus, folder management method, and folder management program
WO2021073077A1 (en) Method, apparatus and device for automatically generating spreadsheet, and storage medium
US8677279B2 (en) Visual hierarchy explorer
US10475218B2 (en) Graph expansion mini-view
US8743122B2 (en) Interactive visualization for exploring multi-modal, multi-relational, and multivariate graph data
US8281238B2 (en) System, method and computer program for creating and manipulating data structures using an interactive graphical interface
CN104267947B (en) A kind of editor's method of pop-up picture and pop-up picture editor's device
JP2015038749A (en) Multi-condition filtering of interactive summary table
Maguire et al. Visual compression of workflow visualizations with automated detection of macro motifs
CN110688109A (en) Model editing system and creation method thereof
Wybrow et al. Interaction in the visualization of multivariate networks
CN104239606B (en) The UML modeling methods and device of touch screen are supported under Web environment
JP2013206020A (en) Task flow generation support system and task flow generation method
CN104346174A (en) Method for describing and reproducing on-line vector diagram modeling process
Diehl et al. Multivariate networks in software engineering
JP7287486B2 (en) Attachment and restoration of sticky notes to visualized data
Chhetri et al. Erelt: A faster alternative to the list-based interfaces for tree exploration and searching in mobile devices
JP3988900B2 (en) Document processing apparatus and program storage medium thereof
Berger et al. Towards Understanding Edit Histories of Multivariate Graphs.
JP2018092466A (en) Modification-originated influence examination supporting apparatus, modification-originated influence examination supporting method and modification-originated influence examination supporting program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20876863

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 180822)

122 Ep: pct application non-entry in european phase

Ref document number: 20876863

Country of ref document: EP

Kind code of ref document: A1