https://w3id.org/np/RAd_TLY_k69f5UaPXvkec-q8Y94sVRpg8-jmyPou1POL8
type: Nanopublication
has assertion: assertion
has provenance: provenance
has publication info: pubinfo
created: 2026-07-27T16:46:51.074+02:00
creator: Tobias Kuhn
license: https://creativecommons.org/publicdomain/zero/1.0/
embeds: Get review comments for FAIR Compendium
was created at: localhost:37373

Get review comments for FAIR Compendium
type: grlc-query
description: Returns the review comments that are candidates for a FAIR Compendium of Contributed Knowledge ('partid'): all LinkFlows review comments in nanopublications signed with a public key declared by the agent the compendium covers, and created in the covered year. Matching is done by public key rather than npx:signedBy, so it also finds older nanopublications that lack npx:signedBy in their publication info. The compendium's covered agent and year are resolved from its latest non-invalidated defining nanopub.
license: LICENSE-2.0
endpoint: full
sparql: prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> prefix dct: <http://purl.org/dc/terms/> prefix gen: <https://w3id.org/kpxl/gen/terms/> prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix lf: <https://w3id.org/linkflows/reviews/> select distinct ?comment ?comment_label ?target ?date ?np ("^" as ?np_label) where { service <https://w3id.org/np/l/nanopub-query-1.1/repo/type/76d6cd4231dca5c411812f254cb92473d90eb9cefb4182f91a94aca2f356d0d2> { graph npa:graph { ?dnp npa:hasValidSignatureForPublicKeyHash ?dpk ; (npx:introduces|npx:describes|npx:embeds) ?_partid_iri ; dct:created ?ddate ; np:hasAssertion ?da . filter not exists { ?inv npx:invalidates ?dnp ; npa:hasValidSignatureForPublicKeyHash ?dpk . } filter not exists { ?dnp2 npa:hasValidSignatureForPublicKeyHash ?pk2 ; (npx:introduces|npx:describes|npx:embeds) ?_partid_iri ; dct:created ?ddate2 . filter not exists { ?inv2 npx:invalidates ?dnp2 ; npa:hasValidSignatureForPublicKeyHash ?pk2 . } filter(?ddate2 > ?ddate) } } graph ?da { ?_partid_iri gen:coversAgent ?agent ; gen:coversTime ?year . } } graph ?gk { ?kd npx:declaredBy ?agent ; npx:hasPublicKey ?pubkey . } graph npa:graph { ?np npa:hasValidSignatureForPublicKey ?pubkey ; npa:hasValidSignatureForPublicKeyHash ?pkh ; dct:created ?date ; np:hasAssertion ?a . filter not exists { ?npi npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pkh . } filter not exists { ?np npx:hasNanopubType npx:ExampleNanopub . } } graph ?a { ?comment rdf:type lf:ReviewComment ; lf:hasCommentText ?comment_label ; lf:refersTo ?target . } filter(strstarts(str(?date), str(?year))) } order by ?date

sig
has algorithm: RSA
signed by: Tobias Kuhn