Skip to content

Fix 4 EquivalentClass axioms causing EFO unsatisfiable classes - #2686

Merged
aleixpuigb merged 2 commits into
masterfrom
copilot/resolve-efo-unsats-issues
May 7, 2026
Merged

aleixpuigb merged 2 commits into
masterfrom
copilot/resolve-efo-unsats-issues

Conversation

Copilot AI commented Apr 29, 2026 •

Copy link
Copy Markdown
Contributor

ELK reasoner was producing a large number of unsatisfiable classes (owl:Nothing) due to 4 overly broad EquivalentClasses axioms in src/ontology/components/efo_equivalent_class_axioms.owl that allowed immaterial entities (anatomical spaces/cavities) to be inferred as material anatomical structures.

Root causes and fixes

  • EFO_0000792 (craniofacial tissue) — Removed self-referential equivalence:

    # REMOVED (circular):
    EquivalentClasses(efo:EFO_0000792 ObjectSomeValuesFrom(obo:BFO_0000050 efo:EFO_0000792))
    

    Any entity part_of craniofacial tissue was inferred to BE craniofacial tissue, creating circular reasoning.

  • EFO_0001958 (joint component) — Added anatomical_structure to intersection:

    # Before:
    EquivalentClasses(efo:EFO_0001958 ObjectSomeValuesFrom(obo:BFO_0000050 obo:UBERON_0000982))
    # After:
    EquivalentClasses(efo:EFO_0001958 ObjectIntersectionOf(obo:UBERON_0000061 ObjectSomeValuesFrom(obo:BFO_0000050 obo:UBERON_0000982)))
    
  • EFO_0001986 (lung structure) — Same fix: added anatomical_structure (UBERON_0000061) to the intersection with part_of some lung.

  • EFO_0003858 (skeleton structure) — Removed the bare part_of some skeletal_system equivalence. The correct intersection form (anatomical_structure AND part_of some skeletal_system) already exists in efo-edit.owl; the redundant looser axiom was forcing all entities part of the skeletal system to be material.

Without the anatomical_structure (UBERON_0000061) constraint in the intersection, immaterial entities (cavities, spaces) that are part of a joint/lung/skeleton were being classified as material anatomical structures, producing unsats.

Added Declaration(Class(obo:UBERON_0000061)) to the component file's declarations section.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • www.ebi.ac.uk
    • Triggering command: /usr/bin/java java -jar tools/robot.jar query --input /tmp/efo-reasoned-test.owl --query /tmp/unsats.sparql /tmp/unsats.tsv (dns block)
    • Triggering command: /usr/bin/java java -jar tools/robot.jar query -i /tmp/efo-reasoned-test.owl -q /tmp/unsats.sparql /tmp/unsats.tsv (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI linked an issue Apr 29, 2026 that may be closed by this pull request
- Remove self-equivalence for EFO_0000792 (craniofacial tissue):
  EquivalentClasses(EFO_0000792 part_of some EFO_0000792) was circular
- Fix EFO_0001958 (joint component): add anatomical_structure to intersection
  was: EquivalentClasses(EFO_0001958 part_of some skeletal_joint)
  now: EquivalentClasses(EFO_0001958 anatomical_structure AND part_of some skeletal_joint)
- Fix EFO_0001986 (lung structure): add anatomical_structure to intersection
  was: EquivalentClasses(EFO_0001986 part_of some lung)
  now: EquivalentClasses(EFO_0001986 anatomical_structure AND part_of some lung)
- Remove problematic EFO_0003858 (skeleton structure) from this file:
  EquivalentClasses(EFO_0003858 part_of some skeletal_system) was too broad
  Correct version (with anatomical_structure AND part_of) already in efo-edit.owl
- Add Declaration for UBERON_0000061 (anatomical_structure) needed by intersections

Agent-Logs-Url: https://github.com/EBISPOT/efo/sessions/a78282d5-4fed-4763-8222-c04ab0ffaf71

Co-authored-by: aleixpuigb <[email protected]>
Copilot AI changed the title [WIP] Fix EFO unsatisfiable classes root detection Fix 4 EquivalentClass axioms causing EFO unsatisfiable classes Apr 29, 2026
Copilot AI requested a review from aleixpuigb April 29, 2026 13:02
@aleixpuigb
aleixpuigb marked this pull request as ready for review April 29, 2026 15:32
@aleixpuigb
aleixpuigb requested a review from zoependlington May 7, 2026 13:15
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.

Solve EFO unsats

3 participants