// Alternatively, look for the a single resource of the right type.
try {
// Find the required description - the file can contain descriptions of many different types.
root = GraphUtils.findRootByType(spec, VocabTDB.tDatasetTDB) ;
if ( root == null )
throw new JenaException("Failed to find a suitable root") ;
} catch (TypeNotUniqueException ex)
{ throw new JenaException("Multiple types for: "+DatasetAssemblerVocab.tDataset) ; }
}
Dataset ds = (Dataset)Assembler.general.open(root) ;
}