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

/traits call returns "attribute" which should be linked to germplasmAttributes #596

Open
guignonv opened this issue Apr 15, 2024 · 2 comments
Labels
BrAPI-Germplasm Related to BrAPI-Germplasm Modify Data Model Change an existing data model

Comments

@guignonv
Copy link
Member

As said in the title, the "/traits" call returns an "attribute" string property (class) defined as A trait can be decomposed as "Trait" = "Entity" + "Attribute", the attribute is the observed feature (or characteristic) of the entity e.g., for "grain colour", attribute = "colour". This should be linked to Germplasm Attribute data type (class).

Proposed change: traits.attribute should be turned into traits.attributeName and the Germplasm Attribute name definition should be turned into "Trait name" = "Entity" + "Attribute" so they would match each-other.

@BrapiCoordinatorSelby
Copy link
Member

I assumed that the "Entity" + "Attribute" attribute and the GermplasmAttribute attribute were named the same thing by coincidence, not an intentional link. Are they really connected or describing the same thing? is it common to have these data points linked in most breeding/gene bank databases?

This may also create a circular dependency. GermplasmAttribute contains a Trait, then with this change the Trait would contain a reference to GermplasmAttribute. This seems odd to me...

@BrapiCoordinatorSelby BrapiCoordinatorSelby added Modify Data Model Change an existing data model BrAPI-Germplasm Related to BrAPI-Germplasm labels Apr 15, 2024
@daveneti
Copy link

"Entity" + "Attribute" is Crop Ontology term and relates to Traits, so it is completely independent of GermplasmAttribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BrAPI-Germplasm Related to BrAPI-Germplasm Modify Data Model Change an existing data model
Projects
None yet
Development

No branches or pull requests

3 participants