https://w3id.org/np/RAofhQTZQsoeVtAH_V8qTjeLYhT-IdbMN7inXKz0jLA1o/Head
https://w3id.org/np/RAofhQTZQsoeVtAH_V8qTjeLYhT-IdbMN7inXKz0jLA1o
http://www.nanopub.org/nschema#hasAssertion
https://w3id.org/np/RAofhQTZQsoeVtAH_V8qTjeLYhT-IdbMN7inXKz0jLA1o/assertion
https://w3id.org/np/RAofhQTZQsoeVtAH_V8qTjeLYhT-IdbMN7inXKz0jLA1o
http://www.nanopub.org/nschema#hasProvenance
https://w3id.org/np/RAofhQTZQsoeVtAH_V8qTjeLYhT-IdbMN7inXKz0jLA1o/provenance
https://w3id.org/np/RAofhQTZQsoeVtAH_V8qTjeLYhT-IdbMN7inXKz0jLA1o
http://www.nanopub.org/nschema#hasPublicationInfo
https://w3id.org/np/RAofhQTZQsoeVtAH_V8qTjeLYhT-IdbMN7inXKz0jLA1o/pubinfo
https://w3id.org/np/RAofhQTZQsoeVtAH_V8qTjeLYhT-IdbMN7inXKz0jLA1o
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.nanopub.org/nschema#Nanopublication
https://w3id.org/np/RAofhQTZQsoeVtAH_V8qTjeLYhT-IdbMN7inXKz0jLA1o/assertion
https://w3id.org/np/RAofhQTZQsoeVtAH_V8qTjeLYhT-IdbMN7inXKz0jLA1o/get-docs-paragraph-versions
http://purl.org/dc/terms/description
Every member-signed version of one documentation paragraph, newest first, with the current one marked. Removals (versions typed gen:DeactivatedParagraph) are listed with their reason; any earlier version can be restored, which also undoes a removal.
https://w3id.org/np/RAofhQTZQsoeVtAH_V8qTjeLYhT-IdbMN7inXKz0jLA1o/get-docs-paragraph-versions
http://purl.org/dc/terms/license
http://www.apache.org/licenses/LICENSE-2.0
https://w3id.org/np/RAofhQTZQsoeVtAH_V8qTjeLYhT-IdbMN7inXKz0jLA1o/get-docs-paragraph-versions
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
https://w3id.org/kpxl/grlc/grlc-query
https://w3id.org/np/RAofhQTZQsoeVtAH_V8qTjeLYhT-IdbMN7inXKz0jLA1o/get-docs-paragraph-versions
http://www.w3.org/2000/01/rdf-schema#label
Get the versions of a documentation paragraph
https://w3id.org/np/RAofhQTZQsoeVtAH_V8qTjeLYhT-IdbMN7inXKz0jLA1o/get-docs-paragraph-versions
https://w3id.org/kpxl/grlc/endpoint
https://w3id.org/np/l/nanopub-query-1.1/repo/full
https://w3id.org/np/RAofhQTZQsoeVtAH_V8qTjeLYhT-IdbMN7inXKz0jLA1o/get-docs-paragraph-versions
https://w3id.org/kpxl/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/>
prefix foaf: <http://xmlns.com/foaf/0.1/>
# Every member-signed version of ONE documentation paragraph, newest first, with the current
# version marked. A row's nanopublication introduces the paragraph, so opening an older row in
# override mode republishes its content as the newest version: that is the "restore" action.
# ?restore_target is blank on the current row, which hides the button there. A removal is a
# version typed gen:DeactivatedParagraph (optionally with a reason in rdfs:comment): it is
# listed as removed, offers no restore itself, and restoring an earlier version undoes it.
select ?date ?creator ?creator_label ?title ?current (if(?isCurrent || ?removed, "", str(?np)) as ?restore_target) ?np ("^" as ?np_label) where {
{
select ?np ?date ?creator ?type (min(?title0) as ?title1) (min(?reason) as ?reason1) (max(?cname) as ?creator_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 ; np:hasPublicationInfo ?pi .
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 rdfs:comment ?reason . }
}
values ?type { gen:Paragraph gen:DeactivatedParagraph }
graph ?pi { ?np dct:creator ?creator . }
optional { graph ?anyg { ?creator foaf:name ?cname . } }
} group by ?np ?date ?creator ?type
}
{
select (max(?d) as ?maxDate) where {
service <https://w3id.org/np/l/nanopub-query-1.1/repo/spaces> {
select (group_concat(?mpk2; separator=" ") as ?memberPubkeys2) where {
graph npa:graph { npa:thisRepo npa:hasCurrentSpaceState ?stateG2 . }
values ?__context_multi_iri {}
graph ?stateG2 {
?__context_multi_iri npa:isMaintainedBy? ?space2 .
?ri2 a gen:RoleInstantiation ; npa:forSpace ?space2 ; npa:forAgent ?agent2 ; npa:hasRoleType ?roleType2 .
?acct2 a npa:AccountState ; npa:agent ?agent2 ; npa:pubkey ?mpk2 .
}
filter(?roleType2 in (gen:AdminRole, gen:MaintainerRole, gen:MemberRole))
}
}
values ?_resource_multi_iri {}
graph npa:graph {
?n npa:hasValidSignatureForPublicKeyHash ?k ; dct:created ?d ; np:hasAssertion ?aa .
filter not exists { ?x npx:invalidates ?n ; npa:hasValidSignatureForPublicKeyHash ?k . }
}
filter(contains(?memberPubkeys2, ?k))
graph ?aa { ?_resource_multi_iri rdf:type ?t . }
values ?t { gen:Paragraph gen:DeactivatedParagraph }
}
}
bind(?type = gen:DeactivatedParagraph as ?removed)
bind(coalesce(?title1, concat("🗑 removed", coalesce(concat(": ", ?reason1), ""))) as ?title)
bind(?date = ?maxDate as ?isCurrent)
bind(if(?isCurrent, "✓ current", "") as ?current)
}
order by desc(?date)
https://w3id.org/np/RAofhQTZQsoeVtAH_V8qTjeLYhT-IdbMN7inXKz0jLA1o/provenance
https://w3id.org/np/RAofhQTZQsoeVtAH_V8qTjeLYhT-IdbMN7inXKz0jLA1o/assertion
http://www.w3.org/ns/prov#wasAttributedTo
https://w3id.org/np/RAFJKwxgChOLOQ2UduMAT1bYf1VNaWIZYIPmTT3YvJ8y0/docs-bot
https://w3id.org/np/RAofhQTZQsoeVtAH_V8qTjeLYhT-IdbMN7inXKz0jLA1o/pubinfo
https://w3id.org/np/RAofhQTZQsoeVtAH_V8qTjeLYhT-IdbMN7inXKz0jLA1o
http://purl.org/dc/terms/created
2026-09-16T15:13:48Z
https://w3id.org/np/RAofhQTZQsoeVtAH_V8qTjeLYhT-IdbMN7inXKz0jLA1o
http://purl.org/dc/terms/creator
https://w3id.org/np/RAFJKwxgChOLOQ2UduMAT1bYf1VNaWIZYIPmTT3YvJ8y0/docs-bot
https://w3id.org/np/RAofhQTZQsoeVtAH_V8qTjeLYhT-IdbMN7inXKz0jLA1o
http://purl.org/dc/terms/license
https://creativecommons.org/licenses/by/4.0/
https://w3id.org/np/RAofhQTZQsoeVtAH_V8qTjeLYhT-IdbMN7inXKz0jLA1o
http://purl.org/nanopub/x/embeds
https://w3id.org/np/RAofhQTZQsoeVtAH_V8qTjeLYhT-IdbMN7inXKz0jLA1o/get-docs-paragraph-versions
https://w3id.org/np/RAofhQTZQsoeVtAH_V8qTjeLYhT-IdbMN7inXKz0jLA1o
http://purl.org/nanopub/x/supersedes
https://w3id.org/np/RAe0--dN9JzreAJpQW3xKzfTXvFPHQ1wT6zAFvKyiY9Ts
https://w3id.org/np/RAofhQTZQsoeVtAH_V8qTjeLYhT-IdbMN7inXKz0jLA1o
https://w3id.org/np/o/ntemplate/wasCreatedFromProvenanceTemplate
https://w3id.org/np/RA7lSq6MuK_TIC6JMSHvLtee3lpLoZDOqLJCLXevnrPoU
https://w3id.org/np/RAofhQTZQsoeVtAH_V8qTjeLYhT-IdbMN7inXKz0jLA1o
https://w3id.org/np/o/ntemplate/wasCreatedFromPubinfoTemplate
https://w3id.org/np/RA-N4_kFxcruvBTlo1yJv29E4SLOXsx5KO_th69PprMrA
https://w3id.org/np/RAofhQTZQsoeVtAH_V8qTjeLYhT-IdbMN7inXKz0jLA1o
https://w3id.org/np/o/ntemplate/wasCreatedFromPubinfoTemplate
https://w3id.org/np/RACJ58Gvyn91LqCKIO9zu1eijDQIeEff28iyDrJgjSJF8
https://w3id.org/np/RAofhQTZQsoeVtAH_V8qTjeLYhT-IdbMN7inXKz0jLA1o
https://w3id.org/np/o/ntemplate/wasCreatedFromTemplate
https://w3id.org/np/RAEFAt-QcFK0ZhqfvlsmS10BnzGJA0xwOICZXkO-ai87k
https://w3id.org/np/RAofhQTZQsoeVtAH_V8qTjeLYhT-IdbMN7inXKz0jLA1o/sig
http://purl.org/nanopub/x/hasAlgorithm
RSA
https://w3id.org/np/RAofhQTZQsoeVtAH_V8qTjeLYhT-IdbMN7inXKz0jLA1o/sig
http://purl.org/nanopub/x/hasPublicKey
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAl8cMusqtNyKA6UIsi3f7BAcZmHQXWxU0qk0PLsboMWQxYrGBfGgHTgRHJrBRxL+Zn9kJHKVmz2smDcjCBptXi/OwWy80gjsx+Pbe6IWz3zFPWF1UoFIKfPnC0slV67CQgdM853zW7Bmk9/uflCtK4EtZKmPdRGtUHVC7DTVvDBMDzLRGdE2KCBVN29EbM5GGVNvijYbaZQ9OFQPBkQshayqSIyGRr6rreJdkrRVLIzu3uuAjKYydaeXZWSN2JLnVBwrClKUxaEdCwhb5nXpMtKOMD+R+LgaXLeJUWM8BdRSYnta9ZqI5pHY4y3v+eW7J+HHeTvRbHvlik+Z4hFUXmQIDAQAB
https://w3id.org/np/RAofhQTZQsoeVtAH_V8qTjeLYhT-IdbMN7inXKz0jLA1o/sig
http://purl.org/nanopub/x/hasSignature
kRZspW7E/VqJ8RARr4j02zHyW8YCZ54adS4GBZ7PCw7T9if8qVcSVfDKFaL28XRI4LagDiNGFma6lGFQmvgLyiqJbdnecyA/G66+2CDPHuFnjC4dUWGw/tBGv6aWbKoIB4I61QOu40Qc5hCE46SYmPcfJIenqe7EsKAGytfGoc2epZNfHw+aTtFCQynNWVleO8HEs1If4xol9DeM0L3aBvzjrbbmj781sYdkaoXS6Fru+VkbsWyE1av0CI007ke1pLXcQZnPRwAjYVVsZYP/1bh7fPat0XYp039r5HnlhocY/CA/yRJRClNMtFJCwH/GoNOrB/V+HVqydqa97DGBHQ==
https://w3id.org/np/RAofhQTZQsoeVtAH_V8qTjeLYhT-IdbMN7inXKz0jLA1o/sig
http://purl.org/nanopub/x/hasSignatureTarget
https://w3id.org/np/RAofhQTZQsoeVtAH_V8qTjeLYhT-IdbMN7inXKz0jLA1o
https://w3id.org/np/RAofhQTZQsoeVtAH_V8qTjeLYhT-IdbMN7inXKz0jLA1o/sig
http://purl.org/nanopub/x/signedBy
https://w3id.org/np/RAFJKwxgChOLOQ2UduMAT1bYf1VNaWIZYIPmTT3YvJ8y0/docs-bot