I need to return individuals for my query:
SELECT ?subject ?class
WHERE { ?subject rdfs:subClassOf ?class.
?class rdfs:comment "linear"@en}
But it works only with subclasses. Should I replace rdfs:subClassOf
on different operator?
Your query specifically asks for ?subjects that are subclasses of ?class (where ?class has the rdfs:comment "linear"@en). To retrieve instances of type ?class, you'd use
or, since SPARQL allows abbreviating rdf:type by a,