@prefix this: . @prefix sub: . @prefix np: . @prefix grlc: . @prefix dct: . @prefix nt: . @prefix npx: . @prefix xsd: . @prefix rdfs: . @prefix prov: . sub:Head { this: a np:Nanopublication; np:hasAssertion sub:assertion; np:hasProvenance sub:provenance; np:hasPublicationInfo sub:pubinfo . } sub:assertion { sub:get-docs-paragraph-examples a grlc:grlc-query; dct:description "Nanopublications linked as examples to one documentation paragraph 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."; dct:license ; rdfs:label "Get the example nanopublications of a documentation paragraph"; grlc:endpoint ; grlc:sparql """prefix rdfs: prefix dct: prefix np: prefix npa: prefix npx: prefix gen: # Example nanopublications linked to ONE documentation paragraph by a member of the # documentation's space ( gen:isRelevantFor ). ?np is the EXAMPLE, so a # nanopublication-set view renders the examples themselves; the link nanopublication travels in # ?override_target for the per-row edit action. select ?note ?date (str(?linkNp) as ?override_target) ?np (\"^\" as ?np_label) where { service { select (group_concat(?mpk; separator=\" \") as ?memberPubkeys) where { graph npa:graph { npa:thisRepo npa:hasCurrentSpaceState ?stateG . } values ?__context_multi_iri {} graph ?stateG { ?__context_multi_iri npa:isMaintainedBy? ?space . ?ri a gen:RoleInstantiation ; npa:forSpace ?space ; npa:forAgent ?agent ; npa:hasRoleType ?roleType . ?acct a npa:AccountState ; npa:agent ?agent ; npa:pubkey ?mpk . } filter(?roleType in (gen:AdminRole, gen:MaintainerRole, gen:MemberRole)) } } values ?_resource_multi_iri {} graph npa:graph { ?linkNp npa:hasValidSignatureForPublicKeyHash ?npPubkey ; dct:created ?date ; np:hasAssertion ?a . filter not exists { ?npx npx:invalidates ?linkNp ; npa:hasValidSignatureForPublicKeyHash ?npPubkey . } } filter(contains(?memberPubkeys, ?npPubkey)) graph ?a { ?np gen:isRelevantFor ?_resource_multi_iri . optional { ?np rdfs:comment ?note . } } } order by ?date""" . } sub:provenance { sub:assertion prov:wasAttributedTo . } sub:pubinfo { this: dct:created "2026-09-15T05:22:52Z"^^xsd:dateTime; dct:creator ; dct:license ; npx:embeds sub:get-docs-paragraph-examples; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate , ; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAl8cMusqtNyKA6UIsi3f7BAcZmHQXWxU0qk0PLsboMWQxYrGBfGgHTgRHJrBRxL+Zn9kJHKVmz2smDcjCBptXi/OwWy80gjsx+Pbe6IWz3zFPWF1UoFIKfPnC0slV67CQgdM853zW7Bmk9/uflCtK4EtZKmPdRGtUHVC7DTVvDBMDzLRGdE2KCBVN29EbM5GGVNvijYbaZQ9OFQPBkQshayqSIyGRr6rreJdkrRVLIzu3uuAjKYydaeXZWSN2JLnVBwrClKUxaEdCwhb5nXpMtKOMD+R+LgaXLeJUWM8BdRSYnta9ZqI5pHY4y3v+eW7J+HHeTvRbHvlik+Z4hFUXmQIDAQAB"; npx:hasSignature "A0M6C1XG9q/kZqXyC1Fw5k7vITJ5XWW+OsWNnzGvTb5/JtvaCbKiYlf5aozvNLgdxsWvTRcLFuPVt/XfFxe/gFensOVbIJL6Xoc/ziyeLvTF9MqCclibxpcyDcHJq7FkbqEBJWPgClafT6t0jp1jDd/PfPEUx/eNGK7EPrTFA3YVNTWo/yjbeakCXVmL6fQhPgPwJmkB3WH4oNESoFyFZYjEl5wM9oznDXG9uQT/0eW8Waq9D9WNGi3UW3EgrI/Q1DQ1rXlt8dDz8f4Kn4sqmcZj085vGNxkCoUpib6dl8WGRkHIqC5Z1iSXdFNxxtLoqmMgwaaRGcFC+KGMXkW1sA=="; npx:hasSignatureTarget this:; npx:signedBy . }