Beispiel #1
0
        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());
        }
Beispiel #2
0
        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)));
        }