classes.sparql 402 B

123456789101112
  1. PREFIX owl: <http://www.w3.org/2002/07/owl#>
  2. PREFIX dc: <http://purl.org/dc/elements/1.1/>
  3. PREFIX cc: <http://creativecommons.org/ns#>
  4. PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>
  5. SELECT ?class ?comment ?label
  6. WHERE {
  7. ?class rdf:type owl:Class.
  8. OPTIONAL { ?class rdfs:comment ?comment.}
  9. OPTIONAL { ?label rdfs:label ?label.}
  10. OPTIONAL { ?class rdfs:subClassOf ?superclass.}
  11. } GROUP BY ?class