Skip to content

Latest commit

 

History

History
31 lines (17 loc) · 1.52 KB

formats-supported.md

File metadata and controls

31 lines (17 loc) · 1.52 KB

Supported formats

At the moment the plugin supports GraphSON and GraphML. Due to their different implementations, the exporting possibilities vary.

GraphSON

GraphSON is a JSON based graph format developed by TinkerPop with readers and writers provided by Blueprints.

Our plugin is able to export queries (Traversals) that iterate Vertices or Edges, for example:

gremlin> :bio4j graphson /home/andre g.of(GoTraversal.class).goTerms()

Will export all the GoTerms (vertices) in the g graph to GraphSON.

GraphML

GraphML is a comprehensive and easy-to-use file format for graphs. It consists of a language core to describe the structural properties of a graph and a flexible extension mechanism to add application-specific data. As GraphML is a specification for the serialization of an entire graph and not the individual elements of a graph, methods that support input and output of single vertices and edges are not supported by Tinkerpop. Therefore we are only able to export whole graphs at this point.

Exporting a graph to GraphML using the plugin goes like this:

gremlin> :bio4j graphml path g

where g is the variable that holds the graph you want to export. This can be any graph, you can create subgraphs of other graphs using TinkerPop's subgraph step and then export the resulting subgraph.