Try OnToGraPh

Which definitions can an agent use with the columns available to it? Test one change in the Studio, then try a definition of your own. You need a desktop computer and Python 3.10 or later.

What is an ontology?

1. Open the Studio

Download Studio source (ZIP)

Extract the ZIP. Open a terminal in the extracted folder containing README.md and run the command below. On Windows, use py -3 in place of python3.

python3 -m ontograph studio

Leave the terminal running. Open the local address it prints and choose Semantic Studio. The example runs on your computer without an account or an API key.

2. See what the agent receives

An analyst asks how many returned units were received. The definition needs both the recorded quantity and the status distinguishing received returns from requests.

  1. Open SQL glossary. Under Source, choose Synthetic orders release. Paste these column names into Allowed column labels, one per line.
    invoices.status
    invoices.gross_cents
    invoices.tax_cents
    returns.status
    returns.received_units
    customers.id
    orders.id
    orders.customer_id
    invoices.order_id
    orders.state
    orders.subtotal_cents
    invoices.id
  2. Choose Preview glossary. You should see 5 / 5. Under Inspect concept, select Returned units to see its definition and two columns.
  3. Delete only returns.status from the list and preview again. The count falls to 4 / 5. Select returned-units in the inspector to see the missing column. Expand Agent context (JSON) to see the four terms the agent would receive.
  4. Restore the line and preview once more. All five terms return. The preview uses the column list you supplied. Database permissions are managed separately.

3. Try your own definition

Choose one term that depends on two columns. Replace the example below with your term, the inclusion rule, its owner and the exact column names. The form builds a draft in your browser. Only schema labels and a definition are needed.

  1. In Semantic Studio, use Import to open my-definition.json. In SQL glossary, choose Current draft. Paste your two column names on separate lines and preview. You should see 1 / 1 and your definition.
  2. Remove either column and preview again. You should see 0 / 1 and the missing field in the inspector. Restore the field to get 1 / 1. The file is a local draft with synthetic review evidence. Adoption in a live workflow requires the owner’s approval and the actual application’s column scope.