To be able to show the class hierarchy the dataset needs to contain rdfs:subClassOf relations and the classes involved need to have instances. See our documentation for more information.