Repository navigation
Migrate build system to owlmake - #2768
Conversation
Review — owlmake migration (head
|
…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
|
Fixes for all the findings above are in #2769, targeted at this PR's branch — merging it folds them in here. Highlights beyond the review: the import-refresh procedure in every doc (both prior spellings) turned out not to work — Generated by Claude Code |
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
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
|
All fixes are now on this branch directly (#2769 was merged in, rebased — five commits on top of
Generated by Claude Code |
The previous fix rewrote the wc path inside the HGNC auto-exclude echo to src/ontology/imports/mondo_import.owl.hgnc.txt on the reasoning that every other plan path is repo-root-relative. Shell steps in the import pipeline run from src/ontology, and text inside a command substitution is passed to the shell verbatim, so the rewrite broke the very count it meant to fix. Measured with om 0.2.2 on om make imports/mondo_import.owl: the rewritten path prints "sh: cannot open src/ontology/imports/mondo_import.owl.hgnc.txt: No such file" and an empty count (also observed in CI run 32986716429); restored to imports/mondo_import.owl.hgnc.txt it prints "Auto-excluding 3606 HGNC terms from mondo import". Refs #2768. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RMkT6NpLSiwerUD773q8V1
The previous fix rewrote the wc path inside the HGNC auto-exclude echo to src/ontology/imports/mondo_import.owl.hgnc.txt on the reasoning that every other plan path is repo-root-relative. Shell steps in the import pipeline run from src/ontology, and text inside a command substitution is passed to the shell verbatim, so the rewrite broke the very count it meant to fix. Measured with om 0.2.2 on om make imports/mondo_import.owl: the rewritten path prints "sh: cannot open src/ontology/imports/mondo_import.owl.hgnc.txt: No such file" and an empty count (also observed in CI run 32986716429); restored to imports/mondo_import.owl.hgnc.txt it prints "Auto-excluding 3606 HGNC terms from mondo import". Refs #2768. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RMkT6NpLSiwerUD773q8V1
The previous fix rewrote the wc path inside the HGNC auto-exclude echo to src/ontology/imports/mondo_import.owl.hgnc.txt on the reasoning that every other plan path is repo-root-relative. Shell steps in the import pipeline run from src/ontology, and text inside a command substitution is passed to the shell verbatim, so the rewrite broke the very count it meant to fix. Measured with om 0.2.2 on om make imports/mondo_import.owl: the rewritten path prints "sh: cannot open src/ontology/imports/mondo_import.owl.hgnc.txt: No such file" and an empty count (also observed in CI run 32986716429); restored to imports/mondo_import.owl.hgnc.txt it prints "Auto-excluding 3606 HGNC terms from mondo import". Refs #2768. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RMkT6NpLSiwerUD773q8V1
No description provided.