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

Import all namespaces defined in namaspaces.py into db_utils.py #11

Open
bgajdero opened this issue Jul 15, 2024 · 0 comments
Open

Import all namespaces defined in namaspaces.py into db_utils.py #11

bgajdero opened this issue Jul 15, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@bgajdero
Copy link
Contributor

Update processing of ontology_cache to import all (import *) for all paths added to owlready2.onto_path.

The final result should be that any namespaces defined in all namespaces.py files are imported and accessible to db_utils.db.

Assume that what ever path is added to onto_path, in the same directory as cache_ontology, there is a file name namespaces.py. The variables defined in this file should be imported.

For example, here, the path input/ontology_cache/ is added. This can then be referenced in db_utils as `from .input.namespaces.

@bgajdero bgajdero added the bug Something isn't working label Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants