Package org.semanticweb.owlapi.util.mansyntax

Examples of org.semanticweb.owlapi.util.mansyntax.ManchesterOWLSyntaxParser


        checker = entityChecker;
    }

    @Override
    public OWLAxiom parse(String expression) {
        ManchesterOWLSyntaxParser parser = new ManchesterOWLSyntaxParserImpl(
                new OWLAPIConfigProvider(), dataFactory);
        parser.setOWLEntityChecker(checker);
        parser.setStringToParse(expression);
        return parser.parseAxiom();
    }
View Full Code Here


                    }
                    lineCount++;
                }
                String s = sb.toString();
                assert s != null;
                ManchesterOWLSyntaxParser parser = new ManchesterOWLSyntaxParserImpl(
                        new OWLAPIConfigProvider(), ontology
                                .getOWLOntologyManager().getOWLDataFactory());
                parser.setOntologyLoaderConfiguration(configuration);
                parser.setStringToParse(s);
                format = parser.parseOntology(ontology);
            } finally {
                if (br != null) {
                    br.close();
                }
            }
View Full Code Here

        this.checker = checkNotNull(checker);
    }

    @Override
    public OWLClassExpression parse(String expression) {
        ManchesterOWLSyntaxParser parser = new ManchesterOWLSyntaxParserImpl(
                new OWLAPIConfigProvider(), dataFactory);
        parser.setOWLEntityChecker(checker);
        parser.setStringToParse(expression);
        return parser.parseClassExpression();
    }
View Full Code Here

    }

    @Nonnull
    @Override
    public Set<OntologyAxiomPair> parse(String expression) {
        ManchesterOWLSyntaxParser parser = new ManchesterOWLSyntaxParserImpl(
                new OWLAPIConfigProvider(), dataFactory);
        parser.setOWLEntityChecker(checker);
        parser.setStringToParse(expression);
        return parser.parseClassFrameEOF();
    }
View Full Code Here

     * @throws ParserException
     *         parser exception
     */
    public Set<OntologyAxiomPair> parseManchesterExpressionFrames(
            @Nonnull String expression) {
        ManchesterOWLSyntaxParser parser = createParser(expression);
        return parser.parseFrames();
    }
View Full Code Here

     * @throws ParserException
     *         parser exception
     */
    public OWLClassExpression parseManchesterExpression(
            @Nonnull String expression) {
        ManchesterOWLSyntaxParser parser = createParser(expression);
        return parser.parseClassExpression();
    }
View Full Code Here

    private ManchesterOWLSyntaxParser createParser(@Nonnull String expression) {
        if (disposed.get()) {
            throw new OWLRuntimeException(
                    "Illegal State: Trying to use an disposed instance.");
        }
        ManchesterOWLSyntaxParser parser = new ManchesterOWLSyntaxParserImpl(
                new OWLAPIConfigProvider(), dataFactory);
        parser.setStringToParse(expression);
        parser.setOWLEntityChecker(entityChecker);
        LOG.info("parsing: {}", expression);
        return parser;
    }
View Full Code Here

TOP

Related Classes of org.semanticweb.owlapi.util.mansyntax.ManchesterOWLSyntaxParser

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.