Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refer to units using Reference elements #109

Open
tclose opened this issue Jul 30, 2017 · 0 comments
Open

Refer to units using Reference elements #109

tclose opened this issue Jul 30, 2017 · 0 comments

Comments

@tclose
Copy link
Contributor

tclose commented Jul 30, 2017

In the current spec, units and dimensions are implicitly treated as references to elements in the current Document. I think it would be better if they were instead treated as first-class "document-level" types and referred to using a Reference elements (or potentially defined inline) within Quantity elements e.g.

Quantity:
    value:
        SingleValue: 1.5
    units:
        Reference: {name: mV, url: http://nineml.net/catalog/1.1/units.yml}

Not only would this avoid avoid having to write specific code to handle units and dimensions, as general reference handling code can be reused, but it would also avoid having to check that the correct units and dimensions are present in the document as most common ones could be referenced from the catalog (something that is annoying when editing documents by hand).

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

No branches or pull requests

1 participant