Ontology Code I am new in Ontology development, I need to get labels of all subclasses of Link to Image of Ontology a specific class. I have already tried many queries but none of them working. If anyone can help me Thanks. I have already tried the following query
SELECT ?subject ?object
WHERE {
?subject rdfs:subClassOf?object.
filter regex (?object ,"CSProjects","i").
}
SELECT ?cls ?clsLabel WHERE {
?cls rdfs:subClassOf <http://THE/URI/OF/YOUR/CLASS/CSProjects> ;
rdfs:label ?clsLabel
}
Note, this will only return the explicitly asserted subclasses if no reasoning is enabled in the SPARQL engine.