Skip to content
This repository was archived by the owner on Oct 2, 2021. It is now read-only.
This repository was archived by the owner on Oct 2, 2021. It is now read-only.

gen-py-classes generating extra slot info #228

@wdduncan

Description

@wdduncan

For reference see microbiomedata/nmdc-metadata#139.

When running gen-py-classes on nmdc.yaml, we are getting extra slots of the form <x value>_has_raw value, <y value>_has_unit. For example:

slots.quantity_value_has_raw_value = Slot(uri=NMDC.has_raw_value, name="quantity value_has raw value", curie=NMDC.curie('has_raw_value'),
                      model_uri=NMDC.quantity_value_has_raw_value, domain=QuantityValue, range=Optional[str])
slots.quantity_value_has_unit = Slot(uri=NMDC.has_unit, name="quantity value_has unit", curie=NMDC.curie('has_unit'),
                      model_uri=NMDC.quantity_value_has_unit, domain=QuantityValue, range=Optional[str])

Is this behavior correct?

cc @cmungall @deepakunni3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions