

# How cataloging works

When an administrator turns on cataloging in the AWS Glue console for your AWS account, Amazon SageMaker AI registers your existing and new AI assets to AWS Glue Data Catalog as you create and update them. AWS Glue Data Catalog stores each asset's technical metadata, the lineage that connects it to other assets, and any business context that your organization adds. You can then find and use assets in Amazon SageMaker AI Studio and query them in Amazon S3 system tables. The following sections describe each part of this process.

## Automatic cataloging
<a name="catalog-assets-how-automatic"></a>

Cataloging is opt-in. An administrator turns it on once for the account in the AWS Glue console. For instructions, see [Set up catalog](catalog-assets-set-up.md).

After cataloging is turned on, Amazon SageMaker AI automatically registers an existing or new asset to the AWS Glue Data Catalog for your account each time you create or update a supported resource, such as a model version. You don't register assets yourself. For the asset types that are registered, see [Supported assets](catalog-assets-supported.md).

## Technical metadata
<a name="catalog-assets-how-metadata"></a>

Each asset includes technical metadata that Amazon SageMaker AI captures from the underlying resource, such as the asset type, owner, storage location, and creation time. Some asset types include more metadata. For example, a model version includes its approval status and inference containers. For the metadata registered for each asset type, see [Supported assets](catalog-assets-supported.md).

## Lineage
<a name="catalog-assets-how-lineage"></a>

As your Amazon SageMaker AI jobs run, Amazon SageMaker AI sends a lineage record to AWS Glue Data Catalog for each job, capturing its inputs and outputs. AWS Glue Data Catalog combines these records with lineage across AWS resources into a single graph. The graph includes column-level lineage from source tables to feature group features in OpenLineage format.

For more information, see [Trace lineage from data to AI](catalog-assets-lineage.md).

## Business context
<a name="catalog-assets-how-business"></a>

Administrators and asset owners can add business context to the technical metadata:
+ **Glossary terms**: shared business definitions, such as `Churn Model`. For more information, see [Glossary terms](catalog-assets-business-metadata.md#catalog-assets-business-metadata-glossary).
+ **Metadata forms**: your own fields, such as business owner or risk tier. For more information, see [Metadata forms](catalog-assets-business-metadata.md#catalog-assets-business-metadata-forms).

AWS Glue Data Catalog indexes business context together with technical metadata for semantic search, and stores them. This lets users find assets by business meaning, not only by exact name. For more information, see [Business context in the Data Catalog](https://docs.aws.amazon.com/glue/latest/dg/catalog-business-context.html).

## Use the catalog
<a name="catalog-assets-how-use"></a>

You can work with registered assets in the following ways:
+ **Amazon SageMaker AI Studio**: search, review lineage, and use assets from the **Catalogs** page. For more information, see [Amazon SageMaker AI Studio](https://docs.aws.amazon.com/sagemaker/latest/dg/studio-updated.html).
+ **AWS Glue console, AWS CLI, and APIs**: manage assets, glossary terms, and metadata forms. For more information, see [Automatic asset discovery in AWS Glue](https://docs.aws.amazon.com/glue/latest/dg/catalog-and-crawler.html).
+ **Amazon SageMaker AI notebook**: search, view, and use registered assets in your Jupyter notebook to query tables or deploy models. For more information, see [Prepare your data in a notebook](https://docs.aws.amazon.com/sagemaker/latest/dg/ex1-prepare.html).
+ **Query with SQL**: AWS Glue Data Catalog publishes registered assets and lineage to read-only Apache Iceberg tables in Amazon S3 Tables. You can query these tables from Iceberg-compatible engines. For more information, see [AWS managed table buckets](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-aws-managed-buckets.html).

## Turn off cataloging
<a name="catalog-assets-how-turn-off"></a>

An administrator can turn off cataloging at any time in the AWS Glue console. For more information, see [Automatic asset discovery in AWS Glue](https://docs.aws.amazon.com/glue/latest/dg/catalog-and-crawler.html).

**Important**  
When you turn off cataloging, users can no longer find those assets through catalog search in Amazon SageMaker AI Studio. Turning off cataloging doesn't delete the underlying Amazon SageMaker AI resources. You can still access those resources in Amazon SageMaker AI.