Package org.semanticweb.owl.model

Examples of org.semanticweb.owl.model.OWLOntologyFormat


    }


    public void render(OWLOntology ontology, Writer writer) throws OWLRendererException {
        ManchesterOWLSyntaxFrameRenderer ren = new ManchesterOWLSyntaxFrameRenderer(getOWLOntologyManager(), ontology, writer);
        OWLOntologyFormat format = getOWLOntologyManager().getOntologyFormat(ontology);
        if(format instanceof NamespaceOWLOntologyFormat) {
            NamespaceOWLOntologyFormat namespaceFormat = (NamespaceOWLOntologyFormat) format;
            Map<String, String> prefixMap = namespaceFormat.getNamespacesByPrefixMap();
            for(String prefix : prefixMap.keySet()) {
                ren.getNamespaceManager().setPrefix(prefix, prefixMap.get(prefix));
View Full Code Here


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

TOP

Related Classes of org.semanticweb.owl.model.OWLOntologyFormat

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.