Examples of OWLFunctionalSyntaxOntologyFormat


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

Examples of org.semanticweb.owl.io.OWLFunctionalSyntaxOntologyFormat

     * @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

Examples of org.semanticweb.owlapi.io.OWLFunctionalSyntaxOntologyFormat

     * @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

Examples of org.semanticweb.owlapi.io.OWLFunctionalSyntaxOntologyFormat

      }
      Prefix();
    }
    Ontology();
    jj_consume_token(0);
        OWLFunctionalSyntaxOntologyFormat format = new OWLFunctionalSyntaxOntologyFormat();
        for(String pn : prefixMap.keySet()) {
            format.setPrefix(pn, prefixMap.get(pn));
        }
        {if (true) return format;}
    throw new Error("Missing return statement in function");
  }
View Full Code Here

Examples of org.semanticweb.owlapi.io.OWLFunctionalSyntaxOntologyFormat

                } catch (OWLOntologyStorageException e) {
                    log.error("Failed to store ontology for rendering.", e);
                }
            } else if (mediaType.toString().equals(KRFormat.FUNCTIONAL_OWL)) {
                try {
                    manager.saveOntology(ontology, new OWLFunctionalSyntaxOntologyFormat(), out);
                } catch (OWLOntologyStorageException e) {
                    log.error("Failed to store ontology for rendering.", e);
                }
            } else if (mediaType.toString().equals(KRFormat.TURTLE)) {
                try {
View Full Code Here

Examples of org.semanticweb.owlapi.io.OWLFunctionalSyntaxOntologyFormat

                    } catch (OWLOntologyStorageException e) {
                        log.error("Failed to store ontology for rendering.", e);
                    }
                } else if (mediaType.toString().equals(KRFormat.FUNCTIONAL_OWL)) {
                    try {
                        manager.saveOntology(ontology, new OWLFunctionalSyntaxOntologyFormat(), out);
                    } catch (OWLOntologyStorageException e) {
                        log.error("Failed to store ontology for rendering.", e);
                    }
                } else if (mediaType.toString().equals(KRFormat.TURTLE)) {
                    try {
View Full Code Here

Examples of org.semanticweb.owlapi.io.OWLFunctionalSyntaxOntologyFormat

                } catch (OWLOntologyStorageException e) {
                    log.error("Failed to store ontology for rendering.", e);
                }
            } else if (mediaType.toString().equals(KRFormat.FUNCTIONAL_OWL)) {
                try {
                    manager.saveOntology(ontology, new OWLFunctionalSyntaxOntologyFormat(), out);
                } catch (OWLOntologyStorageException e) {
                    log.error("Failed to store ontology for rendering.", e);
                }
            } else if (mediaType.toString().equals(KRFormat.TURTLE)) {
                try {
View Full Code Here

Examples of org.semanticweb.owlapi.io.OWLFunctionalSyntaxOntologyFormat

            OWLOntologyFormat format = null;
            if (RDF_XML_TYPE.equals(mediaType)) format = new RDFXMLOntologyFormat();
            else if (OWL_XML_TYPE.equals(mediaType)) format = new OWLXMLOntologyFormat();
            else if (MANCHESTER_OWL_TYPE.equals(mediaType)) format = new ManchesterOWLSyntaxOntologyFormat();
            else if (FUNCTIONAL_OWL_TYPE.equals(mediaType)) format = new OWLFunctionalSyntaxOntologyFormat();
            else if (TURTLE_TYPE.equals(mediaType) || X_TURTLE_TYPE.equals(mediaType)) format = new TurtleOntologyFormat();

            if (format != null) try {
                manager.saveOntology(ontology, format, out);
            } catch (OWLOntologyStorageException e) {
View Full Code Here

Examples of org.semanticweb.owlapi.io.OWLFunctionalSyntaxOntologyFormat

     * @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

Examples of org.semanticweb.owlapi.io.OWLFunctionalSyntaxOntologyFormat

      }
      Prefix();
    }
    Ontology();
    jj_consume_token(0);
        OWLFunctionalSyntaxOntologyFormat format = new OWLFunctionalSyntaxOntologyFormat();
        for(String pn : prefixMap.keySet()) {
            format.setPrefix(pn, prefixMap.get(pn));
        }
        return format;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.