Skip to content

GDF file reader that can write data from a GDF stream to TinkerPop 2.x graph

License

Notifications You must be signed in to change notification settings

formcept/gdfpop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gdfpop

GDF file reader that can write data from a GDF stream to TinkerPop 2.x graph

Usage

GDFpop provides GDFReader that takes care of parsing the GDF file stream and populating TinkerPop 2.x Graph that is provided as an input. For more details, please take a look at the GDFReaderTest. For example-

// initialize TinkerPop Graph
Graph graph = new TinkerGraph();
// read in the GDF stream
GDFReader.inputGraph(graph, GDFReader.class.getResourceAsStream("graph-example.gdf"), "'", null);
// use blueprints as usual
Vertex a = graph.getVertex("a");

There are three optional parameters-

  1. buf: Takes in a buffer size for BatchGraph. See BatchGraph for more details.
  2. quote: You can specify the quote character that is being used for the values. Default is double quotes.
  3. eidp: Edge property to be used as an ID

About

GDF file reader that can write data from a GDF stream to TinkerPop 2.x graph

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages