Added a method to remove a literal predicate triples (typed and untyped)