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

Add ID format check #2747

Merged
merged 2 commits into from
Nov 11, 2024
Merged

Add ID format check #2747

merged 2 commits into from
Nov 11, 2024

Conversation

gouttegd
Copy link
Collaborator

This PR imports for CL the same “ID format check” already used in Uberon, to ensure that CL IDs follow the expected format http://purl.obolibrary.org/obo/CL_[0-9]{7}.

This is a partial fix to #763, though it does not fully implement what was requested there. The requested check was to ensure that no class could be added with an ID in a namespace other than the CL namespace -- something that is actually tricky to check because of the imported classes.

Here, we are simply checking that, if a class is in the CL namespace, it follows the expected format. That is, the check would catch a bogus ID like http://purl.obolibrary.org/obo/CL_12345678 (8 digits instead of 7), but not an ID like http://purl.obolibrary.org/obo/NOTCL_1234567 (not in the CL namespace).

Add a check to ensure that CL IDs follow the expected format.
@gouttegd gouttegd self-assigned this Nov 11, 2024
@gouttegd gouttegd requested a review from matentzn November 11, 2024 16:27
@gouttegd gouttegd merged commit ad7af78 into master Nov 11, 2024
1 check passed
@gouttegd gouttegd deleted the add-id-format-check branch November 11, 2024 16:58
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.

2 participants