Loading existing graphs

568 views
Skip to first unread message

Z

unread,
Jan 12, 2012, 2:07:52 PM1/12/12
to Gremlin-users
I beg your collective pardons if this has been covered somewhere and I
managed to miss it, but how exactly would I load a graph (specifically
a Neo4j graph) into Gremlin that I created at some other point in
time?

For example, how would I manipulate the base graph that is created by
the Neo4j server distribution via Gremlin, without utilizing the web-
based Gremlin shell? Additionally, if I had used Gremlin to create a
standalone graph at one point in time, and then, in another point in
time, using a totally new gremlin process, how would I load and
manipulate the already existent graph?

Peter Neubauer

unread,
Jan 16, 2012, 12:44:16 PM1/16/12
to gremli...@googlegroups.com
Hi there,
you would just point the Neo4j graph in grermlin to your Neo4j database, like

g = new Neo4jGraph('/pth/to/db', false)

Cheers,

/peter neubauer

Google:    neubauer.peter
Skype:     peter.neubauer
Phone:     +46 704 106975
LinkedIn:  http://www.linkedin.com/in/neubauer
Twitter:    @peterneubauer
Tungle:    tungle.me/peterneubauer

brew install neo4j && neo4j start
heroku addons:add neo4j

deeptree

unread,
Feb 10, 2012, 6:38:12 AM2/10/12
to gremli...@googlegroups.com
What am I missing, the method signature does not indicate a second parameter? "graph1 exists"

gremlin> graphstore = "C:\\temp\\graph1"
==>C:\temp\graph1

gremlin> Graph g = new Neo4jGraph(graphstore, false)
Could not find matching constructor for: com.tinkerpop.blueprints.pgm.impls.neo4
j.Neo4jGraph(java.lang.String, java.lang.Boolean)

==
No second argument, JAVDOC shows 'string path only',
http://goo.gl/ja6Re

Neo4jGraph

public Neo4jGraph(java.lang.String directory)

Thanks.

BTW: Is there a gremlin recipe/pattern collection / site?

Pierre De Wilde

unread,
Feb 10, 2012, 11:51:39 AM2/10/12
to gremli...@googlegroups.com

Connah Cutbush

unread,
Jul 3, 2013, 4:23:46 AM7/3/13
to gremli...@googlegroups.com
Hi Pierre,

I'm having the same problem in that the Gremlin terminal doesn't accept the second parameter.

gremlin> graphstore = 'movieRatings'
==>movieRatings
gremlin> g = new Neo4jGraph(graphstore, false)
Could not find matching constructor for: com.tinkerpop.blueprints.impls.neo4j.Neo4jGraph(java.lang.String, java.lang.Boolean)

I can see from the doc of the constructors that the second parameter should be fine but it's not being accepted. What am I missing?

I'm using Gremlin 2.3 on a mac.

Thanks

Stephen Mallette

unread,
Jul 3, 2013, 5:29:03 AM7/3/13
to gremli...@googlegroups.com
Looks like the constructor signatures might have shifted a bit since Blueprints 1.1


Stephen


--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages