Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -352,12 +352,12 @@ Ossie standardizes structural and logical semantics well, but there is limited s
**Roadmap Deliverables:**

- [Extended Metadata Proposal for Ossie](https://github.com/apache/ossie/issues/100) — optional, backward-compatible metadata fields (e.g., `measurement`, `display_format`, `semantic_type`, `default_aggregation`, `desired_direction`, `default_sort`, `semantic_mappings`)
- Richer application-specific extension points beyond `custom_extensions`
- Richer application-specific extension points beyond `nonportable_extensions`
- Sample value annotations for documentation and AI grounding

**Key Discussions:**

- [Expand custom_extensions to be more suitable for application-specific metadata](https://github.com/apache/ossie/discussions/30)
- [Expand custom_extensions to be more suitable for application-specific metadata](https://github.com/apache/ossie/discussions/30) (discussion title; the field is now `nonportable_extensions`)
- [Sample values](https://github.com/apache/ossie/discussions/7)
- [Governance metadata hooks](https://github.com/apache/ossie/discussions/13) *(also informs strategic governance work)*
- [Optional "positive direction" on metrics](https://github.com/apache/ossie/discussions/41)
Expand Down Expand Up @@ -435,4 +435,4 @@ Broad ecosystem adoption depends on practical tools that let teams validate thei
**Related Issues:**

- [Issue #121 — Create converter/common module (for Java binding)](https://github.com/apache/ossie/issues/121)
- [Issue #111 — Follow up on Ossie ai_context and custom_extensions mapping in Snowflake YAML](https://github.com/apache/ossie/issues/111)
- [Issue #111 — Follow up on Ossie ai_context and custom_extensions mapping in Snowflake YAML](https://github.com/apache/ossie/issues/111) (issue title; the field is now `nonportable_extensions`)
36 changes: 18 additions & 18 deletions core-spec/ossie-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
"metrics": {
"$ref": "#/$defs/SemanticModel/properties/metrics"
},
"custom_extensions": {
"$ref": "#/$defs/SemanticModel/properties/custom_extensions"
"nonportable_extensions": {
"$ref": "#/$defs/SemanticModel/properties/nonportable_extensions"
}
},
"required": ["version", "name", "datasets"],
Expand All @@ -45,7 +45,7 @@
"type": "string",
"minLength": 1,
"examples": ["BI_TOOL", "DB_VENDOR", "SEMANTIC_LAYER"],
"description": "Vendor name for custom extensions. Any non-empty string is accepted. See extensions/vendors.md."
"description": "Vendor name for non-portable extensions. Any non-empty string is accepted. See extensions/vendors.md."
},
"AIContext": {
"description": "Additional context for AI tools",
Expand Down Expand Up @@ -79,16 +79,16 @@
}
]
},
"CustomExtension": {
"NonportableExtension": {
"type": "object",
"description": "Vendor-specific attributes for extensibility",
"description": "Vendor-specific state that Ossie carries and does not interpret. Portable behavior does not depend on it.",
"properties": {
"vendor_name": {
"$ref": "#/$defs/Vendor"
},
"data": {
"type": "string",
"description": "Opaque string of vendor-specific data that Ossie carries but does not interpret"
"type": "object",
"description": "Vendor-specific data as a structured object. The core schema does not reference the structure under data: no reserved key and no common sub-key. Keys are entirely vendor-defined. Values must be JSON-representable. Ossie carries the object but does not interpret it. See core-spec/spec.md#non-portable-extensions."
}
},
"required": ["vendor_name", "data"],
Expand Down Expand Up @@ -147,7 +147,7 @@
"DateTimeTz",
"Opaque"
],
"description": "Logical data type for fields and metrics, independent of role (e.g. dimension vs fact) and physical representation. `Decimal` is exact base-10 with unspecified precision and scale; `Float` is approximate. `DateTime` has no timezone or offset, while `DateTimeTz` identifies an instant using offset or timezone context but does not guarantee preservation of a named timezone. Omit `datatype` when unknown; use `Opaque` plus `custom_extensions` for a known type outside the portable vocabulary."
"description": "Logical data type for fields and metrics, independent of role (e.g. dimension vs fact) and physical representation. `Decimal` is exact base-10 with unspecified precision and scale; `Float` is approximate. `DateTime` has no timezone or offset, while `DateTimeTz` identifies an instant using offset or timezone context but does not guarantee preservation of a named timezone. Omit `datatype` when unknown. `Opaque` means the type is outside the portable vocabulary. A vendor may record its own type name under `nonportable_extensions`; that record is not part of the portable type."
},
"Dimension": {
"type": "object",
Expand Down Expand Up @@ -189,10 +189,10 @@
"ai_context": {
"$ref": "#/$defs/AIContext"
},
"custom_extensions": {
"nonportable_extensions": {
"type": "array",
"items": {
"$ref": "#/$defs/CustomExtension"
"$ref": "#/$defs/NonportableExtension"
}
}
},
Expand Down Expand Up @@ -254,10 +254,10 @@
},
"description": "Dataset-scoped metrics: aggregations evaluated at this dataset's row level, for measures that semantically belong to the dataset. The expression references this dataset's declared fields by single-part (unqualified) name, and columns of the dataset's source as source.column. It must resolve entirely within this dataset; an expression that must reference another dataset belongs in the model-scoped metrics instead. Within the dataset, field names and metric names share one namespace and must all be unique across the two."
},
"custom_extensions": {
"nonportable_extensions": {
"type": "array",
"items": {
"$ref": "#/$defs/CustomExtension"
"$ref": "#/$defs/NonportableExtension"
}
}
},
Expand Down Expand Up @@ -302,10 +302,10 @@
"ai_context": {
"$ref": "#/$defs/AIContext"
},
"custom_extensions": {
"nonportable_extensions": {
"type": "array",
"items": {
"$ref": "#/$defs/CustomExtension"
"$ref": "#/$defs/NonportableExtension"
}
}
},
Expand Down Expand Up @@ -334,10 +334,10 @@
"ai_context": {
"$ref": "#/$defs/AIContext"
},
"custom_extensions": {
"nonportable_extensions": {
"type": "array",
"items": {
"$ref": "#/$defs/CustomExtension"
"$ref": "#/$defs/NonportableExtension"
}
}
},
Expand Down Expand Up @@ -382,10 +382,10 @@
},
"description": "Model-scoped metrics: aggregations that span datasets or need to be aware of cross-dataset concepts. Expressions reference fields by multi-part name (dataset.field) and may combine fields from more than one dataset. Names must be unique across the model. See core-spec/spec.md#metric-scoping."
},
"custom_extensions": {
"nonportable_extensions": {
"type": "array",
"items": {
"$ref": "#/$defs/CustomExtension"
"$ref": "#/$defs/NonportableExtension"
}
}
},
Expand Down
6 changes: 3 additions & 3 deletions core-spec/relational_semantics.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ SQL-native names. The correspondence:
| join relationship (Section 11.3) | `relationship` (`from`/`to`, `from_columns`/`to_columns`) | `from`/`to` map to source/target and the columns to the join predicate (`from` many, `to` one); Section 11.3 adds cardinality, roles, and arbitrary `ON`. |
| Layer 1 expression | `OSSIE_SQL_2026` expression (`expression.sql`, or an `OSSIE_SQL_2026` entry in `dialects`) | The portable form of an Ossie expression, in the Layer 1 language (Section 1.1). For the resolution rules, see [Expression Object](spec.md#expression-object). |

Ossie model metadata this interface does not natively surface (`ai_context`, `custom_extensions`,
Ossie model metadata this interface does not natively surface (`ai_context`, `nonportable_extensions`,
and non-selected expression dialects) is addressed under discovery (Section 11) and out of scope
(Section 13.2). A conforming engine MUST preserve metric semantics: a metric evaluated via
`AGG()` is computed from the model's metric definition (its aggregate and source rows), so two
Expand Down Expand Up @@ -974,7 +974,7 @@ other. ASOF and range relationships, and `RELY` optimization hints, are future e
Human- and AI-facing descriptors that have standard SQL-metadata homes (a field's or measure's
label / display name, its description / comment, and its synonyms) SHOULD be surfaced through the
engine's normal column and table metadata so tools can present them. Ossie annotations without
such a home (`ai_context` instructions and examples, and `custom_extensions`) are out of scope
such a home (`ai_context` instructions and examples, and `nonportable_extensions`) are out of scope
for this interface (Section 13.2); an engine MAY surface them out-of-band.

---
Expand Down Expand Up @@ -1055,7 +1055,7 @@ Deferred query and modeling features:
direction is carried as discoverable hints (Sections 10.2, 11.3); part of Ossie's broader
hints effort.
- **Ossie annotations without a SQL-native home.** Ossie `ai_context` instructions and
examples, `custom_extensions`, and expression dialects other than the one selected for a
examples, `nonportable_extensions`, and expression dialects other than the one selected for a
measure or field have no required representation in this interface and do not affect query
semantics; an engine MAY surface them out-of-band (synonyms, labels, and descriptions do have
a metadata home; Section 11.4).
Expand Down
Loading
Loading