An ontology-based approach in the literary research: two case studies