Is there a way to limit Gremlin expressions to just Gremlin API? I'd like to embed gremlin as a part of one rule engine, but the possibility to call whatever e.g. in filters is a risk.
g.v(1).outE.filter{ new Socket('localhost', 8080). ... }
Is there a way to limit the execution to some safe set of interfaces?