[ { "@id": "https://w3id.org/np/RA-YGf2uHpZKq7aLp4iWCzL2qaRlZ5B2APni1vIq08s4U/assertion", "@graph": [ { "@id": "https://w3id.org/np/RA-YGf2uHpZKq7aLp4iWCzL2qaRlZ5B2APni1vIq08s4U/get-docs-paragraph-examples", "http://purl.org/dc/terms/description": [ { "@value": "Nanopublications linked as examples to one documentation paragraph (gen:isExampleFor) by a member of the maintaining space. The np column is the example itself, so a nanopublication-set view renders the examples; the linking nanopublication is carried separately for editing." } ], "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 the example nanopublications of a documentation paragraph" } ], "https://w3id.org/kpxl/grlc/endpoint": [ { "@id": "https://w3id.org/np/l/nanopub-query-1.1/repo/full" } ], "https://w3id.org/kpxl/grlc/sparql": [ { "@value": "prefix rdfs: \nprefix dct: \nprefix np: \nprefix npa: \nprefix npx: \nprefix gen: \n\n# Example nanopublications linked to ONE documentation paragraph by a member of the\n# documentation's space ( gen:isExampleFor ). ?np is the EXAMPLE, so a\n# nanopublication-set view renders the examples themselves; the link nanopublication travels in\n# ?override_target for the per-row edit action.\nselect ?note ?date (str(?linkNp) as ?override_target) ?np (\"^\" as ?np_label) where {\n service {\n select (group_concat(?mpk; separator=\" \") as ?memberPubkeys) where {\n graph npa:graph { npa:thisRepo npa:hasCurrentSpaceState ?stateG . }\n values ?__context_multi_iri {}\n graph ?stateG {\n ?__context_multi_iri npa:isMaintainedBy? ?space .\n ?ri a gen:RoleInstantiation ; npa:forSpace ?space ; npa:forAgent ?agent ; npa:hasRoleType ?roleType .\n ?acct a npa:AccountState ; npa:agent ?agent ; npa:pubkey ?mpk .\n }\n filter(?roleType in (gen:AdminRole, gen:MaintainerRole, gen:MemberRole))\n }\n }\n values ?_resource_multi_iri {}\n graph npa:graph {\n ?linkNp npa:hasValidSignatureForPublicKeyHash ?npPubkey ; dct:created ?date ; np:hasAssertion ?a .\n filter not exists { ?npx npx:invalidates ?linkNp ; npa:hasValidSignatureForPublicKeyHash ?npPubkey . }\n }\n filter(contains(?memberPubkeys, ?npPubkey))\n graph ?a {\n ?np gen:isExampleFor ?_resource_multi_iri .\n optional { ?np rdfs:comment ?note . }\n }\n}\norder by ?date" } ] } ] }, { "@id": "https://w3id.org/np/RA-YGf2uHpZKq7aLp4iWCzL2qaRlZ5B2APni1vIq08s4U/Head", "@graph": [ { "@id": "https://w3id.org/np/RA-YGf2uHpZKq7aLp4iWCzL2qaRlZ5B2APni1vIq08s4U", "http://www.nanopub.org/nschema#hasAssertion": [ { "@id": "https://w3id.org/np/RA-YGf2uHpZKq7aLp4iWCzL2qaRlZ5B2APni1vIq08s4U/assertion" } ], "http://www.nanopub.org/nschema#hasProvenance": [ { "@id": "https://w3id.org/np/RA-YGf2uHpZKq7aLp4iWCzL2qaRlZ5B2APni1vIq08s4U/provenance" } ], "http://www.nanopub.org/nschema#hasPublicationInfo": [ { "@id": "https://w3id.org/np/RA-YGf2uHpZKq7aLp4iWCzL2qaRlZ5B2APni1vIq08s4U/pubinfo" } ], "@type": [ "http://www.nanopub.org/nschema#Nanopublication" ] } ] }, { "@id": "https://w3id.org/np/RA-YGf2uHpZKq7aLp4iWCzL2qaRlZ5B2APni1vIq08s4U/provenance", "@graph": [ { "@id": "https://w3id.org/np/RA-YGf2uHpZKq7aLp4iWCzL2qaRlZ5B2APni1vIq08s4U/assertion", "http://www.w3.org/ns/prov#wasAttributedTo": [ { "@id": "https://w3id.org/np/RAFJKwxgChOLOQ2UduMAT1bYf1VNaWIZYIPmTT3YvJ8y0/docs-bot" } ] } ] }, { "@id": "https://w3id.org/np/RA-YGf2uHpZKq7aLp4iWCzL2qaRlZ5B2APni1vIq08s4U/pubinfo", "@graph": [ { "@id": "https://w3id.org/np/RA-YGf2uHpZKq7aLp4iWCzL2qaRlZ5B2APni1vIq08s4U", "http://purl.org/dc/terms/created": [ { "@value": "2026-09-15T05:31:55Z", "@type": "http://www.w3.org/2001/XMLSchema#dateTime" } ], "http://purl.org/dc/terms/creator": [ { "@id": "https://w3id.org/np/RAFJKwxgChOLOQ2UduMAT1bYf1VNaWIZYIPmTT3YvJ8y0/docs-bot" } ], "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/RA-YGf2uHpZKq7aLp4iWCzL2qaRlZ5B2APni1vIq08s4U/get-docs-paragraph-examples" } ], "http://purl.org/nanopub/x/supersedes": [ { "@id": "https://w3id.org/np/RAOPGLUJYPNlBFjh_HbuBwe_Y5uFqDJNO4eSfQJEzkN7U" } ], "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/RA-N4_kFxcruvBTlo1yJv29E4SLOXsx5KO_th69PprMrA" }, { "@id": "https://w3id.org/np/RACJ58Gvyn91LqCKIO9zu1eijDQIeEff28iyDrJgjSJF8" }, { "@id": "https://w3id.org/np/RAoTD7udB2KtUuOuAe74tJi1t3VzK0DyWS7rYVAq1GRvw" } ], "https://w3id.org/np/o/ntemplate/wasCreatedFromTemplate": [ { "@id": "https://w3id.org/np/RAEFAt-QcFK0ZhqfvlsmS10BnzGJA0xwOICZXkO-ai87k" } ] }, { "@id": "https://w3id.org/np/RA-YGf2uHpZKq7aLp4iWCzL2qaRlZ5B2APni1vIq08s4U/sig", "http://purl.org/nanopub/x/hasAlgorithm": [ { "@value": "RSA" } ], "http://purl.org/nanopub/x/hasPublicKey": [ { "@value": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAl8cMusqtNyKA6UIsi3f7BAcZmHQXWxU0qk0PLsboMWQxYrGBfGgHTgRHJrBRxL+Zn9kJHKVmz2smDcjCBptXi/OwWy80gjsx+Pbe6IWz3zFPWF1UoFIKfPnC0slV67CQgdM853zW7Bmk9/uflCtK4EtZKmPdRGtUHVC7DTVvDBMDzLRGdE2KCBVN29EbM5GGVNvijYbaZQ9OFQPBkQshayqSIyGRr6rreJdkrRVLIzu3uuAjKYydaeXZWSN2JLnVBwrClKUxaEdCwhb5nXpMtKOMD+R+LgaXLeJUWM8BdRSYnta9ZqI5pHY4y3v+eW7J+HHeTvRbHvlik+Z4hFUXmQIDAQAB" } ], "http://purl.org/nanopub/x/hasSignature": [ { "@value": "PmrzYzYaxvLxdShzrPpR8etmW9jlV+fd8/V4pa9l51vs2rUzM54n+i0JXra6WgMTsHE4Maimp/ls5ouAaDG69ZIprm7R7lQvGZ2oXEN0nDYLZRXtATaJX4ugD0YefF6DpJlw/aoov5GL6u49G/M2U+qBvLbi4fzhHhttUS2YdeTev9Q2W0ZMuFSBV8HN84Nu6P13N/IUuVf3lHeKuG4FlXPgUtFUY+6bh4emZ6dF+UhqXWrDwhNvyarcrMG/88Jpr6gJS42CQnllfc3TFphfDeOuc4PxmORwewlKgbBuUapCVhIkPGVX55lu9Swu+T+ZD75YzFNZWYaeE3cOsTAbiA==" } ], "http://purl.org/nanopub/x/hasSignatureTarget": [ { "@id": "https://w3id.org/np/RA-YGf2uHpZKq7aLp4iWCzL2qaRlZ5B2APni1vIq08s4U" } ], "http://purl.org/nanopub/x/signedBy": [ { "@id": "https://w3id.org/np/RAFJKwxgChOLOQ2UduMAT1bYf1VNaWIZYIPmTT3YvJ8y0/docs-bot" } ] } ] } ]