. . . . "This query returns the use cases (categories) declared for a given entity (a Space or Maintained Resource), together with the concrete examples attached to each use case. Only the latest valid version of each use case definition is considered." . . . "Get use cases with examples for a resource" . . "prefix rdf: \nprefix rdfs: \nprefix dct: \nprefix schema: \nprefix np: \nprefix npa: \nprefix npx: \nprefix gen: \nprefix nt: \n\nselect ?usecase ?usecase_label ?comment ?topic ?topic_label ?examples_multi_iri ?examples_label_multi (?usecase as ?usecase_ref) ?np (\"^\" as ?np_label) where {\n {\n select ?usecase (iri(strafter(max(concat(str(?date), \" \", str(?np0))), \" \")) as ?np) where {\n graph npa:graph {\n ?np0 npx:hasNanopubType gen:UseCase .\n ?np0 npa:hasValidSignatureForPublicKeyHash ?pubkey .\n filter not exists { ?npi npx:invalidates ?np0 ; npa:hasValidSignatureForPublicKeyHash ?pubkey . }\n filter not exists { ?np0 npx:hasNanopubType npx:ExampleNanopub . }\n ?np0 dct:created ?date .\n ?np0 np:hasAssertion ?a0 .\n }\n values ?_entity_multi_iri {}\n graph ?a0 {\n ?usecase rdfs:subClassOf gen:UseCase .\n ?usecase gen:isUseCaseFor ?_entity_multi_iri .\n }\n } group by ?usecase\n }\n graph npa:graph {\n ?np np:hasAssertion ?a .\n ?np np:hasPublicationInfo ?pi .\n }\n optional { graph ?a { ?usecase rdfs:label ?usecase_label . } }\n optional { graph ?a { ?usecase rdfs:comment ?comment . } }\n optional { graph ?a { ?usecase schema:about ?topic . } }\n optional { graph ?pi { ?topic nt:hasLabelFromApi ?topic_label . } }\n optional {\n {\n select ?usecase (group_concat(str(?example); separator=\" \") as ?examples_multi_iri)\n (group_concat(?exlabel_esc; separator=\"\\n\") as ?examples_label_multi) where {\n {\n select ?usecase ?example (coalesce(min(?exl), str(?example)) as ?exlabel) where {\n graph npa:graph {\n ?exnp npx:hasNanopubType gen:UseCase .\n ?exnp npa:hasValidSignatureForPublicKeyHash ?expubkey .\n filter not exists { ?exnpi npx:invalidates ?exnp ; npa:hasValidSignatureForPublicKeyHash ?expubkey . }\n filter not exists { ?exnp npx:hasNanopubType npx:ExampleNanopub . }\n ?exnp np:hasAssertion ?exa .\n }\n graph ?exa { ?example rdf:type ?usecase . }\n optional { graph ?exa { ?example rdfs:label ?exl . } }\n } group by ?usecase ?example\n }\n bind(replace(replace(str(?exlabel), \"\\\\\\\\\", \"\\\\\\\\\\\\\\\\\"), \"[\\r\\n]+\", \"\\\\\\\\n\") as ?exlabel_esc)\n } group by ?usecase\n }\n }\n}\norder by ?usecase_label" . . "Tobias Kuhn" . "2026-07-30T10:35:13Z"^^ . . . . "Get use cases with examples for a resource" . . . . . . "RSA" . "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB" . "WFQft1mLmoCw99TGnVzbUrisEAqlsvMLbT/AcNa56tGFlSr9zfr7Oi6hsTGs2VwvIhzwAXQ6coiEiW9q58Uj9BZilniAhlMRuBM1xaMiZcnyGDl1HhFhpYucVe0+PnrTnXhj/r/Agt9GX9mZnlIADEJ86dW6mqUNBY1Say6Zf4M=" . . .