Destutter nquads
This commit is contained in:
parent
40f3363cde
commit
177059cc16
3 changed files with 20 additions and 20 deletions
|
|
@ -106,7 +106,7 @@ func Repl(ts graph.TripleStore, queryLanguage string, cfg *config.Config) {
|
|||
}
|
||||
if strings.HasPrefix(line, ":a") {
|
||||
var tripleStmt = line[3:]
|
||||
triple := nquads.ParseLineToTriple(tripleStmt)
|
||||
triple := nquads.Parse(tripleStmt)
|
||||
if triple == nil {
|
||||
fmt.Println("Not a valid triple.")
|
||||
line = ""
|
||||
|
|
@ -118,7 +118,7 @@ func Repl(ts graph.TripleStore, queryLanguage string, cfg *config.Config) {
|
|||
}
|
||||
if strings.HasPrefix(line, ":d") {
|
||||
var tripleStmt = line[3:]
|
||||
triple := nquads.ParseLineToTriple(tripleStmt)
|
||||
triple := nquads.Parse(tripleStmt)
|
||||
if triple == nil {
|
||||
fmt.Println("Not a valid triple.")
|
||||
line = ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue