Display all classes included in this endpoint

Database: 
Statement: 

Display all classes stored in this endpoint A limit of results per page $number$ (e.g., 10)

Query: 
SELECT DISTINCT ?o WHERE { ?s rdf:type ?o . } limit ??number