@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-concepts-of-skos-scheme a grlc:grlc-query; dct:description "This query returns all concepts that specify to be in the given SKOS scheme. Of several versions of the same term, only the newest valid declaration is shown."; dct:license ; rdfs:label "Get the concepts of a SKOS scheme"; grlc:endpoint ; grlc:sparql """prefix owl: prefix rdfs: prefix dct: prefix np: prefix npa: prefix npx: prefix skos: select ?concept (coalesce(min(?label_u), min(?label_a)) as ?label) (group_concat(distinct str(?broader); separator=\" \") as ?broaderConcept_multi_iri) (coalesce(min(?definition_u), min(?definition_a)) as ?description) ?np (group_concat(distinct ?flagLabel; separator=\" \") as ?flags) where { values ?_scheme_multi_iri {} { select ?concept (iri(strafter(max(concat(str(?date0), \"|\", str(?np0))), \"|\")) as ?np) where { values ?_scheme_multi_iri {} graph npa:graph { ?np0 npx:hasNanopubType skos:Concept . ?np0 npa:hasValidSignatureForPublicKeyHash ?pubkey0 . filter not exists { ?npx0 npx:invalidates ?np0 ; npa:hasValidSignatureForPublicKeyHash ?pubkey0 . } ?np0 dct:created ?date0 . ?np0 npx:introduces ?concept . ?np0 np:hasAssertion ?a0 . } graph ?a0 { ?concept skos:inScheme ?_scheme_multi_iri . } } group by ?concept } graph npa:graph { ?np np:hasAssertion ?a . } optional { graph npa:graph { values (?flag ?flagLabel) { ( npx:ExampleNanopub \"Example\") ( npx:DraftNanopub \"Draft\") } ?np npx:hasNanopubType ?flag . } } graph ?a { ?concept skos:inScheme ?_scheme_multi_iri . optional { ?concept skos:broader ?broader . } optional { ?concept skos:prefLabel ?label_u . filter(lang(?label_u) = \"\") } optional { ?concept skos:prefLabel ?label_a . } optional { ?concept skos:definition ?definition_u . filter(lang(?definition_u) = \"\") } optional { ?concept skos:definition ?definition_a . } } } group by ?concept ?np order by lcase(str(coalesce(?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-concepts-of-skos-scheme; skos:changeNote "Show only the newest valid declaration of each concept (argmax by creation date, ties broken by nanopub URI); prefer untagged labels and definitions; merge several broader concepts into one multi-value column; 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 "cey1nz4VF+VHRlh8FjmMQSZW4V+YMVja4itZqvFy4zI956P5vb8TyPNyN0anewkGxtdA9MV7eudKJ2USXGv7VtGUDs3hC9wDyz4bivdxC4s428FYAQjwU2hebBv7gy1brPr79oz6ZnTyjdIbGwqpg5bsjqKvg27um7oEEfiEeak="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }