LOGGER.debug("Class valid check {} ms ", (System.currentTimeMillis() - start));
}
start = System.currentTimeMillis();
RdfsClass aClass = theClass.getAnnotation(RdfsClass.class);
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("Got annotation in {} ms ", (System.currentTimeMillis() - start));
}
start = System.currentTimeMillis();
// this init should be handled by the static block in RdfGenerator, but if there is no annotation index,
// or RdfGenerator has not been referenced, the namespace stuff will not have been initialized. so we'll
// call this here as a backup.
RdfGenerator.addNamespaces(theClass);
QueryBuilder<ParsedTupleQuery> aQuery = QueryBuilderFactory.select("result").distinct()
.group().atom("result", RDF.TYPE, ValueFactoryImpl.getInstance().createURI(PrefixMapping.GLOBAL.uri(aClass.value()))).closeGroup();
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("Created query in {} ms ", (System.currentTimeMillis() - start));
}