Package org.semanticweb.owlapi.util

Examples of org.semanticweb.owlapi.util.OWLOntologyIRIChanger


                .createOntology(IRI("http://www.semanticweb.org/ontologies/ontC"));
        m.applyChange(new AddImport(importingOnt, m.getOWLDataFactory()
                .getOWLImportsDeclaration(
                        ont.getOntologyID().getOntologyIRI().get())));
        assertTrue(m.contains(oldIRI));
        OWLOntologyIRIChanger changer = new OWLOntologyIRIChanger(m);
        m.applyChanges(changer.getChanges(ont, newIRI));
        assertFalse(m.contains(oldIRI));
        assertTrue(m.contains(newIRI));
        assertTrue(m.getOntologies().contains(ont));
        assertTrue(m.getDirectImports(importingOnt).contains(ont));
        OWLOntology ontology = m.getOntology(newIRI);
View Full Code Here

TOP

Related Classes of org.semanticweb.owlapi.util.OWLOntologyIRIChanger

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.