Beispiel #1
0
        public IEnumerable <ObjectVariants> GetTriplesWithSubjectPredicate(ObjectVariants subj, ObjectVariants pred)
        {
            return(ps_index.GetRecordsWithKeys(((OV_iriint)pred).code, ((OV_iriint)subj).code)
                   .Cast <object[]>()

                   .Select(rec => rec[2].ToOVariant(NodeGenerator)));
        }
 public IEnumerable <string> GetObject(int subject, string predicate)
 {
     return(ps_index.GetRecordsWithKeys(predicatemapping[predicate], subject)
            .Cast <object[]>()
            .Select(o => o[2])
            .Cast <string>());
 }
Beispiel #3
0
        public IEnumerable <ObjectVariants> GetSubjects(ObjectVariants pred, ObjectVariants obj)
        {
            return(po_index.GetRecordsWithKeys(((OV_iriint)pred).code, obj)
                   .Cast <object[]>()

                   .Select(rec => NodeGenerator.GetUri(rec[0])));
        }
 public IEnumerable <int> GetSubjects(string predicate, string @object)
 {
     return(po_index.GetRecordsWithKeys(predicatemapping[predicate], @object)
            .Cast <object[]>()
            .Select(o => o[0])
            .Cast <int>());
 }