When the database schema exists, its metadata can be imported into
Corticon Studio.
You can control the tables that are accessed to transfer metadata to
the Vocabulary. When only a small subset of tables will supply the metadata that is
needed, the time and space overhead of the process is reduced by delimiting the
number of tables.
To import the metadata from the databases into the
Vocabulary:
Open the project's Vocabulary into its editor.
Select the Vocabulary root
Select, in turn, each database connection tab:
Click Test Connection to confirm that there is a good
connection..
Click METADATA Import
In the dialog, accept Import all
tables or click Choose tables for database
metadata import, and then click Next. The
panel lists all the tables in the connected database.
If you do not want all, click Deselect All, and then choose specific tables. For the sample's
Patient Data Datasource, just two tables are
selected. The query tables listed do not have metadata so they can be
deselected.
Click Finish to perform the task.
As database metadata is imported into a Vocabulary, the
Vocabulary Editor’s automatic mapping feature attempts to find the smart match for each piece of metadata. An entity will
be auto-mapped to a table if the two names are spelled the same way, regardless
of case.
Importing another Datasource's metadata
When the Vocabulary is supporting multiple database connections, each
source is mapped separately to its respective tables. For the sample's Treatment Data Datasource, just one table is selected.