Pitfalls in AI-generated ontologies: Strategies for detection and mitigation