Yes, all this data is tagged and available in the OSM database. In many countries the tagging of the railway lines is very thorough and often uses publicly available data sources from the national railway infrastructure operator.
Interesting, I was wondering why the Rhaetian Railway was completely missing. Turns out it's tagged as "narrow gauge" railway[1], which doesn't seem to get picked up by OpenRailwayMap.
[1] http://wiki.openstreetmap.org/wiki/Tag:railway%3Dnarrow_gaug...
It would be very cool if someone combined this with open GTFS data and a public transport routing algorithm. Imagine having a "public transport" option in the list of routing services - just like Google Maps - but using free software/data and on a global scale.
It looks like Graphhopper introduced an algorithm for transport routing this year [0], although there are still performance improvements to be made. Project OSRM seems not to be interested in adding this feature for now.
OpenTripPlanner already exists:
http://www.opentripplanner.org
I've only played around with it but it seems very capable. It also has a pretty cool analysis tool that lets you see the changes in transit accessibility when a bus/train is removed, etc.
Correct there is only one OSM database feeding both this map and the main map on openstreetmap.org (and other maps).
It shows the power of open data. You can take the OSM database, and slice out the bits you want and only show what you want.
It seems to consist of a set of railway specialised tags, which exist within the OpenStreetMap database. OpenRailwayMap then runs their own tiling/rendering infrastructure to generate maps with a rail emphasis.
If I understand correctly, there is no split here, as the OSM database remains the "mother lode" of mapping information?