Skip to content

Commit

Permalink
loader: do not use raw nquads format
Browse files Browse the repository at this point in the history
  • Loading branch information
dennwc committed Dec 23, 2017
1 parent f0b409f commit 4107f2f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion appengine/appengine.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import (

var (
quadFile = ""
quadType = "cquad"
quadType = "nquads"
cpuprofile = ""
queryLanguage = "gizmo"
configFile = ""
Expand Down
2 changes: 1 addition & 1 deletion graph/graphtest/integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import (
)

const (
format = "cquad"
format = "nquads"
timeout = 300 * time.Second
)

Expand Down
4 changes: 1 addition & 3 deletions internal/load.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,8 @@ func QuadReaderFor(path, typ string) (quad.ReadCloser, error) {

var qr quad.ReadCloser
switch typ {
case "cquad":
case "cquad", "nquad": // legacy
qr = nquads.NewReader(r, false)
case "nquad":
qr = nquads.NewReader(r, true)
default:
var format *quad.Format
if typ == "" {
Expand Down

0 comments on commit 4107f2f

Please sign in to comment.