Professional Documents
Culture Documents
Version 3.7
Table of Contents
1. INTRODUCTION.................................................................................................... 3
2 0110-JAW37-2
JasperAnalysis Schema Workbench Guide
1. Introduction
The JasperAnalysis Schema Workbench allows you to visually create and test Mondrian OLAP cube schemas. It
provides these features:
• Schema Explorer: an editor integrated with the underlying data source for validation (Figure 1).
• MDX Query: Tests MDX queries against schema and database. Automatically generate example MDX
queries.
• JDBC Explorer: Browses underlying databases structure.
• The Community Edition provides the majority of the functionality, such as support for OLAP schemas and
MDX.
• The Professional Edition builds upon the Community Edition and adds support for creating security files that
can be used in JasperAnalysis to secure data according to user roles.
See the Mondrian Technical Guide to understand schemas. It is found in the docs directory in the workbench
installation. Once you have the schema XML file, you can upload this into your application that uses Mondrian,
such as JasperServer.
Jaspersoft Corporation 3
JasperAnalysis Schema Workbench Guide
4 Jaspersoft Corporation
JasperAnalysis Schema Workbench Guide
Jaspersoft Corporation 5
JasperAnalysis Schema Workbench Guide
6 Jaspersoft Corporation
JasperAnalysis Schema Workbench Guide
Menu Option Description
Close All Close all open windows
Help About Shows the version and help information
For complete validation against the underlying database, click (Test Schema) button in the tool bar.
Jaspersoft Corporation 7
JasperAnalysis Schema Workbench Guide
8 Jaspersoft Corporation
JasperAnalysis Schema Workbench Guide
Click the Edit Mode button to switch between the graphical view of the schema and an XML view. Clicking
elements in the left-hand panel shows the XML for the selected element and the elements it contains.
Jaspersoft Corporation 9
JasperAnalysis Schema Workbench Guide
10 Jaspersoft Corporation
JasperAnalysis Schema Workbench Guide
Jaspersoft Corporation 11
JasperAnalysis Schema Workbench Guide
JasperAnalysis Professional supports the ability to define data-level security by extending the Roles concept in
Mondrian. User role assignments and filters based on parameters from the profile of the currently logged in user.
See the JasperAnalysis Professional User Guide and the JasperAnalysis Ultimate Guide for details.
12 Jaspersoft Corporation
JasperAnalysis Schema Workbench Guide
Jaspersoft Corporation 13
JasperAnalysis Schema Workbench Guide
When you launch an MDX Query Window from the Main window, you can select one of the open schemas against
which to run your MDX queries.
14 Jaspersoft Corporation
JasperAnalysis Schema Workbench Guide
Jaspersoft Corporation 15
JasperAnalysis Schema Workbench Guide
Note that, if you want to use XML/A to access this data, create a Mondrian XML/A connection in the
remote instance of JasperAnalysis, and point it to the Mondrian connection created in step 2.
16 Jaspersoft Corporation
JasperAnalysis Schema Workbench Guide
3.5.3 Creating a Simple Schema
Figure 16 shows a simple schema with one cube, two dimensions, and one measure.
Jaspersoft Corporation 17
JasperAnalysis Schema Workbench Guide
Dimensions
The Time dimension is based on the time_by_day table:
• Its foreign key on the sales_fact_1997 table is time_id.
• Its primary key on the time_by_day table is time_id.
• It has one hierarchy, which does not need to be named.
• It has a single level to categorize facts (Year) that is based on the numeric the_year column.
• It does not have an All Times level – you can’t summarize the facts across all time. While the All level is a
commonly found in many dimensions, it doesn’t always make sense to summarize data across an entire
hierarchy; this is the case with the Time dimension.
• Time dimensions are special: special MDX functions can provide quarter- or year-to-date summaries, as well as
period-over-period calculations.
18 Jaspersoft Corporation
JasperAnalysis Schema Workbench Guide
Jaspersoft Corporation 19
JasperAnalysis Schema Workbench Guide
Measures
Store Sales is a measure on the fact table that can be summarized and manipulated according to the dimensions. It is
based on the store_sales column and should be summed.
Click (Test Schema); if the test succeeds, a message appears indicating that the schema passed validation:
20 Jaspersoft Corporation
JasperAnalysis Schema Workbench Guide
Jaspersoft Corporation 21
JasperAnalysis Schema Workbench Guide
22 Jaspersoft Corporation
JasperAnalysis Schema Workbench Guide
Click Execute to run the MDX query against your schema; results appear below the query:
Jaspersoft Corporation 23
JasperAnalysis Schema Workbench Guide
Close the MDX editor and click Save in the Schema Explorer:
24 Jaspersoft Corporation