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

Improve CURIE and IRI validation #459

Merged
merged 15 commits into from
Nov 6, 2023
Merged

Improve CURIE and IRI validation #459

merged 15 commits into from
Nov 6, 2023

Conversation

cthoyt
Copy link
Member

@cthoyt cthoyt commented Nov 4, 2023

Now that curies implements CURIE and IRI validation checks in biopragmatics/curies#90, this PR replaces the SSSOM functionality.

Note, this requires passing a Converter to a few functions that previously didn't need one, but it seems like a small price to pay for data integrity

This PR also adds deprecation warnings for sssom.util.is_curie and sssom.util.is_iri since other packages might be using these.

Now that `curies` implements CURIE and IRI validation checks in biopragmatics/curies#90, this PR replaces the SSSOM functionality.

Note, this requires passing a Converter to a few functions that previously didn't need one, but it seems like a small price to pay for data integrity

This PR also adds deprecation warnings for `sssom.util.is_curie` and `sssom.util.is_iri` since other packages might be using these.
@cthoyt cthoyt marked this pull request as draft November 4, 2023 23:50
@cthoyt cthoyt marked this pull request as ready for review November 5, 2023 00:01
src/sssom/util.py Show resolved Hide resolved
src/sssom/util.py Show resolved Hide resolved
src/sssom/util.py Show resolved Hide resolved
@matentzn
Copy link
Collaborator

matentzn commented Nov 6, 2023

Aweeeesome! Thanks!

Copy link
Collaborator

@matentzn matentzn left a comment

Choose a reason for hiding this comment

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

Looks great! THANK YOU!

@cthoyt cthoyt merged commit ad70a83 into master Nov 6, 2023
6 checks passed
@cthoyt cthoyt deleted the curies-uri-check branch November 6, 2023 10:22
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