Search in sources :

Example 1 with GraqlShellOptionsFactory

use of ai.grakn.graql.shell.GraqlShellOptionsFactory in project grakn by graknlabs.

the class Graql method main.

/**
 * Invocation from bash script 'graql'
 *
 * @param args
 */
public static void main(String[] args) throws IOException, InterruptedException {
    GraknSessionProvider sessionProvider = new GraknSessionProvider(GraknConfig.create());
    GraqlShellOptionsFactory graqlShellOptionsFactory = GraqlShellOptions::create;
    new Graql(sessionProvider, graqlShellOptionsFactory).run(args);
}
Also used : GraknSessionProvider(ai.grakn.graql.shell.GraknSessionProvider) GraqlShellOptionsFactory(ai.grakn.graql.shell.GraqlShellOptionsFactory)

Aggregations

GraknSessionProvider (ai.grakn.graql.shell.GraknSessionProvider)1 GraqlShellOptionsFactory (ai.grakn.graql.shell.GraqlShellOptionsFactory)1