Package org.semanticweb.owlapi.util

Examples of org.semanticweb.owlapi.util.AutoIRIMapper


        // Directories are not allowed
        if (rootFile.isDirectory()) throw new IllegalArgumentException(
                "Could not determine root ontology : file " + rootFile
                        + " is a directory. Only regular files are allowed.");
        AutoIRIMapper mapper = new AutoIRIMapper(rootFile.getParentFile(), true);
        mgr.addIRIMapper(mapper);
        bindRootOntology(mgr.loadOntologyFromOntologyDocument(rootFile));
        // TODO : do we really want this to happen?
        bindPhysicalIri(IRI.create(rootFile));
        bindTriplesProvider(mgr);
View Full Code Here


    public void testKReSRuleStore() throws Exception {
        OWLOntology owlmodel = store.getOntology();
        log.debug("Path for default store config is " + blankStore.getFilePath());
        assertNotNull(owlmodel);
        OWLOntologyManager owlmanager = OWLManager.createOWLOntologyManager();
        owlmanager.addIRIMapper(new AutoIRIMapper(new File("./src/main/resources/RuleOntology/"), false));
        String src = "";
        try {
            src = "./src/main/resources/RuleOntology/TestKReSOntologyRules.owl";
            assertEquals(owlmodel, owlmanager.loadOntologyFromOntologyDocument(new File(src)));
        } catch (Exception e) {
View Full Code Here

TOP

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

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.