More updates to support RDF output

This appears to work across a broad set of things, but i would still consider this very much a work in progress.