On to TDB. How are named graphs mapped into the Jena API?
Does creating a named Ontology model (OntModel m = ModelFactory.createOntologyModel(spec, maker, baseModel);) do the job? THis page (http://openjena.org/wiki/TDB/Datasets) comes close but does quite answer the question.
