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

Update regular expression pattern for COCONUT #1176

Closed
CS76 opened this issue Aug 30, 2024 · 1 comment · Fixed by #1177
Closed

Update regular expression pattern for COCONUT #1176

CS76 opened this issue Aug 30, 2024 · 1 comment · Fixed by #1177
Labels
Regex Related to regular expression patterns Update Used in combination with prefix, metaprefix, or collection for updates to entries

Comments

@CS76
Copy link

CS76 commented Aug 30, 2024

Prefix

COCONUT

New Regular Expression Pattern

^CNP\\d{7}(\\.\\d+)?$

Explanation

New coconut identifiers are postfixed with dot notation
For example, CNP0018459.2 to denote a stereo variant

Also, the URL is now updated to the following

sh:namespace "https://coconut.naturalproducts.net/compound/"^^xsd:anyURI

Example: https://coconut.naturalproducts.net/compounds/CNP0018459.2

Contributor ORCID

0000-0002-2564-3243

@CS76 CS76 added Regex Related to regular expression patterns Update Used in combination with prefix, metaprefix, or collection for updates to entries labels Aug 30, 2024
@CS76 CS76 changed the title Update regular expression pattern for [X] Update regular expression pattern for COCONUT Aug 30, 2024
@bgyori
Copy link
Contributor

bgyori commented Aug 30, 2024

Thanks @CS76, I added the new pattern and also added an extra example ID to the coconut record.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Regex Related to regular expression patterns Update Used in combination with prefix, metaprefix, or collection for updates to entries
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants