Skip to main content
Pentaho Documentation

Pentaho Metadata Editor

This section provides you with information and instructions to help you use the Pentaho Metadata Editor, a tool that allows you to build metadata models and domains. There is also an exercise included that walks you through creating a metadata model using a small sample database.

There is sample data available if you want to test Metadata Editor before importing your own data. This sample data is inside of the Pentaho download. This process will be covered later in this section.

Audience: To use the Pentaho Metadata Editor, you must have database administrator (DBA) skills, such as knowing how to import tables, create relationships between tables, assign aggregations, add categories, and assign security as well as an extensive knowledge of your databases. You must also know what type of data interests your business users, in order to determine whether a column should be a measure or a dimension, for example. These skills will allow you to map a business user model (logical model) to a complex relational database, which can then lets your users create Pentaho reports without a DBA's assistance.

A Conceptual Overview of the Pentaho Metadata Editor

A Pentaho Metadata Model maps the physical structure of your database into a logical business model.

Learn more

Get Started with the Pentaho Metadata Editor

Follow the instructions to see the example metadata model that is deployed with the Pentaho Server.

The Pentaho Metadata Editor and the Pentaho Server must be running before you can begin.

  1. In the main window of the Metadata Editor, go to File > Import from XMI File.
  2. Navigate to your installation of the Pentaho Server (for example, C:\Program Files\pentaho\server\pentaho-server\pentaho-solutions\, if you used the installer). There can be several root pentaho-solution folders and each of them may contain one metadata model repository.
  3. Open the steel-wheels folder and click [MyBusinessModel].xmi where [myBusinessModel] is any name you have given the model. The .xmi is the repository for Pentaho-related metadata and business views.
  4. Type Sample Data in the Save Model dialog box.

    If you see the message, "This model already exists...," click Yes to continue.

    This step processes the file and displays the structure of the repository (connections and business models) on the navigation pane on the left.
     

    File:/pme_hr_home_02.png

  5. Log into the User Console, and click New Report.
    File:/22_pme_puc_view.png

Notice that the business models (Human Resources, Inventory, and Orders) are displayed.

Create a Domain

A metadata domain is a Pentaho term that represents all of the business objects created, stored and used in the metadata layer. A domain may consist of one or more connections, one or more models, security information, business tables, business views, categories, columns and concepts. You can create and save multiple metadata domains using the Metadata Editor.

Learn more

Apply Metadata Properties and Concepts

The Pentaho metadata paradigm uses the term concept to mean a collection of metadata properties that can be applied to a given business object (business table or column, for example).

Learn more

Import and Export Domains

When you save a domain, the domain is stored in a metadata repository. The Pentaho Server does not use the metadata repository, instead it accesses an XML file exported from the Pentaho Metadata Editor. Exporting your domain is a good way to ensure safe backups of your domains.

Import a Domain

  1. In the Pentaho Metadata Editor, go to File > Import From XMI File.

    Note: You may be prompted to save the currently active model if you have any unsaved changes pending. When you import a new domain, that domain becomes the active domain in the Pentaho Metadata Editor.
  2. In the file browser, navigate to your domain file, select it, and click OK.
  3. In the Save Model dialog box, type a name for the domain.
    Important: If you enter the name of an existing domain, that domain is overwritten by the import.

Export a Domain

  1. In the Metadata Editor, go to File > Export to XMI File.
    Note: You may be prompted to save the currently active model if you have any unsaved changes pending.
  2. Type a file name and select a location to save your file.
    Important: The default extension for a Metadata domain XML file is .xmi.
  3. Click Save. Once you have entered a name for your export file, the domain is exported to that file. You can inspect the export file using a text editor if you are curious about the underlying XML code.

Advanced Topics

The following topics help to extend your knowledge of Metadata Editor beyond basic setup and use:

Troubleshooting

See our list of common problems and resolutions.

Learn more