Recent Releases of openminds

openminds - v0.2.2

Bug fixes: - instance properties that should be IRI objects were just plain strings - passing an integer to a property of type "number" produced a validation error - when validating collections the "ignore" argument wasn't being passed down - type hints were producing an error with Python 3.8

- Python
Published by apdavison almost 2 years ago

openminds - v0.2.1

  • Improved property descriptions, for example the identifier property of the ProductSource class now has the description "Term or code used to identify the product source" whereas previously it was the generic "Term or code used to identify something or someone".
  • Non-HTTP IRIs are now allowed.

- Python
Published by apdavison almost 2 years ago

openminds - v0.2.0

Added the openMINDS instance library (predefined metadata instances) as class attributes. For example: ```python In [1]: from openminds.latest.controlled_terms import AgeCategory

In [2]: AgeCategory.adult Out[2]:

In [3]: AgeCategory.adult.id Out[3]: 'https://openminds.ebrains.eu/instances/ageCategory/adult'

In [4]: AgeCategory.adult.definition Out[4]: "'Adult' categorizes the life cycle stage of an animal or human that reached sexual maturity." ```

In some cases it is more convenient to retrieve instances by name or synonym, e.g.: ``` In [1]: from openminds.latest.controlled_terms import MolecularEntity

In [2]: MolecularEntity.byname("HEPES") == MolecularEntity.byname("4-(2-hydroxyethyl)-1-piperazine ethanesulfonic acid") Out[2]: True ```

For more detail see #29.

- Python
Published by apdavison almost 2 years ago