Skip to content

Commit

Permalink
fix json and add hack to get around root ontology term
Browse files Browse the repository at this point in the history
  • Loading branch information
joyceyan committed Oct 22, 2024
1 parent 13142b4 commit 3504159
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ontology-assets/ontology_info.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"5.2.1+experimental": {
"5.2.1-experimental": {
"ontologies": {
"CL": {
"version": "v2024-08-16",
Expand Down
3 changes: 2 additions & 1 deletion tools/ontology-builder/src/all_ontology_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ def _extract_ontology_term_metadata(onto: owlready2.entity.ThingClass, allowed_o
term_id = onto_term.name.replace("_", ":")

# Skip terms that are not direct children from this ontology
if term_id.split(":")[0] not in allowed_ontologies:
term_id_parts = term_id.split(":")
if len(term_id_parts) > 2 or term_id_parts[0] not in allowed_ontologies:
continue
# Gets ancestors
ancestors = _get_ancestors(onto_term, allowed_ontologies)
Expand Down

0 comments on commit 3504159

Please sign in to comment.