func quadValueToNative(v quad.Value) interface{} { out := v.Native() if nv, ok := out.(quad.Value); ok && v == nv { return quad.StringOf(v) } return out }
func (qs *store) ValueOf(s quad.Value) graph.Value { if s == nil { return nil } for i := range qs.data { if s.String() == qs.valueAt(i).String() { return Int64Node(i) } } return nil }