Skip to content

Commit

Permalink
Use cquads in the web UI data loader
Browse files Browse the repository at this point in the history
Fixes issue cayleygraph#106.
  • Loading branch information
kortschak committed Aug 9, 2014
1 parent 166ebb1 commit 9263b05
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions http/write.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"github.com/julienschmidt/httprouter"

"github.com/google/cayley/quad"
"github.com/google/cayley/quad/nquads"
"github.com/google/cayley/quad/cquads"
)

func ParseJsonToTripleList(jsonBody []byte) ([]quad.Quad, error) {
Expand Down Expand Up @@ -78,7 +78,8 @@ func (api *Api) ServeV1WriteNQuad(w http.ResponseWriter, r *http.Request, params
blockSize = int64(api.config.LoadSize)
}

dec := nquads.NewDecoder(formFile)
// TODO(kortschak) Make this configurable from the web UI.
dec := cquads.NewDecoder(formFile)

var (
n int
Expand Down

0 comments on commit 9263b05

Please sign in to comment.