Package edu.stanford.bmir.protege.web.server.mansyntax

Examples of edu.stanford.bmir.protege.web.server.mansyntax.ManchesterSyntaxFrameParser


    protected GetManchesterSyntaxFrameCompletionsResult execute(GetManchesterSyntaxFrameCompletionsAction action, OWLAPIProject project, ExecutionContext executionContext) {
        String syntax = action.getSyntax();
        int from = action.getFrom();
        String triggerText = syntax.substring(0, from) + "\u0000";
        Injector injector = Guice.createInjector(new ProjectModule(project), new ManchesterSyntaxParsingContextModule(action));
        ManchesterSyntaxFrameParser parser = injector.getInstance(ManchesterSyntaxFrameParser.class);
        try {
            parser.parse(triggerText);
        } catch (ParserException e) {
//            ManchesterOWLSyntaxTokenizer tokenizer = new ManchesterOWLSyntaxTokenizer(syntax);
//            List<ManchesterOWLSyntaxTokenizer.Token> tokens = tokenizer.tokenize();
//            ManchesterOWLSyntaxTokenizer.Token intersectingToken;
//            for(ManchesterOWLSyntaxTokenizer.Token token : tokens) {
View Full Code Here

TOP

Related Classes of edu.stanford.bmir.protege.web.server.mansyntax.ManchesterSyntaxFrameParser

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.