Graph semantics and SQL access can complement each other on the lakehouse.
Ontologies have become a central topic in the Databricks ecosystem. At the 2026 Data + AI Summit, Databricks introduced Genie Ontology as a business-context layer combining curated Unity Catalog semantics with context inferred from existing assets and usage. Separately, Databricks Labs’ OntoBricks project demonstrates how formal ontology standards, mappings, reasoning, and graph interfaces can be implemented within the Databricks environment.
Both developments reinforce a fundamental requirement for enterprise analytics and AI: table names and schemas alone rarely provide enough information to interpret business questions consistently. Reliable answers depend on shared definitions of concepts, relationships, measures, and rules, as well as controls over who can access them.
The important architectural question is therefore not simply where an ontology is stored, but how its meaning is modeled, governed, and consumed. This article examines graph-oriented and SQL-native approaches, then shows how Timbr can expose ontology-defined knowledge to Databricks notebooks, BI applications, and AI agents -without restricting the business model to one physical data platform.
Graph semantics and SQL-native consumption: not competing goals
Graph-oriented ontology architectures commonly use semantic-web standards such as OWL for classes and relationships, R2RML for mapping relational data, SPARQL for querying graph patterns, and SHACL for validation. They provide mature mechanisms for formal semantics, logical inference, and interoperability. Some systems execute graph queries over relational engines; others materialize graph representations for exploration or reasoning. Modern implementations may also expose APIs, GraphQL, and MCP tools, so their consumers are not necessarily required to write SPARQL.
Consider a question: Which sales orders were placed by customers in Chicago, and what is each customer’s name? A graph-oriented expression in SPARQL can make the traversal explicit:
PREFIX ex:
SELECT ?orderNumber ?orderDate ?customerName
WHERE {
?order a ex:SalesOrder ;
ex:orderNumber ?orderNumber ;
ex:orderDate ?orderDate ;
ex:ofCustomer ?customer .
?customer ex:customerName ?customerName ;
ex:city "Chicago" .
}
For a semantic team that query is natural, and it runs on any SPARQL endpoint.
Timbr’s SQL-native ontology preserves graph semantics -concepts, first-class relationships, inheritance, and inference- while making them available through SQL. Consumers can navigate relationships by name in SQL instead of rebuilding join paths in each application. The difference is not semantic depth versus ease of use: it is the interface through which the same organizational meaning is defined and reused.
This matters for enterprises whose established consumption environment is built around SQL, notebooks, JDBC/ODBC clients, dashboards, and text-to-SQL agents. Ontological knowledge becomes accessible in workflows those teams already use, while remaining a governed, reusable model rather than application-specific query logic.
How Timbr's SQL-native ontology works on Databricks
In Timbr, concepts are created with SQL DDL and mapped to physical sources. Explicit ontology relationships connect concepts independently of the join expressions a query would otherwise need to repeat. The simplified example below follows the original draft’s model; exact DDL should be tested against the targeted Timbr release before publication.
CREATE OR REPLACE CONCEPT `customers` (
`customer_id` string,
`customer_name` string,
`city` string,
CONSTRAINT `has_sales_orders` FOREIGN KEY (`customer_id`)
REFERENCES `sales_orders` (`customer_id`) INVERSEOF `of_customers`,
PRIMARY KEY(`customer_id`)) INHERITS (`thing`);
CREATE OR REPLACE MAPPING `map_customers` INTO `customers`
AS SELECT * FROM `retail_demo`.`default`.`customers`;
Here is the same Chicago orders question in Timbr SQL. The relationship is followed by name, so the query has no JOIN:
SELECT order_number, order_date,
`of_customers[customers].customer_name` AS customer
FROM dtimbr.sales_orders
WHERE `of_customers[customers].city` = 'Chicago';
Timbr resolves the relationship into the appropriate source-level query plan, including joins where needed, and delegates supported processing to Databricks. The important advantage is not merely fewer lines of SQL. The customer-to-order relationship is defined and maintained centrally, allowing notebooks, dashboards, and agents to reuse consistent business meaning as the underlying implementation evolves.
With the relevant integration configured, Timbr’s ontology can be surfaced in Unity Catalog for use from Databricks workflows. Timbr also supplies its own governance controls, including role-based permissions and policies for rows and sensitive attributes, with enforcement behavior dependent on deployment and identity configuration. Unity Catalog and Timbr governance should be understood as complementary, not automatically identical, layers.
One ontology, three consumers
Suppose a company stores customers and orders in Databricks but maintains contracts in SAP HANA. Timbr maps the Customer and Contract concepts to their respective sources, defines a has_contracts relationship, and standardizes measures such as total contract value. The ontology describes a business relationship that crosses two physical systems.
An analyst in a Databricks notebook can use SQL to find customers with contracts renewing this quarter, following the ontology relationship rather than manually recreating the cross-source data logic. A Power BI report can consume the governed concepts and measures through an appropriate Timbr-supported connection, limiting the need to duplicate semantic definitions in each report model.
An AI agent in Databricks AI Playground can connect to Timbr through an MCP service. When asked, “Which Chicago customers have contracts renewing this quarter?”, an agent can obtain ontology context describing the relevant concepts, relationships, attributes, and approved measures, then use that context to formulate a grounded SQL request. Timbr executes requests within the configured permissions; per-user identity propagation requires OAuth and related integration setup rather than being presumed for every deployment.
A further layer of context is available through Timbr’s Knowledge Base for Data Agents. While the ontology defines structural and business meaning, the Knowledge Base can supply approved question-to-SQL examples, preferred query patterns, business rules, and interpretation guidance. The two work together: instructions and examples inform query generation, while the ontology establishes the governed concepts and relationships against which the request must be understood.
The result is a common semantic foundation with different interfaces. When the definition of total contract value changes, the intended point of maintenance is the shared measure, not three separately maintained versions of business logic.
| Consumer | How it connects | Setup required |
|---|---|---|
| Databricks notebook | Timbr's Databricks integration, with the ontology exposed in Unity Catalog | Enable integration; configure warehouse, permissions, and optionally SSO |
| Power BI | Timbr's Power BI integration | Power BI's Spark or Databricks connector pointed at Timbr, with a Timbr user token |
| AI agent | Timbr MCP server as an MCP Service in Databricks AI Gateway | Unity Catalog HTTP connection, plus per-user OAuth or a shared token |
| SAP HANA data | Timbr datasource connection | SAP HANA added as a datasource in Timbr, with Active Virtualization enabled on the Databricks datasource and Databricks set as the knowledge graph's default active datasource |
From schema discovery to an AI-ready ontology
A practical barrier to ontology adoption has always been the work required to model concepts, relationships, measures, and mappings. Timbr can use a customer-selected and customer-managed LLM, guided by Timbr capabilities, to generate an initial ontology from source schemas, including descriptions and candidate relationships. Human review remains important, particularly where inferred relationships or measures involve business assumptions that cannot be established from schema structure alone.
This distinction is increasingly important because Databricks-native solutions are also incorporating ontology generation and agent interfaces. OntoBricks, for example, supports AI-assisted ontology design, mapping, graph materialization, and MCP publication. Timbr’s differentiation should therefore rest on the enterprise architecture it offers: SQL-consumable first-class ontology semantics, portable definitions over heterogeneous sources, and governed context shared across tools.
Bringing the OWL ontology you already have into SQL workflows
Organizations that already use formal models -such as financial like FIBO, healthcare (HL7’s FHIR , or manufacturing ontologies- need not abandon that investment to support SQL consumption. Timbr supports importing OWL ontologies and bringing their modeled concepts, hierarchies, and relationships into its SQL ontology environment. The precise mapping of advanced OWL constructs and restrictions depends on their supported representation and should be validated for each source model.
Timbr can also materialize ontology content as RDF for interoperability with semantic-web and graph tooling. Where a SPARQL endpoint or external reasoner is required, the graph-oriented and SQL-oriented workflows can coexist.
After conversion, analysts, BI tools, and agents can use those relationships and hierarchies in SQL, and the semantic team keeps the structure it built. The model can also go back out as RDF/OWL when a reasoner or SPARQL endpoint needs it, so the semantic web side and the SQL side stay connected.
Caching and RDF when a workload needs them
Timbr queries the source data by default. When a dashboard runs the same aggregate all day, Timbr’s caching engine can store that result in the database, the data lake, SSD, or memory, under the same security rules as live queries. Timbr can also materialize the SQL ontology into RDF and export it for use with external OWL reasoners, SHACL validators, and graph platforms like Neo4j and Amazon Neptune. Both are decided per workload.
When the business extends beyond Databricks
Enterprise business meaning rarely follows the boundaries of a single platform. Customer records may live in Salesforce, finance in SAP, support information in ServiceNow, and analytical data across Databricks and Snowflake. Modern platforms increasingly connect to external systems, but connectivity alone does not guarantee a consistent, reusable business model across them.
Timbr defines its ontology independently of those underlying sources. Concepts can map to heterogeneous systems while relationships and measures are centrally defined and governed. Databricks can remain the main analytical execution environment for the data it hosts, while the ontology represents business meaning across the wider enterprise landscape. If an underlying source or schema changes, ontology mappings can be adjusted with the goal of preserving stable interfaces for analysts, applications, and agents.
This is a more useful architectural distinction than suggesting that Databricks-native solutions cannot reach external data. The question is which layer owns business definitions and how those definitions remain portable, governable, and available across tools and platforms. We looked at the platform question in more depth in Databricks Now Has a Governed Semantic Layer. Should It Be Yours?
Choosing an ontology architecture
Graph-native ontology architectures can be particularly appropriate where formal reasoning, RDF exchange, SHACL validation, or graph exploration are primary requirements. SQL-native consumption is particularly valuable when enterprise teams need the same relationship-rich ontology in existing SQL-centric analytics and AI workflows. These are not mutually exclusive choices: organizations may need the rigor of ontology standards together with broad SQL access and open interoperability.
For Databricks users, the central question is no longer whether ontologies can run in the lakehouse. It is whether the enterprise can build a reusable, governed representation of business meaning that spans its data estate and consistently serves notebooks, BI applications, and AI agents. Timbr provides one architecture for meeting that requirement by combining graph semantics, SQL-native consumption, cross-platform virtualization, and governed AI context.
Already using Databricks? Bring one business question that crosses datasets or systems. A focused Timbr proof of concept can model the necessary concepts and relationships once, then demonstrate their reuse in SQL analytics, BI, and an AI agent.
Request a POC or book a live demo.