x-atlas-consortia / ubkg-etl

A framework that combines data from the UMLS with assertions from other data sources into a set of CSV files that can be imported into neo4j to build a Unified Biomedical Knowledge Graph (UBKG)
MIT License
2 stars 0 forks source link

bug: relationship mapping to Relations Ontology broken because of case issue #135

Closed AlanSimmons closed 3 months ago

AlanSimmons commented 3 months ago

Statement of Issue

Relationships from ingested ontologies that are described with IRIs in the Relations Ontology are not being correctly translated to terms. Instead, the relationships are given labels that are the RO code in lowercase.

For example, the relationships here should use the term "only_in_taxon", which is the term for RO_0002160:

image

Cause of problem

This bug was introduced in v 3.3, in which relationship labels were cast to lowercase.

Solution

Cast the predicate labels obtained from RO to lowercase before joining with lowercase predicates from edgefiles.