public void f() {
OSQLEngine.getInstance().registerFunction(OSQLFunctionGremlin.NAME, OSQLFunctionGremlin.class);
OGraphDatabase db = new OGraphDatabase("local:C:/temp/databases/gremlin");
if (db.exists())
db.open("admin", "admin");
else
db.create();
// ODocument vertex1 = (ODocument) db.createVertex().field("label", "car").save();
// ODocument vertex2 = (ODocument) db.createVertex().field("label", "pilot").save();