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

Offline mode #38

Open
jakebeal opened this issue Sep 27, 2021 · 2 comments
Open

Offline mode #38

jakebeal opened this issue Sep 27, 2021 · 2 comments
Milestone

Comments

@jakebeal
Copy link
Contributor

Can we give tyto the ability to run offline when somebody is not connected to the internet?

@bbartley
Copy link
Contributor

While there isn't currently an elegant way to toggle between offline/online work, you can force tyto to use a local copy of the ontology when one is available by unsetting the endpoints attribute.

tyto.SO.endpoints = []

When no endpoints are available, tyto will fall back to loading a local copy of the ontology if one is available. Currently, ontology files are distributed with tyto for a few of the ontologies (SO, SBO, OM) supporting offline work, but some are not (NCIT is too large for distribution).

@jakebeal
Copy link
Contributor Author

I think you may want to add a test for this, as it crashed on me looking for an SBO term while working offline this morning.

@jakebeal jakebeal added this to the 1.0 milestone Oct 28, 2021
@jakebeal jakebeal modified the milestones: 1.0, 1.1 Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants