return RDF/XML in lieu of suitable HTML representation for ontology classes and properties

This commit is contained in:
brianjlowe 2011-12-01 14:47:46 +00:00
parent d82f7a118f
commit e1c6ea5bcc

View file

@ -108,8 +108,12 @@ public class OntologyController extends VitroHttpServlet{
} catch (Throwable th) {
log.error("problem while checking accept header " , th);
}
return null;
}
//return null;
// Returning null would default to html in the calling method.
// But since we don't have a useful html representation yet,
// we're going to default to returning RDF/XML.
return new ContentType(RDFXML_MIMETYPE);
}
private void doRdf(HttpServletRequest req, HttpServletResponse res,