You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ossie.apache.org by Klahr Joshua via dev <de...@ossie.apache.org> on 2026/07/29 07:39:31 UTC

[DISCUSS] Extended metadata fields for fields and metrics

Hi all,
I'd like to propose an addition to the Apache Ossie core spec: a standardized, optional layer of non-executional interpretability metadata for fields and metrics.

PR: https://github.com/apache/ossie/pull/287 
Extended proposal document (design rationale, field-by-field detail, open questions): https://docs.google.com/document/d/1DLuteF0WwlVbpD5kmHhcqa6vItqNFL4MoAQrImy6dKo 

Motivation

Ossie defines what data is. There is currently limited standardization for how data should be interpreted and presented. As a result, consumers — BI tools, AI agents, developers — must repeatedly infer or redefine units, display conventions, aggregation behavior, KPI polarity, and field visibility. This proposal addresses those gaps without touching query execution.

What's proposed

Eleven new optional fields across fields and metrics:
   
   - display_label — human-readable display name
   - semantic_type — token or URI classification (e.g. monetary, or https://www.iso20022.org/glossary/LEI)
   - measurement — unit/quantity metadata with ISO 4217 for currency
   - display_format — Excel-compatible format string
   - default_sort — default sort direction, null handling, sort-by-field
   - semantic_mappings — links to external ontologies via SKOS-based open predicate vocabulary
   - hidden — hide from consumer UIs while remaining available in expressions
   - group_label — organizational grouping for UI presentation
   - desired_direction (metrics only) — KPI polarity: higher/lower/neutral
   - default_aggregation (fields only) — default aggregation when used as a measure
   - default_time_granularity (fields only) — default time bucket for temporal fields

All fields are optional and backward compatible. No existing models require changes.

Community input already incorporated

Dragos Crintea (semantido maintainer) reviewed the proposal and suggested two improvements that are included in the PR:
   
   - semantic_mappings uses an open predicate vocabulary (SKOS baseline) rather than a closed enum, allowing non-positive assertions like DISTINCT_FROM for regulatory disambiguation (e.g. EMIR vs MiFIR "Counterparty").
   - semantic_type accepts a well-known token or a URI, supporting governed external type systems without requiring spec changes.

Dragos has also offered to contribute a reference implementation and benchmark data in follow-up PRs.

Relationship to existing discussions

This builds directly on discussions #42 (semantic typing), #43 (aggregation semantics), and #55 (metadata extensibility).

AI disclosure

This contribution was developed with AI assistance (Snowflake Cortex Code). I have reviewed all changes and am personally responsible for the content per the ASF Generative Tooling Guidance.

I welcome feedback, questions, and pushback. The minimum discussion period is 7 days per the contribution guidelines.

Best,
Josh Klahr