Skip to main content

Retrieving glossary objects by name

Glossary objects (terms, categories and even glossaries themselves) in Atlan have complicated qualifiedNames. This makes retrieving them using the get() operation less than ideal.

To address this, the SDKs provide helper methods to retrieve glossary objects based on their human-readable names.

Retrieve glossary by name

To retrieve a glossary by its human-readable name:

Retrieve glossary by name
Glossary glossary = Glossary.findByName( // (1)
client, // (2)
"Concepts") // (3)
  1. The findByName() helper method retrieves the glossary based on its human-readable name.
  2. Because this operation will lookup the asset in Atlan, you must provide it an AtlanClient through which to connect to the tenant.
  3. You must provide the human-readable name of the glossary. The method will only include a bare minimum set of attributes about the glossary—you can request additional attributes by providing a list of them as an (optional) second parameter to this method.

Retrieve category by name

To retrieve a category by its human-readable name:

Retrieve category by name
GlossaryCategory category = GlossaryCategory.findByName( // (1)
client, // (2)
"Finance", // (3)
"Concepts"); // (4)
  1. The findByName() helper method retrieves the category based on its human-readable name.
  2. Because this operation will lookup the asset in Atlan, you must provide it an AtlanClient through which to connect to the tenant.
  3. You must provide the human-readable name of the category.
  4. You must also provide the human-readable name of the glossary for that category. (A category with the same name can exist in different glossaries, but not in the same glossary.) The method will only include a bare minimum set of attributes about the category—you can request additional attributes by providing a list of them as an (optional) third parameter to this method.

Retrieve term by name

To retrieve a term by its human-readable name:

Retrieve term by name
GlossaryTerm term = GlossaryTerm.findByName( // (1)
client, // (2)
"Revenue", // (3)
"Concepts"); // (4)
  1. The findByName() helper method retrieves the term based on its human-readable name.
  2. Because this operation will lookup the asset in Atlan, you must provide it an AtlanClient through which to connect to the tenant.
  3. You must provide the human-readable name of the term.
  4. You must also provide the human-readable name of the glossary for that term. (A term with the same name can exist in different glossaries, but not in the same glossary.) The method will only include a bare minimum set of attributes about the term—you can request additional attributes by providing a list of them as an (optional) third parameter to this method.
Was this page helpful?