@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-text a grlc:grlc-query; dct:description "For the part page of one documentation paragraph: its current title and text, i.e. the newest version published by a member of the space maintaining the documentation resource (the page context)."; dct:license ; rdfs:label "Get the current text of a documentation paragraph"; grlc:endpoint ; grlc:sparql """prefix rdf: prefix dct: prefix np: prefix npa: prefix npx: prefix schema: prefix schemas: prefix gen: # The current text of ONE documentation paragraph, for the paragraph's own part page. # ?_resource_multi_iri is the paragraph IRI; ?__context_multi_iri the documentation resource # (auto-filled by Nanodash), whose maintaining space gates the authors. Same rules as the # topic-page query: member-signed only, newest version wins. select ?title ?content ?date (str(?np) 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 { ?np npa:hasValidSignatureForPublicKeyHash ?npPubkey ; dct:created ?date ; np:hasAssertion ?a . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?npPubkey . } } filter(contains(?memberPubkeys, ?npPubkey)) graph ?a { ?_resource_multi_iri rdf:type gen:Paragraph ; schema:title|schemas:title ?title ; gen:hasContent ?content . } filter not exists { graph npa:graph { ?np2 npa:hasValidSignatureForPublicKeyHash ?np2Pubkey ; dct:created ?date2 ; np:hasAssertion ?a2 . filter not exists { ?npx2 npx:invalidates ?np2 ; npa:hasValidSignatureForPublicKeyHash ?np2Pubkey . } } graph ?a2 { ?_resource_multi_iri rdf:type gen:Paragraph ; gen:hasContent ?content2 . } filter(?date2 > ?date) filter(contains(?memberPubkeys, ?np2Pubkey)) } }""" . } 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-text; 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 "eRBXCAwFDpu5bqNK876pKNnl9Ktz3Sba45+kNz/+Fg9Kp31ylR79/8C2HSBfcXnrzMFDRhK86UNkxHq1eeaJQFs9fF20ZU7cC7ev/pIQXmwqLMxVB980DWQVyvlbAxLiFTSmBIcMgm79d8nQCpiZMQUvz3bbLlAlT+vQELlraYOX1VJMiLVzW76iezkJ94KfqIsW8860eDgaes2gNQXaK4r50MI7YkX0wQdF6k1EtOlQNq2mpNggqWLH2hppARMOrCi8wvcJGrQ0s3OxRo5hKB66QKU+h9N9HJKf/qNhxgST+PfBBloL9kgi9sTD64tzi4WL6oRS9yl6u5K9mBt+1w=="; npx:hasSignatureTarget this:; npx:signedBy . }