-
Notifications
You must be signed in to change notification settings - Fork 25
Description
It seems that node_synonymizer.py, when it is attempting to find the Node Synonymizer Sqlite file, looks in config_dbs.json to get the filename, but ignores the path provided in config_dbs.json, even though the config file appears to provide a full path location:
"node_synonymizer": "/translator/data/orangeboard/databases/KG2.10.2/node_synonymizer_v1.0_KG2.10.2.sqlite",
After some testing, and after reviewing the code in node_synonymizer.py, I am pretty confident in saying that the node synonymizer just pulls the filename (node_synonymizer_v1.0_KG2.10.2.sqlite) of the sqlite file from the config file and then assumes that the sqlite file is located in the same directory as node_synonymizer.py. Why is that? Why do we allow the user to specify a sqlite file location in config_dbs.json but then ignore the configured path location, when looking for the synonymizer file?
For testing ARAX on a local dev machine, it would sure be nice if I could configure alternate locations for the dbs, using the config_dbs.json file. But at least as concerns node synonymizer, it appears that I cannot do this without editing python code or creating a sym link. But in that case, why do we have a sym link? Why doesn't the module just use the configured directory location?