https://w3id.org/np/RAIPWrEI4v_zQbSexEGAoh91DtHS-TC15FsWvCjb1VOGs
.trig | .trig.txt | .jelly | .jelly.txt | .jsonld | .jsonld.txt | .nq | .nq.txt | .xml | .xml.txt
@prefix this: <https://w3id.org/np/RAIPWrEI4v_zQbSexEGAoh91DtHS-TC15FsWvCjb1VOGs> .
@prefix sub: <https://w3id.org/np/RAIPWrEI4v_zQbSexEGAoh91DtHS-TC15FsWvCjb1VOGs/> .
@prefix np: <http://www.nanopub.org/nschema#> .
@prefix grlc: <https://w3id.org/kpxl/grlc/> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix nt: <https://w3id.org/np/o/ntemplate/> .
@prefix npx: <http://purl.org/nanopub/x/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix prov: <http://www.w3.org/ns/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 <http://www.apache.org/licenses/LICENSE-2.0>;
rdfs:label "Get the current text of a documentation paragraph";
grlc:endpoint <https://w3id.org/np/l/nanopub-query-1.1/repo/full>;
grlc:sparql """prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix dct: <http://purl.org/dc/terms/>
prefix np: <http://www.nanopub.org/nschema#>
prefix npa: <http://purl.org/nanopub/admin/>
prefix npx: <http://purl.org/nanopub/x/>
prefix schema: <http://schema.org/>
prefix schemas: <https://schema.org/>
prefix gen: <https://w3id.org/kpxl/gen/terms/>
# 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 <https://w3id.org/np/l/nanopub-query-1.1/repo/spaces> {
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 <https://w3id.org/np/RAFJKwxgChOLOQ2UduMAT1bYf1VNaWIZYIPmTT3YvJ8y0/docs-bot> .
}
sub:pubinfo {
this: dct:created "2026-09-15T05:22:52Z"^^xsd:dateTime;
dct:creator <https://w3id.org/np/RAFJKwxgChOLOQ2UduMAT1bYf1VNaWIZYIPmTT3YvJ8y0/docs-bot>;
dct:license <https://creativecommons.org/licenses/by/4.0/>;
npx:embeds sub:get-docs-paragraph-text;
nt:wasCreatedFromProvenanceTemplate <https://w3id.org/np/RA7lSq6MuK_TIC6JMSHvLtee3lpLoZDOqLJCLXevnrPoU>;
nt:wasCreatedFromPubinfoTemplate <https://w3id.org/np/RA-N4_kFxcruvBTlo1yJv29E4SLOXsx5KO_th69PprMrA>,
<https://w3id.org/np/RACJ58Gvyn91LqCKIO9zu1eijDQIeEff28iyDrJgjSJF8>;
nt:wasCreatedFromTemplate <https://w3id.org/np/RAEFAt-QcFK0ZhqfvlsmS10BnzGJA0xwOICZXkO-ai87k> .
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 <https://w3id.org/np/RAFJKwxgChOLOQ2UduMAT1bYf1VNaWIZYIPmTT3YvJ8y0/docs-bot> .
}