renamed nquad quad, added gml/graphml, changed default to quad
This commit is contained in:
parent
19f5b090e6
commit
f1566ba182
2 changed files with 2 additions and 2 deletions
|
|
@ -50,7 +50,7 @@ var (
|
||||||
databasePath = flag.String("dbpath", "/tmp/testdb", "Path to the database.")
|
databasePath = flag.String("dbpath", "/tmp/testdb", "Path to the database.")
|
||||||
databaseBackend = flag.String("db", "memstore", "Database Backend.")
|
databaseBackend = flag.String("db", "memstore", "Database Backend.")
|
||||||
dumpFile = flag.String("dump", "dbdump.nq", `Quad file to dump the database to (".gz" supported, "-" for stdout).`)
|
dumpFile = flag.String("dump", "dbdump.nq", `Quad file to dump the database to (".gz" supported, "-" for stdout).`)
|
||||||
dumpType = flag.String("dump_type", "json", `Quad file format ("json", "nquad").`)
|
dumpType = flag.String("dump_type", "quad", `Quad file format ("json", "quad", "gml", "graphml").`)
|
||||||
replicationBackend = flag.String("replication", "single", "Replication method.")
|
replicationBackend = flag.String("replication", "single", "Replication method.")
|
||||||
host = flag.String("host", "127.0.0.1", "Host to listen on (defaults to all).")
|
host = flag.String("host", "127.0.0.1", "Host to listen on (defaults to all).")
|
||||||
loadSize = flag.Int("load_size", 10000, "Size of quadsets to load")
|
loadSize = flag.Int("load_size", 10000, "Size of quadsets to load")
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ func Dump(qs graph.QuadStore, outFile, typ string) error {
|
||||||
|
|
||||||
//TODO: add possible support for exporting specific queries only
|
//TODO: add possible support for exporting specific queries only
|
||||||
switch typ {
|
switch typ {
|
||||||
case "nquad":
|
case "quad":
|
||||||
export.ExportNquad()
|
export.ExportNquad()
|
||||||
case "json":
|
case "json":
|
||||||
export.ExportJson()
|
export.ExportJson()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue