Repository navigation
docs: require hasDbXref provenance on synonyms - #2732
Merged
Merged
Conversation
…uctions New-term synonyms must carry a source xref (PMID/DOI or external-ontology ID) recorded as a reified owl:Axiom on the synonym assertion, just like definitions are xref'd. The curator records each synonym's source; the ontologist encodes it; bare synonyms without a traceable source are flagged for the PR rather than invented. Updates both the Claude (.claude/agents, CLAUDE.md) and Copilot (.github/agents, copilot-instructions.md) agent specs. Co-Authored-By: Claude Opus 4.8 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
When agents create new terms, synonyms found in the literature were being added without a source xref, even though definitions are always xref'd. This PR updates the agent instructions so that every synonym carries a
hasDbXrefprovenance — the PMID/DOI (or external-ontology ID) it came from — recorded as a reifiedowl:Axiomon the synonym assertion, mirroring how NCBITaxon synonyms are already encoded inefo-edit.owl.The curator now explicitly records each synonym's source; the ontologist encodes it as an axiom; synonyms with no traceable source stay bare and are flagged for the PR rather than getting an invented xref.
Changes
.claude/agents/efo-curator.mdhasDbXrefprovenance; report-format updated.claude/agents/efo-ontologist.mdowl:AxiomXML pattern + precondition + verify checklist.github/agents/EFO-curator.md.github/agents/EFO-ontologist.md.github/copilot-instructions.mdCLAUDE.mdhasDbXrefsourceNotes
/review-prreviewer (ontology-pr-reviewer) was also updated to check that new synonyms carry a source xref (🟡 IMPORTANT if missing) — but that agent and thereview-prskill live at user level (~/.claude/), outside this repo, so those changes are not in this PR.🤖 Generated with Claude Code