func iteratedTriples(qs graph.TripleStore, it graph.Iterator) []quad.Quad { var res ordered for graph.Next(it) { res = append(res, qs.Quad(it.Result())) } sort.Sort(res) return res }
func iteratedTriples(qs graph.TripleStore, it graph.Iterator) []*quad.Quad { var res ordered for { val, ok := graph.Next(it) if !ok { break } res = append(res, qs.Quad(val)) } sort.Sort(res) return res }