Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Rational Data Architect skills series, Part 3: Discover schema relationships with Rational Data Architect

Create schema mappings semi-automatically

Torsten Bittner (tbittner@us.ibm.com), Software Engineer, EMC
Torsten Bittner photo
Torsten Bittner works as a software engineer in Information Management, IBM Software Group. He carries a diploma degree in computer science from the University of Rostock, Germany. His development responsibilities include the Rational Data Architect mapping editor discovery and the query generation component.

Summary:  You can use IBM® Rational® Data Architect to define data mappings. When working with large schemas, it can be very cumbersome to manually create mappings. Rational Data Architect offers a discovery component to semi-automatically identify potential mappings. This tutorial provides an introduction to the relationship discovery component of Rational Data Architect.

View more content in this series

Date:  19 Dec 2006
Level:  Intermediate PDF:  A4 and Letter (1541 KB | 38 pages)Get Adobe® Reader®

Activity:  5698 views
Comments:  

Before you start

In this tutorial learn how to use the discovery component of Rational Data Architect to semi-automatically create mappings between relational and XML data sources. This tutorial is the third in a series about Rational Data Architect.

About this tutorial

This tutorial shows you, step by step, how to:

  • Invoke the Rational Data Architect (RDA) lexical similarity discovery algorithm to discover potential schema mappings based on the similarity of column names.
  • Define a glossary model that contains words, abbreviations, and synonyms using the RDA Glossary Model editor.
  • Use the glossary model information with the semantic name algorithm to discover additional matches.
  • Set up relationship discovery to use data samples.
  • Find potential mappings with algorithms that use data samples.

Objectives

After taking this tutorial, you should be able to use the Rational Data Architect discovery component to find potential schema mappings.


Prerequisites

Product name change

On December 16th, 2008 IBM announced that as of Version 7.5.1, Rational Data Architect is renamed to InfoSphere Data Architect to feature its role in InfoSphere Foundation Tools.

This tutorial assumes familiarity with relational databases, preferably DB2®. Familiarity with the Rational Data Architect Mapping Editor is beneficial, but not required. For reference, consult these developerWorks articles:


System requirements

To execute the steps described in this tutorial, you need to have Rational Data Architect V7 and IBM DB2® Enterprise 9 installed. You can download trial versions of IBM Rational Data Architect V7 and DB2 V9.1 (see Resources).

Setup steps

  1. Install DB2 V9.1..
  2. Install Rational Data Architect V7.
  3. Unzip the package, ar-rdamapcode.zip from the file into a folder (for example, C:\RDA_Tutorials). This step creates the RDA_Discovery folder.
  4. Start Rational Data Architect and specify the folder where you unpacked the package as the location for your workspace (for example, C:\RDA_Tutorials).
  5. The RDA_Discovery folder in the package is a Rational Data Architect data project folder. In Rational Data Architect you have to import it into your workspace. From the File menu, select Import.
  6. Select the Existing Project into Workspace wizard.

Figure 1. Import wizard selection
Import Wizard selection


  1. Click Next. Browse to the location where you extracted ar-rdamapcode.zip (for example, C:\RDA_Tutorials).

Figure 2. Import Project wizard
Project Import Wizard


  1. Click Finish. As a result, you see the RDA_Discovery project with a set of data models, a glossary model, and mapping models files in your workspace as shown in Figure 3. (If you don't see the Database Explorer, make sure that you are in the Data perspective, shown in Figure 4.)

Figure 3. Data Project Explorer after project import
Data Project Explorer after project import



Figure 4. Data perspective
Data perspective


  1. Some of the relationship discovery algorithms require sample data. The script file rda_discovery_db.sql creates a DB2 database LIBRARY and inserts a set of sample data. To deploy the script in your DB2 database, start the DB2 command window (Windows menu Start > IBM DB2 > Command Line Tools > Command Window).
  2. Go to the RDA_Discovery folder that you extracted from ar-rdamapcode.zip.
  3. To create the database LIBRARY, define primary and foreign keys, and insert sample data, run this command:
    db2 -tvf rda_discovery_db.sql


Figure 5. Creating LIBRARY database
Creating LIBRARY database


  1. To create the database OLD_LIB, define primary and foreign keys, and insert sample data, run the command:
    db2 -tvf rda_discovery_db_old.sql

  1. Connect to the database LIBRARY in Rational Data Architect. In the Database Explorer, right-click Connection and select New Connection. (If you don't see the Database Explorer, make sure that you are in the Data perspective, shown in Figure 4.)

Figure 6. Creating new database connection
Creating new database connection


  1. Specify the connection information according to your environment, similar to Figure 7.

Figure 7. Database connection settings
Database connection settings


  1. Click Test Connection to check whether all parameters are set correctly. If the test is successful, click Finish.
  2. Repeat steps 13 to 15 for the database OLD_LIB using the same connection settings except for the database name.

1 of 12 | Next

Comments



Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Rational, Information Management
ArticleID=184393
TutorialTitle=Rational Data Architect skills series, Part 3: Discover schema relationships with Rational Data Architect
publish-date=12192006
author1-email=tbittner@us.ibm.com
author1-email-cc=

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere).

My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Special offers