● Ontology & knowledge graph · technical guide

How business meaning is built, reviewed and used

The ontology defines business terms, metrics and valid relationships. The knowledge graph links the specific records behind them, and those records stay in your systems. This page shows how both are learned, who reviews them, and what a question does with them.

What it holds

Four kinds of knowledge, kept apart on purpose

Keeping them apart is what lets you review a definition without touching an access rule, or change a policy without re-learning a join.

01

Definitions

Entities, metrics and computed terms a schema cannot express: “revenue” means quantity × price, a credit policy’s threshold becomes a queryable term.

02

Relationships

Every foreign key becomes a relationship. A detected junction table becomes a many-to-many edge. Joins no key declares are proposed from value overlap and query history.

03

Records

The knowledge graph points at specific records in your sources and reads them at question time. Nothing is copied into a new store.

04

Policy

Sources are classified L0 (public) to L4 (highly restricted). Row and column rules are written against user attributes, and apply to people and AI alike.

How it is learned

Registering a backend starts the learning

No data-dictionary project first. Four independent signals build candidates from what is actually there.

01 · immediate

Schema metadata

Mechanical, with no model call. Foreign keys and junction tables become relationships the moment the backend is registered.

02 · async

Row data

Samples real column values to find joins no key declares, and flags PII-typed columns for access policy.

03 · continuous

Query logs

Mines the audit log of executed statements. A join analysts use repeatedly is stronger evidence than a schema guess.

04 · on upload

Policy and reference documents

Extracts business terms and threshold clauses from documents you upload.

Review

Inference proposes. A person decides.

Every inferred candidate lands in a review queue. Structural, mechanically certain candidates (a declared foreign key) can be accepted automatically. Everything inferred, whether a value-overlap join, a mined query pattern or a document-derived term, waits for a human decision in ontology review. A bad join degrades one answer. A bad access grant is a security decision, and no inference is allowed to make that on its own.

What reviewers see, and how usage feeds the queue, is described in the learning loop.

In use

What a question does with it

  1. 1

    Resolve the terms

    Map the words in the question to defined entities and metrics, so “paid amount” means the same thing in every source.

  2. 2

    Apply the asker’s access

    The requesting identity, with its roles and attributes, travels with the statement. Columns the person may not read are left out of what the model is shown.

  3. 3

    Plan across sources

    Choose where each part runs using real statistics and measured per-backend timing, and join the results at the time of the question.

  4. 4

    Check and answer

    Whatever the model writes is checked again before it runs. The answer names its sources and the checks it passed.

Worked example · illustrative

One invoice across systems

The same illustrative example as on thinkingsense.ai. The data is invented.

Relationships
  • Vendor issues Invoice
  • Invoice references Purchase order
  • Payment settles Invoice
  • Approval rule governs Invoice review
Selected: Vendor issues invoice
LayerContent
DefinitionEvery invoice has an issuing vendor.
RecordNorthstar Components issued invoice 90017.
EvidenceVendor master ID V-142 and the invoice header.
Workflow useConfirm vendor identity before comparing payment records.
Go deeper

Reference