Map an ontology to physical data
Give agents versioned physical names and join declarations without giving the Ontology service warehouse credentials.An ontology binding maps one immutable ontology release to user-declared physical identities. A binding can name tables, views, fields, registered transformations, governed joins, or a read-only SQL-backed relation. The extension validates and versions those declarations. It does not connect to a source, verify that a physical name exists, generate executable SQL, or run a query.
Preview. An administrator must install both the Ontology and Ontology
Binding extensions before these routes, artifact kinds, Studio pages, and MCP
tools are available.
Before you start
Set the Gateway URL, bearer token, workspace, and exact Ontology release. Core Registry release IDs use therel_... form.
ansi, big_query, databricks,
postgres, and snowflake dialects.
Use the Data bindings view
Open Ontology Studio, select an ontology with a published release, then choose Data bindings. The view can:- Create a binding family pinned to an exact Ontology release.
- Add object, property, and link mappings.
- Describe a direct table or view, or a SQL-backed virtual relation.
- Validate the complete mapping graph.
- Publish and inspect immutable binding releases.
- Preview the context an agent receives.
- Export or import portable binding JSON.
Create a binding family
The binding root records the exact logical release, a physical source scope, and its compatibility policy:none, backward_compatible, or full_compatible.
Add an object mapping
An object mapping pins one exact logical object version and declares its physical relation and row grain:CUSTOMER_DB.C360.CUSTOMERS in Snowflake.
Declare a SQL-backed relation
Use a query-backed relation when the logical object is implemented by a bounded read-only query rather than one table or view:Add property and link mappings
A property mapping connects a logical property to a field:POST /registry/v1/artifacts/ontology_property_binding. A
registered transformation can instead name a transformation and its output
field.
A link mapping connects two object mappings through one or more governed
property-binding pairs:
POST /registry/v1/artifacts/ontology_link_binding. Validation
checks that the mappings resolve, the logical endpoints agree, and joined
logical property types are compatible.
Validate and publish
Buildsource_versions from the exact root and mapping versions returned by
Registry. Each item contains kind, artifact_id, version_ordinal, and
content_hash.
Retrieve bounded mapping context
ontology_release_id to test reuse against a newer release of the same
ontology. Reuse succeeds only when every referenced logical resource keeps its
exact version and content hash.
An MCP client reaches the same read-only operation as
ontology_binding__get_context.
Export a portable binding
Export one exact binding release as deterministic, credential-free JSON:document uses logical API names rather than environment-specific
artifact IDs. It contains physical declarations, but no credentials or source
data. A release containing legacy artifact-based physical references cannot be
exported portably; append qualified physical names and publish a new release.
Import portable binding JSON
Preview the document against one exact destination Ontology release:Verify the boundary
Before handing a binding release to an agent, verify:- Both the Ontology and binding release IDs are exact
rel_...handles. - Validation returned
is_valid: truefor the versions you published. - The binding response carries both manifest digests.
- Qualified physical names and SQL declarations contain no credentials.
- The calling agent or executor uses a separately governed source connection.
Publish a logical model
Define and publish the logical resources that a binding references.
Get binding context
Give an agent bounded logical definitions and released physical mappings.