// 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);