Injector injector = Guice.createInjector(new ProjectModule(project), new ManchesterSyntaxParsingContextModule(action));
ManchesterSyntaxChangeGenerator changeGenerator = injector.getInstance(ManchesterSyntaxChangeGenerator.class);
try {
List<OWLOntologyChange> changeList = changeGenerator.generateChanges(action.getFrom(), action.getTo());
if(changeList.isEmpty()) {
return new CheckManchesterSyntaxFrameResult(ManchesterSyntaxFrameParseResult.UNCHANGED);
}
else {
return new CheckManchesterSyntaxFrameResult(ManchesterSyntaxFrameParseResult.CHANGED);
}
} catch (ParserException e) {
return new CheckManchesterSyntaxFrameResult(ManchesterSyntaxFrameParser.getParseError(e));
}
// ManchesterSyntaxFrameParser fromParser = injector.getInstance(ManchesterSyntaxFrameParser.class);
// Set<OntologyAxiomPair> fromPairs = fromParser.parse(action.getFrom());
// try {
// ManchesterSyntaxFrameParser toParser = injector.getInstance(ManchesterSyntaxFrameParser.class);