. . . . "Returns the nanosuggestions currently assigned to a given agent, for that agent's user page: title, kind, current status, the spaces the nanosuggestion is relevant for, who assigned it and when. Only the most recent assignment of each nanosuggestion counts, so a reassignment moves the entry to the new assignee instead of leaving it with both. Unlike the space-page listing, this query is not gated on space membership: a user page has no space to resolve membership against, so every assignment naming the agent is shown." . . . "Get the nanosuggestions assigned to an agent" . . "\nprefix rdf: \nprefix rdfs: \nprefix dct: \nprefix foaf: \nprefix np: \nprefix npa: \nprefix npx: \nprefix schema: \nprefix gen: \nprefix nsug: \n\nselect distinct ?item_multi_iri ?item_label_multi ?kind ?status ?spaces_multi_iri ?spaces_label_multi\n ?assigned_by ?assigned_by_label ?date ?suggestion ?np\nwhere {\n # grlc fills this block with the page's agent IRI. A multi-valued (_multi_iri)\n # parameter REQUIRES the empty values block: used bare the variable simply stays\n # unbound, and the assignee pattern then matches every agent.\n values ?_resource_multi_iri {}\n # the most recent assignment nanopub for each nanosuggestion\n { select ?suggestion (max(concat(?ad, ' ', str(?anp))) as ?apick) where {\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 } group by ?suggestion }\n bind(iri(strafter(?apick, ' ')) as ?assignNp)\n # ...and it must name this agent, so a later reassignment removes the entry\n graph npa:graph { ?assignNp np:hasAssertion ?assignA ; dct:created ?date .\n optional { ?assignNp dct:creator ?assigned_by } }\n graph ?assignA { ?suggestion schema:agent ?_resource_multi_iri . }\n # the declaring nanopub carries the title and kind\n graph npa:graph {\n ?np npa:hasValidSignatureForPublicKeyHash ?pubkey ; np:hasAssertion ?a .\n filter not exists { ?npi npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . }\n }\n graph ?a {\n ?suggestion a nsug:Nanosuggestion ; rdfs:label ?title .\n optional { ?suggestion a ?k . filter(?k != nsug:Nanosuggestion && ?k != schema:Statement) }\n }\n # current status: no space to anchor to on a user page, so the most recent one overall\n optional {\n { select ?suggestion (max(concat(?sd, ' ', str(?s))) as ?pick) where {\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 } group by ?suggestion }\n }\n bind(coalesce(iri(strafter(?pick, ' ')), schema:PotentialActionStatus) as ?st)\n bind(if(?st = schema:CompletedActionStatus, 'done',\n if(?st = schema:FailedActionStatus, 'rejected',\n if(?st = schema:ActiveActionStatus, 'in progress', 'open'))) as ?status)\n # which spaces the nanosuggestion is relevant for\n optional {\n { select ?suggestion (group_concat(distinct str(?sp); separator=' ') as ?spaces_multi_iri)\n (group_concat(distinct ?splabel; separator='\\n') as ?spaces_label_multi) where {\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 { ?suggestion gen:isRelevantFor ?sp . }\n optional { ?sp rdfs:label ?spl . filter(lang(?spl) = '') }\n bind(coalesce(?spl, replace(str(?sp), '^.*/', '')) as ?splabel)\n } group by ?suggestion }\n }\n optional { ?assigned_by foaf:name ?assigned_by_label }\n bind(?suggestion as ?item_multi_iri)\n bind(?title as ?item_label_multi)\n bind(coalesce(lcase(strafter(str(?k), 'RA5BAdUvlxLWMWFQN3UVKoIQEB_MYTiAoLH1klXJ7z-XI/')), '') as ?kind)\n bind(if(?st in (schema:CompletedActionStatus, schema:FailedActionStatus), '2', '1') as ?openRank)\n}\norder by ?openRank desc(?date)\n" . . "Tobias Kuhn" . "2026-08-27T06:41:06Z"^^ . . . . . "Get the nanosuggestions assigned to an agent" . . . . . . "RSA" . "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB" . "GOlMKtwDrq5zBs9GC86fqZHYK5+jtLqLRi0TB9XcQVPDIvcvXNoJ81MCubQhfpMRgbxtSsoJbJYfJ1UMBGI1Q4PaDoa5oLy+wfrCYNA3eh8Eu7b5y868jaFTnw+YdU722HIROx0oE1kF1Jx1XrXLtyQnfj2w2kpLVEd1GShlV34=" . . .