Namespace prefixes when rendering rdf

Fixes https://www.pivotaltracker.com/story/show/61500850, and adds tests for a feature that was accidentally dropped.