@prefix this: . @prefix sub: . @prefix np: . @prefix grlc: . @prefix dct: . @prefix nt: . @prefix npx: . @prefix xsd: . @prefix skos: . @prefix rdfs: . @prefix orcid: . @prefix prov: . @prefix foaf: . sub:Head { this: a np:Nanopublication; np:hasAssertion sub:assertion; np:hasProvenance sub:provenance; np:hasPublicationInfo sub:pubinfo . } sub:assertion { sub:get-classes-of-ontology-version a grlc:grlc-query; dct:description "This query returns all classes that are part of a given version of an ontology. Each class is listed once."; dct:license ; rdfs:label "Get the classes of an ontology version"; grlc:endpoint ; grlc:sparql """prefix owl: prefix rdfs: prefix dct: prefix np: prefix npa: prefix npx: prefix skos: prefix gen: select ?class (coalesce(min(?class_label_u), min(?class_label_a)) as ?class_label) (coalesce(min(?definition_u), min(?definition_a)) as ?description) (?termNp as ?np) (\"^\" as ?np_label) where { graph npa:graph { ?_ontologyVersionNp_iri npx:introduces ?ontologyVersion . ?_ontologyVersionNp_iri np:hasAssertion ?ontologyVersionNpA . } graph ?ontologyVersionNpA { ?ontologyVersion a owl:Ontology . ?ontologyVersion gen:hasContentIndex ?contentIndex . } graph npa:graph { ?contentIndex np:hasAssertion ?contentIndexA . } graph ?contentIndexA { ?contentIndex npx:includesElement ?termNp . } graph npa:graph { ?termNp npx:introduces ?class . ?termNp np:hasAssertion ?termNpA . } graph ?termNpA { ?class a owl:Class . optional { ?class rdfs:label ?class_label_u . filter(lang(?class_label_u) = \"\") } optional { ?class rdfs:label ?class_label_a . } optional { ?class skos:definition ?definition_u . filter(lang(?definition_u) = \"\") } optional { ?class skos:definition ?definition_a . } } } group by ?class ?termNp order by lcase(str(coalesce(?class_label, \"\")))""" . } sub:provenance { sub:assertion prov:wasAttributedTo orcid:0000-0002-1267-0234 . } sub:pubinfo { orcid:0000-0002-1267-0234 foaf:name "Tobias Kuhn" . this: dct:created "2026-11-11T10:23:37Z"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:embeds sub:get-classes-of-ontology-version; skos:changeNote "One row per class instead of one per label and definition variant (several languages); prefer untagged labels and definitions; sort labels case-insensitively."; prov:wasDerivedFrom ; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate , , , ; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB"; npx:hasSignature "pf0Q2w8s+nr0CgbrhwybbJnUu8BySr/H/6Zt+v38wL3s7IluuW0LISYcmPqcF8Bvp4dsSIe/aWZhzLcNGll3EvQ3KhrenI5QCP2axKb4ci1Aa9vU4PqAFMLIsIzn6eIYxQM3rDluHFEKN64gBdDbUTo1UmbLe4l1C9sDp72o/WI="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }