public IEnumerable <IDataObject> BindRdfDataObjects(IGraph graph)
        {
            var distinctSubjects = new System.Collections.Generic.HashSet <INode>();

            foreach (var t in graph.Triples)
            {
                distinctSubjects.Add(t.Subject);
            }
            return(distinctSubjects.Select(s =>
                                           MakeDataObject(s.ToString(),
                                                          graph.GetTriplesWithSubject(s).Select(t =>
                                                                                                MakeTriple(t.Subject, t.Predicate, t.Object)))));
        }
 public IEnumerable<IDataObject> BindRdfDataObjects(IGraph graph)
 {
     var distinctSubjects = new System.Collections.Generic.HashSet<INode>();
     foreach (var t in graph.Triples)
     {
         distinctSubjects.Add(t.Subject);
     }
     return distinctSubjects.Select(s =>
         MakeDataObject(s.ToString(),
             graph.GetTriplesWithSubject(s).Select(t =>
                 MakeTriple(t.Subject, t.Predicate, t.Object))));
 }