Repository navigation
Fix review findings for the owlmake migration - #2769
Merged
Merged
Conversation
Plan (owlmake.yaml):
- Add fetch rules for mirror/hpoa.owl and mirror/mondo-owl.owl (the two
non-import fetches from get_mirrors.sh that had no producer in the plan)
and register them in the mirrors refresh group, so the d2p components
build on a fresh clone.
- Delete the two inert rules referencing SPARQL files that do not exist
(build/fbbt-self-xref.txt, remove-fbbt-self-xref).
- Encode the merged-ontology-removal pipeline for its five instantiable
ontologies (chebi, cl, fbbt, hp, obi): filtered-X-mirror.owl,
efo-edit-without-X.owl, remaining-X.ofn, preserve-axioms-X.{ttl,owl}
and phony dump_X, translated from the deleted Makefile lines 112-141.
- Fix the HGNC auto-exclude echo to read the terms file by its
root-relative path, so the reported count is no longer empty.
Docs: make .claude/agents/efo-importer.md and
docs/Import_terms_from_another_ontology.md describe the same two-step
import refresh as the .github variants (refresh the mirror explicitly,
then rebuild the import): mirrors are kept by default, so -B on the
import target reuses the on-disk mirror rather than re-fetching it.
Rewrite docs/odk-workflows/components.md for the owlmake build.
Workflows: spell the ID-allocation step om make allocate-definitive-ids;
pin the copilot-setup owlmake download to v0.2.2 instead of latest; drop
qc.yml's stale ODK header and unused DEFAULT_BRANCH.
Refs #2768.
Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RMkT6NpLSiwerUD773q8V1
…s,imports
Validating the previous commit's two-step procedure against om 0.2.2 showed
it does not work: mirrors AND imports are refresh groups the plan keeps by
default, and a kept target is reused even when named explicitly with -B
(om make mirror/hancestro.owl -B and om make imports/hancestro_import.owl -B
both no-op with "pinned (MIR=false)" / "pinned (IMP=false)"). The .github
docs' two-step spelling had the same defect, so all five documents now
describe the one verified command:
om make imports/<ontology>_import.owl --rebuild mirrors,imports
which re-downloads the plan-named mirror and regenerates the import, touching
only the requested target's closure (verified: re-fetches hancestro.owl and
rewrites hancestro_import.owl byte-identically on an unchanged seed list).
The full-set spelling becomes om make all_imports --rebuild mirrors,imports.
Files: CLAUDE.md, .claude/agents/efo-importer.md,
.github/agents/EFO-importer.md, .github/copilot-instructions.md,
docs/Import_terms_from_another_ontology.md.
Refs #2768.
Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RMkT6NpLSiwerUD773q8V1
EFO and owlmake are developed together, so no environment pins an exact owlmake release and no two environments follow different lines: the QC and ID-allocation containers move from the 0.2-python image tag to latest-python, and the copilot-setup binary download returns to releases/latest, matching the README's editor install. owlmake.yaml's min_owlmake_version stays as the floor that fails a build outright if an environment lags it. Refs #2768. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RMkT6NpLSiwerUD773q8V1
The disease-to-phenotype component's hpoa half was built from Monarch's dipper RDF (data.monarchinitiative.org/ttl/hpoa.ttl), which no longer exists — the URL 404s and no current Monarch product publishes the OBAN association model the d2p-hpoa.ru query consumed. Rebuild that half from the maintained upstream instead: the plan fetches purl.obolibrary.org/obo/hp/hpoa/phenotype.hpoa (already the IRI the component stamps as dc:source) into the mirrors group, and a new stdlib-only repo script, src/scripts/hpoa_to_d2p.py, converts it to the same Turtle shape the MONDO half produces: disease skos:related phenotype with a reified axiom per pair. ORPHA ids map to ORDO IRIs (the form EFO's disease branch carries, matching the 77k Orphanet axioms in the committed component); OMIM and DECIPHER map to their entry URLs; NOT-qualified rows are excluded; all aspects are kept, matching the inheritance terms present in the committed component. d2p-hpoa.ru is deleted with the OBAN model it queried, and get_mirrors.sh goes too — every fetch it performed is now a plan rule, and its hpoa line was the dead URL. Verified with om 0.2.2: om make components/d2p_hpoa.ttl fetches phenotype.hpoa (35 MB) and writes 284,267 distinct disease-phenotype pairs (128 MB Turtle), which om convert parses and maps to axioms cleanly in 26s. Refs #2768. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RMkT6NpLSiwerUD773q8V1
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.
Fixes for the findings from the #2768 review, targeted at
owlmake-migrationso merging folds them into that PR. Four commits, validated against a locally builtom 0.2.2(plan loads,--list-targetsresolves every new target, and the import-refresh procedure below was verified by real runs).Plan (
owlmake.yaml)mirror/hpoa.owlandmirror/mondo-owl.owlnow have producers:op: fetchrules using the URLs fromget_mirrors.sh, registered in themirrorsrefresh group, so the d2p components are buildable from the plan alone.https://data.monarchinitiative.org/ttl/hpoa.ttlcurrently returns 404 upstream —get_mirrors.shwas equally broken, so this is pre-existing URL rot, but a replacement hpoa source needs choosing. The failure is loud and names the URL.build/fbbt-self-xref.txt,remove-fbbt-self-xref) whose SPARQL files exist on neither branch.filtered-X-mirror.owl→efo-edit-without-X.owl→remaining-X.ofn→preserve-axioms-X.{ttl,owl}→ phonydump_X, translated op-for-op from the deleted Makefile (lines 112–141). The one-shot%_terms_in_srcbootstrap was deliberately not encoded — it overwrites curatediri_dependencies/*_terms.txtfiles.Import-refresh docs — corrected to what actually works
Testing showed
-Bdoes not override a kept refresh group, even on an explicitly named target:om make mirror/hancestro.owl -Bandom make imports/hancestro_import.owl -Bboth no-op with "pinned (MIR=false)" / "pinned (IMP=false)". So both prior procedures — the one-step-Band the two-step mirror-then-import — were wrong. All five documents (CLAUDE.md,.claude/agents/efo-importer.md,.github/agents/EFO-importer.md,.github/copilot-instructions.md,docs/Import_terms_from_another_ontology.md) now describe the verified command:Verified end-to-end on hancestro: re-fetches the mirror, regenerates the import, and reproduced
hancestro_import.owlbyte-identically on an unchanged seed list.One owlmake version line, never mixed
The branch mixed three schemes (image
0.2-python, an exact release,releases/latestin the README). Since EFO and owlmake are developed together, every environment now tracks latest —latest-pythonfor the QC and ID-allocation containers,releases/latestfor the copilot-setup binary, matching the README — withowlmake.yaml'smin_owlmake_versionas the floor that fails a lagging environment outright.Workflows and doc tidy-ups
allocate-definitive-ids.ymlspells the targetom make allocate-definitive-ids(the bare form worked viadefault_to_make, but the explicit spelling is self-evident).qc.yml: stale# Basic ODK workflowheader and unusedDEFAULT_BRANCHremoved.docs/odk-workflows/components.mdrewritten for the owlmake build (it still described ODK yaml + custom Makefiles).neoplasm.Makefile(stays in tree, unused),default_targets(omittingall_importsmatches the refresh-group semantics; the explicitalltarget still includes it).🤖 Generated with Claude Code
https://claude.ai/code/session_01RMkT6NpLSiwerUD773q8V1
Generated by Claude Code