Glossary attributes
These attributes only exist on glossary-related objects in Atlan (terms and categories). Attempting to search for them on other asset types will produce no results.
[Atlas]GlossaryTerm.ANCHOR
The qualifiedName of the glossary in which the term is contained in Atlan.
- Java
- Python
- Kotlin
- Raw REST API
IndexSearchRequest index = client.assets.select() // (1)
.where(GlossaryTerm.ANCHOR.eq("hvhGIKJi7N4xrUhyy8SAP")) // (2)
.includeOnResults(GlossaryTerm.ANCHOR) // (3)
.toRequest();
-
You can search across all assets using the
select()method of theassetsmember on any client. (For details, see Searching for assets.) -
Then provide the exact, full qualifiedName of the glossary in the
eq()predicate. This uses a term query to exactly match the qualifiedName.Equivalent query from ElasticQuery byGlossary = TermQuery.of(t -> t
.field("__glossary")
.value("hvhGIKJi7N4xrUhyy8SAP"))
._toQuery(); -
To make sure the details of this field are included in each result, add the field to
includeOnResults().
for (Asset result : index.search(client))
}
- For details, see Searching for assets.
- The parent glossary can be retrieved from a result through
.getAnchor(), but only after the result has been cast to the appropriate type (GlossaryTerm).
from pyatlan.client.atlan import AtlanClient
from pyatlan.model.assets import AtlasGlossaryTerm
from pyatlan.model.fluent_search import FluentSearch
index = (FluentSearch() # (1)
.where(AtlasGlossaryTerm.ANCHOR.eq("hvhGIKJi7N4xrUhyy8SAP")) # (2)
.include_on_results(AtlasGlossaryTerm.ANCHOR) # (3)
).to_request()
- You can search across all assets using a
FluentSearch()object. (For details, see Searching for assets.) - Then provide the exact, full qualified_name of the glossary in the
eq()predicate. This uses a term query to exactly match the qualified_name. - To make sure the details of this field are included in each result, add the field to
include_on_results().
client = AtlanClient()
for result in client.asset.search(index): # (1)
if isinstance(result, AtlasGlossaryTerm): # (2)
parent = result.anchor
- For details, see Searching for assets.
- The parent glossary can be retrieved from a result through
.anchor, but only after the result has been confirmed to the appropriate type (AtlasGlossaryTerm).
val index = client.assets.select() // (1)
.where(GlossaryTerm.ANCHOR.eq("hvhGIKJi7N4xrUhyy8SAP")) // (2)
.includeOnResults(GlossaryTerm.ANCHOR) // (3)
.toRequest()
-
You can search across all assets using the
select()method of theassetsmember on any client. (For details, see Searching for assets.) -
Then provide the exact, full qualifiedName of the glossary in the
eq()predicate. This uses a term query to exactly match the qualifiedName.Equivalent query from Elasticval byGlossary = TermQuery.of(t -> t
.field("__glossary")
.value("hvhGIKJi7N4xrUhyy8SAP"))
._toQuery() -
To make sure the details of this field are included in each result, add the field to
includeOnResults().
for (result in index.search(client))
}
- For details, see Searching for assets.
- The parent glossary can be retrieved from a result through
.anchor, but only after the result has been cast to the appropriate type (GlossaryTerm).
{
"dsl": {
"query": {
"term": { "__glossary": { "value": "hvhGIKJi7N4xrUhyy8SAP" }} // (1)
}
},
"attributes": [ "anchor" ]
}
- You can use a term query to exactly match the qualifiedName of the parent glossary.
{
"entities": [
{
"attributes": {
"anchor": {
"guid": "3b7fc7d6-0447-4229-a5c8-53f793aefe0b",
"typeName": "AtlasGlossary",
"uniqueAttributes": {
"qualifiedName": "hvhGIKJi7N4xrUhyy8SAP"
}
}
}
}
]
}
[Atlas]GlossaryCategory.ANCHOR
The qualifiedName of the glossary in which the category is contained in Atlan.
- Java
- Python
- Kotlin
- Raw REST API
IndexSearchRequest index = client.assets.select() // (1)
.where(GlossaryCategory.ANCHOR.eq("hvhGIKJi7N4xrUhyy8SAP")) // (2)
.includeOnResults(GlossaryCategory.ANCHOR) // (3)
.toRequest();
-
You can search across all assets using the
select()method of theassetsmember on any client. (For details, see Searching for assets.) -
Then provide the exact, full qualifiedName of the glossary in the
eq()predicate. This uses a term query to exactly match the qualifiedName.Equivalent query from ElasticQuery byGlossary = TermQuery.of(t -> t
.field("__glossary")
.value("hvhGIKJi7N4xrUhyy8SAP"))
._toQuery(); -
To make sure the details of this field are included in each result, add the field to
includeOnResults().
for (Asset result : index.search(client))
}
- For details, see Searching for assets.
- The parent glossary can be retrieved from a result through
.getAnchor(), but only after the result has been cast to the appropriate type (GlossaryCategory).
from pyatlan.client.atlan import AtlanClient
from pyatlan.model.assets import AtlasGlossaryCategory
from pyatlan.model.fluent_search import FluentSearch
index = (FluentSearch() # (1)
.where(AtlasGlossaryCategory.ANCHOR.eq("hvhGIKJi7N4xrUhyy8SAP")) # (2)
.include_on_results(AtlasGlossaryCategory.ANCHOR) # (3)
).to_request()
- You can search across all assets using a
FluentSearch()object. (For details, see Searching for assets.) - Then provide the exact, full qualified_name of the glossary in the
eq()predicate. This uses a term query to exactly match the qualified_name. - To make sure the details of this field are included in each result, add the field to
include_on_results().
client = AtlanClient()
for result in client.asset.search(index): # (1)
if isinstance(result, AtlasGlossaryCategory): # (2)
parent = result.anchor
- For details, see Searching for assets.
- The parent glossary can be retrieved from a result through
.anchor, but only after the result has been confirmed to the appropriate type (AtlasGlossaryCategory).
val index = client.assets.select() // (1)
.where(GlossaryCategory.ANCHOR.eq("hvhGIKJi7N4xrUhyy8SAP")) // (2)
.includeOnResults(GlossaryCategory.ANCHOR) // (3)
.toRequest()
-
You can search across all assets using the
select()method of theassetsmember on any client. (For details, see Searching for assets.) -
Then provide the exact, full qualifiedName of the glossary in the
eq()predicate. This uses a term query to exactly match the qualifiedName.Equivalent query from Elasticval byGlossary = TermQuery.of(t -> t
.field("__glossary")
.value("hvhGIKJi7N4xrUhyy8SAP"))
._toQuery() -
To make sure the details of this field are included in each result, add the field to
includeOnResults().
for (result in index.search(client))
}
- For details, see Searching for assets.
- The parent glossary can be retrieved from a result through
.anchor, but only after the result has been cast to the appropriate type (GlossaryCategory).
{
"dsl": {
"query": {
"term": { "__glossary": { "value": "hvhGIKJi7N4xrUhyy8SAP" }} // (1)
}
},
"attributes": [ "anchor" ]
}
- You can use a term query to exactly match the qualifiedName of the parent glossary.
{
"entities": [
{
"attributes": {
"anchor": {
"guid": "3b7fc7d6-0447-4229-a5c8-53f793aefe0b",
"typeName": "AtlasGlossary",
"uniqueAttributes": {
"qualifiedName": "hvhGIKJi7N4xrUhyy8SAP"
}
}
}
}
]
}
[Atlas]GlossaryTerm.CATEGORIES
The qualifiedName of one or more categories in which the term is organized in Atlan.
- Java
- Python
- Kotlin
- Raw REST API
IndexSearchRequest index = client.assets.select() // (1)
.where(GlossaryTerm.CATEGORIES.in( // (2)
List.of("Y5kzMdHDHbKWncb3EK1w8@hvhGIKJi7N4xrUhyy8SAP",
"SWpBeZFipHmXhSvxUrVNw@hvhGIKJi7N4xrUhyy8SAP")));
.includeOnResults(GlossaryTerm.CATEGORIES) // (3)
.toRequest();
-
You can search across all assets using the
select()method of theassetsmember on any client. (For details, see Searching for assets.) -
Then provide the exact, full qualifiedName of one or more categories in the
in()predicate. This uses a terms query to exactly match the qualifiedName.Equivalent query from ElasticQuery byCategory = TermsQuery.of(t -> t
.field("__categories")
.terms(TermsQueryField.of(f -> f
.value(List.of(FieldValue.of("Y5kzMdHDHbKWncb3EK1w8@hvhGIKJi7N4xrUhyy8SAP"),
FieldValue.of("SWpBeZFipHmXhSvxUrVNw@hvhGIKJi7N4xrUhyy8SAP"))))))
._toQuery(); -
To make sure the details of this field are included in each result, add the field to
includeOnResults().
for (Asset result : index.search(client))
}
- For details, see Searching for assets.
- The categories organizing the term can be retrieved from a result through
.getCategories(), but only after the result has been cast to the appropriate type (GlossaryTerm).
from pyatlan.client.atlan import AtlanClient
from pyatlan.model.assets import AtlasGlossaryTerm
from pyatlan.model.fluent_search import FluentSearch
index = (FluentSearch() # (1)
.where(AtlasGlossaryTerm.CATEGORIES.within([ # (2)
"Y5kzMdHDHbKWncb3EK1w8@hvhGIKJi7N4xrUhyy8SAP",
"SWpBeZFipHmXhSvxUrVNw@hvhGIKJi7N4xrUhyy8SAP"
]))
.include_on_results(AtlasGlossaryTerm.CATEGORIES) # (3)
).to_request()
- You can search across all assets using a
FluentSearch()object. (For details, see Searching for assets.) - Then provide the exact, full qualified_name of one or more categories in the
within()predicate. This uses a terms query to exactly match the qualified_name. - To make sure the details of this field are included in each result, add the field to
include_on_results().
client = AtlanClient()
for result in client.asset.search(index): # (1)
if isinstance(result, AtlasGlossaryTerm): # (2)
categories = result.categories
- For details, see Searching for assets.
- The categories organizing the term can be retrieved from a result through
.categories, but only after the result has been confirmed to the appropriate type (AtlasGlossaryTerm).
val index = client.assets.select() // (1)
.where(GlossaryTerm.CATEGORIES.in( // (2)
List.of("Y5kzMdHDHbKWncb3EK1w8@hvhGIKJi7N4xrUhyy8SAP",
"SWpBeZFipHmXhSvxUrVNw@hvhGIKJi7N4xrUhyy8SAP")));
.includeOnResults(GlossaryTerm.CATEGORIES) // (3)
.toRequest()
-
You can search across all assets using the
select()method of theassetsmember on any client. (For details, see Searching for assets.) -
Then provide the exact, full qualifiedName of one or more categories in the
in()predicate. This uses a terms query to exactly match the qualifiedName.Equivalent query from Elasticval byCategory = TermsQuery.of(t -> t
.field("__categories")
.terms(TermsQueryField.of(f -> f
.value(List.of(FieldValue.of("Y5kzMdHDHbKWncb3EK1w8@hvhGIKJi7N4xrUhyy8SAP"),
FieldValue.of("SWpBeZFipHmXhSvxUrVNw@hvhGIKJi7N4xrUhyy8SAP"))))))
._toQuery() -
To make sure the details of this field are included in each result, add the field to
includeOnResults().
for (result in index.search(client))
}
- For details, see Searching for assets.
- The categories organizing the term can be retrieved from a result through
.categories, but only after the result has been cast to the appropriate type (GlossaryTerm).
{
"dsl": {
"query": {
"terms": { // (1)
"__categories": [
"Y5kzMdHDHbKWncb3EK1w8@hvhGIKJi7N4xrUhyy8SAP",
"SWpBeZFipHmXhSvxUrVNw@hvhGIKJi7N4xrUhyy8SAP"
]
}
}
},
"attributes": [ "categories" ]
}
- You can use a terms query to exactly match the qualifiedName of one of several categories.
{
"entities": [
{
"attributes": {
"anchor": {
"guid": "324f7d64-9ebb-4c61-8e95-129b88dbad60",
"typeName": "AtlasGlossaryCategory",
"uniqueAttributes": {
"qualifiedName": "Y5kzMdHDHbKWncb3EK1w8@hvhGIKJi7N4xrUhyy8SAP"
}
}
}
}
]
}
[Atlas]GlossaryCategory.PARENT_CATEGORY
The qualifiedName of the parent category in which a subcategory is contained in Atlan.
- Java
- Python
- Kotlin
- Raw REST API
IndexSearchRequest index = client.assets.select() // (1)
.where(GlossaryCategory.PARENT_CATEGORY.eq("Y5kzMdHDHbKWncb3EK1w8@hvhGIKJi7N4xrUhyy8SAP")) // (2)
.includeOnResults(GlossaryCategory.PARENT_CATEGORY) // (3)
.toRequest();
-
You can search across all assets using the
select()method of theassetsmember on any client. (For details, see Searching for assets.) -
Then provide the exact, full qualifiedName the parent category in the
eq()predicate. This uses a term query to exactly match the qualifiedName.Equivalent query from ElasticQuery byParentCategory = TermQuery.of(t -> t
.field("__parentCategory")
.value("Y5kzMdHDHbKWncb3EK1w8@hvhGIKJi7N4xrUhyy8SAP"))
._toQuery(); -
To make sure the details of this field are included in each result, add the field to
includeOnResults().
for (Asset result : index.search(client))
}
- For details, see Searching for assets.
- The parent category in which the subcategory is contained can be retrieved from a result through
.getParentCategory(), but only after the result has been cast to the appropriate type (GlossaryCategory).
from pyatlan.client.atlan import AtlanClient
from pyatlan.model.assets import AtlasGlossaryCategory
from pyatlan.model.fluent_search import FluentSearch
index = (FluentSearch() # (1)
.where(AtlasGlossaryCategory.PARENT_CATEGORY.eq("Y5kzMdHDHbKWncb3EK1w8@hvhGIKJi7N4xrUhyy8SAP")) # (2)
.include_on_results(AtlasGlossaryCategory.PARENT_CATEGORY) # (3)
).to_request()
- You can search across all assets using a
FluentSearch()object. (For details, see Searching for assets.) - Then provide the exact, full qualified_name the parent category in the
eq()predicate. This uses a term query to exactly match the qualified_name. - To make sure the details of this field are included in each result, add the field to
include_on_results().
client = AtlanClient()
for result in client.asset.search(index): # (1)
if isinstance(result, AtlasGlossaryCategory): # (2)
parent = result.parent_category
- For details, see Searching for assets.
- The parent category in which the subcategory is contained can be retrieved from a result through
.parent_category, but only after the result has been confirmed to the appropriate type (AtlasGlossaryCategory).
val index = client.assets.select() // (1)
.where(GlossaryCategory.PARENT_CATEGORY.eq("Y5kzMdHDHbKWncb3EK1w8@hvhGIKJi7N4xrUhyy8SAP")) // (2)
.includeOnResults(GlossaryCategory.PARENT_CATEGORY) // (3)
.toRequest()
-
You can search across all assets using the
select()method of theassetsmember on any client. (For details, see Searching for assets.) -
Then provide the exact, full qualifiedName the parent category in the
eq()predicate. This uses a term query to exactly match the qualifiedName.Equivalent query from Elasticval byParentCategory = TermQuery.of(t -> t
.field("__parentCategory")
.value("Y5kzMdHDHbKWncb3EK1w8@hvhGIKJi7N4xrUhyy8SAP"))
._toQuery() -
To make sure the details of this field are included in each result, add the field to
includeOnResults().
for (result in index.search(client))
}
- For details, see Searching for assets.
- The parent category in which the subcategory is contained can be retrieved from a result through
.parentCategory, but only after the result has been cast to the appropriate type (GlossaryCategory).
{
"dsl": {
"query": {
"term": {"__parentCategory":{"value":"Y5kzMdHDHbKWncb3EK1w8@hvhGIKJi7N4xrUhyy8SAP"} // (1)
}
},
"attributes": [ "parentCategory" ]
}
- You can use a term query to exactly match the qualifiedName of the parent category.
{
"entities": [
{
"attributes": {
"parentCategory": {
"guid": "324f7d64-9ebb-4c61-8e95-129b88dbad60",
"typeName": "AtlasGlossaryCategory",
"uniqueAttributes": {
"qualifiedName": "Y5kzMdHDHbKWncb3EK1w8@hvhGIKJi7N4xrUhyy8SAP"
}
}
}
}
]
}