Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support g.io() #107

Open
spmallette opened this issue Feb 28, 2019 · 3 comments
Open

Support g.io() #107

spmallette opened this issue Feb 28, 2019 · 3 comments

Comments

@spmallette
Copy link
Contributor

http://tinkerpop.apache.org/docs/3.4.0/reference/#io-step

@tuddman
Copy link

tuddman commented May 1, 2019

Read

(import
  [org.apache.tinkerpop.gremlin.structure.io IoCore]
  [org.apache.tinerkpop.gremlin.tinkergraph.structure TinkerGraph])

(-> (.io (TinkerGraph/open) (IoCore/graphml))
    (.readGraph "path/to/example.graphml"))

Write

(-> (.io graph (IoCore/graphml))
    (.writeGraph "output/path/to/example.graphml"))

@spmallette
Copy link
Contributor Author

that's not quite what i meant with this issue because if I'm reading it right, your sample code there still calls the old io() method on the Graph interface. if you notice in the link above that g.io() refers to the new io()-step that is part of the Gremlin language.

@tuddman
Copy link

tuddman commented May 1, 2019

I should qualify my previous comment. You are correct: my example uses the .io method and is still very java-interop-esque. Here for anyone unless/until ogre gains io support with a more elegant, cleaner, newer approach using gremlin directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants