Package org.semanticweb.owl.io

Examples of org.semanticweb.owl.io.OWLFunctionalSyntaxOntologyFormat


*/
public class OWLFunctionalSyntaxOWLParser extends AbstractOWLParser {

    public OWLOntologyFormat parse(OWLOntologyInputSource inputSource, OWLOntology ontology) throws OWLOntologyCreationException {
        try {
            OWLOntologyFormat format = new OWLFunctionalSyntaxOntologyFormat();
            OWLFunctionalSyntaxParser parser;
            if(inputSource.isReaderAvailable()) {
                parser = new OWLFunctionalSyntaxParser(inputSource.getReader());
            }
            else if(inputSource.isInputStreamAvailable()) {
View Full Code Here


     * @param ontologyFormat The desired ontology format.
     * @return <code>true</code> if this storer can store an ontology in the desired
     *         format.
     */
    public boolean canStoreOntology(OWLOntologyFormat ontologyFormat) {
        return ontologyFormat.equals(new OWLFunctionalSyntaxOntologyFormat());
    }
View Full Code Here

TOP

Related Classes of org.semanticweb.owl.io.OWLFunctionalSyntaxOntologyFormat

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.