Skip to content

fix: emit uppercase METPO idspace in OBO release artifacts (#557)#560

Merged
turbomam merged 1 commit into
mainfrom
fix/557-obo-uppercase-metpo-idspace
Jun 29, 2026
Merged

fix: emit uppercase METPO idspace in OBO release artifacts (#557)#560
turbomam merged 1 commit into
mainfrom
fix/557-obo-uppercase-metpo-idspace

Conversation

@turbomam

Copy link
Copy Markdown
Contributor

Closes #557.

The released .obo artifacts shipped idspace: metpo + id: metpo:... (lowercase), which conflicts with the blessed uppercase METPO: prefix (#16) and with OBO Foundry's uppercase-idspace convention (GO, CHEBI, PATO).

Root cause

Nothing in the source declared a prefix for the https://w3id.org/metpo/ namespace, so ROBOT assigned the lowercase metpo during the release merge/reason chain, and robot convert -f obo faithfully copied that case. Verified by reproducing the merge chain locally (details in #557).

Fix

One line in metpo-edit.owl: Prefix(METPO:=<https://w3id.org/metpo/>). Declaring the prefix upstream makes ROBOT use METPO (no lowercase, no duplicate idspace). No change to the ODK-generated Makefile, and no post-processing. The fix lives in the hand-edited source, so it survives update_repo.

Artifacts

Regenerated with obolibrary/odkfull:v1.6.1 prepare_release, with TODAY pinned to the committed version date (2026-06-12) so the only change is the prefix case. All three .obo now emit idspace: METPO and id: METPO: (0 lowercase). Term count unchanged (1455). The .json artifacts use full IRIs and are unaffected.

The artifact-freshness check should pass since a fresh build now reproduces these.

Declare Prefix(METPO:=<https://w3id.org/metpo/>) in metpo-edit.owl so the
release pipeline assigns the uppercase METPO prefix to the term namespace
instead of the lowercase 'metpo' ROBOT otherwise picks during the merge.

The .obo artifacts now emit 'idspace: METPO' and 'id: METPO:...' (matching
OBO Foundry uppercase-idspace convention and bioregistry preferred_prefix
METPO), consistent with the uppercase METPO: CURIE prefix used elsewhere
(#16). No Makefile change and no post-processing: the fix is one prefix
declaration in the hand-edited source, which survives update_repo.

Artifacts regenerated with obolibrary/odkfull:v1.6.1 prepare_release, TODAY
pinned to the committed version date (2026-06-12), so the only change is the
prefix case. Term count unchanged (1455).

Closes #557.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 29, 2026 12:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes the METPO CURIE prefix casing in released OBO artifacts by declaring an explicit METPO prefix for the https://w3id.org/metpo/ namespace in the hand-edited ontology source, ensuring ROBOT emits idspace: METPO and id: METPO: rather than lowercase metpo.

Changes:

  • Add Prefix(METPO:=<https://w3id.org/metpo/>) to src/ontology/metpo-edit.owl so downstream ROBOT steps consistently use the uppercase prefix.
  • Regenerate release OWL artifacts (metpo.owl, metpo-base.owl, metpo-full.owl) so the XML namespace prefix and affected QName usages use METPO (semantic IRI unchanged).

Reviewed changes

Copilot reviewed 4 out of 7 changed files in this pull request and generated no comments.

File Description
src/ontology/metpo-edit.owl Declares the METPO prefix for the term namespace so ROBOT/convert-to-OBO has an explicit uppercase idspace mapping.
metpo.owl Regenerated artifact reflecting the uppercase METPO namespace prefix in serialization.
metpo-full.owl Regenerated artifact reflecting the uppercase METPO namespace prefix in serialization.
metpo-base.owl Regenerated artifact reflecting the uppercase METPO namespace prefix in serialization.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@turbomam turbomam merged commit 07a0524 into main Jun 29, 2026
16 checks passed
@turbomam turbomam deleted the fix/557-obo-uppercase-metpo-idspace branch June 29, 2026 14:43
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.

Generated .obo artifacts emit lowercase idspace: metpo instead of the blessed METPO prefix

2 participants