chouette is a Java program for validating, exchanging and managing Public Transport reference data. Comes with a ruby web app : https://github.com/afimb/chouette2