Find diseases acording to a given class

Database: 
Statement: 

Given a protein class $class$ (i.e. cancer), it list a maximum number of $limit$ diseases of that class

Query: 
SELECT distinct ?name WHERE { ?s rdf:type diseasome:diseases . ?s diseasome:name ?name . ?s diseasome:class ?o . filter (regex(str(?o), ??class ,"i")) } LIMIT ??limit
Tags: