Search code examples
neo4jcypherneo4j-java-api

Returning Neo4j server plugin results as graphML?


Is there a way to return the path from my server plugin in a graphML format? Like the way it can be done in the usual REST endpoint by providing resultDataContents as "graph".


Solution

  • You can just create the graphml format and return it as a string. For an example on how to do it:

    https://github.com/jexp/neo4j-shell-tools/blob/2.2/src/main/java/org/neo4j/shell/tools/imp/format/XmlGraphMLFormat.java