Formats PHP arrays, PHP objects and RDF triples in a lot of formats.
If you want to start working on The DataTank, start here! This is an installer, a config reader and a router.
Did you ever try to get the current URI in PHP? This should do the trick.