Get the details of a nanosuggestion
type: Nanopublication
has assertion: assertion
has provenance: provenance
has publication info: pubinfo
created: 2026-08-26T14:11:13Z
creator: Tobias Kuhn
license: https://creativecommons.org/licenses/by/4.0/
embeds: Get the details of a nanosuggestion

Get the details of a nanosuggestion
type: grlc-query
description: Returns the details of a single nanosuggestion as field/value rows for a compact info card: title, kind, text, current status, assignee, the spaces it is relevant for, what it is about, and further links. Values that are IRIs are returned as IRIs so they render as links, with a companion label column supplying the link text. Empty fields are omitted and only the most recent status assertion is shown.
license: LICENSE-2.0
endpoint: full
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 foaf: <http://xmlns.com/foaf/0.1/> prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix schema: <https://schema.org/> prefix gen: <https://w3id.org/kpxl/gen/terms/> prefix nsug: <https://w3id.org/np/RA5BAdUvlxLWMWFQN3UVKoIQEB_MYTiAoLH1klXJ7z-XI/> select distinct ?Property_noheader ?Value_noheader ?Value_label where { values (?property ?Property_noheader ?ord) { ( rdfs:label 'Title:' '1' ) ( rdf:type 'Kind:' '2' ) ( rdf:value 'Text:' '3' ) ( schema:actionStatus 'Status:' '4' ) ( schema:agent 'Assigned to:' '5' ) ( gen:isRelevantFor 'Relevant for:' '6' ) ( schema:about 'About:' '7' ) ( rdfs:seeAlso 'More info:' '8' ) } graph npa:graph { ?np npa:hasValidSignatureForPublicKeyHash ?pubkey ; np:hasAssertion ?a ; dct:created ?d . filter not exists { ?npi npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } } graph ?a { ?_suggestion_iri ?property ?Value_noheader . } # the base types are structural, not the "kind" filter(!(?property = rdf:type && (?Value_noheader = nsug:Nanosuggestion || ?Value_noheader = schema:Statement))) # of the status assertions, keep only the most recent filter(?property != schema:actionStatus || not exists { graph npa:graph { ?np2 npa:hasValidSignatureForPublicKeyHash ?pk2 ; np:hasAssertion ?a2 ; dct:created ?d2 . filter not exists { ?np2i npx:invalidates ?np2 ; npa:hasValidSignatureForPublicKeyHash ?pk2 . } filter(?d2 > ?d) } graph ?a2 { ?_suggestion_iri schema:actionStatus ?other . } }) # link text for IRI values; empty string leaves literals as they are optional { ?Value_noheader rdfs:label ?vl . filter(lang(?vl) = '') } optional { ?Value_noheader foaf:name ?vn } bind(if(?Value_noheader = schema:PotentialActionStatus, 'open', if(?Value_noheader = schema:ActiveActionStatus, 'in progress', if…

sig
has algorithm: RSA
signed by: Tobias Kuhn