public static void learn(String pathToFile, String base) throws OWLOntologyCreationException {
	VirtualFile vf = VirtualFile.fromRelativePath(pathToFile);
	File file = vf.getRealFile();
	manager = OWLManager.createOWLOntologyManager();
	factory = manager.getOWLDataFactory();
	ontology = manager.loadOntologyFromOntologyDocument(file);
	System.out.println("Loaded ontology: " + ontology.getOntologyID());
	reasonerFactory = new ElkReasonerFactory();
	reasoner = reasonerFactory.createReasoner(ontology);
	reasoner.precomputeInferences(InferenceType.CLASS_HIERARCHY);
	Brain.base = base;
	shortFormProvider = new SimpleShortFormProvider();
	Set<OWLOntology> importsClosure = ontology.getImportsClosure();
	bidiShortFormProvider = new BidirectionalShortFormProviderAdapter(manager, importsClosure, shortFormProvider);
	entityChecker = new ShortFormEntityChecker(bidiShortFormProvider);
    }