public Triple SPI(string s, string p, int index) { var sh = KeySegments.GetNameSKeySubjectPredicateIndex(Name, s, p, index); var t = _db.Get(sh); return(t?.ToTriple()); }
public Triple SPI(string s, string p, int index) { var sh = KeySegments.GetNameSKeySubjectPredicateIndex(Name, s, p, index); var toBytes = _db.Get(sh); if (toBytes == null) { return(null); } var to = toBytes.ToTripleObject(); return(new Triple(s, p, new TripleObject(to.Value, to.IsID, to.TokenType, index))); }