public class GraphSON extends BaseCommand
Example usage:
# stop the server
$NEO4J_HOME/bin/neo4j stop
# save a dump
./scripts/cmd graphson -d out graph.json
# or
./scripts/cmd graphson -d out - > graph.json
# edit it
# remove the graph
rm -rf $NEO4J_HOME/data/graph.db
# load edited graph
./scripts/cmd graphson -d in graph.json
# start server
$NEO4J_HOME/bin/neo4j start
options
Constructor and Description |
---|
GraphSON() |
Modifier and Type | Method and Description |
---|---|
int |
execWithOptions(com.tinkerpop.frames.FramedGraph<?> graph,
org.apache.commons.cli.CommandLine cmdLine)
Execute this command with the given database and parsed command
line arguments.
|
String |
getHelp()
Get information about the functionality of the command.
|
String |
getHelpFooter()
Get footer text for the help.
|
String |
getUsage()
Get a short hint about the usage of the command.
|
protected void |
setCustomOptions(org.apache.commons.cli.Options options) |
api, exec, getDetailedHelp
public String getHelp()
Command
getHelp
in interface Command
getHelp
in class BaseCommand
public String getHelpFooter()
Command
public String getUsage()
Command
getUsage
in interface Command
getUsage
in class BaseCommand
protected void setCustomOptions(org.apache.commons.cli.Options options)
setCustomOptions
in class BaseCommand
public int execWithOptions(com.tinkerpop.frames.FramedGraph<?> graph, org.apache.commons.cli.CommandLine cmdLine) throws Exception
BaseCommand
execWithOptions
in interface Command
execWithOptions
in class BaseCommand
graph
- the graph databasecmdLine
- the parsed command line objectException
Copyright © 2018 The European Holocaust Research Infrastructure (EHRI). All rights reserved.