Skip to content

Remove phyloreference status tracking (pso:holdsStatusInTime) from PhylorefWrapper - #198

Merged
gaurav merged 3 commits into
masterfrom
remove-holdsStatusInTime
Nov 9, 2026
Merged

gaurav merged 3 commits into
masterfrom
remove-holdsStatusInTime

Conversation

@gaurav

@gaurav gaurav commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

PhylorefWrapper carried a small publishing workflow: getCurrentStatus(), getStatusChanges(), setStatus() and the static getStatusCURIEsInEnglish() recorded a history of Publishing Status Ontology states (draft, final draft, under review, tested, published, retracted) under pso:holdsStatusInTime on each phyloreference. We have since decided that was more machinery than the problem needed: curators can track where a phyloreference stands in curator notes, or by filing Phyx files in a directory per status, and the one case with real semantics, deprecation, belongs in standard OWL as owl:deprecated. Klados has already dropped its status editor and does not call these methods. This PR removes the four methods, their tests, and the moment dependency they were the only user of. It is the first half of #135.

Hilmar's review of #196 prompted this: that PR adds fixes to these same methods, which is why the leftover code came up. The two PRs conflict in src/wrappers/PhylorefWrapper.js. If this one merges first, #196 should drop its status-method fixes, their tests, and the matching sentence in its changelog line, since there is nothing left to fix. If #196 merges first, this branch needs a rebase that deletes the fixed code as well.

What this deliberately does not do

  • The second half of Remove status tracking code from PhylorefWrapper #135, a single owl:deprecated marker in place of pso:retracted-from-publication (klados#81), is a separate PR stacked on this one, so Remove status tracking code from PhylorefWrapper #135 stays open.
  • The pso, tvc and timeinterval prefixes stay in every JSON-LD context under context/, including development. Older Phyx files still carry pso:holdsStatusInTime entries (two papers in clade-ontology, and our own test/examples/incorrect/otl-resolution-errors.json), and those keep expanding to full IRIs rather than becoming undefined terms. The library still reads such files; it just no longer interprets that property.

Verification

npm test passes on 0d28b7d: all 210-odd tests, lint clean.

🤖 Generated with Claude Code

gaurav and others added 3 commits November 3, 2026 01:50
getCurrentStatus(), getStatusChanges(), setStatus() and
getStatusCURIEsInEnglish() recorded a history of Publishing Status
Ontology states under pso:holdsStatusInTime. We now track where a
phyloreference stands outside the Phyx file (for example, on GitHub), so
the methods and their tests go. Klados does not call them.

The pso, tvc and timeinterval prefixes stay in every published JSON-LD
context, including the development one, because older Phyx files (two in
clade-ontology, and test/examples/incorrect/otl-resolution-errors.json)
still carry pso:holdsStatusInTime entries, which must keep expanding to
full IRIs.

The remaining half of #135, a single owl:deprecated marker, is a
separate change.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
getStatusChanges() was its only caller.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

@hlapp hlapp left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍🏻

@gaurav
gaurav merged commit d0ee978 into master Nov 9, 2026
3 checks passed
@gaurav
gaurav deleted the remove-holdsStatusInTime branch November 9, 2026 05:56
gaurav added a commit that referenced this pull request Nov 9, 2026
Master (#198) removed PhylorefWrapper's status methods, which this branch
had fixed (single pso:holdsStatusInTime entries, entries with no status).
The conflicts are resolved in master's favour: the status methods, their
tests and the getStatusesInTime()/getStatusCURIE() helpers this branch
added are gone, and the #196 changelog entry no longer mentions them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
gaurav added a commit that referenced this pull request Nov 10, 2026
Both conflicts were independent additions, kept side by side: the
CHANGELOG entries for PRs #192 and #195-#198, and in AGENTS.md the
test/context.js note next to master's rewritten JPhyloRef note.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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