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

enforce id_prefixes? #315

Open
turbomam opened this issue Jun 21, 2022 · 1 comment
Open

enforce id_prefixes? #315

turbomam opened this issue Jun 21, 2022 · 1 comment

Comments

@turbomam
Copy link
Contributor

LinkML provides an id_prefixes attribute for slots. We could use this to require a user enters the link between a biosample and the EMP500 project as BIOPROJECT: PRJEB42019 by specifying

- id_prefixes
  - BIOPROJECT
@ddooley
Copy link
Collaborator

ddooley commented Jun 21, 2022

I think this could be enforced by a two fold validation: 1: validating that the "project" slot was a curie or URI, and syntactically met that; and then by insisting that any Curie has a prefix listed in the schema. But perhaps that is too strong a requirement? Are there other curies that don't need to be validated to that extent?

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

2 participants