@DefaultValue("false") @QueryParam("merge") boolean merge,
@Context UriInfo uriInfo,
@Context HttpHeaders headers) {
OntologySpace space = scope.getCustomSpace();
IRI prefix = IRI.create(getPublicBaseUri() + "ontonet/ontology/");
OWLOntology o = space.export(OWLOntology.class, merge, prefix);
ResponseBuilder rb = Response.ok(o);
addCORSOrigin(servletContext, rb, headers);
return rb.build();
}