public Model describe(Class cls) {
RDFMetaResource metaResource = this.session.getMetaRDFResource(cls);
if (metaResource == null) {
return JenaHelper.createModel();
} else {
ConstructQueryGenerator cqg = QueryGeneratorFactory.createConstructQueryGenerator();
cqg.visit(metaResource);
QueryCodeGenerator qcg = new QueryCodeGenerator();
qcg.visit(cqg.getQuery());
QueryExecutor qe = this.session.getQueryExecutor();
return qe.execConstruct(qcg.toString());
}
}