AT
Apache TinkerPopLalaLingüista
Export to graphml/graphson with Python
Hello everyone,
I hope this question has not been asked yet, if so I'm sorry for redundant content... I would like to export my graph to graphml or graphson using Python. The documenation provides this code "g.io("graph.xml").write().iterate()" , which does not produce any output or this "g.io(someOutputFile).with(IO.writer,IO.graphml).write().iterate()", which does not follow the syntax. Do you have any suggestion how to solve this? I also read about making sure that the file is accessible by the GremlinServer, do I need to do anything else except creating a connection to the server (which I have done to create the graph in the first place)?
S
spmallette•391d ago
i would expect
g.io("graph.xml").write().iterate()
submitted from python to write a "graph.xml" file on the Gremlin Server instance. Do you not see that file somewhere there? I'd guess looking in the directory from which you started Gremlin Server as the place to find that.L
LalaLingüista•376d ago
Oh wow, I just looked in the wrong place! Thank you very much for this easy solution 😄
Apache TinkerPop is an open source graph computing framework and the home of the Gremlin graph query language.
1.3KMembers
View on DiscordWant results from more Discord servers?
More PostsPublish all Q&A on the webTo my best knowledge, Discord contents are not indexed by search engine crawlers. If we can export aOut edge of vertex is slowWhen i run this below query:
"g.V().has("guid", "6203620951906330066").limit(10).out("matching").proTranslating bytecode into JupyterLabs compatible script.I've found that the gremlin syntax in jupyter is different from every other language, including pythQuery if else in gremlinI have a query and that return a list vertex. I want to do a query from those vertexes like this (ifDoes Gremlin do DFS or BFS?Does Gremlin perform a Depth First Search (DFS) or Breadth First Search (BFS) when traversing?Self-service roles for providers and areas of expertiseWe have roles for providers right now as listed in #roles - they are handed out by moderators. So faMore elaborate sack examples in the docsThere are a few examples for the `sack` step, but it would be good to have a more concrete one.
For Isolated vertices vs connected vertices with no join benefitIs there any downside to storing an isolated vertex with references to other nodes? Creating relatioSubgraph Strategy with vertexProperties + project().by("field name") = crashRunning the following query:
`g.withStrategies(new SubgraphStrategy(vertexProperties: constant(true)Custom MutationListener on TransactionHello everyone, I'm a beginner regarding tinkerpop and i'm trying to fire my custom listener after