Retrieving glossary objects by name¶
Glossary objects (terms, categories and even glossaries themselves) in Atlan have complicated qualifiedName
s. 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 a glossary by name¶
To retrieve a glossary by its human-readable name:
Retrieve glossary by name | |
---|---|
1 2 |
|
- The
findByName()
helper method retrieves the glossary based on its human-readable name. - 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 | |
---|---|
1 2 3 4 5 6 |
|
- The
asset.find_glossary_by_name()
method retrieves the glossary based on its human-readable name. - 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 the second parameter to this method.
Retrieve glossary by name | |
---|---|
1 2 |
|
- The
findByName()
helper method retrieves the glossary based on its human-readable name. - 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.
POST /api/meta/search/indexsearch | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
|
- You actually need to run a search to retrieve glossary objects by name.
- You should filter the search by a specific type, in this example
AtlasGlossary
is the name of the type in Atlan for glossaries. - You then must also filter by the name of the glossary you want to find. This example does an exact match against the provided
Concepts
value (case-sensitive).
Retrieve a category by name¶
To retrieve a category by its human-readable name:
Retrieve category by name | |
---|---|
1 2 3 |
|
- The
findByName()
helper method retrieves the category based on its human-readable name. - You must provide the human-readable name of the category.
- 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 category by name | |
---|---|
1 2 3 4 5 6 7 |
|
- The
asset.find_category_by_name()
method retrieves the category based on its human-readable name. - You must provide the human-readable name of the category.
- 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 the third parameter to this method.
Retrieve category by name | |
---|---|
1 2 3 |
|
- The
findByName()
helper method retrieves the category based on its human-readable name. - You must provide the human-readable name of the category.
- 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.
Requires multiple API operations
To find a category by its name, using the name of the glossary it exists within (rather than the qualifiedName
of the glossary), you must first find the glossary by name. (See above example.) Then use the returned qualifiedName
of the glossary to run the search below for the category within that glossary.
POST /api/meta/search/indexsearch | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
|
- You actually need to run a search to retrieve category objects by name.
- You should filter the search by a specific type, in this example
AtlasGlossaryCategory
is the name of the type in Atlan for categories. - You then must also filter by the name of the category you want to find. This example does an exact match against the provided
Finance
value (case-sensitive). -
Finally, you should also filter the search for the specific glossary in which to find the category. (Since the same category name could exist in many glossaries.)
Requires qualifiedName of the glossary
Note that this requires the `qualifiedName of the glossary, which therefore must first be known or found by an earlier search on glossaries.
Retrieve a term by name¶
To retrieve a term by its human-readable name:
Retrieve term by name | |
---|---|
1 2 3 |
|
- The
findByName()
helper method retrieves the term based on its human-readable name. - You must provide the human-readable name of the term.
- 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.
Retrieve term by name | |
---|---|
1 2 3 4 5 6 7 |
|
- The
asset.find_term_by_name()
method retrieves the term based on its human-readable name. - You must provide the human-readable name of the term.
- 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 the third parameter to this method.
Retrieve term by name | |
---|---|
1 2 3 |
|
- The
findByName()
helper method retrieves the term based on its human-readable name. - You must provide the human-readable name of the term.
- 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.
Requires multiple API operations
To find a term by its name, using the name of the glossary it exists within (rather than the qualifiedName
of the glossary), you must first find the glossary by name. (See above example.) Then use the returned qualifiedName
of the glossary to run the search below for the term within that glossary.
POST /api/meta/search/indexsearch | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
|
- You actually need to run a search to retrieve term objects by name.
- You should filter the search by a specific type, in this example
AtlasGlossaryTerm
is the name of the type in Atlan for terms. - You then must also filter by the name of the term you want to find. This example does an exact match against the provided
Revenue
value (case-sensitive). -
Finally, you should also filter the search for the specific glossary in which to find the term. (Since the same term name could exist in many glossaries.)
Requires qualifiedName of the glossary
Note that this requires the `qualifiedName of the glossary, which therefore must first be known or found by an earlier search on glossaries.