x-atlas-consortia / ubkg-api

A web service for the Unified Biomedical Knowlege Graph system
MIT License
0 stars 0 forks source link

bug: relative file path for loadquery when ubkg-api endpoints called from hs-ontology-api #119

Closed AlanSimmons closed 2 months ago

AlanSimmons commented 4 months ago

Statement of problem

Endpoints in ubkg-api load Cypher query strings from files in a relative file path.

When the hs-ontology-api is the active service, calls to endpoints in ubkg-api are passed through to a library package version of ubkg-api. In these scenarios, the root path is relative to hs-ontology-api, not ubkg-api, making relative paths tricky.

image

Solution

Correct the path assignment in the loadquery utility.