. . . . "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." . . . "Get nanosuggestions for a resource" . . "\nprefix rdfs: \nprefix dct: \nprefix np: \nprefix npa: \nprefix npx: \nprefix schema: \nprefix gen: \nprefix nsug: \n\nselect ?suggestion ?title ?kind_label ?status_label ?assignee ?description ?comments ?reporter ?date ?np\n ?status_active ?status_done ?status_rejected\nwhere {\n graph npa:graph {\n ?np npa:hasValidSignatureForPublicKeyHash ?pubkey .\n filter not exists { ?npi npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . }\n ?np dct:created ?date .\n ?np np:hasAssertion ?a .\n optional { ?np dct:creator ?reporter }\n }\n graph ?a {\n ?suggestion a nsug:Nanosuggestion ; rdfs:label ?title .\n optional { ?suggestion dct:description ?description }\n optional { ?suggestion a ?kind . filter(?kind != nsug:Nanosuggestion && ?kind != schema:Action) }\n }\n filter exists {\n graph npa:graph {\n ?lnp npa:hasValidSignatureForPublicKeyHash ?lpk ; np:hasAssertion ?la .\n filter not exists { ?lnpi npx:invalidates ?lnp ; npa:hasValidSignatureForPublicKeyHash ?lpk . }\n }\n graph ?la {\n values ?_resource_multi_iri {}\n ?suggestion gen:isRelevantFor ?_resource_multi_iri .\n }\n }\n optional {\n { select ?suggestion (max(concat(if(?fm,'1','0'), ?sd, ' ', str(?s))) as ?pick) where {\n service {\n select (group_concat(?mpk; separator=' ') as ?memberPubkeys) where {\n graph npa:graph { npa:thisRepo npa:hasCurrentSpaceState ?stateG . }\n values ?_resource_multi_iri {}\n graph ?stateG {\n ?_resource_multi_iri npa:isMaintainedBy? ?space .\n ?ri a gen:RoleInstantiation ; npa:forSpace ?space ; npa:forAgent ?agent ; npa:hasRoleType ?rt .\n filter(?rt in (gen:AdminRole, gen:MaintainerRole, gen:MemberRole))\n ?acct a npa:AccountState ; npa:agent ?agent ; npa:pubkey ?mpk .\n }\n }\n }\n graph npa:graph {\n ?snp npa:hasValidSignatureForPublicKeyHash ?spk ; np:hasAssertion ?sa ; dct:created ?sdate .\n filter not exists { ?snpi npx:invalidates ?snp ; npa:hasValidSignatureForPublicKeyHash ?spk . }\n }\n graph ?sa { ?suggestion schema:actionStatus ?s . }\n bind(str(?sdate) as ?sd)\n bind(contains(?memberPubkeys, ?spk) as ?fm)\n } group by ?suggestion }\n }\n bind(coalesce(iri(strafter(?pick, ' ')), schema:PotentialActionStatus) as ?st)\n bind(coalesce(substr(?pick, 1, 1) = '0', false) as ?outside)\n bind(if(?st = schema:CompletedActionStatus, 'done',\n if(?st = schema:FailedActionStatus, 'rejected',\n if(?st = schema:ActiveActionStatus, 'in progress', 'open'))) as ?st_label)\n bind(if(?outside, concat(?st_label, ' (set outside this space)'), ?st_label) as ?status_label)\n optional {\n { select ?suggestion (max(concat(if(?afm,'1','0'), ?ad, ' ', str(?ag))) as ?apick) where {\n service {\n select (group_concat(?mpk; separator=' ') as ?memberPubkeys) where {\n graph npa:graph { npa:thisRepo npa:hasCurrentSpaceState ?stateG . }\n values ?_resource_multi_iri {}\n graph ?stateG {\n ?_resource_multi_iri npa:isMaintainedBy? ?space .\n ?ri a gen:RoleInstantiation ; npa:forSpace ?space ; npa:forAgent ?agent ; npa:hasRoleType ?rt .\n filter(?rt in (gen:AdminRole, gen:MaintainerRole, gen:MemberRole))\n ?acct a npa:AccountState ; npa:agent ?agent ; npa:pubkey ?mpk .\n }\n }\n }\n graph npa:graph {\n ?anp npa:hasValidSignatureForPublicKeyHash ?apk ; np:hasAssertion ?aa ; dct:created ?adate .\n filter not exists { ?anpi npx:invalidates ?anp ; npa:hasValidSignatureForPublicKeyHash ?apk . }\n }\n graph ?aa { ?suggestion schema:agent ?ag . }\n bind(str(?adate) as ?ad)\n bind(contains(?memberPubkeys, ?apk) as ?afm)\n } group by ?suggestion }\n bind(iri(strafter(?apick, ' ')) as ?assignee)\n }\n optional {\n { select ?suggestion (group_concat(?cline; separator='') as ?comments) where {\n graph npa:graph {\n ?cnp npa:hasValidSignatureForPublicKeyHash ?cpk ; np:hasAssertion ?ca ; dct:created ?cdate .\n filter not exists { ?cnpi npx:invalidates ?cnp ; npa:hasValidSignatureForPublicKeyHash ?cpk . }\n }\n graph ?ca { ?suggestion rdfs:comment ?ctext . }\n bind(replace(replace(replace(str(?ctext), '&', '&'), '<', '<'), '>', '>') as ?cesc)\n bind(concat('') as ?cline)\n } group by ?suggestion }\n }\n bind(coalesce(lcase(strafter(str(?kind), 'RA5BAdUvlxLWMWFQN3UVKoIQEB_MYTiAoLH1klXJ7z-XI/')), '') as ?kind_label)\n bind(schema:ActiveActionStatus as ?status_active)\n bind(schema:CompletedActionStatus as ?status_done)\n bind(schema:FailedActionStatus as ?status_rejected)\n bind(if(?st in (schema:CompletedActionStatus, schema:FailedActionStatus), '2', '1') as ?openRank)\n}\norder by ?openRank desc(?date)\n" . . "Tobias Kuhn" . "2026-08-26T12:18:48Z"^^ . . . . "Get nanosuggestions for a resource" . "RSA" . "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB" . "egET2XHfxYVgMOx2nN0IiFm8/7eiEurX6O1pMCyFffaKuhMUXkEC3VTvKEXRREoghKeOYPGfrBIJ4z9OMXtmqVlGX/9zV1i0dH29d3msQCG2S6wlEGvIW59yvV7LkxgE5UjyJBgjKfUuQ2Q2Vqpv2cawzYdtfmueoHyJ68DL9ik=" . . .