SUM((lines.gross_sales_cents-lines.discount_cents)*0.01)A semantic layer for every way your team uses data.
A semantic layer defines business metrics, dimensions, and relationships once so people, BI tools, and AI agents use the same definitions. DOSI validates compatible Apache Ossie models and compiles supported metric queries into native warehouse SQL. Your team can review the definitions and inspect how results are produced.
Your business definitions. Independent of your stack.
Capture business definitions from existing SQL, supported BI dashboards, and new requirements. Keep them in Apache Ossie, an open, vendor-neutral standard your team can review, maintain, and reuse.
Start with the work you already do.
Your SQL, dashboards, and new business questions already contain modeling knowledge. Datus Agent helps turn it into reusable semantic definitions.
Extract from existing SQL
Use historical queries and SQL files as evidence. Capture reusable calculations, filters, dimensions, and source mappings in a semantic model.
Calculations, filters & groupingBuild from BI dashboards
Start with selected queries from a supported BI dashboard. Recover the logic behind its charts and bring those definitions into a shared model.
Chart queries & source dataModel as you build
Describe a new business requirement. Work with Datus Agent to define datasets, relationships, and metrics alongside development, then validate the model.
Business requirements & live schemaShared semantic definitions
- Datasets
- Metrics
- Dimensions
- Relationships
Draft with Datus Agent. Review definitions and validate the model before using it.
See the modeling workflowOpen definitions. Native execution.
Apache Ossie is the core specification behind DOSI’s semantic execution. DOSI reads compatible Ossie models, validates their definitions, and compiles semantic queries into native SQL for your configured warehouse.
Select a stage to see its role.
Start with reviewed definitions drawn from your SQL, dashboard queries, or new business requirements. Keep datasets, dimensions, metrics, and relationships together in a compatible Ossie model.
DOSI uses the Apache Ossie specification as its foundation. It validates compatible models and compiles supported semantic queries into the target SQL dialect, with diagnostics and SQL your team can inspect.
The configured warehouse runs the generated SQL against its data. Source connections and mappings determine where a query executes.
Use the returned data through supported interfaces. Teams, applications, and agents can query against the same compatible model.
Start Datus with your existing business definitions.
Use your reviewed Ossie model as a starting point in Datus. Give teams and agents an open, vendor-neutral semantic layer to build on.
Apache Ossie (incubating) is the open specification. DOSI is licensed under Elastic License 2.0. Datus Agent is open source.
Business context your team can review and evolve.
Bring the knowledge in your warehouses, documents, SQL, and ETL into a shared modeling workflow. Datus Agent helps draft definitions; your team uses Datus Studio to inspect, refine, and verify them.
Initialize project context from the connected data source and selected SQL or documents.
Initialize Project Context
Reverse-engineer docs from your SQL. Read-only — no database writes.
2 selectedWorkspace selections and uploads are combined.
Attach project files to a conversation and work with Datus Agent to draft datasets and metrics.
Trace the full source lineage, review a YAML diff, and approve changes before merging them into the shared model.
Select an object to inspect its definition
Scroll sideways to explore the full lineage.
Align return handling with currency units
Opensubject/semantic_models/northstar_premier.yaml
northstar_premier / contribution_marginModified1name: contribution_margin2expression:3dialects:4- dialect: ANSI_SQL5expression: >-6COALESCE(SUM((lines.gross_sales_cents-lines.discount_cents)*0.01),0)7-COALESCE(SUM(refunds.merchandise_refund_cents*0.01),0)8-COALESCE(SUM(line_costs.cogs_cents*0.01),0)9+COALESCE(SUM(returns.recoverable_cogs_credit_cents*0.01),0)10-COALESCE(SUM(deliveries.shipping_cost_cents*0.01),0)11-COALESCE(SUM(line_costs.payment_fee_cents*0.01),0)12−Previous definition: -COALESCE(SUM(returns.processing_cost_cents),0)12+Proposed definition: -COALESCE(SUM(returns.processing_cost_cents*0.01),0)
All conflicts resolved
All checks pass or waived
No comments yet
One semantic model for BI, applications, and AI agents.
Make reviewed definitions available where your team works. Choose the supported interface that fits each consumer.
1version: 0.2.0.dev02semantic_model:3- name: northstar_premier4# …5datasets:6- name: customers7source: northstar_living.dim_customer8primary_key:9- customer_id10# …11metrics:12- name: booked_revenue13expression:14dialects:15- dialect: ANSI_SQL16expression: SUM((lines.gross_sales_cents-lines.discount_cents)*0.01)17# …
BI & analytics
SQL & resultsAI agents
MCPApplications
REST / PythonWhen to choose DOSI
Choose DOSI when you want an independently usable runtime for compatible Apache Ossie definitions, inspectable SQL, and interfaces your agents can call. Evaluate the model, connector, and integration path together.
Reviewed 4 November 2026 against primary documentation. This compares runtimes and distinguishes their hosted services; it is not a performance benchmark.
| Selection criteria | DOSI | Cube Core / Cube | MetricFlow / dbt Semantic Layer |
|---|---|---|---|
| Model format | Compatible Apache Ossie YAML / JSON, with documented DATUS extensions. | Cube semantic models: measures, dimensions, joins, and access rules. | Semantic models and metrics declared in dbt YAML. |
| Deployment | Use DOSI directly in Datus Studio through the commercial Datus platform, or run the CLI or semantic API server independently. | Self-host Cube Core; managed deployment is available in commercial Cube. | Local MetricFlow; hosted service layer through the dbt platform. |
| Interfaces | CLI, MCP, and REST; inspect compiled SQL or request execution. | SQL, REST, and GraphQL data APIs. | MetricFlow CLI; GraphQL, JDBC, and Python SDK through the hosted Semantic Layer. |
| Execution | Compiles to the selected dialect; a configured, supported connector executes the query. | Queries connected sources and can serve pre-aggregated data through its caching layer. | Generates SQL from metric definitions; the hosted service dispatches queries to the data platform. |
| What to check | Spec / extension compatibility, connector coverage, and your BI integration path. Portability does not imply federation. | Model migration, pre-aggregation freshness, and operational requirements for your deployment. | Supported adapters, dbt project dependencies, and which interfaces require the hosted service. |
| License | Elastic License 2.0. The open Ossie specification does not make DOSI open-source. | Cube Core backend: Apache 2.0; client: MIT. Commercial Cube has separate terms. | MetricFlow: Apache 2.0. Hosted service and APIs have separate commercial terms. |
Primary documentation
Inspect the execution path before you adopt it.
Start with a representative model and query from your team. Review the definitions, inspect the generated SQL, and compare executed results with your agreed calculation.
Review the model
Check grain, joins, metric expressions, and extension behavior against the semantics contract.
Read the semantics contract ↗Inspect native SQL
The compile endpoint returns SQL without executing it. Successful compilation alone is not an execution test.
Inspect the compile and execute APIs ↗Verify on your source
Use a supported connection and known test data. Record the DOSI and database versions, inputs, SQL, and checked results.
Run the verified Northstar example ↗Warehouse portability means reusing compatible definitions with the appropriate source mappings and dialect. It does not mean that one query automatically joins data across warehouses. BI consumption also depends on the chosen API or adapter; model compatibility is not a native BI connector.
Questions about your semantic layer
How does a semantic layer differ from a semantic model?
A semantic model records business definitions, including datasets, dimensions, relationships, and metrics. A semantic layer makes those definitions usable by consumers. In Datus, DOSI validates compatible Apache Ossie models and compiles supported metric queries into SQL, while interfaces make that functionality available to teams, applications, and agents.
Where does DOSI execute a semantic query?
DOSI validates the compatible model and compiles the requested metrics into native SQL. The configured warehouse executes that SQL against its data. Your team can inspect the generated query and source mappings, while CLI, REST, Python, or MCP interfaces provide access to the resulting data.
What can I reuse when I change warehouses?
Compatible Apache Ossie definitions can be reused while DOSI compiles queries for a supported target dialect. Check connection settings, source mappings, SQL expressions, and feature support for the new source. Sharing definitions across warehouses does not mean that a query automatically joins live data from several warehouses.
How can an AI agent use the semantic layer?
An agent can use MCP tools to discover metrics and dimensions, compile supported queries, and retrieve results from a configured source. Your team reviews the underlying business definitions and can inspect the generated SQL. The MCP guide covers connection details and the tools available to a client.
Is DOSI open source?
DOSI is licensed under Elastic License 2.0. Apache Ossie (incubating) provides the open specification for compatible semantic models, and Datus Agent is open source. The open model format and the software licenses apply to different parts of the system; they should be evaluated separately when choosing your deployment and workflow.
Explore the ideas. Put them into practice.
Put shared business context to work.
Give your team and agents a semantic model they can understand, review, and reuse.
Get Started Free