Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retain definitions and xrefs from imports #1040

Closed
wants to merge 1 commit into from

Conversation

allenbaron
Copy link
Collaborator

This PR is an optional enhancement that will retain all oboInOwl:hasDbXref triples in all imports, thereby also retaining definitions.

Analysis of (minor) problem :

Definitions from imports with definition sources are stripped (e.g. SYMP, UBERON, CL, . This is because oboInOwl:hasDbXref's are removed and the definition source axioms depend on them.

There's no way to drop only oboInOwl:hasDbXref triples within definition axioms with ROBOT.

In order to retain definitions (when they have sources) all oboInOwl:hasDbXref statements must be retained.

PROBLEM:
Definitions from imports with definition sources are stripped.
This is because oboInOwl:hasDbXref's are removed and the
definition source axioms depend on them.

There's no way to drop only oboInOwl:hasDbXref triples within
axioms with ROBOT.

FIX:
Keep oboInOwl:hasDbXrefs (and subsequently definitions) for
ALL imports.
@allenbaron allenbaron added enhancement imports Applies to ontologies imported into the Human Disease Ontology. labels Jun 1, 2022
@lschriml
Copy link
Contributor

lschriml commented Jun 2, 2022

@allenbaron -- we determined that we do not want the definitions included from external imports for several reasons, they increase the size of the ontology and any errors they may contain that violate our QC constraints are both out of our control to fix and gum up our release process. Other than SYMP and TRANS, we do not want to include the definitions, etc. from the other imports.
Cheers,
Lynn

@allenbaron
Copy link
Collaborator Author

Some imports do have definitions with them (example: CHEBI). If we really want only definitions for SYMP and TRANS, we should probably remove the "definition" tag from the src/ontology/imports/annotations.txt file (which specifies the class annotations that should be retained for imports) and update our import procedure for SYMP and TRANS.

@allenbaron
Copy link
Collaborator Author

Maintenance and/or removal of definitions in imports was revised in PR #1052.

@allenbaron allenbaron closed this Jul 27, 2022
@allenbaron allenbaron deleted the imports/incl_defs_xrefs branch July 27, 2022 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement imports Applies to ontologies imported into the Human Disease Ontology.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants