public IEnumerable <ObjectVariants> GetTriplesWithPredicateObject(ObjectVariants predicate, ObjectVariants obj) { int pred = (((OV_iriint)predicate)).code; var objVar = (((ObjectVariants)obj)); var key_triple = new PO_Pair(pred, objVar); IEnumerable <PaEntry> entities = po_ind.GetAllByKey(key_triple); return(entities .Select(entry => entry.Get()) .Cast <object[]>() .Select(row => ng.GetCoded((int)((object[])row[1])[0]))); }
public IEnumerable <ObjectVariants> GetTriplesWithSubjectObject(ObjectVariants subject, ObjectVariants obj) { int ssubj = (((OV_iriint)subject)).code; var objVar = (((ObjectVariants)obj)); var key_triple = new PO_Pair(ssubj, objVar); IEnumerable <PaEntry> entities = so_ind.GetAllByKey(key_triple); return(entities .Select(entry => entry.Get()) .Cast <object[]>() .Select(row => ng.GetCoded((int)((object[])row[1])[1]))); }