Rihar was a pupil of Anton Höller (ca. 1760-1826), As his successor (organist and choirmaster), he worked at the cathedral of Ljubljana until his death. He was regarded as an outstanding organist and organ improviser.
He was primarily known as a composer of church music (exhibitions, lamentations, hymns). He also published several collections of folk melodies and a wreath of four-part folk songs.