OntoTune: Ontology-Driven Self-training for Aligning Large Language Models