this.offset = offset;
this.pageSize = limit;
if (acceptedHeader.isCompatible(MediaType.TEXT_HTML_TYPE)) {
if (fromStore != null) {
return Response.ok(new Viewable("index", this), MediaType.TEXT_HTML).build();
}
if (queryTerm == null && solrQuery == null) {
this.ontologies = new ArrayList<String>();
Set<UriRef> mGraphs = tcManager.listMGraphs();
Iterator<UriRef> it = mGraphs.iterator();
while (it.hasNext()) {
ontologyURI = it.next().getUnicodeString();
if (Constants.isGraphReserved(ontologyURI)) {
continue;
}
this.ontologies.add(ontologyURI);
}
return Response.ok(new Viewable("index", this), MediaType.TEXT_HTML).build();
} else {
ResponseBuilder rb = performSearch(queryTerm, solrQuery, jsonCons, ontologyURI, offset,
limit, MediaType.TEXT_HTML_TYPE);
addCORSOrigin(servletContext, rb, headers);
return rb.build();