Rename triple entities were relevant

This commit is contained in:
kortschak 2014-08-27 21:27:01 +09:30
parent ddf8849e60
commit 443a091b72
62 changed files with 664 additions and 664 deletions

View file

@ -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 {