How to use the ontospy.extras.shell_lib.Shell function in ontospy

To help you get started, we’ve selected a few ontospy examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github lambdamusic / Ontospy / ontospy / extras / shell_lib.py View on Github external
def main():
    """ standalone line script """

    print("Ontospy " + VERSION)

    Shell()._clear_screen()
    print(Style.BRIGHT + "** Ontospy Interactive Ontology Browser " + VERSION + " **" + Style.RESET_ALL)
    # manager.get_or_create_home_repo()
    Shell().cmdloop()
    raise SystemExit(1)
github lambdamusic / Ontospy / ontospy / extras / shell.py View on Github external
def launch_shell(source=None):
    Shell()._clear_screen()
    print(STARTUP_MESSAGE)
    if source and len(source) > 1:
        click.secho('Note: currently only one argument can be passed', fg='red')
    uri = source[0] if source else None
    Shell(uri).cmdloop()
    raise SystemExit(1)
github lambdamusic / Ontospy / ontospy / extras / shell.py View on Github external
def launch_shell(source=None):
    Shell()._clear_screen()
    print(STARTUP_MESSAGE)
    if source and len(source) > 1:
        click.secho('Note: currently only one argument can be passed', fg='red')
    uri = source[0] if source else None
    Shell(uri).cmdloop()
    raise SystemExit(1)
github lambdamusic / Ontospy / ontospy / extras / shell_lib.py View on Github external
def main():
    """ standalone line script """

    print("Ontospy " + VERSION)

    Shell()._clear_screen()
    print(Style.BRIGHT + "** Ontospy Interactive Ontology Browser " + VERSION + " **" + Style.RESET_ALL)
    # manager.get_or_create_home_repo()
    Shell().cmdloop()
    raise SystemExit(1)