View a markdown version of this page

Data ontology - AWS Context

Data ontology

The Data ontology models your data estate. This includes the catalogs, databases, tables, and columns in your structured sources, along with their business metadata and the lineage between them. AWS Context uses it for AWS Glue Data Catalog, Snowflake, and Databricks Unity Catalog connections and builds the entities directly from each source’s catalog metadata.

Entity types

The Data ontology defines the following groups of entity types. Which types appear in your Agent Context depends on what your connected sources contain. The last group holds the common types that all three built-in ontologies share.

Group Entity types What they represent

Catalog structure

Catalog, Schema, Table, Column

The containers and assets in your catalog: catalogs, databases or schemas, tables, and their columns.

Business metadata

Glossary, GlossaryTerm, MetadataFormType, MetadataFormAttachment, Tag, TagValue, ReferenceLink

The business context that your catalog attaches to assets, such as glossary terms, metadata forms, tags, and links to related resources.

Lineage

Job, LineageDataset

The jobs that read and write your data, and the datasets that lineage refers to.

Semantic layers

SemanticView, SemanticMetric, Dimension, SemanticLogicalTable, SemanticRelationship, SemanticParameter

The metrics, dimensions, and views that a source’s own semantic layer defines, such as Snowflake semantic views and Databricks metric views.

Other data assets

PlatformInstance, ComputeEndpoint, StorageLocation, Stream, SearchIndex, SchemaRegistry, RecordSchema, RecordSchemaVersion, ModelGroup, ModelVersion, ModelEnvironment, MlDataset, MlDatasetVersion, Evaluator, EvaluatorVersion

Other assets that a catalog can describe. These include database and search clusters, storage locations, search indexes, data streams and their schemas, and machine learning resources such as models, datasets, and evaluators.

Retrieval context (shared)

Concept, Metric, Question, ValidSql, Skill, Api, RetrievalInstruction

The common types, shared by all three built-in ontologies, that help agents answer questions: business concepts, governed metrics, question patterns, validated question-and-SQL examples, skills, application programming interfaces (APIs), and your retrieval instructions.

Relationship types

Relationship types are directional. The following table groups them by what they describe. The last group holds the common relationship types that all three built-in ontologies share. In the Semantic layers group, a metric is additive over a dimension if you can add up its values across that dimension, such as revenue across Regions. It’s non-additive over a dimension if you can’t, such as an account balance across days.

Group Relationship types Example

Catalog structure

hasSchema, hasTable, hasColumn, storedIn, hostedOn

A Catalog has a Schema, which has a Table, which has a Column.

Business metadata

hasTerm, termRelation, hasAttachment, hasInstance, hasValue, taggedWith

A Glossary has a GlossaryTerm. A Table is tagged with a TagValue.

Joins and lineage

declaredJoinsTo, consumes, produces, columnDerivedFrom, tableDerivedFrom

A Job consumes one Table and produces another. A Column is derived from another Column.

Semantic layers

definedOn, hasSemanticView, hasMetric, hasDimension, hasLogicalTable, hasSemanticRelationship, hasSemanticParameter, fromLogicalTable, toLogicalTable, representsTable, definedInLogicalTable, usesSemanticRelationship, additiveOver, nonAdditiveOver

A SemanticView is defined on a Table and has a SemanticMetric, which is additive over a Dimension.

Other data assets

hasModelGroup, hasVersion, hasEnvironment, hasMember, hasSearchIndex, hasStream, hasRecordSchema, conformsTo, serves

A ModelGroup has a ModelVersion.

Retrieval context (shared)

mapsTo, joinsTo, broader, relatedTo, derivedFrom, definedBy, answeredBy, requires, appliesTo, validatesTable

A Concept maps to the Column it describes. A Question is answered by a ValidSql example.