Data tracing method and related device

By shielding the complex logic of multidimensional calculation scripts in a multidimensional database, using metadata to determine the data reading range and storing it in an isolated environment for traceability, the problem of data traceability in complex scenarios in existing technologies is solved, achieving efficient data traceability and database security.

WO2026208154A9PCT designated stage Publication Date: 2026-11-26HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/132467
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2025-03-31
Filing Date
2025-11-04
Publication Date
2026-11-26

AI Technical Summary

Technical Problem

Existing data traceability solutions are insufficient to meet the needs of complex scenarios, have limited coverage, and low availability. In particular, in multidimensional databases, solutions based on metadata analysis or script analysis have low performance and limited coverage.

Method used

This paper provides a data tracing method that shields the complex calculation logic of multidimensional calculation scripts. By obtaining the meta-information of the cells to be traced in the multidimensional database, the data reading range is determined, and the data is stored in an isolated environment for tracing. Dynamic and fixed-dimensional metrics are used for filtering, and the multidimensional calculation script is rewritten to record the read data, thus avoiding the impact on the multidimensional database.

Benefits of technology

It enables data traceability in complex scenarios, covers a wide range of scenarios, has high availability, simplifies the data traceability process, and ensures the security of the multidimensional database and the normal operation of business.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025132467_26112026_PF_FP_ABST
    Figure CN2025132467_26112026_PF_FP_ABST
Patent Text Reader

Abstract

A data tracing method, comprising: acquiring meta information of a first cell to be traced in a multi-dimensional database, the meta information comprising measurement values of the first cell in a plurality of dimensions; determining a data read range on the basis of the meta information of the first cell, the data read range comprising a range of data read to calculate data in the first cell; storing the data in the data read range in an isolation environment of the multi-dimensional database, the isolation environment being used for limiting an operation on the multi-dimensional database; and performing data tracing on the basis of an execution result of the data in the data read range and the data in the first cell, so as to obtain a data tracing result.
Need to check novelty before this filing date? Find Prior Art

Description

A data traceability method and related equipment

[0001] This application claims priority to Chinese Patent Application No. 202510400254.0, filed with the State Intellectual Property Office of China on March 31, 2025, entitled "A Data Traceability Method and Related Equipment", the entire contents of which are incorporated herein by reference. Technical Field

[0002] This application relates to the field of database technology, and in particular to a data traceability method, a data analysis system, a computing device cluster, a computer-readable storage medium, and a computer program product. Background Technology

[0003] With the advent of the information age, more and more users (such as enterprises or other groups, institutions, and organizations) are choosing to store data in databases. Taking financial data as an example, when preparing financial statements, accountants and other business personnel can perform operations such as entering journal entries, modifying forms, or calculating reports on a company's financial statements in a financial reporting system (also referred to as a financial reporting system or system). Correspondingly, the data can be stored and calculated in a multidimensional database.

[0004] When users (such as business personnel) discover abnormal data in several cells of the database, they can trace the cells that the abnormal cells (e.g., the cells storing the abnormal data) depend on to determine whether the data in the cells the abnormal cells depend on is also abnormal, thereby analyzing the cause of the anomaly. The cause of the anomaly can include abnormal source data entry or abnormal multidimensional calculation scripts.

[0005] The industry offers various data traceability solutions, including those based on metadata analysis and those based on scripts. However, these solutions are typically suitable for simple scenarios where the business logic is straightforward or the data's lineage originates from scripts. They struggle to meet the needs of complex scenarios, have limited coverage, and low usability. Summary of the Invention

[0006] This application provides a data traceability method that shields the complex computational logic of the multidimensional calculation script itself. It only requires focusing on the data needed to calculate the data in the first cell and recording the read data, making data traceability possible in complex scenarios. This method can cover a wide range of scenarios and has high availability. This application also provides a data analysis system, computing device cluster, computer-readable storage medium, and computer program product corresponding to the above method.

[0007] Firstly, this application provides a data tracing method. This method can be executed by a data analysis system. The data analysis system can be a software system for data analysis, such as a data analysis engine. This software system can be a standalone software system, or integrated into other software systems as a plugin, component, functional module, app, or service. The software system can be provided to the customer as a software package for user deployment. Alternatively, the software system can be provided to the user as a cloud service. In some possible implementations, the aforementioned data analysis system may also include a hardware system. For example, the data analysis system may include a cluster of computing devices, which executes the data tracing method of this application when running.

[0008] Specifically, the data analysis system can obtain the metadata of the first cell to be traced in the multidimensional database. This metadata includes the measure values ​​of the first cell across multiple dimensions. Then, based on the metadata of the first cell, the system can determine the data reading range, which includes the range of data (or dependent data range) calculated from the data in the first cell. Next, the system stores the data within the data reading range in an isolated environment of the multidimensional database. This isolated environment restricts operations on the multidimensional database. Finally, the system can perform data tracing based on the execution results of the data within the data reading range and the data in the first cell to obtain the data tracing result.

[0009] This method shields the complex computational logic of the multidimensional calculation script itself. For the first cell to be traced in the multidimensional database, it only needs to focus on the data that needs to be read to obtain the data in the first cell and record the read data. This makes data tracing in complex scenarios possible, can cover more scenarios, and solves the problems of low performance and limited scenario coverage of data tracing schemes based on metadata analysis or script analysis. It has high availability.

[0010] In some possible implementations, the data analysis system can determine the data reading range based on the metric value of the first cell in the dynamic dimension. The data reading range is represented by the metric value of the second cell in the dynamic dimension. Here, the dynamic dimension refers to a dimension whose members or structure change dynamically based on data or business rules during system operation. For example, in an e-commerce system, product categories may constantly change due to factors such as the listing of new products and the delisting of old products; product categories can be considered a dynamic dimension. The second cell can be a cell that the first cell depends on, such as the cell containing the data read from the data in the first cell. The data analysis system can determine the metric value of the second cell in the dynamic dimension based on the metric value of the first cell in the dynamic dimension, combined with the calculation formula of the first cell.

[0011] This method uses dynamic dimension metrics to filter data in order to determine the range of data to be read, laying the foundation for subsequent data tracing.

[0012] In some possible implementations, the data reading scope includes at least one shard of the multidimensional database. A shard can include multiple cells with the same metric value in at least one dimension (e.g., a dynamic dimension). Specifically, at least one shard is obtained by partitioning the multidimensional database according to the metric value of a second cell in the dynamic dimension. In practice, the data analysis system can determine the shard containing the dependent data of the first cell (such as the data in the second cell) from multiple shards based on the metric value of the first cell in the dynamic dimension, and the data reading scope includes the shard containing the second cell.

[0013] This method determines at least one fragment in the multidimensional database as the data reading range based on the dynamic dimension metric, which facilitates the recording of data read during multidimensional calculation and lays the foundation for data traceability.

[0014] In some possible implementations, at least one shard includes a first shard and a second shard. The data analysis system can store the data in the first shard as a first array in an isolated environment, and store the data in the second shard as a second array in an isolated environment; then, it can perform calculations based on the first and second arrays to obtain the execution results.

[0015] This method avoids contaminating the data in the multidimensional database by transferring the data in the shards to an isolated environment for computation in the form of an array, thereby avoiding impact on data traceability and normal business operations.

[0016] In some possible implementations, multiple dimensions include fixed dimensions. Accordingly, the data analysis system can use the measure value of the first cell in the fixed dimension as a filter condition, and store the first data in the first slice that meets the filter condition as a first array in the isolation environment; and use the measure value of the first cell in the fixed dimension as a filter condition, and store the second data in the second slice as a second array in the isolation environment.

[0017] In this way, it is possible to accurately filter data by combining fixed-dimensional metrics, narrow the data reading range, and improve traceability efficiency.

[0018] In some possible implementations, the execution results of the data within the data retrieval range are not stored in the multidimensional database. This method ensures the security of the multidimensional database by not storing the execution results there.

[0019] In some possible implementations, the data analysis system can execute a multidimensional calculation script rewritten based on the metadata of the first cell, storing the data within the data reading range in an isolated environment of a multidimensional database.

[0020] This method simplifies the data traceability process by rewriting the multidimensional calculation script and then executing the rewritten multidimensional calculation script to record the read data in an isolated environment such as a sandbox.

[0021] In some possible implementations, the multidimensional calculation script, rewritten based on the metadata of the first cell, masks the writing of data to the multidimensional database. For example, the rewritten multidimensional calculation script can use comments to mask write operations, thereby shielding data writing to the multidimensional database. This method ensures the security of the multidimensional database by shielding the write operation to the multidimensional database at the script level.

[0022] Secondly, this application provides a data analysis system, including various modules for performing the data tracing method in the first aspect or any possible implementation of the first aspect.

[0023] Thirdly, this application provides a computing device cluster. The computing device cluster includes at least one computing device, which includes at least one processor and at least one memory. The at least one processor and the at least one memory communicate with each other. The at least one processor is configured to execute instructions stored in the at least one memory to cause the computing device or the computing device cluster to perform the data tracing method as described in the first aspect or any implementation thereof.

[0024] Fourthly, this application provides a computer-readable storage medium storing instructions that instruct a computing device or a cluster of computing devices to perform the data tracing method described in the first aspect or any implementation thereof.

[0025] Fifthly, this application provides a computer program product containing instructions that, when run on a computing device or a cluster of computing devices, causes the computing device or cluster of computing devices to execute the data tracing method described in the first aspect or any implementation thereof.

[0026] Based on the implementation methods provided in the above aspects, this application can be further combined to provide more implementation methods. Attached Figure Description

[0027] Figure 1 is a schematic diagram of the architecture of a data analysis system provided in this application;

[0028] Figure 2 is a schematic diagram of data storage in a multidimensional database provided in this application;

[0029] Figure 3 is a schematic diagram of the script logic of a multidimensional calculation script for a multidimensional database provided in this application;

[0030] Figure 4 is a flowchart of a data traceability method provided in this application;

[0031] Figure 5 is a flowchart illustrating a data traceability method provided in this application;

[0032] Figure 6 is a schematic diagram of a syntax tree for constructing a multidimensional computation script provided in this application;

[0033] Figure 7 is a schematic diagram of a rewritten multidimensional calculation script provided in this application;

[0034] Figure 8 is a schematic diagram of data traceability in a tax scenario provided in this application;

[0035] Figure 9 is a schematic diagram of the structure of a computing device provided in this application;

[0036] Figure 10 is a schematic diagram of the structure of a computing device cluster provided in this application;

[0037] Figure 11 is a schematic diagram of another computing device cluster provided in this application;

[0038] Figure 12 is a schematic diagram of another computing device cluster provided in this application. Detailed Implementation

[0039] The terms "first" and "second" in this application are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature.

[0040] First, let me introduce some of the technical terms used in this application.

[0041] A database (DB) is a repository for storing structured data. A database stores data sets independent of applications (APPs) with minimal redundancy, and these data sets are shared by multiple users. A database can include multiple tablespaces. Tablespaces are used to uniformly manage the data files within a space. A tablespace can contain one or more data files, and each data file belongs to a tablespace.

[0042] A multidimensional database is a type of database that organizes and stores data using a multidimensional data model. A multidimensional database views data as a cubic structure composed of multiple dimensions and measures. Each dimension represents a specific perspective or attribute of the data, while the measures are the data values ​​that need to be analyzed and processed. For example, in a multidimensional database for sales data analysis, there might be dimensions such as time, region, and product, while sales revenue and sales volume are the measures.

[0043] As business systems become increasingly feature-rich and their business logic more complex, the use of multidimensional databases for data storage has become a trend. For example, financial reporting systems (or simply financial reporting systems) can use multidimensional databases to store financial data. Specifically, accountants can use financial reporting systems to perform operations such as journal entries, form modifications, and report calculations on the company's financial statements. Correspondingly, the company's financial data can be stored and calculated within a multidimensional database.

[0044] With the advent of the information age, more and more users (such as enterprises or other groups, institutions, and organizations) are choosing to store data in databases. Taking financial data as an example, when preparing financial statements, accountants and other business personnel can perform operations such as journal entry, form modification, or report calculation on a company's financial statements in a financial statement system (also referred to as a financial reporting system or system). Correspondingly, the data can be stored and calculated in a multidimensional database.

[0045] When users (such as business personnel) discover abnormal data in several cells of the database, they can trace the data to determine the cause of the anomaly. This could be due to an error in the source data entry or a problem with the multidimensional calculation script. The multidimensional calculation script can be a domain-specific language (DSL) code defined by the multidimensional database vendor. It is used to perform various complex calculation tasks within the multidimensional database environment to achieve data aggregation, transformation, and analysis.

[0046] Data traceability can include metadata-based data traceability schemes and script-based data traceability schemes. These will be explained in detail below.

[0047] Metadata-driven data traceability solutions collect, parse, and model metadata information to construct relationship graphs between data entities, enabling the tracking and management of data sources, flows, and dependencies. While suitable for scenarios with simple business logic, metadata management is complex and coverage is limited.

[0048] Script-based data tracing solutions parse SQL scripts (such as multidimensional calculation scripts written in SQL) using a Structured Query Language (SQL) parser, construct an abstract syntax tree (AST), and then use the AST to parse the relationships between data nodes and task nodes. Script-based data tracing solutions are suitable for simple scenarios where data relationships originate from scripts, but they suffer from low performance and limited coverage.

[0049] To address the shortcomings of the aforementioned solutions, which are applicable only to simple scenarios with straightforward business logic or data originating from scripts, and thus unable to meet the needs of complex scenarios, offering limited coverage and low availability, this application provides a data tracing method. This method shields the complex computational logic of the multidimensional calculation script itself. For the first cell to be traced in the multidimensional database, it only needs to focus on the data required to calculate the data in the first cell and record the read data. This makes data tracing possible in complex scenarios, covers a wider range of scenarios, and has high availability. Furthermore, this method simplifies the data tracing process by rewriting and executing the multidimensional calculation script to record dependent data.

[0050] This method can be applied to data analysis systems. A data analysis system can be a software system for data analysis, such as a data analysis engine. This software system can be a standalone system or integrated into other software systems as a plugin, component, functional module, app, or service. The software system can be provided to the customer as a software package for user deployment. Alternatively, the software system can be provided to the user as a cloud service. In some possible implementations, the aforementioned data analysis system may also include a hardware system. For example, the data analysis system may include a cluster of computing devices, which executes the data tracing method of this application when the cluster is running.

[0051] To make the technical solution of this application clearer and easier to understand, the system architecture of the data analysis system of this application is described below with reference to the accompanying drawings.

[0052] Referring to Figure 1, which shows a schematic diagram of the architecture of a data analysis system, the data analysis system 10 includes an acquisition module 102 and a traceability module 104. The acquisition module 102 and the traceability module 104 are described below.

[0053] The acquisition module 102 is used to acquire the metadata of the first cell to be traced in the multidimensional database. The first cell to be traced can be a cell where abnormal data has been detected. The metadata includes the measurement values ​​of the first cell in multiple dimensions. Furthermore, the metadata can also include the calculation formula of the first cell. For ease of understanding, a sales business example is used. As shown in Figure 2, the first cell stores abnormal data. The metadata of the first cell includes: {Product, P3}, {Subject, Revenue}, {Region, Shenzhen}, indicating that the revenue of product P3 in the Shenzhen region is abnormal.

[0054] The tracing module 104 is used to determine the data reading range based on the metadata of the first cell. The data reading range includes the range of data read from the data calculated in the first cell, also known as the range of dependent data. The tracing module 104 is also used to store the data within the data reading range in the isolated environment of the multidimensional database, and to perform data tracing based on the execution results of the data within the data reading range and the data in the first cell to obtain the data tracing result. The isolated environment is used to restrict operations on the multidimensional database. In some examples, the isolated environment may include, but is not limited to, a sandbox, such as a multidimensional database sandbox. A sandbox is a data virtualization technology that provides users with a secure, isolated environment for running programs or testing software. Modifying data in the sandbox only affects the sandbox environment and will not affect the real system environment (e.g., the real multidimensional database environment).

[0055] The traceability module 104 is used to rewrite the multidimensional calculation script based on the metadata of the first cell provided by the acquisition module 102, execute the multidimensional calculation script rewritten based on the metadata of the first cell, and store the data within the data reading range in the isolated environment of the multidimensional database to achieve data traceability. Furthermore, the multidimensional calculation script rewritten based on the metadata of the first cell shields the writing of data to the multidimensional database.

[0056] The following example illustrates how to rewrite a multidimensional calculation script using a sales business scenario.

[0057] The script logic of the multidimensional calculation script for the multidimensional database shown in Figure 2 is shown in Figure 3, including the following steps:

[0058] 1. Read the sales volume segments and store them in an ordered array;

[0059] 2. Read the unit price slices and store them into an ordered array;

[0060] 3. Multiply the two sorted arrays and store the result in a multidimensional database.

[0061] Steps 1 and 2 can be executed in parallel or sequentially according to a set order. In this script logic, the dynamic dimension is the subject, and the fixed dimensions are product and region. A dynamic dimension refers to a dimension whose members or structure change dynamically based on data or business rules during system operation. For example, in an e-commerce system, product categories may constantly change due to factors such as the listing of new products, the delisting of old products, and adjustments to product classification strategies; this product category dimension can be considered a dynamic dimension. A fixed dimension refers to a dimension whose members or structure are relatively stable and do not easily change during system design and operation. For example, in an enterprise's employee information management system, the employee gender dimension is usually fixed, generally with only two members: "male" and "female," and does not frequently change with business operations.

[0062] The script logic of the multidimensional calculation script, rewritten based on the metadata of the first cell: {Product, P3}, {Subject, Revenue}, and {Region, Shenzhen}, is as follows:

[0063] 1. Read the sales data shards (e.g., use P3, Shenzhen for filtering, i.e., fixed-dimensional filtering) and store them in an ordered array. Record the data in the ordered array into the sandbox of the multidimensional database.

[0064] 2. Read the unit price slice (e.g., use P3, Shenzhen for filtering, i.e., fixed-dimensional filtering) and store it into an ordered array. Record the data of the ordered array into the sandbox of the multidimensional database.

[0065] 3. Multiply two sorted arrays, and do not store the result in the multidimensional database.

[0066] After the traceability module 104 executes the rewritten multidimensional calculation script, the sandbox of the multidimensional database can include the following two units: one unit stores the array {P3, Shenzhen, sales volume}, and the other unit stores the array {P3, Shenzhen, unit price}.

[0067] Based on the data analysis system 10 shown in Figure 1, this application provides a data traceability method. The data traceability method of this application is described below with reference to the accompanying drawings.

[0068] Referring to Figure 4, a flowchart of a data tracing method is shown. The method includes the following steps:

[0069] S402, Data Analysis System 10 obtains the metadata of the first cell to be traced in the multidimensional database.

[0070] The first cell can be the cell where abnormal data is detected, such as the cell where the user discovers abnormal data, or the cell where abnormal data is detected through automated analysis. For abnormal data, the data analysis system 10 can initiate data tracing to determine the cause of the abnormality. The cause of the abnormality may include, but is not limited to, abnormal source data entry or abnormal multidimensional calculation script.

[0071] Meta-information includes the measures of the first cell across multiple dimensions. Furthermore, meta-information may also include the attributes of the first cell. For example, meta-information may also include the calculation formula or color of the first cell.

[0072] S404. The data analysis system 10 determines the data reading range based on the metadata of the first cell.

[0073] The data reading range includes the range of data read from the data calculated in the first cell. Specifically, the data analysis system 10 can determine the data reading range based on the metric value of the first cell in the dynamic dimension. The data reading range is represented by the metric value of the second cell in the dynamic dimension. The second cell is a cell that the first cell depends on, such as the cell containing the data read from the data calculated in the first cell.

[0074] A dynamic dimension refers to a dimension whose members or structure change dynamically based on data or business rules during system operation. For example, in an e-commerce system, product categories may constantly change due to factors such as the listing of new products, the delisting of old products, and adjustments to product classification strategies; this product category dimension can be considered a dynamic dimension. A multidimensional database can be divided into multiple shards according to dynamic dimensions. The data reading range can include at least one shard of the multidimensional database. This shard can also be called a slice. At least one shard is obtained by partitioning the multidimensional database according to the measure value of the second cell in the dynamic dimension. In specific implementation, the data analysis system 10 can determine the shard containing the dependent data of the first cell (such as the data in the second cell) from multiple shards based on the measure value of the first cell in the dynamic dimension, and the data reading range includes the shard containing the second cell. Specifically, the data analysis system 10 can determine the measure value of the second cell in the dynamic dimension based on the measure value of the first cell using the calculation formula of the first cell; thus, the data analysis system 10 can determine the shard containing the second cell from multiple shards.

[0075] Using the multidimensional database example in Figure 2 as an example, the dynamic dimension can include subjects. The measure value of the first cell in the dynamic dimension can be "revenue". The data analysis system 10 can combine the calculation formula of the first cell, "revenue = sales volume * unit price", to determine that the measure value of the second cell in the dynamic dimension includes "unit price" and "sales volume". Accordingly, the data reading range can include "unit price" segment and "sales volume" segment.

[0076] Furthermore, a fixed dimension refers to a dimension whose members or structure are relatively stable and do not easily change during system design and operation. For example, in an enterprise's employee information management system, the gender dimension of employees is usually fixed, generally with only two members: "male" and "female," and does not change frequently with business operations. Based on this, the data analysis system 10 can also combine the measure value of the fixed dimension in the first cell to determine the data reading range. The data reading range can be data obtained by filtering the fixed dimension's measure value within a segment determined by the measure value of the dynamic dimension. Using Figure 2 as an example, the fixed dimension can include product and region. The measure value of the fixed dimension can be: Product: P1, Region: Shenzhen. The data analysis system 10 can further define the data reading range as the data in the second cell, such as the sales volume and unit price of product P1 in Shenzhen. Combining the measure value of the fixed dimension to determine the data reading range can further narrow down the data reading range and improve the accuracy of the data reading range determination.

[0077] S406, The data analysis system 10 stores the data within the data reading range in an isolated environment of a multidimensional database.

[0078] The isolation environment is used to restrict operations on the multidimensional database. The isolation environment can be a software environment or a hardware environment. For example, the isolation environment can be a virtual environment created by the data analysis system 10 using virtualization technology, restricting write access to the multidimensional database, including but not limited to virtual machines (VMs) and containers. Alternatively, the isolation environment can be an environment provided by the hardware of the data analysis system 10, restricting write access to the multidimensional database. In some possible implementations, the isolation environment can include a sandbox. A sandbox is a security mechanism used to isolate running programs, with the purpose of restricting access permissions for untrusted processes or untrusted code. Sandboxes can be implemented in software or hardware. For ease of description, a hardware example is used. Certain security chips or trusted execution environments (TEEs) of the data analysis system 10, such as TrustZone technology, divide the system into secure and insecure zones at the hardware level. Secure zones have independent execution environments and memory spaces for running critical security-related code or processing sensitive data, isolated from ordinary applications in insecure zones. The data analysis system 10 avoids impacting the multidimensional database, especially intrusive impacts, by storing the data within the data reading range into a sandbox of the multidimensional database.

[0079] In some possible implementations, the data reading range includes a first partition and a second partition. The data analysis system 10 can also store the data in the first partition as a first array in an isolated environment, and the data in the second partition as a second array in the isolated environment. The data analysis system 10 can perform calculations based on the first and second arrays to obtain the execution results.

[0080] The dimensions of a multidimensional database include fixed dimensions. For example, in the example of Figure 2, fixed dimensions may include region and product. Accordingly, the data analysis system 10 can store the data in the first segment as a first array in the isolation environment based on the measure value of the first cell in the fixed dimension, and store the data in the second segment as a second array in the isolation environment. Specifically, the data analysis system 10 can use the measure value of the first cell in the fixed dimension as a filtering condition to store the first data in the first segment that meets the filtering condition as a first array in the isolation environment, and use the measure value of the first cell in the fixed dimension as a filtering condition to store the second data in the second segment as a second array in the isolation environment. By setting dynamic and fixed dimensions and clarifying the segmentation flow of the multidimensional calculation script, accurate filtering of traceable data can be achieved.

[0081] In this application, the data analysis system 10 can execute a multidimensional calculation script rewritten based on the metadata of the first cell, storing the data within the data reading range in an isolated environment of the multidimensional database. Furthermore, since the multidimensional calculation script rewritten based on the metadata of the first cell hides the writing of data to the multidimensional database, the execution results of the data within the data reading range are not stored in the multidimensional database.

[0082] S408, the data analysis system 10 performs data tracing based on the execution results of the data in the data reading range and the data in the first cell, and obtains the data tracing results.

[0083] Specifically, the data analysis system 10 can compare the data in the first cell with the execution results in the data reading range. If they are inconsistent, it indicates that the multidimensional calculation script is abnormal. If they are consistent, it continues to trace to the next cell until all cells with dependencies are compared. If all cells with dependencies are compared, it indicates that the source data entry is normal, but the multidimensional calculation script is abnormal.

[0084] Based on the above description, this application provides a data tracing method. In this method, a data analysis system 10 obtains the metadata of the first cell to be traced in a multidimensional database. Based on the metadata of the first cell, it determines the data reading range, which includes the range of data to be read after calculating the data in the first cell. Then, the data analysis system 10 stores the data within the data reading range in an isolated environment of the multidimensional database. Based on the execution results of the data within the data reading range and the data in the first cell, it performs data tracing to obtain the data tracing result. This method shields the complex computational logic of the multidimensional calculation script itself, focusing only on the data to be read after calculating the data in the first cell and recording the read data. This makes data tracing possible in complex scenarios, covers a wide range of scenarios, and has high availability.

[0085] Furthermore, when rewriting multidimensional calculation scripts, the multidimensional calculation scripts can first be converted into syntax trees. Next, the syntax tree generation and script rewriting process in the data tracing method will be explained in detail with reference to the attached figures.

[0086] First, referring to the flowchart of a data tracing method shown in Figure 5, the data tracing method may include the following stages: constructing a syntax tree of a multidimensional calculation script, rewriting the multidimensional calculation script, and executing the rewritten multidimensional calculation script.

[0087] When constructing the syntax tree of a multidimensional computation script, the data analysis system 10 can build the syntax tree of the multidimensional computation script according to the syntax rules of the script through a syntax parser. The syntax tree displays the syntax structure of the multidimensional computation script through a tree structure. The nodes in the syntax tree represent various elements in the syntax structure, including operator nodes, variable nodes, constant nodes, or keyword nodes. The edges in the syntax tree represent the hierarchical relationships between nodes.

[0088] The parser can be generated using parser generation tools such as ANTLR4. ANTLR4 is based on the LL(*) algorithm and can be used to automatically generate parsers. In the LL(*) algorithm, the "first L" indicates scanning the input from left to right, the "second L" indicates generating the leftmost derivation, and the "*" indicates that it can handle any number of lookaheads.

[0089] The syntax rules include at least one of the following: control statement rules, multidimensional data reading rules, multidimensional data writing rules, and slicing operation rules. As shown in Figure 6, the syntax rules include at least one of the following: text processing, dataset operations, control statements, membership judgment, view definition, view operations, traversal information reading, array / collection operations, or log output. See the table below for details:

[0090] Table 1

[0091] In this context, NUMBR represents numeric types, STR represents string types, LONG represents long integer data types, SCAN represents scanning (e.g., scanning text by line, by character, or according to specific rules), SUBST represents string replacement (e.g., replacing a specific string in text with other content), If / Elseif / Else represent conditional statements, and While represents a loop. CellView represents operations on the cell view, such as showing or hiding cells and setting cell styles. CellEXView represents extended cell view operations, such as cell interaction. CellDBView represents operations related to the database view, such as reading data from the database view and updating the view. ViewClearata represents clearing the data in the view.

[0092] `SetArrayltem` sets the value of an element in an array, updating the element by specifying its index. `AddArrayltem` adds a new element to an array, typically at the end. `CombineArray` merges two or more arrays into one. `BuildMemberSet` builds a member set, for example, collecting elements from multiple data sources. `CombineMemberSet` merges multiple member sets, such as combining elements from different sets into one. `Expr / ExprEx` calculates expressions or formulas, supporting more complex logic. `CellGetN / CellGetS` retrieves data from a cell, where N represents numeric data and S represents string data. `CellPutN / CellPutS` writes numeric or string data to a cell. `CellIncrementN` increments the value in a cell, such as adding 1. `XCellGetN` provides extended operations for retrieving cell values.

[0093] DIMIX indicates operations related to dimension indexing in multidimensional data structures, where DIM stands for dimension and IX stands for index. ELPAR indicates operations related to element parameters, used to set or retrieve specific parameters of an element, where EL stands for element and PAR stands for parameter. DefineView is used to define a view, including specifying its structure, data source, and other information. DefineDBView is used to define a database view, specifying the relationships and query rules between the view and database tables. DefineEXView is used to define extended views, typically including additional attributes and functionality.

[0094] `CurCell.nvalue`, `CurCell.svalue`, `CurCell.type`, `CurCell.path`, and `CurCell.path[i]` respectively represent retrieving the numeric value, string value, data type, path information, and the i-th part of the path of the current cell. The path information can include the location in the file system or database. `! DimensionNAME` represents the dimension name, used to specify the dimension in multidimensional data processing. `DetailOutput` indicates outputting detailed information; `CloseTextFile` indicates closing an open text file and releasing related resources; `WriteTextFile` indicates writing data to a text file; `NumberToString` indicates converting numeric data to string data; and `LogOutput` indicates logging information to a log file.

[0095] Furthermore, the data analysis system 10 can also combine lexical rules to construct a syntax tree for the multidimensional computation script. Lexical rules are used to perform lexical analysis on the text of the multidimensional computation script to obtain individual lexical units (tokens), such as numbers, operators, and keywords. Lexical rules can include general-purpose language lexical rules and multidimensional database-specific dimension keywords. For ease of understanding, this application provides some examples of lexical rules, as shown in the table below:

[0096] Table 2

[0097] As shown in Figure 6, the data analysis system 10 can perform semantic parsing on the multidimensional computation script based on the aforementioned lexical and grammatical rules, monitor keywords, and thus determine and mark the key operations of the multidimensional computation script. Specifically, the data analysis system 10 can perform lexical parsing on the text of the multidimensional computation script according to the lexical rules to obtain a token sequence, and then perform grammatical parsing on the token sequence according to the grammatical rules to monitor and mark keywords of key operations such as "assignment," "getting value," "calculation," and "loop logic." The data analysis system 10 can then construct a syntax tree based on these key operations.

[0098] After constructing the syntax tree, the data analysis system 10 can rewrite the multidimensional calculation script based on the syntax tree of the multidimensional calculation script and the metadata of the first cell to be traced. Specifically, the data analysis system 10 can rewrite the script logic of the multidimensional calculation script, and then rewrite the syntax tree based on the metadata of the first cell and the rewritten script logic. The data analysis system 10 can then rewrite the multidimensional calculation script based on the rewritten syntax tree.

[0099] The rewritten script logic can include: filtering using the metadata of the first cell to be traced to obtain the data reading range, and recording the read data. For example, the metadata of the first cell can include the measurement values ​​of the first cell in multiple dimensions and the calculation formula of the first cell. The measurement values ​​of the first cell in multiple dimensions include the measurement values ​​of the first cell in dynamic dimensions and the measurement values ​​of the first cell in fixed dimensions. Based on the measurement values ​​of the first cell in dynamic dimensions and the calculation formula of the first cell, the measurement values ​​of the second cell in dynamic dimensions can be determined, and the data reading range can include the fragments determined in the multidimensional database based on the measurement values ​​of the second cell in dynamic dimensions. Furthermore, the data reading range can be further narrowed by combining the measurement values ​​of the first cell in fixed dimensions. For example, the data reading range can include data obtained by filtering the fragments determined based on the measurement values ​​of dynamic dimensions with the measurement values ​​of fixed dimensions as the filtering condition. In some instances, the data reading range can include the data in the second cell. Recording the read data can be done in an isolated environment such as a sandbox to avoid invasive damage to the multidimensional database. Furthermore, the rewritten script logic can also include blocking write data, for example, blocking write data for the multidimensional database. The data analysis system 10 can use comments to mask the writing of data. For example, the data analysis system 10 can add comment symbols before statements related to writing data in the text of the multidimensional calculation script.

[0100] In some possible implementations, the data analysis system 10 can define its own rewriting rules based on the aforementioned syntax and lexical rules. Accordingly, the data analysis system 10 can rewrite the script logic based on these defined rewriting rules. Alternatively, the data analysis system 10 can rewrite the multidimensional calculation script based on its own defined rewriting rules.

[0101] The following example illustrates the rewriting of a multidimensional calculation script with reference to the accompanying drawings. Referring to Figure 7, which shows a schematic diagram of rewriting a multidimensional calculation script, the data analysis system 10 acquires multidimensional write data operations and multidimensional data operations. Multidimensional write data operations include slice assignment, batch clearing, slice traversal writing, cell value writing, and cell value modification. Multidimensional data operations include slice traversal reading and cell value reading. For multidimensional read data operations, the data analysis system 10 can rewrite the script logic to record the read data. Specifically, the data analysis system 10 can dynamically rewrite the data reading range in the script based on the metadata of the first cell, such as dimension member information (e.g., cropping the slice), improving traceability performance. For multidimensional write data operations, considering that writing data may pollute the multidimensional database and lead to poor performance, the data analysis system 10 can block write operations, for example, blocking the current user's write operations to the multidimensional database. As shown in Figure 7, the data analysis system 10 can determine the nodes related to multidimensional read data operation and multidimensional write data operation in the scanning characteristics according to the syntax tree, rewrite the attributes of the above nodes, and then generate a rewritten multidimensional calculation script based on the rewritten syntax tree.

[0102] Let's take the first cell in Figure 2, which contains the metadata {Product, P3}, {Subject, Revenue}, and {Region, Shenzhen}, as an example for tracing back to the previous cell. The script logic of the rewritten multidimensional calculation script is as follows:

[0103] 1. Read the sales volume slice and store it into an ordered array. This slice includes P3 and Shenzhen. Record the ordered array.

[0104] 2. Read the unit price slice and store it into an ordered array. The slice includes P3 and Shenzhen. Record the ordered array.

[0105] 3. Block data writing.

[0106] Based on the aforementioned script logic, the data analysis system 10 rewrites the multidimensional calculation script. Then, the data analysis system 10 can execute the multidimensional calculation script rewritten based on the metadata of the first cell. During execution, the data read by the data analysis system 10 is recorded in a designated location, such as a designated location within the sandbox. The execution results and the data recorded during execution can also be displayed through charts for data traceability.

[0107] Next, we will illustrate the data tracing method of this application using a tax scenario.

[0108] Referring to Figure 8, which illustrates data traceability in a tax scenario, each node represents a cell in a multidimensional data table. The metadata of the cell can be represented by the node's attributes. Node attributes can include NodeName, Year, Period, DataCatagory, Tax Item Change, Account, and Formula. Based on this, each node can be represented as:

[0109] Table 3

[0110] In this example, an anomaly occurs in cell N1, triggering data tracing by the data analysis system 10. The system can rewrite and execute the multidimensional calculation script to achieve data tracing. The specific execution process may include: using the formula "N1 = Aggregate(N2, N3, N4, N5, N6, N7)" based on N1, and reading N2, N3, N4, N5, N6, and N7. If the aggregation result of N2, N3, N4, N5, N6, and N7 matches N1, further tracing can proceed, such as tracing N2, N4, N5, and N7. Taking N2 as an example, N2 depends on N8, and N8 depends on N9. Therefore, the data analysis system 10 can read N8, execute the calculation formula for N2 based on N8, and compare the result with N2. If they match, it reads N9, executes the calculation formula for N8 based on N9, and compares the result with N8. If they match, it indicates that there is no anomaly in that path. If there is a discrepancy, the data analysis system 10 can compare the data layer by layer to determine whether the source data entry is abnormal or the multidimensional calculation script is abnormal.

[0111] The above example illustrates data tracing in a multidimensional database. In practical applications, the data tracing method of this application can also be used in other scenarios, such as data tracing in SQL databases. SQL databases support sandbox operations, allowing the data tracing method of this application to record and retrieve data, thereby achieving data tracing in complex scenarios.

[0112] Based on the aforementioned data tracing method, this application also provides a data analysis system 10. The data analysis system 10 is used to trace abnormal or erroneous data in a multidimensional database. As shown in Figure 1, the data analysis system 10 includes:

[0113] The acquisition module 102 is used to acquire the metadata of the first cell to be traced in the multidimensional database, the metadata including the measurement values ​​of the first cell in multiple dimensions;

[0114] The traceability module 104 is used to determine the data reading range based on the metadata of the first cell, wherein the data reading range includes the range of data read from the data in the first cell calculated from the data.

[0115] The traceability module 104 is also used to store the data in the data reading range into the isolation environment of the multidimensional database, and the isolation environment is used to restrict operations on the multidimensional database;

[0116] The tracing module 104 is also used to perform data tracing based on the execution result of the data in the data reading range and the data in the first cell, and obtain the data tracing result.

[0117] For example, the aforementioned functional analysis subsystem 202, functional configuration subsystem 204, and association subsystem 206 can be implemented in hardware or in software.

[0118] When implemented through software, the acquisition module 102 and the tracing module 104 can be applications running on computing devices, such as computing engines. These applications can also be virtualized and provided to users as virtualization services. Virtualization services can include virtual machine (VM) services, bare metal server (BMS) services, or container services. Specifically, a VM service can be a service that uses virtualization technology to create a pool of virtual machine (VM) resources on multiple physical hosts, providing VMs to users on demand. A BMS service is a service that uses virtualization technology to create a pool of BMS resources on multiple physical hosts, providing BMS services to users on demand. A container service is a service that uses virtualization technology to create a pool of container resources on multiple physical hosts, providing containers to users on demand. A VM is a simulated virtual computer, that is, a logical computer. A BMS is a scalable, high-performance computing service with computing performance indistinguishable from traditional physical machines, featuring secure physical isolation. A container is a kernel virtualization technology that provides lightweight virtualization to isolate user space, processes, and resources. It should be understood that the VM service, BMS service, and container service mentioned above are merely specific examples. In practical applications, virtualization services can also include other lightweight or heavyweight virtualization services, which are not specifically limited here.

[0119] When implemented in hardware, the acquisition module 102 and the traceability module 104 may include at least one computing device, such as a server. Alternatively, the acquisition module 102 and the traceability module 104 may also be devices implemented using application-specific integrated circuits (ASICs) or programmable logic devices (PLDs). The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), generic array logic (GAL), or any combination thereof.

[0120] In some possible implementations, the multiple dimensions include dynamic dimensions, and the traceability module 104 is specifically used for:

[0121] The data reading range is determined based on the metric value of the first cell in the dynamic dimension, and the data reading range is characterized by the metric value of the second cell in the dynamic dimension.

[0122] In some possible implementations, the data reading range includes at least one shard of the multidimensional database, which is obtained by partitioning the multidimensional database according to the measure of the second cell in the dynamic dimension.

[0123] In some possible implementations, the at least one shard includes a first shard and a second shard;

[0124] The traceability module 104 is also used for:

[0125] The data in the first slice is stored in the isolation environment in the form of a first array, and the data in the second slice is stored in the isolation environment in the form of a second array;

[0126] Calculations are performed based on the first array and the second array to obtain the execution result.

[0127] In some possible implementations, the multiple dimensions include fixed dimensions, and the traceability module 104 is specifically used for:

[0128] Using the metric value of the first cell in the fixed dimension as a filtering condition, the first data in the first segment that meets the filtering condition is stored in the isolation environment in the form of a first array;

[0129] Using the metric value of the first cell in the fixed dimension as a filtering condition, the second data in the second slice is stored in the isolation environment as a second array.

[0130] In some possible implementations, the execution results of the data within the data reading range are not stored in the multidimensional database.

[0131] In some possible implementations, the traceability module 104 is specifically used for:

[0132] Execute a multidimensional calculation script rewritten based on the metadata of the first cell, and store the data in the data reading range into the isolated environment of the multidimensional database.

[0133] In some possible implementations, the multidimensional calculation script rewritten based on the metadata of the first cell is shielded from writing data to the multidimensional database.

[0134] This application also provides a computing device 900. As shown in FIG9, the computing device 900 includes: a bus 902, a processor 904, a memory 906, and a communication interface 908. The processor 904, the memory 906, and the communication interface 908 communicate with each other via the bus 902. The computing device 900 may be a server or a terminal device. It should be understood that this application does not limit the number of processors and memories in the computing device 900.

[0135] Bus 902 can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, only one line is used in Figure 9, but this does not imply that there is only one bus or one type of bus. Bus 902 can include pathways for transmitting information between various components of computing device 900 (e.g., memory 906, processor 904, communication interface 908).

[0136] Processor 904 may include any one or more processors such as a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).

[0137] Memory 906 may include volatile memory, such as random access memory (RAM). Memory 906 may also include non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid-state drive (SSD). Memory 906 stores executable program code, which processor 904 executes to implement the aforementioned data tracing method. Specifically, memory 906 stores instructions for the data analysis system 10 to execute the data tracing method. For example, memory 906 may store instructions for implementing the functions of the acquisition module 102 and the tracing module 104.

[0138] The communication interface 908 uses transceiver modules such as, but not limited to, network interface cards and transceivers to enable communication between the computing device 900 and other devices or communication networks.

[0139] This application also provides a computing device cluster. The computing device cluster includes at least one computing device. The computing device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device can also be a terminal device such as a desktop computer, a laptop computer, or a smartphone.

[0140] As shown in Figure 10, the computing device cluster includes at least one computing device 900. The memory 906 of one or more computing devices 900 in the computing device cluster may store instructions from the same data analysis system 10 for executing data tracing methods.

[0141] In some possible implementations, one or more computing devices 900 in the computing device cluster can also be used to execute some of the instructions of the data analysis system 10 for executing the data tracing method. In other words, a combination of one or more computing devices 900 can jointly execute the instructions of the data analysis system 10 for executing the data tracing method.

[0142] It should be noted that the memory 906 in different computing devices 900 in the computing device cluster can store different instructions for executing some functions of the data analysis system 10.

[0143] Figure 11 illustrates one possible implementation. As shown in Figure 11, two computing devices 900A and 900B are connected via a communication interface 908. The memory in computing device 900A stores instructions for executing the functions of the acquisition module 102. The memory in computing device 900B stores instructions for executing the functions of the traceability module 104. In other words, the memory 906 of computing devices 900A and 900B jointly stores the instructions used by the data analysis system 10 to execute the data traceability method.

[0144] The connection method between the computing device clusters shown in Figure 11 can be considered because the data tracing method provided in this application requires a lot of resources for tracing. Therefore, it is considered that the functions implemented by the tracing module 104 are executed by independent computing devices, such as computing device 900B.

[0145] It should be understood that the functions of computing device 900A shown in Figure 11 can also be performed by multiple computing devices 900. Similarly, the functions of computing device 900B can also be performed by multiple computing devices 900.

[0146] In some possible implementations, one or more computing devices in a computing device cluster can be connected via a network. This network can be a wide area network (WAN) or a local area network (LAN), etc. Figure 12 illustrates one possible implementation. As shown in Figure 12, two computing devices 900C and 900D are connected via a network. Specifically, they are connected to the network through communication interfaces in each computing device. In this type of possible implementation, the memory 906 in computing device 900C stores instructions for executing the functions of the acquisition module 102. Simultaneously, the memory 906 in computing device 900D stores instructions for executing the functions of the traceability module 104.

[0147] The connection method between the computing device clusters shown in Figure 12 can be considered as follows: considering that the data tracing method provided in this application requires a lot of resources for data tracing, the functions implemented by the acquisition module 102 and the tracing module 102 are to be executed by different computing devices. For example, the functions implemented by the acquisition module 102 are executed by the computing device 900C, and the functions implemented by the tracing module 104 are executed by the computing device 900D.

[0148] It should be understood that the functions of computing device 900C shown in Figure 12 can also be performed by multiple computing devices 900. Similarly, the functions of computing device 900D can also be performed by multiple computing devices 900.

[0149] This application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that a computing device can store, or a data storage device such as a data center containing one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state drive). The computer-readable storage medium includes instructions that instruct the computing device to execute the data tracing method described above in the data analysis system 10.

[0150] This application also provides a computer program product containing instructions. The computer program product may be a software or program product containing instructions, capable of running on a computing device or stored on any usable medium. When the computer program product is run on at least one computing device, it causes the at least one computing device to perform the data traceability method described above.

[0151] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the protection scope of the technical solutions of the embodiments of the present invention.

Claims

1. A data traceability method, characterized in that, The method, applied to a data analysis system, includes: Obtain the metadata of the first cell to be traced in the multidimensional database, the metadata including the measurement values ​​of the first cell in multiple dimensions; Based on the metadata of the first cell, the data reading range is determined, and the data reading range includes the range of data read from the data in the first cell calculated from the data. The data within the data reading range is stored in the isolation environment of the multidimensional database, and the isolation environment is used to restrict operations on the multidimensional database; Data tracing is performed based on the execution results of the data within the data reading range and the data in the first cell to obtain the data tracing result.

2. The method according to claim 1, characterized in that, The multiple dimensions include dynamic dimensions, and determining the data reading range based on the metadata of the first cell includes: The data reading range is determined based on the metric value of the first cell in the dynamic dimension, and the data reading range is characterized by the metric value of the second cell in the dynamic dimension.

3. The method according to claim 2, characterized in that, The data reading range includes at least one shard of the multidimensional database, which is obtained by partitioning the multidimensional database according to the metric value of the second cell in the dynamic dimension.

4. The method according to claim 3, characterized in that, The at least one fragment includes a first fragment and a second fragment; The method further includes: The data in the first slice is stored in the isolation environment in the form of a first array, and the data in the second slice is stored in the isolation environment in the form of a second array; Calculations are performed based on the first array and the second array to obtain the execution result.

5. The method according to claim 4, characterized in that, The multiple dimensions include fixed dimensions, and storing the data in the first slice in the isolation environment in the form of a first array includes: Using the metric value of the first cell in the fixed dimension as a filtering condition, the first data in the first segment that meets the filtering condition is stored in the isolation environment in the form of a first array; The step of storing the data in the second fragment into the isolation environment in the form of a second array includes: Using the metric value of the first cell in the fixed dimension as a filtering condition, the second data in the second slice is stored in the isolation environment as a second array.

6. The method according to any one of claims 1 to 5, characterized in that, The execution results of the data within the data reading range are not stored in the multidimensional database.

7. The method according to any one of claims 1 to 6, characterized in that, The isolated environment for storing the data within the data reading range into the multidimensional database includes: Execute a multidimensional calculation script rewritten based on the metadata of the first cell, and store the data in the data reading range into the isolated environment of the multidimensional database.

8. The method according to claim 7, characterized in that, The multidimensional calculation script, rewritten based on the metadata of the first cell, is shielded from writing data to the multidimensional database.

9. A data analysis system, characterized in that, The method includes: The acquisition module is used to acquire the metadata of the first cell to be traced in the multidimensional database, the metadata including the measurement values ​​of the first cell in multiple dimensions; The traceability module is used to determine the data reading range based on the metadata of the first cell, wherein the data reading range includes the range of data read from the data in the first cell calculated from the data. The traceability module is also used to store the data within the data reading range into the isolation environment of the multidimensional database, and the isolation environment is used to restrict operations on the multidimensional database; The tracing module is also used to perform data tracing based on the execution result of the data in the data reading range and the data in the first cell, and obtain the data tracing result.

10. A computing device cluster, characterized in that, The computing device cluster includes at least one computing device, the at least one computing device including at least one processor and at least one memory, the at least one memory storing computer-readable instructions; the at least one processor executes the computer-readable instructions to cause the computing device cluster to perform the data tracing method as described in any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that, Includes computer-readable instructions; the computer-readable instructions are used to implement the data traceability method according to any one of claims 1 to 8.

12. A computer program product, characterized in that, Includes computer-readable instructions; the computer-readable instructions are used to implement the data traceability method according to any one of claims 1 to 8.