# US 2012/0239611 A1 · Xbrl flat table mapping system and method

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2012/0239611 A1
- Document ID: US20120239611A1
- Status: Published application
- Kind: A1
- Application number: 13/424,314
- Filed: 2012-03-19
- Published: 2012-09-20
- Earliest claimed: 2011-03-17
- Assignees: XBRL Cloud, Inc.
- Inventors: Cliff Binstock; Brian Milnes
- Web page: https://patentgrep.com/patent/US20120239611A1

## CPC

- G06F 16/21: Design, administration or maintenance of databases
- G06F 16/86: {Mapping to a database}
- G06F 40/143: Markup, e.g. Standard Generalized Markup Language [SGML] or Document Type Definition [DTD]
- G06F 16/283: {Multi-dimensional databases or data warehouses, e.g. MOLAP or ROLAP}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

XBRL data may be automatically mapped back and forth between an XBRL instance an set of automatically generated flat tables, where each table represents the projection of a single hypercube.

## Claims

### Claim 1

A computer-implemented method for mapping eXtensible Business Reporting Language (“XBRL”) data to a flat table, the method comprising:
obtaining, by the computer, an XBRL linkbase describing relationships among a plurality of XBRL concepts;
identifying, by the computer, an XBRL hypercube to which at least some of said plurality of XBRL concepts are attached as XBRL measures;
identifying, by the computer, a ubiquitous dimension-like XBRL element associated with said XBRL hypercube and a set of one or more non-ubiquitous dimension-like XBRL elements defined in said XBRL hypercube, said ubiquitous dimension-like XBRL element being ubiquitous among XBRL-structured data;
initializing, by the computer, a tabular data structure including a value column for storing facts, a concept column for storing fact-associated concepts, a ubiquitous-dimension column, and one or more non-ubiquitous-dimension columns;
generating, by the computer, a data map mapping said XBRL measures of said XBRL hypercube to said concept column, mapping said ubiquitous dimension-like XBRL element of said XBRL hypercube to said ubiquitous-dimension column, and respectively mapping said set of one or more non-ubiquitous dimension-like XBRL elements of said XBRL hypercube to said one or more non-ubiquitous-dimension columns; and
storing said data map and said tabular data structure.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
obtaining XBRL instance data comprising a plurality of facts and associated metadata;
using said data map, selecting from said XBRL instance data a plurality of hypercube-attached facts that are respectively associated with any one of said plurality of XBRL measures and that are explicitly or implicitly associated with exactly said set of one or more non-ubiquitous dimension-like XBRL elements;
using said data map, populating said tabular data structure with a plurality of rows corresponding respectively to said plurality of hypercube-attached facts; and providing said populated tabular data structure for display to a user.

### Claim 3 (depends on 2)

The method of claim 2, wherein populating said tabular data structure comprises, for each of said plurality of hypercube-attached facts:
adding a row to said tabular data structure;
populating said value column of said added row with a current hypercube-attached fact;
determining a fact-associated measure of said plurality of XBRL measures as being associated with said current hypercube-attached fact;
populating said concept column of said added row with said fact-associated measure;
determining a fact-associated ubiquitous metadata value that is associated with said current hypercube-attached fact and that corresponds to said ubiquitous dimension-like XBRL element;
using said data map, populating said ubiquitous-dimension column with said fact-associated ubiquitous metadata value;
determining one or more fact-associated non-ubiquitous metadata values that are associated with said current hypercube-attached fact and that respectively correspond to said set of one or more non-ubiquitous dimension-like XBRL elements;
using said data map, respectively populating said one or more non-ubiquitous-dimension columns with said one or more fact-associated non-ubiquitous metadata values.

### Claim 4 (depends on 3)

The method of claim 3, wherein determining said one or more fact-associated non-ubiquitous metadata values comprises:
determining that said XBRL instance data does not explicitly associate said current hypercube-attached fact with a metadata value corresponding to at least one of said set of one or more non-ubiquitous dimension-like XBRL elements;
obtaining a hypercube definition defining said XBRL hypercube, said hypercube definition including a default value corresponding to said at least one of said set of one or more non-ubiquitous dimension-like XBRL elements; and
implicitly associating said default value with said current hypercube-attached fact.

### Claim 5 (depends on 4)

The method of claim 4, wherein providing said populated tabular data structure for display to said user comprises making said default value identifiable as having been implicitly associated with said current hypercube-attached fact.

### Claim 6 (depends on 2)

The method of claim 2, further comprising:
identifying among said plurality of XBRL concepts a plurality of implicitly-attached concepts that are implicitly attached to an implicit empty hypercube that is associated with said ubiquitous dimension-like XBRL element;
initializing a second tabular data structure including a second value column, a second concept column, and a second ubiquitous-dimension column; and
updating said data map to further map said plurality of implicit measures of said implicit empty hypercube to said second concept column, and to further map said ubiquitous dimension-like XBRL element of said implicit empty hypercube to said second ubiquitous-dimension column.

### Claim 7 (depends on 6)

The method of claim 6, further comprising:
selecting from said XBRL instance data a plurality of implicitly-attached facts that are respectively associated with any one of said plurality of implicit measures;
using said data map, populating said second tabular data structure with a plurality of rows corresponding respectively to said plurality of implicitly-attached facts; and
providing said populated second tabular data structure for display to a user.

### Claim 8 (depends on 7)

The method of claim 7, wherein populating said second tabular data structure comprises, for each of said plurality of implicitly-attached facts:
adding a row to said second tabular data structure;
populating said second value column of said added row with a current implicitly-attached fact;
determining a fact-associated implicit measure of said plurality of implicit measures as being associated with said current implicitly-attached fact;
populating said second concept column of said added row with said fact-associated implicit measure; and
determining a fact-associated ubiquitous metadata value that is associated with said current implicitly-attached fact and that corresponds to said ubiquitous dimension-like XBRL element.

### Claim 9 (depends on 6)

The method of claim 6, wherein identifying said plurality of implicitly-attached concepts comprises:
identifying a set of explicit XBRL hypercubes, including said XBRL hypercube, to which any of said plurality of XBRL concepts are attached as XBRL measures; and
identifying among said plurality of XBRL concepts a plurality of unattached concepts that are not attached to any of said set of explicit XBRL hypercubes.

### Claim 10 (depends on 6)

The method of claim 6, wherein identifying said plurality of implicitly-attached concepts comprises:
identifying a set of explicit XBRL hypercubes, including said XBRL hypercube, whose definitions are mirrored in said XBRL linkbase; and
identifying among said plurality of XBRL concepts a plurality of unattached concepts that are not attached to any of said set of explicit XBRL hypercubes.

### Claim 11 (depends on 1)

A non-transient computer-readable storage medium having stored thereon instructions that, when executed by a processor, configure the processor to perform the method of claim 1.

### Claim 12 (depends on 1)

A computing apparatus comprising a processor and a memory storing instructions that, when executed by the processor, configure the apparatus to perform the method of claim 1.

### Claim 13

A computer-implemented method for mapping eXtensible Business Reporting Language (“XBRL”) data to a flat table, the method comprising:
obtaining, by the computer, an XBRL linkbase describing relationships among a plurality of XBRL concepts;
identifying an XBRL hypercube to which at least some of said plurality of XBRL concepts are attached as XBRL measures, said XBRL hypercube being associated with a ubiquitous dimension-like XBRL element that is ubiquitous among XBRL-structured data, said said XBRL hypercube defining a set of one or more non-ubiquitous dimension-like XBRL elements;
initializing a tabular data structure including a value column for storing facts, a concept column for storing fact-associated concepts, a ubiquitous-dimension column, and one or more non-ubiquitous-dimension columns;
obtaining, by the computer, a data map mapping said XBRL measures of said XBRL hypercube to said concept column, mapping said ubiquitous dimension-like XBRL element of said XBRL hypercube to said ubiquitous-dimension column, and respectively mapping said set of one or more non-ubiquitous dimension-like XBRL elements of said XBRL hypercube to said one or more non-ubiquitous-dimension columns;
obtaining XBRL instance data comprising a plurality of facts and associated metadata;
using said data map, selecting from said XBRL instance data a plurality of hypercube-attached facts that are respectively associated with any one of said plurality of XBRL measures and that are explicitly or implicitly associated with exactly said set of one or more non-ubiquitous dimension-like XBRL elements;
using said data map, populating said tabular data structure with a plurality of rows corresponding respectively to said plurality of hypercube-attached facts; and
providing said populated tabular data structure for display to a user.

### Claim 14 (depends on 13)

A non-transient computer-readable storage medium having stored thereon instructions that, when executed by a processor, configure the processor to perform the method of claim 13.

### Claim 15 (depends on 13)

A computing apparatus comprising a processor and a memory storing instructions that, when executed by the processor, configure the apparatus to perform the method of claim 13.

### Claim 16

A computer-implemented method for mapping a tabular data structure to an eXtensible Business Reporting Language (“XBRL”) hypercube, the method comprising:
obtaining, by the computer, a tabular data structure comprising a plurality of rows, each row having a fact value corresponding to a value column, a concept value corresponding to a concept column, a plurality of ubiquitous-dimension values corresponding to a plurality of ubiquitous-dimension columns, and a plurality of non-ubiquitous-dimension values corresponding to a plurality of non-ubiquitous-dimension columns;
obtaining, by the computer, a data map respectively mapping a plurality of concept values to a plurality of XBRL measures, respectively mapping said plurality of ubiquitous-dimension columns to a plurality of ubiquitous dimension-like XBRL elements, and respectively mapping said plurality of non-ubiquitous-dimension columns to a plurality of non-ubiquitous dimension-like XBRL elements;
declaring, by the computer, an XBRL instance document and an XBRL hypercube corresponding to said tabular data structure;
identifying a plurality of semantically unique rows of said plurality of rows; and
for each of said plurality of semantically unique rows, the computer:
determining an XBRL context that maps to a given combination of ubiquitous-dimension values of a given row;
adding to said XBRL instance document a new measure:fact pair corresponding to a given concept value and a given fact value of said given row;
associating said new measure:fact pair in said said XBRL instance document with said determined XBRL context; and
mapping said plurality of ubiquitous-dimension values of the given row to said plurality of ubiquitous dimension-like XBRL elements associated with said new measure:fact pair in said XBRL instance document.

### Claim 17 (depends on 16)

The method of claim 16, wherein determining said XBRL context comprises:
determining whether said XBRL context exists in said XBRL instance document; and
when said XBRL context is determined to not exist in said XBRL instance document, generating said XBRL context in said XBRL instance document.

### Claim 18 (depends on 16)

A non-transient computer-readable storage medium having stored thereon instructions that, when executed by a processor, configure the processor to perform the method of claim 16.

### Claim 19 (depends on 16)

A computing apparatus comprising a processor and a memory storing instructions that, when executed by the processor, configure the apparatus to perform the method of claim 16.
