Examples of OWLOntologyDocumentTarget


Examples of org.semanticweb.owlapi.io.OWLOntologyDocumentTarget

                ontology);
            return ontology;
        }

        OWLOntology newOnt = null;
        OWLOntologyDocumentTarget tgt = new StringDocumentTarget();
        try {
            ontology.getOWLOntologyManager().saveOntology(ontology, tgt);

            newOnt = ontologyManager
                    .loadOntologyFromOntologyDocument(new StringDocumentSource(tgt.toString()));
        } catch (OWLOntologyStorageException e) {
            log.error("Failed to re-serialize ontology.", e);
        } catch (OWLOntologyCreationException e) {
            log.error("Failed to deserialize ontology.", e);
        }
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.