Abstract:
System and method of simultaneously creating and managing a plurality of OLAP cubes in real time, each from a different tabular data source, comprising, for each cube, defining the table columns as either dimensions or measures of the cube using at least one of predefined semantics and data formats, generating the cube using said defined dimensions and measures, updating the cube when the respective data source is modified and deleting the cube according to predefined criteria.

Description:
FIELD OF THE INVENTION 
       [0001]    The invention relates to computer-implemented techniques for providing multi-dimensional views from tabular data. 
       BACKGROUND OF THE INVENTION 
       [0002]    A spreadsheet is a computer application displaying rectangular table (or grid) of information, consisting of text and numbers, for example financial information. A spreadsheet may furthermore contain formulas that give rules for computing certain values in the table from other values, such as the total value of a column, which is computed by adding the values above it. 
         [0003]    The advent of advanced web technologies, such as Ajax and XUL, has propelled the emergence of a new generation of online spreadsheets. Equipped with a rich Internet application user experience. Many of the web based online spreadsheets boast the same features seen in desktop spreadsheet applications. Some already surpass them, offering real time updates from remote sources such as stock prices and currency exchange rates. 
         [0004]    Google Docs is a free, Web-based word processor, spreadsheet, and presentation application offered by Google. It allows users to create and edit documents online while collaborating in real-time with other users. 
         [0005]    Various Web services are available to users. Web services are defined by the World Wide Web Consortium (W3C) as software systems designed to support interoperable Machine to Machine interaction over a network. Web services are frequently just Web APIs that can be accessed over a network, such as the Internet, and executed on a remote system hosting the requested services. The W3C Web service definition encompasses many different systems, but in common usage the term refers to clients and servers that communicate using XML messages that follow the SOAP standard. Common in both the field and the terminology is the assumption that there is also a machine readable description of the operations supported by the server written in the Web Services Description Language (WSDL). 
         [0006]    The data provided by various web services is tabular data, or may be converted to tabular format using the description provided. For example, Google Finance is a web service providing stock information and other financial data of worldwide companies and Google Analytics is a web service providing information on traffic on a user&#39;s website. 
         [0007]    Other significant tabular data sources are various report generators such as SQL queries, Crystal Reports, Business Objects and others. 
         [0008]    A pivot table is an interactive table that automatically extracts, organizes, and summarizes data. It can be used to analyze the data, make comparisons, detect patterns and relationships, and discover trends as well as other data related operations and discovery. 
         [0009]    Today, many applications provide pivot tables or equivalent functionality, but the best-known modern implementation of the concept is in the dominant spreadsheet application, Microsoft Excel. A pivot table can be graphically represented in a pivot chart. 
         [0010]    For typical data entry and storage, data are usually flat. Flat means that it consists of only columns and rows, such as shown in  FIG. 1 . 
         [0011]    While there is a lot of information stored in such data, it is very difficult to gather the information you want out of it. A pivot table can help one quickly summarize the flat data, giving it depth, and get the information they want. The usage of a pivot table is extremely broad and depends on the situation. The first question to ask is, “what am I looking for?”. In the example here, let&#39;s ask “How many Units did we sell in each country for every Ship Date?”. The resulting pivot table is shown in  FIG. 2 . 
         [0012]    A pivot table usually consists of rows, columns, and data (or fact) fields. In this case, the row is Country, the column is Ship Date, and the data we would like to see is Units. These fields were added onto the pivot table from a list of available fields. Pivot tables also allow several kinds of aggregations including: sum, average, standard deviation, count, etc. Rows and columns can be nested to provide Cartesian multiplication of two or more dimensions. 
         [0013]    Using the example above, it will find all distinct records for Country. In this case, they are: USA, France, Germany, UK and Israel. Furthermore, it will find all distinct records for Ship Date. 
         [0014]    Existing tools for creating pivot tables from spreadsheets have several disadvantages compared to tools for creating pivot tables from multi-dimensional databases. For example:
       1. All dimensions (columns) in a pivot table created from a spreadsheet appear as flat, thus hierarchies cannot be created, such as a year\quarter\months hierarchy from a date column, or a Country\State\City\Customers hierarchy.   2. Calculation that are created on top of the spreadsheet pivot table are Excel calculations, i.e. they are based on R1C1 convention, while OLAP relates to entities (members), i.e. in Excel one would do A6+B6, while in OLAP one could do Q1+Q2.   3. Columns do not ‘tell’ what they are while dimension do (i.e. Time dimension Vs. Col 6).   4. OLAP can work on larger amounts of data than e.g. Microsoft Excel Pivot can provide       
 
         [0019]    US Published Application No. 2007/0260578, assigned to Microsoft Corp., discloses a method and apparatus that allow the user to view advanced data-base pivot tables in spreadsheets, from any relational database, by creating a temporary cube on the local machine from the relational database. The pivot tables interact with the temporary cube to provide the data to the user. 
         [0020]    U.S. Pat. No. 7,213,199, assigned to Cognos Inc., discloses an extension to a conventional spreadsheet application, for interacting with multidimensional databases. Instances of the extended spreadsheet application execute on a client computer and present a user with a two-dimensional representation of a portion of the multi-dimensional database. 
         [0021]    Thus there is need for a method and system for creating pivot tables from spreadsheets, or any other tabular data source, e.g. SQL server tables or Web services or RDB based reports, whereby multi-dimensional capabilities may be provided. 
       SUMMARY OF THE INVENTION 
       [0022]    In a first aspect of the present invention there is provided a method of simultaneously creating and managing a plurality of OLAP cubes in real time, each from a different tabular data source, comprising, for each cube, the steps of defining the table columns as either dimensions or measures of the cube using at least one of predefined semantics and data formats, generating the cube using said defined dimensions and measures, updating the cube when the respective data source is modified and deleting the cube according to predefined criteria. 
         [0023]    According to a first embodiment of this aspect, the dimensions include hierarchies. 
         [0024]    According to a second embodiment of this aspect, the hierarchies are inferred automatically using at least one of said predefined semantics and predefined data formats. 
         [0025]    According to a third embodiment of this aspect, the method further comprises a caching mechanism for managing the cubes. 
         [0026]    According to a fourth embodiment of this aspect, the tabular data source is in spreadsheet form. 
         [0027]    According to a fifth embodiment of this aspect, the tabular data source is a web service. 
         [0028]    According to a sixth embodiment of this aspect, the tabular data source comprises data convertible to tabular format. 
         [0029]    According to a seventh embodiment of this aspect, the tabular data source is a report in any reporting tool based on a relational source. 
         [0030]    In a second aspect of the present invention there is provided a system for simultaneously providing OLAP cube capabilities in real time to a plurality of tabular data users comprising a system server, a plurality of client computers communicating with the server and at least one tabular data source communicating with the server or with at least one of the client computers, 
         [0000]    the server comprising means for receive tabular data and means for generating cubes therefrom, said means for generating cubes comprising means for defining the table columns as either dimensions or measures of the cube using at least one of predefined semantics and data formats, the server further comprising means for updating cubes and means for deleting cubes according to predefined criteria. 
         [0031]    According to a first embodiment of this aspect, the server comprises a caching mechanism for managing the plurality of cubes simultaneously. 
         [0032]    According to a second embodiment of this aspect, the means for defining comprise automatic means. 
         [0033]    According to a third embodiment of this aspect, the means for defining comprise means for defining hierarchies. 
         [0034]    According to a fourth embodiment of this aspect, the means for defining hierarchies are automatic. 
         [0035]    According to a fifth embodiment of this aspect, the tabular data source is in spreadsheet form. 
         [0036]    According to a sixth embodiment of this aspect, the tabular data source is a web service. 
         [0037]    According to a seventh embodiment of this aspect, the tabular data source comprises data convertible to tabular format. 
         [0038]    According to an eighth embodiment of this aspect, the tabular data source is a report in any reporting tool based on a relational source. 
         [0039]    In a third aspect of the present invention there is provided a method of simultaneously creating and managing a plurality of OLAP cubes in real time, from data sources comprising a plurality of spreadsheets provided by at least one Web Service allowing spreadsheet format data to be displayed, comprising, for each cube, the steps of defining the spreadsheet columns as either dimensions or measures of the cube using at least one of predefined semantics and data formats, generating the cube using said defined dimensions and measures, updating the cube when the respective data source is modified and deleting the cube according to predefined criteria. 
         [0040]    According to a first embodiment of this aspect, the dimensions include hierarchies. 
         [0041]    According to a second embodiment of this aspect, the hierarchies are inferred automatically using at least one of said predefined semantics and predefined data formats. 
         [0042]    According to a third embodiment of this aspect, the method further comprises a caching mechanism for managing the cubes. 
         [0043]    In a fourth aspect of the present invention there is provided a computerized system for simultaneously providing OLAP cube capabilities in real time to a plurality of data sources comprising a plurality of spreadsheets provided by at least one Web Service allowing spreadsheet format data to be displayed, comprising a system server, a plurality of client computers communicating with the server and at least one Web Service allowing spreadsheet format data to be displayed communicating with the server or with at least one of the client computers, the server comprising means for receive spreadsheet data and means for generating cubes therefrom, said means for generating cubes comprising means for defining the spreadsheet columns as either dimensions or measures of the cube using at least one of predefined semantics and data formats, the server further comprising means for updating cubes and means for deleting cubes according to predefined criteria. 
         [0044]    According to a first embodiment of this aspect, the server comprises a caching mechanism for managing the plurality of cubes simultaneously. 
         [0045]    According to a second embodiment of this aspect, the means for defining comprise automatic means. 
         [0046]    According to a third embodiment of this aspect, the means for defining comprise means for defining hierarchies. 
         [0047]    According to a fourth embodiment of this aspect, the means for defining hierarchies are automatic. 
         [0048]    In a fifth aspect of the present invention there is provided a computer-readable medium having computer-executable instructions stored thereon which, when executed by a computer, will cause the computer to perform the method of simultaneously creating and managing a plurality of OLAP cubes in real time, each from a different tabular data source, comprising, for each cube, the steps of defining the table columns as either dimensions or measures of the cube using at least one of predefined semantics and data formats, generating the cube using said defined dimensions and measures, updating the cube when the respective data source is modified and deleting the cube according to predefined criteria. 
         [0049]    According to a first embodiment of this aspect, the data sources comprise at least one Web Service allowing spreadsheet format data to be displayed. 
     
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         [0050]    For a better understanding of the invention and to show how the same may be carried into effect, reference will now be made, purely by way of example, to the accompanying drawings. 
           [0051]    With specific reference now to the drawings in detail, it is stressed that the particulars shown are by way of example and for purposes of illustrative discussion of the preferred embodiments of the present invention only, and are presented in the cause of providing what is believed to be the most useful and readily understood description of the principles and conceptual aspects of the invention. In this regard, no attempt is made to show structural details of the invention in more detail than is necessary for a fundamental understanding of the invention, the description taken with the drawings making apparent to those skilled in the art how the several forms of the invention may be embodied in practice. In the accompanying drawings: 
           [0052]      FIG. 1  is an exemplary table used as input for the method of the present invention; 
           [0053]      FIG. 2  is an exemplary pivot table created from the data of  FIG. 1  according to prior art methods; 
           [0054]      FIG. 3  is a schematic representation of an exemplary system for supporting the method of the present invention; 
           [0055]      FIG. 4  is an exemplary pivot table created from the data of  FIG. 1  according to the method of present invention; and 
           [0056]      FIG. 5  is an exemplary UI for the generation of a cube from the data of  FIG. 1  according to an embodiment of the present invention. 
       
    
    
     DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS 
       [0057]    The present invention attempts to overcome the shortcomings of existing tools for creating pivot tables from spreadsheets or any tabular data source by providing OLAP capabilities. 
         [0058]    Before explaining at least one embodiment of the invention in detail, it is to be understood that the invention is not limited in its application to the details of construction and to the arrangements of the components set forth in the following description or illustrated in the drawings. The invention is capable of other embodiments and of being practiced and carried out in various ways. Also, it is to be understood that the phraseology and terminology employed herein are for the purpose of description and should not be regarded as limiting. 
         [0059]    As such, those skilled in the art will appreciate that the conception, upon which this disclosure is based, may readily be utilized as a basis for the designing of other structures, methods and systems for carrying out the several purposes of the present invention. It is important, therefore, that the claims be regarded as including such equivalent constructions insofar as they do not depart from the spirit and scope of the present invention. 
         [0060]    For a better understanding of the invention, its operating advantages and the specific objects attained by its uses, reference should be made to the accompanying drawings and descriptive matter in which there is illustrated exemplary embodiments of the invention. 
         [0061]      FIG. 3  is a schematic representation of an exemplary system for supporting the method of the present invention. The system comprises a server ( 100 ), at least one client computer ( 110 ) and data sources ( 120 ). 
         [0062]    Client(s) ( 110 ) send ( 165 ) data requests to server ( 100 ) and server ( 100 ) redirects ( 175 ) the requests to data sources ( 120 ) and receives in response tabular data, or data transformable to tabular form. Alternatively, client ( 110 ) sends data requests ( 140 ) directly to the data source ( 120 ) and receives in response tabular data, or data transformable to tabular form. The data request may be, for example, SQL query directed to a relational database, request for a spreadsheet or a specific spreadsheet page, or any Web Service query using an appropriate API. 
         [0063]    Data sources ( 120 ) may be comprised of remote data sources such as any Web Service server (e.g. Google Analytics) or Web Services allowing spreadsheet format data to be displayed (e.g. Google Spreadsheet). Data sources ( 120 ) may additionally or alternatively comprise local data sources storing spreadsheets and/or other tabular data, such as organizational relational databases. 
         [0064]    The tabular data ( 150 ) received from data sources ( 120 ) is communicated ( 160 ) to the server ( 100 ) OLAP tools module ( 170 ), optionally using a ‘desktop gadget’ stored on the client computer ( 110 ). Desktop gadgets are interactive mini-applications that can be placed anywhere on the user&#39;s desktop. 
         [0065]    OLAP tools module ( 170 ) creates a temporary mini-cube according to the user&#39;s preferences, as will be explained in detail below, stores the newly created cube in the cubes storage ( 180 ), and communicates ( 185 ) the required pivot table view to the client computer ( 110 ) for display, preferably using a desktop gadget. 
         [0066]    Cubes storage ( 180 ) may hold a large number of temporary mini-cubes and preferably comprises a large cache memory, enabling the system to service multiple client computers ( 110 ) concurrently and update them in real time. 
         [0067]    When data changes in the source data store, the cube data is updated in real time to reflect these changes, using mechanisms provided by the source data provider, such as events raised by Google when data in a spreadsheet changes. Another possible updating mechanism may be calling the web service periodically (e.g. every 5 min) to check whether the data has been changed. 
         [0068]    Server ( 100 ) preferably comprises an intelligent caching mechanism and an automatic clean-up mechanism for deleting cubes from cubes storage ( 180 ) according to predefined criteria such as, for example, end of session, changes to the tabular data from which the cube originated, time lapsed since the creation of the cube, etc. 
         [0069]    The process of creating a cube from tabular data will now be described, in conjunction with  FIG. 4 . 
         [0070]    In a preferred embodiment of the present invention, semantics are used to help “understand” the various dimensions and measures so that the cube may subsequently be interrogated intelligently and provide desired views. 
         [0071]    Semantics may be inferred automatically or with the help of the user. Often a combination of both is required. For example, referring back to  FIG. 1 , The Date column may automatically be inferred as containing dates, by analyzing the data format in the column. In the example of  FIG. 1 , the dates comprise month, day and year. In a different format, hour and minute could be given, etc. In the cube created from this example, the dates may thus be a basis for various aggregations, as shown in  FIG. 4 , where an aggregation by quarters is displayed. 
         [0072]    A second example of automatic semantics inference can be applied to the Revenue column ( FIG. 1 ), in which the format of the numbers suggests monetary data and to the Units column, where the format of the numbers suggests number of units. 
         [0073]    Other columns, such as the Gender column or the City column may be given semantic interpretations by the user, or alternatively be treated as undefined textual data. 
         [0074]    Another feature of the cube which may be used for enhancing subsequently views is the ability to hold hierarchies. In the example of  FIG. 4 , a hierarchy is shown, created from the Country and State columns of  FIG. 1 . The hierarchy may be created automatically, given that Country and State semantics have previously been defined. Alternatively, the user may define the hierarchy using a UI tool provided for this purpose. 
         [0075]    The cube created from the table of  FIG. 1  will have Units and Revenue as measures, using the original data formats. The dimensions may be defined for each column, or according to a defined/inferred hierarchy, as explained above. 
         [0076]    The resulting cube may be small relative to standard OLAP cubes. Since the temporary cube of the present invention deals with relatively small amounts of data, a preferred embodiment may save the overhead of various calculations performed on the data which are held in standard OLAP cubes. Alternatively, queries may be directed to the data source itself, or to a report based on the data source and may advantageously be SQL queries. In the latter option, we have created an automatic semantics layer on any relational source\report, thus changing it from static into a live dynamic entity. According to this embodiment, the temporary cube may hold only the semantics and no data. All queries are being translated using the semantics to SQL and run directly against the relational data source. 
         [0077]    The advantage to the user will be in being provided a convenient tool whereby he can use the cube dimensions for performing operations such as aggregations and hierarchies and drill the data in different views and do analysis in various ways that are open only to SQL power users. 
         [0078]      FIG. 5  depicts an exemplary UI for the generation of a cube from the spreadsheet of  FIG. 1 . The extent to which the user assistance is required depends on the information provided by the data source, e.g. arbitrary table versus XL spreadsheet and on the semantics defined in the system. For example, the Country-State hierarchy could be inferred automatically using semantics, or the user may use the indentation tool  500  to specify that State should be nested under Country. The same goes for Ship date, where a multiple-level hierarchy may be inferred or defined by the user. Dotted arrows  510 , which are not part of the UI, demonstrate the transition between the tabular data source and the cube&#39;s dimensions and measures. Each column in the original table may provide one or more entries to the cube&#39;s definition. For example, the Country column in the example of  FIG. 1  provides the first row, while the Date column provides five rows. The columns in the example are numbered from left to right, to demonstrate the general nature of the method, which is not restricted to XL spreadsheets where the columns are identified by letters. Alternatively, the columns may be identified by their headers, e.g. in spreadsheets (first row of range) or by the field name, e.g. in relational tables or web service result. As can be seen, not all columns have to participate in the cube. In the example, columns 3 (City), 5 (Customer Name) and 6 (Customer Gender) were not included and will thus not participate in any view derived from the cube. 
         [0079]    It will be appreciated by persons skilled in the art that the present invention is not limited to what has been particularly shown and described hereinabove. Rather the scope of the present invention is defined by the appended claims and includes both combinations and sub-combinations of the various features described hereinabove as well as variations and modifications thereof which would occur to persons skilled in the art upon reading the foregoing description.