@POST
@Consumes(value = {OWL_XML, FUNCTIONAL_OWL, MANCHESTER_OWL})
public Response storeOWLOntology(InputStream content, @Context HttpHeaders headers) {
long before = System.currentTimeMillis();
try {
OntologyInputSource<OWLOntology,OWLOntologyManager> src = new OntologyContentInputSource(content);
ontologyProvider.loadInStore(src.getRootOntology(), null, true);
} catch (OWLOntologyCreationException e) {
throw new WebApplicationException(e, INTERNAL_SERVER_ERROR);
}
log.debug("POST request for ontology addition completed in {} ms.",
(System.currentTimeMillis() - before));