https://w3id.org/np/RAr2gE_SyTPK9-ewHuLgnU6Hgzis_0PEOaJPZrcgoNOt0/Head
https://w3id.org/np/RAr2gE_SyTPK9-ewHuLgnU6Hgzis_0PEOaJPZrcgoNOt0
http://www.nanopub.org/nschema#hasAssertion
https://w3id.org/np/RAr2gE_SyTPK9-ewHuLgnU6Hgzis_0PEOaJPZrcgoNOt0/assertion
https://w3id.org/np/RAr2gE_SyTPK9-ewHuLgnU6Hgzis_0PEOaJPZrcgoNOt0
http://www.nanopub.org/nschema#hasProvenance
https://w3id.org/np/RAr2gE_SyTPK9-ewHuLgnU6Hgzis_0PEOaJPZrcgoNOt0/provenance
https://w3id.org/np/RAr2gE_SyTPK9-ewHuLgnU6Hgzis_0PEOaJPZrcgoNOt0
http://www.nanopub.org/nschema#hasPublicationInfo
https://w3id.org/np/RAr2gE_SyTPK9-ewHuLgnU6Hgzis_0PEOaJPZrcgoNOt0/pubinfo
https://w3id.org/np/RAr2gE_SyTPK9-ewHuLgnU6Hgzis_0PEOaJPZrcgoNOt0
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.nanopub.org/nschema#Nanopublication
https://w3id.org/np/RAr2gE_SyTPK9-ewHuLgnU6Hgzis_0PEOaJPZrcgoNOt0/assertion
https://w3id.org/np/RAr2gE_SyTPK9-ewHuLgnU6Hgzis_0PEOaJPZrcgoNOt0/get-paragraphs
http://purl.org/dc/terms/description
This query returns the paragraphs of an entity (a space, maintained resource or user) with their title and content, including source nanopub and date. Only the current version of each paragraph is returned: a paragraph nanopub is replaced by a newer one that supersedes it or was derived from it and keeps the same paragraph IRI, when that newer one is signed by the same key, or by an admin, maintainer or member of the space (for a maintained resource: of the space maintaining it) or, on a user page, by the user themselves; such a replacing version typed gen:DeactivatedParagraph removes the paragraph. The edit_target and edit_template columns are action data rather than content: edit_target carries the row's own nanopublication so that a view can offer an in-place edit that republishes it in override mode -- keeping the paragraph IRI and its root definition, so the edited text replaces the old one instead of appearing next to it, also when the editor is not the original author -- and edit_template the template that nanopublication was created from, so the edit form matches how the paragraph was written. Paragraphs whose nanopublication records no template fall back to the generic hand-coded-statements template, whose single repeatable subject/predicate/object statement matches any triple. Both columns are action-mapping sources and are therefore not rendered.
https://w3id.org/np/RAr2gE_SyTPK9-ewHuLgnU6Hgzis_0PEOaJPZrcgoNOt0/get-paragraphs
http://purl.org/dc/terms/license
http://www.apache.org/licenses/LICENSE-2.0
https://w3id.org/np/RAr2gE_SyTPK9-ewHuLgnU6Hgzis_0PEOaJPZrcgoNOt0/get-paragraphs
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
https://w3id.org/kpxl/grlc/grlc-query
https://w3id.org/np/RAr2gE_SyTPK9-ewHuLgnU6Hgzis_0PEOaJPZrcgoNOt0/get-paragraphs
http://www.w3.org/2000/01/rdf-schema#label
Get paragraphs of an entity
https://w3id.org/np/RAr2gE_SyTPK9-ewHuLgnU6Hgzis_0PEOaJPZrcgoNOt0/get-paragraphs
https://w3id.org/kpxl/grlc/endpoint
https://w3id.org/np/l/nanopub-query-1.1/repo/full
https://w3id.org/np/RAr2gE_SyTPK9-ewHuLgnU6Hgzis_0PEOaJPZrcgoNOt0/get-paragraphs
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/>
prefix nt: <https://w3id.org/np/o/ntemplate/>
prefix prov: <http://www.w3.org/ns/prov#>
# The paragraphs of a resource page (space, maintained resource or user), with only the
# current version of each paragraph. A paragraph nanopub is replaced by a newer one that
# supersedes it or was derived from it (supersede and override edits), keeps the same
# paragraph IRI, and is signed by the same key or by someone with authority over the page:
# an admin, maintainer or member of the space (for a maintained resource: of the space
# maintaining it), or, on a user page, the user themselves. Replacement is keyed on the
# explicit link between the two nanopubs rather than on the paragraph IRI alone, because
# older paragraph nanopubs share one paragraph IRI across unrelated paragraphs.
select ?title ?content ?date (str(?np) as ?edit_target) (str(coalesce(?srcTemplate, <http://purl.org/np/RAFu2BNmgHrjOTJ8SKRnKaRp-VP8AOOb7xX88ob0DZRsU>)) as ?edit_template) ?np where {
# One row holding every authorized pubkey hash, space-separated. A sub-select sharing
# no variables with the outer query, so it is evaluated once rather than per row.
service <https://w3id.org/np/l/nanopub-query-1.1/repo/spaces> {
select (group_concat(distinct ?mpk; separator=" ") as ?memberPubkeys) where {
graph npa:graph { npa:thisRepo npa:hasCurrentSpaceState ?stateG . }
values ?_resource_multi_iri {}
{
graph ?stateG {
?_resource_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 .
}
# Observers are excluded: that tier can be self-attested and so is no gate at all.
filter(?roleType in (gen:AdminRole, gen:MaintainerRole, gen:MemberRole))
} union {
graph ?stateG { ?acct2 a npa:AccountState ; npa:agent ?_resource_multi_iri ; npa:pubkey ?mpk . }
}
}
}
graph npa:graph {
?np npa:hasValidSignatureForPublicKeyHash ?npPubkey ;
dct:created ?date ;
np:hasAssertion ?a .
filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?npPubkey . }
}
values ?_resource_multi_iri {}
graph ?a {
?paragraph rdf:type gen:Paragraph ;
schema:title|schemas:title ?title ;
gen:hasContent ?content ;
schema:isPartOf|schemas:isPartOf ?_resource_multi_iri .
optional { ?paragraph gen:hasPositionString ?position }
}
optional {
graph npa:graph { ?np np:hasPublicationInfo ?srcPubinfo . }
graph ?srcPubinfo { ?np nt:wasCreatedFromTemplate ?srcTemplate . }
}
# Replaced by a valid newer edit (see above). A replacing version typed
# gen:DeactivatedParagraph removes the paragraph. The key filter must sit outside the
# graph blocks: ?memberPubkeys is bound by the service above.
filter not exists {
graph npa:networkGraph { ?np2 npx:supersedes|prov:wasDerivedFrom ?np . }
graph npa:graph {
?np2 npa:hasValidSignatureForPublicKeyHash ?np2Pubkey ;
np:hasAssertion ?a2 .
filter not exists { ?npx2 npx:invalidates ?np2 ; npa:hasValidSignatureForPublicKeyHash ?np2Pubkey . }
}
graph ?a2 { ?paragraph rdf:type ?type2 . }
values ?type2 { gen:Paragraph gen:DeactivatedParagraph }
filter(?np2Pubkey = ?npPubkey || contains(?memberPubkeys, ?np2Pubkey))
}
}
order by ?position ?title
https://w3id.org/np/RAr2gE_SyTPK9-ewHuLgnU6Hgzis_0PEOaJPZrcgoNOt0/provenance
https://w3id.org/np/RAr2gE_SyTPK9-ewHuLgnU6Hgzis_0PEOaJPZrcgoNOt0/assertion
http://www.w3.org/ns/prov#wasAttributedTo
https://orcid.org/0000-0002-1267-0234
https://w3id.org/np/RAr2gE_SyTPK9-ewHuLgnU6Hgzis_0PEOaJPZrcgoNOt0/pubinfo
https://orcid.org/0000-0002-1267-0234
http://xmlns.com/foaf/0.1/name
Tobias Kuhn
https://w3id.org/np/RAr2gE_SyTPK9-ewHuLgnU6Hgzis_0PEOaJPZrcgoNOt0
http://purl.org/dc/terms/created
2026-09-18T14:17:54Z
https://w3id.org/np/RAr2gE_SyTPK9-ewHuLgnU6Hgzis_0PEOaJPZrcgoNOt0
http://purl.org/dc/terms/creator
https://orcid.org/0000-0002-1267-0234
https://w3id.org/np/RAr2gE_SyTPK9-ewHuLgnU6Hgzis_0PEOaJPZrcgoNOt0
http://purl.org/dc/terms/license
https://creativecommons.org/licenses/by/4.0/
https://w3id.org/np/RAr2gE_SyTPK9-ewHuLgnU6Hgzis_0PEOaJPZrcgoNOt0
http://purl.org/nanopub/x/embeds
https://w3id.org/np/RAr2gE_SyTPK9-ewHuLgnU6Hgzis_0PEOaJPZrcgoNOt0/get-paragraphs
https://w3id.org/np/RAr2gE_SyTPK9-ewHuLgnU6Hgzis_0PEOaJPZrcgoNOt0
http://www.w3.org/ns/prov#wasDerivedFrom
https://w3id.org/np/RA4bcnwDxr8JP_b0Ew0UAr7kzYna_ehP-qxIYC28uFq_8
https://w3id.org/np/RAr2gE_SyTPK9-ewHuLgnU6Hgzis_0PEOaJPZrcgoNOt0
https://w3id.org/np/o/ntemplate/wasCreatedFromProvenanceTemplate
https://w3id.org/np/RA7lSq6MuK_TIC6JMSHvLtee3lpLoZDOqLJCLXevnrPoU
https://w3id.org/np/RAr2gE_SyTPK9-ewHuLgnU6Hgzis_0PEOaJPZrcgoNOt0
https://w3id.org/np/o/ntemplate/wasCreatedFromPubinfoTemplate
https://w3id.org/np/RACJ58Gvyn91LqCKIO9zu1eijDQIeEff28iyDrJgjSJF8
https://w3id.org/np/RAr2gE_SyTPK9-ewHuLgnU6Hgzis_0PEOaJPZrcgoNOt0
https://w3id.org/np/o/ntemplate/wasCreatedFromPubinfoTemplate
https://w3id.org/np/RAMEgudZsQ1bh1fZhfYnkthqH6YSXpghSE_DEN1I-6eAI
https://w3id.org/np/RAr2gE_SyTPK9-ewHuLgnU6Hgzis_0PEOaJPZrcgoNOt0
https://w3id.org/np/o/ntemplate/wasCreatedFromPubinfoTemplate
https://w3id.org/np/RARW4MsFkHuwjycNElvEVtuMjpf4yWDL10-0C5l2MqqRQ
https://w3id.org/np/RAr2gE_SyTPK9-ewHuLgnU6Hgzis_0PEOaJPZrcgoNOt0
https://w3id.org/np/o/ntemplate/wasCreatedFromPubinfoTemplate
https://w3id.org/np/RAoTD7udB2KtUuOuAe74tJi1t3VzK0DyWS7rYVAq1GRvw
https://w3id.org/np/RAr2gE_SyTPK9-ewHuLgnU6Hgzis_0PEOaJPZrcgoNOt0
https://w3id.org/np/o/ntemplate/wasCreatedFromPubinfoTemplate
https://w3id.org/np/RAukAcWHRDlkqxk7H2XNSegc1WnHI569INvNr-xdptDGI
https://w3id.org/np/RAr2gE_SyTPK9-ewHuLgnU6Hgzis_0PEOaJPZrcgoNOt0
https://w3id.org/np/o/ntemplate/wasCreatedFromTemplate
https://w3id.org/np/RAEFAt-QcFK0ZhqfvlsmS10BnzGJA0xwOICZXkO-ai87k
https://w3id.org/np/RAr2gE_SyTPK9-ewHuLgnU6Hgzis_0PEOaJPZrcgoNOt0/sig
http://purl.org/nanopub/x/hasAlgorithm
RSA
https://w3id.org/np/RAr2gE_SyTPK9-ewHuLgnU6Hgzis_0PEOaJPZrcgoNOt0/sig
http://purl.org/nanopub/x/hasPublicKey
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB
https://w3id.org/np/RAr2gE_SyTPK9-ewHuLgnU6Hgzis_0PEOaJPZrcgoNOt0/sig
http://purl.org/nanopub/x/hasSignature
EK8ZbnduEeeiXcO90INMSyycgLdvJFzc+wdMzRluc5L1Om/voT5hTOJvAZImOqDDgVD0ap57FBwY/nSVn3GqS6x5o80XCnJpSrpUsgzCnRb6atUVoDyGbOq9FHfJAVW8Sbfce+lYkM50lZiROzmDKs6hMN7rIqgGs++rRkZJ9nA=
https://w3id.org/np/RAr2gE_SyTPK9-ewHuLgnU6Hgzis_0PEOaJPZrcgoNOt0/sig
http://purl.org/nanopub/x/hasSignatureTarget
https://w3id.org/np/RAr2gE_SyTPK9-ewHuLgnU6Hgzis_0PEOaJPZrcgoNOt0
https://w3id.org/np/RAr2gE_SyTPK9-ewHuLgnU6Hgzis_0PEOaJPZrcgoNOt0/sig
http://purl.org/nanopub/x/signedBy
https://orcid.org/0000-0002-1267-0234