Package edu.stanford.bmir.protege.web.shared.frame

Examples of edu.stanford.bmir.protege.web.shared.frame.CheckManchesterSyntaxFrameResult


            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);
View Full Code Here

TOP

Related Classes of edu.stanford.bmir.protege.web.shared.frame.CheckManchesterSyntaxFrameResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.