8000 Add alternative numeric type system · Issue #1871 · linkml/linkml · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Add alternative numeric type system #1871
Closed
@cmungall

Description

@cmungall

Currently the LinkML base types correspond to xsd types. It's possible to subtype these - e.g to make an integer type in a particular range. But it's awkward to use alternative types. If someone wants a general numeric type it's possible to do this with a any_of but it's better to be explicit

And for the C type system or numpy types:

image
(from https://numpy.org/doc/stable/reference/arrays.scalars.html)

It's not clear that subtyping xsd types is semantically correct

Being able to explicitly declare these types are important for the @linkml/ndarray-wg

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0