if( PelletSparqlDawgTester.CLASSIFY_KB_IN_ADVANCE ) {
((PelletInfGraph) (model.getGraph())).getKB().classify();
}
DataSource dataset = DatasetFactory.create( model );
Collection<String> namedGraphURIs = useQueryGraphs
? query.getNamedGraphURIs()
: this.namedGraphURIs;
for( String graphURI : namedGraphURIs ) {
model = ModelFactory.createOntologyModel( PelletReasonerFactory.THE_SPEC );
FileManager.get().readModel( model, graphURI );
dataset.addNamedModel( graphURI, model );
}
return dataset;
}