String worksheetId = HistoryJsonUtil.getStringValue(
Arguments.worksheetId.name(), inputJson);
Worksheet worksheet = workspace.getWorksheet(worksheetId);
AutoOntology autoOntology = new AutoOntology(worksheet);
String path = ServletContextParameterMap
.getParameterValue(ContextParameter.PRELOADED_ONTOLOGY_DIRECTORY)
+ worksheet.getTitle() + ".owl";
try {
autoOntology.Build(path);
} catch (IOException e) {
logger.error("Error occured while creating auto model!", e);
}
OntologyManager ontMgr = workspace.getOntologyManager();