A graph-based approach for classifying OWL 2 QL ontologies