glossary export command
You can export glossary assets to a file that is in an XML or XMI format by using the istool glossary export command.
Purpose
You can export categories, terms, information governance policies, and information governance rules. You can also use this command when you want to schedule an export.
For a complete list of what you can export to a file that is in an XML or XMI format, see Import and export file formats.
You can export all information governance policies and information governance rules in the catalog.
Custom attributes and their values are exported with the glossary assets that you export.
Prerequisites
You must have the Information Governance Catalog Glossary Administrator role.
IBM® InfoSphere® Information Governance Catalog must be installed on the same server as IBM WebSphere® Application Server.
The version of istool command framework must be the same version as InfoSphere Information Governance Catalog.
Run the command from the client tier, or from the engine tier if InfoSphere Information Governance Catalog was installed there.
The preferred way to run this command is in the istool command-line window. If you run this command in your operating system command-line window or in scripts, you must add istool to the command name.
Command syntax
glossary export
authentication parameters
[generic parameters]
pathname
[-devglossary]
[-format XML | XMI]
[-allcategories |-topcategories "cat1, cat2, ... catN"] |
[-categories "cat1::cat2::cat3...,catN::...CatNN"]
[-allpoliciesrules]
[-includeassignedassets]
[-includestewardship]
[-includelabeledassets]
[-includeassetcollections]
[-includeTermHistory]
Parameters
- authentication parameters
- Required. All asset interchange commands use authentication parameters to connect to a specific installation of InfoSphere Information Server.
- generic parameters
- The generic parameters are available to all asset interchange commands. Use the generic parameters to request help on command syntax, to specify silent or verbose operation, and to use a script to run commands.
- -filename | -f pathname
- Specifies the file to export glossary assets to. If pathname contains space characters, you must enclose the pathname in double quotation marks (").
- -devglossary | -devgl
- Exports content in the development glossary only. Content in the catalog is not exported.
- -format | -fm XML | XMI
- Specifies the format of the exported file. By default the format is XML.
- -allcategories | -all
- Specifies that all categories in the source glossary are exported to the specified file.
- -topcategories | -top "cat1, cat2, ... catN"
- Use this parameter to specify a comma-separated list of top-level categories that are exported. Category names can contain spaces.
- -allpoliciesrules | -allpolrul
- Specifies that all information governance policy and information governance rule assets in the catalog are exported.
- -categories | -cat "cat1 :: cat2 :: cat3 :: ... catN"
- Use this parameter to specify a comma-separated list of specific categories and subcategories. Specify the full path of the category you want to export and use a double colon (::) as the separator between the parent category and subcategories.
- -includeassignedassets | -incasst
- Specifies that links to assets that are assigned to exported terms or rules are exported.
- -includestewardship | -incstwd
- Specifies that links to stewards that are assigned to exported glossary assets are included in the export. This parameter refers only to the stewards that you define in the Header section of a glossary asset details page.
- -includelabeledassets | -inclblasst
- Specifies that links to labels that are assigned to exported glossary assets are included in the export.
- -includeassetcollections | -inccoll
- Specifies that links to collections that glossary assets are a part of are included in the export.
- -includeTermHistory | -incHist
- Specifies that term history is included. This parameter is implemented only if the export file is in an XMI format.
Output
A return value of 0 indicates successful completion. Any other value indicates failure. The reason for the failure is displayed in a screen message.
- For Microsoft Windows operating system environment
- C:\Documents and Settings\username\istool_workspace\.metadata\.log
- For UNIX or Linux® operating system environment
- user_home/username/istool_workspace/.metadata/.log
Examples
glossary export -dom ABC:9443 -u xmetauser -p xmetapwd -filename "c:\exp_all.xml" -allcategories
glossary export -dom ABC:9443 -u xmetauser -p xmetapwd -filename "c:\exp_sel2.xml" -categories "Customer::Accounts::AccountID, Customer::Regions"
glossary export –dom ABC:9443 –u xmetauser –p xmetapwd -filename "c:\exp_polrules.xml" -allpolrul