Exemple #1
0
 public IEnumerable <Triple> GetTriplesForSubject(INode subjectNode)
 {
     return(Asserted.Where(t => t.Item1.Equals(subjectNode))
            .Select(t => new Triple(t.Item1, t.Item2, t.Item3, t.Item4)));
 }
Exemple #2
0
 public IEnumerable <Triple> GetTriplesForSubject(Uri subjectUri)
 {
     return(Asserted.Where(x => x.Item1 is IUriNode && ((IUriNode)x.Item1).Uri.Equals(subjectUri))
            .Select(x => new Triple(x.Item1, x.Item2, x.Item3, x.Item4)));
 }