Skip to content

Ontology: Drop Float as a built-in concept#145

Open
jochenchrist wants to merge 1 commit into
open-semantic-interchange:mainfrom
jochenchrist:drop-float-builtin
Open

Ontology: Drop Float as a built-in concept#145
jochenchrist wants to merge 1 commit into
open-semantic-interchange:mainfrom
jochenchrist:drop-float-builtin

Conversation

@jochenchrist
Copy link
Copy Markdown
Contributor

Summary

Float and Decimal describe the same thing at the conceptual level: the most general floating-point/decimal value type. Carrying both as separate built-in concepts is redundant and invites ambiguity about which one to extend when modeling a non-integer numeric value type.

This PR drops Float as a built-in concept and keeps Decimal as the single built-in for non-integer numeric values.

Changes

  • ontology/ontology.md: remove the Float row from the built-in concepts table.
  • examples/flights.yaml: update the runway length and shapeLength mappings (and their verbalizations) to use Decimal instead of Float, so the example still references only declared built-ins.

Notes

No JSON schema or validation code enumerated the built-in concepts, so the doc table and the one example were the only references to Float.

Float is conceptually the same as Decimal (the most general
floating-point/decimal value type), so having both as built-in concepts
is redundant. Remove `Float` from the built-in concepts table and update
the flights example to use `Decimal` instead.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@jochenchrist jochenchrist changed the title Drop Float as a built-in concept Ontology: Drop Float as a built-in concept Jun 3, 2026
@khush-bhatia khush-bhatia self-requested a review June 3, 2026 17:44
Copy link
Copy Markdown
Member

@khush-bhatia khush-bhatia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM , I am good with merging this , but I think we should follow up and converge on a common spec for datatype for both the ontology and the semantic model spec.

@khush-bhatia
Copy link
Copy Markdown
Member

@kurtStirewalt Could you review as well ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants