@prefix this: . @prefix sub: . @prefix np: . @prefix dct: . @prefix nt: . @prefix npx: . @prefix xsd: . @prefix rdfs: . @prefix orcid: . @prefix prov: . @prefix foaf: . sub:Head { this: a np:Nanopublication; np:hasAssertion sub:assertion; np:hasProvenance sub:provenance; np:hasPublicationInfo sub:pubinfo . } sub:assertion { sub:get-fair-compendium-review-comments a ; dct: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."; dct:license ; rdfs:label "Get review comments for FAIR Compendium"; ; """prefix rdf: prefix dct: prefix gen: prefix np: prefix npa: prefix npx: prefix lf: select distinct ?comment ?comment_label ?target ?date ?np (\"^\" as ?np_label) where { service { 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""" . } sub:provenance { sub:assertion prov:wasAttributedTo orcid:0000-0002-1267-0234 . } sub:pubinfo { orcid:0000-0002-1267-0234 foaf:name "Tobias Kuhn" . this: dct:created "2026-07-27T16:46:51.074+02:00"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:embeds sub:get-fair-compendium-review-comments; npx:wasCreatedAt ; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate , ; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB"; npx:hasSignature "ZlLXHj+PuKVai7LPqtTrJ4Bc36TB10VzxgZG/SqrLMhHMkyNs5zl7IeBHGTcqHALkIkaDyckkrv6hLGuvbWynnxXAx/lE1nb/W+982VGhWS1t0gMtvzhKNk3rpxJpdhn99ed8aanVUGBuIh8L8vFN5XnmHj/UKyx6csznhe2eCA="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }