g.saveGraphMl(filename) worked like a charm.
However, I'm getting an error while trying to load this GraphML using
g.loadGraphML(filename)
rexster[groovy]> g.loadGraphML('graph.xml')
==>An error occurred while processing the script for language [groovy]: javax.script.ScriptException: java.lang.RuntimeException: id is a reserved property key
Similar behavior for load/saveGraphSON . I'm using rexster-0.8-SNAPSHOT.
--
Nikhil
I'm running both, Rexster server and console from the same directory. So, I don't think this problem should arise. Also, the error reported by rexster console doesn't talk about a FileNotFoundException or something similar.
I found an explanation for 'id is a reserved property key' at http://groups.google.com/group/gremlin-users/browse_thread/thread/77838ba9591f09bd
My saved GraphML contains an 'id' from the graph it was saved. IMO, g.saveGraphML shouldn't copy the 'id's if 'id' is a reserved property. Could you please let me know of your opinion on this?
--
Nikhil
gremlin> g.saveGraphML('test.xml')
==>null
gremlin> g = new TinkerGraph()
==>tinkergraph[vertices:0 edges:0]
gremlin> g.loadGraphML('test.xml')
==>null
I don't get such a problem. Can you demonstrate how you are saving/loading your graphs?
Thanks,
Marko.
Cheers,
/peter neubauer
G: neubauer.peter
S: peter.neubauer
P: +46 704 106975
L: http://www.linkedin.com/in/neubauer
T: @peterneubauer
Neo4j 1.6 released - dzone.com/6S4K
The Neo4j Heroku Challenge - http://neo4j-challenge.herokuapp.com/
I can't seem to reproduce this error. Can you provide me the smallest possible GraphML example and step-by-step test to demonstrate your problem (preferably as an issue). I can then see where the problem lays.
Thank you,
Marko.
Thanks for the response. Will add an issue shortly.
Could you please let me know what's the best location to add an issue about this? I don't think this is related exclusively to Rexster now. Seems more like a Blueprints issue. Can someone confirm?
--
Nikhil
If you can't reproduce the error using raw Blueprints and it only happens in Rexster, then put it in Rexster. If you can reproduce the error in raw Blueprints, then put it in Blueprints.
Raw Blueprints would look something like this:
GraphMLReader.inputGraph(graph, new FileInputStream("my.graphml"));
HTH,
Marko.
--
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/d/optout.