https://w3id.org/np/RAtWBGFpIP_QKaV5zYW4UHw3uXcO1P8Hfn4Pv7PjZsERA/Head
https://w3id.org/np/RAtWBGFpIP_QKaV5zYW4UHw3uXcO1P8Hfn4Pv7PjZsERA
http://www.nanopub.org/nschema#hasAssertion
https://w3id.org/np/RAtWBGFpIP_QKaV5zYW4UHw3uXcO1P8Hfn4Pv7PjZsERA/assertion
https://w3id.org/np/RAtWBGFpIP_QKaV5zYW4UHw3uXcO1P8Hfn4Pv7PjZsERA
http://www.nanopub.org/nschema#hasProvenance
https://w3id.org/np/RAtWBGFpIP_QKaV5zYW4UHw3uXcO1P8Hfn4Pv7PjZsERA/provenance
https://w3id.org/np/RAtWBGFpIP_QKaV5zYW4UHw3uXcO1P8Hfn4Pv7PjZsERA
http://www.nanopub.org/nschema#hasPublicationInfo
https://w3id.org/np/RAtWBGFpIP_QKaV5zYW4UHw3uXcO1P8Hfn4Pv7PjZsERA/pubinfo
https://w3id.org/np/RAtWBGFpIP_QKaV5zYW4UHw3uXcO1P8Hfn4Pv7PjZsERA
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.nanopub.org/nschema#Nanopublication
https://w3id.org/np/RAtWBGFpIP_QKaV5zYW4UHw3uXcO1P8Hfn4Pv7PjZsERA/assertion
https://w3id.org/np/RAtWBGFpIP_QKaV5zYW4UHw3uXcO1P8Hfn4Pv7PjZsERA/get-nanosuggestions
http://purl.org/dc/terms/description
This query returns the nanosuggestions (issues, bug reports, feature requests and tasks) that are linked to a given space or maintained resource via gen:isRelevantFor, together with their kind, current status, current assignee, comments, reporter and date. Anybody may link a nanosuggestion to a resource, but status and assignment are resolved per space: the most recent assertion published by a current member (admin, maintainer or member, not observer) of that space wins. If no member of the space has ever set a status, the most recent status from outside is shown instead, marked as such; if there is no status at all, the nanosuggestion counts as open. Open and in-progress entries are listed before closed ones, each group most recent first.
https://w3id.org/np/RAtWBGFpIP_QKaV5zYW4UHw3uXcO1P8Hfn4Pv7PjZsERA/get-nanosuggestions
http://purl.org/dc/terms/license
http://www.apache.org/licenses/LICENSE-2.0
https://w3id.org/np/RAtWBGFpIP_QKaV5zYW4UHw3uXcO1P8Hfn4Pv7PjZsERA/get-nanosuggestions
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
https://w3id.org/kpxl/grlc/grlc-query
https://w3id.org/np/RAtWBGFpIP_QKaV5zYW4UHw3uXcO1P8Hfn4Pv7PjZsERA/get-nanosuggestions
http://www.w3.org/2000/01/rdf-schema#label
Get nanosuggestions for a resource
https://w3id.org/np/RAtWBGFpIP_QKaV5zYW4UHw3uXcO1P8Hfn4Pv7PjZsERA/get-nanosuggestions
https://w3id.org/kpxl/grlc/endpoint
https://w3id.org/np/l/nanopub-query-1.1/repo/type/31b9650d2a884b92cafdd413be2620b2eaa7b4e80f3a2e4579cf608f748ce1cd
https://w3id.org/np/RAtWBGFpIP_QKaV5zYW4UHw3uXcO1P8Hfn4Pv7PjZsERA/get-nanosuggestions
https://w3id.org/kpxl/grlc/sparql
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 gen: <https://w3id.org/kpxl/gen/terms/>
prefix nsug: <https://w3id.org/np/RA5BAdUvlxLWMWFQN3UVKoIQEB_MYTiAoLH1klXJ7z-XI/>
select ?suggestion ?title ?kind_label ?status_label ?assignee ?description ?comments ?reporter ?date ?np
?status_active ?status_done ?status_rejected
where {
graph npa:graph {
?np npa:hasValidSignatureForPublicKeyHash ?pubkey .
filter not exists { ?npi npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . }
?np dct:created ?date .
?np np:hasAssertion ?a .
optional { ?np dct:creator ?reporter }
}
graph ?a {
?suggestion a nsug:Nanosuggestion ; rdfs:label ?title .
optional { ?suggestion dct:description ?description }
optional { ?suggestion a ?kind . filter(?kind != nsug:Nanosuggestion && ?kind != schema:Action) }
}
filter exists {
graph npa:graph {
?lnp npa:hasValidSignatureForPublicKeyHash ?lpk ; np:hasAssertion ?la .
filter not exists { ?lnpi npx:invalidates ?lnp ; npa:hasValidSignatureForPublicKeyHash ?lpk . }
}
graph ?la {
values ?_resource_multi_iri {}
?suggestion gen:isRelevantFor ?_resource_multi_iri .
}
}
optional {
{ select ?suggestion (max(concat(if(?fm,'1','0'), ?sd, ' ', str(?s))) as ?pick) 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 ?_resource_multi_iri {}
graph ?stateG {
?_resource_multi_iri npa:isMaintainedBy? ?space .
?ri a gen:RoleInstantiation ; npa:forSpace ?space ; npa:forAgent ?agent ; npa:hasRoleType ?rt .
filter(?rt in (gen:AdminRole, gen:MaintainerRole, gen:MemberRole))
?acct a npa:AccountState ; npa:agent ?agent ; npa:pubkey ?mpk .
}
}
}
graph npa:graph {
?snp npa:hasValidSignatureForPublicKeyHash ?spk ; np:hasAssertion ?sa ; dct:created ?sdate .
filter not exists { ?snpi npx:invalidates ?snp ; npa:hasValidSignatureForPublicKeyHash ?spk . }
}
graph ?sa { ?suggestion schema:actionStatus ?s . }
bind(str(?sdate) as ?sd)
bind(contains(?memberPubkeys, ?spk) as ?fm)
} group by ?suggestion }
}
bind(coalesce(iri(strafter(?pick, ' ')), schema:PotentialActionStatus) as ?st)
bind(coalesce(substr(?pick, 1, 1) = '0', false) as ?outside)
bind(if(?st = schema:CompletedActionStatus, 'done',
if(?st = schema:FailedActionStatus, 'rejected',
if(?st = schema:ActiveActionStatus, 'in progress', 'open'))) as ?st_label)
bind(if(?outside, concat(?st_label, ' (set outside this space)'), ?st_label) as ?status_label)
optional {
{ select ?suggestion (max(concat(if(?afm,'1','0'), ?ad, ' ', str(?ag))) as ?apick) 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 ?_resource_multi_iri {}
graph ?stateG {
?_resource_multi_iri npa:isMaintainedBy? ?space .
?ri a gen:RoleInstantiation ; npa:forSpace ?space ; npa:forAgent ?agent ; npa:hasRoleType ?rt .
filter(?rt in (gen:AdminRole, gen:MaintainerRole, gen:MemberRole))
?acct a npa:AccountState ; npa:agent ?agent ; npa:pubkey ?mpk .
}
}
}
graph npa:graph {
?anp npa:hasValidSignatureForPublicKeyHash ?apk ; np:hasAssertion ?aa ; dct:created ?adate .
filter not exists { ?anpi npx:invalidates ?anp ; npa:hasValidSignatureForPublicKeyHash ?apk . }
}
graph ?aa { ?suggestion schema:agent ?ag . }
bind(str(?adate) as ?ad)
bind(contains(?memberPubkeys, ?apk) as ?afm)
} group by ?suggestion }
bind(iri(strafter(?apick, ' ')) as ?assignee)
}
optional {
{ select ?suggestion (group_concat(?cline; separator='') as ?comments) where {
graph npa:graph {
?cnp npa:hasValidSignatureForPublicKeyHash ?cpk ; np:hasAssertion ?ca ; dct:created ?cdate .
filter not exists { ?cnpi npx:invalidates ?cnp ; npa:hasValidSignatureForPublicKeyHash ?cpk . }
}
graph ?ca { ?suggestion rdfs:comment ?ctext . }
bind(replace(replace(replace(str(?ctext), '&', '&'), '<', '<'), '>', '>') as ?cesc)
bind(concat('<div>', ?cesc, ' <a href="/explore?id=', encode_for_uri(str(?cnp)), '">— ',
substr(str(?cdate), 1, 10), '</a></div>') as ?cline)
} group by ?suggestion }
}
bind(coalesce(lcase(strafter(str(?kind), 'RA5BAdUvlxLWMWFQN3UVKoIQEB_MYTiAoLH1klXJ7z-XI/')), '') as ?kind_label)
bind(schema:ActiveActionStatus as ?status_active)
bind(schema:CompletedActionStatus as ?status_done)
bind(schema:FailedActionStatus as ?status_rejected)
bind(if(?st in (schema:CompletedActionStatus, schema:FailedActionStatus), '2', '1') as ?openRank)
}
order by ?openRank desc(?date)
https://w3id.org/np/RAtWBGFpIP_QKaV5zYW4UHw3uXcO1P8Hfn4Pv7PjZsERA/provenance
https://w3id.org/np/RAtWBGFpIP_QKaV5zYW4UHw3uXcO1P8Hfn4Pv7PjZsERA/assertion
http://www.w3.org/ns/prov#wasAttributedTo
https://orcid.org/0000-0002-1267-0234
https://w3id.org/np/RAtWBGFpIP_QKaV5zYW4UHw3uXcO1P8Hfn4Pv7PjZsERA/pubinfo
https://orcid.org/0000-0002-1267-0234
http://xmlns.com/foaf/0.1/name
Tobias Kuhn
https://w3id.org/np/RAtWBGFpIP_QKaV5zYW4UHw3uXcO1P8Hfn4Pv7PjZsERA
http://purl.org/dc/terms/created
2026-08-26T12:18:48Z
https://w3id.org/np/RAtWBGFpIP_QKaV5zYW4UHw3uXcO1P8Hfn4Pv7PjZsERA
http://purl.org/dc/terms/creator
https://orcid.org/0000-0002-1267-0234
https://w3id.org/np/RAtWBGFpIP_QKaV5zYW4UHw3uXcO1P8Hfn4Pv7PjZsERA
http://purl.org/dc/terms/license
https://creativecommons.org/licenses/by/4.0/
https://w3id.org/np/RAtWBGFpIP_QKaV5zYW4UHw3uXcO1P8Hfn4Pv7PjZsERA
http://purl.org/nanopub/x/embeds
https://w3id.org/np/RAtWBGFpIP_QKaV5zYW4UHw3uXcO1P8Hfn4Pv7PjZsERA/get-nanosuggestions
https://w3id.org/np/RAtWBGFpIP_QKaV5zYW4UHw3uXcO1P8Hfn4Pv7PjZsERA
http://www.w3.org/2000/01/rdf-schema#label
Get nanosuggestions for a resource
https://w3id.org/np/RAtWBGFpIP_QKaV5zYW4UHw3uXcO1P8Hfn4Pv7PjZsERA/sig
http://purl.org/nanopub/x/hasAlgorithm
RSA
https://w3id.org/np/RAtWBGFpIP_QKaV5zYW4UHw3uXcO1P8Hfn4Pv7PjZsERA/sig
http://purl.org/nanopub/x/hasPublicKey
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB
https://w3id.org/np/RAtWBGFpIP_QKaV5zYW4UHw3uXcO1P8Hfn4Pv7PjZsERA/sig
http://purl.org/nanopub/x/hasSignature
egET2XHfxYVgMOx2nN0IiFm8/7eiEurX6O1pMCyFffaKuhMUXkEC3VTvKEXRREoghKeOYPGfrBIJ4z9OMXtmqVlGX/9zV1i0dH29d3msQCG2S6wlEGvIW59yvV7LkxgE5UjyJBgjKfUuQ2Q2Vqpv2cawzYdtfmueoHyJ68DL9ik=
https://w3id.org/np/RAtWBGFpIP_QKaV5zYW4UHw3uXcO1P8Hfn4Pv7PjZsERA/sig
http://purl.org/nanopub/x/hasSignatureTarget
https://w3id.org/np/RAtWBGFpIP_QKaV5zYW4UHw3uXcO1P8Hfn4Pv7PjZsERA
https://w3id.org/np/RAtWBGFpIP_QKaV5zYW4UHw3uXcO1P8Hfn4Pv7PjZsERA/sig
http://purl.org/nanopub/x/signedBy
https://orcid.org/0000-0002-1267-0234