Did Janis Joplin sing the song the rose the version that was also sung by Bette Middler?

No, Janis died long before 1979 when the film was released. The song was written for the film. It would have been a cool song for her to sing though and even better duet.