Rename triple entities were relevant
This commit is contained in:
parent
ddf8849e60
commit
443a091b72
62 changed files with 664 additions and 664 deletions
|
|
@ -65,14 +65,14 @@ func (dec *Decoder) Unmarshal() (quad.Quad, error) {
|
|||
}
|
||||
dec.line = dec.line[:0]
|
||||
}
|
||||
triple, err := Parse(string(line))
|
||||
q, err := Parse(string(line))
|
||||
if err != nil {
|
||||
return quad.Quad{}, fmt.Errorf("failed to parse %q: %v", dec.line, err)
|
||||
}
|
||||
if !triple.IsValid() {
|
||||
if !q.IsValid() {
|
||||
return dec.Unmarshal()
|
||||
}
|
||||
return triple, nil
|
||||
return q, nil
|
||||
}
|
||||
|
||||
func unEscape(r []rune, isEscaped bool) string {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue