/// <summary> /// Converts the Algebra back to a SPARQL Query. /// </summary> /// <returns></returns> public GraphPattern ToGraphPattern() { var p = new GraphPattern { IsUnion = true }; p.AddGraphPattern(Lhs.ToGraphPattern()); p.AddGraphPattern(Rhs.ToGraphPattern()); return(p); }