https://w3id.org/np/RAxhCZ7pmNTI7m2NvPu2lYYjJqNwFCH5YCZTztyIZlzFM/Head
https://w3id.org/np/RAxhCZ7pmNTI7m2NvPu2lYYjJqNwFCH5YCZTztyIZlzFM
http://www.nanopub.org/nschema#hasAssertion
https://w3id.org/np/RAxhCZ7pmNTI7m2NvPu2lYYjJqNwFCH5YCZTztyIZlzFM/assertion
https://w3id.org/np/RAxhCZ7pmNTI7m2NvPu2lYYjJqNwFCH5YCZTztyIZlzFM
http://www.nanopub.org/nschema#hasProvenance
https://w3id.org/np/RAxhCZ7pmNTI7m2NvPu2lYYjJqNwFCH5YCZTztyIZlzFM/provenance
https://w3id.org/np/RAxhCZ7pmNTI7m2NvPu2lYYjJqNwFCH5YCZTztyIZlzFM
http://www.nanopub.org/nschema#hasPublicationInfo
https://w3id.org/np/RAxhCZ7pmNTI7m2NvPu2lYYjJqNwFCH5YCZTztyIZlzFM/pubinfo
https://w3id.org/np/RAxhCZ7pmNTI7m2NvPu2lYYjJqNwFCH5YCZTztyIZlzFM
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.nanopub.org/nschema#Nanopublication
https://w3id.org/np/RAxhCZ7pmNTI7m2NvPu2lYYjJqNwFCH5YCZTztyIZlzFM/assertion
https://w3id.org/np/RAxhCZ7pmNTI7m2NvPu2lYYjJqNwFCH5YCZTztyIZlzFM/get-docs-paragraph-related
http://purl.org/dc/terms/description
Paragraphs linked to one documentation paragraph with rdfs:seeAlso, in either direction, by a member of the maintaining space. Returns the related paragraph (as the paragraph column, so a paragraph view links its heading to that paragraph's page), its current title, and its chapter as declared for this documentation; the linking nanopublication is the row's source and edit target.
https://w3id.org/np/RAxhCZ7pmNTI7m2NvPu2lYYjJqNwFCH5YCZTztyIZlzFM/get-docs-paragraph-related
http://purl.org/dc/terms/license
http://www.apache.org/licenses/LICENSE-2.0
https://w3id.org/np/RAxhCZ7pmNTI7m2NvPu2lYYjJqNwFCH5YCZTztyIZlzFM/get-docs-paragraph-related
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
https://w3id.org/kpxl/grlc/grlc-query
https://w3id.org/np/RAxhCZ7pmNTI7m2NvPu2lYYjJqNwFCH5YCZTztyIZlzFM/get-docs-paragraph-related
http://www.w3.org/2000/01/rdf-schema#label
Get the paragraphs related to a documentation paragraph
https://w3id.org/np/RAxhCZ7pmNTI7m2NvPu2lYYjJqNwFCH5YCZTztyIZlzFM/get-docs-paragraph-related
https://w3id.org/kpxl/grlc/endpoint
https://w3id.org/np/l/nanopub-query-1.1/repo/full
https://w3id.org/np/RAxhCZ7pmNTI7m2NvPu2lYYjJqNwFCH5YCZTztyIZlzFM/get-docs-paragraph-related
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/>
# Paragraphs related to ONE documentation paragraph, in either direction of rdfs:seeAlso,
# where the link was published by a member of the maintaining space. ?paragraph is the
# related paragraph (so the heading links to its page), ?title its current title, ?content
# names its chapter, ?np is the linking nanopublication (also the edit target).
select ?paragraph ?title ?content ?date (str(?np) as ?override_target) ?np ("^" as ?np_label) where {
{
select ?paragraph ?np ?date (min(?t) as ?title) (min(?topicLabel) as ?chapterLabel) (min(str(?topic)) as ?chapter) 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 ?k ; dct:created ?date ; np:hasAssertion ?la .
filter not exists { ?x npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?k . }
}
filter(contains(?memberPubkeys, ?k))
graph ?la {
{ ?_resource_multi_iri rdfs:seeAlso ?paragraph . } union { ?paragraph rdfs:seeAlso ?_resource_multi_iri . }
}
filter(?paragraph != ?_resource_multi_iri)
# the related paragraph's current (newest member-signed) title and chapter
graph npa:graph {
?pnp npa:hasValidSignatureForPublicKeyHash ?pk ; dct:created ?pdate ; np:hasAssertion ?pa .
filter not exists { ?y npx:invalidates ?pnp ; npa:hasValidSignatureForPublicKeyHash ?pk . }
}
filter(contains(?memberPubkeys, ?pk))
graph ?pa { ?paragraph rdf:type gen:Paragraph ; schema:title|schemas:title ?t ; schema:about|schemas:about|schema:isPartOf|schemas:isPartOf ?topic . }
filter not exists {
graph npa:graph { ?pnp2 npa:hasValidSignatureForPublicKeyHash ?pk2 ; dct:created ?pdate2 ; np:hasAssertion ?pa2 .
filter not exists { ?z npx:invalidates ?pnp2 ; npa:hasValidSignatureForPublicKeyHash ?pk2 . } }
graph ?pa2 { ?paragraph rdf:type gen:Paragraph . }
filter(?pdate2 > ?pdate) filter(contains(?memberPubkeys, ?pk2))
}
# the chapter's title as declared for THIS documentation, not any label the anchor IRI has elsewhere
values ?__context_multi_iri {}
optional { graph ?tg { ?topic rdfs:label ?topicLabel ; gen:isRelevantFor ?__context_multi_iri . } }
} group by ?paragraph ?np ?date
}
bind(concat("<p>In chapter <a href=\"/part?id=", encode_for_uri(?chapter), "\">", coalesce(?chapterLabel, ?chapter), "</a></p>") as ?content)
}
order by ?title
https://w3id.org/np/RAxhCZ7pmNTI7m2NvPu2lYYjJqNwFCH5YCZTztyIZlzFM/provenance
https://w3id.org/np/RAxhCZ7pmNTI7m2NvPu2lYYjJqNwFCH5YCZTztyIZlzFM/assertion
http://www.w3.org/ns/prov#wasAttributedTo
https://w3id.org/np/RAFJKwxgChOLOQ2UduMAT1bYf1VNaWIZYIPmTT3YvJ8y0/docs-bot
https://w3id.org/np/RAxhCZ7pmNTI7m2NvPu2lYYjJqNwFCH5YCZTztyIZlzFM/pubinfo
https://w3id.org/np/RAxhCZ7pmNTI7m2NvPu2lYYjJqNwFCH5YCZTztyIZlzFM
http://purl.org/dc/terms/created
2026-09-15T07:56:31Z
https://w3id.org/np/RAxhCZ7pmNTI7m2NvPu2lYYjJqNwFCH5YCZTztyIZlzFM
http://purl.org/dc/terms/creator
https://w3id.org/np/RAFJKwxgChOLOQ2UduMAT1bYf1VNaWIZYIPmTT3YvJ8y0/docs-bot
https://w3id.org/np/RAxhCZ7pmNTI7m2NvPu2lYYjJqNwFCH5YCZTztyIZlzFM
http://purl.org/dc/terms/license
https://creativecommons.org/licenses/by/4.0/
https://w3id.org/np/RAxhCZ7pmNTI7m2NvPu2lYYjJqNwFCH5YCZTztyIZlzFM
http://purl.org/nanopub/x/embeds
https://w3id.org/np/RAxhCZ7pmNTI7m2NvPu2lYYjJqNwFCH5YCZTztyIZlzFM/get-docs-paragraph-related
https://w3id.org/np/RAxhCZ7pmNTI7m2NvPu2lYYjJqNwFCH5YCZTztyIZlzFM
http://purl.org/nanopub/x/supersedes
https://w3id.org/np/RAGbWrOWNAn3DBiyVWswIMrq2G5ZN2U-fRYcVHI8k7GwY
https://w3id.org/np/RAxhCZ7pmNTI7m2NvPu2lYYjJqNwFCH5YCZTztyIZlzFM
https://w3id.org/np/o/ntemplate/wasCreatedFromProvenanceTemplate
https://w3id.org/np/RA7lSq6MuK_TIC6JMSHvLtee3lpLoZDOqLJCLXevnrPoU
https://w3id.org/np/RAxhCZ7pmNTI7m2NvPu2lYYjJqNwFCH5YCZTztyIZlzFM
https://w3id.org/np/o/ntemplate/wasCreatedFromPubinfoTemplate
https://w3id.org/np/RA-N4_kFxcruvBTlo1yJv29E4SLOXsx5KO_th69PprMrA
https://w3id.org/np/RAxhCZ7pmNTI7m2NvPu2lYYjJqNwFCH5YCZTztyIZlzFM
https://w3id.org/np/o/ntemplate/wasCreatedFromPubinfoTemplate
https://w3id.org/np/RACJ58Gvyn91LqCKIO9zu1eijDQIeEff28iyDrJgjSJF8
https://w3id.org/np/RAxhCZ7pmNTI7m2NvPu2lYYjJqNwFCH5YCZTztyIZlzFM
https://w3id.org/np/o/ntemplate/wasCreatedFromPubinfoTemplate
https://w3id.org/np/RAoTD7udB2KtUuOuAe74tJi1t3VzK0DyWS7rYVAq1GRvw
https://w3id.org/np/RAxhCZ7pmNTI7m2NvPu2lYYjJqNwFCH5YCZTztyIZlzFM
https://w3id.org/np/o/ntemplate/wasCreatedFromTemplate
https://w3id.org/np/RAEFAt-QcFK0ZhqfvlsmS10BnzGJA0xwOICZXkO-ai87k
https://w3id.org/np/RAxhCZ7pmNTI7m2NvPu2lYYjJqNwFCH5YCZTztyIZlzFM/sig
http://purl.org/nanopub/x/hasAlgorithm
RSA
https://w3id.org/np/RAxhCZ7pmNTI7m2NvPu2lYYjJqNwFCH5YCZTztyIZlzFM/sig
http://purl.org/nanopub/x/hasPublicKey
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAl8cMusqtNyKA6UIsi3f7BAcZmHQXWxU0qk0PLsboMWQxYrGBfGgHTgRHJrBRxL+Zn9kJHKVmz2smDcjCBptXi/OwWy80gjsx+Pbe6IWz3zFPWF1UoFIKfPnC0slV67CQgdM853zW7Bmk9/uflCtK4EtZKmPdRGtUHVC7DTVvDBMDzLRGdE2KCBVN29EbM5GGVNvijYbaZQ9OFQPBkQshayqSIyGRr6rreJdkrRVLIzu3uuAjKYydaeXZWSN2JLnVBwrClKUxaEdCwhb5nXpMtKOMD+R+LgaXLeJUWM8BdRSYnta9ZqI5pHY4y3v+eW7J+HHeTvRbHvlik+Z4hFUXmQIDAQAB
https://w3id.org/np/RAxhCZ7pmNTI7m2NvPu2lYYjJqNwFCH5YCZTztyIZlzFM/sig
http://purl.org/nanopub/x/hasSignature
VrSQ1FneQ7FUpiKU9FL/LhiufrTEpPwKwhmrzChzbci1H6jamUTn/fRTP6RSqCBcnrRddp3Gdo7gwdP47mWIef72q+m6YAoouVA+CfdcQatqfFqHPxXxw5yhhhi+c8WNqsaoaDr6MoyAlOKFlS8BpQ/eiK4VsH7+6vEPwSLSVcu2aDhN1TJ00/VxXlDeX93ad8xyYBfRJ1bgnJcz31r2OKR7BLtq+sv78xGLap1MKr0aPhUw/5qUVvoW/A/RuTBqpqmXmkfrnpDUQdOFTIAKKr/OTYpNaTMeq6Di1h2nJ3UWFVM8/FUIGpWOBkNZ7VkQ1Oa1j48MjJYjqQWjPj1dww==
https://w3id.org/np/RAxhCZ7pmNTI7m2NvPu2lYYjJqNwFCH5YCZTztyIZlzFM/sig
http://purl.org/nanopub/x/hasSignatureTarget
https://w3id.org/np/RAxhCZ7pmNTI7m2NvPu2lYYjJqNwFCH5YCZTztyIZlzFM
https://w3id.org/np/RAxhCZ7pmNTI7m2NvPu2lYYjJqNwFCH5YCZTztyIZlzFM/sig
http://purl.org/nanopub/x/signedBy
https://w3id.org/np/RAFJKwxgChOLOQ2UduMAT1bYf1VNaWIZYIPmTT3YvJ8y0/docs-bot