Skip to main content
Preview In this tutorial you model a small retail company in Ontology Studio, publish it as release 1.0.0, and ask the release a question the way an agent would. You don’t need any SQL or warehouse access. Time: about 15 minutes.

What you’ll build

A retail ontology with four object types and two links:

Before you begin

  • An administrator has installed the Ontology app. See Install and manage apps.
  • You can create in at least one workspace.
  • Open Ontology Studio: in Brain, select Apps, then select Ontology. See Open Atlan apps.
1

Create ontology

  1. On All ontologies, choose New ontology.
  2. Select the Workspace and enter Retail as the Name. Studio fills in the API name retail.
  3. Optionally open More options and set an IRI namespace such as https://example.com/retail#. Studio then suggests an IRI for each definition. Leave the Versioning policy on Backward compatible.
  4. Choose Create ontology.
Studio opens the ontology’s Overview, with a Get to 1.0.0 checklist: add object types, connect them with links, fix the issues, and publish.
2

Add four object types

  1. Open the Definitions tab and choose New definition.
  2. Select the Object type kind, enter Customer as the Name, and keep Object kind on Entity · something that exists over time.
  3. Choose Create draft.
  4. Repeat for Product and Store as entities, and for Order with Event · something that happened.
Definitions now lists four object types, each marked as a draft.
3

Add properties

  1. Open Customer and select the Properties tab.
  2. Choose Add property. Enter the API name customer_id, choose the Data type Text, and turn on Required and Identifier. Choose Add property.
  3. Add status as Text. Optionally add Allowed values such as active and churned.
  4. Choose Save draft, or press ⌘S or Ctrl+S.
  5. Repeat for the other types, using the properties in What you’ll build. Use Date and time for ordered_at.
An identifier must be required and a single value. If you forget Required, Studio shows An identifier must be required before you can save.
5

Validate and review

Open the Publish tab. Studio checks every draft together as soon as the page opens.
  • The page lists every error and warning it finds. A link or type without an IRI gets a warning, because RDF, OWL and SPARQL tools can’t address it. Warnings don’t block publishing.
  • Fix any errors. Each issue links to the definition it names, and Publish stays unavailable until every error is fixed.
When the drafts are clean, the status line reports the definitions that pass checks and any warnings. Because this is the first release, it shows First release: there is nothing to compare with yet.
6

Publish release 1.0.0

  1. Choose Publish. Studio opens Publish a new release with the version 1.0.0 already filled in.
  2. Choose Publish 1.0.0.
Studio shows Release 1.0.0 published and its Release ID, which starts with rel_. Choose Copy release ID and keep it for the last step. The release can’t change: to fix something later, publish 1.0.1 or 1.1.0.
7

See agent context

Under What’s next, choose Ask this release. Studio opens Agent context on the Ask tab with release 1.0.0 selected.
  1. Keep the scope on Logical model.
  2. Enter the Question customers and their orders and choose Ask.
The results are the definitions an agent would receive. Customer and Order are marked matches your words, and the places link can appear as linked to a match. The header shows a token estimate such as ≈ 900 of 12,000 tokens and fits, which means nothing was cut.An agent gets the same result by calling the extension__ontology__get_context MCP tool. The ontology ID is the part of the Studio address after #/o/. The example shows the tool’s arguments in full mode. In search mode, send them as arguments to mcp__call_read_tool, with session_id and rationale beside them. Replace the example IDs and session_id with your values:

Verify

  • Releases lists 1.0.0 with its date, author, definition count and checksum.
  • The toolbar status shows Live 1.0.0.
  • The Data bindings and Knowledge records pages are in the ontology’s navigation from the start. Agent context appears there once a release exists, because agents read an exact release.

What you accomplished

You built a six-definition model, validated it as one graph, and published an unchangeable release. You then saw the bounded slice an agent receives for a question, with the release ID and token estimate that prove which model it read.

Next steps