Esempio n. 1
0
        public IEnumerable <TripleOVStruct> GetTriplesWithSubject(ObjectVariants subj)
        {
            return(ps_index.GetRecordsWithKey2(((OV_iriint)subj).code)
                   .Cast <object[]>()

                   .Select(rec => new TripleOVStruct(null, NodeGenerator.GetUri(rec[1]), rec[2].ToOVariant(NodeGenerator))));
        }
 public IEnumerable <Tuple <string, string> > GetDirects(int subject)
 {
     return(ps_index.GetRecordsWithKey2(subject).Select(entry =>
     {
         var row = (object[])entry;
         return Tuple.Create(predicatemapping.Keys.ElementAt((int)row[1]), (string)row[2]);
     }));
 }
Esempio n. 3
0
 public IEnumerable <TripleOVStruct> GetTriplesWithObject(ObjectVariants obj)
 {
     return(po_index.GetRecordsWithKey2(obj)
            .Cast <object[]>()
            .Select(rec => new TripleOVStruct(NodeGenerator.GetUri(rec[0]), NodeGenerator.GetUri(rec[1]), obj)));
 }