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

Unit strategy #201

Open
jesper-friis opened this issue Nov 15, 2023 · 0 comments
Open

Unit strategy #201

jesper-friis opened this issue Nov 15, 2023 · 0 comments

Comments

@jesper-friis
Copy link
Contributor

Strategy for adding units.

A intended basic use should be to specify one or more unit ontologies, with EMMO being the default. However, adding a new unit to the ontologies is often time-consuming, so we also need a simple way to specify new units. That can be done with triples:

- configurations:
    clear: True  # Whether to start with a blank unit registry
    prefixes:
      emmo: http://emmo.info/emmo#
      oteio: http://emmo.info/oteio#
      onto: http://example.com/onto#
    ontologies:  # Ontologies to load units from
      emmo: emmo-based
    triples:
      - [onto:DogYear, oteapi:hasUnitDef, "dog_year = 52 * day = DogYear"]
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

No branches or pull requests

1 participant