Downloads
The GASP Standard as Apache Ossie files
Apache Ossie (incubating) is an open interchange format for semantic models. GASP publishes its ontology, a reference semantic model and the mapping between them in that format, generated from the canonical formulas on every release. All three documents pass the upstream validator and GASP's own cross-reference checks in continuous integration.
Files
- gasp.ontology.yaml172 KB
Every dataset and GASP concept as an entity type, every field as a value type or relationship, enum values as constraints.
- gasp.semantic_model.yaml1019 KB
Every dataset with its fields as OSSIE_SQL_2026 expressions, the foreign-key relationships between them and every canonical formula as a metric. A formula the model cannot state in one expression is staged through a dataset whose source is the compiled SQL: one row per period or, for the retention metrics, one row per customer per period.
- gasp.mapping.yaml89 KB
The ontology mapped onto the reference model, so a consumer can resolve concepts to datasets and fields.
- coverage.json87 KB
How each formula was exported: direct with its portability rung and constructs, staged with the reason, or not computable.
What the model covers
The semantic model carries 394 metric entries (each Operating and Market form and each variant is an entry of its own). 206 are direct expressions, 178 are staged and 10 are declared not computable in the standard itself.
A metric is staged when Ossie's metric language cannot yet state it in one expression. The reasons, with the number of entries each one accounts for:
- 97
- period bound in filter
- 34
- cohort
- 13
- at period_start
- 7
- to_date
- 7
- window
- 6
- lag
- 6
- total
- 4
- all_time
- 2
- period_days
- 1
- bucket
- 1
- distinct pair
Each staged dataset carries its source in Postgres, with Snowflake, BigQuery and Databricks sources in the
GASP extension, so the metric still runs on each warehouse. Most hold one row per period with the metric's
value. The Net Revenue Retention (NRR) and Gross Revenue Retention (GRR) entries share one cohort table, gasp_account_cohorts, with a row per customer per period. Each is a plain sum over its columns and the
breakdowns by segment group by the segment the customer held on the period's first day.
Portability profile
Apache Ossie measures converters on a ladder of fixtures, M0 to M8, each adding one construct. Reading it the
other way, each of the 206 direct expressions is tagged in coverage.json with the highest
rung whose construct it needs, so a converter's graded rung says how much of GASP survives it:
- 0
- M0, a bare SUM over one field
- 23
- M2, the core aggregate set (COUNT, COUNT DISTINCT, AVG, MIN, MAX)
- 45
- M3, a filtered aggregate
- 0
- M4, a metric across two datasets
- 121
- M5, arithmetic over aggregates (metric composition, with the expressions inlined)
- 17
- M6, a date or time scalar
- 0
- M7, a window function with an ORDER BY
- 0
- M8, a ratio to a windowed total
An expression on a rung may also use the constructs of the rungs below it. Each GASP aggregate reads one
dataset, so a metric across two datasets combines an aggregate from each and sits on M5 or above, which leaves
M4 empty. Every formula that needs a window is staged, so M7 and M8 hold none. Each construct counted per
direct expression (the null guard is the
COALESCE around every GASP sum, so a sum over no rows is 0 and no expression is a bare M0 sum):
- 147
- filtered aggregate
- 133
- arithmetic over aggregates
- 94
- null guard
- 77
- count distinct
- 35
- cross-dataset
- 17
- date scalar
- 10
- percentile
GASP writes a filtered aggregate as FILTER (WHERE ...), the form the expression language requires.
M3 carries that form beside the CASE WHEN one, so a converter graded on both keeps every filtered
aggregate here.
Example model
example/ is the Core department on its own, in the layout of the upstream flights example: gasp_saas.ontology.yaml (30 KB), gasp_saas.semantic_model.yaml (135 KB) and gasp_saas.mapping.yaml (8 KB), cut from the full documents above so every statement matches them. It is the draft of the example GASP proposes for the Apache Ossie repository. example/demo/ runs it: a data script, one query per metric and the expected values, for DuckDB or Postgres.
Conformance set
conformance/ holds one worked case per staged reason
(11 cases): a complete Ossie model with the staged dataset and its metric, the
reference query in Postgres SQL, the expected result as a VALUES list in standard SQL and the
fixture rows it reads (9 tables, 5,910 rows, period 2026-01-01 to 2026-06-30). A proposal that adds one of these constructs to the
portable language can be tested against the case for it.
4 more cases cover which rows of a snapshot dataset a reporting period reads. Monthly Recurring Revenue (MRR) and Total Customers are direct expressions that validate and run, and a query that sums one across snapshot dates returns a number with no error. GASP reads the last snapshot date of the period. The set lists the values the other readings return (10 named readings on 6 cases, each computed on the fixture), so a result is graded as right, wrong with the mistake named, an alternative reading in use elsewhere or failed. manifest.json lists every case with its formula, period, datasets, columns, expected rows and readings.
Validating the files
The documents target Ossie schema version 0.3.0.dev0 and are checked against the upstream
validator at commit 4a315fa (2026-11-22). To check them yourself, from a clone of
apache/ossie:
uv run validation/validate.py gasp.semantic_model.yaml
uv run validation/validate.py gasp.ontology.yaml --schema ontology/ontology.json
uv run validation/validate.py gasp.mapping.yaml --schema ontology/mapping.json The mapping names the other two documents by relative path, so validate it from the directory that holds all three.
The GASP payloads in each document's nonportable_extensions are described by the
GASP Ossie extension schema, which GASP's own cross-document checks apply to every file it writes.
Source and licence
The files are generated by the gasp-standard-mcp package from the canonical standard and committed
under standard/exports/ossie
in the public repository, where the distribution plan
(docs/ossie-interop-spec.md)
and the validator findings are kept. They carry the standard's licence. More on the
export and the MCP tools that read the same data.