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

@ -26,13 +26,13 @@ import (
)
type Session struct {
ts graph.TripleStore
qs graph.QuadStore
debug bool
}
func NewSession(inputTripleStore graph.TripleStore) *Session {
func NewSession(qs graph.QuadStore) *Session {
var s Session
s.ts = inputTripleStore
s.qs = qs
return &s
}
@ -67,7 +67,7 @@ func (s *Session) InputParses(input string) (query.ParseResult, error) {
}
func (s *Session) ExecInput(input string, out chan interface{}, limit int) {
it := BuildIteratorTreeForQuery(s.ts, input)
it := BuildIteratorTreeForQuery(s.qs, input)
newIt, changed := it.Optimize()
if changed {
it = newIt
@ -112,7 +112,7 @@ func (s *Session) ToText(result interface{}) string {
if k == "$_" {
continue
}
out += fmt.Sprintf("%s : %s\n", k, s.ts.NameOf(tags[k]))
out += fmt.Sprintf("%s : %s\n", k, s.qs.NameOf(tags[k]))
}
return out
}