Skip to main content
When enabled, Ana uses your configured ontology (semantic layer) to understand your data relationships, business definitions, and pre-configured joins. Instead of writing raw SQL, Ana can query using business-friendly concepts like “metrics” and “dimensions” that you’ve pre-defined.
Consistency Guaranteed: With Ontology enabled, the same metric always produces the same calculation—ensuring everyone in your organization gets aligned results.
Ontology tool showing metrics and dimensions

Ana using ontology to explore database structure and query metrics

You Define the Structure

Users create and customize their own ontology by defining these core components:

Objects

Your business entities that map to database tablesExample: Customers, Orders, Products

Metrics

Pre-defined calculations with exact SQL logicExample: “Total Revenue”, “Customer Lifetime Value”

Dimensions

Attributes for grouping and filtering dataExample: “Order Date”, “Customer Region”

Links

Relationships between different objectsExample: “Orders belong to Customers”
Quality Matters: The more accurately you define your ontology, the more fine-tuned and consistent your results will be. Each metric includes the exact SQL logic needed to calculate it.

How It Differs from Text to SQL

  • Quick Comparison
  • Text to SQL
  • Ontology
FeatureText to SQLOntology
Query GenerationGenerates SQL from scratch each timeUses pre-defined metric SQL
ConsistencyMay vary between queriesSame metric = same calculation always
Business LogicAna figures it out on the flyPre-configured by you
ComplexityCan handle simple queries wellExcels with complex data models
Setup RequiredNoneRequires ontology configuration

When to Use

Enable the Ontology tool when:
1

You Have an Ontology Configured

An ontology must be built and configured for your data warehouse before you can use this tool.
2

You Need Consistency

When metric calculations must be consistent across your organization and over time.
3

Complex Data Models

Your data model has many tables with intricate relationships that are hard to explain each time.
4

Enforce Business Logic

You want to ensure everyone uses the same definitions and calculation methods.
5

Pre-Defined Metrics

You’re asking questions about metrics that have already been defined in your ontology.
Investment Pays Off: The more effort you invest in defining your ontology, the more reliable and business-aligned your results will be.

Benefits

Consistency

Everyone gets the same numbers for the same metrics—no more “version of the truth” debates

Efficiency

No need to explain complex joins and calculations repeatedly—they’re pre-configured

Governance

Control how metrics are calculated and ensure compliance with business rules

Self-Service

Non-technical users can query using business terms without knowing SQL

Documentation

Your ontology serves as living documentation of your data model

Scalability

As your data model grows, the ontology handles increased complexity gracefully

Building Your Ontology

Ready to create or enhance your ontology? Check out these resources:

Best Practices

Begin by defining your organization’s most important and frequently-used metrics. Don’t try to model everything at once.Examples:
  • Revenue metrics (MRR, ARR, Total Revenue)
  • Customer metrics (CAC, LTV, Churn Rate)
  • Operational metrics (Conversion Rate, Average Order Value)
Name your objects, metrics, and dimensions using familiar business terminology that everyone understands.Good: “Monthly Recurring Revenue”, “Customer Lifetime Value”Avoid: “mrr_calc_v2”, “ltv_formula”
Add descriptions to your metrics explaining what they calculate and when to use them. This helps users understand which metric to choose.
When updating metric definitions, consider the impact on historical reports. Document changes and communicate them to your team.
Periodically review your ontology with business stakeholders to ensure it still reflects current business logic and requirements.