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

Introduce Contributor record #741

Merged
merged 4 commits into from
Feb 26, 2024
Merged

Introduce Contributor record #741

merged 4 commits into from
Feb 26, 2024

Conversation

bussec
Copy link
Member

@bussec bussec commented Jan 15, 2024

Fixes #552

Introducing the changes only in the v3 Schema for now, we can adapt them for v2 once we are finished with the discussion.

@bussec
Copy link
Member Author

bussec commented Jan 15, 2024

It is nearly two years since we discussed this in #552 . In general, the PR should address all the issues raised there, however some of my decisions are noted below:

Contributor record

  • I decided against requiring an ORCID iD, which creates some redundancy between the name and the orcid_id.label properties. IMO the information from the ORCID record should take precedence, but this seems to be mainly a question of the user interface.
  • The ROR catalog appears to be very comprehensive by now, therefore this is the only way to provide an institutional affiliation.
  • As RORs are only assigned to research performing organizations as a whole, there is a free text property affiliation_department to provide more fine-grained information, e.g., institute, division, department, etc.

ContributorContribution record

  • This record follows the CRediT taxonomy as far as possible. While we also discussed other, more comprehensive ontologies before, CRediT has in my perception gained a good amount of traction in the last two years.

Study record

  • All previous contact or affiliation fields have been replaced with a single contributors property, which is an array of Contributor records. IMO the mapping from the old fields should be as follows:

    There is no direct replacement for lab_name and lab_address as now all contributors have their own affiliation information.

@bussec bussec self-assigned this Jan 15, 2024
@bussec bussec added this to the AIRR 2.0 milestone Jan 15, 2024
@bcorrie
Copy link
Contributor

bcorrie commented Jan 15, 2024

I like it...

@javh
Copy link
Contributor

javh commented Feb 5, 2024

From the call:

  • No objections. Finalize by next meeting.

@bussec bussec force-pushed the contributor-record branch 6 times, most recently from 7f116ba to 5568017 Compare February 21, 2024 13:55
@bussec bussec force-pushed the contributor-record branch 2 times, most recently from 03aace1 to 2e0f64e Compare February 21, 2024 23:57
@bussec bussec force-pushed the contributor-record branch from 2e0f64e to 7029003 Compare February 22, 2024 04:05
@bussec bussec marked this pull request as ready for review February 22, 2024 04:08
@bussec
Copy link
Member Author

bussec commented Feb 22, 2024

@bcorrie @schristley @williamdlees please review. The problem with the R package check not running through will be handled by #761.

@schristley
Copy link
Member

From looking at the nullable flags, is it worthwhile to list a contributor when only have their name, but no info on their contribution? I'm trying to think of a scenario when that might happen. Maybe curating a publication where it doesn't list contributions so all you know is the person is an author.

Copy link
Member

@schristley schristley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good!

@bcorrie
Copy link
Contributor

bcorrie commented Feb 23, 2024

@bussec I like it, it looks good, but........ 8-)

The fields that got removed I think need to be left in and marked as deprecated, no?

@bussec
Copy link
Member Author

bussec commented Feb 23, 2024

@bcorrie

The fields that got removed I think need to be left in and marked as deprecated, no?

Yes are probably right, but it was so much fun deleting them ;-) I will put them back in ASAP.

On a side note: I guess now it will become more important that our validator functions actually check for the deprecated mark.

@bcorrie
Copy link
Contributor

bcorrie commented Feb 23, 2024

Yes are probably right, but it was so much fun deleting them ;-)

I figured as much... 8-)

@bussec bussec force-pushed the contributor-record branch from 7029003 to 563b22d Compare February 23, 2024 02:32
@bussec
Copy link
Member Author

bussec commented Feb 23, 2024

@bcorrie Ok, deprecated fields in Study are now back in place with a deprecated tag. I did not re-add the field from other objects, as those are part of "experimental" schemas and my interpretation of that status is "User beware, things will change without explicit notice". Does that sound right to you?

@bussec
Copy link
Member Author

bussec commented Feb 23, 2024

From looking at the nullable flags, is it worthwhile to list a contributor when only have their name, but no info on their contribution? I'm trying to think of a scenario when that might happen. Maybe curating a publication where it doesn't list contributions so all you know is the person is an author.

@schristley You are correct that ContributorContribution.role is not nullable, however Contributor.contributions (which is an array of ContributorContribution records is. So if the contribution is unknown, you can have an empty array here. On the other hand, it does not make much sense to me to have a ContributorContribution record in which role is not specified.

@schristley
Copy link
Member

@schristley You are correct that ContributorContribution.role is not nullable, however Contributor.contributions (which is an array of ContributorContribution records is. So if the contribution is unknown, you can have an empty array here. On the other hand, it does not make much sense to me to have a ContributorContribution record in which role is not specified.

Right, I wasn't sure which way I was leaning but I think I settled on that it's more important to list somebody as a contributor even if we don't know their exact contribution versus being forced to leave them off as contributors.

Copy link
Contributor

@williamdlees williamdlees left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm ok with the Acknowledgement object as defined.

@bussec bussec merged commit 47f9a6e into master Feb 26, 2024
4 of 5 checks passed
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

Successfully merging this pull request may close these issues.

Create a Contributor object to use throughout the schema
5 participants