Package org.semanticweb.owlapi.util

Examples of org.semanticweb.owlapi.util.SimpleIRIMapper


        //System.out.println("Debugging ontology: " + ontologyCounter);
        if (debuggingOntology != null) {
            owlOntologyManager.removeOntology(debuggingOntology);
        }
        IRI iri = createIRI();
        SimpleIRIMapper mapper = new SimpleIRIMapper(iri, iri);
        owlOntologyManager.addIRIMapper(mapper);
        debuggingOntology = owlOntologyManager.createOntology(iri);
        owlOntologyManager.removeIRIMapper(mapper);
        List<OWLOntologyChange> changes = new ArrayList<OWLOntologyChange>();
        for (OWLAxiom ax : debuggingAxioms) {
View Full Code Here


        //System.out.println("Debugging ontology: " + ontologyCounter);
        if (debuggingOntology != null) {
            owlOntologyManager.removeOntology(debuggingOntology);
        }
        IRI iri = createIRI();
        SimpleIRIMapper mapper = new SimpleIRIMapper(iri, iri);
        owlOntologyManager.addIRIMapper(mapper);
        debuggingOntology = owlOntologyManager.createOntology(iri);
        owlOntologyManager.removeIRIMapper(mapper);
        List<OWLOntologyChange> changes = new ArrayList<OWLOntologyChange>();
        for (OWLAxiom ax : debuggingAxioms) {
View Full Code Here

    }

    private void loadExistingNotesOntology() throws OWLOntologyCreationException {
        final OWLOntologyManager man = WebProtegeOWLManager.createOWLOntologyManager();
        man.addIRIMapper(new SimpleIRIMapper(CHANGES_ONTOLOGY_IRI,  getChangeOntologyDocumentIRI()));
        notesOntology = man.loadOntologyFromOntologyDocument(notesOntologyDocument);
    }
View Full Code Here

            OWLOntologyManager mgr = OWLManager.createOWLOntologyManager();
            // FIXME : awful, remove as soon as we can
            URL u = getClass().getResource("/rmi.owl");
            OWLOntologyIRIMapper mapper1, mapper2;
            try {
                mapper1 = new SimpleIRIMapper(
                        IRI.create("http://ontologydesignpatterns.org/ont/iks/kres/rmi.owl"), IRI.create(u));
                mapper2 = new SimpleIRIMapper(
                        IRI.create("http://ontologydesignpatterns.org/ont/iks/kres/rmi_config.owl"),
                        IRI.create(getClass().getResource("/META-INF/conf/rmi_config.owl")));
                // mapper = new AutoIRIMapper(new File(u.toURI()), true);
                mgr.addIRIMapper(mapper1);
                mgr.addIRIMapper(mapper2);
View Full Code Here

TOP

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

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.