https://w3id.org/np/RAlx-XcsvU94hLRI1e3esbKB7iE6PsreGhMoa_N9NW_80/Head https://w3id.org/np/RAlx-XcsvU94hLRI1e3esbKB7iE6PsreGhMoa_N9NW_80 http://www.nanopub.org/nschema#hasAssertion https://w3id.org/np/RAlx-XcsvU94hLRI1e3esbKB7iE6PsreGhMoa_N9NW_80/assertion https://w3id.org/np/RAlx-XcsvU94hLRI1e3esbKB7iE6PsreGhMoa_N9NW_80 http://www.nanopub.org/nschema#hasProvenance https://w3id.org/np/RAlx-XcsvU94hLRI1e3esbKB7iE6PsreGhMoa_N9NW_80/provenance https://w3id.org/np/RAlx-XcsvU94hLRI1e3esbKB7iE6PsreGhMoa_N9NW_80 http://www.nanopub.org/nschema#hasPublicationInfo https://w3id.org/np/RAlx-XcsvU94hLRI1e3esbKB7iE6PsreGhMoa_N9NW_80/pubinfo https://w3id.org/np/RAlx-XcsvU94hLRI1e3esbKB7iE6PsreGhMoa_N9NW_80 http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://www.nanopub.org/nschema#Nanopublication https://w3id.org/np/RAlx-XcsvU94hLRI1e3esbKB7iE6PsreGhMoa_N9NW_80/assertion https://w3id.org/np/RAlx-XcsvU94hLRI1e3esbKB7iE6PsreGhMoa_N9NW_80/get-use-cases-with-examples http://purl.org/dc/terms/description 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. https://w3id.org/np/RAlx-XcsvU94hLRI1e3esbKB7iE6PsreGhMoa_N9NW_80/get-use-cases-with-examples http://purl.org/dc/terms/license http://www.apache.org/licenses/LICENSE-2.0 https://w3id.org/np/RAlx-XcsvU94hLRI1e3esbKB7iE6PsreGhMoa_N9NW_80/get-use-cases-with-examples http://www.w3.org/1999/02/22-rdf-syntax-ns#type https://w3id.org/kpxl/grlc/grlc-query https://w3id.org/np/RAlx-XcsvU94hLRI1e3esbKB7iE6PsreGhMoa_N9NW_80/get-use-cases-with-examples http://www.w3.org/2000/01/rdf-schema#label Get use cases with examples for a resource https://w3id.org/np/RAlx-XcsvU94hLRI1e3esbKB7iE6PsreGhMoa_N9NW_80/get-use-cases-with-examples https://w3id.org/kpxl/grlc/endpoint https://w3id.org/np/l/nanopub-query-1.1/repo/type/ef33d58aa05742fd5ddfb6453ced7e84a57e0e6cf2f9546f4c1ea6b910f4f384 https://w3id.org/np/RAlx-XcsvU94hLRI1e3esbKB7iE6PsreGhMoa_N9NW_80/get-use-cases-with-examples https://w3id.org/kpxl/grlc/sparql prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix dct: <http://purl.org/dc/terms/> prefix schema: <http://schema.org/> prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix gen: <https://w3id.org/kpxl/gen/terms/> prefix nt: <https://w3id.org/np/o/ntemplate/> select ?usecase ?usecase_label ?comment ?topics_multi_iri ?topics_label_multi ?examples_multi_iri ?examples_label_multi (?usecase as ?usecase_ref) ?np ("^" as ?np_label) where { { select ?usecase (iri(strafter(max(concat(str(?date), " ", str(?np0))), " ")) as ?np) where { graph npa:graph { ?np0 npx:hasNanopubType gen:UseCase . ?np0 npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npi npx:invalidates ?np0 ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } filter not exists { ?np0 npx:hasNanopubType npx:ExampleNanopub . } ?np0 dct:created ?date . ?np0 np:hasAssertion ?a0 . } values ?_entity_multi_iri {} graph ?a0 { ?usecase rdfs:subClassOf gen:UseCase . ?usecase gen:isUseCaseFor ?_entity_multi_iri . } } group by ?usecase } graph npa:graph { ?np np:hasAssertion ?a . } optional { graph ?a { ?usecase rdfs:label ?usecase_label . } } optional { graph ?a { ?usecase rdfs:comment ?comment . } } optional { { select ?usecase ?np (group_concat(str(?topic); separator=" ") as ?topics_multi_iri) (group_concat(?tlabel_esc; separator="\n") as ?topics_label_multi) where { { select ?usecase ?np ?topic (coalesce(min(?tl0), str(?topic)) as ?tlabel) where { graph npa:graph { ?np npx:hasNanopubType gen:UseCase . ?np np:hasAssertion ?a2 . ?np np:hasPublicationInfo ?pi2 . } graph ?a2 { ?usecase rdfs:subClassOf gen:UseCase . ?usecase schema:about ?topic . } optional { graph ?pi2 { ?topic nt:hasLabelFromApi ?tl0 . } } } group by ?usecase ?np ?topic } bind(replace(replace(str(?tlabel), "\\\\", "\\\\\\\\"), "[\r\n]+", "\\\\n") as ?tlabel_esc) } group by ?usecase ?np } } optional { { select ?usecase (group_concat(str(?example); separator=" ") as ?examples_multi_iri) (group_concat(?exlabel_esc; separator="\n") as ?examples_label_multi) where { { select ?usecase ?example (coalesce(min(?exl), str(?example)) as ?exlabel) where { graph npa:graph { ?exnp npx:hasNanopubType gen:UseCase . ?exnp npa:hasValidSignatureForPublicKeyHash ?expubkey . filter not exists { ?exnpi npx:invalidates ?exnp ; npa:hasValidSignatureForPublicKeyHash ?expubkey . } filter not exists { ?exnp npx:hasNanopubType npx:ExampleNanopub . } ?exnp np:hasAssertion ?exa . } graph ?exa { ?example rdf:type ?usecase . } optional { graph ?exa { ?example rdfs:label ?exl . } } } group by ?usecase ?example } bind(replace(replace(str(?exlabel), "\\\\", "\\\\\\\\"), "[\r\n]+", "\\\\n") as ?exlabel_esc) } group by ?usecase } } } order by ?usecase_label https://w3id.org/np/RAlx-XcsvU94hLRI1e3esbKB7iE6PsreGhMoa_N9NW_80/provenance https://w3id.org/np/RAlx-XcsvU94hLRI1e3esbKB7iE6PsreGhMoa_N9NW_80/assertion http://www.w3.org/ns/prov#wasAttributedTo https://orcid.org/0000-0002-1267-0234 https://w3id.org/np/RAlx-XcsvU94hLRI1e3esbKB7iE6PsreGhMoa_N9NW_80/pubinfo https://orcid.org/0000-0002-1267-0234 http://xmlns.com/foaf/0.1/name Tobias Kuhn https://w3id.org/np/RAlx-XcsvU94hLRI1e3esbKB7iE6PsreGhMoa_N9NW_80 http://purl.org/dc/terms/created 2026-07-30T10:52:40Z https://w3id.org/np/RAlx-XcsvU94hLRI1e3esbKB7iE6PsreGhMoa_N9NW_80 http://purl.org/dc/terms/creator https://orcid.org/0000-0002-1267-0234 https://w3id.org/np/RAlx-XcsvU94hLRI1e3esbKB7iE6PsreGhMoa_N9NW_80 http://purl.org/dc/terms/license https://creativecommons.org/licenses/by/4.0/ https://w3id.org/np/RAlx-XcsvU94hLRI1e3esbKB7iE6PsreGhMoa_N9NW_80 http://purl.org/nanopub/x/embeds https://w3id.org/np/RAlx-XcsvU94hLRI1e3esbKB7iE6PsreGhMoa_N9NW_80/get-use-cases-with-examples https://w3id.org/np/RAlx-XcsvU94hLRI1e3esbKB7iE6PsreGhMoa_N9NW_80 http://purl.org/nanopub/x/supersedes https://w3id.org/np/RAshaGtE12y55vNDf58vCOAVR-q_3IABzbpaxZzWubf8A https://w3id.org/np/RAlx-XcsvU94hLRI1e3esbKB7iE6PsreGhMoa_N9NW_80 http://www.w3.org/2000/01/rdf-schema#label Get use cases with examples for a resource https://w3id.org/np/RAlx-XcsvU94hLRI1e3esbKB7iE6PsreGhMoa_N9NW_80 https://w3id.org/np/o/ntemplate/wasCreatedFromProvenanceTemplate https://w3id.org/np/RA7lSq6MuK_TIC6JMSHvLtee3lpLoZDOqLJCLXevnrPoU https://w3id.org/np/RAlx-XcsvU94hLRI1e3esbKB7iE6PsreGhMoa_N9NW_80 https://w3id.org/np/o/ntemplate/wasCreatedFromPubinfoTemplate https://w3id.org/np/RACJ58Gvyn91LqCKIO9zu1eijDQIeEff28iyDrJgjSJF8 https://w3id.org/np/RAlx-XcsvU94hLRI1e3esbKB7iE6PsreGhMoa_N9NW_80 https://w3id.org/np/o/ntemplate/wasCreatedFromPubinfoTemplate https://w3id.org/np/RAoTD7udB2KtUuOuAe74tJi1t3VzK0DyWS7rYVAq1GRvw https://w3id.org/np/RAlx-XcsvU94hLRI1e3esbKB7iE6PsreGhMoa_N9NW_80 https://w3id.org/np/o/ntemplate/wasCreatedFromPubinfoTemplate https://w3id.org/np/RAukAcWHRDlkqxk7H2XNSegc1WnHI569INvNr-xdptDGI https://w3id.org/np/RAlx-XcsvU94hLRI1e3esbKB7iE6PsreGhMoa_N9NW_80 https://w3id.org/np/o/ntemplate/wasCreatedFromTemplate https://w3id.org/np/RAEFAt-QcFK0ZhqfvlsmS10BnzGJA0xwOICZXkO-ai87k https://w3id.org/np/RAlx-XcsvU94hLRI1e3esbKB7iE6PsreGhMoa_N9NW_80/sig http://purl.org/nanopub/x/hasAlgorithm RSA https://w3id.org/np/RAlx-XcsvU94hLRI1e3esbKB7iE6PsreGhMoa_N9NW_80/sig http://purl.org/nanopub/x/hasPublicKey MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB https://w3id.org/np/RAlx-XcsvU94hLRI1e3esbKB7iE6PsreGhMoa_N9NW_80/sig http://purl.org/nanopub/x/hasSignature Ajf9f53WMMUownI86Sl/ZSQd4evs7BSMKB77Lzd6X8N1CQXuM/QkacLsecreUy1h1UGuDI6KAitYQthBnYcp8dQjH60Q5JZsQhOoeDGBKA2M+7DXATQ5omrJyuMwsFWZZ43hITN+wpVxu9rvspTAtAumeSR9WR4q3A7/pKqv8po= https://w3id.org/np/RAlx-XcsvU94hLRI1e3esbKB7iE6PsreGhMoa_N9NW_80/sig http://purl.org/nanopub/x/hasSignatureTarget https://w3id.org/np/RAlx-XcsvU94hLRI1e3esbKB7iE6PsreGhMoa_N9NW_80 https://w3id.org/np/RAlx-XcsvU94hLRI1e3esbKB7iE6PsreGhMoa_N9NW_80/sig http://purl.org/nanopub/x/signedBy https://orcid.org/0000-0002-1267-0234