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