use of org.apache.tinkerpop.gremlin.structure.io.graphson.GraphSONIo in project sqlg by pietermartin.
the class BaseTest method loadGratefulDead.
protected void loadGratefulDead(SqlgGraph sqlgGraph) {
Io.Builder<GraphSONIo> builder = GraphSONIo.build(GraphSONVersion.V3_0);
final GraphReader reader = sqlgGraph.io(builder).reader().create();
try (final InputStream stream = AbstractGremlinTest.class.getResourceAsStream("/grateful-dead-v3d0.json")) {
reader.readGraph(stream, sqlgGraph);
} catch (IOException e) {
Assert.fail(e.getMessage());
}
}
use of org.apache.tinkerpop.gremlin.structure.io.graphson.GraphSONIo in project sqlg by pietermartin.
the class BaseTest method loadModern.
protected void loadModern(SqlgGraph sqlgGraph) {
Io.Builder<GraphSONIo> builder = GraphSONIo.build(GraphSONVersion.V3_0);
final GraphReader reader = sqlgGraph.io(builder).reader().create();
try (final InputStream stream = AbstractGremlinTest.class.getResourceAsStream("/tinkerpop-modern-v3d0.json")) {
reader.readGraph(stream, sqlgGraph);
} catch (IOException e) {
Assert.fail(e.getMessage());
}
}
Aggregations