https://w3id.org/np/RAZ4KV5V_rs4YGSxTzFLBvzH85RfccXCnsEaWDwQgz6x4/Head
https://w3id.org/np/RAZ4KV5V_rs4YGSxTzFLBvzH85RfccXCnsEaWDwQgz6x4
http://www.nanopub.org/nschema#hasAssertion
https://w3id.org/np/RAZ4KV5V_rs4YGSxTzFLBvzH85RfccXCnsEaWDwQgz6x4/assertion
https://w3id.org/np/RAZ4KV5V_rs4YGSxTzFLBvzH85RfccXCnsEaWDwQgz6x4
http://www.nanopub.org/nschema#hasProvenance
https://w3id.org/np/RAZ4KV5V_rs4YGSxTzFLBvzH85RfccXCnsEaWDwQgz6x4/provenance
https://w3id.org/np/RAZ4KV5V_rs4YGSxTzFLBvzH85RfccXCnsEaWDwQgz6x4
http://www.nanopub.org/nschema#hasPublicationInfo
https://w3id.org/np/RAZ4KV5V_rs4YGSxTzFLBvzH85RfccXCnsEaWDwQgz6x4/pubinfo
https://w3id.org/np/RAZ4KV5V_rs4YGSxTzFLBvzH85RfccXCnsEaWDwQgz6x4
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.nanopub.org/nschema#Nanopublication
https://w3id.org/np/RAZ4KV5V_rs4YGSxTzFLBvzH85RfccXCnsEaWDwQgz6x4/assertion
https://w3id.org/np/RAZ4KV5V_rs4YGSxTzFLBvzH85RfccXCnsEaWDwQgz6x4/get-docs-paragraph-text
http://purl.org/dc/terms/description
The newest member-signed version of one documentation paragraph, for its own page. If that version marks the paragraph as removed, the row is a removal notice with the reason, and the edit and remove actions are hidden.
https://w3id.org/np/RAZ4KV5V_rs4YGSxTzFLBvzH85RfccXCnsEaWDwQgz6x4/get-docs-paragraph-text
http://purl.org/dc/terms/license
http://www.apache.org/licenses/LICENSE-2.0
https://w3id.org/np/RAZ4KV5V_rs4YGSxTzFLBvzH85RfccXCnsEaWDwQgz6x4/get-docs-paragraph-text
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
https://w3id.org/kpxl/grlc/grlc-query
https://w3id.org/np/RAZ4KV5V_rs4YGSxTzFLBvzH85RfccXCnsEaWDwQgz6x4/get-docs-paragraph-text
http://www.w3.org/2000/01/rdf-schema#label
Get the current text of a documentation paragraph
https://w3id.org/np/RAZ4KV5V_rs4YGSxTzFLBvzH85RfccXCnsEaWDwQgz6x4/get-docs-paragraph-text
https://w3id.org/kpxl/grlc/endpoint
https://w3id.org/np/l/nanopub-query-1.1/repo/full
https://w3id.org/np/RAZ4KV5V_rs4YGSxTzFLBvzH85RfccXCnsEaWDwQgz6x4/get-docs-paragraph-text
https://w3id.org/kpxl/grlc/sparql
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
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. When the newest version is a
# removal (typed gen:DeactivatedParagraph, optionally with a reason in rdfs:comment), the row
# is a removal notice instead, and the edit and remove actions are hidden (blank ?override_target
# and ?remove_target; ?remove_target otherwise carries the paragraph IRI for the remove action).
select ?title ?content ?date (if(?type = gen:DeactivatedParagraph, "", str(?np)) as ?override_target) (if(?type = gen:DeactivatedParagraph, "", str(?_resource_multi_iri)) as ?remove_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 ?type .
optional { ?_resource_multi_iri schema:title|schemas:title ?title0 . }
optional { ?_resource_multi_iri gen:hasContent ?content0 . }
optional { ?_resource_multi_iri rdfs:comment ?reason . }
}
values ?type { gen:Paragraph gen:DeactivatedParagraph }
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 ?type2 . }
values ?type2 { gen:Paragraph gen:DeactivatedParagraph }
filter(?date2 > ?date)
filter(contains(?memberPubkeys, ?np2Pubkey))
}
# coalesce rather than if(): RDF4J evaluates both branches of if(), and an unbound variable there is an error
bind(coalesce(?title0, "Removed paragraph") as ?title)
bind(coalesce(?content0, concat("<p><em>This paragraph has been removed", coalesce(concat(": ", ?reason), ""), ".</em> Earlier versions are listed in the version history below and can be restored from there.</p>")) as ?content)
}
https://w3id.org/np/RAZ4KV5V_rs4YGSxTzFLBvzH85RfccXCnsEaWDwQgz6x4/provenance
https://w3id.org/np/RAZ4KV5V_rs4YGSxTzFLBvzH85RfccXCnsEaWDwQgz6x4/assertion
http://www.w3.org/ns/prov#wasAttributedTo
https://w3id.org/np/RAFJKwxgChOLOQ2UduMAT1bYf1VNaWIZYIPmTT3YvJ8y0/docs-bot
https://w3id.org/np/RAZ4KV5V_rs4YGSxTzFLBvzH85RfccXCnsEaWDwQgz6x4/pubinfo
https://w3id.org/np/RAZ4KV5V_rs4YGSxTzFLBvzH85RfccXCnsEaWDwQgz6x4
http://purl.org/dc/terms/created
2026-09-16T15:13:47Z
https://w3id.org/np/RAZ4KV5V_rs4YGSxTzFLBvzH85RfccXCnsEaWDwQgz6x4
http://purl.org/dc/terms/creator
https://w3id.org/np/RAFJKwxgChOLOQ2UduMAT1bYf1VNaWIZYIPmTT3YvJ8y0/docs-bot
https://w3id.org/np/RAZ4KV5V_rs4YGSxTzFLBvzH85RfccXCnsEaWDwQgz6x4
http://purl.org/dc/terms/license
https://creativecommons.org/licenses/by/4.0/
https://w3id.org/np/RAZ4KV5V_rs4YGSxTzFLBvzH85RfccXCnsEaWDwQgz6x4
http://purl.org/nanopub/x/embeds
https://w3id.org/np/RAZ4KV5V_rs4YGSxTzFLBvzH85RfccXCnsEaWDwQgz6x4/get-docs-paragraph-text
https://w3id.org/np/RAZ4KV5V_rs4YGSxTzFLBvzH85RfccXCnsEaWDwQgz6x4
http://purl.org/nanopub/x/supersedes
https://w3id.org/np/RAIPWrEI4v_zQbSexEGAoh91DtHS-TC15FsWvCjb1VOGs
https://w3id.org/np/RAZ4KV5V_rs4YGSxTzFLBvzH85RfccXCnsEaWDwQgz6x4
https://w3id.org/np/o/ntemplate/wasCreatedFromProvenanceTemplate
https://w3id.org/np/RA7lSq6MuK_TIC6JMSHvLtee3lpLoZDOqLJCLXevnrPoU
https://w3id.org/np/RAZ4KV5V_rs4YGSxTzFLBvzH85RfccXCnsEaWDwQgz6x4
https://w3id.org/np/o/ntemplate/wasCreatedFromPubinfoTemplate
https://w3id.org/np/RA-N4_kFxcruvBTlo1yJv29E4SLOXsx5KO_th69PprMrA
https://w3id.org/np/RAZ4KV5V_rs4YGSxTzFLBvzH85RfccXCnsEaWDwQgz6x4
https://w3id.org/np/o/ntemplate/wasCreatedFromPubinfoTemplate
https://w3id.org/np/RACJ58Gvyn91LqCKIO9zu1eijDQIeEff28iyDrJgjSJF8
https://w3id.org/np/RAZ4KV5V_rs4YGSxTzFLBvzH85RfccXCnsEaWDwQgz6x4
https://w3id.org/np/o/ntemplate/wasCreatedFromTemplate
https://w3id.org/np/RAEFAt-QcFK0ZhqfvlsmS10BnzGJA0xwOICZXkO-ai87k
https://w3id.org/np/RAZ4KV5V_rs4YGSxTzFLBvzH85RfccXCnsEaWDwQgz6x4/sig
http://purl.org/nanopub/x/hasAlgorithm
RSA
https://w3id.org/np/RAZ4KV5V_rs4YGSxTzFLBvzH85RfccXCnsEaWDwQgz6x4/sig
http://purl.org/nanopub/x/hasPublicKey
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAl8cMusqtNyKA6UIsi3f7BAcZmHQXWxU0qk0PLsboMWQxYrGBfGgHTgRHJrBRxL+Zn9kJHKVmz2smDcjCBptXi/OwWy80gjsx+Pbe6IWz3zFPWF1UoFIKfPnC0slV67CQgdM853zW7Bmk9/uflCtK4EtZKmPdRGtUHVC7DTVvDBMDzLRGdE2KCBVN29EbM5GGVNvijYbaZQ9OFQPBkQshayqSIyGRr6rreJdkrRVLIzu3uuAjKYydaeXZWSN2JLnVBwrClKUxaEdCwhb5nXpMtKOMD+R+LgaXLeJUWM8BdRSYnta9ZqI5pHY4y3v+eW7J+HHeTvRbHvlik+Z4hFUXmQIDAQAB
https://w3id.org/np/RAZ4KV5V_rs4YGSxTzFLBvzH85RfccXCnsEaWDwQgz6x4/sig
http://purl.org/nanopub/x/hasSignature
kvBmDEj6exKvsmZX0FlYlhEzTA+qnfntZmSpN/+tvglp0kaBPtTGKbQXC7/5r8KGJ2RuZ1porWFuXZG8QbsgLm06vHoLiZkOzdldPzdmFLDR7a9GZKh1O9DfUcVogeuqzu6Gr6pHzQAcDWsHTwLVcjWfPBaVWyZA7zt2RnDjuGzI8QTcZMX8RjX2OP9WgzklT5/S/npFTAEWuuQCF7EFjwZOTzJnWr8HcPr0+eTPM1tEao4LpOARIKcKEM7fodzeVNYpq6e/TDEbjJL46bX6Sth/fNzSd0JxePTs+tdn00AJ5mMRpAXr6bvAqp3t6rBXtuM5+xjWQzpelp461L6X0A==
https://w3id.org/np/RAZ4KV5V_rs4YGSxTzFLBvzH85RfccXCnsEaWDwQgz6x4/sig
http://purl.org/nanopub/x/hasSignatureTarget
https://w3id.org/np/RAZ4KV5V_rs4YGSxTzFLBvzH85RfccXCnsEaWDwQgz6x4
https://w3id.org/np/RAZ4KV5V_rs4YGSxTzFLBvzH85RfccXCnsEaWDwQgz6x4/sig
http://purl.org/nanopub/x/signedBy
https://w3id.org/np/RAFJKwxgChOLOQ2UduMAT1bYf1VNaWIZYIPmTT3YvJ8y0/docs-bot