Reset workspace between batches of offline rdf generation

Refactored out some commonality between the rdf generators.

Cleaned up some exception handling (not every import needs to be able
to throw a SQLException)