@gilbert
To get the labels of subclasses of a specific class in SPARQL, you can use the following query:
1 2 3 4 5 |
SELECT ?subClassLabel WHERE { ?subClass rdfs:subClassOf <http://example.org/YourSpecificClass> . ?subClass rdfs:label ?subClassLabel . } |
In this query, replace <http://example.org/YourSpecificClass>
with the URI of the specific class for which you want to retrieve the subclasses' labels.
This query will retrieve the labels of all subclasses of the specified class. You can further customize this query to retrieve additional information or filter the results based on your specific requirements.